]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Add generic support for noinit attribute.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
2
3 * doc/extend.texi: Add "noinit" attribute documentation.
4 * doc/sourcebuild.texi: Add noinit effective target documentation.
5 * varasm.c (default_section_type_flags): Add support for "noinit"
6 section.
7 (default_elf_select_section): Add support for "noinit" attribute.
8 * config/msp430/msp430.c (msp430_attribute_table): Remove "noinit" entry.
9
10 2019-08-14 Richard Biener <rguenther@suse.de>
11 Uroš Bizjak <ubizjak@gmail.com>
12
13 PR target/91154
14 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15 mode arguments.
16 (scalar_chain::smode): New member.
17 (scalar_chain::vmode): Likewise.
18 (dimode_scalar_chain): Rename to...
19 (general_scalar_chain): ... this.
20 (general_scalar_chain::general_scalar_chain): Take mode arguments.
21 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
22 base with TImode and V1TImode.
23 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
24 (general_scalar_chain::vector_const_cost): Adjust for SImode
25 chains.
26 (general_scalar_chain::compute_convert_gain): Likewise. Add
27 {S,U}{MIN,MAX} support.
28 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
29 (general_scalar_chain::make_vector_copies): Likewise. Handle
30 non-DImode chains appropriately.
31 (general_scalar_chain::convert_reg): Likewise.
32 (general_scalar_chain::convert_op): Likewise.
33 (general_scalar_chain::convert_insn): Likewise. Add
34 fatal_insn_not_found if the result is not recognized.
35 (convertible_comparison_p): Pass in the scalar mode and use that.
36 (general_scalar_to_vector_candidate_p): Likewise. Rename from
37 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
38 (scalar_to_vector_candidate_p): Remove by inlining into single
39 caller.
40 (general_remove_non_convertible_regs): Rename from
41 dimode_remove_non_convertible_regs.
42 (remove_non_convertible_regs): Remove by inlining into single caller.
43 (convert_scalars_to_vector): Handle SImode and DImode chains
44 in addition to TImode chains.
45 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
46 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
47 (*<maxmin>di3_doubleword): Likewise.
48
49 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
50 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
51
52 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
53 (*cond_bic<mode>_any): New patterns.
54
55 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
56
57 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
58 take the equivalent mask, as well as a bit count.
59 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
60 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
61 (aarch64_sve_pred_and_operand): New predicates.
62 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
63 code attribute.
64 * config/aarch64/aarch64-sve.md
65 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
66 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
67
68 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
69
70 * config/aarch64/aarch64-sve.md
71 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
72 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
73 New patterns.
74
75 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
76 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
77
78 * config/aarch64/aarch64-sve.md
79 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
80 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
81
82 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
83 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
84
85 * config/aarch64/aarch64-sve.md
86 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
87 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
88
89 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
90
91 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
92 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
93 New pattern.
94
95 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
96 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
97
98 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
99
100 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
101 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
102
103 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
104 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
105 (aarch64_print_operand): Add support for %I.
106 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
107 Bitcast floating-point constants to the corresponding integer constant.
108 (aarch64_float_const_representable_p): Handle vectors as well
109 as scalars.
110 (aarch64_expand_sve_vcond): Make sure that the operands are valid
111 for the new vcond_mask_<mode><vpred> expander.
112 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
113 test aarch64_float_const_representable_p.
114 (aarch64_sve_reg_or_dup_imm): New predicate.
115 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
116 gen_vcond_mask_<mode><vpred> instead of
117 gen_aarch64_sve_dup<mode>_const.
118 (vcond_mask_<mode><vpred>): Turn into a define_expand that
119 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
120 for operands 1 and 2 respectively. Force operand 2 into a
121 register if operand 1 is a register. Fold old define_insn...
122 (aarch64_sve_dup<mode>_const): ...and this define_insn...
123 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
124 floating-point constants that can be moved as integers. Add
125 alternatives for MOV /M and FMOV /M.
126 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
127 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
128 1 and 2 respectively.
129 * config/aarch64/constraints.md (Ufc): Handle vectors as well
130 as scalars.
131 (vss): New constraint.
132
133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
134
135 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
136 (aarch64_sve_float_maxmin_operand): New predicates.
137 * config/aarch64/constraints.md (vsB): New constraint.
138 (vsM): Fix typo.
139 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
140 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
141 UNSPEC_COND_FMINNM.
142 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
143 Use aarch64_sve_float_maxmin_operand for operand 2.
144 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
145 Add alternatives for the constant forms.
146
147 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
148
149 * config/aarch64/constraints.md (vsb): New constraint.
150 (vsm): Generalize description.
151 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
152 iterator.
153 (sve_imm_con): Handle smax, smin, umax and umin.
154 (sve_imm_prefix): New code attribute.
155 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
156 (aarch64_sve_vsb_operand): New predicates.
157 (aarch64_sve_mul_immediate): Rename to...
158 (aarch64_sve_vsm_immediate): ...this.
159 (aarch64_sve_mul_operand): Rename to...
160 (aarch64_sve_vsm_operand): ...this.
161 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
162 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
163 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
164 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
165 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
166 add movprfx support for the immediate alternatives.
167 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
168 of the above.
169 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
170 for operand 3.
171
172 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
173
174 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
175 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
176 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
177
178 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
179
180 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
181 (optab, sve_int_op): Handle them.
182 * config/aarch64/aarch64-sve.md: Expand comment.
183
184 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
185
186 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
187 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
188 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
189
190 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
191
192 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
193 (aarch64_expand_sve_const_pred_trn): New functions.
194 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
195 use the above functions when the parameter is true.
196 (aarch64_expand_sve_const_pred): Update call accordingly.
197 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
198 Rename to...
199 (@aarch64_sve_<perm_insn><mode>): ...this.
200
201 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
202
203 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
204 Declare.
205 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
206 (aarch64_sve_emit_int_cmp): New functions.
207 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
208 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
209 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
210 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
211 (UNSPEC_PRED_Z): New unspec.
212 (set_clobber_cc_nzc): Delete.
213 * config/aarch64/aarch64-sve.md: Add a block comment about
214 UNSPEC_PRED_Z.
215 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
216 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
217 the old pattern with that name. Use UNSPEC_PRED_Z instead of
218 UNSPEC_MERGE_PTRUE.
219 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
220 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
221 check for compatible predicates.
222 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
223 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
224 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
225 comparisons above.
226
227 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
228
229 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
230 * config/aarch64/aarch64-sve.md: Add a section describing it.
231 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
232 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
233 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
234 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
235 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
236 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
237 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
238 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
239 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
240 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
241 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
242 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
243 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
244 (aarch64_evpc_rev_local): Update accordingly.
245
246 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
247
248 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
249 iterators.
250 (SVE_BHSI, SVE_SDI): Tweak comment.
251 (SVE_HSDI): Likewise. Fix definition.
252 (SVE_SDF): New mode iterator.
253 (elem_bits): New mode attribute.
254 (SVE_COND_FCVT): New int iterator.
255 * config/aarch64/aarch64-sve.md
256 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
257 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
258 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
259 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
260 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
261 ...these new patterns.
262 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
263 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
264 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
265 Merge into...
266 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
267 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
268 ...these new patterns.
269 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
270 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
271 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
272 ...this new pattern.
273 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
274 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
275 ...this new pattern.
276 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
277
278 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
279
280 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
281 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
282 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
283 unspecs.
284 (optab, su): Handle them.
285 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
286 * config/aarch64/aarch64-sve.md
287 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
288 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
289 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
290 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
291 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
292 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
293 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
294 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
295 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
296 FIXUORS.
297 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
298 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
299 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
300 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
301 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
302 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
303 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
304 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
305 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
306 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
307 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
308 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
309 of UNSPEC_FLOAT_CONVERT.
310 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
311 aarch64_sve_extend<mode><Vwide>2.
312
313 2019-08-14 Richard Biener <rguenther@suse.de>
314
315 PR target/91154
316 * config/i386/i386-features.c
317 (dimode_scalar_chain::compute_convert_gain): Compute and dump
318 individual instruction gain. Fix reg-reg copy GRP cost. Use
319 ix86_cost->sse_op for vector instruction costs.
320
321 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
322
323 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
324 (cmp_op): Handle it.
325 (SVE_COND_FP_CMP): Rename to...
326 (SVE_COND_FP_CMP_I0): ...this.
327 (SVE_FP_CMP): Remove.
328 * config/aarch64/aarch64-sve.md
329 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
330 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
331 using unspecs to represent the comparison.
332 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
333 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
334 accordingly.
335 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
336 (aarch64_unspec_cond_code): Move after integer code. Handle
337 UNORDERED.
338 (aarch64_emit_sve_predicated_cond): Replace with...
339 (aarch64_emit_sve_fp_cond): ...this new function.
340 (aarch64_emit_sve_or_conds): Replace with...
341 (aarch64_emit_sve_or_fp_conds): ...this new function.
342 (aarch64_emit_sve_inverted_cond): Replace with...
343 (aarch64_emit_sve_invert_fp_cond): ...this new function.
344 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
345
346 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
347
348 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
349 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
350 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
351 SVE_HSD instead of SVE_SD.
352
353 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
354 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
355
356 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
357 iterator.
358 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
359 attributes.
360 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
361 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
362 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
363 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
364 (*div<SVE_F:mode>3): Generalize to...
365 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
366
367 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
368 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
369
370 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
371 constants.
372 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
373 predicate.
374 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
375 Declare.
376 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
377 function.
378 * config/aarch64/aarch64-sve.md: Add a block comment about the
379 handling of predicated FP operations.
380 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
381 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
382 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
383 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
384 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
385 operand.
386 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
387 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
388 operand.
389 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
390 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
391 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
392 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
393 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
394 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
395 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
396 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
397 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
398 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
399 strictness operands. Use aarch64_sve_pred_dominates_p to check
400 whether the predicate on the conditional operation is suitable
401 for merging. Split patterns into the canonical equal-predicate form.
402 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
403 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
404
405 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
406 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
407
408 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
409 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
410 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
411 rtx codes.
412 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
413 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
414 unspecs.
415
416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
417 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
418
419 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
420 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
421 actually has, rather than relying on REG_EQUAL notes.
422 Make the insn operand order match the SVE operand order.
423 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
424 the SVE operand order.
425
426 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
427
428 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
429 (aarch64_emit_set_immediate): Likewise.
430 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
431 (aarch64_pfalse_reg): Likewise.
432 (aarch64_convert_sve_data_to_pred): New function.
433 (aarch64_sve_move_pred_via_while): Take an optional target register
434 and the required register mode.
435 (aarch64_expand_sve_const_pred_1): New function.
436 (aarch64_expand_sve_const_pred): Likewise.
437 (aarch64_expand_mov_immediate): Build an all-true predicate
438 if the significant bits of the immediate are all true. Use
439 aarch64_expand_sve_const_pred for all compile-time predicate constants.
440 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
441 before register allocation.
442 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
443 a VNx16BI PTRUE when splitting the memory alternative.
444 (vec_duplicate<mode>): Update accordingly.
445 (*pred_cmp<cmp_op><mode>): Rename to...
446 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
447
448 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
449
450 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
451 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
452 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
453 (UNSPEC_PTEST): New unspec.
454 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
455 * config/aarch64/iterators.md (data_bytes): New mode attribute.
456 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
457 * config/aarch64/aarch64-sve.md: Add a new section describing the
458 handling of UNSPEC_PTEST.
459 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
460 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
461 (ptest_ptrue<mode>): Replace with...
462 (aarch64_ptest<mode>): ...this new pattern.
463 (cbranch<mode>4): Update after above changes.
464 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
465 UNSPEC_PTEST_PTRUE.
466 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
467 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
468 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
469
470 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
471
472 PR lto/91287
473 * builtins.c (builtin_with_linkage_p): New function.
474 * builtins.h (builtin_with_linkage_p): New function.
475 * symtab.c (write_symbol): Remove redundant assert.
476 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
477 Remove FIXME and use builtin_with_linkage_p.
478
479 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
480
481 PR middle-end/91421
482 * tree-core.h (function_decl::function_code): Change type to
483 unsigned int.
484 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
485 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
486 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
487 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
488 is BUILT_IN_NORMAL.
489 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
490 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
491 (fndecl_built_in_p): Change the type of the "name" argument to
492 unsigned int.
493 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
494 after check for DECL_BUILT_IN_CLASS.
495 * cgraphclones.c (build_function_decl_skip_args): Use
496 set_decl_built_in_function.
497 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
498 * ipa-split.c (split_function): Likewise.
499 * langhooks.c (add_builtin_function_common): Likewise.
500 * omp-simd-clone.c (simd_clone_create): Likewise.
501 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
502 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
503 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
504 DECL_FUNCTION_CODE.
505 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
506 instead of DECL_FUNCTION_CODE.
507 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
508 instead of DECL_FUNCTION_CODE.
509 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
510 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
511 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
512 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
513 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
514 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
515 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
516 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
517 (alpha_gimple_fold_builtin): Likewise.
518 * config/arc/arc.c (arc_expand_builtin): Likewise.
519 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
520 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
521 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
522 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
523 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
524 * config/frv/frv.c (frv_expand_builtin): Likewise.
525 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
526 (gcn_expand_builtin): Likewise.
527 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
528 (fold_builtin_cpu): Likewise.
529 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
530 * config/i386/i386.c (ix86_fold_builtin): Likewise.
531 (ix86_gimple_fold_builtin): Likewise.
532 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
533 (ia64_expand_builtin): Likewise.
534 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
535 * config/mips/mips.c (mips_expand_builtin): Likewise.
536 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
537 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
538 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
539 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
540 * config/pa/pa.c (pa_expand_builtin): Likewise.
541 * config/pru/pru.c (pru_expand_builtin): Likewise.
542 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
543 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
544 Likewise.
545 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
546 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
547 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
548 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
549 (rs6000_builtin_reciprocal): Likewise.
550 * config/rx/rx.c (rx_expand_builtin): Likewise.
551 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
552 * config/s390/s390.c (s390_expand_builtin): Likewise.
553 * config/sh/sh.c (sh_expand_builtin): Likewise.
554 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
555 (sparc_fold_builtin): Likewise.
556 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
557 * config/spu/spu.c (spu_expand_builtin): Likewise.
558 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
559 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
560 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
561 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
562 (xtensa_expand_builtin): Likewise.
563
564 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
565
566 PR middle-end/91421
567 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
568 before the DECL_FUNCTION_CODE.
569 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
570 to check for a BUILT_IN_ALLOCA call.
571 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
572 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
573 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
574 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
575 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
576 for BUILT_IN_NORMAL functions.
577 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
578 test for BUILT_IN_TM_ABORT.
579 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
580 to check for a BUILT_IN_STACK_RESTORE call.
581 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
582 * tree-ssa-threadedge.c
583 (record_temporary_equivalences_from_stmts_at_dest): Check for a
584 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
585 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
586 test for a BUILT_IN_NORMAL call instead of a negative test for
587 an internal function call.
588
589 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
590
591 * tree.h (build_vector_a_then_b): Declare.
592 * tree.c (build_vector_a_then_b): New function.
593 * fold-const-call.c (fold_while_ult): Likewise.
594 (fold_const_call): Use it to handle IFN_WHILE_ULT.
595 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
596 (aarch64_svpattern): New enum.
597 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
598 constants through aarch64_expand_mov_immediate.
599 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
600 than general_operand as the predicate for operand 1.
601 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
602 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
603 insn_type.
604 (simd_immediate_info::simd_immediate_info): New overload that
605 takes a scalar_int_mode and an svpattern.
606 (simd_immediate_info::u): Add a "pattern" field.
607 (svpattern_token): New function.
608 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
609 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
610 (aarch64_sve_move_pred_via_while): New functions.
611 (aarch64_expand_mov_immediate): Try using
612 aarch64_sve_move_pred_via_while for predicates that contain N ones
613 followed by M zeros but that do not correspond to a VLnnn pattern.
614 (aarch64_sve_pred_valid_immediate): New function.
615 (aarch64_simd_valid_immediate): Use it instead of dealing directly
616 with PTRUE and PFALSE.
617 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
618 forms.
619
620 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
621
622 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
623 flag.
624 (darwin_override_options): Likewise.
625 * config/darwin.h: Likewise.
626 * config/darwin.opt: Likewise.
627 * config/i386/i386.c (output_pic_addr_const): Likewise.
628 * config/rs6000/darwin.h: Likewise.
629 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
630 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
631 ... this TARGET_MACHO_SYMBOL_STUBS.
632 (FUNCTION_PROFILER):Likewise.
633 * config/i386/i386.h: Likewise.
634
635 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
636
637 * config/i386/i386.md (ix86_expand_vector_extract) <case E_V2SImode>:
638 Use vec_extr path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
639 <case E_V8QImode>: Ditto.
640 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
641 Use SWI48 mode iterator. Use %k to output operand 0.
642 (*mmx_pextrw): New insn pattern.
643 (*mmx_pextrb): Ditto.
644 (*mmx_pextrb_zext): Ditto.
645
646 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
647
648 * target.def (libc_has_function, libc_has_fast_function): Improve
649 documentation strings.
650 * doc/tm.texi: Regenerate.
651
652 2019-08-13 Caroline Tice <cmtice@google.com>
653
654 PR other/91396
655 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
656 vtv_end.o or vtv_end_preinit.o files if !static.
657
658 2019-08-13 Olivier Hainque <hainque@adacore.com>
659
660 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
661
662 2019-08-13 Olivier Hainque <hainque@adacore.com>
663
664 * rtlanal.c (tablejump_casesi_pattern): New function, to
665 determine if a tablejump insn is a casesi dispatcher. Extracted
666 from patch_jump_insn.
667 * rtl.h (tablejump_casesi_pattern): Declare.
668 * cfgrtl.c (patch_jump_insn): Use it.
669 * dwarf2cfi.c (create_trace_edges): Use it.
670
671 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
672
673 PR target/81800
674 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
675 operand is larger than a long int.
676
677 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
678
679 * machmode.h (opt_mode::else_mode): New function.
680 (opt_mode::else_blk): Use it.
681 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
682 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
683 (aarch64_gen_stepped_int_parallel): Likewise.
684 (aarch64_stepped_int_parallel_p): Likewise.
685 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
686 argument.
687 * config/aarch64/aarch64.c
688 (aarch64_expand_sve_widened_duplicate): Delete.
689 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
690 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
691 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
692 argument. Use early returns in the !CONST_INT_P handling.
693 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
694 than handling some inline.
695 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
696 from...
697 (aarch64_simd_container_mode): ...here.
698 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
699 (aarch64_sve_ld1rq_operand_p): New functions.
700 * config/aarch64/predicates.md (descending_int_parallel)
701 (aarch64_sve_ld1rq_operand): New predicates.
702 * config/aarch64/constraints.md (UtQ): New constraint.
703 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
704 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
705 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
706 (@aarch64_sve_reinterpret<mode>): New expander.
707 (*aarch64_sve_reinterpret<mode>): New pattern.
708 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
709 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
710 (*sve_ld1rq<Vesize>): Replace with...
711 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
712
713 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
714
715 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
716 16:12.
717
718 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
719
720 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
721 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
722 (msp430_check_path_for_devices): New.
723 (parse_devices_csv_1): New.
724 (parse_devices_csv): New.
725 (msp430_extract_mcu_data): Try to find devices.csv and search for the
726 MCU data in devices.csv before using the hard-coded data.
727 Warn if devices.csv isn't found and the MCU wasn't found in the
728 hard-coded data either.
729 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
730 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
731 Search for devices.csv on -I and -L paths.
732 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
733 msp430_set_driver_var.
734 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
735 -mdevices-csv-loc=.
736 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
737 searched for devices.csv.
738 (mwarn-devices-csv): Document option.
739
740 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
741
742 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
743 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
744 Use a single Dn alternative instead of separate Dz and Dm
745 alternatives. Use aarch64_output_sve_move_immediate.
746 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
747 function.
748 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
749 for predicates too.
750 (aarch64_output_sve_mov_immediate): Handle predicate modes.
751 (aarch64_output_ptrue): Delete.
752
753 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
754
755 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
756 INDEX.
757 (simd_immediate_info::value, simd_immediate_info::step)
758 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
759 with...
760 (simd_immediate_info::u): ...this new union.
761 (simd_immediate_info::simd_immediate_info): Update accordingly.
762 (aarch64_output_simd_mov_immediate): Likewise.
763 (aarch64_output_sve_mov_immediate): Likewise.
764
765 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
766
767 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
768 extra_gcc_objs.
769 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
770 (msp430_select_cpu): New spec function.
771 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
772 MCU data.
773 * config/msp430/msp430-devices.c: New file.
774 * config/msp430/msp430-devices.h: New file.
775 * config/msp430/msp430.c: Remove msp430_mcu_data.
776 (msp430_option_override): Use msp430_extract_mcu_data to extract
777 MCU data.
778 (msp430_use_f5_series_hwmult): Likewise.
779 (use_32bit_hwmult): Likewise.
780 (msp430_no_hwmult): Likewise.
781 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
782 assembler.
783 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
784 and -mcpu option.
785 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
786 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
787 Remove hard-coded MCU multilib data.
788
789 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
790
791 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
792 based on the mode instead of testing properties of it.
793
794 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
795
796 * doc/md.texi: Document the x and y constraints for AArch64.
797 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
798 (FP_LO8_REGS): New reg_class.
799 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
800 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
801 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
802 * config/aarch64/predicates.md (aarch64_simd_register): Use
803 FP_REGNUM_P instead of checking the classes manually.
804 * config/aarch64/constraints.md (y): New constraint.
805
806 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
807
808 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
809 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
810 * config/aarch64/aarch64-simd.md
811 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
812 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
813 from the asm template.
814 * config/aarch64/aarch64-sve.md
815 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
816 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
817 from the asm template.
818 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
819 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
820 from the asm template.
821 * config/aarch64/aarch64-simd-builtins.def: Update comment.
822
823 2019-08-13 Martin Liska <mliska@suse.cz>
824
825 * value-prof.c (gimple_ic_transform): Add new line.
826 Print details with MSG_NOTE.
827
828 2019-08-13 Martin Liska <mliska@suse.cz>
829
830 * doc/invoke.texi: Document automatic detection of jobserver.
831 * lto-wrapper.c (run_gcc): Detect jobserver always.
832
833 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
834
835 * config/i386/i386.md (ix86_expand_vector_set) <case E_V2SImode>:
836 Use vec_merge path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
837 <case E_V8QImode>: Ditto.
838 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
839 (*mmx_pinsrb): Ditto.
840
841 2019-08-12 Jakub Jelinek <jakub@redhat.com>
842
843 PR target/83250
844 PR target/91340
845 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
846 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
847 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
848 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
849 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
850
851 2019-08-12 Richard Biener <rguenther@suse.de>
852
853 PR lto/91375
854 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
855 flag_devirtualize.
856
857 2019-08-12 Richard Biener <rguenther@suse.de>
858
859 PR driver/91130
860 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
861 lang_mask option, always use CL_DRIVER.
862 (get_options_from_collect_gcc_options): Adjust.
863 (find_and_merge_options): Likewise.
864 (run_gcc): Likewise.
865
866 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
867
868 * ipa-predicate.c (add_condition): Restore inverted test.
869
870 2019-08-10 Jakub Jelinek <jakub@redhat.com>
871
872 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
873 (enum omp_clause_device_type_kind): New enum.
874 (struct tree_omp_clause): Add subcode.device_type_kind.
875 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
876 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
877 for device_type clause.
878 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
879 * tree-pretty-print.c (dump_omp_clause): Likewise.
880
881 PR target/91408
882 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
883 vector_operand.
884
885 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
886
887 * reload1.c (finish_spills): Do not check ira_conflicts_p when
888 handling spilled pseudos.
889
890 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
891
892 PR target/91386
893 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
894 to preserve the contents of the original insns.
895
896 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
897
898 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
899 (addsi3_compare_op2): Likewise.
900
901 2019-08-09 Martin Liska <mliska@suse.cz>
902
903 * alias.c (alias_ptr_types_compatible_p): Strengten
904 type comparison in LTO mode.
905
906 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
907
908 PR middle-end/90313
909 * tree-tailcall.c (find_tail_calls): Reject calls that might
910 read from an escaped RESULT_DECL.
911
912 2019-08-09 Martin Liska <mliska@suse.cz>
913
914 * doc/invoke.texi: Document the option value.
915 * lto-wrapper.c (run_gcc): Set auto_parallel
916 only with -flto=auto.
917
918 2019-08-09 Martin Liska <mliska@suse.cz>
919
920 * opts.c (common_handle_option): Error for an invalid argument
921 to -flto=.
922
923 2019-08-09 Martin Liska <mliska@suse.cz>
924
925 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
926 use dump_printf to report optimization.
927 (sem_variable::merge): Likwise.
928 (sem_item_optimizer::merge_classes): Use dump_printf to report
929 ICF hits.
930
931 2019-08-09 Martin Liska <mliska@suse.cz>
932
933 * value-prof.c (gimple_divmod_fixed_value_transform):
934 Use dump_printf_loc.
935 (gimple_mod_pow2_value_transform): Likewise.
936 (gimple_mod_subtract_transform): Likewise.
937 (init_node_map): Likewise.
938 (gimple_ic_transform): Likewise.
939 (gimple_stringops_transform): Likewise.
940
941 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
942
943 * doc/extend.texi: Add const qualifier to ld intrinsics.
944
945 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
946
947 * config/rs6000/dfp.md (D64_D128): Rename to ...
948 (DDTD): ... this, throughout.
949 (dfp_suffix): Rename to ...
950 (q): ... this, throughout.
951
952 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
953
954 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
955 (dfp_suffix): Ditto.
956 (adddd3, addtd3): Merge to ...
957 (add<mode>3 for D64_D128): ... this.
958 (subdd3, subtd3): Merge to ...
959 (sub<mode>3 for D64_D128): ... this.
960 (muldd3, multd3): Merge to ...
961 (mul<mode>3 for D64_D128): ... this.
962 (divdd3, divtd3): Merge to ...
963 (div<mode>3 for D64_D128): ... this.
964 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
965 (*cmp<mode>_internal1 for D64_D128): ... this.
966 (ftruncdd2, ftrunctd2): Merge to ...
967 (ftrunc<mode>2 for D64_D128): ... this.
968 (fixdddi2, fixtddi2): Merge to ...
969 (fix<mode>di2 for D64_D128): ... this.
970
971 2019-08-08 Jim Wilson <jimw@sifive.com>
972
973 PR target/91229
974 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
975 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
976 Pass into recursive call.
977 (riscv_flatten_aggregate_argument): New arg. Pass to
978 riscv_flatten_aggregate_field.
979 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
980 riscv_flatten_aggregate_argument twice, with false and true as last
981 arg. Process result twice. Compare results and warn if different.
982 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
983
984 2019-08-08 Martin Liska <mliska@suse.cz>
985
986 PR bootstrap/91352
987 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
988 * lto-wrapper.c (jobserver_active_p): Likewise.
989
990 2019-08-08 Martin Liska <mliska@suse.cz>
991
992 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
993 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
994 (create_version_clone_with_body): Likewise.
995
996 2019-08-08 Jakub Jelinek <jakub@redhat.com>
997
998 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
999 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
1000 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
1001 GOVD_EXPLICIT flags.
1002 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
1003 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
1004 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
1005 call install_var_field with mask 11 instead of 3.
1006 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
1007 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
1008
1009 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1010
1011 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
1012 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
1013
1014 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1015
1016 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
1017 MOVPRFX alternatives. Make the GPR alternatives more expensive
1018 than the FPR ones.
1019
1020 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1021
1022 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
1023 Disparage the GPR alternative relative to the FPR one.
1024 Fix handling of 8-bit and 16-bit FPR values.
1025
1026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1027
1028 * config/aarch64/iterators.md (BITWISEV): Delete.
1029 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
1030 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
1031 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1032 UNSPEC_FMINNMV, UNSPEC_FMINV.
1033 (bit_reduc_op): Delete.
1034 (sve_int_op): New int attribute.
1035 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1036 UNSPEC_FMINNMV, UNSPEC_FMINV.
1037 * config/aarch64/aarch64-sve.md
1038 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1039 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1040 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
1041 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
1042 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
1043 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
1044 new patterns.
1045 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
1046 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
1047 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
1048 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
1049 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
1050 new patterns.
1051
1052 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1053
1054 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
1055 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
1056 (fms<mode>4, *fms<mode>4): Replace with...
1057 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1058 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
1059 Use unspecs instead of rtx codes.
1060 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
1061 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
1062
1063 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1064
1065 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
1066 int iterator.
1067 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
1068 * config/aarch64/aarch64-sve.md
1069 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
1070 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
1071 use a single unspec for the rhs.
1072 (*<su><maxmin><mode>3): Delete.
1073 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
1074
1075 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1076
1077 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
1078 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
1079 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
1080 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
1081 (optab, sve_fp_op): Handle them.
1082 (SVE_FP_UNARY): Delete.
1083 (optab): Remove sqrt entry.
1084 (sve_fp_op): Remove neg, abs and sqrt entries.
1085 (SVE_COND_FP_UNARY): New int iterator.
1086 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
1087 (*<frint_pattern><mode>2): Delete.
1088 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1089 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1090 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1091 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1092
1093 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1094
1095 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
1096
1097 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1098
1099 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
1100 (UNSPEC_COND_FADD): ...this.
1101 (UNSPEC_COND_SUB): Rename to...
1102 (UNSPEC_COND_FSUB): ...this.
1103 (UNSPEC_COND_MUL): Rename to...
1104 (UNSPEC_COND_FMUL): ...this.
1105 (UNSPEC_COND_DIV): Rename to...
1106 (UNSPEC_COND_FDIV): ...this.
1107 (UNSPEC_COND_MAX): Rename to...
1108 (UNSPEC_COND_FMAXNM): ...this.
1109 (UNSPEC_COND_MIN): Rename to...
1110 (UNSPEC_COND_FMINNM): ...this.
1111 (UNSPEC_COND_LT): Rename to...
1112 (UNSPEC_COND_FCMLT): ...this.
1113 (UNSPEC_COND_LE): Rename to...
1114 (UNSPEC_COND_FCMLE): ...this.
1115 (UNSPEC_COND_EQ): Rename to...
1116 (UNSPEC_COND_FCMEQ): ...this.
1117 (UNSPEC_COND_NE): Rename to...
1118 (UNSPEC_COND_FCMNE): ...this.
1119 (UNSPEC_COND_GE): Rename to...
1120 (UNSPEC_COND_FCMGE): ...this.
1121 (UNSPEC_COND_GT): Rename to...
1122 (UNSPEC_COND_FCMGT): ...this.
1123 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
1124 (sve_fp_op_rev): Update accordingly.
1125 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
1126
1127 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1128
1129 * config/aarch64/aarch64-sve.md: Reorganize contents and add
1130 banner comments.
1131 * config/aarch64/check-sve-md.awk: New file.
1132 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
1133 (insn-conditions.md): Depend on it.
1134
1135 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
1136
1137 PR target/91385
1138 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
1139 (*negsi2_cmpz_zext): Ditto.
1140
1141 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1142
1143 * config/aarch64/iterators.md (commutative): Remove.
1144
1145 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
1146
1147 PR driver/91130
1148 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
1149 processing COLLECT_GCC_OPTIONS.
1150 (run_gcc): Likewise.
1151
1152 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1153
1154 PR tree-optimization/91109
1155 * lra-remat.c (update_scratch_ops): Remove assignment of the
1156 hard register.
1157
1158 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1159
1160 * data-streamer.h (streamer_write_poly_uint64): Declare.
1161 (streamer_read_poly_uint64): Likewise.
1162 * data-streamer-in.c (streamer_read_poly_uint64): New function.
1163 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
1164 * ipa-predicate.h (condition::size): Turn into a poly_int64.
1165 (add_condition): Take a poly_int64 size.
1166 * ipa-predicate.c (add_condition): Likewise.
1167 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
1168 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
1169 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
1170 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
1171 condition::size as a poly_int64.
1172 (unmodified_parm_1): Take a poly_int64 size pointer.
1173 (unmodified_parm): Likewise.
1174 (unmodified_parm_or_parm_agg_item): Likewise.
1175 (set_cond_stmt_execution_predicate): Update accordingly.
1176 (set_switch_stmt_execution_predicate): Likewise.
1177 (will_be_nonconstant_expr_predicate): Likewise.
1178 (will_be_nonconstant_predicate): Likewise.
1179 (inline_read_section): Stream condition::size as a poly_int.
1180 (ipa_fn_summary_write): Likewise.
1181
1182 2019-08-07 Martin Liska <mliska@suse.cz>
1183
1184 * fold-const.c (twoval_comparison_p): Replace int
1185 with bool as a return type.
1186 (simple_operand_p): Likewise.
1187 (operand_equal_p): Replace int with bool as a return type.
1188 * fold-const.h (operand_equal_p): Likewise.
1189
1190 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1191
1192 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
1193 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
1194 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1195 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
1196 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
1197 * tree-pretty-print.c (dump_omp_clause): Likewise.
1198 * tree-nested.c (convert_nonlocal_omp_clauses,
1199 convert_local_omp_clauses): Likewise.
1200 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1201 Likewise.
1202 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
1203 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
1204 clause with array or reference to array types, no matter what type
1205 except for reference it has.
1206
1207 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
1208
1209 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
1210
1211 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
1212
1213 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
1214 (arch_canonicalize): Support rv32g and rv64g and fix error
1215 handling.
1216
1217 2019-08-06 Martin Liska <mliska@suse.cz>
1218
1219 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
1220 and DECL_IS_OPERATOR_DELETE_P.
1221
1222 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1223
1224 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
1225 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
1226 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
1227 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
1228 (gimplify_omp_for): Don't do C++ random access iterator clause
1229 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
1230 don't predetermine the artificial iterator in case of C++ random
1231 access iterators as lastprivate, but private. For OMP_LOOP, force
1232 bind expr around simd body and force for_pre_body before the
1233 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
1234 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
1235 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
1236 diff var of C++ random access iterators. Handle
1237 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
1238 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
1239 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
1240 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
1241 * omp-low.c (lower_rec_input_clauses): For
1242 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
1243 variables instead of default constructing them.
1244 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
1245 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
1246 is_taskloop_ctx check from the assert to the guarding condition.
1247
1248 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
1249
1250 * config/riscv/multilib-generator: (canonical_order): New.
1251 (arch_canonicalize): Dito.
1252 Apply arch_canonicalize for alts.
1253
1254 2019-08-05 Martin Sebor <msebor@redhat.com>
1255
1256 * doc/extend.texi (Common Variable Attributes): Document alias
1257 attribute.
1258
1259 2019-08-05 Marek Polacek <polacek@redhat.com>
1260
1261 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1262 * doc/invoke.texi: Document -Wcomma-subscript.
1263
1264 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1265
1266 * tree-core.h (tree_function_decl): Make function_code an
1267 independent field. Group the remaining bitfields into bytes
1268 and move decl_type so that it contines to be at a byte boundary.
1269 Leave 12 bits for future expansion.
1270
1271 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1272
1273 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
1274 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
1275 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
1276 IFN_MASK_STORE.
1277
1278 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1279
1280 * gimple.h (gimple_move_vops): Declare.
1281 * gimple.c (gimple_move_vops): New function
1282 * gimple-fold.c (replace_call_with_call_and_fold)
1283 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
1284 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
1285 (gimple_fold_call): Use it.
1286 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
1287 * tree-call-cdce.c (use_internal_fn): Likewise.
1288 * tree-if-conv.c (predicate_load_or_store): Likewise.
1289 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1290 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1291 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
1292 (update_call_from_tree): Likewise.
1293 * tree-vect-stmts.c (vectorizable_load): Likewise.
1294 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
1295
1296 2019-08-05 Martin Liska <mliska@suse.cz>
1297
1298 PR c++/91334
1299 * tree-ssa-dce.c (propagate_necessity): Handle new operators
1300 with not arguments.
1301 (eliminate_unnecessary_stmts): Likewise.
1302
1303 2019-08-05 Richard Biener <rguenther@suse.de>
1304
1305 PR middle-end/91169
1306 * fold-const.c (get_array_ctor_element_at_index): Create
1307 offset_ints according to the sign of the index type and treat
1308 that as signed if it is obviously so.
1309
1310 2019-08-05 Jakub Jelinek <jakub@redhat.com>
1311
1312 PR target/91341
1313 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
1314 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
1315 _mm256_storeu2_m128i): New function.
1316
1317 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
1318
1319 * config/riscv/riscv.c (riscv_promote_function_mode): New.
1320 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
1321
1322 2019-08-05 Alan Modra <amodra@gmail.com>
1323
1324 PR target/91349
1325 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
1326 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
1327
1328 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1329
1330 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
1331 bug that was fixed in Tcl 8.6.1.
1332
1333 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
1334
1335 * config/rs6000/future.md: New file.
1336 * config/rs6000/rs6000.md: Include future.md.
1337 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
1338
1339 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1340
1341 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
1342 check to use targetm.slow_unaligned_access instead.
1343
1344 * function.c (assign_param_data_one): Remove unused data members.
1345
1346 2019-08-02 Steve Ellcey <sellcey@marvell.com>
1347
1348 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
1349 build_distinct_type_copy.
1350 (simd_clone_adjust_argument_types): Ditto.
1351 (simd_clone_adjust): Call build_distinct_type_copy here.
1352 (expand_simd_clones): Ditto.
1353
1354 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1355
1356 PR target/91201
1357 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
1358
1359 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
1360
1361 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
1362 from 'const void *'.
1363 (sort_locs_in_loop_postorder_cmp): Likewise.
1364
1365 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
1366
1367 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
1368 (hot-bb-count-ws-permille): Likewise.
1369 (hot-bb-frequency-fraction): Likewise.
1370 (unlikely-bb-count-fraction): Likewise.
1371 * params.def (hot-bb-count-fraction): Rework description.
1372 (hot-bb-count-ws-permille): Likewise.
1373 (hot-bb-frequency-fraction): Likewise.
1374 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
1375 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
1376
1377 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1378
1379 PR target/91323
1380 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
1381 Return false.
1382
1383 2019-08-02 Richard Biener <rguenther@suse.de>
1384
1385 * vec.h (vec::sort): Add gcc_qsort_r support.
1386 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
1387 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
1388 to gcc_qsort_r style callback.
1389 (sort_locs_in_loop_postorder_cmp): Likewise.
1390 (analyze_memory_references): Use gcc_sort_r interfaces.
1391 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
1392
1393 2019-08-02 Martin Liska <mliska@suse.cz>
1394
1395 PR lto/91313
1396 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
1397 to detect working job server.
1398 (driver::detect_jobserver): Test whether jobserver
1399 is active from GCC driver. That will prevent situation where
1400 GCC is invoked from a LD plugin and the linker already uses
1401 file descriptors suggested by make. That leads to a wrong
1402 detection.
1403 * gcc.h (driver): Add detect_jobserver.
1404 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
1405 not scanning for --jobserver-auth prefix.
1406
1407 2019-08-02 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR tree-optimization/91201
1410 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
1411 V16QImode extraction without sse4.1 try to use V4SImode lowpart
1412 extraction.
1413
1414 2019-08-01 Martin Sebor <msebor@redhat.com>
1415
1416 PR c++/90947
1417 * tree.c (type_initializer_zero_p): Define.
1418 * tree.h (type_initializer_zero_p): New function.
1419
1420 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1421
1422 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
1423
1424 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1425
1426 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
1427 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
1428 * predict.c (maybe_hot_count_p): Likewise.
1429 (maybe_hot_bb_p): Tweak comment.
1430 (maybe_hot_edge_p): Likewise.
1431 (probably_never_executed): Likewise. Minor tweak.
1432 (probably_never_executed_bb_p): Likewise.
1433 (unlikely_executed_edge_p): Likewise.
1434 (probably_never_executed_edge_p): Likewise.
1435 (optimize_function_for_size_p): Likewise.
1436 (optimize_function_for_speed_p): Likewise.
1437 (function_optimization_type): Likewise.
1438 (optimize_bb_for_size_p): Likewise.
1439 (optimize_bb_for_speed_p): Likewise.
1440 (bb_optimization_type): Likewise.
1441 (optimize_edge_for_size_p): Likewise.
1442 (optimize_edge_for_speed_p): Likewise.
1443 (optimize_insn_for_size_p): Likewise.
1444 (optimize_insn_for_speed_p): Likewise.
1445 (optimize_loop_for_size_p): Likewise.
1446 (optimize_loop_for_speed_p): Likewise.
1447 (optimize_loop_nest_for_speed_p): Likewise.
1448 (optimize_loop_nest_for_size_p): Likewise.
1449 (predictable_edge_p): Likewise.
1450 (handle_missing_profiles): Minor tweak.
1451
1452 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
1453
1454 * config/rs6000/predicates.md (pcrel_external_address): Update
1455 comment.
1456
1457 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1458
1459 PR target/85693
1460 * config/i386/mmx.md (usadv8qi): New expander.
1461
1462 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
1463
1464 PR c++/90590
1465 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
1466 with reserved names that are in a system header.
1467
1468 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1469
1470 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
1471 (*vec_extractv2si_0_zext_sse4): New insn pattern.
1472 (*vec_extractv2si_0_zext): Ditto.
1473 (*vec_extractv2si_1): Add (rm,x) alternative.
1474 (*vec_extractv2si_1_zext): New insn pattern.
1475 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
1476 insn constraint.
1477
1478 2019-08-01 Richard Biener <rguenther@suse.de>
1479
1480 * domwalk.c (bb_postorder): Remove static variable.
1481 (cmp_bb_postorder): Adjust.
1482 (sort_bbs_postorder): Adjust and use gcc_sort_r.
1483 (dom_walker::walk): Adjust.
1484
1485 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
1486
1487 * sort.cc (sort_r_ctx): New struct.
1488 (reorder23): Make templated on context type.
1489 (reorder45): Ditto.
1490 (cmp1): Ditto. Adjust signature.
1491 (netsort): Ditto.
1492 (mergesort): Ditto.
1493 [CHECKING_P] (cmp2to3): New static function. Use it...
1494 (gcc_qsort) [CHECKING_P]: ...here.
1495 (gcc_sort_r): New function.
1496 * system.h (sort_r_cmp_fn): New function typedef.
1497 (qsort_chk): Adjust signature.
1498 (gcc_sort_r): Declare.
1499 * vec.c (qsort_chk_error): Adjust.
1500 (qsort_chk): Adjust.
1501
1502 2019-08-01 Richard Biener <rguenther@suse.de>
1503
1504 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
1505 (compute_antic): Localize it here.
1506
1507 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
1508
1509 * common/config/riscv/riscv-common.c: Check -march string ends
1510 with null.
1511
1512 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
1513
1514 * ipa-devirt.c (type_warning_cmp): Make static.
1515 (decl_warning_cmp): Ditto.
1516
1517 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
1518
1519 PR target/91050
1520 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
1521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1522 use of deleted rs6000_dejagnu_cpu_index variable.
1523 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
1524 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1525 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
1526 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
1527 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
1528 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1529
1530 2019-07-31 Richard Biener <rguenther@suse.de>
1531
1532 PR tree-optimization/91280
1533 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1534 Decompose MEM_REF manually for offset handling.
1535
1536 2019-07-31 Richard Biener <rguenther@suse.de>
1537
1538 PR tree-optimization/91293
1539 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
1540 of reduction stmts.
1541
1542 2019-07-31 Matt Thomas <matt@3am-software.com>
1543 Nick Hudson <nick@nthcliff.demon.co.uk>
1544 Matthew Green <mrg@eterna.com.au>
1545 Maya Rashish <coypu@sdf.org>
1546
1547 * config.gcc (hppa*-*-netbsd*): New target.
1548 * config/pa/pa-netbsd.h: New file.
1549 * config/pa/pa32-netbsd.h: New file.
1550
1551 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1552
1553 PR tree-optimization/91201
1554 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
1555
1556 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
1557
1558 * config/gcn/gcn-valu.md
1559 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
1560 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
1561 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1562 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
1563 struct ilist. Add nops for delayeduse insns.
1564 * config/gcn/gcn.md (delayeduse): New attribute.
1565 (*movbi): Remove s_waitcnt from stores.
1566 (*mov<mode>_insn): Likewise.
1567 (*movti_insn): Likewise. Add delayeduse attribute.
1568 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
1569 (atomic_store<mode>): Remove or adjust s_waitcnt.
1570
1571 2019-07-31 Richard Biener <rguenther@suse.de>
1572
1573 * vr-values.h (vr_values::swap_vr_value): New.
1574 (vr_values::free_value_range): likewise.
1575 * vr-values.c (vr_values::swap_vr_value): Implement.
1576 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
1577 Do not return a range or take a var.
1578 (evrp_range_analyzer::stack): Change back to recording a non-const
1579 value_range *.
1580 * gimple-ssa-evrp-analyze.c
1581 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
1582 value-range.
1583 (evrp_range_analyzer::pop_to_marker): Adjust.
1584 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
1585 (evrp_range_analyzer::pop_value_range): Likewise. Free the
1586 no longer needed value-range.
1587
1588 2019-07-31 Martin Liska <mliska@suse.cz>
1589
1590 * tree-ssa-dce.c (propagate_necessity): Delete operator can
1591 have size and (or) alignment as 2nd and later arguments.
1592 Mark all of them as necessary.
1593
1594 2019-07-31 Richard Biener <rguenther@suse.de>
1595
1596 PR tree-optimization/91178
1597 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1598 Use tail-recursion.
1599
1600 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1601
1602 PR tree-optimization/91201
1603 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
1604 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
1605 TARGET_AVX512F.
1606 (reduc_plus_scal_<mode>): Improve formatting by introducing
1607 a temporary.
1608
1609 2019-07-31 Sudakshina Das <sudi.das@arm.com>
1610
1611 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1612 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
1613 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
1614 (aarch64_init_tme_builtins): New.
1615 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
1616 (aarch64_expand_builtin_tme): New.
1617 (aarch64_expand_builtin): Handle TME builtins.
1618 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1619 __ARM_FEATURE_TME when enabled.
1620 * config/aarch64/aarch64-option-extensions.def: Add "tme".
1621 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
1622 (TARGET_TME): New.
1623 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
1624 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
1625 UNSPECV_TCANCEL.
1626 (tstart, ttest, tcommit, tcancel): New instructions.
1627 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
1628 (__tcancel, __ttest): New.
1629 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
1630 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
1631 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
1632 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
1633 * config/arm/types.md: Add new tme type attr.
1634 * doc/invoke.texi: Document "tme".
1635
1636 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
1637
1638 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
1639 warn_unused_result attribute.
1640 (cmse_check_address_range): Add warn_unused_result attribute.
1641
1642 2019-07-31 Richard Biener <rguenther@suse.de>
1643
1644 PR tree-optimization/91257
1645 * tree-vrp.c (union_ranges): Unify equality and less tests
1646 by using compare_values. Re-order cheap tests first.
1647
1648 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1649
1650 PR middle-end/91301
1651 * gimplify.c (gimplify_omp_for): If for class iterator on
1652 distribute parallel for there is no data sharing clause
1653 on inner_for_stmt, look for private clause on combined
1654 parallel too and if found, move it to inner_for_stmt.
1655
1656 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
1657
1658 * lra-int.h (lra_operand_data): Remove early_clobber field.
1659 (lra_insn_reg): Likewise.
1660 * lra.c (debug_operand_data): Update accordingly.
1661 (setup_operand_alternative): Likewise.
1662 (new_insn_reg): Likewise. Remove early_clobber parameter.
1663 (collect_non_operand_hard_regs): Update call accordingly.
1664 Don't assign to lra_insn_reg::early_clobber.
1665 (add_regs_to_insn_regno_info): Remove early_clobber parameter
1666 and update calls to new_insn_reg.
1667 (lra_update_insn_regno_info): Update calls accordingly.
1668 * lra-constraints.c (update_and_check_small_class_inputs): Take the
1669 alternative number as a parameter and test whether the operand
1670 is earlyclobbered in that particular alternative.
1671 (process_alt_operands): Update call accordingly. Use per-alternative
1672 checks for earyclobber here too.
1673 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
1674 against zero for IRA_UNKNOWN_ALT.
1675
1676 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1677
1678 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
1679
1680 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
1681
1682 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
1683 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1684
1685 2019-07-30 Martin Liska <mliska@suse.cz>
1686
1687 PR ipa/89330
1688 * cgraph.c (cgraph_edge::make_direct): Use
1689 edge->indirect_unknown_callee as edge->resolve_speculation can
1690 deallocate edge which is this pointer.
1691
1692 2019-07-30 Richard Biener <rguenther@suse.de>
1693
1694 PR tree-optimization/91257
1695 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
1696
1697 2019-07-30 Martin Liska <mliska@suse.cz>
1698
1699 * doc/invoke.texi: Document new behavior.
1700 * lto-wrapper.c (cpuset_popcount): New function
1701 is a copy of libgomp/config/linux/proc.c.
1702 (init_num_threads): Likewise.
1703 (run_gcc): Automatically detect core count for -flto.
1704 (jobserver_active_p): New function.
1705
1706 2019-07-30 Richard Biener <rguenther@suse.de>
1707
1708 PR tree-optimization/91257
1709 * bitmap.h (bitmap_ior_into_and_free): Declare.
1710 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
1711 whether to add the unliked element to the freelist.
1712 (bitmap_list_insert_element_after): Add defaulted param for
1713 an already allocated element.
1714 (bitmap_ior_into_and_free): New function.
1715 * tree-ssa-structalias.c (condense_visit): Reduce the
1716 ponts-to and edge bitmaps of the SCC members in a
1717 logarithmic fashion rather than all to one.
1718
1719 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
1720
1721 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
1722 parameter. When nonnull, make sure that the addition or subtraction
1723 has the same condition.
1724 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
1725 for CFN_COND_MUL too.
1726
1727 2019-07-30 Richard Biener <rguenther@suse.de>
1728
1729 PR tree-optimization/91291
1730 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
1731 constant values.
1732
1733 2019-07-30 Jakub Jelinek <jakub@redhat.com>
1734
1735 PR middle-end/91216
1736 * omp-low.c (global_nonaddressable_vars): New variable.
1737 (use_pointer_for_field): For global decls, if they are non-addressable,
1738 remember it in the global_nonaddressable_vars bitmap, if they are
1739 addressable and in the global_nonaddressable_vars bitmap, ignore their
1740 TREE_ADDRESSABLE bit.
1741 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
1742 vars in global_nonaddressable_vars bitmap.
1743 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
1744
1745 PR target/91150
1746 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
1747 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
1748 comparison to unsigned HOST_WIDE_INT before shifting it left.
1749
1750 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1751
1752 * config/i386/i386.md (movstrict<mode>): Use register_operand
1753 predicate for operand 0. Add expander condition. Assert that
1754 operand 0 is a SUBREG RTX.
1755 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
1756 Update operand constraints and insn condition.
1757 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
1758 (zero_extendqihi2_and): Do not call gen_movstrictqi.
1759 (*setcc_qi_slp): Use register_operand predicate for operand 0.
1760 Update operand 0 constraints.
1761 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
1762
1763 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1764
1765 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
1766 when -m{code,data}-region are used without -mlarge.
1767 * config/msp430/msp430.c (msp430_option_override): Error when a
1768 non-default code or data region is used without -mlarge.
1769 (msp430_section_attr): Emit a warning and do not add upper/lower/either
1770 attributes when they are used without -mlarge.
1771
1772 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1773
1774 PR target/70320
1775 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
1776
1777 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1778
1779 PR middle-end/91242
1780 * wide-int.h (generic_wide_int::sext_elt): New function.
1781 * inchash.h (hash::add_wide_int): Use it instead of elt.
1782
1783 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1784
1785 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
1786 CODE_FOR_arm_##.
1787 * config/arm/arm.md (<crc_variant>): Rename to...
1788 (arm_<crc_variant>): ... This.
1789 (<cdp>): Rename to...
1790 (arm_<cdp>): ... This.
1791 (<ldc>): Rename to...
1792 (arm_<ldc>): ... This.
1793 (<stc>): Rename to...
1794 (arm_<stc>): ... This.
1795 (<mcr>): Rename to...
1796 (arm_<mcr>): ... This.
1797 (<mrc>): Rename to...
1798 (arm_<mrc>): ... This.
1799 (<mcrr>): Rename to...
1800 (arm_<mcrr>): ... This.
1801 (<mrrc>): Rename to...
1802 (arm_<mrrc>): ... This.
1803
1804 2019-07-29 Richard Biener <rguenther@suse.de>
1805
1806 PR tree-optimization/91257
1807 * tree-ssa-sccvn.h (struct vn_avail): New.
1808 (struct vn_ssa_aux): Add avail member.
1809 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
1810 member, add m_avail_freelist one.
1811 (rpo_elim::~rpo_elim): Remove.
1812 (rpo_elim::eliminate_avail): Adjust to new avail tracking
1813 data structure.
1814 (rpo_elim::eliminate_push_avail): Likewise.
1815 (do_unwind): Likewise.
1816 (do_rpo_vn): Likewise.
1817
1818 2019-07-29 Richard Biener <rguenther@suse.de>
1819
1820 PR tree-optimization/91257
1821 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
1822 most cases, instead call compare_values which handles the
1823 symbolic ranges we handle specially.
1824 (compare_values_warnv): Do not call operand_less_p but open-code
1825 the effective fold calls. Avoid converting so much.
1826
1827 2019-07-29 Martin Liska <mliska@suse.cz>
1828
1829 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
1830 remove LHS of operator new call. It's handled latter.
1831
1832 2019-07-29 Richard Biener <rguenther@suse.de>
1833
1834 PR tree-optimization/91267
1835 * vr-values.c (vr_values::update_value_range): Add early return
1836 for effectively VARYING lattice entry.
1837
1838 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1839
1840 PR debug/86638
1841 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
1842 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
1843 necessary if keep_all_vdefs_p is true.
1844 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
1845 that keep_all_vdefs_p is false.
1846 (mark_all_reaching_defs_necessary): Likewise.
1847 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
1848
1849 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1850
1851 * common.opt (Og): Change the initial value of flag_dse to 0.
1852 * opts.c (default_options_table): Move OPT_ftree_dse from
1853 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
1854 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
1855 entry before the OPT_ftree_sra entry.
1856 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
1857 of flags disabled by Og.
1858
1859 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1860
1861 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
1862 variables for -Og.
1863
1864 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1865
1866 * doc/sourcebuild.texi (check-function-bodies): Document.
1867
1868 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1869
1870 * simplify-rtx.c (simplify_const_unary_operation): Fold a
1871 VEC_DUPLICATE of a fixed-length vector even if the result
1872 is variable-length. Likewise fold a duplicate of a
1873 variable-length vector if the variable-length vector is
1874 itself a duplicate of a fixed-length sequence.
1875 (test_vector_ops_duplicate): Test more cases.
1876
1877 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1878
1879 * vector-builder.h (vector_builder): Add a shape template parameter.
1880 (vector_builder::new_unary_operation): New function, generalizing
1881 the old tree_vector_builder function.
1882 (vector_builder::new_binary_operation): Likewise.
1883 (vector_builder::binary_encoded_nelts): Likewise.
1884 * int-vector-builder.h (int_vector_builder): Update template
1885 parameters to vector_builder.
1886 (int_vector_builder::shape_nelts): New function.
1887 * rtx-vector-builder.h (rtx_vector_builder): Update template
1888 parameters to vector_builder.
1889 (rtx_vector_builder::shape_nelts): New function.
1890 (rtx_vector_builder::nelts_of): Likewise.
1891 (rtx_vector_builder::npatterns_of): Likewise.
1892 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
1893 * tree-vector-builder.h (tree_vector_builder): Update template
1894 parameters to vector_builder.
1895 (tree_vector_builder::shape_nelts): New function.
1896 (tree_vector_builder::nelts_of): Likewise.
1897 (tree_vector_builder::npatterns_of): Likewise.
1898 (tree_vector_builder::nelts_per_pattern_of): Likewise.
1899 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
1900 (tree_vector_builder::new_binary_operation): Delete.
1901 (tree_vector_builder::binary_encoded_nelts): Likewise.
1902 * simplify-rtx.c: Include rtx-vector-builder.h.
1903 (distributes_over_addition_p): New function.
1904 (simplify_const_unary_operation)
1905 (simplify_const_binary_operation): Generalize handling of vector
1906 constants to include variable-length vectors.
1907 (test_vector_ops_series): Add more tests.
1908
1909 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
1910
1911 PR lto/91222
1912 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
1913 than INDENTIFIER_POINTER.
1914
1915 2019-07-28 Martin Liska <mliska@suse.cz>
1916
1917 PR ipa/89330
1918 * cgraph.c (symbol_table::create_edge): Always allocate
1919 a cgraph_edge.
1920 (symbol_table::free_edge): Store summary_id to
1921 edge_released_summary_ids if != -1;
1922 * cgraph.h (NEXT_FREE_NODE): Remove.
1923 (SET_NEXT_FREE_NODE): Likewise.
1924 (NEXT_FREE_EDGE): Likewise.
1925 (symbol_table::release_symbol): Store summary_id to
1926 cgraph_released_summary_ids if != -1;
1927 (symbol_table::allocate_cgraph_symbol): Always allocate
1928 a cgraph_node.
1929
1930 2019-07-28 Alan Modra <amodra@gmail.com>
1931
1932 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
1933 gen_sibcall.
1934
1935 2019-07-28 Alan Modra <amodra@gmail.com>
1936
1937 PR target/91135
1938 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
1939 define.
1940 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
1941 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
1942 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
1943
1944 2019-07-28 Alan Modra <amodra@gmail.com>
1945
1946 PR target/91050
1947 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
1948 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
1949 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
1950 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
1951 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
1952 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
1953 in asm_default spec.
1954 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
1955 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
1956
1957 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1958
1959 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
1960
1961 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1962
1963 PR target/89517
1964 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
1965 * config/aarch64/aarch64-option-extensions.def: Add new comments
1966 and restore easier to read options.
1967
1968 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1969
1970 * convert.c (convert_to_real_1): Move part of conversion code...
1971 * match.pd: ...To here.
1972
1973 2019-07-26 Martin Jambor <mjambor@suse.cz>
1974
1975 PR ipa/89330
1976 * ipa-inline-transform.c (check_speculations_1): New function.
1977 (push_all_edges_in_set_to_vec): Likewise.
1978 (check_speculations): Use check_speculations_1, new parameter
1979 new_edges.
1980 (inline_call): Pass new_edges to check_speculations.
1981 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
1982 NULL.
1983 (speculation_useful_p): Early return true if edge is inlined, remove
1984 later checks for inline_failed.
1985
1986 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
1987
1988 PR rtl-optimization/91223
1989 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
1990 matching with INOUT operand.
1991
1992 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1993
1994 * stmt.c (expand_case): Try to narrow the index type if it's larger
1995 than a word. Tidy up.
1996
1997 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1998
1999 * cif-code.def (NEVER_CALL): New code.
2000 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
2001 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
2002
2003 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
2004
2005 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
2006 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2007
2008 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2009
2010 * ipa-devirt.c (add_type_duplicate): Fix return value.
2011
2012 2019-07-25 Richard Biener <rguenther@suse.de>
2013
2014 * tree-vrp.c (extract_range_from_multiplicative_op): Add
2015 type parameter and use it instead of guessing expression
2016 type from the first operand.
2017 (extract_range_from_binary_expr): Pass expr_type down.
2018
2019 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2020
2021 * config/arm/arm.md (SATrev): Change to code attribute.
2022 (*satsi_<SAT:code>): Adjust for the above.
2023 (*satsi_<SAT:code>_shift): Likewise.
2024
2025 2019-07-25 Richard Biener <rguenther@suse.de>
2026
2027 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
2028 Make value_range * temporary const.
2029 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
2030 Likewise.
2031 (evrp_range_analyzer::record_ranges_from_): Likewise.
2032 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
2033 deal with having recorded a const one.
2034 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
2035 Return a const value_range *.
2036 (evrp_range_analyzer::pop_value_range): Likewise.
2037 (evrp_range_analyzer::stack): Record const value_range *s.
2038 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2039 Adjust.
2040 * gimple-ssa-sprintf.c (get_int_range): Likewise.
2041 (format_integer): Likewise.
2042 (sprintf_dom_walker::handle_gimple_call): Likewise.
2043 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
2044 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
2045 (vrp_prop::get_value_range): Adjust.
2046 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
2047 modifying the lattice in-place.
2048 (vrp_prop::visit_stmt): Likewise.
2049 * vr-values.c (vr_values::get_lattice_entry): New private method.
2050 (vr_values::get_value_range): Wrap it and return a const
2051 value_range *.
2052 (vr_values::set_def_to_varying): New.
2053 (vr_values::set_defs_to_varying): Use it.
2054 (vr_values::update_value_range): Likewise.
2055 (vr_values::vrp_stmt_computes_nonzero): Adjust.
2056 (values::op_with_constant_singleton_va): Likewise.
2057 (vr_values::extract_range_for_var_from_co): Likewise.
2058 (vr_values::extract_range_from_ssa_name): Likewise.
2059 (vr_values::extract_range_from_cond_expr): Likewise.
2060 (vr_values::extract_range_basic): Likewise.
2061 (compare_ranges): Take const value_range *, adjust.
2062 (compare_range_with_value): Likewise.
2063 (vrp_valueize): Adjust.
2064 (vrp_valueize_1): Likewise.
2065 (vr_values::get_vr_for_comparison): Return a const value_range *.
2066 (vr_values::compare_name_with_value): Adjust.
2067 (vr_values::compare_names): Likewise.
2068 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2069 Likewise.
2070 (vr_values::vrp_evaluate_conditional): Likewise.
2071 (find_case_label_ranges): Take a const value_range *.
2072 (vr_values::vrp_visit_switch_stmt): Adjust.
2073 (vr_values::extract_range_from_phi_node): Likewise.
2074 (vr_values::simplify_div_or_mod_using_ran): Likewise.
2075 (vr_values::simplify_abs_using_ranges): Likewise.
2076 (test_for_singularity): Take a const value_range *.
2077 (range_fits_type_p): Likewise.
2078 (vr_values::simplify_cond_using_ranges_1): Adjust.
2079 (vr_values::simplify_cond_using_ranges_2): Likewise.
2080 (vr_values::simplify_switch_using_ranges): Likewise.
2081 (vr_values::simplify_float_conversion_usi): Likewise.
2082 (vr_values::two_valued_val_range_p): Likewise.
2083 * vr-values.h (vr_values::get_value_range): Return a const
2084 value_range *.
2085 (vr_values::set_def_to_varying): New.
2086 (vr_values::get_lattice_entry): New private method.
2087 (vr_values::get_vr_for_comparison): Return a const value_range *.
2088
2089 2019-07-25 Martin Liska <mliska@suse.cz>
2090 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
2091
2092 PR c++/23383
2093 * common.opt: Add -fallocation-dce
2094 * gimple.c (gimple_call_operator_delete_p): New.
2095 * gimple.h (gimple_call_operator_delete_p): Likewise.
2096 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
2097 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
2098 DECL_IS_OPERATOR_DELETE_P.
2099 (mark_all_reaching_defs_necessary_1): Likewise.
2100 (propagate_necessity): Likewise.
2101 (eliminate_unnecessary_stmts): Handle
2102 gimple_call_operator_delete_p.
2103 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
2104 Add packing of OPERATOR_DELETE.
2105 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
2106 Similarly here.
2107 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
2108 (DECL_SET_IS_OPERATOR_DELETE): New.
2109 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
2110
2111 2019-07-25 Martin Liska <mliska@suse.cz>
2112
2113 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
2114 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
2115 * coverage.c (coverage_begin_function): Likewise.
2116 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
2117 * gimple.c (gimple_call_nonnull_result_p): Likewise.
2118 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
2119 (sem_item::hash_referenced_symbol_properties): Likewise.
2120 * lto-streamer-out.c (hash_tree): Likewise.
2121 * predict.c (expr_expected_value_1): Likewise.
2122 * tree-inline.c (expand_call_inline): Likewise.
2123 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2124 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2125 * tree-core.h (enum function_decl_type): New enum.
2126 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
2127 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
2128 (set_function_decl_type): Likewise.
2129 (DECL_IS_OPERATOR_NEW_P): New.
2130 (DECL_SET_IS_OPERATOR_NEW): Likewise.
2131 (DECL_LAMBDA_FUNCTION): Likewise.
2132 (DECL_LAMBDA_FUNCTION_P): Likewise.
2133 (DECL_IS_OPERATOR_NEW): Remove.
2134 (DECL_SET_LAMBDA_FUNCTION): Likewise.
2135
2136 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
2137
2138 * ipa-profile.c (get_most_common_single_value): Use
2139 get_nth_most_common_value.
2140 * profile.c (sort_hist_value): New function.
2141 (compute_value_histograms): Call sort_hist_value to sort the
2142 values after loading from disk.
2143 * value-prof.c (get_most_common_single_value): Rename to ...
2144 get_nth_most_common_value. Add input params n, return
2145 the n_th value and count.
2146 (gimple_divmod_fixed_value_transform): Use
2147 get_nth_most_common_value.
2148 (gimple_ic_transform): Likewise.
2149 (gimple_stringops_transform): Likewise.
2150 * value-prof.h (get_most_common_single_value): Add input params
2151 n, default to 0.
2152
2153 2019-07-25 Richard Biener <rguenther@suse.de>
2154
2155 PR tree-optimization/91236
2156 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2157 size of CONSTRUCTOR write. Fix buffer size we pass to
2158 native_encode_expr.
2159
2160 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2161
2162 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
2163 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
2164 r273773.
2165
2166 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2167
2168 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
2169 explicitly disabled with --disable-initfini-array.
2170
2171 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2172
2173 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
2174 if-exists.
2175
2176 2019-07-24 Martin Sebor <msebor@redhat.com>
2177
2178 PR tree-optimization/91183
2179 PR tree-optimization/86688
2180 * builtins.c (compute_objsize): Handle MEM_REF.
2181 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
2182 (get_min_string_length): Remove.
2183 (count_nonzero_bytes): New function.
2184 (handle_char_store): Rename...
2185 (handle_store): to this. Handle multibyte stores via integer types.
2186 (strlen_check_and_optimize_stmt): Adjust conditional and the called
2187 function name.
2188
2189 2019-07-24 Martin Sebor <msebor@redhat.com>
2190
2191 PR driver/80545
2192 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
2193 (diagnostic_report_diagnostic): Same.
2194 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
2195 (diagnostic_context::lang_mask): New data member.
2196 * ipa-pure-const.c (suggest_attribute): Use
2197 lang_hooks.option_lang_mask ().
2198 * opts-common.c (option_enabled): Handle new argument.
2199 (get_option_state): Pass an additional argument.
2200 * opts.c (print_filtered_help): Print supported languages for
2201 unsupported options. Adjust printing of current state.
2202 * opts.h (option_enabled): Add argument.
2203 * toplev.c (print_switch_values): Use lang_mask.
2204 (general_init): Set global_dc->lang_mask.
2205
2206 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2207
2208 PR bootstrap/87030
2209 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
2210
2211 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
2212
2213 * cgraphunit.c (symbol_table::compile): Start and stop
2214 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
2215 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
2216
2217 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
2218
2219 * gimplify.c (flag_instrument_functions_exclude_p): Include
2220 namespace/class information in the printable name.
2221 * opts.c (add_comma_separated_to_vector): Add NUL terminator
2222 to tokens entered into the vector.
2223
2224 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
2225
2226 * tree-nested.c (build_simple_mem_ref_notrap): New function.
2227 (get_static_chain): Call it instead of build_simple_mem_ref.
2228 (get_frame_field): Likewise.
2229 (get_nonlocal_debug_decl): Likewise.
2230 (convert_nonlocal_reference_op): Likewise.
2231
2232 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
2233
2234 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
2235 declaration.
2236 (arc_compute_frame_size): Millicode is disabled when compiling
2237 ISR.
2238 (arc_return_address_register): Likewise.
2239 (arc_compute_function_type): Likewise.
2240 (arc_compute_frame_size): Likewise.
2241 (secondary_reload_info): Likewise.
2242 (arc_get_unalign): Likewise.
2243 (arc_can_use_return_insn): Declare.
2244 * config/arc/arc.c (AUX_LP_START): Define
2245 (AUX_LP_END): Likewise.
2246 (arc_frame_info): Update gmask member to 64-bit datum.
2247 (GMASK_LEN): Update.
2248 (arc_compute_function_type): Make it static, move it forward.
2249 (arc_must_save_register): Update, consider the extra regs.
2250 (arc_compute_millicode_save_restore_regs): Update to use the 64
2251 bit gmask.
2252 (arc_compute_frame_size): Likewise.
2253 (arc_enter_leave_p): Likewise.
2254 (arc_save_callee_saves): Likewise.
2255 (arc_restore_callee_saves): Likewise.
2256 (arc_save_callee_enter): Likewise.
2257 (arc_restore_callee_leave): Likewise.
2258 (arc_save_callee_milli): Likewise.
2259 (arc_restore_callee_milli): Likewise.
2260 (arc_expand_prologue): Add new interrupt handling.
2261 (arc_return_address_register): Make it static, move it forward.
2262 (arc_expand_epilogue): Add new interrupt handling.
2263 (arc_get_unalign): Delete.
2264 (arc_epilogue_uses): Make sure we do not remove the extra
2265 saved/restored registers when interrupt.
2266 (arc_can_use_return_insn): New function.
2267 (push_reg): Likewise.
2268 (pop_reg): Likewise.
2269 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
2270 procedures.
2271 (arc_restore_callee_saves): Likewise, but restoring.
2272 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
2273 (R33_REG): Likewise.
2274 (R34_REG): Likewise.
2275 (R35_REG): Likewise.
2276 (R36_REG): Likewise.
2277 (R37_REG): Likewise.
2278 (R38_REG): Likewise.
2279 (R39_REG): Likewise.
2280 (R45_REG): Likewise.
2281 (R46_REG): Likewise.
2282 (R47_REG): Likewise.
2283 (R48_REG): Likewise.
2284 (R49_REG): Likewise.
2285 (R50_REG): Likewise.
2286 (R51_REG): Likewise.
2287 (R52_REG): Likewise.
2288 (R53_REG): Likewise.
2289 (R54_REG): Likewise.
2290 (R55_REG): Likewise.
2291 (R56_REG): Likewise.
2292 (R58_REG): Likewise.
2293 (type): Add rtie attribute.
2294 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
2295 (movsi_insn): Accept moves to lp_count.
2296 (rtie): Update pattern.
2297 (simple_return): Simplify it, don't use this pattern as a return
2298 from an interrupt.
2299 (arc600_rtie): New pattern.
2300 (p_return_i): Clean up.
2301 (return): Likewise.
2302 * config/arc/builtins.def (rtie): Only available for non ARC6xx
2303 family CPUs.
2304 * config/arc/predicates.md (move_src_operand): Consider lp_count
2305 as a register.
2306
2307 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
2308
2309 * config/s390/predicates.md (addv_const_operand): New predicate.
2310 * config/s390/s390-modes.def (CCO): New condition code mode.
2311 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
2312 (s390_branch_condition_mask): Likewise.
2313 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
2314 ("mulv<mode>4"): New expanders.
2315 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
2316 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
2317 pattern definitions.
2318
2319 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2320
2321 PR middle-end/91166
2322 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
2323 (define_predicates): Add entry for uniform_vector_p.
2324 (vec_same_elem_p): New match pattern.
2325
2326 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2327
2328 PR bootstrap/87030
2329 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
2330 * config/i386/darwin32-biarch.h .. to here.
2331 * config/i386/darwin64-biarch.h: Adjust comments.
2332 * config/rs6000/darwin32-biarch.h: Likewise.
2333 * config/rs6000/darwin64-biarch.h: Likewise.
2334 * config.gcc: Missed commit from r273746
2335 (*-*-darwin*): Don't include CPU t-darwin here.
2336 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2337 an error message if i686-darwin configuration is attempted for
2338 Darwin >= 18.
2339
2340 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
2341
2342 PR bootstrap/87030
2343 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
2344 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2345 an error message if i686-darwin configuration is attempted for
2346 Darwin >= 18.
2347 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
2348 (powerpc-*-darwin*): Use biarch files where needed.
2349 (powerpc64-*-darwin*): Likewise.
2350 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
2351 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2352 arch case.
2353 * config/i386/darwin32-biarch.h: New.
2354 * config/i386/darwin64.h: Rename.
2355 * config/i386/darwin64-biarch.h: To this.
2356 * config/i386/t-darwin: Rename.
2357 * config/i386/t-darwin32-biarch: To this.
2358 * config/i386/t-darwin64: Rename.
2359 * config/i386/t-darwin64-biarch: To this.
2360 * config/rs6000/darwin32-biarch.h: New.
2361 * config/rs6000/darwin64.h: Rename.
2362 * config/rs6000/darwin64-biarch.h: To this.
2363 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2364 arch case.
2365 * config/rs6000/t-darwin8: Rename.
2366 * config/rs6000/t-darwin32-biarch: To this.
2367 * config/rs6000/t-darwin64 Rename.
2368 * config/rs6000/t-darwin64-biarch: To this.
2369
2370 2019-07-23 Martin Sebor <msebor@redhat.com>
2371
2372 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
2373
2374 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2375
2376 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
2377 (rh): New alias for it.
2378
2379 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2380
2381 * gdbhooks.py: Pass replace=True to
2382 gdb.printing.register_pretty_printer.
2383
2384 2019-07-23 Richard Biener <rguenther@suse.de>
2385
2386 PR debug/91231
2387 * lto-streamer-in.c (input_function): Drop inline-entry markers
2388 that ended up with an unknown location block.
2389
2390 2019-07-23 Richard Biener <rguenther@suse.de>
2391
2392 PR tree-optimization/83518
2393 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
2394 init from a constant even when partial defs are already recorded.
2395
2396 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2397
2398 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
2399 * config/i386/znver1.md: Enable patterns for znver2 and add store
2400 variants which use extra AGU unit.
2401
2402 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2403
2404 * config/i386/i386-options.c (ix86_option_override_internal): Default
2405 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
2406 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
2407 for ZNVER2.
2408
2409 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2410
2411 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
2412 (znver2_costs): Update 256 bit SSE costs and multiplication.
2413
2414 2019-07-23 Jan Beulich <jbeulich@suse.com>
2415
2416 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
2417 Require only AVX512F.
2418 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
2419 alternative expanding to vpternlog.
2420
2421 2019-07-23 Martin Liska <mliska@suse.cz>
2422
2423 * dwarf2out.c (gen_producer_string): Canonize -flto=N
2424 to -flto in dwarf producer string.
2425
2426 2019-07-23 Richard Biener <rguenther@suse.de>
2427
2428 * tree-cfg.c (label_for_bb): Remove global var.
2429 (main_block_label): Take label_for_bb as argument.
2430 (cleanup_dead_labels_eh): Likewise, adjust.
2431 (cleanup_dead_labels): Adjust.
2432
2433 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2434
2435 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
2436 Configurations): Add documentation for __builtin_mtfsf.
2437
2438 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
2439
2440 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
2441 * config/riscv/riscv.c (riscv_constant_alignment): Use
2442 riscv_align_data_type.
2443 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
2444 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2445 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2446 * config/riscv/riscv.opt (malign-data): New.
2447 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
2448
2449 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
2450
2451 * cgraph.c (dump_graphviz): New function.
2452 * cgraph.h (dump_graphviz): New function.
2453 * symtab.c (dump_graphviz): New function.
2454
2455 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
2456
2457 * config/aarch64/aarch64-simd.md
2458 (*aarch64_simd_sra<mode>): New.
2459 * config/aarch64/iterators.md
2460 (SHIFTRT): New iterator.
2461 (sra_op): New attribute.
2462
2463 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2464
2465 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
2466 callee-saved regs R4->R10 in an interrupt function that calls another
2467 function.
2468
2469 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2470
2471 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
2472 (_mm_blendv_epi8): New.
2473
2474 2019-07-22 Richard Biener <rguenther@suse.de>
2475
2476 PR tree-optimization/91221
2477 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
2478 restrict partial-def handling of empty constructors and
2479 memset to refs with known offset.
2480
2481 2019-07-22 Jan Beulich <jbeulich@suse.com>
2482
2483 * config/i386/sse.md (ternlogsuffix): New.
2484 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
2485 AVX512F is in use.
2486 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
2487
2488 2019-07-22 Martin Liska <mliska@suse.cz>
2489
2490 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
2491 comment.
2492 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
2493
2494 2019-07-22 Martin Liska <mliska@suse.cz>
2495
2496 * lto-section-in.c (lto_get_section_data):
2497 Use new function get_compression.
2498 * lto-streamer-out.c (produce_lto_section): Use
2499 set_compression to encode compression algorithm.
2500 * lto-streamer.h (struct lto_section): Do not
2501 use bitfields in the format.
2502
2503 2019-07-22 Martin Liska <mliska@suse.cz>
2504
2505 PR driver/91172
2506 * opts-common.c (decode_cmdline_option): Decode
2507 argument of -Werror and check it for a wrong language.
2508 * opts-global.c (complain_wrong_lang): Remove such case.
2509
2510 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
2511
2512 * config/arc/arc.c (prepare_move_operands): Always use an
2513 intermediate register when storing a TLS symbols.
2514
2515 2019-07-22 Stafford Horne <shorne@gmail.com>
2516
2517 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
2518 force_reg.
2519
2520 2019-07-22 Stafford Horne <shorne@gmail.com>
2521
2522 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
2523 and munordered-float validations.
2524 * config/or1k/constraints.md (d): New register constraint.
2525 * config/or1k/predicates.md (fp_comparison_operator): New.
2526 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
2527 operands.
2528 (or1k_expand_compare): Normalize unordered comparisons.
2529 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
2530 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
2531 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
2532 * config/or1k/or1k.md (type): Add fpu.
2533 (fpu): New instruction reservation.
2534 (F, f, fr, fi, FI, FOP, fop): New.
2535 (<fop><F:mode>3): New ALU instruction definition.
2536 (float<fi><F:mode>2): New conversion instruction definition.
2537 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
2538 (fpcmpcc): New code iterator.
2539 (*sf_fp_insn): New instruction definition.
2540 (cstore<F:mode>4): New expand definition.
2541 (cbranch<F:mode>4): New expand definition.
2542 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
2543 munordered-float): New options.
2544 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
2545 munordered-float.
2546
2547 2019-07-22 Stafford Horne <shorne@gmail.com>
2548
2549 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
2550 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
2551 documenation to be more clear.
2552 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
2553 more clear.
2554 * config/or1k/or1k.opt (mrori): New option.
2555 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
2556 msfimm, mshftimm): Rewrite documentation to be more clear.
2557 * config/or1k/or1k.md (insn_support): Add ror and rori.
2558 (enabled): Add conditions for ror and rori.
2559 (rotrsi3): Replace condition for shftimm with ror and rori.
2560
2561 2019-07-22 Stafford Horne <shorne@gmail.com>
2562
2563 PR target/90363
2564 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
2565 (extend<mode>si2): Update predicate.
2566 * config/or1k/predicates.md (volatile_mem_operand): New.
2567 (reg_or_mem_operand): New.
2568
2569 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
2570
2571 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
2572 * config/rs6000/rs6000-call.c: ... to here.
2573
2574 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2575
2576 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
2577 memory.
2578
2579 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2580
2581 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
2582
2583 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2584
2585 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
2586
2587 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2588
2589 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
2590 (any_memory_operand): New predicate.
2591 (reg_or_mem_operand): Use it.
2592
2593 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2594
2595 PR target/91204
2596 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
2597
2598 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
2599
2600 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
2601 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
2602
2603 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2604
2605 * tree.def (OMP_LOOP): New tree code.
2606 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
2607 (enum omp_clause_bind_kind): New enum.
2608 (struct tree_omp_clause): Add subcode.bind_kind.
2609 * tree.h (OMP_LOOP_CHECK): Rename to ...
2610 (OMP_LOOPING_CHECK): ... this.
2611 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
2612 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
2613 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
2614 (OMP_CLAUSE_BIND_KIND): Define.
2615 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2616 bind clause entries.
2617 (walk_tree_1): Handle OMP_CLAUSE_BIND.
2618 * tree-pretty-print.c (dump_omp_clause): Likewise.
2619 (dump_generic_node): Handle OMP_LOOP.
2620 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
2621 (in_omp_construct): New variable.
2622 (is_gimple_stmt): Handle OMP_LOOP.
2623 (gimplify_scan_omp_clauses): For lastprivate don't set
2624 check_non_private if code == OMP_LOOP. For reduction clause
2625 on OMP_LOOP combined with parallel or teams propagate as shared
2626 on the combined construct. Handle OMP_CLAUSE_BIND.
2627 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
2628 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
2629 for constructs from a loop construct to gimplify_scan_omp_clauses.
2630 Don't predetermine iterator linear on OMP_SIMD from loop construct.
2631 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
2632 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
2633 to match the implicit ORT_TARGET construct around whole body.
2634 Temporarily clear in_omp_construct when processing body.
2635 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
2636 etc. temporarily set in_omp_construct when processing body.
2637 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
2638 * omp-low.c (struct omp_context): Add loop_p.
2639 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
2640 in that the original var might be private.
2641 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
2642 (check_omp_nesting_restrictions): Adjust nesting restrictions for
2643 addition of loop construct.
2644 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
2645
2646 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
2647 lastprivate non-addressable iterator of a collapse(1) simd.
2648
2649 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
2650
2651 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
2652 as in rs6000.c.
2653
2654 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
2655
2656 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
2657 refer to default conditions. Warn for the 'y' spec which is ignored
2658 by current linkers.
2659
2660 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
2661
2662 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
2663 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2664 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2665 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2666 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2667 init_cumulative_args, rs6000_promote_function_mode,
2668 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2669 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2670 rs6000_function_arg_boundary, rs6000_parm_offset,
2671 rs6000_parm_start, rs6000_arg_size,
2672 rs6000_darwin64_record_arg_advance_flush,
2673 rs6000_darwin64_record_arg_advance_recurse,
2674 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2675 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2676 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2677 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2678 rs6000_finish_function_arg, rs6000_function_arg,
2679 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2680 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2681 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2682 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2683 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2684 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2685 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2686 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2687 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2688 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2689 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2690 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2691 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2692 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2693 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2694 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2695 get_element_number, altivec_expand_vec_set_builtin,
2696 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2697 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2698 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2699 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2700 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2701 rs6000_expand_builtin, rs6000_vector_type,
2702 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2703 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2704 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
2705 to rs6000-call.c.
2706 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
2707 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2708 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2709 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2710 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2711 init_cumulative_args, rs6000_promote_function_mode,
2712 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2713 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2714 rs6000_function_arg_boundary, rs6000_parm_offset,
2715 rs6000_parm_start, rs6000_arg_size,
2716 rs6000_darwin64_record_arg_advance_flush,
2717 rs6000_darwin64_record_arg_advance_recurse,
2718 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2719 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2720 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2721 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2722 rs6000_finish_function_arg, rs6000_function_arg,
2723 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2724 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2725 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2726 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2727 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2728 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2729 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2730 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2731 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2732 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2733 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2734 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2735 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2736 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2737 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2738 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2739 get_element_number, altivec_expand_vec_set_builtin,
2740 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2741 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2742 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2743 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2744 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2745 rs6000_expand_builtin, rs6000_vector_type,
2746 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2747 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2748 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
2749 to here from rs6000.c.
2750 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
2751 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
2752 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
2753 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
2754 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
2755 rs6000_return_in_memory, rs6000_return_in_msb,
2756 rs6000_pass_by_reference, setup_incoming_varargs,
2757 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
2758 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
2759 rs6000_function_arg_padding, rs6000_function_arg,
2760 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
2761 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
2762 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
2763 rs6000_passes_long_double, rs6000_passes_vector,
2764 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
2765 altivec_builtin_mask_for_load) Add declarations.
2766 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
2767 * config/config.gcc: Add new source file rs6000-call.c to garbage
2768 collector and extra_objs.
2769
2770 2019-07-19 Jeff Law <law@redhat.com>
2771
2772 PR tree-optimization/86061
2773 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2774 strncpy. Drop some trivial dead code.
2775 (maybe_trim_memstar_call): Handle strncpy.
2776
2777 2019-07-19 Richard Biener <rguenther@suse.de>
2778
2779 PR tree-optimization/91211
2780 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2781 memset encoding size.
2782
2783 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
2784
2785 PR target/91204
2786 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
2787
2788 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
2789
2790 PR ipa/91194
2791 * ipa-inline.c (recursive_inlining): Fix limits check.
2792
2793 2019-07-19 Richard Biener <rguenther@suse.de>
2794
2795 PR tree-optimization/91200
2796 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
2797 no PHI nodes in middle-bb.
2798
2799 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
2800
2801 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
2802 to +sve-bitperm.
2803 * config/aarch64/aarch64-option-extensions.def: Likewise.
2804
2805 2019-07-19 Jakub Jelinek <jakub@redhat.com>
2806
2807 PR middle-end/91190
2808 * function.c (insert_temp_slot_address): Store into the hash table
2809 a copy of address to avoid RTL sharing issues.
2810
2811 2019-07-19 Richard Biener <rguenther@suse.de>
2812
2813 PR tree-optimization/91207
2814 Revert
2815 2019-07-17 Richard Biener <rguenther@suse.de>
2816
2817 PR tree-optimization/91178
2818 * tree-vect-stmts.c (get_group_load_store_type): For SLP
2819 loads with a gap larger than the vector size always use
2820 VMAT_STRIDED_SLP.
2821 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
2822 avoid loading vectors that are only contained in the gap
2823 and thus are not needed.
2824
2825 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2826
2827 * config/i386/i386.md (*addqi_2_slp): Remove.
2828 (*<code>qi_2_slp): Ditto.
2829
2830 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
2831
2832 * config/rs6000/predicates.md (prefixed_mem_operand): Call
2833 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
2834 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
2835 Rename function from rs6000_prefixed_address.
2836 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2837 TARGET_HAS_TOC.
2838 (TARGET_TOC): Likewise.
2839 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2840 rs6000.h.
2841 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2842 TARGET_HAS_TOC.
2843 (TARGET_TOC): Likewise.
2844 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2845 rs6000.h.
2846 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2847 TARGET_HAS_TOC.
2848 (TARGET_TOC): Likewise.
2849 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2850 check to require -mcmodel=medium for pc-relative addressing.
2851 (create_TOC_reference): Add assertion for TARGET_TOC.
2852 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
2853 TARGET_NO_TOC.
2854 (rs6000_emit_move): Likewise.
2855 (TOC_alias_set): Rename TOC alias set static variable from 'set'
2856 to 'TOC_alias_set'.
2857 (get_TOC_alias_set): Likewise.
2858 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
2859 TARGET_NO_TOC.
2860 (rs6000_can_eliminate): Likewise.
2861 (rs6000_prefixed_address_mode_p): Rename function from
2862 rs6000_prefixed_address.
2863 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
2864 TARGET_HAS_TOC and not pc-relative.
2865 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
2866 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2867 TARGET_HAS_TOC.
2868 (TARGET_TOC): Likewise.
2869 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2870 rs6000.h.
2871
2872 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2873
2874 PR target/91188
2875 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
2876 for operand 0. Do not use (match_dup) to match operand 1 with
2877 operand 0. Add check in insn constraint that either input operand
2878 matches operand 0. Use SWI12 mode iterator to also handle
2879 HImode operands.
2880 (*and<mode>_1_slp): Ditto.
2881 (*<code>qi_1_slp): Ditto.
2882 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
2883 Do not use (match_dup) to match operand 1 with operand 0. Add
2884 check in insn constraint that operand 1 matches operand 0.
2885 Use SWI12 mode iterator to also handle HImode operands.
2886 (*ashl<mode>3_1_slp): Ditto.
2887 (*<shift_insn><mode>3_1_slp): Ditto.
2888 (*<rotate_insn><mode>3_1_slp): Ditto.
2889
2890 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2891
2892 * config/arm/arm-builtins.c
2893 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
2894 (arm_expand_unop_builtin): Likewise.
2895 * config/arm/crypto.md
2896 (crypto_sha1h): Convert from define_insn to define_expand.
2897 (crypto_<crypto_pattern>): Likewise.
2898 (crypto_sha1h_lb): New define_insn.
2899 (crypto_<crypto_pattern>_lb): Likewise.
2900
2901 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2902
2903 PR target/90317
2904 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
2905 (vsha1cq_u32): Likewise.
2906 (vsha1pq_u32): Likewise.
2907 (vsha1mq_u32): Likewise.
2908 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
2909 vec select.
2910 (crypto_sha1c): Correct vec select.
2911 (crypto_sha1m): Likewise.
2912 (crypto_sha1p): Likewise.
2913
2914 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
2915
2916 * config/arm/predicates.md (arm_borrow_operation): New predicate.
2917 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
2918 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
2919 (subdi_zesidi_zesidi): Likewise.
2920 (negdi2_compare, negdi2_insn): Likewise.
2921 (negdi_extensidi): Likewise.
2922 (negdi_zero_extendsidi): Likewise.
2923 (arm_cmpdi_insn): Likewise.
2924 (subsi3_carryin): Use arm_borrow_operation.
2925 (subsi3_carryin_const): Likewise.
2926 (subsi3_carryin_const0): Likewise.
2927 (subsi3_carryin_compare): Likewise.
2928 (subsi3_carryin_compare_const): Likewise.
2929 (subsi3_carryin_compare_const0): Likewise.
2930 (subsi3_carryin_shift): Likewise.
2931 (rsbsi3_carryin_shift): Likewise.
2932 (negsi2_carryin_compare): Likewise.
2933
2934 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
2935
2936 PR tree-optimization/91137
2937 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
2938 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
2939 Init, use and fini the above new field.
2940 (determine_base_object_1): New function.
2941 (determine_base_object): Reimplement using walk_tree.
2942
2943 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
2944
2945 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
2946 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
2947 CLEANUP_FORCE_FAST_DCE is set.
2948 * ifcvt.c (rest_of_handle_if_conversion): Pass
2949 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
2950 if-conversion succeeded.
2951
2952 2019-07-18 Richard Biener <rguenther@suse.de>
2953
2954 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
2955 branches to make code less indented.
2956
2957 2019-07-17 Alexandre Oliva <oliva@adacore.com>
2958
2959 PR middle-end/81824
2960 * attribs.c (decls_mismatched_attributes): Simplify the logic
2961 that avoids duplicates and false positives.
2962
2963 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
2964
2965 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
2966 data into data section when generating PIC code.
2967 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
2968 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
2969 generating code for SOM targets earlier than HP-UX 11. Otherwise,
2970 return 2 for SOM and 0 for other targets.
2971
2972 2019-07-17 Jeff Law <law@redhat.com>
2973
2974 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
2975 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
2976 avoid unexpected switch statement fallthru.
2977
2978 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
2979
2980 * config/i386/i386.md (*add<dwi>3_doubleword):
2981 Remove redundant constraints.
2982 (*add<mode>_1): Ditto.
2983 (*addhi_1): Ditto.
2984 (*addqi_1): Ditto.
2985 (*addqi_1_slp): Ditto.
2986 (*add<mode>_2): Ditto.
2987 (*addv<mode>4): Ditto.
2988 (*sub<dwi>3_doubleword): Ditto.
2989 (*sub<mode>_1): Ditto.
2990 (*subqi_1_slp): Ditto.
2991 (*sub<mode>_2): Ditto.
2992 (*subv<mode>4): Ditto.
2993 (*sub<mode>_3): Ditto.
2994 (@add<mode>3_carry): Ditto.
2995 (@sub<mode>3_carry): Ditto.
2996 (*add<mode>3_cc_overflow_1): Ditto.
2997 (*add<mode>3_zext_cc_overflow_2): Ditto.
2998 (*anddi_1): Ditto.
2999 (*and<mode>_1): Ditto.
3000 (*andqi_1): Ditto.
3001 (*andqi_1_slp): Ditto.
3002 (*anddi_2): Ditto.
3003 (*andqi_2_maybe_si): Ditto.
3004 (*and<mode>_2): Ditto.
3005 (*andqi_2_slp): Ditto.
3006 (*<code><mode>_1): Ditto.
3007 (*<code>qi_1): Ditto.
3008 (*<code>qi_1_slp): Ditto.
3009 (*<code><mode>_2): Ditto.
3010 (*<code>qi_2_slp): Ditto.
3011
3012 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
3013
3014 * alias.c (record_component_aliases): Do not simplify pointed-to
3015 types of ODR types.
3016
3017 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3018
3019 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
3020 partial reg stall on alternative 2.
3021
3022 2019-07-17 Richard Biener <rguenther@suse.de>
3023
3024 PR tree-optimization/91178
3025 * tree-ssa.c (release_defs_bitset): Iterate from higher to
3026 lower SSA names to avoid quadratic behavior in the common case.
3027 * tree-data-ref.c (split_constant_offset): Add limit argument
3028 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3029 (split_constant_offset_1): Add limit argument and use it to
3030 limit SSA def walking. Optimize the common plus/minus case.
3031
3032 2019-07-17 Richard Biener <rguenther@suse.de>
3033
3034 PR tree-optimization/91178
3035 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3036 loads with a gap larger than the vector size always use
3037 VMAT_STRIDED_SLP.
3038 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3039 avoid loading vectors that are only contained in the gap
3040 and thus are not needed.
3041
3042 2019-07-17 Richard Biener <rguenther@suse.de>
3043
3044 PR tree-optimization/91180
3045 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
3046 computation for memset partial defs.
3047
3048 2019-07-17 Jakub Jelinek <jakub@redhat.com>
3049
3050 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
3051 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
3052 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
3053 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
3054 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
3055 * omp-grid.c (grid_process_grid_body,
3056 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
3057 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
3058 == GF_OMP_FOR_KIND_SIMD.
3059 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
3060 check_omp_nesting_restrictions, scan_omp_1_stmt,
3061 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
3062 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
3063 omp_find_scan): Likewise.
3064 * omp-expand.c (expand_omp_for): Likewise.
3065 * omp-general.c (omp_extract_for_data): Likewise.
3066
3067 PR tree-optimization/91157
3068 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
3069 a vector boolean with scalar mode.
3070 (expand_vector_condition): Handle first operand being a vector boolean
3071 with scalar mode.
3072 (expand_vector_operations_1): For comparisons, don't bail out early
3073 if the return type is vector boolean with scalar mode, but comparison
3074 operand type is not.
3075
3076 2019-07-17 Richard Biener <rguenther@suse.de>
3077
3078 PR tree-optimization/91181
3079 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
3080 IFN_LOADs as calls.
3081
3082 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
3083
3084 * config/i386/i386.md (*testdi_1): Match CCZmode for
3085 constants that might have the SImode sign bit set.
3086 (*testqi_1_maybe_si): Remove "!" constraint modifier.
3087 Use correct constraints for pentium pairing.
3088 (*test<mode>_1): Ditto.
3089
3090 2019-07-16 Jeff Law <law@redhat.com>
3091
3092 PR rtl-optimization/91173
3093 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
3094 SSA_NAME with a constant value, fold its value into the offset
3095 and clear the base before calling gen_addr_rtx.
3096
3097 2019-07-16 Jakub Jelinek <jakub@redhat.com>
3098
3099 PR rtl-optimization/91164
3100 * dse.c (rest_of_handle_dse): If dead edges have been purged,
3101 invalidate dominance info.
3102
3103 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3104
3105 * read-md.h (md_reader::record_potential_iterator_use): Add a
3106 file_location parameter.
3107 * read-rtl.c (attribute_use::loc): New field.
3108 (map_attr_string): Take a file_location parameter. Report cases
3109 in which attributes map to multiple distinct values.
3110 (apply_attribute_uses): Update call accordingly.
3111 (md_reader::handle_overloaded_name): Likewise.
3112 (md_reader::apply_iterator_to_string): Likewise. Skip empty
3113 nonnull strings.
3114 (record_attribute_use): Take a file_location parameter.
3115 Initialize attribute_use::loc.
3116 (md_reader::record_potential_iterator_use): Take a file_location
3117 parameter. Update call to record_attribute_use.
3118 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
3119 (rtx_reader::read_rtx_code): Likewise.
3120 (rtx_reader::read_rtx_operand): Likewise. Record a location
3121 for implicitly-expanded empty strings.
3122
3123 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3124
3125 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
3126 Use file_location instead of separate fields.
3127 (md_reader::set_md_ptr_loc): Take a file_location instead of a
3128 separate filename and line number.
3129 * read-md.c (ptr_loc): As above.
3130 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
3131 (md_reader::fprint_md_ptr_loc): Likewise.
3132 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
3133 instead of a separate filename and line number.
3134 (md_reader::read_string): Update call accordingly.
3135
3136 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3137
3138 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
3139 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
3140 leaving the choice between SFDF and P implicit.
3141 (*mov<mode>_update2): Likewise.
3142 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
3143 rather than leaving the choice betweem IBM128 and GPR implicit.
3144 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
3145 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
3146 QHSI implicit.
3147 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
3148 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
3149 * config/rs6000/vsx.md
3150 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
3151 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
3152 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
3153 and VSX_EXTRACT_I implicit.
3154
3155 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3156
3157 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
3158 Explicitly use <MOVEP1:MODE> for the mode attribute.
3159
3160 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
3161
3162 PR bootstrap/91176
3163 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
3164
3165 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
3166
3167 PR target/91050
3168 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
3169 .machine directive.
3170
3171 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
3172
3173 * config/i386/i386.md (@test<mode>_ccno_1):
3174 Rename from test<mode>_ccno_1.
3175 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
3176 (*testqi_1_maybe_si): Remove modrm attribute.
3177 (*test<mode>_1): Ditto.
3178 * config/i386/i386-expand.c (ix86_split_idivmod): Use
3179 gen_test_ccno_1 and gen_extend_insn.
3180
3181 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
3182
3183 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
3184 to 0.
3185
3186 2019-07-15 Richard Biener <rguenther@suse.de>
3187
3188 PR middle-end/91162
3189 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
3190 node make sure to replace all uses with something valid.
3191
3192 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
3193
3194 PR tree-optimization/88497
3195 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
3196 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
3197 function undistribute_bitref_for_vector.
3198 (undistribute_bitref_for_vector): New function.
3199 (cleanup_vinfo_map): Likewise.
3200 (sort_by_mach_mode): Likewise.
3201
3202 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
3203
3204 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
3205 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
3206 and testdi_ccno_1 using SWI48 mode attribute.
3207 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
3208 x86_64_szext_general_operand.
3209 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
3210 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
3211 instead of genera_operand mode attribute.
3212
3213 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
3214
3215 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
3216 fopen and fclose to their respective types.
3217 (DotFn.invoke): Ditto.
3218
3219 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
3220
3221 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
3222 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
3223 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
3224 (array_index_predicate): Remove.
3225 (analyze_function_body): Account cost for variable ofsetted array
3226 indexing.
3227 (estimate_node_size_and_time): Do not compute array index hint.
3228 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
3229 (inline_read_section): Do not read array index hint.
3230 (ipa_fn_summary_write): Do not write array index hint.
3231 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
3232 * ipa-cp.c (hint_time_bonus): Remove.
3233 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
3234 (ipa_fnsummary): Remove array_index.
3235 * ipa-inline.c (want_inline_small_function_p): Do not use
3236 array_index.
3237 (edge_badness): Likewise.
3238 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
3239
3240 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
3241
3242 PR target/91148
3243 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
3244 superfluous "builtin function" phrasing.
3245
3246 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
3247
3248 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
3249 Break out from ...
3250 (aliasing_component_refs_walk): Break out from ...
3251 (aliasing_component_refs_p): ... here.
3252
3253 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
3254
3255 PR target/91148
3256 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
3257 "builtin function" phrasing.
3258
3259 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3260
3261 PR target/90723
3262 * recog.h (temporary_volatile_ok): New class.
3263 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
3264 volatile_ok temporarily to true using temporary_volatile_ok.
3265 * expr.c (emit_block_move_via_cpymem): Likewise.
3266 * optabs.c (maybe_legitimize_operand): Likewise.
3267
3268 2019-07-13 Jakub Jelinek <jakub@redhat.com>
3269
3270 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
3271 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
3272 uses inside of order(concurrent) constructs.
3273 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
3274 OMP_CLAUSE_ORDER is seen.
3275 * omp-low.c (struct omp_context): Add order_concurrent member.
3276 (scan_sharing_clauses): Set ctx->order_concurrent if
3277 OMP_CLAUSE_ORDER is seen.
3278 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
3279 of simd order(concurrent). Diagnose constructs not allowed inside of
3280 for order(concurrent).
3281 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
3282 complaining about static double setjmp (double); or class static
3283 methods or non-global namespace setjmps.
3284 (omp_runtime_api_call): New function.
3285 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
3286 order(concurrent) loops.
3287
3288 2019-07-12 Martin Sebor <msebor@redhat.com>
3289
3290 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
3291 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
3292 * tree-vrp.c (vrp_prop::check_mem_ref): Use
3293 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3294
3295 2019-07-12 Jan Hubicka <jh@suse.cz>
3296
3297 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
3298 (indirect_refs_may_alias_p): ... here.
3299 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
3300 mem refs in the access paths.
3301
3302 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
3303
3304 PR tree-optimization/89430
3305 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
3306 store elimination for local variable without address escape.
3307
3308 2019-07-12 Jeff Law <law@redhat.com>
3309
3310 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
3311 for the ".far" section.
3312
3313 2019-07-12 Richard Biener <rguenther@suse.de>
3314
3315 PR tree-optimization/91145
3316 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
3317 chain check.
3318
3319 2019-07-12 Alexandre Oliva <oliva@adacore.com>
3320
3321 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
3322 rather than this_state as the lowering context for the ELSE
3323 seq in a GIMPLE_EH_ELSE.
3324
3325 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3326
3327 * vector-builder.h (vector_builder::elt): Allow already-supplied
3328 elements to be read back before building is complete.
3329
3330 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3331
3332 PR rtl-optimization/91136
3333 * df-core.c (ACCESSING REFS): Fix typos in comment.
3334 * resource.c (mark_target_live_reg): Add artificial defs that occur at
3335 the beginning of the block to the initial set of live registers.
3336
3337 2019-07-12 Richard Biener <rguenther@suse.de>
3338
3339 * fold-const.h (get_array_ctor_element_at_index): Adjust.
3340 * fold-const.c (get_array_ctor_element_at_index): Add
3341 ctor_idx output parameter informing the caller where in
3342 the constructor the element was (not) found. Add early exit
3343 for when the ctor is sorted.
3344 * gimple-fold.c (fold_array_ctor_reference): Support constant
3345 folding across multiple array elements.
3346
3347 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3348
3349 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
3350 doesn't have location, set the current location to the function's end.
3351
3352 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3353
3354 * config/aarch64/aarch64.md (*compare_condjump<mode>)
3355 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
3356 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
3357 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
3358 * config/aarch64/aarch64-simd.md
3359 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3360 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
3361 * config/aarch64/aarch64-sve.md
3362 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
3363 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
3364
3365 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3366
3367 * doc/md.texi: Document that @ patterns can have different
3368 numbers of operands.
3369 * genemit.c (handle_overloaded_gen): Handle this case.
3370 * genopinit.c (handle_overloaded_gen): Likewise.
3371 * gensupport.c (replace_operands_with_dups): Iterate over
3372 the new rtx's format rather than the old one's.
3373
3374 2019-07-12 Jakub Jelinek <jakub@redhat.com>
3375
3376 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
3377 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3378 order clause entries.
3379 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
3380 * tree-pretty-print.c (dump_omp_clause): Likewise.
3381 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3382 Likewise.
3383 * omp-low.c (scan_sharing_clauses): Likewise.
3384 * tree-nested.c (convert_nonlocal_omp_clauses,
3385 convert_local_omp_clauses): Likewise.
3386
3387 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
3388
3389 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
3390 fallthrough target of current basic block isn't the placed
3391 right next.
3392
3393 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
3394
3395 PR target/90980
3396 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
3397 (_mm512_storeu_epi64): Likewise.
3398 (_mm512_loadu_epi32): Likewise.
3399 (_mm512_storeu_epi32): Likewise.
3400 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
3401 (_mm_storeu_epi64): Likewise.
3402 (_mm256_storeu_epi32): Likewise.
3403 (_mm_storeu_epi32): Likewise.
3404
3405 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3406
3407 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
3408
3409 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3410
3411 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
3412 Handle Modula-2.
3413
3414 2019-07-11 Jakub Jelinek <jakub@redhat.com>
3415
3416 PR target/91124
3417 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
3418 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3419 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
3420 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
3421 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
3422 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
3423 define_insns.
3424 (ufix_truncv2dfv2si2<mask_name>): Change into ...
3425 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
3426 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
3427 define_insns.
3428 (sse2_cvttpd2dq<mask_name>): Change into ...
3429 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
3430 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
3431 (*sse2_cvtpd2dq<mask_name>): Change into ...
3432 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3433 Add "C" constraint to const0_operand.
3434 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
3435 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
3436 changes.
3437
3438 PR target/91124
3439 * config/i386/i386-builtin-types.def
3440 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
3441 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
3442 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
3443 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
3444 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
3445 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
3446 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
3447 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
3448 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
3449 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
3450 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
3451 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
3452 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
3453 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
3454 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
3455 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
3456 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
3457 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
3458 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
3459 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
3460 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
3461 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
3462 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
3463 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
3464 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
3465 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
3466 __builtin_ia32_vpdpbusd_v4si_maskz,
3467 __builtin_ia32_vpdpbusds_v16si_mask,
3468 __builtin_ia32_vpdpbusds_v16si_maskz,
3469 __builtin_ia32_vpdpbusds_v8si_mask,
3470 __builtin_ia32_vpdpbusds_v8si_maskz,
3471 __builtin_ia32_vpdpbusds_v4si_mask,
3472 __builtin_ia32_vpdpbusds_v4si_maskz,
3473 __builtin_ia32_vpdpwssd_v16si_mask,
3474 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
3475 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
3476 __builtin_ia32_vpdpwssd_v4si_maskz,
3477 __builtin_ia32_vpdpwssds_v16si_mask,
3478 __builtin_ia32_vpdpwssds_v16si_maskz,
3479 __builtin_ia32_vpdpwssds_v8si_mask,
3480 __builtin_ia32_vpdpwssds_v8si_maskz,
3481 __builtin_ia32_vpdpwssds_v4si_mask,
3482 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
3483 suffixed types rather than *_INT.
3484 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
3485 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
3486 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
3487 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
3488 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
3489 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
3490
3491 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
3492
3493 * tree-vrp.c (intersect_ranges): If we know the intersection is
3494 empty, there is no need to conservatively add anything else to
3495 the set.
3496
3497 2019-07-11 Richard Biener <rguenther@suse.de>
3498
3499 PR middle-end/91131
3500 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
3501 when the object is volatile and we have not cleared it even though
3502 there are no nonzero elements.
3503
3504 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
3505
3506 * config/rs6000/predicates.md (cint34_operand): Update
3507 SIGNED_34BIT_OFFSET_P call.
3508 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
3509 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
3510 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
3511 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
3512 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
3513 argument.
3514 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
3515 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
3516 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
3517 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
3518 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
3519
3520 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
3521
3522 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
3523 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
3524 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
3525 (DEF_MIN_OSX_VERSION): New.
3526
3527 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3528
3529 * fold-const.c (fold_relational_const): Fix folding of
3530 vector-to-scalar NE_EXPRs.
3531 (test_vector_folding): Add more tests.
3532
3533 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3534
3535 PR target/91060
3536 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
3537 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
3538 (vec_setv2di_internal): Reexpress as...
3539 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
3540 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
3541 rather than gen_neon_vset_lane<mode>.
3542
3543 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
3544
3545 PR target/91102
3546 * lra-constraints.c (process_alt_operands): Don't match user
3547 defined regs only if they are early clobbers.
3548
3549 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
3550
3551 * wide-int.h (wi::lshift): Reject negative values for the fast path.
3552
3553 2019-07-10 Richard Biener <rguenther@suse.de>
3554
3555 PR tree-optimization/91126
3556 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
3557 native encoding offset for BYTES_BIG_ENDIAN.
3558 (vn_reference_lookup_3): Likewise.
3559
3560 2019-07-10 Richard Biener <rguenther@suse.de>
3561
3562 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
3563 LHS whenever possible.
3564
3565 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
3566
3567 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
3568 from ...; work also on duplicated types.
3569 (nonoverlapping_component_refs_since_match): ... here
3570 (ncr_type_uid): Break out from ...
3571 (ncr_compar): ... here; look for TYPE_UID of canonical type if
3572 available.
3573 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
3574 the types and nonoverlapping_component_refs_p_1 to disambiguate.
3575
3576 2019-07-09 Martin Sebor <msebor@redhat.com>
3577
3578 PR tree-optimization/90989
3579 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
3580 optimization to just single character stores.
3581
3582 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
3583
3584 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
3585 Swap operands only once.
3586
3587 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3588
3589 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
3590 for both call instructions.
3591
3592 2019-07-09 John Darrington <john@darrington.wattle.id.au>
3593
3594 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
3595 rather than GET_MODE_BITSIZE to better handle partial integer modes.
3596
3597 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
3598
3599 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
3600 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
3601 function from rs6000-logue.c back to rs6000.c.
3602 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
3603
3604 2019-07-09 Martin Sebor <msebor@redhat.com>
3605
3606 PR c++/61339
3607 * auto-profile.c: Change class-key of PODs to struct and others
3608 to class.
3609 * basic-block.h: Same.
3610 * bitmap.c (bitmap_alloc): Same.
3611 * bitmap.h: Same.
3612 * builtins.c (expand_builtin_prefetch): Same.
3613 (expand_builtin_interclass_mathfn): Same.
3614 (expand_builtin_strlen): Same.
3615 (expand_builtin_mempcpy_args): Same.
3616 (expand_cmpstr): Same.
3617 (expand_builtin___clear_cache): Same.
3618 (expand_ifn_atomic_bit_test_and): Same.
3619 (expand_builtin_thread_pointer): Same.
3620 (expand_builtin_set_thread_pointer): Same.
3621 * caller-save.c (setup_save_areas): Same.
3622 (replace_reg_with_saved_mem): Same.
3623 (insert_restore): Same.
3624 (insert_save): Same.
3625 (add_used_regs): Same.
3626 * cfg.c (get_bb_copy): Same.
3627 (set_loop_copy): Same.
3628 * cfg.h: Same.
3629 * cfganal.h: Same.
3630 * cfgexpand.c (alloc_stack_frame_space): Same.
3631 (add_stack_var): Same.
3632 (add_stack_var_conflict): Same.
3633 (add_scope_conflicts_1): Same.
3634 (update_alias_info_with_stack_vars): Same.
3635 (expand_used_vars): Same.
3636 * cfghooks.c (redirect_edge_and_branch_force): Same.
3637 (delete_basic_block): Same.
3638 (split_edge): Same.
3639 (make_forwarder_block): Same.
3640 (force_nonfallthru): Same.
3641 (duplicate_block): Same.
3642 (lv_flush_pending_stmts): Same.
3643 * cfghooks.h: Same.
3644 * cfgloop.c (flow_loops_cfg_dump): Same.
3645 (flow_loop_nested_p): Same.
3646 (superloop_at_depth): Same.
3647 (get_loop_latch_edges): Same.
3648 (flow_loop_dump): Same.
3649 (flow_loops_dump): Same.
3650 (flow_loops_free): Same.
3651 (flow_loop_nodes_find): Same.
3652 (establish_preds): Same.
3653 (flow_loop_tree_node_add): Same.
3654 (flow_loop_tree_node_remove): Same.
3655 (flow_loops_find): Same.
3656 (find_subloop_latch_edge_by_profile): Same.
3657 (find_subloop_latch_edge_by_ivs): Same.
3658 (mfb_redirect_edges_in_set): Same.
3659 (form_subloop): Same.
3660 (merge_latch_edges): Same.
3661 (disambiguate_multiple_latches): Same.
3662 (disambiguate_loops_with_multiple_latches): Same.
3663 (flow_bb_inside_loop_p): Same.
3664 (glb_enum_p): Same.
3665 (get_loop_body_with_size): Same.
3666 (get_loop_body): Same.
3667 (fill_sons_in_loop): Same.
3668 (get_loop_body_in_dom_order): Same.
3669 (get_loop_body_in_custom_order): Same.
3670 (release_recorded_exits): Same.
3671 (get_loop_exit_edges): Same.
3672 (num_loop_branches): Same.
3673 (remove_bb_from_loops): Same.
3674 (find_common_loop): Same.
3675 (delete_loop): Same.
3676 (cancel_loop): Same.
3677 (verify_loop_structure): Same.
3678 (loop_preheader_edge): Same.
3679 (loop_exit_edge_p): Same.
3680 (single_exit): Same.
3681 (loop_exits_to_bb_p): Same.
3682 (loop_exits_from_bb_p): Same.
3683 (get_loop_location): Same.
3684 (record_niter_bound): Same.
3685 (get_estimated_loop_iterations_int): Same.
3686 (max_stmt_executions_int): Same.
3687 (likely_max_stmt_executions_int): Same.
3688 (get_estimated_loop_iterations): Same.
3689 (get_max_loop_iterations): Same.
3690 (get_max_loop_iterations_int): Same.
3691 (get_likely_max_loop_iterations): Same.
3692 * cfgloop.h (simple_loop_desc): Same.
3693 (get_loop): Same.
3694 (loop_depth): Same.
3695 (loop_outer): Same.
3696 (loop_iterator::next): Same.
3697 (loop_outermost): Same.
3698 * cfgloopanal.c (mark_irreducible_loops): Same.
3699 (num_loop_insns): Same.
3700 (average_num_loop_insns): Same.
3701 (expected_loop_iterations_unbounded): Same.
3702 (expected_loop_iterations): Same.
3703 (mark_loop_exit_edges): Same.
3704 (single_likely_exit): Same.
3705 * cfgloopmanip.c (fix_bb_placement): Same.
3706 (fix_bb_placements): Same.
3707 (remove_path): Same.
3708 (place_new_loop): Same.
3709 (add_loop): Same.
3710 (scale_loop_frequencies): Same.
3711 (scale_loop_profile): Same.
3712 (create_empty_if_region_on_edge): Same.
3713 (create_empty_loop_on_edge): Same.
3714 (loopify): Same.
3715 (unloop): Same.
3716 (fix_loop_placements): Same.
3717 (copy_loop_info): Same.
3718 (duplicate_loop): Same.
3719 (duplicate_subloops): Same.
3720 (loop_redirect_edge): Same.
3721 (can_duplicate_loop_p): Same.
3722 (duplicate_loop_to_header_edge): Same.
3723 (mfb_keep_just): Same.
3724 (has_preds_from_loop): Same.
3725 (create_preheader): Same.
3726 (create_preheaders): Same.
3727 (lv_adjust_loop_entry_edge): Same.
3728 (loop_version): Same.
3729 * cfgloopmanip.h: Same.
3730 * cgraph.h: Same.
3731 * cgraphbuild.c: Same.
3732 * combine.c (make_extraction): Same.
3733 * config/i386/i386-features.c: Same.
3734 * config/i386/i386-features.h: Same.
3735 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
3736 (ix86_emit_outlined_ms2sysv_restore): Same.
3737 (ix86_noce_conversion_profitable_p): Same.
3738 (ix86_init_cost): Same.
3739 (ix86_simd_clone_usable): Same.
3740 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
3741 Wstruct-not-pod.
3742 * coretypes.h: Same.
3743 * data-streamer-in.c (string_for_index): Change class-key of PODs
3744 to struct and others to class.
3745 (streamer_read_indexed_string): Same.
3746 (streamer_read_string): Same.
3747 (bp_unpack_indexed_string): Same.
3748 (bp_unpack_string): Same.
3749 (streamer_read_uhwi): Same.
3750 (streamer_read_hwi): Same.
3751 (streamer_read_gcov_count): Same.
3752 (streamer_read_wide_int): Same.
3753 * data-streamer.h (streamer_write_bitpack): Same.
3754 (bp_unpack_value): Same.
3755 (streamer_write_char_stream): Same.
3756 (streamer_write_hwi_in_range): Same.
3757 (streamer_write_record_start): Same.
3758 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
3759 (add_cross_iteration_register_deps): Same.
3760 (build_intra_loop_deps): Same.
3761 * df-core.c (df_analyze): Same.
3762 (loop_post_order_compute): Same.
3763 (loop_inverted_post_order_compute): Same.
3764 * df-problems.c (df_rd_alloc): Same.
3765 (df_rd_simulate_one_insn): Same.
3766 (df_rd_local_compute): Same.
3767 (df_rd_init_solution): Same.
3768 (df_rd_confluence_n): Same.
3769 (df_rd_transfer_function): Same.
3770 (df_rd_free): Same.
3771 (df_rd_dump_defs_set): Same.
3772 (df_rd_top_dump): Same.
3773 (df_lr_alloc): Same.
3774 (df_lr_reset): Same.
3775 (df_lr_local_compute): Same.
3776 (df_lr_init): Same.
3777 (df_lr_confluence_n): Same.
3778 (df_lr_free): Same.
3779 (df_lr_top_dump): Same.
3780 (df_lr_verify_transfer_functions): Same.
3781 (df_live_alloc): Same.
3782 (df_live_reset): Same.
3783 (df_live_init): Same.
3784 (df_live_confluence_n): Same.
3785 (df_live_finalize): Same.
3786 (df_live_free): Same.
3787 (df_live_top_dump): Same.
3788 (df_live_verify_transfer_functions): Same.
3789 (df_mir_alloc): Same.
3790 (df_mir_reset): Same.
3791 (df_mir_init): Same.
3792 (df_mir_confluence_n): Same.
3793 (df_mir_free): Same.
3794 (df_mir_top_dump): Same.
3795 (df_word_lr_alloc): Same.
3796 (df_word_lr_reset): Same.
3797 (df_word_lr_init): Same.
3798 (df_word_lr_confluence_n): Same.
3799 (df_word_lr_free): Same.
3800 (df_word_lr_top_dump): Same.
3801 (df_md_alloc): Same.
3802 (df_md_simulate_one_insn): Same.
3803 (df_md_reset): Same.
3804 (df_md_init): Same.
3805 (df_md_free): Same.
3806 (df_md_top_dump): Same.
3807 * df-scan.c (df_insn_delete): Same.
3808 (df_insn_rescan): Same.
3809 (df_notes_rescan): Same.
3810 (df_sort_and_compress_mws): Same.
3811 (df_install_mws): Same.
3812 (df_refs_add_to_chains): Same.
3813 (df_ref_create_structure): Same.
3814 (df_ref_record): Same.
3815 (df_def_record_1): Same.
3816 (df_find_hard_reg_defs): Same.
3817 (df_uses_record): Same.
3818 (df_get_conditional_uses): Same.
3819 (df_get_call_refs): Same.
3820 (df_recompute_luids): Same.
3821 (df_get_entry_block_def_set): Same.
3822 (df_entry_block_defs_collect): Same.
3823 (df_get_exit_block_use_set): Same.
3824 (df_exit_block_uses_collect): Same.
3825 (df_mws_verify): Same.
3826 (df_bb_verify): Same.
3827 * df.h (df_scan_get_bb_info): Same.
3828 * doc/tm.texi: Same.
3829 * dse.c (record_store): Same.
3830 * dumpfile.h: Same.
3831 * emit-rtl.c (const_fixed_hasher::equal): Same.
3832 (set_mem_attributes_minus_bitpos): Same.
3833 (change_address): Same.
3834 (adjust_address_1): Same.
3835 (offset_address): Same.
3836 * emit-rtl.h: Same.
3837 * except.c (dw2_build_landing_pads): Same.
3838 (sjlj_emit_dispatch_table): Same.
3839 * explow.c (allocate_dynamic_stack_space): Same.
3840 (emit_stack_probe): Same.
3841 (probe_stack_range): Same.
3842 * expmed.c (store_bit_field_using_insv): Same.
3843 (store_bit_field_1): Same.
3844 (store_integral_bit_field): Same.
3845 (extract_bit_field_using_extv): Same.
3846 (extract_bit_field_1): Same.
3847 (emit_cstore): Same.
3848 * expr.c (emit_block_move_via_cpymem): Same.
3849 (expand_cmpstrn_or_cmpmem): Same.
3850 (set_storage_via_setmem): Same.
3851 (emit_single_push_insn_1): Same.
3852 (expand_assignment): Same.
3853 (store_constructor): Same.
3854 (expand_expr_real_2): Same.
3855 (expand_expr_real_1): Same.
3856 (try_casesi): Same.
3857 * flags.h: Same.
3858 * function.c (try_fit_stack_local): Same.
3859 (assign_stack_local_1): Same.
3860 (assign_stack_local): Same.
3861 (cut_slot_from_list): Same.
3862 (insert_slot_to_list): Same.
3863 (max_slot_level): Same.
3864 (move_slot_to_level): Same.
3865 (temp_address_hasher::equal): Same.
3866 (remove_unused_temp_slot_addresses): Same.
3867 (assign_temp): Same.
3868 (combine_temp_slots): Same.
3869 (update_temp_slot_address): Same.
3870 (preserve_temp_slots): Same.
3871 * function.h: Same.
3872 * fwprop.c: Same.
3873 * gcc-rich-location.h: Same.
3874 * gcov.c: Same.
3875 * genattrtab.c (check_attr_test): Same.
3876 (check_attr_value): Same.
3877 (convert_set_attr_alternative): Same.
3878 (convert_set_attr): Same.
3879 (check_defs): Same.
3880 (copy_boolean): Same.
3881 (get_attr_value): Same.
3882 (expand_delays): Same.
3883 (make_length_attrs): Same.
3884 (min_fn): Same.
3885 (make_alternative_compare): Same.
3886 (simplify_test_exp): Same.
3887 (tests_attr_p): Same.
3888 (get_attr_order): Same.
3889 (clear_struct_flag): Same.
3890 (gen_attr): Same.
3891 (compares_alternatives_p): Same.
3892 (gen_insn): Same.
3893 (gen_delay): Same.
3894 (find_attrs_to_cache): Same.
3895 (write_test_expr): Same.
3896 (walk_attr_value): Same.
3897 (write_attr_get): Same.
3898 (eliminate_known_true): Same.
3899 (write_insn_cases): Same.
3900 (write_attr_case): Same.
3901 (write_attr_valueq): Same.
3902 (write_attr_value): Same.
3903 (write_dummy_eligible_delay): Same.
3904 (next_comma_elt): Same.
3905 (find_attr): Same.
3906 (make_internal_attr): Same.
3907 (copy_rtx_unchanging): Same.
3908 (gen_insn_reserv): Same.
3909 (check_tune_attr): Same.
3910 (make_automaton_attrs): Same.
3911 (handle_arg): Same.
3912 * genextract.c (gen_insn): Same.
3913 (VEC_char_to_string): Same.
3914 * genmatch.c (print_operand): Same.
3915 (lower): Same.
3916 (parser::parse_operation): Same.
3917 (parser::parse_capture): Same.
3918 (parser::parse_c_expr): Same.
3919 (parser::parse_simplify): Same.
3920 (main): Same.
3921 * genoutput.c (output_operand_data): Same.
3922 (output_get_insn_name): Same.
3923 (compare_operands): Same.
3924 (place_operands): Same.
3925 (process_template): Same.
3926 (validate_insn_alternatives): Same.
3927 (validate_insn_operands): Same.
3928 (gen_expand): Same.
3929 (note_constraint): Same.
3930 * genpreds.c (write_one_predicate_function): Same.
3931 (add_constraint): Same.
3932 (process_define_register_constraint): Same.
3933 (write_lookup_constraint_1): Same.
3934 (write_lookup_constraint_array): Same.
3935 (write_insn_constraint_len): Same.
3936 (write_reg_class_for_constraint_1): Same.
3937 (write_constraint_satisfied_p_array): Same.
3938 * genrecog.c (optimize_subroutine_group): Same.
3939 * gensupport.c (process_define_predicate): Same.
3940 (queue_pattern): Same.
3941 (remove_from_queue): Same.
3942 (process_rtx): Same.
3943 (is_predicable): Same.
3944 (change_subst_attribute): Same.
3945 (subst_pattern_match): Same.
3946 (alter_constraints): Same.
3947 (alter_attrs_for_insn): Same.
3948 (shift_output_template): Same.
3949 (alter_output_for_subst_insn): Same.
3950 (process_one_cond_exec): Same.
3951 (subst_dup): Same.
3952 (process_define_cond_exec): Same.
3953 (mnemonic_htab_callback): Same.
3954 (gen_mnemonic_attr): Same.
3955 (read_md_rtx): Same.
3956 * ggc-page.c: Same.
3957 * gimple-loop-interchange.cc (dump_reduction): Same.
3958 (dump_induction): Same.
3959 (loop_cand::~loop_cand): Same.
3960 (free_data_refs_with_aux): Same.
3961 (tree_loop_interchange::interchange_loops): Same.
3962 (tree_loop_interchange::map_inductions_to_loop): Same.
3963 (tree_loop_interchange::move_code_to_inner_loop): Same.
3964 (compute_access_stride): Same.
3965 (compute_access_strides): Same.
3966 (proper_loop_form_for_interchange): Same.
3967 (tree_loop_interchange_compute_ddrs): Same.
3968 (prune_datarefs_not_in_loop): Same.
3969 (prepare_data_references): Same.
3970 (pass_linterchange::execute): Same.
3971 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
3972 (unroll_jam_possible_p): Same.
3973 (fuse_loops): Same.
3974 (adjust_unroll_factor): Same.
3975 (tree_loop_unroll_and_jam): Same.
3976 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
3977 (loop_versioning::expensive_stmt_p): Same.
3978 (loop_versioning::version_for_unity): Same.
3979 (loop_versioning::dump_inner_likelihood): Same.
3980 (loop_versioning::find_per_loop_multiplication): Same.
3981 (loop_versioning::analyze_term_using_scevs): Same.
3982 (loop_versioning::record_address_fragment): Same.
3983 (loop_versioning::analyze_expr): Same.
3984 (loop_versioning::analyze_blocks): Same.
3985 (loop_versioning::prune_conditions): Same.
3986 (loop_versioning::merge_loop_info): Same.
3987 (loop_versioning::add_loop_to_queue): Same.
3988 (loop_versioning::decide_whether_loop_is_versionable): Same.
3989 (loop_versioning::make_versioning_decisions): Same.
3990 (loop_versioning::implement_versioning_decisions): Same.
3991 * gimple-ssa-evrp-analyze.c
3992 (evrp_range_analyzer::record_ranges_from_phis): Same.
3993 * gimple-ssa-store-merging.c (split_store::split_store): Same.
3994 (count_multiple_uses): Same.
3995 (split_group): Same.
3996 (imm_store_chain_info::output_merged_store): Same.
3997 (pass_store_merging::process_store): Same.
3998 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
3999 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
4000 (is_max): Same.
4001 (alloca_call_type): Same.
4002 (pass_walloca::execute): Same.
4003 * gimple-streamer-in.c (input_phi): Same.
4004 (input_gimple_stmt): Same.
4005 * gimple-streamer.h: Same.
4006 * godump.c (go_force_record_alignment): Same.
4007 (go_format_type): Same.
4008 (go_output_type): Same.
4009 (go_output_fndecl): Same.
4010 (go_output_typedef): Same.
4011 (keyword_hash_init): Same.
4012 (find_dummy_types): Same.
4013 * graph.c (draw_cfg_nodes_no_loops): Same.
4014 (draw_cfg_nodes_for_loop): Same.
4015 * hard-reg-set.h (hard_reg_set_iter_next): Same.
4016 * hsa-brig.c: Same.
4017 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
4018 * hsa-dump.c (dump_hsa_cfun): Same.
4019 * hsa-gen.c (gen_function_def_parameters): Same.
4020 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
4021 * input.c (dump_line_table_statistics): Same.
4022 (test_lexer): Same.
4023 * input.h: Same.
4024 * internal-fn.c (get_multi_vector_move): Same.
4025 (expand_load_lanes_optab_fn): Same.
4026 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
4027 (expand_GOMP_SIMT_EXIT): Same.
4028 (expand_GOMP_SIMT_LAST_LANE): Same.
4029 (expand_GOMP_SIMT_ORDERED_PRED): Same.
4030 (expand_GOMP_SIMT_VOTE_ANY): Same.
4031 (expand_GOMP_SIMT_XCHG_BFLY): Same.
4032 (expand_GOMP_SIMT_XCHG_IDX): Same.
4033 (expand_addsub_overflow): Same.
4034 (expand_neg_overflow): Same.
4035 (expand_mul_overflow): Same.
4036 (expand_call_mem_ref): Same.
4037 (expand_mask_load_optab_fn): Same.
4038 (expand_scatter_store_optab_fn): Same.
4039 (expand_gather_load_optab_fn): Same.
4040 * ipa-cp.c (ipa_get_parm_lattices): Same.
4041 (print_all_lattices): Same.
4042 (ignore_edge_p): Same.
4043 (build_toporder_info): Same.
4044 (free_toporder_info): Same.
4045 (push_node_to_stack): Same.
4046 (ipcp_lattice<valtype>::set_contains_variable): Same.
4047 (set_agg_lats_to_bottom): Same.
4048 (ipcp_bits_lattice::meet_with): Same.
4049 (set_single_call_flag): Same.
4050 (initialize_node_lattices): Same.
4051 (ipa_get_jf_ancestor_result): Same.
4052 (ipcp_verify_propagated_values): Same.
4053 (propagate_scalar_across_jump_function): Same.
4054 (propagate_context_across_jump_function): Same.
4055 (propagate_bits_across_jump_function): Same.
4056 (ipa_vr_operation_and_type_effects): Same.
4057 (propagate_vr_across_jump_function): Same.
4058 (set_check_aggs_by_ref): Same.
4059 (set_chain_of_aglats_contains_variable): Same.
4060 (merge_aggregate_lattices): Same.
4061 (agg_pass_through_permissible_p): Same.
4062 (propagate_aggs_across_jump_function): Same.
4063 (call_passes_through_thunk_p): Same.
4064 (propagate_constants_across_call): Same.
4065 (devirtualization_time_bonus): Same.
4066 (good_cloning_opportunity_p): Same.
4067 (context_independent_aggregate_values): Same.
4068 (gather_context_independent_values): Same.
4069 (perform_estimation_of_a_value): Same.
4070 (estimate_local_effects): Same.
4071 (value_topo_info<valtype>::add_val): Same.
4072 (add_all_node_vals_to_toposort): Same.
4073 (value_topo_info<valtype>::propagate_effects): Same.
4074 (ipcp_propagate_stage): Same.
4075 (ipcp_discover_new_direct_edges): Same.
4076 (same_node_or_its_all_contexts_clone_p): Same.
4077 (cgraph_edge_brings_value_p): Same.
4078 (gather_edges_for_value): Same.
4079 (create_specialized_node): Same.
4080 (find_more_scalar_values_for_callers_subset): Same.
4081 (find_more_contexts_for_caller_subset): Same.
4082 (copy_plats_to_inter): Same.
4083 (intersect_aggregates_with_edge): Same.
4084 (find_aggregate_values_for_callers_subset): Same.
4085 (cgraph_edge_brings_all_agg_vals_for_node): Same.
4086 (decide_about_value): Same.
4087 (decide_whether_version_node): Same.
4088 (spread_undeadness): Same.
4089 (identify_dead_nodes): Same.
4090 (ipcp_store_vr_results): Same.
4091 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
4092 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
4093 (redirect_to_unreachable): Same.
4094 (edge_set_predicate): Same.
4095 (evaluate_conditions_for_known_args): Same.
4096 (evaluate_properties_for_edge): Same.
4097 (ipa_fn_summary_t::duplicate): Same.
4098 (ipa_call_summary_t::duplicate): Same.
4099 (dump_ipa_call_summary): Same.
4100 (ipa_dump_fn_summary): Same.
4101 (eliminated_by_inlining_prob): Same.
4102 (set_cond_stmt_execution_predicate): Same.
4103 (set_switch_stmt_execution_predicate): Same.
4104 (compute_bb_predicates): Same.
4105 (will_be_nonconstant_expr_predicate): Same.
4106 (phi_result_unknown_predicate): Same.
4107 (analyze_function_body): Same.
4108 (compute_fn_summary): Same.
4109 (estimate_edge_devirt_benefit): Same.
4110 (estimate_edge_size_and_time): Same.
4111 (estimate_calls_size_and_time): Same.
4112 (estimate_node_size_and_time): Same.
4113 (remap_edge_change_prob): Same.
4114 (remap_edge_summaries): Same.
4115 (ipa_merge_fn_summary_after_inlining): Same.
4116 (ipa_fn_summary_generate): Same.
4117 (inline_read_section): Same.
4118 (ipa_fn_summary_read): Same.
4119 (ipa_fn_summary_write): Same.
4120 * ipa-fnsummary.h: Same.
4121 * ipa-hsa.c (ipa_hsa_read_section): Same.
4122 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
4123 * ipa-icf.c (sem_function::param_used_p): Same.
4124 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
4125 * ipa-inline.c (edge_badness): Same.
4126 (inline_small_functions): Same.
4127 * ipa-polymorphic-call.c
4128 (ipa_polymorphic_call_context::stream_out): Same.
4129 * ipa-predicate.c (predicate::remap_after_duplication): Same.
4130 (predicate::remap_after_inlining): Same.
4131 (predicate::stream_out): Same.
4132 * ipa-predicate.h: Same.
4133 * ipa-profile.c (ipa_profile_read_summary): Same.
4134 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
4135 (count_formal_params): Same.
4136 (ipa_dump_param): Same.
4137 (ipa_alloc_node_params): Same.
4138 (ipa_print_node_jump_functions_for_edge): Same.
4139 (ipa_print_node_jump_functions): Same.
4140 (ipa_load_from_parm_agg): Same.
4141 (get_ancestor_addr_info): Same.
4142 (ipa_compute_jump_functions_for_edge): Same.
4143 (ipa_analyze_virtual_call_uses): Same.
4144 (ipa_analyze_stmt_uses): Same.
4145 (ipa_analyze_params_uses_in_bb): Same.
4146 (update_jump_functions_after_inlining): Same.
4147 (try_decrement_rdesc_refcount): Same.
4148 (ipa_impossible_devirt_target): Same.
4149 (update_indirect_edges_after_inlining): Same.
4150 (combine_controlled_uses_counters): Same.
4151 (ipa_edge_args_sum_t::duplicate): Same.
4152 (ipa_write_jump_function): Same.
4153 (ipa_write_indirect_edge_info): Same.
4154 (ipa_write_node_info): Same.
4155 (ipa_read_edge_info): Same.
4156 (ipa_prop_read_section): Same.
4157 (read_replacements_section): Same.
4158 * ipa-prop.h (ipa_get_param_count): Same.
4159 (ipa_get_param): Same.
4160 (ipa_get_type): Same.
4161 (ipa_get_param_move_cost): Same.
4162 (ipa_set_param_used): Same.
4163 (ipa_get_controlled_uses): Same.
4164 (ipa_set_controlled_uses): Same.
4165 (ipa_get_cs_argument_count): Same.
4166 * ipa-pure-const.c (analyze_function): Same.
4167 (pure_const_read_summary): Same.
4168 * ipa-ref.h: Same.
4169 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
4170 * ipa-split.c (test_nonssa_use): Same.
4171 (dump_split_point): Same.
4172 (dominated_by_forbidden): Same.
4173 (split_part_set_ssa_name_p): Same.
4174 (find_split_points): Same.
4175 * ira-build.c (finish_loop_tree_nodes): Same.
4176 (low_pressure_loop_node_p): Same.
4177 * ira-color.c (ira_reuse_stack_slot): Same.
4178 * ira-int.h: Same.
4179 * ira.c (setup_reg_equiv): Same.
4180 (print_insn_chain): Same.
4181 (ira): Same.
4182 * loop-doloop.c (doloop_condition_get): Same.
4183 (add_test): Same.
4184 (record_reg_sets): Same.
4185 (doloop_optimize): Same.
4186 * loop-init.c (loop_optimizer_init): Same.
4187 (fix_loop_structure): Same.
4188 * loop-invariant.c (merge_identical_invariants): Same.
4189 (compute_always_reached): Same.
4190 (find_exits): Same.
4191 (may_assign_reg_p): Same.
4192 (find_invariants_bb): Same.
4193 (find_invariants_body): Same.
4194 (replace_uses): Same.
4195 (can_move_invariant_reg): Same.
4196 (free_inv_motion_data): Same.
4197 (move_single_loop_invariants): Same.
4198 (change_pressure): Same.
4199 (mark_ref_regs): Same.
4200 (calculate_loop_reg_pressure): Same.
4201 * loop-iv.c (biv_entry_hasher::equal): Same.
4202 (iv_extend_to_rtx_code): Same.
4203 (check_iv_ref_table_size): Same.
4204 (clear_iv_info): Same.
4205 (latch_dominating_def): Same.
4206 (iv_get_reaching_def): Same.
4207 (iv_constant): Same.
4208 (iv_subreg): Same.
4209 (iv_extend): Same.
4210 (iv_neg): Same.
4211 (iv_add): Same.
4212 (iv_mult): Same.
4213 (get_biv_step): Same.
4214 (record_iv): Same.
4215 (analyzed_for_bivness_p): Same.
4216 (record_biv): Same.
4217 (iv_analyze_biv): Same.
4218 (iv_analyze_expr): Same.
4219 (iv_analyze_def): Same.
4220 (iv_analyze_op): Same.
4221 (iv_analyze): Same.
4222 (iv_analyze_result): Same.
4223 (biv_p): Same.
4224 (eliminate_implied_conditions): Same.
4225 (simplify_using_initial_values): Same.
4226 (shorten_into_mode): Same.
4227 (canonicalize_iv_subregs): Same.
4228 (determine_max_iter): Same.
4229 (check_simple_exit): Same.
4230 (find_simple_exit): Same.
4231 (get_simple_loop_desc): Same.
4232 * loop-unroll.c (report_unroll): Same.
4233 (decide_unrolling): Same.
4234 (unroll_loops): Same.
4235 (loop_exit_at_end_p): Same.
4236 (decide_unroll_constant_iterations): Same.
4237 (unroll_loop_constant_iterations): Same.
4238 (compare_and_jump_seq): Same.
4239 (unroll_loop_runtime_iterations): Same.
4240 (decide_unroll_stupid): Same.
4241 (unroll_loop_stupid): Same.
4242 (referenced_in_one_insn_in_loop_p): Same.
4243 (reset_debug_uses_in_loop): Same.
4244 (analyze_iv_to_split_insn): Same.
4245 * lra-eliminations.c (lra_debug_elim_table): Same.
4246 (setup_can_eliminate): Same.
4247 (form_sum): Same.
4248 (lra_get_elimination_hard_regno): Same.
4249 (lra_eliminate_regs_1): Same.
4250 (eliminate_regs_in_insn): Same.
4251 (update_reg_eliminate): Same.
4252 (init_elimination): Same.
4253 (lra_eliminate): Same.
4254 * lra-int.h: Same.
4255 * lra-lives.c (initiate_live_solver): Same.
4256 * lra-remat.c (create_remat_bb_data): Same.
4257 * lra-spills.c (lra_spill): Same.
4258 * lra.c (lra_set_insn_recog_data): Same.
4259 (lra_set_used_insn_alternative_by_uid): Same.
4260 (init_reg_info): Same.
4261 (expand_reg_info): Same.
4262 * lto-cgraph.c (output_symtab): Same.
4263 (read_identifier): Same.
4264 (get_alias_symbol): Same.
4265 (input_node): Same.
4266 (input_varpool_node): Same.
4267 (input_ref): Same.
4268 (input_edge): Same.
4269 (input_cgraph_1): Same.
4270 (input_refs): Same.
4271 (input_symtab): Same.
4272 (input_offload_tables): Same.
4273 (output_cgraph_opt_summary): Same.
4274 (input_edge_opt_summary): Same.
4275 (input_cgraph_opt_section): Same.
4276 * lto-section-in.c (lto_free_raw_section_data): Same.
4277 (lto_create_simple_input_block): Same.
4278 (lto_free_function_in_decl_state_for_node): Same.
4279 * lto-streamer-in.c (lto_tag_check_set): Same.
4280 (lto_location_cache::revert_location_cache): Same.
4281 (lto_location_cache::input_location): Same.
4282 (lto_input_location): Same.
4283 (stream_input_location_now): Same.
4284 (lto_input_tree_ref): Same.
4285 (lto_input_eh_catch_list): Same.
4286 (input_eh_region): Same.
4287 (lto_init_eh): Same.
4288 (make_new_block): Same.
4289 (input_cfg): Same.
4290 (fixup_call_stmt_edges): Same.
4291 (input_struct_function_base): Same.
4292 (input_function): Same.
4293 (lto_read_body_or_constructor): Same.
4294 (lto_read_tree_1): Same.
4295 (lto_read_tree): Same.
4296 (lto_input_scc): Same.
4297 (lto_input_tree_1): Same.
4298 (lto_input_toplevel_asms): Same.
4299 (lto_input_mode_table): Same.
4300 (lto_reader_init): Same.
4301 (lto_data_in_create): Same.
4302 * lto-streamer-out.c (output_cfg): Same.
4303 * lto-streamer.h: Same.
4304 * modulo-sched.c (duplicate_insns_of_cycles): Same.
4305 (generate_prolog_epilog): Same.
4306 (mark_loop_unsched): Same.
4307 (dump_insn_location): Same.
4308 (loop_canon_p): Same.
4309 (sms_schedule): Same.
4310 * omp-expand.c (expand_omp_for_ordered_loops): Same.
4311 (expand_omp_for_generic): Same.
4312 (expand_omp_for_static_nochunk): Same.
4313 (expand_omp_for_static_chunk): Same.
4314 (expand_omp_simd): Same.
4315 (expand_omp_taskloop_for_inner): Same.
4316 (expand_oacc_for): Same.
4317 (expand_omp_atomic_pipeline): Same.
4318 (mark_loops_in_oacc_kernels_region): Same.
4319 * omp-offload.c (oacc_xform_loop): Same.
4320 * omp-simd-clone.c (simd_clone_adjust): Same.
4321 * optabs-query.c (get_traditional_extraction_insn): Same.
4322 * optabs.c (expand_vector_broadcast): Same.
4323 (expand_binop_directly): Same.
4324 (expand_twoval_unop): Same.
4325 (expand_twoval_binop): Same.
4326 (expand_unop_direct): Same.
4327 (emit_indirect_jump): Same.
4328 (emit_conditional_move): Same.
4329 (emit_conditional_neg_or_complement): Same.
4330 (emit_conditional_add): Same.
4331 (vector_compare_rtx): Same.
4332 (expand_vec_perm_1): Same.
4333 (expand_vec_perm_const): Same.
4334 (expand_vec_cond_expr): Same.
4335 (expand_vec_series_expr): Same.
4336 (maybe_emit_atomic_exchange): Same.
4337 (maybe_emit_sync_lock_test_and_set): Same.
4338 (expand_atomic_compare_and_swap): Same.
4339 (expand_atomic_load): Same.
4340 (expand_atomic_store): Same.
4341 (maybe_emit_op): Same.
4342 (valid_multiword_target_p): Same.
4343 (create_integer_operand): Same.
4344 (maybe_legitimize_operand_same_code): Same.
4345 (maybe_legitimize_operand): Same.
4346 (create_convert_operand_from_type): Same.
4347 (can_reuse_operands_p): Same.
4348 (maybe_legitimize_operands): Same.
4349 (maybe_gen_insn): Same.
4350 (maybe_expand_insn): Same.
4351 (maybe_expand_jump_insn): Same.
4352 (expand_insn): Same.
4353 * optabs.h (create_expand_operand): Same.
4354 (create_fixed_operand): Same.
4355 (create_output_operand): Same.
4356 (create_input_operand): Same.
4357 (create_convert_operand_to): Same.
4358 (create_convert_operand_from): Same.
4359 * optinfo.h: Same.
4360 * poly-int.h: Same.
4361 * predict.c (optimize_insn_for_speed_p): Same.
4362 (optimize_loop_for_size_p): Same.
4363 (optimize_loop_for_speed_p): Same.
4364 (optimize_loop_nest_for_speed_p): Same.
4365 (get_base_value): Same.
4366 (predicted_by_loop_heuristics_p): Same.
4367 (predict_extra_loop_exits): Same.
4368 (predict_loops): Same.
4369 (predict_paths_for_bb): Same.
4370 (predict_paths_leading_to): Same.
4371 (propagate_freq): Same.
4372 (pass_profile::execute): Same.
4373 * predict.h: Same.
4374 * profile-count.c (profile_count::differs_from_p): Same.
4375 (profile_probability::differs_lot_from_p): Same.
4376 * profile-count.h: Same.
4377 * profile.c (branch_prob): Same.
4378 * regrename.c (free_chain_data): Same.
4379 (mark_conflict): Same.
4380 (create_new_chain): Same.
4381 (merge_overlapping_regs): Same.
4382 (init_rename_info): Same.
4383 (merge_chains): Same.
4384 (regrename_analyze): Same.
4385 (regrename_do_replace): Same.
4386 (scan_rtx_reg): Same.
4387 (record_out_operands): Same.
4388 (build_def_use): Same.
4389 * regrename.h: Same.
4390 * reload.h: Same.
4391 * reload1.c (init_reload): Same.
4392 (maybe_fix_stack_asms): Same.
4393 (copy_reloads): Same.
4394 (count_pseudo): Same.
4395 (count_spilled_pseudo): Same.
4396 (find_reg): Same.
4397 (find_reload_regs): Same.
4398 (select_reload_regs): Same.
4399 (spill_hard_reg): Same.
4400 (fixup_eh_region_note): Same.
4401 (set_reload_reg): Same.
4402 (allocate_reload_reg): Same.
4403 (compute_reload_subreg_offset): Same.
4404 (reload_adjust_reg_for_icode): Same.
4405 (emit_input_reload_insns): Same.
4406 (emit_output_reload_insns): Same.
4407 (do_input_reload): Same.
4408 (inherit_piecemeal_p): Same.
4409 * rtl.h: Same.
4410 * sanopt.c (maybe_get_dominating_check): Same.
4411 (maybe_optimize_ubsan_ptr_ifn): Same.
4412 (can_remove_asan_check): Same.
4413 (maybe_optimize_asan_check_ifn): Same.
4414 (sanopt_optimize_walker): Same.
4415 * sched-deps.c (add_dependence_list): Same.
4416 (chain_to_prev_insn): Same.
4417 (add_insn_mem_dependence): Same.
4418 (create_insn_reg_set): Same.
4419 (maybe_extend_reg_info_p): Same.
4420 (sched_analyze_reg): Same.
4421 (sched_analyze_1): Same.
4422 (get_implicit_reg_pending_clobbers): Same.
4423 (chain_to_prev_insn_p): Same.
4424 (deps_analyze_insn): Same.
4425 (deps_start_bb): Same.
4426 (sched_free_deps): Same.
4427 (init_deps): Same.
4428 (init_deps_reg_last): Same.
4429 (free_deps): Same.
4430 * sched-ebb.c: Same.
4431 * sched-int.h: Same.
4432 * sched-rgn.c (add_branch_dependences): Same.
4433 (concat_insn_mem_list): Same.
4434 (deps_join): Same.
4435 (sched_rgn_compute_dependencies): Same.
4436 * sel-sched-ir.c (reset_target_context): Same.
4437 (copy_deps_context): Same.
4438 (init_id_from_df): Same.
4439 (has_dependence_p): Same.
4440 (change_loops_latches): Same.
4441 (bb_top_order_comparator): Same.
4442 (make_region_from_loop_preheader): Same.
4443 (sel_init_pipelining): Same.
4444 (get_loop_nest_for_rgn): Same.
4445 (make_regions_from_the_rest): Same.
4446 (sel_is_loop_preheader_p): Same.
4447 * sel-sched-ir.h (inner_loop_header_p): Same.
4448 (get_all_loop_exits): Same.
4449 * selftest.h: Same.
4450 * sese.c (sese_build_liveouts): Same.
4451 (sese_insert_phis_for_liveouts): Same.
4452 * sese.h (defined_in_sese_p): Same.
4453 * sreal.c (sreal::stream_out): Same.
4454 * sreal.h: Same.
4455 * streamer-hooks.h: Same.
4456 * target-globals.c (save_target_globals): Same.
4457 * target-globals.h: Same.
4458 * target.def: Same.
4459 * target.h: Same.
4460 * targhooks.c (default_has_ifunc_p): Same.
4461 (default_empty_mask_is_expensive): Same.
4462 (default_init_cost): Same.
4463 * targhooks.h: Same.
4464 * toplev.c: Same.
4465 * tree-affine.c (aff_combination_mult): Same.
4466 (aff_combination_expand): Same.
4467 (aff_combination_constant_multiple_p): Same.
4468 * tree-affine.h: Same.
4469 * tree-cfg.c (build_gimple_cfg): Same.
4470 (replace_loop_annotate_in_block): Same.
4471 (replace_uses_by): Same.
4472 (remove_bb): Same.
4473 (dump_cfg_stats): Same.
4474 (gimple_duplicate_sese_region): Same.
4475 (gimple_duplicate_sese_tail): Same.
4476 (move_block_to_fn): Same.
4477 (replace_block_vars_by_duplicates): Same.
4478 (move_sese_region_to_fn): Same.
4479 (print_loops_bb): Same.
4480 (print_loop): Same.
4481 (print_loops): Same.
4482 (debug): Same.
4483 (debug_loops): Same.
4484 * tree-cfg.h: Same.
4485 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
4486 (chrec_fold_multiply_poly_poly): Same.
4487 (chrec_evaluate): Same.
4488 (chrec_component_in_loop_num): Same.
4489 (reset_evolution_in_loop): Same.
4490 (is_multivariate_chrec): Same.
4491 (chrec_contains_symbols): Same.
4492 (nb_vars_in_chrec): Same.
4493 (chrec_convert_1): Same.
4494 (chrec_convert_aggressive): Same.
4495 * tree-chrec.h: Same.
4496 * tree-core.h: Same.
4497 * tree-data-ref.c (dump_data_dependence_relation): Same.
4498 (canonicalize_base_object_address): Same.
4499 (data_ref_compare_tree): Same.
4500 (prune_runtime_alias_test_list): Same.
4501 (get_segment_min_max): Same.
4502 (create_intersect_range_checks): Same.
4503 (conflict_fn_no_dependence): Same.
4504 (object_address_invariant_in_loop_p): Same.
4505 (analyze_ziv_subscript): Same.
4506 (analyze_siv_subscript_cst_affine): Same.
4507 (analyze_miv_subscript): Same.
4508 (analyze_overlapping_iterations): Same.
4509 (build_classic_dist_vector_1): Same.
4510 (add_other_self_distances): Same.
4511 (same_access_functions): Same.
4512 (build_classic_dir_vector): Same.
4513 (subscript_dependence_tester_1): Same.
4514 (subscript_dependence_tester): Same.
4515 (access_functions_are_affine_or_constant_p): Same.
4516 (get_references_in_stmt): Same.
4517 (loop_nest_has_data_refs): Same.
4518 (graphite_find_data_references_in_stmt): Same.
4519 (find_data_references_in_bb): Same.
4520 (get_base_for_alignment): Same.
4521 (find_loop_nest_1): Same.
4522 (find_loop_nest): Same.
4523 * tree-data-ref.h (dr_alignment): Same.
4524 (ddr_dependence_level): Same.
4525 * tree-if-conv.c (fold_build_cond_expr): Same.
4526 (add_to_predicate_list): Same.
4527 (add_to_dst_predicate_list): Same.
4528 (phi_convertible_by_degenerating_args): Same.
4529 (idx_within_array_bound): Same.
4530 (all_preds_critical_p): Same.
4531 (pred_blocks_visited_p): Same.
4532 (predicate_bbs): Same.
4533 (build_region): Same.
4534 (if_convertible_loop_p_1): Same.
4535 (is_cond_scalar_reduction): Same.
4536 (predicate_scalar_phi): Same.
4537 (remove_conditions_and_labels): Same.
4538 (combine_blocks): Same.
4539 (version_loop_for_if_conversion): Same.
4540 (versionable_outer_loop_p): Same.
4541 (ifcvt_local_dce): Same.
4542 (tree_if_conversion): Same.
4543 (pass_if_conversion::gate): Same.
4544 * tree-if-conv.h: Same.
4545 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
4546 * tree-loop-distribution.c (bb_top_order_cmp): Same.
4547 (free_rdg): Same.
4548 (stmt_has_scalar_dependences_outside_loop): Same.
4549 (copy_loop_before): Same.
4550 (create_bb_after_loop): Same.
4551 (const_with_all_bytes_same): Same.
4552 (generate_memset_builtin): Same.
4553 (generate_memcpy_builtin): Same.
4554 (destroy_loop): Same.
4555 (build_rdg_partition_for_vertex): Same.
4556 (compute_access_range): Same.
4557 (data_ref_segment_size): Same.
4558 (latch_dominated_by_data_ref): Same.
4559 (compute_alias_check_pairs): Same.
4560 (fuse_memset_builtins): Same.
4561 (finalize_partitions): Same.
4562 (find_seed_stmts_for_distribution): Same.
4563 (prepare_perfect_loop_nest): Same.
4564 * tree-parloops.c (lambda_transform_legal_p): Same.
4565 (loop_parallel_p): Same.
4566 (reduc_stmt_res): Same.
4567 (add_field_for_name): Same.
4568 (create_call_for_reduction_1): Same.
4569 (replace_uses_in_bb_by): Same.
4570 (transform_to_exit_first_loop_alt): Same.
4571 (try_transform_to_exit_first_loop_alt): Same.
4572 (transform_to_exit_first_loop): Same.
4573 (num_phis): Same.
4574 (gen_parallel_loop): Same.
4575 (gather_scalar_reductions): Same.
4576 (get_omp_data_i_param): Same.
4577 (try_create_reduction_list): Same.
4578 (oacc_entry_exit_single_gang): Same.
4579 (parallelize_loops): Same.
4580 * tree-pass.h: Same.
4581 * tree-predcom.c (determine_offset): Same.
4582 (last_always_executed_block): Same.
4583 (split_data_refs_to_components): Same.
4584 (suitable_component_p): Same.
4585 (valid_initializer_p): Same.
4586 (find_looparound_phi): Same.
4587 (insert_looparound_copy): Same.
4588 (add_looparound_copies): Same.
4589 (determine_roots_comp): Same.
4590 (predcom_tmp_var): Same.
4591 (initialize_root_vars): Same.
4592 (initialize_root_vars_store_elim_1): Same.
4593 (initialize_root_vars_store_elim_2): Same.
4594 (finalize_eliminated_stores): Same.
4595 (initialize_root_vars_lm): Same.
4596 (remove_stmt): Same.
4597 (determine_unroll_factor): Same.
4598 (execute_pred_commoning_cbck): Same.
4599 (base_names_in_chain_on): Same.
4600 (combine_chains): Same.
4601 (pcom_stmt_dominates_stmt_p): Same.
4602 (try_combine_chains): Same.
4603 (prepare_initializers_chain_store_elim): Same.
4604 (prepare_initializers_chain): Same.
4605 (prepare_initializers): Same.
4606 (prepare_finalizers_chain): Same.
4607 (prepare_finalizers): Same.
4608 (insert_init_seqs): Same.
4609 * tree-scalar-evolution.c (loop_phi_node_p): Same.
4610 (compute_overall_effect_of_inner_loop): Same.
4611 (add_to_evolution_1): Same.
4612 (add_to_evolution): Same.
4613 (follow_ssa_edge_binary): Same.
4614 (follow_ssa_edge_expr): Same.
4615 (backedge_phi_arg_p): Same.
4616 (follow_ssa_edge_in_condition_phi_branch): Same.
4617 (follow_ssa_edge_in_condition_phi): Same.
4618 (follow_ssa_edge_inner_loop_phi): Same.
4619 (follow_ssa_edge): Same.
4620 (analyze_evolution_in_loop): Same.
4621 (analyze_initial_condition): Same.
4622 (interpret_loop_phi): Same.
4623 (interpret_condition_phi): Same.
4624 (interpret_rhs_expr): Same.
4625 (interpret_expr): Same.
4626 (interpret_gimple_assign): Same.
4627 (analyze_scalar_evolution_1): Same.
4628 (analyze_scalar_evolution): Same.
4629 (analyze_scalar_evolution_for_address_of): Same.
4630 (get_instantiated_value_entry): Same.
4631 (loop_closed_phi_def): Same.
4632 (instantiate_scev_name): Same.
4633 (instantiate_scev_poly): Same.
4634 (instantiate_scev_binary): Same.
4635 (instantiate_scev_convert): Same.
4636 (instantiate_scev_not): Same.
4637 (instantiate_scev_r): Same.
4638 (instantiate_scev): Same.
4639 (resolve_mixers): Same.
4640 (initialize_scalar_evolutions_analyzer): Same.
4641 (scev_reset_htab): Same.
4642 (scev_reset): Same.
4643 (derive_simple_iv_with_niters): Same.
4644 (simple_iv_with_niters): Same.
4645 (expression_expensive_p): Same.
4646 (final_value_replacement_loop): Same.
4647 * tree-scalar-evolution.h (block_before_loop): Same.
4648 * tree-ssa-address.h: Same.
4649 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
4650 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
4651 (record_edge_info): Same.
4652 * tree-ssa-live.c (var_map_base_fini): Same.
4653 (remove_unused_locals): Same.
4654 * tree-ssa-live.h: Same.
4655 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
4656 (pass_ch_vect::execute): Same.
4657 (pass_ch::process_loop_p): Same.
4658 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
4659 (movement_possibility): Same.
4660 (outermost_invariant_loop): Same.
4661 (stmt_cost): Same.
4662 (determine_max_movement): Same.
4663 (invariantness_dom_walker::before_dom_children): Same.
4664 (move_computations): Same.
4665 (may_move_till): Same.
4666 (force_move_till_op): Same.
4667 (force_move_till): Same.
4668 (memref_free): Same.
4669 (record_mem_ref_loc): Same.
4670 (set_ref_stored_in_loop): Same.
4671 (mark_ref_stored): Same.
4672 (sort_bbs_in_loop_postorder_cmp): Same.
4673 (sort_locs_in_loop_postorder_cmp): Same.
4674 (analyze_memory_references): Same.
4675 (mem_refs_may_alias_p): Same.
4676 (find_ref_loc_in_loop_cmp): Same.
4677 (rewrite_mem_ref_loc::operator): Same.
4678 (first_mem_ref_loc_1::operator): Same.
4679 (sm_set_flag_if_changed::operator): Same.
4680 (execute_sm_if_changed_flag_set): Same.
4681 (execute_sm): Same.
4682 (hoist_memory_references): Same.
4683 (ref_always_accessed::operator): Same.
4684 (refs_independent_p): Same.
4685 (record_dep_loop): Same.
4686 (ref_indep_loop_p_1): Same.
4687 (ref_indep_loop_p): Same.
4688 (can_sm_ref_p): Same.
4689 (find_refs_for_sm): Same.
4690 (loop_suitable_for_sm): Same.
4691 (store_motion_loop): Same.
4692 (store_motion): Same.
4693 (fill_always_executed_in): Same.
4694 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
4695 (estimated_unrolled_size): Same.
4696 (loop_edge_to_cancel): Same.
4697 (remove_exits_and_undefined_stmts): Same.
4698 (remove_redundant_iv_tests): Same.
4699 (unloop_loops): Same.
4700 (estimated_peeled_sequence_size): Same.
4701 (try_peel_loop): Same.
4702 (canonicalize_loop_induction_variables): Same.
4703 (canonicalize_induction_variables): Same.
4704 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
4705 (name_info): Same.
4706 (stmt_after_inc_pos): Same.
4707 (contains_abnormal_ssa_name_p): Same.
4708 (niter_for_exit): Same.
4709 (find_bivs): Same.
4710 (mark_bivs): Same.
4711 (find_givs_in_bb): Same.
4712 (find_induction_variables): Same.
4713 (find_interesting_uses_cond): Same.
4714 (outermost_invariant_loop_for_expr): Same.
4715 (idx_find_step): Same.
4716 (add_candidate_1): Same.
4717 (add_iv_candidate_derived_from_uses): Same.
4718 (alloc_use_cost_map): Same.
4719 (prepare_decl_rtl): Same.
4720 (generic_predict_doloop_p): Same.
4721 (computation_cost): Same.
4722 (determine_common_wider_type): Same.
4723 (get_computation_aff_1): Same.
4724 (get_use_type): Same.
4725 (determine_group_iv_cost_address): Same.
4726 (iv_period): Same.
4727 (difference_cannot_overflow_p): Same.
4728 (may_eliminate_iv): Same.
4729 (determine_set_costs): Same.
4730 (cheaper_cost_pair): Same.
4731 (compare_cost_pair): Same.
4732 (iv_ca_cand_for_group): Same.
4733 (iv_ca_recount_cost): Same.
4734 (iv_ca_set_remove_invs): Same.
4735 (iv_ca_set_no_cp): Same.
4736 (iv_ca_set_add_invs): Same.
4737 (iv_ca_set_cp): Same.
4738 (iv_ca_add_group): Same.
4739 (iv_ca_cost): Same.
4740 (iv_ca_compare_deps): Same.
4741 (iv_ca_delta_reverse): Same.
4742 (iv_ca_delta_commit): Same.
4743 (iv_ca_cand_used_p): Same.
4744 (iv_ca_delta_free): Same.
4745 (iv_ca_new): Same.
4746 (iv_ca_free): Same.
4747 (iv_ca_dump): Same.
4748 (iv_ca_extend): Same.
4749 (iv_ca_narrow): Same.
4750 (iv_ca_prune): Same.
4751 (cheaper_cost_with_cand): Same.
4752 (iv_ca_replace): Same.
4753 (try_add_cand_for): Same.
4754 (get_initial_solution): Same.
4755 (try_improve_iv_set): Same.
4756 (find_optimal_iv_set_1): Same.
4757 (create_new_iv): Same.
4758 (rewrite_use_compare): Same.
4759 (remove_unused_ivs): Same.
4760 (determine_scaling_factor): Same.
4761 * tree-ssa-loop-ivopts.h: Same.
4762 * tree-ssa-loop-manip.c (create_iv): Same.
4763 (compute_live_loop_exits): Same.
4764 (add_exit_phi): Same.
4765 (add_exit_phis): Same.
4766 (find_uses_to_rename_use): Same.
4767 (find_uses_to_rename_def): Same.
4768 (find_uses_to_rename_in_loop): Same.
4769 (rewrite_into_loop_closed_ssa): Same.
4770 (check_loop_closed_ssa_bb): Same.
4771 (split_loop_exit_edge): Same.
4772 (ip_end_pos): Same.
4773 (ip_normal_pos): Same.
4774 (copy_phi_node_args): Same.
4775 (gimple_duplicate_loop_to_header_edge): Same.
4776 (can_unroll_loop_p): Same.
4777 (determine_exit_conditions): Same.
4778 (scale_dominated_blocks_in_loop): Same.
4779 (niter_for_unrolled_loop): Same.
4780 (tree_transform_and_unroll_loop): Same.
4781 (rewrite_all_phi_nodes_with_iv): Same.
4782 * tree-ssa-loop-manip.h: Same.
4783 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
4784 (number_of_iterations_ne): Same.
4785 (assert_no_overflow_lt): Same.
4786 (assert_loop_rolls_lt): Same.
4787 (number_of_iterations_lt): Same.
4788 (adjust_cond_for_loop_until_wrap): Same.
4789 (tree_simplify_using_condition): Same.
4790 (simplify_using_initial_conditions): Same.
4791 (simplify_using_outer_evolutions): Same.
4792 (loop_only_exit_p): Same.
4793 (ssa_defined_by_minus_one_stmt_p): Same.
4794 (number_of_iterations_popcount): Same.
4795 (number_of_iterations_exit): Same.
4796 (find_loop_niter): Same.
4797 (finite_loop_p): Same.
4798 (chain_of_csts_start): Same.
4799 (get_val_for): Same.
4800 (loop_niter_by_eval): Same.
4801 (derive_constant_upper_bound_ops): Same.
4802 (do_warn_aggressive_loop_optimizations): Same.
4803 (record_estimate): Same.
4804 (get_cst_init_from_scev): Same.
4805 (record_nonwrapping_iv): Same.
4806 (idx_infer_loop_bounds): Same.
4807 (infer_loop_bounds_from_ref): Same.
4808 (infer_loop_bounds_from_array): Same.
4809 (infer_loop_bounds_from_pointer_arith): Same.
4810 (infer_loop_bounds_from_signedness): Same.
4811 (bound_index): Same.
4812 (discover_iteration_bound_by_body_walk): Same.
4813 (maybe_lower_iteration_bound): Same.
4814 (estimate_numbers_of_iterations): Same.
4815 (estimated_loop_iterations): Same.
4816 (estimated_loop_iterations_int): Same.
4817 (max_loop_iterations): Same.
4818 (max_loop_iterations_int): Same.
4819 (likely_max_loop_iterations): Same.
4820 (likely_max_loop_iterations_int): Same.
4821 (estimated_stmt_executions_int): Same.
4822 (max_stmt_executions): Same.
4823 (likely_max_stmt_executions): Same.
4824 (estimated_stmt_executions): Same.
4825 (stmt_dominates_stmt_p): Same.
4826 (nowrap_type_p): Same.
4827 (loop_exits_before_overflow): Same.
4828 (scev_var_range_cant_overflow): Same.
4829 (scev_probably_wraps_p): Same.
4830 (free_numbers_of_iterations_estimates): Same.
4831 * tree-ssa-loop-niter.h: Same.
4832 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
4833 (idx_analyze_ref): Same.
4834 (analyze_ref): Same.
4835 (gather_memory_references_ref): Same.
4836 (mark_nontemporal_store): Same.
4837 (emit_mfence_after_loop): Same.
4838 (may_use_storent_in_loop_p): Same.
4839 (mark_nontemporal_stores): Same.
4840 (should_unroll_loop_p): Same.
4841 (volume_of_dist_vector): Same.
4842 (add_subscript_strides): Same.
4843 (self_reuse_distance): Same.
4844 (insn_to_prefetch_ratio_too_small_p): Same.
4845 * tree-ssa-loop-split.c (split_at_bb_p): Same.
4846 (patch_loop_exit): Same.
4847 (find_or_create_guard_phi): Same.
4848 (easy_exit_values): Same.
4849 (connect_loop_phis): Same.
4850 (connect_loops): Same.
4851 (compute_new_first_bound): Same.
4852 (split_loop): Same.
4853 (tree_ssa_split_loops): Same.
4854 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
4855 (is_maybe_undefined): Same.
4856 (tree_may_unswitch_on): Same.
4857 (simplify_using_entry_checks): Same.
4858 (tree_unswitch_single_loop): Same.
4859 (tree_unswitch_loop): Same.
4860 (tree_unswitch_outer_loop): Same.
4861 (empty_bb_without_guard_p): Same.
4862 (used_outside_loop_p): Same.
4863 (get_vop_from_header): Same.
4864 (hoist_guard): Same.
4865 * tree-ssa-loop.c (gate_oacc_kernels): Same.
4866 (get_lsm_tmp_name): Same.
4867 * tree-ssa-loop.h: Same.
4868 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
4869 (build_and_add_sum): Same.
4870 (no_side_effect_bb): Same.
4871 (get_ops): Same.
4872 (linearize_expr): Same.
4873 (should_break_up_subtract): Same.
4874 (linearize_expr_tree): Same.
4875 * tree-ssa-scopedtables.c: Same.
4876 * tree-ssa-scopedtables.h: Same.
4877 * tree-ssa-structalias.c (condense_visit): Same.
4878 (label_visit): Same.
4879 (dump_pred_graph): Same.
4880 (perform_var_substitution): Same.
4881 (move_complex_constraints): Same.
4882 (remove_preds_and_fake_succs): Same.
4883 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
4884 (determine_bb_domination_status): Same.
4885 (duplicate_thread_path): Same.
4886 (thread_through_all_blocks): Same.
4887 * tree-ssa-threadupdate.h: Same.
4888 * tree-streamer-in.c (streamer_read_string_cst): Same.
4889 (input_identifier): Same.
4890 (unpack_ts_type_common_value_fields): Same.
4891 (unpack_ts_block_value_fields): Same.
4892 (unpack_ts_translation_unit_decl_value_fields): Same.
4893 (unpack_ts_omp_clause_value_fields): Same.
4894 (streamer_read_tree_bitfields): Same.
4895 (streamer_alloc_tree): Same.
4896 (lto_input_ts_common_tree_pointers): Same.
4897 (lto_input_ts_vector_tree_pointers): Same.
4898 (lto_input_ts_poly_tree_pointers): Same.
4899 (lto_input_ts_complex_tree_pointers): Same.
4900 (lto_input_ts_decl_minimal_tree_pointers): Same.
4901 (lto_input_ts_decl_common_tree_pointers): Same.
4902 (lto_input_ts_decl_non_common_tree_pointers): Same.
4903 (lto_input_ts_decl_with_vis_tree_pointers): Same.
4904 (lto_input_ts_field_decl_tree_pointers): Same.
4905 (lto_input_ts_function_decl_tree_pointers): Same.
4906 (lto_input_ts_type_common_tree_pointers): Same.
4907 (lto_input_ts_type_non_common_tree_pointers): Same.
4908 (lto_input_ts_list_tree_pointers): Same.
4909 (lto_input_ts_vec_tree_pointers): Same.
4910 (lto_input_ts_exp_tree_pointers): Same.
4911 (lto_input_ts_block_tree_pointers): Same.
4912 (lto_input_ts_binfo_tree_pointers): Same.
4913 (lto_input_ts_constructor_tree_pointers): Same.
4914 (lto_input_ts_omp_clause_tree_pointers): Same.
4915 (streamer_read_tree_body): Same.
4916 * tree-streamer.h: Same.
4917 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
4918 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
4919 (vect_analyze_possibly_independent_ddr): Same.
4920 (vect_analyze_data_ref_dependence): Same.
4921 (vect_compute_data_ref_alignment): Same.
4922 (vect_enhance_data_refs_alignment): Same.
4923 (vect_analyze_data_ref_access): Same.
4924 (vect_check_gather_scatter): Same.
4925 (vect_find_stmt_data_reference): Same.
4926 (vect_create_addr_base_for_vector_ref): Same.
4927 (vect_setup_realignment): Same.
4928 (vect_supportable_dr_alignment): Same.
4929 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
4930 (adjust_phi_and_debug_stmts): Same.
4931 (vect_set_loop_mask): Same.
4932 (add_preheader_seq): Same.
4933 (vect_maybe_permute_loop_masks): Same.
4934 (vect_set_loop_masks_directly): Same.
4935 (vect_set_loop_condition_masked): Same.
4936 (vect_set_loop_condition_unmasked): Same.
4937 (slpeel_duplicate_current_defs_from_edges): Same.
4938 (slpeel_add_loop_guard): Same.
4939 (slpeel_can_duplicate_loop_p): Same.
4940 (create_lcssa_for_virtual_phi): Same.
4941 (iv_phi_p): Same.
4942 (vect_update_ivs_after_vectorizer): Same.
4943 (vect_gen_vector_loop_niters_mult_vf): Same.
4944 (slpeel_update_phi_nodes_for_loops): Same.
4945 (slpeel_update_phi_nodes_for_guard1): Same.
4946 (find_guard_arg): Same.
4947 (slpeel_update_phi_nodes_for_guard2): Same.
4948 (slpeel_update_phi_nodes_for_lcssa): Same.
4949 (vect_do_peeling): Same.
4950 (vect_create_cond_for_alias_checks): Same.
4951 (vect_loop_versioning): Same.
4952 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
4953 (vect_inner_phi_in_double_reduction_p): Same.
4954 (vect_analyze_scalar_cycles_1): Same.
4955 (vect_fixup_scalar_cycles_with_patterns): Same.
4956 (vect_get_loop_niters): Same.
4957 (bb_in_loop_p): Same.
4958 (vect_get_max_nscalars_per_iter): Same.
4959 (vect_verify_full_masking): Same.
4960 (vect_compute_single_scalar_iteration_cost): Same.
4961 (vect_analyze_loop_form_1): Same.
4962 (vect_analyze_loop_form): Same.
4963 (vect_active_double_reduction_p): Same.
4964 (vect_analyze_loop_operations): Same.
4965 (neutral_op_for_slp_reduction): Same.
4966 (vect_is_simple_reduction): Same.
4967 (vect_model_reduction_cost): Same.
4968 (get_initial_def_for_reduction): Same.
4969 (get_initial_defs_for_reduction): Same.
4970 (vect_create_epilog_for_reduction): Same.
4971 (vectorize_fold_left_reduction): Same.
4972 (vectorizable_reduction): Same.
4973 (vectorizable_induction): Same.
4974 (vectorizable_live_operation): Same.
4975 (loop_niters_no_overflow): Same.
4976 (vect_get_loop_mask): Same.
4977 (vect_transform_loop_stmt): Same.
4978 (vect_transform_loop): Same.
4979 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
4980 (vect_determine_precisions): Same.
4981 (vect_pattern_recog_1): Same.
4982 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4983 * tree-vect-stmts.c (stmt_vectype): Same.
4984 (process_use): Same.
4985 (vect_init_vector_1): Same.
4986 (vect_truncate_gather_scatter_offset): Same.
4987 (get_group_load_store_type): Same.
4988 (vect_build_gather_load_calls): Same.
4989 (vect_get_strided_load_store_ops): Same.
4990 (vectorizable_simd_clone_call): Same.
4991 (vectorizable_store): Same.
4992 (permute_vec_elements): Same.
4993 (vectorizable_load): Same.
4994 (vect_transform_stmt): Same.
4995 (supportable_widening_operation): Same.
4996 * tree-vectorizer.c (vec_info::replace_stmt): Same.
4997 (vec_info::free_stmt_vec_info): Same.
4998 (vect_free_loop_info_assumptions): Same.
4999 (vect_loop_vectorized_call): Same.
5000 (set_uid_loop_bbs): Same.
5001 (vectorize_loops): Same.
5002 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
5003 * tree.c (add_tree_to_fld_list): Same.
5004 (fld_type_variant_equal_p): Same.
5005 (fld_decl_context): Same.
5006 (fld_incomplete_type_of): Same.
5007 (free_lang_data_in_binfo): Same.
5008 (need_assembler_name_p): Same.
5009 (find_decls_types_r): Same.
5010 (get_eh_types_for_runtime): Same.
5011 (find_decls_types_in_eh_region): Same.
5012 (find_decls_types_in_node): Same.
5013 (assign_assembler_name_if_needed): Same.
5014 * value-prof.c (stream_out_histogram_value): Same.
5015 * value-prof.h: Same.
5016 * var-tracking.c (use_narrower_mode): Same.
5017 (prepare_call_arguments): Same.
5018 (vt_expand_loc_callback): Same.
5019 (resolve_expansions_pending_recursion): Same.
5020 (vt_expand_loc): Same.
5021 * varasm.c (const_hash_1): Same.
5022 (compare_constant): Same.
5023 (tree_output_constant_def): Same.
5024 (simplify_subtraction): Same.
5025 (get_pool_constant): Same.
5026 (output_constant_pool_2): Same.
5027 (output_constant_pool_1): Same.
5028 (mark_constants_in_pattern): Same.
5029 (mark_constant_pool): Same.
5030 (get_section_anchor): Same.
5031 * vr-values.c (compare_range_with_value): Same.
5032 (vr_values::extract_range_from_phi_node): Same.
5033 * vr-values.h: Same.
5034 * web.c (unionfind_union): Same.
5035 * wide-int.h: Same.
5036
5037 2019-07-09 Martin Sebor <msebor@redhat.com>
5038
5039 PR c++/61339
5040 * align.h: Change class-key from class to struct and vice versa
5041 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
5042 * alloc-pool.h: Same.
5043 * asan.c (shadow_mem_size): Same.
5044 * auto-profile.c: Same.
5045 * basic-block.h: Same.
5046 * bitmap.h: Same.
5047 * cfgexpand.c (set_rtl): Same.
5048 (expand_one_stack_var_at): Same.
5049 * cfghooks.h: Same.
5050 * cfgloop.h: Same.
5051 * cgraph.h: Same.
5052 * config/i386/i386.h: Same.
5053 * df-problems.c (df_print_bb_index): Same.
5054 * df-scan.c: Same.
5055 * df.h (df_single_use): Same.
5056 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
5057 (layout::annotation_line_showed_range_p): Same.
5058 (get_printed_columns): Same.
5059 (correction::ensure_terminated): Same.
5060 (line_corrections::~line_corrections): Same.
5061 * dojump.h: Same.
5062 * dse.c: Same.
5063 * dump-context.h: Same.
5064 * dumpfile.h: Same.
5065 * dwarf2out.c: Same.
5066 * edit-context.c: Same.
5067 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
5068 * flags.h: Same.
5069 * function.c (assign_stack_local): Same.
5070 * function.h: Same.
5071 * gcc.c: Same.
5072 * gcov.c (block_info::block_info): Same.
5073 * genattrtab.c: Same.
5074 * genextract.c: Same.
5075 * genmatch.c (comparison_code_p): Same.
5076 (id_base::id_base): Same.
5077 (decision_tree::print): Same.
5078 * genoutput.c: Same.
5079 * genpreds.c (write_one_predicate_function): Same.
5080 * genrecog.c (validate_pattern): Same.
5081 (find_operand_positions): Same.
5082 (optimize_subroutine_group): Same.
5083 (merge_pattern_transition::merge_pattern_transition): Same.
5084 (merge_pattern_info::merge_pattern_info): Same.
5085 (merge_state_result::merge_state_result): Same.
5086 (merge_into_state): Same.
5087 * gensupport.c: Same.
5088 * gensupport.h: Same.
5089 * ggc-common.c (init_ggc_heuristics): Same.
5090 * ggc-tests.c (test_union): Same.
5091 * gimple-loop-interchange.cc (dump_induction): Same.
5092 * gimple-loop-versioning.cc: Same.
5093 * gimple-match.h (gimple_match_cond::any_else): Same.
5094 * gimple-ssa-backprop.c: Same.
5095 * gimple-ssa-sprintf.c: Same.
5096 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
5097 Same.
5098 (store_immediate_info::store_immediate_info): Same.
5099 (merged_store_group::apply_stores): Same.
5100 (get_location_for_stmts): Same.
5101 * gimple-ssa-strength-reduction.c: Same.
5102 * gimple-ssa-warn-alloca.c: Same.
5103 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
5104 * godump.c (go_type_decl): Same.
5105 * hash-map-tests.c (test_map_of_strings_to_int): Same.
5106 * hash-map.h: Same.
5107 * hash-set-tests.c (test_set_of_strings): Same.
5108 * hsa-brig.c: Same.
5109 * hsa-common.h: Same.
5110 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
5111 * input.c (assert_loceq): Same.
5112 * input.h: Same.
5113 * ipa-cp.c: Same.
5114 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
5115 * ipa-fnsummary.h: Same.
5116 * ipa-inline.h: Same.
5117 * ipa-prop.h: Same.
5118 * ipa-split.c (visit_bb): Same.
5119 * ira-int.h (minmax_set_iter_next): Same.
5120 * loop-invariant.c: Same.
5121 * loop-iv.c: Same.
5122 * lra-eliminations.c: Same.
5123 * lra-int.h: Same.
5124 * lra-lives.c (mark_regno_dead): Same.
5125 * lra-remat.c: Same.
5126 * lra-spills.c: Same.
5127 * lto-streamer.h: Same.
5128 * mem-stats.h: Same.
5129 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
5130 * omp-low.c (omp_clause_aligned_alignment): Same.
5131 * optabs-query.h (get_vcond_eq_icode): Same.
5132 * optabs.h: Same.
5133 * opts.c (wrap_help): Same.
5134 * poly-int.h: Same.
5135 * predict.c (predict_paths_leading_to_edge): Same.
5136 * pretty-print.h: Same.
5137 * profile-count.h: Same.
5138 * read-md.h: Same.
5139 * read-rtl-function.c: Same.
5140 * ree.c: Same.
5141 * reginfo.c: Same.
5142 * regrename.c: Same.
5143 * regrename.h: Same.
5144 * reload.h: Same.
5145 * rtl-iter.h: Same.
5146 * rtl.h (costs_add_n_insns): Same.
5147 * sanopt.c: Same.
5148 * sched-int.h: Same.
5149 * sel-sched-ir.h: Same.
5150 * selftest.h: Same.
5151 * sese.h (vec_find): Same.
5152 * stmt.c: Same.
5153 * target-globals.h: Same.
5154 * tree-affine.c (aff_combination_find_elt): Same.
5155 * tree-affine.h: Same.
5156 * tree-data-ref.h: Same.
5157 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
5158 * tree-predcom.c: Same.
5159 * tree-scalar-evolution.c (find_var_scev_info): Same.
5160 * tree-ssa-alias.h: Same.
5161 * tree-ssa-ccp.c: Same.
5162 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
5163 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
5164 (rewrite_mem_refs): Same.
5165 (execute_sm_if_changed): Same.
5166 (hoist_memory_references): Same.
5167 * tree-ssa-loop-ivopts.c (operator<=): Same.
5168 * tree-ssa-loop.h: Same.
5169 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
5170 * tree-ssa-structalias.c: Same.
5171 * tree-switch-conversion.h (cluster::cluster): Same.
5172 (simple_cluster::simple_cluster): Same.
5173 * tree-vect-patterns.c (type_conversion_p): Same.
5174 * tree-vectorizer.c (dump_stmt_cost): Same.
5175 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
5176 * tree.c (protected_set_expr_location): Same.
5177 * tree.h (desired_pro_or_demotion_p): Same.
5178 (fndecl_built_in_p): Same.
5179 * unique-ptr-tests.cc: Same.
5180 * var-tracking.c (delete_variable_part): Same.
5181 * varasm.c (assemble_real): Same.
5182 (tree_output_constant_def): Same.
5183 * vec.c: Same.
5184 * wide-int-bitmask.h: Same.
5185 * wide-int.h (decompose): Same.
5186
5187 2019-07-09 Richard Biener <rguenther@suse.de>
5188
5189 PR tree-optimization/91114
5190 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
5191 find a vector type isn't fatal.
5192
5193 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5194
5195 * config/aarch64/aarch64-simd.md
5196 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
5197 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
5198 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
5199 (*aarch64_crypto_aese_fused,
5200 *aarch64_crypto_aesd_fused): Update to new definition.
5201 * config/aarch64/aarch64.c
5202 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
5203
5204 2019-07-09 Richard Biener <rguenther@suse.de>
5205
5206 * gimple-match.h (gimple_match_op::resimplify): New.
5207 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
5208 gimple_resimplify4, gimple_resimplify5): Remove.
5209 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
5210 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
5211 Make static.
5212 (gimple_match_op::resimplify): New.
5213 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
5214 according to availability. Use gimple_match_op::resimplify.
5215
5216 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
5217
5218 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
5219
5220 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5221
5222 * config/arm/crypto.md:
5223 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
5224 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
5225 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
5226 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
5227 * config/arm/arm.c
5228 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
5229 * config/arm/aarch-common-protos.h
5230 (aarch_crypto_can_dual_issue): Remove.
5231 * config/arm/aarch-common.c
5232 (aarch_crypto_can_dual_issue): Likewise.
5233 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
5234 * config/arm/cortex-a53.md: Likewise.
5235 * config/arm/cortex-a57.md: Likewise.
5236 * config/arm/iterators.md:
5237 (CRYPTO_BINARY): Redefine.
5238 (CRYPTO_UNARY): Removed.
5239 (CRYPTO_AES, CRYPTO_AESMC): New.
5240
5241 2019-07-09 Richard Biener <rguenther@suse.de>
5242
5243 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
5244 (vn_reference_lookup_3): If the main ref has no access path recorded
5245 but orig_ref has use it to do access-path based disambiguation.
5246 (vn_reference_lookup_pieces): Adjust.
5247 (vn_reference_lookup): Pass down original ref if we valueized.
5248
5249 2019-07-09 Martin Liska <mliska@suse.cz>
5250
5251 * doc/extend.texi: Document influence on loop
5252 optimizers.
5253
5254 2019-07-09 Martin Liska <mliska@suse.cz>
5255
5256 * lto-compress.c (lto_normalized_zstd_level): Do not use
5257 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
5258 of libzstd. One can use 0 as a default compression level.
5259
5260 2019-07-09 Martin Liska <mliska@suse.cz>
5261
5262 * doc/invoke.texi: Add link from -fprofile-dir option.
5263 Use better wording for 'gcno filename'.
5264
5265 2019-07-08 Martin Sebor <msebor@redhat.com>
5266
5267 PR middle-end/71924
5268 PR middle-end/90549
5269 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
5270 comment.
5271 (args_loc_t): New type.
5272 (args_loc_t, locmap_t): same.
5273 (diag_returned_locals): New function.
5274 (is_addr_local): Same.
5275 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
5276 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
5277 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
5278
5279 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5280
5281 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
5282 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
5283 and casts in offset when different, both through gimple stmts
5284 and through trees. Rewritten using loops to minimize code duplication
5285 for each operand.
5286
5287 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
5288
5289 * emit-rtl.c (set_insn_locations): New function moved from...
5290 * function.c (set_insn_locations): ...here.
5291 * ira-emit.c (emit_moves): Propagate location of the first instruction
5292 to the inserted move instructions.
5293 * reg-stack.c (compensate_edge): Set the location if the sequence is
5294 inserted on the edge.
5295 * rtl.h (set_insn_locations): Declare.
5296
5297 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5298
5299 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
5300 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
5301 .machine string.
5302
5303 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5304
5305 PR rtl-optimization/88233
5306 * common.opt (fsplit-wide-types-early): New option.
5307 * common/config/rs6000/rs6000-common.c
5308 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
5309 OPT_LEVELS_ALL.
5310 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
5311 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
5312 flag_split_wide_types_early.
5313 (pass_data_lower_subreg3): New.
5314 (pass_lower_subreg3): New.
5315 (make_pass_lower_subreg3): New.
5316 * passes.def (pass_lower_subreg2): Move after the loop passes.
5317 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
5318 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
5319 the pass pipeline; its previous place is taken by ...
5320 (make_pass_lower_subreg3): ... this.
5321
5322 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5323
5324 * config/s390/s390.c (s390_shift_truncation_mask): Define.
5325 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5326
5327 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5328
5329 * config/s390/constraints.md: Add new jsc constraint.
5330 * config/s390/predicates.md: New predicates.
5331 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
5332 * config/s390/s390.c (s390_valid_shift_count): New function.
5333 (print_shift_count_operand): Use s390_valid_shift_count.
5334 (print_operand): Likewise.
5335 * config/s390/s390.md: Use new predicate.
5336 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
5337 * config/s390/vector.md: Use new predicate.
5338
5339 2019-07-08 Andrew Waterman <andrew@sifive.com>
5340 Jim Wilson <jimw@sifive.com>
5341
5342 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
5343 bitsize instead of BITS_PER_WORD.
5344
5345 2019-07-08 Martin Liska <mliska@suse.cz>
5346
5347 * collect2.c (defined): Revert to before r254460.
5348 (scan_prog_file): Revert to before r254460.
5349
5350 2019-07-08 Richard Biener <rguenther@suse.de>
5351
5352 PR tree-optimization/83518
5353 * tree-ssa-sccvn.c: Include splay-tree.h.
5354 (struct pd_range, struct pd_data): New.
5355 (struct vn_walk_cb_data): Add data to track partial definitions.
5356 (vn_walk_cb_data::~vn_walk_cb_data): New.
5357 (vn_walk_cb_data::push_partial_def): New.
5358 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
5359 (vn_reference_lookup_2): When partial defs are registered give up.
5360 (vn_reference_lookup_3): Track partial defs for memset and
5361 constructor zeroing and for defs from constants.
5362
5363 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5364
5365 * doc/install.texi (bootstrap-Og): Document.
5366
5367 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5368
5369 * config/riscv/pic.md (*local_pic_load_s<mode>)
5370 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
5371 referenced by <mode>, giving...
5372 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
5373 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
5374 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
5375 use <X:MODE> for the mode attribute.
5376
5377 2019-07-07 Jeff Law <law@redhat.com>
5378
5379 PR tree-optimization/91090
5380 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
5381 in handling of ranges to simplify switch statements.
5382
5383 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5384
5385 * config/darwin.c (darwin_override_options): Make a final check on PIC
5386 options.
5387
5388 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5389
5390 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
5391 on for kernel code.
5392
5393 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5394
5395 PR target/91068
5396 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
5397 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
5398 instead of matching them to "l" output operands.
5399
5400 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5401
5402 * config/mips/mips.c (mips_split_move): Zero-initialize addr
5403 and check whether addr.reg is nonnull before using it.
5404
5405 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5406
5407 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
5408 ctx->for_simd_scan_phase simd copy the outer var to the privatized
5409 variable(s). For conditional lastprivate look through outer
5410 GIMPLE_OMP_SCAN context.
5411 (lower_omp_1): For conditional lastprivate look through outer
5412 GIMPLE_OMP_SCAN context.
5413
5414 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
5415 member to combined_into_simd_safelen1.
5416 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
5417 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
5418 clauses if ctx->combined_into_simd_safelen1 put statements after the
5419 predicate conditionalized block rather than into it.
5420
5421 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5422
5423 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
5424 operand 1.
5425 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
5426 Make the choice of <mode> explicit, giving...
5427 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
5428
5429 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5430
5431 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
5432 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
5433 of .md attributes.
5434 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
5435 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
5436 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
5437 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
5438 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
5439 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
5440 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
5441 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
5442 (*avx512f_scatterdi<mode>): Likewise.
5443 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
5444
5445 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5446
5447 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
5448 specify the mode iterator referenced by <mode>, giving...
5449 (*push1_h8300hs_<QHI:mode>): ...this.
5450
5451 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5452
5453 * config/gcn/gcn-valu.md
5454 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
5455 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
5456 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
5457 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
5458 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
5459 but using the _exec comparison patterns.
5460 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
5461 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
5462 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
5463 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
5464 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
5465 but using the _exec comparison patterns.
5466
5467 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5468
5469 * config/arm/sync.md
5470 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
5471 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
5472 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
5473 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
5474 <SIDI:cas_cmp_str>.
5475
5476 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5477
5478 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
5479 (maybe_lookup_ctx): Add forward declaration.
5480 (omp_find_scan): Likewise. Walk into body of simd if composited
5481 with worksharing loop.
5482 (scan_omp_simd_scan): New function.
5483 (scan_omp_1_stmt): Call it.
5484 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
5485 ctx->for_simd_scan_phase.
5486 (lower_rec_input_clauses): Do much less work for inscan reductions
5487 in ctx->for_simd_scan_phase is_simd regions.
5488 (lower_omp_scan): Set is_simd also on simd constructs composited
5489 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
5490 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
5491 emit their body after in simd constructs composited with worksharing
5492 loop.
5493 (lower_omp_for_scan): Handle worksharing loop composited with simd.
5494
5495 * omp-low.c (omp_find_scan): Make static.
5496 (lower_omp_for_scan): Fix order of merge arguments in input phase of
5497 the second loop, var2 represents the first partial sum and so needs
5498 to go before rprivb[ivar].
5499
5500 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
5501
5502 * config/rs6000/rs6000-logue.c: Remove unused code.
5503
5504 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5505
5506 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
5507
5508 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
5509
5510 PR target/90712
5511 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
5512 check with a frame laid out check.
5513
5514 2019-07-05 Richard Biener <rguenther@suse.de>
5515
5516 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
5517 when comparing against a store with possibly the same value.
5518
5519 2019-07-05 Richard Biener <rguenther@suse.de>
5520
5521 PR tree-optimization/91091
5522 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
5523 (walk_non_aliased_vuses): Likewise.
5524 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
5525 (get_continuation_for_phi): New tbaa_p parameter and pass
5526 it down.
5527 (walk_non_aliased_vuses): Likewise.
5528 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
5529 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5530 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5531 Likewise.
5532 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
5533 (adjust_offsets_for_equal_base_address): New function.
5534 (vn_reference_lookup_3): Use it to catch more base equivalences.
5535 Handle and pass down tbaa_p flag.
5536 (vn_reference_lookup_pieces): Adjust.
5537 (vn_reference_lookup): Remove alias-set altering, instead pass
5538 down false as tbaa_p.
5539
5540 2019-07-05 Richard Biener <rguenther@suse.de>
5541
5542 PR tree-optimization/91091
5543 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
5544 accesses can happen with -fno-strict-aliasing.
5545
5546 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
5547
5548 * tree-ssa-alias.c (alias_stats): Add
5549 nonoverlapping_component_refs_since_match_p_must_overlap.
5550 (dump_alias_stats): Print it.
5551 (nonoverlapping_component_refs_since_match_p): Add early exit.
5552 (nonoverlapping_component_refs_p): Do not account early exit.
5553
5554 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5555
5556 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
5557 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
5558 (emit_eh_dispatch): Delete.
5559 (lower_catch): Emit the eh_dispatch manually and set the location of
5560 the first catch statement onto it.
5561 (lower_eh_filter): Emit the eh_dispatch manually and set location.
5562 (lower_eh_dispatch): Propagate location.
5563 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
5564 (eliminate_build): Likewise.
5565
5566 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5567
5568 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
5569 phi nodes if possible.
5570 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
5571 location info on the newly created statement.
5572 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
5573 newly created increment if needed.
5574
5575 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5576
5577 PR middle-end/78884
5578 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
5579 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
5580 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
5581 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
5582 ctx->add_safelen1 is set.
5583
5584 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
5585 GOMP_loop_start at the start of second worksharing loop in a scan.
5586 For nowait, don't emit GOMP_loop_end_nowait at the end of first
5587 worksharing loop in a scan even if there are conditional lastprivates,
5588 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
5589
5590 2019-07-04 Jan Hubicka <jh@suse.cz>
5591
5592 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5593 Fix check for match in the ref walk.
5594
5595 2019-07-04 Martin Liska <mliska@suse.cz>
5596
5597 * tree-ssa-loop-niter.c
5598 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
5599 (estimate_numbers_of_iterations):
5600 Support __builtin_expect_with_probability for analysis
5601 of # of loop iterations.
5602
5603 2019-07-04 Alexandre Oliva <oliva@adacore.com>
5604
5605 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
5606 * except.c: Likewise.
5607 * expr.c (expand_expr_real_1): Reject it.
5608 * gimplify.c (gimplify_expr): Gimplify it, within
5609 TRY_FINALLY_EXPR.
5610 * tree-dump.c (dequeue_and_dump): Dump it.
5611 * tree-pretty-print.c (dump_generic_node): Likewise.
5612 * tree.c (block_may_fallthru): Handle it.
5613 * tree.def (EH_ELSE_EXPR): Introduce it.
5614 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
5615 with GIMPLE_EH_ELSE as try/finally/else.
5616
5617 2019-07-04 Richard Biener <rguenther@suse.de>
5618
5619 PR ipa/91062
5620 * tree-pass.h (execute_all_ipa_transforms): Add a flag
5621 parameter whether to disable GC collection.
5622 * passes.c (execute_one_ipa_transform_pass): Likewise, and
5623 honor it.
5624 (execute_all_ipa_transforms): Likewise and pass it down.
5625 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
5626 collection from applying IPA transforms.
5627 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
5628 from applying IPA transforms.
5629
5630 2019-07-04 Richard Biener <rguenther@suse.de>
5631
5632 PR tree-optimization/90911
5633 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
5634 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
5635 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5636 scalar_loop_scaling.
5637 (vect_transform_loop): Scale scalar loop profile if needed.
5638 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
5639 the loop copy from if-conversion adjust edge probabilities
5640 and scale the vectorized loop body profile, queue the scalar
5641 profile for updating after peeling.
5642
5643 2019-07-04 Jan Hubicka <jh@suse.cz>
5644
5645 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
5646 parameters; return early for must-alias.
5647 (indirect_ref_may_alias_decl_p): Likewise; when establishing
5648 outer types match, try nonoverlapping_component_refs
5649 if must-alias is not obvious.
5650 (indirect_refs_may_alias_p): Likewise.
5651 (refs_may_alias_p_2): Likewise.
5652
5653 2019-07-04 Richard Biener <rguenther@suse.de>
5654
5655 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
5656 argument.
5657 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
5658 globals into...
5659 (struct vn_walk_cb_data): New callback data struct.
5660 (vn_reference_lookup_2): Adjust.
5661 (vn_reference_lookup_3): Likewise.
5662 (vn_reference_lookup_pieces): Likewise.
5663 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
5664 (visit_reference_op_load): Adjust.
5665
5666 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5667
5668 PR tree-optimization/91063
5669 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
5670 stmt from stmts sequence before calling vect_init_vector_1.
5671 Formatting fix.
5672
5673 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5674
5675 PR target/88833
5676 * fwprop.c (reg_single_def_p): New function.
5677 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
5678 (forward_propagate_into): New parameter reg_prop_only
5679 with default value false.
5680 Propagate def's src into loop only if SET_SRC and SET_DEST
5681 of def_set have single definitions.
5682 Likewise if reg_prop_only is set to true.
5683 (fwprop): New param fwprop_addr_p.
5684 Integrate fwprop_addr into fwprop.
5685 (fwprop_addr): Remove.
5686 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
5687 to true.
5688 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
5689 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
5690 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
5691
5692 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5693
5694 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
5695 in worksharing loop scans.
5696
5697 PR tree-optimization/91074
5698 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
5699 temporary.
5700
5701 PR rtl-optimization/90756
5702 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
5703 for VECTOR_TYPE_P.
5704
5705 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
5706
5707 * config/aarch64/aarch64.md: Remove redundant constraints from
5708 define_expand but keep some patterns untouched if they are
5709 specially selected by TARGET_SECONDARY_RELOAD hook.
5710 * config/aarch64/aarch64-sve.md: Likewise.
5711 * config/aarch64/atomics.md: Remove redundant constraints from
5712 define_expand.
5713 * config/aarch64/aarch64-simd.md: Likewise.
5714
5715 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5716
5717 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
5718 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
5719 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
5720 clauses.
5721 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
5722 DARWIN_NOPIE_SPEC.
5723
5724 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5725
5726 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
5727 (STARTFILE_SPEC): Split crt3 into a separate spec.
5728 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
5729 (DARWIN_CRT2_SPEC): New.
5730 (DARWIN_CRT3_SPEC): New.
5731 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
5732 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
5733 (DARWIN_CRT3_SPEC): New.
5734
5735 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
5736
5737 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
5738 Change the RTL attribute "length" from "4" to "*" to allow the
5739 length attribute to be adjusted automatically for prefixed load,
5740 store, and add immediate instructions.
5741 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
5742 Likewise.
5743 (extendsi<mode>2, EXTSI iterator): Likewise.
5744 (movsi_internal1): Likewise.
5745 (movsi_from_sf): Likewise.
5746 (movdi_from_sf_zero_ext): Likewise.
5747 (mov<mode>_internal): Likewise.
5748 (movcc_internal1, QHI iterator): Likewise.
5749 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
5750 (movsf_from_si): Likewise.
5751 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
5752 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
5753 (mov<mode>, FMOVE128 iterator): Likewise.
5754 (movdi_internal64): Likewise.
5755 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
5756 Likewise.
5757 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
5758 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
5759 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
5760 (vsx_splat_v4sf): Likewise.
5761
5762 2019-07-03 Mark Wielaard <mark@klomp.org>
5763
5764 PR debug/90981
5765 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
5766 DW_AT_addr_base if there is actually a .debug_addr section with
5767 addresses.
5768 (output_addr_table): Add DWARF5 table header generation here after
5769 checking there are actually any addresses from...
5770 (dwarf2out_finish): ...here.
5771
5772 2019-07-03 Richard Biener <rguenther@suse.de>
5773
5774 PR middle-end/91069
5775 * match.pd (vec_perm -> bit_insert): Fix element read from
5776 first vector.
5777
5778 2019-07-03 Martin Liska <mliska@suse.cz>
5779
5780 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
5781 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
5782 condition.
5783 * generic-match-head.c: Include dbgcnt.h.
5784 * gimple-match-head.c: Likewise.
5785
5786 2019-07-03 Martin Liska <mliska@suse.cz>
5787
5788 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
5789 (GCOV_COUNTER_V_TOPN): New.
5790 (GCOV_COUNTER_V_INDIR): Use _topn.
5791 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
5792 (GCOV_TOPN_VALUES): New.
5793 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
5794 (GCOV_TOPN_VALUES_COUNTERS): New.
5795 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
5796 * tree-profile.c:
5797 (gimple_init_gcov_profiler): Rename variables from one_value
5798 to topn_values.
5799 (gimple_gen_one_value_profiler): Remove.
5800 (gimple_gen_topn_values_profiler): New function.
5801 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
5802 names instead of SINGLE_VALUE.
5803 (stream_out_histogram_value): Likewise.
5804 (stream_in_histogram_value): Likewise.
5805 (get_most_common_single_value): Likewise.
5806 (gimple_divmod_fixed_value_transform): Likewise.
5807 (gimple_stringops_transform): Likewise.
5808 (gimple_divmod_values_to_profile): Likewise.
5809 (gimple_stringops_values_to_profile): Likewise.
5810 (gimple_find_values_to_profile): Likewise.
5811 * value-prof.h (enum hist_type): Rename to TOPN.
5812 (gimple_gen_one_value_profiler): Remove.
5813 (gimple_gen_topn_values_profiler): New.
5814
5815 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
5816
5817 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
5818 if it has the DW_AT_data_member_location attribute.
5819
5820 2019-07-03 Richard Biener <rguenther@suse.de>
5821
5822 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
5823 dumping.
5824
5825 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
5826
5827 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
5828 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
5829 (tlsdesc_small_sve_<mode>): Likewise.
5830
5831 2019-07-03 Martin Liska <mliska@suse.cz>
5832
5833 * Makefile.in: Define ZSTD_LIB.
5834 * common.opt: Adjust compression level
5835 to support also zstd levels.
5836 * config.in: Regenerate.
5837 * configure: Likewise.
5838 * configure.ac: Add --with-zstd and --with-zstd-include options
5839 and detect ZSTD.
5840 * doc/install.texi: Mention zstd dependency.
5841 * gcc.c: Print supported LTO compression algorithms.
5842 * lto-compress.c (lto_normalized_zstd_level): Likewise.
5843 (lto_compression_zstd): Likewise.
5844 (lto_uncompression_zstd): Likewise.
5845 (lto_end_compression): Dispatch in between zlib and zstd.
5846 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
5847 (lto_uncompression_zlib): Make it static.
5848 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
5849 * lto-section-in.c (lto_get_section_data): Pass info
5850 about used compression.
5851 * lto-streamer-out.c: By default use zstd when possible.
5852 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
5853 (TV_IPA_LTO_COMPRESS): Likewise for compression.
5854
5855 2019-07-03 Martin Liska <mliska@suse.cz>
5856
5857 * lto-section-in.c (lto_get_section_data): Add "lto" section.
5858 * lto-section-out.c (lto_destroy_simple_output_block): Never
5859 compress LTO_section_lto section.
5860 * lto-streamer-out.c (produce_asm): Do not set major_version
5861 and minor_version.
5862 (lto_output_toplevel_asms): Likewise.
5863 (produce_lto_section): New function.
5864 (lto_output): Call produce_lto_section.
5865 (lto_write_mode_table): Do not set major_version and
5866 minor_version.
5867 (produce_asm_for_decls): Likewise.
5868 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
5869 type.
5870 (struct lto_header): Remove.
5871 (struct lto_section): New struct.
5872 (struct lto_simple_header): Do not inherit from lto_header.
5873 (struct lto_file_decl_data): Add lto_section_header field.
5874
5875 2019-07-03 Martin Liska <mliska@suse.cz>
5876
5877 * lra-eliminations.c (eliminate_regs_in_insn): Remove
5878 dead assignemts.
5879 * reg-stack.c (check_asm_stack_operands): Likewise.
5880 * tree-ssa-structalias.c (create_function_info_for): Likewise.
5881 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5882 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
5883 force_expand_binop.
5884
5885 2019-07-03 Martin Liska <mliska@suse.cz>
5886
5887 PR tree-optimization/90892
5888 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
5889 in string constants.
5890
5891 2019-07-03 Martin Liska <mliska@suse.cz>
5892
5893 PR middle-end/90899
5894 * multiple_target.c (create_dispatcher_calls): Add to comdat
5895 group only if set for ifunc.
5896
5897 2019-07-03 Martin Liska <mliska@suse.cz>
5898
5899 PR target/88056
5900 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5901 Define local_object_name in outer scope in order to handle
5902 use-after-scope issue.
5903
5904 2019-07-03 Martin Liska <mliska@suse.cz>
5905
5906 * common.opt: Add fprofile-note.
5907 * coverage.c (coverage_init): Append the option
5908 to bbg_file_name.
5909 * doc/invoke.texi: Document -fprofile-note.
5910
5911 2019-07-03 Jakub Jelinek <jakub@redhat.com>
5912
5913 PR tree-optimization/91033
5914 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
5915 vect_analyze_data_refs): Add bool * arguments.
5916 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
5917 if failure is due to scatter/gather, set *fatal to false if non-NULL.
5918 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5919 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
5920 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
5921 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
5922 vect_analyze_data_refs caller.
5923
5924 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
5925 clause.
5926 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
5927 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
5928 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
5929 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5930 OMP_CLAUSE__SCANTEMP_ entry.
5931 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
5932 * tree-pretty-print.c (dump_omp_clause): Likewise.
5933 * tree-nested.c (convert_nonlocal_omp_clauses,
5934 convert_local_omp_clauses): Likewise.
5935 * omp-general.h (struct omp_for_data): Add have_scantemp and
5936 have_nonctrl_scantemp members.
5937 * omp-general.c (omp_extract_for_data): Initialize them.
5938 * omp-low.c (struct omp_context): Add scan_exclusive member.
5939 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
5940 result again with GF_OMP_FOR_KIND_MASK. Initialize also
5941 ctx->scan_exclusive.
5942 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
5943 of !ctx->scan_inclusive.
5944 (lower_rec_input_clauses): Simplify gimplification of dtors using
5945 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
5946 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
5947 loops. Don't add barrier for reduction_omp_orig_ref if
5948 ctx->scan_??xclusive.
5949 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
5950 (lower_omp_scan): Use ctx->scan_exclusive instead
5951 of !ctx->scan_inclusive. Handle worksharing loops with inscan
5952 reductions. Use new_vard != new_var instead of repeated
5953 omp_is_reference calls.
5954 (omp_find_scan, lower_omp_for_scan): New functions.
5955 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
5956 inscan reductions.
5957 * omp-expand.c (expand_omp_scantemp_alloc): New function.
5958 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
5959 and fd->have_scantemp.
5960
5961 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
5962 on worksharing loop propagate it as shared clause to containing
5963 combined parallel.
5964
5965 * omp-expand.c (expand_omp_for_static_nochunk,
5966 expand_omp_for_static_chunk): For nowait worksharing loop with
5967 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
5968 at the end.
5969
5970 2019-07-02 qing zhao <qing.zhao@oracle.com>
5971
5972 PR preprocessor/90581
5973 * doc/cppopts.texi: Add document for -fmax-include-depth.
5974 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
5975
5976 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
5977
5978 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
5979 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
5980 (mmx_packssdw): Ditto.
5981 (mmx_punpckhbw): Ditto.
5982 (mmx_punpcklbw): Ditto.
5983 (mmx_punpckhwd): Ditto.
5984 (mmx_punpcklwd): Ditto.
5985 (mmx_punpckhdq): Ditto.
5986 (mmx_punpckldq): Ditto.
5987 (*vec_dupv4hi): Ditto.
5988 (*vec_dupv2si): Ditto.
5989 (mmx_pmovmskb): Ditto.
5990 * config/i386/sse.md (sse_cvtpi2ps): Use
5991 TARGET_SSE2 && SSE_REG_P in split condition.
5992 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
5993 TARGET_SSSE3 && SSE_REGNO_P in split condition.
5994 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
5995 (ssse3_pshufbv8qi3): Ditto.
5996 (ssse3_palignrdi): Ditto.
5997
5998 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
5999
6000 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
6001 with inlined save and restore.
6002
6003 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
6004
6005 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
6006 to be inserted on single successor edge of the entry block. Then call
6007 commit_edge_insertions instead of inserting the instructions manually.
6008 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
6009 RTL expansion and rebuild jump labels chain.
6010
6011 2019-07-02 Richard Biener <rguenther@suse.de>
6012
6013 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
6014 TI_CHREC_KNOWN.
6015 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6016 Define here.
6017 * tree.c (build_common_tree_nodes): Initialize them.
6018 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6019 Make declarations comments.
6020 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
6021 chrec_known): Remove definitions.
6022 (initialize_scalar_evolutions_analyzer): Remove.
6023 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
6024 * tree-streamer.c (preload_common_nodes): Do not preload
6025 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
6026
6027 2019-07-02 Jan Hubicka <jh@suse.cz>
6028
6029 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
6030 sanity check.
6031
6032 2019-07-02 Jan Hubicka <jh@suse.cz>
6033
6034 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
6035 to ..
6036 (nonoverlapping_component_refs_since_match_p): ... this one;
6037 handle also non-decl bases; return -1 if search gave up.
6038 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
6039 nonoverlapping_component_refs_of_decl_p_no_alias to
6040 nonoverlapping_component_refs_since_match_p_may_alias,
6041 nonoverlapping_component_refs_since_match_p_no_alias.
6042 (dump_alias_stats): Update dumping.
6043 (aliasing_matching_component_refs_p): Break out from ...;
6044 dispatch to nonoverlapping_component_refs_for_decl_p
6045 and nonoverlapping_component_refs_since_match_p.
6046 (aliasing_component_refs_p): ... here; call
6047 nonoverlapping_component_refs_p in scenarios where we can not
6048 precisely determine base match.
6049 (decl_refs_may_alias_p): Use
6050 nonoverlapping_component_refs_since_match_p.
6051 (indirect_ref_may_alias_decl_p): Do not call
6052 nonoverlapping_component_refs_p.
6053 (indirect_refs_may_alias_p): Likewise.
6054
6055 2019-07-02 Jan Hubicka <jh@suse.cz>
6056
6057 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
6058 to clobber of return value.
6059
6060 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6061
6062 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
6063 for is_neon_type instructions that have not already been categorized.
6064
6065 2019-07-02 Richard Biener <rguenther@suse.de>
6066
6067 PR tree-optimization/58483
6068 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
6069 for MEM_REF base hashing.
6070 (equal_mem_array_ref_p): Likewise for base comparison.
6071
6072 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6073
6074 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
6075 parameterized name.
6076 (signbit<mode>2): Use that name. Simplify.
6077
6078 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
6079
6080 PR middle-end/66726
6081 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
6082 Tune heuristic from PR71016 to allow MIN / MAX.
6083
6084 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6085
6086 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
6087 parameterized name.
6088 (abs<mode>2): Use that name. Simplify.
6089
6090 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6091
6092 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
6093 parameterized name.
6094 (neg<mode>2): Use that name. Simplify.
6095
6096 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6097
6098 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
6099 name.
6100 (abs<mode>2): Use that name. Simplify.
6101
6102 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6103
6104 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
6105 name.
6106 (neg<mode>2): Use that name. Simplify.
6107
6108 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
6109
6110 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
6111 ("enabled" attribute): Handle sse_noavx isa attribute.
6112 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
6113 Use TARGET_SSE && SSE_REGNO_P in split condition.
6114 (*vec_dupv2sf): Ditto.
6115
6116 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6117
6118 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
6119 name.
6120 (floatsi<mode>2): Use that name. Simplify.
6121
6122 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6123
6124 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
6125 parameterized name.
6126 (extenddf<mode>2_vsx): Make this a parameterized name.
6127 (extenddf<mode>2): Use those names. Simplify.
6128
6129 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6130
6131 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
6132 name.
6133 (eh_return): Use that name. Simplify.
6134
6135 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6136
6137 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
6138 (doloop_end): Use that name. Simplify.
6139
6140 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6141
6142 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
6143 parameterized name.
6144 (indirect_jump): Use that name. Simplify.
6145
6146 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6147
6148 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
6149 parameterized name.
6150 (abs<mode>2): Use that name. Simplify.
6151
6152 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6153
6154 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
6155 parameterized name.
6156 (fix_trunc<mode>si2): Use that name. Simplify.
6157
6158 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6159
6160 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
6161 (allocate_stack): Use that name. Simplify.
6162
6163 2019-07-01 Martin Sebor <msebor@redhat.com>
6164
6165 PR middle-end/90923
6166 * hash-map.h (hash_map::put): On insertion invoke element ctor.
6167 (hash_map::get_or_insert): Same. Reformat comment.
6168 * hash-set.h (hash_set::add): On insertion invoke element ctor.
6169 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6170 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6171 * hash-table.h (hash_table::operator=): Prevent copy assignment.
6172 (hash_table::hash_table (const hash_table&)): Use copy ctor
6173 instead of assignment to copy elements.
6174
6175 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
6176 John David Anglin <danglin@gcc.gnu.org>
6177
6178 PR target/90963
6179 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
6180 using saved frame pointer.
6181
6182 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
6183
6184 PR middle-end/64242
6185 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
6186 Add frame clobber and schedule blockage.
6187
6188 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
6189
6190 * doc/invoke.texi (Link Options): Further editorial changes to
6191 -flinker-output docs.
6192
6193 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6194
6195 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
6196 Load both operands of a PLUS into registers separately.
6197
6198 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
6199
6200 * config/s390/vector.md: Fix shift count operand printing.
6201
6202 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6203
6204 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
6205
6206 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6207
6208 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
6209 Use recog_data to test for an output operand.
6210
6211 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6212
6213 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
6214 exclude any others that are disparaged or that are bound to need
6215 a reload or spill.
6216 (ira_get_dup_out_num): Expand comment.
6217
6218 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6219
6220 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
6221 constraint string for each operand/alternative combo. Only handle
6222 '%' at the start of constraint strings, and look for it outside
6223 the main loop.
6224
6225 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6226
6227 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
6228 alternative_mask instead of HARD_REG_SET to represent a
6229 bitmask of alternatives.
6230 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
6231 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
6232
6233 2019-07-01 Martin Liska <mliska@suse.cz>
6234
6235 * edit-context.c (test_applying_fixits_unreadable_file): Do not
6236 use () for a constructor call.
6237 (test_applying_fixits_line_out_of_range): Likewise.
6238 * ggc-page.c (alloc_page): Use (void *) for %p printf format
6239 argument.
6240 (free_page): Likewise.
6241
6242 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
6243
6244 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
6245 parameter names to match usage (no functional change).
6246 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
6247
6248 2019-07-01 Richard Biener <rguenther@suse.de>
6249
6250 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
6251 pass parameter.
6252 (pass_fre::execute): Honor it.
6253 * passes.def: Adjust pass_fre invocations to allow iterating,
6254 add non-iterating pass_fre before late threading/dom.
6255
6256 2019-07-01 Richard Biener <rguenther@suse.de>
6257
6258 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
6259 TARGET_MEM_REF handling to also handle address-taken ones.
6260
6261 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
6262
6263 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6264 hardware attributes): Document avx512vp2intersect.
6265
6266 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6267
6268 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
6269 (abs<mode>2): New expander.
6270 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
6271 Use CODE_FOR_ssse3_absv8qi2.
6272 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
6273 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
6274
6275 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6276
6277 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
6278 to sse, sse_noavx and avx. Update all uses.
6279
6280 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6281
6282 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
6283 (*mmx_<plusminus_insn><mode>3): Ditto.
6284 (*mmx_mulv4hi3"): Ditto.
6285 (*mmx_smulv4hi3_highpart): Ditto.
6286 (*mmx_umulv4hi3_highpart): Ditto.
6287 (*mmx_pmaddwd): Ditto.
6288 (*sse2_umulv1siv1di3): Ditto.
6289 (*mmx_<code>v4hi3): Ditto.
6290 (*mmx_<code>v8qi3): Ditto.
6291 (mmx_ashr<mode>3): Ditto.
6292 ("mmx_<shift_insn><mode>3): Ditto.
6293 (*mmx_eq<mode>3): Ditto.
6294 (mmx_gt<mode>3): Ditto.
6295 (mmx_andnot<mode>3): Ditto.
6296 (*mmx_<code><mode>3): Ditto.
6297 (*mmx_pinsrw): Ditto.
6298 (*mmx_pextrw): Ditto.
6299 (mmx_pshufw_1): Ditto.
6300 (*mmx_uavgv8qi3): Ditto.
6301 (*mmx_uavgv4hi3): Ditto.
6302 ("mmx_psadbw): Ditto.
6303 * config/i386/sse.md (sse_cvtps2pi): Ditto.
6304 (sse_cvttps2pi): Ditto.
6305 (ssse3_pmaddubsw): Ditto.
6306 (*ssse3_pmulhrswv4hi3): Ditto.
6307 (ssse3_psign<mode>3): Ditto.
6308
6309 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
6310
6311 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
6312 adjustment for bit-fields to all aggregate types.
6313
6314 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
6315
6316 * config/rs6000/predicates.md (pcrel_address): Use
6317 SYMBOL_REF_LOCAL_P to determine if a label is local.
6318 (pcrel_external_address): New predicate.
6319 (non_prefixed_mem_operand): Delete, predicate not used.
6320 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
6321 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
6322 addressing.
6323 (SYMBOL_REF_PCREL_P): Likewise.
6324
6325 PR target/91009
6326 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
6327 alternative.
6328 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
6329 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
6330 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
6331
6332 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6333
6334 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
6335 override on extra_headers.
6336
6337 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6338
6339 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
6340 * config/darwin-driver.c (darwin_default_min_version): Remove newline
6341 from warning.
6342 (darwin_driver_init): Likewise.
6343
6344 2019-06-28 Jan Beulich <jbeulich@suse.com>
6345
6346 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6347 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
6348 Eliminate redundant alternative.
6349
6350 2019-06-28 Jan Beulich <jbeulich@suse.com>
6351
6352 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6353 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
6354 Use vector_operand.
6355
6356 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
6357
6358 * config/arc/arc.c (arc_rtx_costs): All short instructions are
6359 having a lower cost regardless of the speed option.
6360
6361 2019-06-28 Jan Beulich <jbeulich@suse.com>
6362
6363 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
6364 vector_operand plus, on both alternatives, "Bm" constraint.
6365
6366 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
6367
6368 * config/arm/arm.md: Remove redundant constraints from
6369 define_expand but leave reload_inm and reload_outm patterns
6370 untouched since they need special constraints to work.
6371 * config/arm/arm-fixed.md: Remove redundant constraints from
6372 define_expand.
6373 * config/arm/iwmmxt.md: Likewise.
6374 * config/arm/neon.md: Likewise.
6375 * config/arm/sync.md: Likewise.
6376 * config/arm/thumb1.md: Likewise.
6377 * config/arm/vec-common.md: Likewise.
6378
6379 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
6380
6381 * doc/install.texi: Document --disable-tm-clone-registry.
6382
6383 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6384
6385 PR c++/91024
6386 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
6387 statements.
6388
6389 PR tree-optimization/91010
6390 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
6391 return true. Otherwise, don't call operand_equal_p if offset1 or
6392 offset2 is NULL and just return false.
6393
6394 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6395
6396 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
6397 user-specified float mode choice for kernel mode code.
6398
6399 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6400
6401 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
6402 spec.
6403
6404 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6405
6406 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
6407 use longcall for 64b code.
6408
6409 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
6410
6411 * builtins.c (get_memory_rtx): Fix comment.
6412 * optabs.def (movmem_optab): Change to cpymem_optab.
6413 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
6414 (emit_block_move_hints): Change movmem to cpymem.
6415 * defaults.h: Change movmem to cpymem.
6416 * targhooks.c (get_move_ratio): Change movmem to cpymem.
6417 (default_use_by_pieces_infrastructure_p): Ditto.
6418 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
6419 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
6420 to cpymem.
6421 * config/aarch64/aarch64.h: Change movmem to cpymem.
6422 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
6423 * config/alpha/alpha.h: Change movmem to cpymem in comment.
6424 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
6425 movmem to cpymem.
6426 * config/arc/arc-protos.h: Change movmem to cpymem.
6427 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
6428 * config/arc/arc.h: Change movmem to cpymem in comment.
6429 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
6430 * config/arm/arm-protos.h: Change movmem to cpymem in names.
6431 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
6432 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
6433 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
6434 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
6435 * config/avr/avr-protos.h: Change movmem to cpymem.
6436 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
6437 avr_out_movmem): Change movmem to cpymem.
6438 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
6439 Change movmem to cpymem.
6440 * config/bfin/bfin-protos.h: Change movmem to cpymem.
6441 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
6442 Change movmem to cpymem.
6443 * config/bfin/bfin.h: Change movmem to cpymem in comment.
6444 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
6445 * config/c6x/c6x-protos.h: Change movmem to cpymem.
6446 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
6447 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
6448 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
6449 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
6450 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
6451 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
6452 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
6453 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
6454 expand_small_cpymem_or_setmem,
6455 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
6456 expand_set_or_cpymem_constant_prologue,
6457 ix86_expand_set_or_cpymem): Change movmem to cpymem.
6458 * config/i386/i386-protos.h: Change movmem to cpymem.
6459 * config/i386/i386.h: Change movmem to cpymem in comment.
6460 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
6461 (setmem<mode>): Change expansion function name.
6462 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
6463 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
6464 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
6465 * config/m32c/m32c-protos.h: Change movmem to cpymem.
6466 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
6467 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
6468 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
6469 to cpymem.
6470 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
6471 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
6472 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
6473 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
6474 Change movmem to cpymem.
6475 * config/mips/mips.h: Change movmem to cpymem.
6476 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
6477 * config/nds32/nds32-memory-manipulation.c
6478 (nds32_expand_movmemsi_loop_unknown_size,
6479 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
6480 nds32_expand_movmemsi_unroll,
6481 nds32_expand_movmemsi): Change movmem to cpymem.
6482 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
6483 * config/nds32/nds32-protos.h: Change movmem to cpymem.
6484 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
6485 (pa_adjust_insn_length): Change call to compute_movmem_length.
6486 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
6487 movmemdi, movmemdi_prereload,
6488 movmemdi_postreload): Change movmem to cpymem.
6489 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
6490 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
6491 * config/riscv/riscv.c: Change movmem to cpymem in comment.
6492 * config/riscv/riscv.h: Change movmem to cpymem.
6493 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
6494 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
6495 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
6496 movmem to cpymem.
6497 * config/s390/s390-protos.h: Change movmem to cpymem.
6498 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
6499 s390_expand_insv): Change movmem to cpymem.
6500 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
6501 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
6502 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
6503 * config/sparc/sparc.h: Change movmem to cpymem in comment.
6504 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
6505 for nonexistent function.
6506 * config/vax/vax.h: Change movmem to cpymem in comment.
6507 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
6508 * config/visium/visium.h: Change movmem to cpymem in comment.
6509 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
6510 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
6511 * doc/md.texi: Change movmem to cpymem and update description to match.
6512 * doc/rtl.texi: Change movmem to cpymem.
6513 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
6514 * doc/tm.texi: Regenerate.
6515
6516 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
6517
6518 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6519 -fvariable-expansion-in-unroller by default.
6520 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
6521 default for Power.
6522
6523 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
6524
6525 Revert
6526 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6527 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6528
6529 * config.gcc(rs6000-*-*): Define target_gtfiles.
6530
6531 2019-06-27 Jan Hubicka <jh@suse.cz>
6532
6533 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
6534 (add_type_duplicate): When odr hash is not allocated, to nothing.
6535 (odr_based_tbaa_p): New function.
6536 (set_type_canonical_for_odr_type): New function.
6537 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
6538 set_type_canonical_for_odr_type): New.
6539 * tree.c (gimple_canonical_types_compatible_p): ODR types with
6540 ODR based TBAA are not equivalent to non-ODR types.
6541
6542 2019-06-27 Martin Liska <mliska@suse.cz>
6543
6544 PR tree-optimization/90974
6545 PR rtl-optimization/90975
6546 PR rtl-optimization/90976
6547 PR target/91016
6548 PR tree-optimization/91017
6549 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
6550 unused tmp.
6551 * lra.c (lra_set_insn_recog_data): Remove a leftover from
6552 initial commit of IRA.
6553 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
6554 of op0 and op1.
6555 * tree-vect-loop.c (vect_create_epilog_for_reduction):
6556 Remove unused mode1.
6557 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
6558 to new_stmt_info.
6559
6560 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6561
6562 PR target/90991
6563 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
6564 instead of register_operand for operands[1], add m to its constraints
6565 if operands[2] uses "C" constraint. Ensure in condition that if
6566 operands[2] is not 0, then operands[1] is not a MEM. For last two
6567 alternatives, use unaligned loads instead of aligned if operands[1] is
6568 misaligned_operand.
6569
6570 2019-06-27 Martin Liska <mliska@suse.cz>
6571
6572 * asan.c (asan_emit_allocas_unpoison): Remove obviously
6573 dead assignments.
6574 * bt-load.c (move_btr_def): Likewise.
6575 * builtins.c (expand_builtin_apply_args_1): Likewise.
6576 (expand_builtin_apply): Likewise.
6577 * cfgexpand.c (expand_asm_stmt): Likewise.
6578 (construct_init_block): Likewise.
6579 * cfghooks.c (verify_flow_info): Likewise.
6580 * cfgloopmanip.c (remove_path): Likewise.
6581 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
6582 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
6583 * combine.c (simplify_if_then_else): Likewise.
6584 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6585 (choose_basereg): Likewise.
6586 (ix86_expand_prologue): Likewise.
6587 (ix86_preferred_output_reload_class): Likewise.
6588 * cselib.c (cselib_record_sets): Likewise.
6589 * df-scan.c (df_scan_alloc): Likewise.
6590 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
6591 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
6592 * emit-rtl.c (try_split): Likewise.
6593 * graphite-scop-detection.c (assign_parameter_index_in_region):
6594 Likewise.
6595 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
6596 * ira-color.c (setup_profitable_hard_regs): Likewise.
6597 * ira.c (rtx_moveable_p): Likewise.
6598 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6599 * read-rtl.c (read_subst_mapping): Likewise.
6600 * regrename.c (scan_rtx): Likewise.
6601 * reorg.c (fill_slots_from_thread): Likewise.
6602 * tree-inline.c (tree_function_versioning): Likewise.
6603 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
6604 * tree-ssa-sink.c (statement_sink_location): Likewise.
6605 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6606 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
6607 (vect_create_epilog_for_reduction): Likewise.
6608 * tree.c (build_nonstandard_integer_type): Likewise.
6609
6610 2019-06-27 Richard Biener <rguenther@suse.de>
6611
6612 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
6613
6614 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
6615
6616 PR tree-optimization/89772
6617 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
6618 out-of-bound accesses checking.
6619
6620 2019-06-27 Martin Liska <mliska@suse.cz>
6621
6622 PR tree-optimization/91014
6623 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
6624 when LHS is NULL_TREE.
6625
6626 2019-06-27 Martin Liska <mliska@suse.cz>
6627
6628 * symbol-summary.h (traverse): Pass
6629 argument a to the call of callback.
6630 (gt_ggc_mx): Mark arguments as unused.
6631 (gt_pch_nx): Likewise.
6632
6633 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
6634
6635 PR target/62147
6636 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
6637 finiteness.
6638
6639 2019-06-26 Jeff Law <law@redhat.com>
6640
6641 PR tree-optimization/90883
6642 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
6643 (delete_dead_or_redundant_assignment): Likewise.
6644
6645 PR tree-optimization/90883
6646 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
6647 * tree-ssa-dse.c: Update various comments to distinguish between
6648 dead and redundant stores.
6649 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
6650 (dse_optimize_redundant_stores): New function.
6651 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
6652 Distinguish between dead and redundant calls in dump output. All
6653 callers updated.
6654 (delete_dead_or_redundant_assignment): Similarly for assignments.
6655 (dse_optimize_stmt): Handle _CHK variants. For statements which
6656 store 0 into multiple memory locations, try to prove a subsequent
6657 store is redundant.
6658
6659 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
6660
6661 PR target/89021
6662 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
6663 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
6664
6665 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6666
6667 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
6668 (branch_islands): New extern.
6669 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
6670 * config/rs6000/rs6000.c: .. here.
6671
6672 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6673
6674 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
6675 (powerpc*-*-*) ... to here.
6676
6677 2019-06-26 Jeff Law <law@redhat.com>
6678
6679 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
6680 memcpy, memmove and memset builtins.
6681 (maybe_trim_memstar_call): Likewise.
6682
6683 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6684
6685 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
6686
6687 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6688
6689 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6690
6691 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6692
6693 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
6694 declaration.
6695 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
6696 "static".
6697 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
6698 declaration.
6699
6700 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6701
6702 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
6703
6704 2019-06-26 Richard Biener <rguenther@suse.de>
6705
6706 PR ipa/90982
6707 * tree-inline.c (remap_ssa_name): Copy SSA range info.
6708
6709 2019-06-26 Richard Biener <rguenther@suse.de>
6710
6711 * lto-streamer.h (lto_bitmap_alloc): Remove.
6712 (lto_bitmap_free): Likewise.
6713 * lto-streamer.c (lto_bitmap_alloc): Remove.
6714 (lto_bitmap_free): Likewise.
6715 (lto_obstack): Likewise.
6716 (lto_obstack_initialized): Likewise.
6717 * lto-streamer-out.c (lto_output): Use own obstack for local
6718 bitmap, free it consistently.
6719
6720 2019-06-26 Jakub Jelinek <jakub@redhat.com>
6721
6722 PR target/90991
6723 * config/i386/sse.md
6724 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
6725 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
6726 insns if operands[2] is misaligned_operand.
6727
6728 2019-06-26 Li Jia He <helijia@linux.ibm.com>
6729
6730 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
6731 TARGET_POWERPC64.
6732 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
6733 to GPR.
6734
6735 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6736
6737 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
6738
6739 2019-06-26 Martin Liska <mliska@suse.cz>
6740
6741 PR tree-optimization/90973
6742 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
6743 epilogue_cost_vec instead of prologue_cost_vec for
6744 a epilogue cost.
6745
6746 2019-06-26 Martin Liska <mliska@suse.cz>
6747
6748 * bb-reorder.c (connect_better_edge_p): Add missing else
6749 statement in the middle of if-else statements.
6750
6751 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
6752 H.J. Lu <hongjiu.lu@intel.com>
6753 Olga Makhotina <olga.makhotina@intel.com>
6754
6755 * common/config/i386/i386-common.c
6756 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
6757 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
6758 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
6759 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
6760 (ix86_handle_option): Handle -mavx512vp2intersect.
6761 * config/i386/avx512vp2intersectintrin.h: New.
6762 * config/i386/avx512vp2intersectvlintrin.h: New.
6763 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
6764 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6765 AVX512VP2INTERSECT.
6766 * config/i386/i386-builtin-types.def: Add new types.
6767 * config/i386/i386-builtin.def: Add new builtins.
6768 * config/i386/i386-builtins.c: (enum processor_features): Add
6769 F_AVX512VP2INTERSECT.
6770 (static const _isa_names_table isa_names_table): Ditto.
6771 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6772 __AVX512VP2INTERSECT__.
6773 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
6774 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
6775 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
6776 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
6777 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
6778 * config/i386/i386-options.c (ix86_target_string): Add
6779 -mavx512vp2intersect.
6780 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
6781 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
6782 P2HImode and P2QImode.
6783 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
6784 number for P2QImode and P2HImode.
6785 (ix86_regmode_natural_size): New function.
6786 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
6787 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
6788 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
6789 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
6790 * config/i386/i386.opt: Add -mavx512vp2intersect.
6791 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
6792 avx512vp2intersectvlintrin.h.
6793 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
6794 (define_mode_iterator VI48_AVX512VP2VL): New.
6795 (avx512vp2intersect_2intersect<mode>,
6796 avx512vp2intersect_2intersectv16si): New define_insn patterns.
6797 * config.gcc: Add avx512vp2intersectvlintrin.h and
6798 avx512vp2intersectintrin.h to extra_headers.
6799 * doc/invoke.texi: Document -mavx512vp2intersect.
6800
6801 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
6802
6803 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
6804
6805 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6806
6807 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
6808 savres_routine_syms, savres_routine_name, morestack_ref,
6809 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6810 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6811 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6812 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6813 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6814 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6815 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6816 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6817 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6818 get_stack_clash_protection_probe_interval,
6819 get_stack_clash_protection_guard_size,
6820 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6821 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6822 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6823 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6824 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6825 gen_frame_mem_offset, rs6000_savres_routine_name,
6826 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6827 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6828 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6829 rs6000_global_entry_point_prologue_needed_p,
6830 rs6000_get_separate_components, rs6000_components_for_bb,
6831 rs6000_disqualify_components, rs6000_emit_prologue_components,
6832 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6833 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6834 rs6000_output_savres_externs, rs6000_output_function_prologue,
6835 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6836 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6837 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6838 rs6000_output_function_epilogue, gen_add3_const,
6839 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6840 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6841 to rs6000-logue.c.
6842 (machine_function): Moved to rs6000.h.
6843 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
6844 rs6000-internal.h.
6845 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
6846 savres_routine_syms, savres_routine_name, morestack_ref,
6847 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6848 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6849 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6850 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6851 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6852 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6853 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6854 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6855 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6856 get_stack_clash_protection_probe_interval,
6857 get_stack_clash_protection_guard_size,
6858 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6859 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6860 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6861 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6862 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6863 gen_frame_mem_offset, rs6000_savres_routine_name,
6864 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6865 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6866 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6867 rs6000_global_entry_point_prologue_needed_p,
6868 rs6000_get_separate_components, rs6000_components_for_bb,
6869 rs6000_disqualify_components, rs6000_emit_prologue_components,
6870 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6871 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6872 rs6000_output_savres_externs, rs6000_output_function_prologue,
6873 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6874 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6875 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6876 rs6000_output_function_epilogue, gen_add3_const,
6877 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6878 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6879 to here from rs6000.c.
6880 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
6881 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
6882 quad_address_offset_p) Moved to here from rs6000.c.
6883 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
6884 * config/config.gcc: Add new source file rs6000-logue.c to garbage
6885 collector.
6886
6887 2019-06-25 Martin Liska <mliska@suse.cz>
6888
6889 * hash-table.c (hashtab_chk_error): Move here from ...
6890 * hash-table.h (hashtab_chk_error): ... here.
6891
6892 2019-06-25 Martin Liska <mliska@suse.cz>
6893
6894 PR tree-optimization/90978
6895 * df-scan.c (df_update_entry_block_defs): Remove dead else
6896 branch.
6897 (df_update_exit_block_uses): Likewise.
6898
6899 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6900 Andrew Stubbs <ams@codesourcery.com>
6901
6902 * config.gcc (thread_file): Set to gcn for AMD GCN.
6903 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
6904 (TARGET_EMUTLS_VAR_INIT): New hook.
6905
6906 2019-06-25 Martin Jambor <mjambor@suse.cz>
6907
6908 PR ipa/90939
6909 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
6910
6911 2019-06-25 Richard Biener <rguenther@suse.de>
6912
6913 PR tree-optimization/90930
6914 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
6915 into parallel form in the last pass instance.
6916
6917 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
6918
6919 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
6920 (arc_legitimize_pic_address): Simplify and cleanup the function.
6921 (SYMBOLIC_CONST): Remove.
6922 (prepare_pic_move): Likewise.
6923 (prepare_move_operands): Handle complex mov cases here.
6924 (arc_legitimize_address_0): Remove call to
6925 arc_legitimize_pic_address.
6926 (arc_legitimize_address): Remove call to
6927 arc_legitimize_tls_address.
6928 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
6929 (movhi_insn): Likewise.
6930
6931 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6932
6933 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
6934 PTRDIFF_TYPE.
6935 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
6936 format of "__intN" types for UINTMAX_TYPE.
6937 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
6938 format of "__intN" types for SIZETYPE.
6939 * tree.c (build_common_tree_nodes): Accept "__intN__"
6940 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
6941 * doc/invoke.texi: Document that __intN__ disables pedantic
6942 warnings.
6943
6944 2019-06-25 Jan Hubicka <jh@suse.cz>
6945
6946 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
6947 base2_alias_set is non-zero before doing TBAA based disambiguation.
6948
6949 2019-06-25 Martin Liska <mliska@suse.cz>
6950
6951 PR tree-optimization/90973
6952 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
6953 of prologue and epilogue.
6954
6955 2019-06-24 Jan Hubicka <jh@suse.cz>
6956
6957 * ipa-utils.h (type_with_linkage_p): Verify that type is
6958 CXX_ODR_P.
6959 (odr_type_p): Remove extra return.
6960 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
6961 hash STRING_FLAG only for arrays and integers.
6962 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
6963 Update analogously.
6964 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6965 Likewise.
6966 * print-tree.c (print_node): Print cxx-odr-p
6967 and string-flag.
6968 * tree.c (need_assembler_name_p): Also check that type
6969 is CXX_ODR_TYPE_P
6970 (verify_type_variant): Update verification of SRING_FLAG;
6971 also check CXX_ODR_P.
6972 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
6973 (TYPE_STRING_FLAG): Use it.
6974 (TYPE_CXX_ODR_P): New macro.
6975 * dwarf2out.c (gen_array_type_die): First check that type
6976 is an array and then test string flag.
6977
6978 2019-06-24 Richard Biener <rguenther@suse.de>
6979
6980 PR tree-optimization/90972
6981 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
6982 in common code, dealing with STRING_CST properly.
6983
6984 2019-06-24 Richard Biener <rguenther@suse.de>
6985
6986 PR tree-optimization/90930
6987 PR tree-optimization/90316
6988 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
6989 decrement of limit.
6990
6991 2019-06-24 Martin Sebor <msebor@redhat.com>
6992
6993 * tree-pretty-print.h: Remove unnecessary punctuation characters
6994 from a diagnostic.
6995 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
6996
6997 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
6998
6999 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
7000 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
7001 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
7002
7003 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7004
7005 * config/rs6000/darwin.h: Handle GCC target pragma.
7006
7007 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7008
7009 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
7010
7011 2019-06-22 Jeff Law <law@redhat.com>
7012
7013 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7014
7015 2019-06-22 Jan Hubicka <jh@suse.cz>
7016
7017 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
7018 give up on bitfields; continue searching for different refs
7019 appearing later.
7020
7021 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7022
7023 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7024 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
7025 containing the offset as possible simd lane access. Look through
7026 widening conversion. Move the
7027 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
7028
7029 2019-06-21 Richard Biener <rguenther@suse.de>
7030
7031 PR tree-optimization/90930
7032 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
7033 flag on new stmts to avoid re-processing them.
7034
7035 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
7036
7037 PR c++/90875 - added -Wswitch-outside-range option
7038 * doc/invoke.texi (Wswitch-outside-range): Document.
7039
7040 2019-06-21 Jeff Law <law@redhat.com>
7041
7042 PR tree-optimization/90949
7043 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
7044 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
7045
7046 2019-06-21 Richard Biener <rguenther@suse.de>
7047
7048 PR debug/90914
7049 * dwarf2out.c (prune_unused_types_walk): Always consider
7050 function-local extern declarations as used.
7051
7052 2019-06-21 Richard Biener <rguenther@suse.de>
7053
7054 PR tree-optimization/90913
7055 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
7056 the scalar variant of if-conversion versioning.
7057
7058 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7059
7060 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
7061 create another "omp scan inscan exclusive" array if
7062 !ctx->scan_inclusive.
7063 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
7064 (lower_omp_scan): Likewise.
7065 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
7066 2-bit bitfield for simd_lane_access_p member.
7067 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
7068 aux == (void *)-4 as simd lane access.
7069 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
7070 comment with permutations to show the canonical permutation order.
7071 (vectorizable_scan_store): Handle exclusive scan.
7072 (vectorizable_store): Call vectorizable_scan_store even for
7073 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
7074
7075 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7076 "omp simd array" arrays with one byte elements.
7077
7078 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
7079
7080 * config/alpha/alpha.md (@unaligned_store<mode>):
7081 Rename from unaligned_store<mode>.
7082 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
7083 * config/alpha/sync.md (@load_locked_<mode>): Rename
7084 from load_locked_<mode>.
7085 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
7086 (@atomic_compare_and_swap<mode>_1): Rename
7087 from atomic_compare_and_swap<mode>_1.
7088 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
7089 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
7090 Use gen_reload_in_aligned and gen_unaligned_store.
7091 (emit_load_locked): Remove.
7092 (emit_store_conditional): Ditto.
7093 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
7094 (alpha_split_compare_and_swap): Ditto.
7095 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
7096 (alpha_split_compare_and_swap_12): Use gen_load_locked
7097 and gen_store_conditional.
7098 (alpha_split_atomic_exchange): Ditto.
7099 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
7100 (alpha_split_atomic_exchange_12): Use gen_load_locked
7101 and gen_store_conditional.
7102
7103 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
7104
7105 * config/aarch64/aarch64-errata.h: New file.
7106 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
7107 (CA53_ERR_843419_SPEC): Delete.
7108 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
7109 * config/aarch64/aarch64-linux.h: Likewise.
7110 * config/aarch64/aarch64-netbsd.h: Likewise.
7111 * config/aarch64/aarch64-freebsd.h: Likewise.
7112
7113 2019-06-20 Marek Polacek <polacek@redhat.com>
7114
7115 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
7116
7117 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
7118
7119 * config/rs6000/rs6000.md (isa attribute): Add support for
7120 for a future processor.
7121
7122 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
7123
7124 PR target/54855
7125 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
7126 standard scalar operation pattern for V2DF.
7127 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
7128 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
7129 (*ieee_<ieee_maxmin><mode>3): Likewise.
7130 (vec_setv2df_0): Likewise.
7131
7132 2019-06-20 Jan Hubicka <jh@suse.cz>
7133
7134 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
7135 parameter; it has no use in gimple memory model.
7136 (indirect_ref_may_alias_decl_p): Update.
7137
7138 2019-06-20 Martin Liska <mliska@suse.cz>
7139
7140 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
7141 to 10.
7142
7143 2019-06-20 Jakub Jelinek <jakub@redhat.com>
7144
7145 * tree-vect-stmts.c (enum scan_store_kind): New type.
7146 (scan_store_can_perm_p): Change last argument from int * to
7147 vec<enum scan_store_kind> *, record precisely which permutations
7148 need whole vector left shift or that plus VEC_COND_EXPR.
7149 (vectorizable_scan_store): Adjust caller, use whole vector left shift
7150 and additional VEC_COND_EXPR only for those iterations that need it.
7151
7152 2019-06-20 Alexandre Oliva <oliva@adacore.com>
7153
7154 * config.gcc: Fix ARM --with-fpu checking and error message.
7155
7156 2019-06-19 Marek Polacek <polacek@redhat.com>
7157
7158 PR c++/60364 - noreturn after first decl not diagnosed.
7159 * attribs.c (get_attribute_namespace): No longer static.
7160 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
7161 attributes.
7162 (attr_noreturn_exclusions): Make it extern.
7163 * attribs.h (get_attribute_namespace): Declare.
7164 * tree-inline.c (function_attribute_inlinable_p): Use
7165 get_attribute_name.
7166
7167 2019-06-19 Martin Sebor <msebor@redhat.com>
7168
7169 PR tree-optimization/90626
7170 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
7171
7172 PR tree-optimization/90626
7173 * tree-ssa-strlen.c (strxcmp_unequal): New function.
7174 (handle_builtin_string_cmp): Call it.
7175
7176 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7177
7178 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
7179 and DARWIN_NOPIE_SPEC.
7180 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
7181 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
7182 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
7183 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
7184 (DARWIN_EXPORT_DYNAMIC): Delete.
7185 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
7186 and pie options processing to darwin.h.
7187 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
7188
7189 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7190
7191 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
7192 in computing the number of options to be moved.
7193
7194 2019-06-19 Maya Rashish <coypu@sdf.org>
7195
7196 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
7197 (CLEAR_INSN_CACHE) Use it.
7198
7199 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
7200
7201 * config/i386/i386.md (cmpstrnsi): Remove dead code.
7202
7203 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
7204
7205 PR middle-end/84521
7206 * builtins.c (expand_builtin_setjmp_setup): Save
7207 hard_frame_pointer_rtx.
7208 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
7209 restore fp.
7210 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
7211 non-local goto.
7212 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
7213 elimination code.
7214 (remove_reg_equal_offset_note): Remove unused function.
7215 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
7216 code.
7217 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7218 (arc_builtin_setjmp_frame_value): Remove function.
7219 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7220 (avr_builtin_setjmp_frame_value): Remove function.
7221 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7222 (ix86_builtin_setjmp_frame_value): Remove function.
7223 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
7224 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7225 (sparc_builtin_setjmp_frame_value): Remove function.
7226 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7227 (vax_builtin_setjmp_frame_value): Remove function.
7228 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
7229 pointer if has_nonlocal_label.
7230
7231 2019-06-19 Jakub Jelinek <jakub@redhat.com>
7232
7233 * doc/md.texi: Document vec_shl_<mode> pattern.
7234 * optabs.def (vec_shl_optab): New optab.
7235 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
7236 argument, if == vec_shl_optab, check for left whole vector shift
7237 pattern rather than right shift.
7238 (expand_vec_perm_const): Add vec_shl_optab support.
7239 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
7240 in the comment.
7241 * tree-vect-generic.c (lower_vec_perm): Support permutations which
7242 can be handled by vec_shl_optab.
7243 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
7244 (check_scan_store): Use it.
7245 (vectorizable_scan_store): If target can't do normal permutations,
7246 try to use whole vector left shifts and if needed a VEC_COND_EXPR
7247 after it.
7248 * config/i386/sse.md (vec_shl_<mode>): New expander.
7249
7250 * omp-low.c (lower_rec_input_clauses): Handle references properly
7251 in inscan clauses.
7252 (lower_omp_scan): Likewise.
7253
7254 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7255
7256 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
7257 mem_mode is BLKmode.
7258
7259 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
7260
7261 PR target/90922
7262 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
7263 pointer adjustment for the case of no callee-saved registers and
7264 stack frame bigger than 128 bytes.
7265
7266 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7267
7268 PR middle-end/90862
7269 * omp-low.c (check_omp_nesting_restrictions): Handle
7270 GF_OMP_TARGET_KIND_OACC_DECLARE.
7271
7272 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
7273
7274 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
7275 (@add<mode>3_carry): Rename from add<mode>3_carry.
7276 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
7277 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
7278 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
7279 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
7280 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
7281 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
7282 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
7283 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
7284 (cmpstrnsi): Use gen_cmp_1.
7285 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
7286 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
7287 (@umonitor_<mode>): Rename from umonitor_<mode>.
7288 * config/i386/i386-expand.c (ix86_expand_copysign):
7289 Use gen_copysign3_const and gen_copysign3_var.
7290 (ix86_expand_xorsign): Use gen_xorsign3_1.
7291 (ix86_expand_branch): Use gen_sub3_carry_ccc,
7292 gen_sub3_carry_ccgz and gen_cmp1.
7293 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
7294 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
7295 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
7296 (ix86_split_lshr): Ditto.
7297 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
7298
7299 2019-06-18 Jason Merrill <jason@redhat.com>
7300
7301 * tree.c (build_constructor): Add MEM_STAT_DECL.
7302
7303 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7304
7305 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
7306 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
7307 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
7308 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
7309 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
7310 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
7311 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
7312 Use CC_NZC instead of CC.
7313 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
7314 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
7315 (aarch64_print_operand): Handle E_CC_NZCmode.
7316 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
7317 of gen_set_clobber_cc.
7318
7319 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7320
7321 * config/aarch64/aarch64-sve.md: Tabify file.
7322
7323 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7324
7325 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
7326 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
7327 * config/aarch64/aarch64-sve.md: Use it.
7328
7329 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7330
7331 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
7332 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
7333 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
7334 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
7335 (aarch64_expand_sve_vec_cmp_int): Use it.
7336 (aarch64_expand_sve_vec_cmp_float): Likewise.
7337 * config/aarch64/aarch64-sve.md: Likewise throughout.
7338
7339 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7340 Kugan Vivekanandarajah <kuganv@linaro.org>
7341
7342 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
7343 (*cond_<optab><mode>_z): Fold into...
7344 (*cond_<optab><mode>_any): ...here. Also handle cases in which
7345 operand 4 can be tied to operand 0 (either inherently or via RA).
7346
7347 2019-06-18 Richard Biener <rguenther@suse.de>
7348
7349 PR debug/90900
7350 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
7351 as if optimized away.
7352
7353 2019-06-18 Tom de Vries <tdevries@suse.de>
7354
7355 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
7356 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
7357 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
7358 Rename to ...
7359 (define_insn "@set_softstack_<mode>"): ... this.
7360 (define_insn "omp_simt_enter_<mode>"): Rename to ...
7361 (define_insn "@omp_simt_enter_<mode>"): ... this.
7362 (define_insn "omp_simt_exit_<mode>"): Rename to ...
7363 (define_insn "@omp_simt_exit_<mode>"): ... this.
7364
7365 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7366
7367 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
7368 vf parameter. Restore the previous iv step of nscalars_step,
7369 but give it iv_type rather than compare_type. Tweak code order
7370 to match the comments.
7371 (vect_set_loop_condition_masked): Update accordingly.
7372 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
7373 for iv_precision. Tweak comment formatting.
7374
7375 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7376
7377 * config/darwin.c: Strip trailing whitespace.
7378
7379 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7380
7381 * config/darwin.c (darwin_emit_unwind_label): New default to false.
7382 (darwin_override_options): Set darwin_emit_unwind_label as needed.
7383
7384 2019-06-18 Martin Jambor <mjambor@suse.cz>
7385
7386 PR ipa/90889
7387 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
7388 caller does not have flag_ipa_cp set.
7389
7390 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7391
7392 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
7393 from "*fold_left_plus_<mode>", updated operands order.
7394 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
7395 * internal-fn.c (mask_fold_left_direct): New define.
7396 (expand_mask_fold_left_optab_fn): Likewise.
7397 (direct_mask_fold_left_optab_supported_p): Likewise.
7398 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
7399 * optabs.def (mask_fold_left_plus_optab): New optab.
7400 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
7401 masked internal_fn for a reduction ifn.
7402 (vectorize_fold_left_reduction): Add support for masking reductions.
7403
7404 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
7405
7406 PR middle-end/80791
7407 * target.def (predict_doloop_p): New hook.
7408 * targhooks.h (default_predict_doloop_p): New declaration.
7409 * targhooks.c (default_predict_doloop_p): New function.
7410 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
7411 * doc/tm.texi: Regenerate.
7412 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
7413 (TARGET_PREDICT_DOLOOP_P): New macro.
7414 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
7415
7416 2019-06-17 Jakub Jelinek <jakub@redhat.com>
7417
7418 * omp-low.c (struct omp_context): Add scan_inclusive field.
7419 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
7420 if inclusive scan.
7421 (struct omplow_simd_context): Add lastlane member.
7422 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
7423 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
7424 1 or 2 argument.
7425 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
7426 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
7427 (lower_omp_scan): New function.
7428 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
7429 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
7430 check 3rd argument if present rather than 2nd.
7431 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
7432 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
7433 2-bit bitfield.
7434 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7435 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
7436 than 2nd.
7437 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
7438 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
7439 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
7440 init.
7441 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
7442 IFN_GOMP_SIMD_LANE argument.
7443 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
7444 encoded ->aux value.
7445 * tree-vect-stmts.c: Include attribs.h.
7446 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
7447 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
7448 functions.
7449 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
7450 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
7451
7452 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
7453
7454 PR target/62055
7455 * config/i386/i386.md (*nabstf2_1): New insn pattern.
7456 (*nabs<mode>2_1): Ditto.
7457 (nabs sse-reg splitter): New splitter.
7458 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
7459
7460 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7461
7462 PR bootstrap/90873.
7463 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7464 TMR index check.
7465
7466 2019-06-17 Tom de Vries <tdevries@suse.de>
7467
7468 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
7469 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
7470 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
7471 ...
7472 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
7473 match_operand 0.
7474 (define_insn "omp_simt_enter_insn"): Rename to ...
7475 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
7476 match_operand 0, 1 and 2, as well as the unspec_volatile result.
7477 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
7478 gen_omp_simt_enter_si.
7479 (define_expand "omp_simt_exit"): New.
7480 (define_insn "omp_simt_exit"): Rename to ...
7481 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
7482 match_operand 0.
7483
7484 2019-06-17 Matthew Green <mrg@eterna.com.au>
7485 Maya Rashish <coypu@sdf.org>
7486
7487 * config.gcc (aarch64*-*-netbsd*): New target.
7488 * config/aarch64/aarch64-netbsd.h: New file.
7489 * config/aarch64/t-aarch64-netbsd: Likewise.
7490
7491 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7492
7493 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
7494 the access path from base to first VIEW_CONVERT_EXPR or
7495 BIT_FIELD_REF.
7496
7497 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7498
7499 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
7500 access path on BIT_FIELD_REFs.
7501
7502 2019-06-17 Martin Liska <mliska@suse.cz>
7503
7504 PR ipa/90874
7505 * ipa-utils.h (odr_type_p): Remove dead code.
7506
7507 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7508
7509 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
7510 alternative Solaris 11.4 format.
7511 * configure: Regenerate.
7512
7513 2019-06-17 Tom de Vries <tdevries@suse.de>
7514
7515 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
7516 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
7517 match_operand 0.
7518 (define_insn "call_value_insn"): Rename to ...
7519 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
7520 match_operand 0.
7521 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
7522 DI.
7523
7524 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
7525
7526 PR middle-end/64242
7527 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
7528 frame clobbers and schedule block.
7529 (builtin_longjmp): Likewise.
7530
7531 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7532
7533 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
7534 describe how to perform MSPABI compliant 64-bit shift.
7535 * config/msp430/msp430.md (ashldi3): New define_expand.
7536 (ashrdi3): New define_expand.
7537 (lshrdi3): New define_expand.
7538
7539 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7540
7541 * doc/sourcebuild.texi: Document new effective target keyword
7542 longlong64.
7543
7544 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7545
7546 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
7547 indirect_refs_may_alias_p): Revert accidental commits.
7548
7549 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
7550 at the end of structures.
7551
7552 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7553
7554 * config/darwin.c (machopic_indirect_call_target): Use renamed
7555 darwin_picsymbol_stubs to decide on output.
7556 (darwin_override_options): Handle darwin_picsymbol_stubs.
7557 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
7558 (LD64_VERSION): Revise default.
7559 * config/darwin.opt: (mpic-symbol-stubs): New option.
7560 (darwin_picsymbol_stubs): New variable.
7561 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
7562 rename to TARGET_MACHO_PICSYM_STUBS.
7563 * config/i386/i386.c (output_pic_addr_const): Likewise.
7564 * config/i386/i386.h Likewise.
7565 * config/rs6000/darwin.h: Likewise.
7566 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
7567 darwin_picsymbol_stubs.
7568
7569 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7570
7571 * config/darwin.opt (prebind, noprebind, seglinkedit,
7572 noseglinkedit): Add RejectNegative.
7573
7574 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7575
7576 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
7577 in my previous patch.
7578
7579 2019-06-16 Tom de Vries <tdevries@suse.de>
7580
7581 PR tree-optimization/89376
7582 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
7583
7584 2019-06-15 Maya Rashish <coypu@sdf.org>
7585
7586 * doc/invoke.texi (Spec Files): Update location of the
7587 Fortran spec file.
7588
7589 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
7590
7591 * doc/extend.texi (Common Function Attributes): Clarify
7592 no_sanitize. Fix grammar.
7593
7594 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
7595
7596 * tree-ssa-alias.c (alias_stats): Add
7597 nonoverlapping_component_refs_p_may_alias,
7598 nonoverlapping_component_refs_p_no_alias,
7599 nonoverlapping_component_refs_of_decl_p_may_alias,
7600 nonoverlapping_component_refs_of_decl_p_no_alias.
7601 (dump_alias_stats): Dump them.
7602 (nonoverlapping_component_refs_of_decl_p): Add stats.
7603 (nonoverlapping_component_refs_p): Add stats; do not stop on first
7604 ARRAY_REF.
7605
7606 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
7607
7608 * config/i386/i386.md (and<mode>3): Generate zero-extends for
7609 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
7610 only.
7611 (*anddi3_doubleword): Split before reload. Merge with
7612 anddi->zext pre-reload splitter.
7613 (*andndi3_doubleword): Split before reload.
7614 (*<code>di3_doubleword): Ditto.
7615 (*one_cmpldi2_doubleword): Ditto.
7616
7617 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7618
7619 PR middle-end/90779
7620 * gimplify.c: Include omp-offload.h and context.h.
7621 (gimplify_bind_expr): Add "omp declare target" attributes
7622 to static block scope variables inside of target region or target
7623 functions.
7624
7625 2019-06-15 Tom de Vries <tdevries@suse.de>
7626
7627 PR tree-optimization/90009
7628 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
7629 Return NULL if bb contains IFN_UNIQUE.
7630
7631 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
7632
7633 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
7634 (un): New define_mode_attr.
7635 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
7636 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
7637 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
7638 merge into ...
7639 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
7640
7641 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
7642
7643 * config/darwin.opt: Add RejectNegative where needed, reorder
7644 and add minimal functional descriptions.
7645
7646 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7647
7648 PR rtl-optimization/90765
7649 * calls.c (update_stack_alignment_for_call): New function.
7650 (expand_call): Call update_stack_alignment_for_call when
7651 outgoing parameter is passed in the stack.
7652 (emit_library_call_value_1): Likewise.
7653 * function.c (locate_and_pad_parm): Don't update
7654 stack_alignment_needed and preferred_stack_boundary.
7655
7656 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7657
7658 PR target/90877
7659 * config/i386/i386-features.c
7660 (dimode_scalar_chain::compute_convert_gain): Replace
7661 mmxsse_to_integer with sse_to_integer.
7662 * config/i386/i386.c (ix86_register_move_cost): Verify that
7663 moves between MMX and non-MMX units require secondary memory.
7664 Correct costs of moves between SSE and integer units.
7665 * config/i386/i386.h (processor_costs): Rename cost of moving
7666 SSE register to integer to sse_to_integer. Rename cost of
7667
7668 2019-06-14 Matt Thomas <matt@3am-software.com>
7669 Matthew Green <mrg@eterna.com.au>
7670 Nick Hudson <skrll@netbsd.org>
7671 Maya Rashish <coypu@sdf.org>
7672 Richard Earnshaw <rearnsha@arm.com>
7673
7674 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
7675 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
7676 * config/arm/netbsd-eabi.h: New file.
7677 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
7678 redefining.
7679 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
7680 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
7681 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
7682 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
7683
7684 2019-06-14 Richard Biener <rguenther@suse.de>
7685
7686 * tree-loop-distribution.c (classify_partition): Return
7687 whether a reduction appeared in all partitions and do not
7688 stop builtin detection because of this.
7689 (distribute_loop): Sort a non-builtin partition last if
7690 there's a reduction in all partitions and make sure the
7691 partition prevailing as last is not a builtin.
7692
7693 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
7694
7695 PR ipa/90401
7696 * ipa-prop.c (add_to_agg_contents_list): New function.
7697 (clobber_by_agg_contents_list_p): Likewise.
7698 (extract_mem_content): Likewise.
7699 (get_place_in_agg_contents_list): Delete.
7700 (determine_known_aggregate_parts): Renamed from
7701 determine_locally_known_aggregate_parts. New parameter
7702 aa_walk_budget_p.
7703
7704 2019-06-13 Martin Sebor <msebor@redhat.com>
7705
7706 PR tree-optimization/90662
7707 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
7708 to the same type.
7709
7710 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7711
7712 PR bootstrap/90873
7713 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
7714 dbase is not TARGET_MEM_REF.
7715
7716 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7717
7718 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
7719 Update all uses.
7720 (and<mode>3): Use gen_extend_insn instead of indirect functions.
7721 Do not generate DImode extends for 32bit targets.
7722 (and->zext post-reload splitter): Use gen_extend_insn
7723 instead of indirect functions.
7724 (anddi->zext pre-reload splitter): New.
7725 (*zext<mode>_doubleword_and): Remove.
7726 (*zext<mode>_doubleword): Ditto.
7727 (*zextsi_doubleword): Dittto.
7728
7729 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7730
7731 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7732 Use gen_sub3_insn instead of indirect function.
7733 (ix86_expand_ashl_const): Use gen_add2_insn instead of
7734 indirect function.
7735 (ix86_adjust_counter): Ditto.
7736
7737 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
7738 Lijia He <helijia@linux.ibm.com>
7739
7740 PR tree-optimization/77820
7741 * tree-ssa-threadedge.c
7742 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
7743 function.
7744 (thread_across_edge): Add call to
7745 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
7746
7747 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
7748
7749 * config/darwin-driver.c (validate_macosx_version_min): New.
7750 (darwin_default_min_version): Cleanup and validate supplied version.
7751 (darwin_driver_init): Likewise and push cleaned version into opts.
7752
7753 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7754
7755 PR tree-optimization/90869
7756 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
7757 converts in MEM_REF referencing decl rather than view converts
7758 from decl type to MEM_REF type.
7759
7760 2019-06-13 Richard Biener <rguenther@suse.de>
7761
7762 PR tree-optimization/90856
7763 * tree-sra.c (build_ref_for_model): Only use
7764 build_reconstructed_reference when address-spaces are the same.
7765
7766 2019-06-13 Jakub Jelinek <jakub@redhat.com>
7767
7768 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
7769 wrap ei variable name in the declaration in ()s.
7770 (nvptx_single): Actually use mode_label variable. Formatting fix.
7771
7772 2019-06-13 Richard Biener <rguenther@suse.de>
7773
7774 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
7775 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
7776 also return the condition stmt.
7777 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
7778 loop we can version and version that, reusing the loop version
7779 created by if-conversion instead of versioning again.
7780
7781 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
7782
7783 * gimple-loop-versioning.cc (prune_loop_conditions): Use
7784 may_contain_p.
7785 * tree-vrp (value_range_base::may_contain_p): Call into
7786 value_inside_range.
7787 (value_inside_range): Make private inside value_range_base class.
7788 Take min/max from *this.
7789 (range_includes_p): Remove.
7790 * tree-vrp.h (value_range_base): Add value_inside_range.
7791 (range_includes_p): Remove.
7792 (range_includes_zero_p): Call may_contain_p.
7793 * vr-values.c (compare_range_with_value): Same.
7794
7795 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
7796
7797 * doc/extend.texi (ARC Function Attributes): Update info.
7798
7799 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7800
7801 PR tree-optimization/89713
7802 * doc/invoke.texi (-ffinite-loops): Document new option.
7803 * common.opt (-ffinite-loops): New option.
7804 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
7805 IFN_GOACC_LOOP calls as necessary.
7806 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
7807 is finite.
7808 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
7809 IFN_GOACC_LOOP call is not used.
7810 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
7811
7812 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7813
7814 PR target/88838
7815 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
7816 compare_type is not with Pmode size, we will create an IV with
7817 Pmode size with truncated use (i.e. converted to the correct type).
7818 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
7819 (vect_iv_limit_for_full_masking): New. Factored out of
7820 vect_set_loop_condition_masked.
7821 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
7822 (vect_iv_limit_for_full_masking): Declare.
7823
7824 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7825
7826 PR target/88834
7827 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
7828 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
7829 (get_alias_ptr_type_for_ptr_address): Likewise.
7830 (add_iv_candidate_for_use): Add scaled index candidate if useful.
7831 * tree-ssa-address.c (preferred_mem_scale_factor): New.
7832 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
7833 allow_reg_index_p.
7834
7835 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7836
7837 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
7838
7839 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
7840
7841 * common/config/pru/pru-common.c: New file.
7842 * config.gcc: Add PRU target.
7843 * config/pru/alu-zext.md: New file.
7844 * config/pru/constraints.md: New file.
7845 * config/pru/predicates.md: New file.
7846 * config/pru/pru-opts.h: New file.
7847 * config/pru/pru-passes.c: New file.
7848 * config/pru/pru-pragma.c: New file.
7849 * config/pru/pru-protos.h: New file.
7850 * config/pru/pru.c: New file.
7851 * config/pru/pru.h: New file.
7852 * config/pru/pru.md: New file.
7853 * config/pru/pru.opt: New file.
7854 * config/pru/t-pru: New file.
7855 * doc/extend.texi: Document PRU pragmas.
7856 * doc/invoke.texi: Document PRU-specific options.
7857 * doc/md.texi: Document PRU asm constraints.
7858
7859 2019-06-12 Martin Sebor <msebor@redhat.com>
7860
7861 PR middle-end/90676
7862 * tree-pretty-print.c (dump_mem_ref): New function. Include
7863 MEM_REF type in output when different size than operand.
7864 (dump_generic_node): Move code to dump_mem_ref and call it.
7865
7866 2019-06-12 Martin Sebor <msebor@redhat.com>
7867
7868 PR tree-optimization/90662
7869 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
7870 to arrays.
7871
7872 2019-06-12 Tom de Vries <tdevries@suse.de>
7873
7874 PR tree-optimization/90009
7875 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
7876
7877 2019-06-12 Martin Liska <mliska@suse.cz>
7878
7879 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
7880 the created map.
7881 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
7882 * mem-stats.h (mem_alloc_description::mem_alloc_description):
7883 Do not sanitize created maps.
7884
7885 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
7886
7887 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
7888 value_range::singleton_p.
7889 * tree-vrp.c (value_range_constant_singleton): Remove.
7890 * tree-vrp.h (value_range_constant_singleton): Remove.
7891 * vr-values.c (vr_values::singleton): Use
7892 value_range::singleton_p.
7893
7894 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7895
7896 PR target/90811
7897 * cfgexpand.c (align_local_variable): Add really_expand argument,
7898 don't SET_DECL_ALIGN if it is false.
7899 (add_stack_var): Add really_expand argument, pass it through to
7900 align_local_variable.
7901 (expand_one_stack_var_1): Pass true as really_expand to
7902 align_local_variable.
7903 (expand_one_ssa_partition): Pass true as really_expand to
7904 add_stack_var.
7905 (expand_one_var): Pass really_expand through to add_stack_var.
7906
7907 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7908
7909 * config/arm/iterators.md (VABAL): New int iterator.
7910 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
7911 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
7912 UNSPEC_VABAL_U values.
7913
7914 2019-06-12 Martin Liska <mliska@suse.cz>
7915
7916 * value-prof.c (stream_out_histogram_value): Only first value
7917 can't be negative.
7918
7919 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7920
7921 PR c/90760
7922 * symtab.c (symtab_node::set_section): Allow being called on aliases
7923 as long as they aren't analyzed yet.
7924
7925 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
7926
7927 * config/mips/mips.c (mips_final_postscan_insn): Modify call
7928 to `mips_set_text_contents_type' to indicate whether a
7929 non-debug insn follows.
7930
7931 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
7932
7933 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
7934 enabling -mpcrel by default.
7935 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
7936 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
7937 that the test against -mcpu=future is done first. Then test if
7938 -mprefixed-addr is on for -mpcrel.
7939 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
7940
7941 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7942
7943 PR target/90811
7944 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
7945 instead of and.u%d.
7946
7947 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7948
7949 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
7950
7951 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
7952
7953 PR c++/90449 - add -Winaccessible-base option.
7954 * doc/invoke.texi (Winaccessible-base): Document.
7955
7956 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7957
7958 PR tree-optimization/62041
7959 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
7960
7961 2019-06-11 Jason Merrill <jason@redhat.com>
7962
7963 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
7964 * tree.c (get_tree_code_name): Likewise.
7965 * print-tree.c (print_node): Only briefly print a node with an
7966 invalid code.
7967
7968 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7969
7970 PR bootstrap/90819
7971 * trans-mem.c (tm_memopt_compute_available): Add assertion
7972 that blocks is not empty. Formatting fix.
7973
7974 2019-06-11 Martin Liska <mliska@suse.cz>
7975
7976 PR c++/87847
7977 * hash-table.h: Extend create_gcc, add one parameter
7978 that is passed into hash_table::hash_table.
7979
7980 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
7981
7982 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
7983 New prototype.
7984 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
7985 Emit clobber also for non-sse operations.
7986 (ix86_split_fp_absneg_operator): New function.
7987 * config/i386/i386.md (SSEMODEF): New mode iterator.
7988 (ssevecmodef): New mode attribute.
7989 (<code>tf2): Use absneg code iterator.
7990 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
7991 Add three-operand AVX alternatives.
7992 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
7993 Use absneg code iterator and X87MODEF mode iterator.
7994 (absneg fp_reg non-sse splitter): Call absneg code iterator
7995 and X87MODEF mode iterator.
7996 (absneg general_reg non-sse splitter): Use absneg code iterator
7997 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
7998 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
7999 code iterator. Add three-operand AVX alternative.
8000 (absneg sse_reg splitter): Use absneg code iterator
8001 and SSEMODEF mode iterator. Handle AVX operands.
8002 (absneg fp_reg splitter): Use absneg code iterator
8003 and MODEF mode iterator.
8004 (absneg general_reg splitter): Merge splitters using MODEF mode
8005 iterator. Use absneg code iterator. Call
8006 ix86_split_fp_absneg_operator.
8007 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
8008 Do not enable for non-sse modes before reload.
8009 (CSGNMODE): Remove.
8010 (CSGNVMODE): Ditto.
8011 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
8012 ssevecmodef mode attribute instaed of CSGNVMODE.
8013 (copysign<mode>3_const): Ditto.
8014 (copysign<mode>3_var): Ditto.
8015 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
8016 Use absneg code iterator. Simplify code using std::swap.
8017 * config/i386/predicates.md (absneg_operator): Remove.
8018
8019 2019-06-10 Martin Sebor <msebor@redhat.com>
8020
8021 * gimple-fold.c (get_range_strlen): Update comment that didn't
8022 make it into r267503 or related commits.
8023
8024 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
8025
8026 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
8027 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
8028
8029 2019-06-10 Jakub Jelinek <jakub@redhat.com>
8030
8031 * tree.def (OMP_SCAN): New tree code.
8032 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
8033 OMP_CLAUSE_EXCLUSIVE.
8034 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
8035 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
8036 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
8037 OMP_CLAUSE_{IN,EX}CLUSIVE.
8038 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8039 * tree-nested.c (convert_nonlocal_reference_stmt,
8040 convert_local_reference_stmt, convert_gimple_call): Handle
8041 GIMPLE_OMP_SCAN.
8042 * tree-pretty-print.c (dump_omp_clause): Handle
8043 OMP_CLAUSE_{IN,EX}CLUSIVE.
8044 (dump_generic_node): Handle OMP_SCAN.
8045 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
8046 * gimple.h (gomp_scan): New type.
8047 (is_a_helper <gomp_scan *>::test,
8048 is_a_helper <const gomp_scan *>::test): New templates.
8049 (gimple_build_omp_scan): Declare.
8050 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
8051 gimple_omp_scan_set_clauses): New inline functions.
8052 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
8053 * gimple.c (gimple_build_omp_scan): New function.
8054 (gimple_copy): Handle GIMPLE_OMP_SCAN.
8055 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
8056 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
8057 GIMPLE_OMP_TASKGROUP.
8058 (dump_gimple_omp_scan): New function.
8059 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
8060 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
8061 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
8062 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
8063 (is_gimple_stmt): Handle OMP_SCAN.
8064 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
8065 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8066 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
8067 mentioned in nested #pragma omp scan. Handle
8068 OMP_CLAUSE_{IN,EX}CLUSIVE.
8069 (gimplify_expr): Handle OMP_SCAN.
8070 * omp-low.c (check_omp_nesting_restrictions): For parent context,
8071 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
8072 simd constructs.
8073 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
8074 GIMPLE_OMP_SCAN.
8075
8076 2019-06-10 Martin Liska <mliska@suse.cz>
8077
8078 * ipa-cp.c (ignore_edge_p): New function.
8079 (build_toporder_info): Use it.
8080 * ipa-inline.c (ignore_edge_p): New function.
8081 (inline_small_functions): Use it.
8082 * ipa-pure-const.c (ignore_edge_for_nothrow):
8083 Verify opt_for_fn for caller and callee.
8084 (ignore_edge_for_pure_const): Likewise.
8085 * ipa-reference.c (ignore_edge_p): Extend to check
8086 for opt_for_fn.
8087 * ipa-utils.c (searchc): Refactor.
8088 * ipa-utils.h: Fix coding style.
8089
8090 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8091
8092 * config/arc/arc.c (arc_rtx_costs): Update costs.
8093
8094 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8095
8096 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
8097 (arc_split_ior): Likewise.
8098 (arc_check_mov_const): Likewise.
8099 (arc_split_mov_const): Likewise.
8100 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
8101 (arc_rtx_costs): Replace check Crr with Cax constraint.
8102 (prepare_move_operands): Cleanup, remove unused code.
8103 (arc_split_ior): New function.
8104 (arc_check_ior_const): Likewise.
8105 (arc_split_mov_const): Likewise.
8106 (arc_check_mov_const): Likewise.
8107 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
8108 in define_insn_and_split pattern.
8109 (iorsi3): Likewise.
8110 (mulsi3_v2): Add new matching variant.
8111 (andsi3_i): Cleanup pattern.
8112 (rotrsi3_cnt1): Update pattern.
8113 (rotrsi3_cnt8): New pattern.
8114 (ashlsi2_cnt8): Likewise.
8115 (ashlsi2_cnt16): Likewise.
8116 * config/arc/constraints.md (C0p): Update constraint.
8117 (Crr): Remove it.
8118 (C0x): New pattern.
8119 (Cax): New pattern.
8120
8121 2019-06-10 Martin Liska <mliska@suse.cz>
8122
8123 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
8124 Update coding style.
8125 (sem_item_optimizer::dump_cong_classes):
8126 Print how many items are in a non-singular class. Improve
8127 coding style.
8128
8129 2019-06-10 Martin Liska <mliska@suse.cz>
8130
8131 * value-prof.c (dump_histogram_value): Change dump format.
8132 (gimple_mod_subtract_transform): Remove legacy comment.
8133
8134 2019-06-10 Martin Liska <mliska@suse.cz>
8135
8136 * value-prof.c (dump_histogram_value): Print histogram values
8137 only if present.
8138
8139 2019-06-10 Martin Liska <mliska@suse.cz>
8140
8141 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
8142 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
8143 * ipa-profile.c (ipa_profile_generate_summary):
8144 Use get_most_common_single_value.
8145 * tree-profile.c (gimple_init_gcov_profiler):
8146 Instrument with __gcov_one_value_profiler_v2
8147 and __gcov_indirect_call_profiler_v4.
8148 * value-prof.c (dump_histogram_value):
8149 Print all values for HIST_TYPE_SINGLE_VALUE.
8150 (stream_out_histogram_value): Update assert for
8151 N values.
8152 (stream_in_histogram_value): Set number of
8153 counters for HIST_TYPE_SINGLE_VALUE.
8154 (get_most_common_single_value): New.
8155 (gimple_divmod_fixed_value_transform):
8156 Use get_most_common_single_value.
8157 (gimple_ic_transform): Likewise.
8158 (gimple_stringops_transform): Likewise.
8159 (gimple_find_values_to_profile): Set number
8160 of counters for HIST_TYPE_SINGLE_VALUE.
8161 * value-prof.h (get_most_common_single_value): New.
8162
8163 2019-06-10 Martin Liska <mliska@suse.cz>
8164
8165 * hash-map.h: Pass default value to hash_table ctor.
8166 * hash-table.h: Add default value to call of a ctor.
8167
8168 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
8169
8170 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
8171 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
8172
8173 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
8174
8175 PR target/90751
8176 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
8177 Call pa_output_function_label.
8178 (TARGET_ASM_FUNCTION_PROLOGUE): define.
8179 * config/pa/pa-protos.h (pa_output_function_label): Declare.
8180 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
8181 to declaration.
8182 (pa_linux_output_function_prologue): Declare.
8183 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
8184 (pa_output_function_label): New.
8185 (pa_output_function_prologue): Revise to use pa_output_function_label.
8186 (pa_linux_output_function_prologue): New.
8187 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
8188
8189 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
8190
8191 * tree-vrp.h (value_range_base::intersect): New.
8192 (value_range::intersect_helper): Move from here...
8193 (value_range_base::intersect_helper): ...to here.
8194 * tree-vrp.c (value_range::intersect_helper): Rename to...
8195 (value_range_base::intersect_helper): ...this, and rewrite to
8196 return a value instead of modifying THIS in place.
8197 Also, move equivalence handling...
8198 (value_range::intersect): ...here, while calling intersect_helper.
8199 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
8200 calling intersect.
8201 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
8202 Same.
8203 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
8204
8205 2019-06-07 Jakub Jelinek <jakub@redhat.com>
8206
8207 * Makefile.in (genprogerr): Add condmd.
8208 (genprog): Remove it here.
8209
8210 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
8211
8212 * doc/invoke.texi (AMD GCN Options): Add gfx906.
8213
8214 2019-06-07 Richard Biener <rguenther@suse.de>
8215
8216 PR debug/90574
8217 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
8218 that appear after user labels.
8219
8220 2019-06-07 Martin Liska <mliska@suse.cz>
8221
8222 * cselib.c (cselib_init): Disable hash table
8223 sanitization.
8224 * hash-set.h: Pass new default argument to m_table.
8225 * hash-table.c: Add global variable with hash table
8226 sanitization limit.
8227 * hash-table.h (Allocator>::hash_table): Add new argument
8228 to ctor.
8229 (hashtab_chk_error): New.
8230 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
8231 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
8232 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
8233
8234 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8235
8236 * common.opt (flto-odr-type-merging): Ignore.
8237 * invoke.texi (-flto-odr-type-merging): Remove.
8238 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
8239 (can_be_vtable_hashed_p): Remove.
8240 (hash_odr_vtable): Remove.
8241 (odr_vtable_hasher::hash): Remove.
8242 (types_same_for_odr): Remove.
8243 (types_odr_comparable): Remove.
8244 (odr_vtable_hasher::equal): Remove.
8245 (odr_vtable_hash_type, odr_vtable_hash): Remove.
8246 (add_type_duplicate): Do not synchronize vtable and name hashtables.
8247 (get_odr_type): Do not use vtable hash.
8248 (dump_odr_type): Remove commented out code.
8249 (build_type_inheritance_graph): Do not allocate vtable hash.
8250 (rebuild_type_inheritance_graph): Do not delete vtable hash.
8251 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
8252 (odr_type_p): Likewise.
8253 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
8254 test.
8255
8256 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8257
8258 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
8259 immediately after same_types_for_tbaa_p returns -1 and continue
8260 looking for possible exact match; if matching types are arrays
8261 watch for partial overlaps.
8262 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
8263 (indirect_refs_may_alias_p): Do type based disambiguation first;
8264 update comment.
8265
8266 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
8267
8268 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
8269
8270 2019-06-07 Martin Liska <mliska@suse.cz>
8271
8272 * doc/invoke.texi: Remove param.
8273 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
8274 Remove.
8275 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
8276 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
8277 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
8278 * profile.c (instrument_values): Remove
8279 HIST_TYPE_INDIR_CALL_TOPN.
8280 * tree-profile.c (init_ic_make_global_vars):
8281 Always build __gcov_indirect_call only.
8282 (gimple_init_gcov_profiler): Remove usage
8283 of PARAM_INDIR_CALL_TOPN_PROFILE.
8284 (gimple_gen_ic_profiler): Likewise.
8285 * value-prof.c (dump_histogram_value): Likewise.
8286 (stream_in_histogram_value): Likewise.
8287 (gimple_indirect_call_to_profile): Likewise.
8288 (gimple_find_values_to_profile): Likewise.
8289 * value-prof.h (enum hist_type): Likewise.
8290
8291 2019-06-07 Martin Liska <mliska@suse.cz>
8292
8293 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
8294 function.
8295
8296 2019-06-07 Martin Liska <mliska@suse.cz>
8297
8298 PR tree-optimization/78902
8299 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
8300 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
8301 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8302 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8303 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
8304 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8305 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
8306 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
8307 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8308 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8309 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8310 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
8311 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
8312 New.
8313 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
8314 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
8315 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
8316 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8317 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8318 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
8319 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8320 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8321 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
8322 warn_unused_result attribute.
8323 (BUILT_IN_STRDUP): Likewise.
8324 (BUILT_IN_STRNDUP): Likewise.
8325 (BUILT_IN_ALLOCA): Likewise.
8326 (BUILT_IN_CALLOC): Likewise.
8327 (BUILT_IN_MALLOC): Likewise.
8328 (BUILT_IN_REALLOC): Likewise.
8329
8330 2019-06-06 Jim Wilson <jimw@sifive.com>
8331
8332 PR target/89955
8333 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
8334 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
8335 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8336
8337 2019-06-06 Martin Sebor <msebor@redhat.com>
8338
8339 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
8340 (handle_builtin_malloc): Remove trailing spaces.
8341 (handle_builtin_memset): Same.
8342 (handle_builtin_memcmp): Same.
8343 (compute_string_length): Same.
8344 (determine_min_objsize): Same.
8345 (handle_builtin_string_cmp): Same.
8346 (handle_char_store): Same. Break up excessively long line.
8347
8348 2019-06-06 Martin Jambor <mjambor@suse.cz>
8349
8350 * tree-sra.c (build_reconstructed_reference): Drop the alignment
8351 check.
8352
8353 2019-06-06 Martin Jambor <mjambor@suse.cz>
8354
8355 * tree-sra.c (struct access): New field grp_same_access_path.
8356 (dump_access): Dump it.
8357 (build_reconstructed_reference): New function.
8358 (build_ref_for_model): Use it if possible.
8359 (path_comparable_for_same_access): New function.
8360 (same_access_path_p): Likewise.
8361 (sort_and_splice_var_accesses): Set the new flag.
8362 (analyze_access_subtree): Likewise.
8363 (propagate_subaccesses_across_link): Propagate zero value of the new
8364 flag down the access tree.
8365
8366 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
8367
8368 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
8369 * config/gcn/gcn.opt (gpu_type): Add gfx906.
8370 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
8371 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
8372 Add gfx906.
8373
8374 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8375
8376 PR tree-optimization/90332
8377 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8378 Handle VALS containing two vectors.
8379 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
8380 to...
8381 (@aarch64_combinez<mode>): ... This.
8382 (*aarch64_combinez_be<mode>): Rename to...
8383 (@aarch64_combinez_be<mode>): ... This.
8384 (vec_init<mode><Vhalf>): New define_expand.
8385 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
8386
8387 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8388
8389 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
8390 library functions only when not optimizing for size.
8391 (ashlsi3): Likewise.
8392 (ashrhi3): Likewise.
8393 (ashrsi3): Likewise.
8394 (lshrhi3): Likewise.
8395 (lshrsi3): Likewise.
8396
8397 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
8398
8399 PR rtl-optimization/88751
8400 * ira.c (ira): Use the number of the actually referenced registers
8401 when calculating the threshold.
8402
8403 2019-06-06 Jakub Jelinek <jakub@redhat.com>
8404
8405 * configure: Regenerate.
8406
8407 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8408
8409 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
8410 register if it is in memory, so the shift can be emulated with a rotate
8411 instruction.
8412 (ashrhi3): Likewise.
8413 (lshrhi3): Likewise.
8414
8415 2019-06-06 Martin Liska <mliska@suse.cz>
8416
8417 PR tree-optimization/87954
8418 * match.pd: Simplify mult where both arguments are 0 or 1.
8419
8420 2019-06-06 Richard Biener <rguenther@suse.de>
8421
8422 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
8423 put equivalences on UNDEFINED ranges.
8424 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8425 Make sure to drop defs of stmts added during simplification
8426 to VARYING.
8427
8428 2019-06-06 Richard Biener <rguenther@suse.de>
8429
8430 * tree-ssa-structalias.c: Include tree-cfg.h.
8431 (make_heapvar): Do not make heap vars artificial.
8432 (find_func_aliases_for_builtin_call): Handle stack allocation
8433 functions.
8434 (find_func_aliases): Delay processing of simple enough returns
8435 in non-IPA mode.
8436 (set_uids_in_ptset): Adjust.
8437 (find_what_var_points_to): Likewise.
8438 (solve_constraints): Do not dump points-to sets here.
8439 (compute_points_to_sets): Post-process return statements,
8440 amending the escaped solution. Dump points-to sets afterwards.
8441 (ipa_pta_execute): Dump points-to sets.
8442
8443 2019-06-06 Martin Liska <mliska@suse.cz>
8444
8445 PR web/87933
8446 * doc/install.texi: Fix HTML headers and
8447 titles for 'Installing GCC' pages.
8448
8449 2019-06-06 Martin Liska <mliska@suse.cz>
8450
8451 * ipa-icf-gimple.h (dump_message_1): Remove.
8452 (dump_message): Likewise.
8453 (return_false_with_message_1): Print also file.
8454 (return_false_with_msg): Likewise.
8455 (return_with_result): Likewise.
8456 (return_with_debug): Likewise.
8457 * ipa-icf.c (sem_function::equals_private): Remove call
8458 to dump_message.
8459
8460 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8461
8462 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
8463 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
8464 memory operand for it.
8465 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
8466
8467 2019-06-05 Martin Sebor <msebor@redhat.com>
8468
8469 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
8470 Adjust quoting and hyphenation.
8471 * convert.c (convert_to_real_1): Same.
8472 * gcc.c (driver_wrong_lang_callback): Same.
8473 (driver::handle_unrecognized_options): Same.
8474 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8475 * opts-common.c (cmdline_handle_error): Same.
8476 (read_cmdline_option): Same.
8477 * opts-global.c (complain_wrong_lang): Same.
8478 (print_ignored_options): Same.
8479 (handle_common_deferred_options): Same.
8480 * pretty-print.h: Same.
8481 * print-rtl.c (debug_bb_n_slim): Same.
8482 * sched-rgn.c (make_pass_sched_fusion): Same.
8483 * tree-cfg.c (verify_gimple_assign_unary): Same.
8484 (verify_gimple_label): Same.
8485 * tree-ssa-operands.c (verify_ssa_operands): Same.
8486 * varasm.c (do_assemble_alias): Same.
8487 (assemble_alias): Same.
8488
8489 2019-06-05 Richard Henderson <rth@twiddle.net>
8490
8491 * config/alpha/alpha.c (direct_return): Move down after
8492 struct machine_function definition; use saved frame_size;
8493 return bool.
8494 (struct machine_function): Add sa_mask, sa_size, frame_size.
8495 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
8496 (alpha_compute_frame_layout): ... new function.
8497 (TARGET_COMPUTE_FRAME_LAYOUT): New.
8498 (alpha_initial_elimination_offset): Use saved sa_size.
8499 (alpha_vms_initial_elimination_offset): Likewise.
8500 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
8501 (alpha_expand_prologue): Use saved frame data. Merge integer
8502 and fp register save loops.
8503 (alpha_expand_epilogue): Likewise.
8504 (alpha_start_function): Use saved frame data.
8505 * config/alpha/alpha-protos.h (direct_return): Update.
8506 (alpha_sa_size): Remove.
8507
8508 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
8509
8510 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
8511 multiplication by a power-of-two value.
8512 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
8513 and turn the modulo operation into a masking operation.
8514
8515 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8516
8517 PR debug/90733
8518 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
8519 with VOIDmode inner operands.
8520
8521 2019-06-05 Richard Biener <rguenther@suse.de>
8522
8523 PR middle-end/90726
8524 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8525 turn an expression graph into a tree.
8526
8527 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8528
8529 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
8530 member.
8531 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
8532 treat it like explicit monotonic schedule modifier.
8533 (expand_omp_for): Initialize has_lastprivate_conditional.
8534 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
8535 schedule modifier.
8536
8537 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
8538 references, lookup in in hash map MEM_REF operand instead of the
8539 MEM_REF itself.
8540 (lower_omp_1): When looking for lastprivate conditional assignments,
8541 handle MEM_REFs with REFERENCE_TYPE operands.
8542
8543 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
8544 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
8545 and references a VLA. Handle references to non-VLAs if is_simd
8546 all privatization clauses like reductions.
8547 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
8548 If omp_is_reference, use always omp simd arrays and set
8549 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
8550 fails, emit reference initialization.
8551
8552 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8553
8554 PR target/89803
8555 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
8556 _mm_mask_fpclass_sd_mask): New intrinsics.
8557 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
8558 * config/i386/i386-builtin.def
8559 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
8560 New builtins.
8561 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
8562 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
8563 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
8564 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
8565 case QI_FTYPE_V2SF_INT): Ditto.
8566 * config/i386/sse.md
8567 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
8568 Extended to insnstructions with mask operands.
8569
8570 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8571
8572 * config/rs6000/constraints.md (define_register_constraint "wp"):
8573 Delete.
8574 (define_register_constraint "wq"): Delete.
8575 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8576 (rs6000_init_hard_regno_mode_ok): Adjust.
8577 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8578 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
8579 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
8580 (define_mode_attr VSa): Delete.
8581 (define_mode_attr VSisa): New.
8582 (rest of file): Adjust.
8583 * doc/md.texi (Machine Constraints): Adjust.
8584
8585 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8586
8587 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
8588 (define_attr "enabled"): Handle those new isa values.
8589
8590 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8591
8592 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
8593 (define_mode_attr VSr5): Delete.
8594 (define_mode_attr VStype_sqrt): Delete.
8595 (define_mode_iterator VSX_SPDP): Delete.
8596 (define_mode_attr VS_spdp_res): Delete.
8597 (define_mode_attr VS_spdp_insn): Delete.
8598 (define_mode_attr VS_spdp_type): Delete.
8599 (*vsx_sqrt<mode>2): Adjust.
8600 (vsx_<VS_spdp_insn>): Delete, split to...
8601 (vsx_xscvdpsp): ... this. New. And...
8602 (vsx_xvcvspdp): ... this. New. And...
8603 (vsx_xvcvdpsp): ... this. New.
8604
8605 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8606
8607 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
8608 and V2DF.
8609 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
8610 (rest of file): Adjust.
8611
8612 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8613
8614 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
8615 (vsx_extract_<mode>_var): Ditto.
8616
8617 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8618
8619 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
8620 with just "wa".
8621
8622 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8623
8624 * config/rs6000/constraints.md (define_register_constraint "ww"):
8625 Delete.
8626 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8627 (rs6000_init_hard_regno_mode_ok): Adjust.
8628 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8629 RS6000_CONSTRAINT_ww.
8630 * config/rs6000/rs6000.md: Adjust.
8631 * config/rs6000/vsx.md: Adjust.
8632 * doc/md.texi (Machine Constraints): Adjust.
8633
8634 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8635
8636 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
8637 (define_mode_attr sd): New.
8638 (define_mode_attr s): New.
8639 (define_mode_attr Ftrad): Delete.
8640 (define_mode_attr Fvsx): Delete.
8641 (define_mode_attr Fs): Delete.
8642 (rest of file): Use the new mode attributes.
8643 * config.rs6000/vsx.md: Use the new mode attributes.
8644
8645 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8646
8647 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
8648 with just "wa".
8649
8650 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8651
8652 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
8653 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
8654 used with VSX_B, VSX_D, or VSX_F, with just "wa".
8655
8656 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
8657
8658 PR target/78263
8659 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
8660 C++ with strict ANSI requirements.
8661
8662 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
8663
8664 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
8665 computations when step is 1.
8666
8667 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8668
8669 * config/rs6000/constraints.md (define_register_constraint "wf"):
8670 Delete.
8671 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8672 (rs6000_init_hard_regno_mode_ok): Adjust.
8673 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8674 RS6000_CONSTRAINT_wf.
8675 * config/rs6000/rs6000.md: Adjust.
8676 * config/rs6000/vsx.md: Adjust.
8677 * doc/md.texi (Machine Constraints): Adjust.
8678
8679 2019-06-04 Andrew Pinski <apinski@marvell.com>
8680
8681 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
8682 Fix ILP32 value.
8683
8684 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8685
8686 * config/rs6000/constraints.md (define_register_constraint "wd"):
8687 Delete.
8688 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8689 (rs6000_init_hard_regno_mode_ok): Adjust.
8690 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8691 RS6000_CONSTRAINT_wd.
8692 * config/rs6000/rs6000.md: Adjust.
8693 * config/rs6000/vsx.md: Adjust.
8694 * doc/md.texi (Machine Constraints): Adjust.
8695
8696 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8697
8698 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
8699 (rest of file): Adjust.
8700
8701 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8702
8703 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
8704 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
8705 (vsx_splat_<mode>_reg): Adjust.
8706
8707 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8708
8709 * config/rs6000/constraints.md (define_register_constraint "ws"):
8710 Delete.
8711 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8712 (rs6000_init_hard_regno_mode_ok): Adjust.
8713 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8714 RS6000_CONSTRAINT_ws.
8715 * config/rs6000/rs6000.md: Adjust.
8716 * config/rs6000/vsx.md: Adjust.
8717 * doc/md.texi (Machine Constraints): Adjust.
8718
8719 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8720
8721 * config/rs6000/constraints.md (define_register_constraint "wv"):
8722 Delete.
8723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8724 (rs6000_init_hard_regno_mode_ok): Adjust.
8725 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8726 RS6000_CONSTRAINT_wv.
8727 * config/rs6000/rs6000.md: Adjust.
8728 * config/rs6000/vsx.md: Adjust.
8729 * doc/md.texi (Machine Constraints): Adjust.
8730
8731 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8732
8733 * config/rs6000/constraints.md (define_register_constraint "wi"):
8734 Delete.
8735 (define_register_constraint "wt"): Delete.
8736 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8737 (rs6000_init_hard_regno_mode_ok): Adjust.
8738 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8739 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
8740 * config/rs6000/rs6000.md: Adjust.
8741 * config/rs6000/vsx.md: Adjust.
8742 * doc/md.texi (Machine Constraints): Adjust.
8743
8744 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8745
8746 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
8747 const.
8748 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
8749 default_elf_asm_output_external.
8750
8751 2019-06-04 Martin Liska <mliska@suse.cz>
8752
8753 * ipa-icf.c (INCLUDE_LIST): Remove.
8754 (sem_item_optimizer::execute): Remove call to init_wpa.
8755 * ipa-icf.h (init_wpa): Remove.
8756
8757 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8758
8759 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
8760 conditional on combined for simd.
8761 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
8762 member.
8763 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
8764 constructs, don't remove lastprivate_conditional_map, but instead set
8765 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
8766 to parent construct temporaries.
8767 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
8768 like !ctx->lastprivate_conditional_map.
8769 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
8770 use up->outer context instead of up.
8771 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
8772 gimple_omp_for_combined_p.
8773 (expand_omp_for_static_nochunk): Likewise.
8774 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
8775 probably moved over into expand_omp_for_generic rather than being copied
8776 there.
8777
8778 2019-06-04 Martin Liska <mliska@suse.cz>
8779
8780 * value-prof.c (dump_histogram_value): Fix typo.
8781 (gimple_mod_subtract_transform): Likewise.
8782
8783 2019-06-04 Richard Biener <rguenther@suse.de>
8784
8785 PR middle-end/90726
8786 * tree-chrec.c (chrec_contains_symbols): Add to visited.
8787 (tree_contains_chrecs): Likewise.
8788 (chrec_contains_symbols_defined_in_loop): Move here and avoid
8789 exponential behaivor from ...
8790 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8791 ... here.
8792 (expression_expensive_p): Avoid exponential behavior and compute
8793 expanded size, rejecting any expansion.
8794 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
8795 (idx_contains_abnormal_ssa_name_p): Likewise.
8796 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
8797 (contains_abnormal_ssa_name_p): Simplify and use
8798 walk_tree_without_duplicates.
8799
8800 2019-06-04 Richard Biener <rguenther@suse.de>
8801
8802 PR tree-optimization/90738
8803 Revert
8804 2019-06-03 Richard Biener <rguenther@suse.de>
8805
8806 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8807 full reference tree and record in ref->ref.
8808 (vn_reference_lookup_3): Pass in original ref to
8809 ao_ref_init_from_vn_reference.
8810 (vn_reference_lookup): Likewise.
8811 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8812 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8813 Handle non-decl bases in the original reference.
8814
8815 2019-06-04 Martin Liska <mliska@suse.cz>
8816
8817 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
8818 number of references.
8819 (sem_item_optimizer::do_congruence_step):
8820 (sem_item_optimizer::worklist_push): Dump how references
8821 a class has.
8822 (sem_item_optimizer::worklist_pop): Use heap.
8823 (sem_item_optimizer::process_cong_reduction): Likewise.
8824 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
8825
8826 2019-06-04 Martin Liska <mliska@suse.cz>
8827
8828 * ipa-icf.h (struct sem_usage_pair_hash): New.
8829 (sem_usage_pair_hash::hash): Likewise.
8830 (sem_usage_pair_hash::equal): Likewise.
8831 (struct sem_usage_hash): Likewise.
8832 * ipa-icf.c (sem_item::sem_item): Initialize
8833 referenced_by_count.
8834 (sem_item::add_reference): Register a reference
8835 in ref_map and not in target->usages.
8836 (sem_item::setup): Remove initialization of
8837 dead vectors.
8838 (sem_item::~sem_item): Remove usage of dead vectors.
8839 (sem_item::dump): Remove dump of references.
8840 (sem_item_optimizer::sem_item_optimizer): Initialize
8841 m_references.
8842 (sem_item_optimizer::read_section): Remove useless
8843 dump.
8844 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
8845 (sem_item_optimizer::build_graph): Pass m_references
8846 to ::add_reference.
8847 (sem_item_optimizer::verify_classes): Remove usage of dead
8848 vectors.
8849 (sem_item_optimizer::traverse_congruence_split): Return true
8850 when a class is split.
8851 (sem_item_optimizer::do_congruence_step_for_index): Use
8852 hash_map for look up of (sem_item *, index). That brings
8853 significant speed up.
8854 (sem_item_optimizer::do_congruence_step): Return true
8855 when a split is done.
8856 (congruence_class::is_class_used): Use referenced_by_count.
8857
8858 2019-06-04 Alan Modra <amodra@gmail.com>
8859
8860 PR target/90689
8861 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
8862 error.
8863
8864 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8865
8866 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
8867 * config/rs6000/rs6000.c (direct_move_p): Adjust.
8868 (rs6000_secondary_reload_simple_move): Adjust.
8869 (rs6000_opt_masks): Neuter the "mfpgpr" option.
8870 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
8871 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
8872 comment.
8873 (power6x): Adjust.
8874 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
8875 (floatunssi<mode>2_lfiwzx): Adjust.
8876 (fix_trunc<mode>si2_stfiwx): Adjust.
8877 (fixuns_trunc<mode>si2_stfiwx): Adjust.
8878 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
8879 (mfpgpr): Mark as deprecated.
8880 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
8881 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
8882 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
8883
8884 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8885
8886 * config/rs6000/constraints.md (define_register_constraint "wg"):
8887 Delete.
8888 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8889 RS6000_CONSTRAINT_wg.
8890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8891 (rs6000_init_hard_regno_mode_ok): Adjust.
8892 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
8893 Delete "wg" alternatives.
8894 * doc/md.texi (Machine Constraints): Adjust.
8895
8896 2019-06-03 Alan Modra <amodra@gmail.com>
8897
8898 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
8899 (get_uncond_jump_length): Assert length less than INT_MAX and
8900 non-negative.
8901
8902 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8903
8904 PR middle-end/64242
8905 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
8906 block.
8907 (expand_builtin_nonlocal_goto): Likewise.
8908
8909 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8910
8911 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
8912 (aarch64_asm_output_external): Declare.
8913 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
8914 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
8915 (aarch64_asm_output_alias): New.
8916 (aarch64_asm_output_external): New.
8917 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8918 (ASM_OUTPUT_EXTERNAL): Define.
8919
8920 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
8921 * tree-vrp.h (value_range_base::nonzero_p): New.
8922 (value_range_base::set_nonnull): Rename to...
8923 (value_range_base::set_nonzero): ...this.
8924 (value_range_base::set_null): Rename to...
8925 (value_range_base::set_zero): ...this.
8926 (value_range::set_nonnull): Remove.
8927 (value_range::set_null): Remove.
8928 * tree-vrp.c (range_is_null): Remove.
8929 (range_is_nonnull): Remove.
8930 (extract_range_from_binary_expr): Use value_range_base::*zero_p
8931 instead of range_is_*null.
8932 (extract_range_from_unary_expr): Same.
8933 (value_range_base::set_nonnull): Rename to...
8934 (value_range_base::set_nonzero): ...this.
8935 (value_range::set_nonnull): Remove.
8936 (value_range_base::set_null): Rename to...
8937 (value_range_base::set_zero): ...this.
8938 (value_range::set_null): Remove.
8939 (extract_range_from_binary_expr): Rename set_*null uses to
8940 set_*zero.
8941 (extract_range_from_unary_expr): Same.
8942 (union_helper): Same.
8943 * vr-values.c (get_value_range): Use set_*zero instead of
8944 set_*null.
8945 (vr_values::extract_range_from_binary_expr): Same.
8946 (vr_values::extract_range_basic): Same.
8947
8948 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8949
8950 PR driver/90684
8951 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
8952
8953 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8954
8955 * config/aarch64/iterators.md (MAX_OPP): New code attr.
8956 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
8957 Rename to...
8958 (aarch64_<su>abd<mode>_3): ... This.
8959 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
8960
8961 2019-06-03 Richard Biener <rguenther@suse.de>
8962
8963 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8964 full reference tree and record in ref->ref.
8965 (vn_reference_lookup_3): Pass in original ref to
8966 ao_ref_init_from_vn_reference.
8967 (vn_reference_lookup): Likewise.
8968 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8969 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8970 Handle non-decl bases in the original reference.
8971
8972 2019-06-03 Martin Liska <mliska@suse.cz>
8973
8974 * doc/generic.texi: Remove Java Trees.
8975
8976 2019-06-03 Martin Liska <mliska@suse.cz>
8977
8978 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
8979 returns 0 when operands are equal.
8980
8981 2019-06-03 Richard Biener <rguenther@suse.de>
8982
8983 PR tree-optimization/90716
8984 * tree-loop-distribution.c (destroy_loop): Process blocks in
8985 correct order.
8986
8987 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8988
8989 PR target/88837
8990 * vector-builder.h (vector_builder::count_dups): New method.
8991 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
8992 Declare prototype.
8993 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
8994 (vec_init<mode><Vel>): New pattern.
8995 * config/aarch64/aarch64.c (emit_insr): New function.
8996 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
8997 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
8998 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
8999 (aarch64_sve_expand_vector_init): Define two overloaded functions.
9000
9001 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9002
9003 PR tree-optimization/90681
9004 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
9005 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
9006 special case for SLP, but fail on non-groupped loads.
9007
9008 2019-06-03 Martin Liska <mliska@suse.cz>
9009
9010 * cfg.c (debug): Use TDF_DETAILS for debug and
9011 print edge info only once.
9012
9013 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
9014
9015 PR fortran/90539
9016 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
9017
9018 2019-06-01 Martin Sebor <msebor@redhat.com>
9019
9020 PR middle-end/90694
9021 * tree-pretty-print.c (dump_generic_node): Add parentheses.
9022
9023 2019-05-31 Jan Hubicka <jh@suse.cz>
9024
9025 * alias.c: Include ipa-utils.h.
9026 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
9027 * ipa-devirt.c (prevailing_odr_type): New.
9028 * ipa-utils.h (previaling_odr_type): Declare.
9029
9030 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
9031 Hongtao Liu <hongtao.liu@intel.com>
9032
9033 PR target/89355
9034 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
9035 NOTE_INSN_DELETED_LABEL check.
9036
9037 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
9038 Robert Suchanek <robert.suchanek@mips.com>
9039
9040 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
9041 and 3rd operands of the fmadd/fmsub/maddv builtin.
9042
9043 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9044
9045 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
9046 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9047 on OMP_SIMD if not nested inside of worksharing loop that also has
9048 lastprivate conditional clause for the same decl.
9049 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
9050 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
9051 on simd.
9052 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
9053 on simd construct.
9054 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
9055 on simd construct.
9056 (lower_lastprivate_clauses): Likewise.
9057 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
9058 calling lower_rec_input_clauses.
9059 (lower_omp_for): Likewise.
9060 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
9061 clause on simd construct.
9062 * omp-expand.c (expand_omp_simd): Initialize cond_var if
9063 OMP_CLAUSE__CONDTEMP_ clause is present.
9064
9065 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
9066 ivar and lvar.
9067
9068 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
9069
9070 PR c/43673
9071 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
9072 TEX_D32, TEX_D64 or TEX_D128.
9073
9074 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9075
9076 * match.pd (~(vec?cst1:cst2)): New transformation.
9077
9078 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9079
9080 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
9081 ((size_t)(A /[ex] B) CMP C): New transformation.
9082
9083 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
9084
9085 * doc/md.texi: Document define_insn_and_rewrite.
9086 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
9087 * gensupport.c (queue_elem): Update comment.
9088 (replace_operands_with_dups): New function.
9089 (gen_rewrite_sequence): Likewise.
9090 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
9091 * read-rtl.c (apply_subst_iterator): Likewise.
9092 (add_condition_to_rtx, named_rtx_p): Likewise.
9093 (rtx_reader::read_rtx_operand): Likewise.
9094 * config/aarch64/aarch64-sve.md
9095 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
9096 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
9097 define_insn_and_rewrite.
9098 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
9099 Remove separate define_split.
9100
9101 2019-05-31 Jan Hubicka <jh@suse.cz>
9102
9103 * tree-ssa-alias.c (type_has_components_p): New function.
9104 (aliasing_component_refs_p): Use it.
9105
9106 2019-05-31 Martin Liska <mliska@suse.cz>
9107
9108 * gdbhooks.py: Add const_tree to TreePrinter.
9109
9110 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
9111
9112 PR debug/86964
9113 * common.opt (feliminate-unused-debug-symbols): Enable by default.
9114 * doc/invoke.texi (Debugging Options): Document new default of
9115 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
9116
9117 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9118
9119 PR tree-optimization/90671
9120 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
9121 template_block used to be empty on the first call, don't use
9122 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
9123 seq with bb_seq and set it with set_bb_seq.
9124
9125 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
9126
9127 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
9128
9129 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9130 Michael Meissner <meissner@linux.ibm.com>
9131
9132 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
9133 (prefixed_mem_operand): Likewise.
9134 (non_prefixed_mem_operand): Likewise.
9135 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
9136 prototype.
9137 * config/rs6000/rs6000.c (print_operand_address): Handle
9138 PC-relative addresses.
9139 (mode_supports_prefixed_address_p): New function.
9140 (rs6000_prefixed_address): New function.
9141 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
9142 (SYMBOL_REF_PCREL_P): Likewise.
9143
9144 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9145
9146 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
9147 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
9148 (gimplify_omp_for): If worksharing loop with lastprivate conditional
9149 is nested inside of parallel region, add _condtemp_ clause to both.
9150 * tree-nested.c (convert_nonlocal_omp_clauses,
9151 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
9152 assertion failure.
9153 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
9154 member.
9155 * omp-general.c (omp_extract_for_data): Compute it.
9156 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
9157 (lower_rec_input_clauses): Likewise.
9158 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
9159 clause is already present, just add one further one after it.
9160 (lower_lastprivate_clauses): Handle cond_ptr with array type.
9161 (lower_send_shared_vars): Clear _condtemp_ vars.
9162 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
9163 or section or taskgroup.
9164 * omp-expand.c (determine_parallel_type): Disallow combining only if
9165 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
9166 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
9167 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9168 expand_omp_for_static_chunk, expand_omp_for): Use
9169 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
9170 determine if a special set of API routines are needed and if condtemp
9171 needs to be initialized, while always initialize cond_var if
9172 fd->lastprivate_conditional is non-zero.
9173
9174 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9175 Michael Meissner <meissner@linux.ibm.com>
9176
9177 * config/rs6000/constraints.md (eI): New constraint.
9178 * config/rs6000/predicates.md (cint34_operand): New predicate.
9179 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
9180 (SIGNED_34BIT_OFFSET_P): Likewise.
9181 * doc/md.texi (eI): Document constraint.
9182
9183 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
9184
9185 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
9186
9187 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9188 Michael Meissner <meissner@linux.ibm.com>
9189
9190 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
9191 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
9192 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
9193 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
9194 (OTHER_FUTURE_MASKS): Likewise.
9195 (POWERPC_MASKS): Likewise.
9196 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
9197 specified without -mprefixed-addr or -mcpu=future. Error if
9198 -mprefixed-addr is specified without -mcpu=future.
9199 (rs6000_opt_masks): Add entry for prefixed-addr.
9200 * rs6000.opt (mprefixed-addr): New option.
9201
9202 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
9203
9204 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
9205 cfun->is_thunk check.
9206
9207 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9208
9209 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
9210 to length.
9211
9212 2019-05-30 Martin Liska <mliska@suse.cz>
9213
9214 * gdbinit.in: Fix 'ptc' command. Add trt
9215 that prints TREE_TYPE($).
9216
9217 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
9218 Alan Modra <amodra@gmail.com>
9219
9220 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
9221 calls here...
9222 (rs6000_indirect_call_template_1): ...and here.
9223 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
9224 plt16_ha, plt16_lo, mtctr indirect calls. Use
9225 rs6000_pltseq_enum.
9226 (rs6000_decl_ok_for_sibcall): New function.
9227 (rs6000_function_ok_for_sibcall): Refactor.
9228 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
9229 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
9230 when pcrel. Reorganize.
9231 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
9232 * rs6000.h (rs6000_pltseq_enum): New enum.
9233 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
9234 (*pltseq_tocsave): Use rs6000_pltseq_enum.
9235 (*pltseq_plt16_ha): Likewise.
9236 (*pltseq_plt16_lo): Likewise.
9237 (*pltseq_mtctr): Likewise.
9238 (*pltseq_plt_pcrel): New insn.
9239 (*call_local_aix): Handle @notoc calls.
9240 (*call_value_local_aix): Likewise.
9241 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
9242 (*call_value_nonlocal_aix): Likewise.
9243 (*call_indirect_pcrel): New insn.
9244 (*call_value_indirect_pcrel): Likewise.
9245
9246 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
9247
9248 * config/i386/sse.md (*save_multiple<mode>): Rename from
9249 save_multiple<mode>.
9250 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
9251 (*restore_multiple_and_return<mode>): Rename from
9252 restore_multiple_and_return<mode>.
9253 (*restore_multiple_leave_return<mode>): Rename from
9254 restore_multiple_leave_return<mode>.
9255
9256 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
9257
9258 * config.gcc (rx-*-linux*): New target.
9259 * config/rx/elf.opt: New file.
9260 * config/rx/linux.h: Likewise.
9261 * config/rx/t-linux: Likewise.
9262 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
9263 make it zero.
9264 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
9265 (ASM_APP_OFF): Likewise.
9266 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
9267 moved elsewhere.
9268
9269 2019-05-29 Jan Hubicka <jh@suse.cz>
9270
9271 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
9272 variants are pointer equivalent.
9273
9274 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9275
9276 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
9277 * config/aarch64/aarch64-sve2.md: New file.
9278 (<u>avg<mode>3_floor): New pattern.
9279 (<u>avg<mode>3_ceil): Likewise.
9280 (*<sur>h<addsub><mode>): Likewise.
9281 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
9282 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
9283
9284 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9285
9286 PR bootstrap/90543
9287 * optc-save-gen.awk: In cl_optimization_print, use correct condition
9288 for var_opt_string printing. In cl_optimization_print_diff, print
9289 (null) instead of invoking undefined behavior if one of the
9290 var_opt_string pointers is NULL and use && instead of first || in the
9291 guarding condition. For var_target_other options, handle const char *
9292 target variables similarly to const char * optimize node variables.
9293
9294 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
9295
9296 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
9297 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
9298 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
9299 Add autib1716 and pacib1716 initialisation.
9300 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
9301 for autib1716 and pacib1716.
9302 * config/aarch64/aarch64-protos.h (aarch64_key_type,
9303 aarch64_post_cfi_startproc): Define.
9304 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
9305 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
9306 aarch64_handle_pac_ret_protection): Set default sign key to A.
9307 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
9308 aarch64_expand_prologue): Add check for b-key.
9309 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
9310 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
9311 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
9312 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
9313 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
9314 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
9315 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9316 * config/aarch64/aarch64.md (do_return): Add check for b-key.
9317 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
9318 pauth_hint_num_a with pauth_hint_num.
9319 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
9320 pauth_hint_num_a with pauth_hint_num.
9321 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
9322 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
9323 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9324 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
9325 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
9326 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
9327 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
9328 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9329 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
9330 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
9331 UNSPEC_AUTIA1716 respectively.
9332 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
9333 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
9334 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
9335 * doc/invoke.texi (-mbranch-protection): Add b-key type.
9336 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
9337 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
9338
9339 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9340
9341 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
9342 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
9343 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
9344 explicit clause on combined parallel into implicit shared clause.
9345 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
9346 and firstprivate if the decl has one too from combined parallel to
9347 the worksharing construct.
9348
9349 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
9350 Michael Meissner <meissner@linux.ibm.com>
9351
9352 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
9353
9354 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
9355
9356 * rtl.h (LABEL_REF_P): New #define.
9357
9358 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
9359
9360 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
9361
9362 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9363
9364 * internal-fn.c: Marked mask_load_direct as vectorizable.
9365 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
9366 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
9367 combined even if masks different with allow_slp_p param.
9368 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
9369 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
9370 dissolve SLP-only vectorizable groups when SLP has been discarded.
9371 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
9372 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
9373 masks.
9374 (vect_build_slp_tree_1): Fixed comment typo.
9375 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
9376 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
9377 loads for SLP only.
9378 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
9379 vectorizable.
9380 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
9381
9382 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9383
9384 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
9385 Remove obsolete use_thunk reference.
9386 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9387 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9388 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9389 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9390 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9391 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9392 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9393 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9394 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9395
9396 2019-05-28 Nathan Sidwell <nathan@acm.org>
9397
9398 * tree.h (IDENTIFIER_ANON_P): New.
9399 (anon_aggrname_format, anon_aggname_p): Don't declare.
9400 (make_anon_name): Declare.
9401 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
9402 (hash_tree): Likewise.
9403 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
9404 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
9405 (anon_cnt, make_anon_name): New.
9406
9407 2019-05-28 Martin Liska <mliska@suse.cz>
9408
9409 PR other/90315
9410 * opts-global.c (decode_options): Print help for all
9411 help_option_arguments.
9412 * opts.c (print_help): Add new argument.
9413 (common_handle_option): Remember all values into
9414 help_option_arguments.
9415 * opts.h (print_help): Add new argument.
9416
9417 2019-05-28 Martin Liska <mliska@suse.cz>
9418
9419 PR ipa/90555
9420 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
9421 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
9422 (func_checker::compare_bb): Call compare_loops.
9423
9424 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9425
9426 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9427 on sections construct.
9428 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
9429 construct.
9430 (lower_omp_sections): Handle lastprivate conditional.
9431 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
9432 lastprivate_conditional_map.
9433 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
9434
9435 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
9436 critical, taskgroup and section regions when looking for a region
9437 with non-NULL lastprivate_conditional_map.
9438
9439 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9440
9441 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
9442 (*ix86_gen_sub3): Ditto.
9443 (*ix86_gen_sub3_carry): Ditto.
9444 (*ix86_gen_one_cmpl2): Ditto.
9445 (*ix86_gen_andsp): Ditto.
9446 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
9447 (gen_and2_insn): New static function.
9448 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
9449 Use gen_add3_insn instead of ix86_gen_add3.
9450 (ix86_expand_split_stack_prologue): Use gen_add2_insn
9451 instead of ix86_gen_add3.
9452 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
9453 Use gen_sub3_insn instead of ix86_gen_sub3.
9454 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
9455 instead of ix86_gen_add3.
9456 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
9457 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
9458 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
9459 * config/i386/i386-options.c (ix86_option_override_internal):
9460 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
9461 ix86_gen_one_cmpl2 and ix86_gen_andsp.
9462
9463 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
9464
9465 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
9466 and DW_OP_GNU_const_index opcodes.
9467
9468 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9469
9470 * config/i386/i386.h (STACK_SIZE_MODE): Define.
9471
9472 2019-05-27 Richard Biener <rguenther@suse.de>
9473
9474 PR tree-optimization/90637
9475 * tree-ssa-sink.c (statement_sink_location): Honor the
9476 computed sink location for single-uses.
9477
9478 2019-05-27 Richard Biener <rguenther@suse.de>
9479
9480 PR middle-end/90610
9481 * match.pd (vec_perm): Avoid clobbering op0 when not generating
9482 a bit-insert.
9483
9484 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9485
9486 * config/i386/i386.md (@sub<mode>3_carry): Rename
9487 from sub<mode>3_carry.
9488 (@leave_<mode>): New expander.
9489 (*leave): Rename from leave.
9490 (*leave_rex64): Rename from leave_rex64.
9491 (@monitorx_<mode>): Rename from monitorx_<mode>.
9492 (@clzero_<mode>): Rename from clzero_<mode>.
9493 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
9494 from sse3_monitor_<mode>.
9495 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
9496 (*ix86_gen_leave): Ditto.
9497 (*ix86_gen_monitor): Ditto.
9498 (*ix86_gen_monitorx): Ditto.
9499 (*ix86_gen_clzero): Ditto.
9500 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
9501 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
9502 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
9503 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
9504 Use gen_sse3_monitor instead of ix86_gen_monitor.
9505 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
9506 instead of ix86_gen_monitorx.
9507 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
9508 instead of ix86_gen_clzero.
9509 * config/i386/i386-options.c (ix86_option_override_internal):
9510 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
9511 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
9512
9513 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9514
9515 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
9516 Rename from tls_global_dynamic_64_<mode>.
9517 (@tls_local_dynamic_base_64_<mode>): Rename from
9518 tls_local_dynamic_base_64_<mode>.
9519 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
9520 Remove indirect function.
9521 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
9522 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
9523 instead of ix86_gen_tls_global_dynamic_64.
9524 Use gen_tls_local_dynamic_base_64 instead of
9525 ix86_gen_tls_local_dynamic_base_64.
9526 * config/i386/i386-options.c (ix86_option_override_internal):
9527 Do not initialize ix86_gen_tls_global_dynamic_64 and
9528 ix86_gen_tls_local_dynamic_base_64.
9529
9530 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9531
9532 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
9533 Rename from pro_epilogue_adjust_stack_<mode>_add.
9534 (@pro_epilogue_adjust_stack_sub_<mode>)
9535 Rename from pro_epilogue_adjust_stack_<mode>_sub.
9536 (@allocate_stack_worker_probe_<mode>):
9537 Rename from allocate_stack_worker_probe_<mode>.
9538 (allocate_stack): Use gen_allocate_stack_worker_probe.
9539 (probe_stack): Use gen_probe_stack_1.
9540 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
9541 (@adjust_stack_and_probe_<mode>): Rename from
9542 adjust_stack_and_probe<mode>.
9543 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
9544 (stack_protect_set): Use gen_stack_protect_set_1.
9545 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
9546 (stack_protect_test): Use gen_stack_protect_test_1.
9547 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
9548 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
9549 Remove indirect function.
9550 (*ix86_gen_adjust_stack_and_probe): Ditto.
9551 (*ix86_gen_probe_stack_range): Ditto.
9552 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
9553 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
9554 (ix86_adjust_stack_and_probe_stack_clash): Use
9555 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
9556 (ix86_adjust_stack_and_probe): Ditto.
9557 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
9558 of ix86_gen_probe_stack_range.
9559 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
9560 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
9561 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
9562 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
9563 CODE_FOR_stack_protect_test_{si,di}.
9564 * config/i386/i386-options.c (ix86_option_override_internal):
9565 Do not initialize ix86_gen_allocate_stack_worker,
9566 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
9567
9568 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
9569
9570 * doc/invoke.texi (Link Options): Many editorial changes around
9571 -flinker-output.
9572
9573 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9574
9575 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
9576 pre-Solaris 11 referene and most Studio compiler details.
9577
9578 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
9579
9580 PR target/90530
9581 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
9582 DImode to SImode in floating-point registers on 64-bit target.
9583 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
9584 register_operand in xmpyu patterns.
9585
9586 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9587
9588 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
9589 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
9590 OMP_CLAUSE__REDUCTEMP_.
9591 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9592 OMP_CLAUSE__CONDTEMP_.
9593 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
9594 * tree-pretty-print.c (dump_omp_clause): Likewise.
9595 * tree-nested.c (convert_nonlocal_omp_clauses,
9596 convert_local_omp_clauses): Likewise.
9597 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
9598 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
9599 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
9600 on OMP_FOR.
9601 (gimplify_omp_for): Warn and disable conditional modifier from
9602 lastprivate on loop iterators.
9603 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
9604 member.
9605 * omp-general.c (omp_extract_for_data): Initialize it.
9606 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
9607 member.
9608 (delete_omp_context): Delete it.
9609 (lower_lastprivate_conditional_clauses): New function.
9610 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
9611 handle lastprivate conditional clauses.
9612 (lower_reduction_clauses): Add CLIST argument, emit it into
9613 the critical section if any.
9614 (lower_omp_sections): Adjust lower_lastprivate_clauses and
9615 lower_reduction_clauses callers.
9616 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
9617 to lower_lastprivate_clauses.
9618 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
9619 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
9620 clist into a critical section if not emitted there already by
9621 lower_reduction_clauses.
9622 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
9623 callers.
9624 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
9625 conditional variables.
9626 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
9627 clause is present.
9628 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9629 expand_omp_for_static_chunk): Handle lastprivate conditional.
9630 (expand_omp_for): Handle fd.lastprivate_conditional like
9631 fd.have_reductemp.
9632
9633 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9634
9635 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
9636 kernel does not exit cleanly.
9637 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
9638
9639 2019-05-24 Jason Merrill <jason@redhat.com>
9640
9641 Revert:
9642 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9643
9644 2019-05-24 Richard Biener <rguenther@suse.de>
9645
9646 PR testsuite/90607
9647 * tree-loop-distribution.c (struct partition): Add location
9648 member.
9649 (partition_alloc): Initialize all fields.
9650 (generate_memset_builtin): Use the location recorded in the
9651 partition for the generated call.
9652 (generate_memcpy_builtin): Likewise.
9653 (classify_partition): Record the location of a single store
9654 as location for the partition.
9655
9656 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9657
9658 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
9659 for lo-part.
9660
9661 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
9662
9663 PR target/90588
9664 * common/config/aarch64/aarch64-common.c
9665 (aarch64_rewrite_selected_cpu): Change local temporary variable
9666 type from unsigned long to uint64_t.
9667 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
9668 aarch64_get_extension_string_for_isa_flags): Change declaration to
9669 match new definition by replacing unsigned long with uint64_t.
9670
9671 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9672
9673 PR target/90568
9674 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
9675 gen_attr_type just once instead of 4-7 times. Formatting fixes.
9676 Handle stack_protect_test_<mode> codegen similarly to corresponding
9677 sub instruction.
9678
9679 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
9680
9681 * config/i386/darwin.h: Reject -mfentry*.
9682 * doc/sourcebuild.texi: Document mfentry target support.
9683
9684 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9685
9686 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
9687 Rename to rs6000_global_entry_point_prologue_needed_p. Return
9688 false for PC-relative functions.
9689 (rs6000_output_function_prologue): Change called function name to
9690 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
9691 name,1" for PC-relative functions.
9692 (rs6000_elf_declare_function_name): Change called function name to
9693 rs6000_global_entry_point_prologue_needed_p.
9694
9695 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
9696
9697 PR target/90552
9698 * config/i386/i386.c (gen_rtx_cost):
9699 Use ix86_tune_cost instead of ix86_cost.
9700
9701 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9702 Michael Meissner <meissner@linux.ibm.com>
9703 Segher Boessenkool <segher@kernel.crashing.org>
9704
9705 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
9706 OPTION_MASK_PCREL.
9707 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
9708 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
9709 (rs6000_fndecl_pcrel_p): Likewise.
9710 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
9711 error if -mpcrel is requested without -mcpu=future.
9712 (rs6000_opt_masks): Add entry for pcrel.
9713 (rs6000_fndecl_pcrel_p): New function.
9714 (rs6000_pcrel_p): Likewise.
9715 * config/rs6000/rs6000.opt (mpcrel): New option.
9716 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
9717
9718 2019-05-23 Jan Hubicka <jh@suse.cz>
9719 Martin Liska <mliska@suse.cz>
9720
9721 PR tree-optimization/90576
9722 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
9723 poly_int_tree_p.
9724 (aliasing_component_refs_p): Fix three way size compare conditional;
9725 give up earlier in case we can not decide on equivalence.
9726
9727 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9728 Michael Meissner <meissner@linux.ibm.com>
9729 Segher Boessenkool <segher@kernel.crashing.org>
9730
9731 * config.gcc: Add future cpu.
9732 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
9733 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
9734 #define.
9735 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
9736 (RS6000_CPU): New instantiation for future cpu.
9737 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9738 PROCESSOR_FUTURE.
9739 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
9740 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
9741 * config/rs6000/rs6000-tables.opt: Regenerate.
9742 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
9743 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
9744 (rs6000_machine_from_flags): Handle future cpu.
9745 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
9746 PROCESSOR_POWER9 for now.
9747 (rs6000_adjust_cost): Likewise.
9748 (rs6000_issue_rate): Likewise.
9749 (rs6000_register_move_cost): Likewise.
9750 (rs6000_opt_masks): Add entry for future.
9751 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
9752 (MASK_FUTURE): New #define.
9753 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
9754 * config/rs6000/rs6000.opt (mfuture): New target option.
9755 * doc/invoke.texi (mcpu): Add future cpu.
9756
9757 2019-05-23 Martin Liska <mliska@suse.cz>
9758
9759 PR c++/90587
9760 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
9761 operation points to a temporary (pointed via tree_to_wide_ref)
9762 that is out of scope after the &.
9763
9764 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
9765
9766 PR c++/90592
9767 * doc/extend.texi (Function Names): Add missing word.
9768
9769 2019-05-23 Richard Biener <rguenther@suse.de>
9770
9771 PR tree-optimization/88440
9772 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
9773 at -O[2s]+.
9774 * tree-loop-distribution.c (generate_memset_builtin): Fold the
9775 generated call.
9776 (generate_memcpy_builtin): Likewise.
9777 (distribute_loop): Pass in whether to only distribute patterns.
9778 (prepare_perfect_loop_nest): Also allow size optimization.
9779 (pass_loop_distribution::execute): When optimizing a loop
9780 nest for size allow pattern replacement.
9781
9782 2019-05-23 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR target/90568
9785 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
9786 of xor.
9787
9788 2019-05-23 Martin Liska <mliska@suse.cz>
9789
9790 PR sanitizer/90570
9791 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
9792 expression similarly to gimplify_decl_expr.
9793
9794 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9795
9796 * cse.c (cse_dump_path): s/dump_file/f.
9797
9798 2019-05-22 David Malcolm <dmalcolm@redhat.com>
9799
9800 PR c++/90462
9801 * diagnostic-format-json.cc: Include "selftest.h".
9802 (json_from_expanded_location): Only add "file" key for non-NULL
9803 file strings.
9804 (json_from_location_range): Don't add "start" and "finish"
9805 children if they are UNKNOWN_LOCATION.
9806 (selftest::test_unknown_location): New selftest.
9807 (selftest::test_bad_endpoints): New selftest.
9808 (selftest::diagnostic_format_json_cc_tests): New function.
9809 * json.cc (json::object::get): New function.
9810 (selftest::test_object_get): New selftest.
9811 (selftest::json_cc_tests): Call it.
9812 * json.h (json::object::get): New decl.
9813 * selftest-run-tests.c (selftest::run_tests): Call
9814 selftest::diagnostic_format_json_cc_tests.
9815 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
9816 decl.
9817
9818 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
9819 Andrew Stubbs <amd@codesourcery.com>
9820
9821 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
9822 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
9823 (kernel): Rename to...
9824 (main_kernel): ... this.
9825 (load_image): Load _init_array and _fini_array kernels.
9826 (run): Add argument for kernel to run.
9827 (main): Run init_array_kernel before main_kernel, and
9828 fini_array_kernel after.
9829 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
9830 amdgpu_hsa_kernel attribute on functions.
9831 (gcn_disable_constructors): Delete.
9832 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
9833 * config/gcn/crt0.c (size_t): Define.
9834 (_init_array, _fini_array): New.
9835 (__preinit_array_start, __preinit_array_end,
9836 __init_array_start, __init_array_end,
9837 __fini_array_start, __fini_array_end): Declare weak references.
9838
9839 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
9840
9841 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
9842
9843 2019-05-22 Jason Merrill <jason@redhat.com>
9844
9845 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9846
9847 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
9848
9849 PR target/88483
9850 * config/i386/i386-options.c (ix86_init_machine_status): Set
9851 stack_frame_required to true.
9852 * config/i386/i386.c (ix86_get_frame_size): New function.
9853 (ix86_frame_pointer_required): Replace get_frame_size with
9854 ix86_get_frame_size.
9855 (ix86_compute_frame_layout): Likewise.
9856 (ix86_find_max_used_stack_alignment): Changed to void. Set
9857 stack_frame_required.
9858 (ix86_finalize_stack_frame_flags): Always call
9859 ix86_find_max_used_stack_alignment. Replace get_frame_size with
9860 ix86_get_frame_size.
9861 * config/i386/i386.h (machine_function): Add stack_frame_required.
9862
9863 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
9864
9865 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
9866
9867 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
9868
9869 * common/config/aarch64/aarch64-common.c
9870 (struct aarch64_option_extension, struct processor_name_to_arch,
9871 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
9872 aarch64_contains_opt,
9873 aarch64_get_extension_string_for_isa_flags): Change type of
9874 variables storing flags to uint64_t.
9875 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
9876 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
9877 * config/aarch64/aarch64.c (struct processor,
9878 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
9879 aarch64_validate_march, aarch64_override_options,
9880 aarch64_option_print, aarch64_handle_attr_isa_flags,
9881 aarch64_declare_function_name, aarch64_start_file): Make flag
9882 variables uint64_t.
9883 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
9884 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
9885 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
9886 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
9887 * config/aarch64/driver-aarch64.c
9888 (struct aarch64_arch_extension, struct aarch64_core_data,
9889 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
9890 flag variables uint64_t.
9891 * doc/invoke.texi: Add documentation for new arguments.
9892
9893 2019-05-22 Richard Biener <rguenther@suse.de>
9894
9895 * alias.c (ao_ref_from_mem): Move stack-slot sharing
9896 rewrite ...
9897 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
9898
9899 2019-05-22 Martin Liska <mliska@suse.cz>
9900
9901 PR lto/90500
9902 * doc/extend.texi: Document the change.
9903
9904 2019-05-22 Richard Biener <rguenther@suse.de>
9905
9906 PR tree-optimization/90450
9907 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
9908 (mem_ref_hasher::equal): Check it.
9909 (mem_ref_alloc): Initialize it.
9910 (gather_mem_refs_stmt): Set it.
9911
9912 2019-05-22 Richard Biener <rguenther@suse.de>
9913
9914 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
9915 Add ABS_EXPR.
9916 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
9917 as ABSU_EXPR.
9918
9919 2019-05-22 Alan Modra <amodra@gmail.com>
9920
9921 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
9922 (ASM_CPU_SPEC): Conditionally add -many.
9923 * config/rs6000/rs6000.c (rs6000_machine): New static var.
9924 (rs6000_machine_from_flags, emit_asm_machine): New functions..
9925 (rs6000_file_start): ..extracted from here, and modified to
9926 test all ISA bits.
9927 (rs6000_output_function_prologue): Emit .machine as necessary.
9928
9929 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
9930
9931 PR middle-end/90553
9932 * ira-lives.c (process_bb_node_lives): Consider defs
9933 for a call insn to be die before the call, not after.
9934
9935 * function.c (assign_parm_setup_block): Raise alignment of
9936 stacked parameter only for STRICT_ALIGNMENT targets.
9937
9938 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9939
9940 * config/rs6000/constraints.md (define_register_constraint "wz"):
9941 Delete.
9942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9943 RS6000_CONSTRAINT_wz.
9944 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9945 (rs6000_init_hard_regno_mode_ok): Adjust.
9946 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
9947 * doc/md.texi (Machine Constraints): Adjust.
9948
9949 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9950
9951 * config/rs6000/constraints.md (define_register_constraint "wl"):
9952 Delete.
9953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9954 RS6000_CONSTRAINT_wl.
9955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9956 (rs6000_init_hard_regno_mode_ok): Adjust.
9957 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
9958 * doc/md.texi (Machine Constraints): Adjust.
9959
9960 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9961
9962 * config/rs6000/constraints.md (define_register_constraint "wm"):
9963 Delete.
9964 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9965 RS6000_CONSTRAINT_wm.
9966 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9967 (rs6000_init_hard_regno_mode_ok): Adjust.
9968 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
9969 * doc/md.texi (Machine Constraints): Adjust.
9970
9971 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9972
9973 * config/rs6000/constraints.md (define_register_constraint "wk"):
9974 Delete.
9975 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9976 RS6000_CONSTRAINT_wk.
9977 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9978 (rs6000_init_hard_regno_mode_ok): Adjust.
9979 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
9980 * doc/md.texi (Machine Constraints): Adjust.
9981
9982 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9983
9984 * config/rs6000/constraints.md (define_register_constraint "wj"):
9985 Delete.
9986 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9987 RS6000_CONSTRAINT_wj.
9988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9989 (rs6000_init_hard_regno_mode_ok): Adjust.
9990 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
9991 (VS_64dm): Delete.
9992 * config/rs6000/vsx.md: Ditto.
9993 * doc/md.texi (Machine Constraints): Adjust.
9994
9995 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9996
9997 * config/rs6000/constraints.md (define_register_constraint "wh"):
9998 Delete.
9999 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10000 RS6000_CONSTRAINT_wh.
10001 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10002 (rs6000_init_hard_regno_mode_ok): Adjust.
10003 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
10004 * doc/md.texi (Machine Constraints): Adjust.
10005
10006 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10007
10008 PR target/90547
10009 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10010 Avoid calling gen_lowpart with CONST operand.
10011
10012 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
10013
10014 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
10015 field template_last_to_copy.
10016 (ssa_create_duplicates): Set it, and use it. Attempt to
10017 preserve more debug stmts.
10018
10019 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10020
10021 * config/i386/sse.md (VF1_AVX2): New mode iterator.
10022 (signbit<mode>2): New expander
10023
10024 2019-05-21 James Clarke <jrtc27@jrtc27.com>
10025
10026 PR bootstrap/87338
10027 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
10028 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
10029
10030 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10031
10032 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
10033 %ebx and %ecx bafore calling cpuid with leaf 1 or
10034 non-constant leaf argument.
10035
10036 2019-05-21 Alan Modra <amodra@gmail.com>
10037
10038 PR target/90545
10039 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
10040 power9 direct move cost.
10041
10042 2019-05-21 Richard Biener <rguenther@suse.de>
10043
10044 PR middle-end/90510
10045 * fold-const.c (fold_read_from_vector): New function.
10046 * fold-const.h (fold_read_from_vector): Declare.
10047 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
10048 single-element insert permutations. Canonicalize selector
10049 further and fix issue with last commit.
10050
10051 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10052
10053 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
10054 parameter with default value false to declaration.
10055 (split_edges_for_insertion): New inline function. Wrapper for
10056 split_critical_edges with for_edge_insertion_p = true.
10057 * tree-cfg.c (split_critical_edges): Don't split non-critical
10058 edges if for_edge_insertion_p is false. Fix whitespace.
10059 * tree-ssa-pre.c (pass_pre::execute): Call
10060 split_edges_for_insertion instead of split_critical_edges.
10061 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
10062 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
10063 (pass_data_sink_code): Update function name in the comment.
10064
10065 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10066
10067 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
10068 around is_value_included_in that knows how to handle BIT_AND_EXPR.
10069 (is_pred_expr_subset_of): Use the new function. Handle more cases where
10070 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
10071 positives.
10072
10073 2019-05-21 Martin Liska <mliska@suse.cz>
10074
10075 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
10076 an extra newline.
10077 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
10078 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
10079 vec_lvsr.
10080 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10081 Quote a C type.
10082 (rs6000_function_arg): Likewise.
10083 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
10084 (rs6000_expand_ternop_builtin): Use interval syntax.
10085 (get_element_number): Likewise.
10086 (altivec_expand_builtin): Likewise.
10087 (rs6000_get_function_versions_dispatcher): Quote target_clones.
10088
10089 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10090
10091 PR c++/59813
10092 PR target/90418
10093 * function.h (struct function): Add calls_eh_return member.
10094 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
10095 gimplifying __builtin_eh_return call.
10096 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
10097 to cfun.
10098 (expand_call_inline): Or in src_cfun->calls_eh_return into
10099 dst_cfun->calls_eh_return.
10100 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
10101 cfun->calls_eh_return.
10102 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
10103 * lto-streamer-out.c (output_struct_function_base): Write
10104 calls_eh_return.
10105
10106 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
10107
10108 PR rtl-optimization/43147
10109 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
10110 IX86_BUILTIN_SHUFPD.
10111
10112 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10113
10114 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
10115 (refs_may_alias_p_1): ... here; update stats.
10116 (refs_may_alias_p): Do not update stats here.
10117
10118 2019-05-20 Richard Biener <rguenther@suse.de>
10119
10120 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
10121 doesn't produce pointers.
10122 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
10123 the first operand points to.
10124
10125 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10126
10127 * tree-ssa-alias.c (compare_sizes): New function.
10128 (sompare_type_sizes): New function
10129 (aliasing_component_refs_p): Use it.
10130 (indirect_ref_may_alias_decl_p): Likewise.
10131
10132 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10133
10134 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
10135
10136 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10137
10138 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
10139 (LIBLSAN_EARLY_SPEC): Likewise.
10140 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
10141
10142 2019-05-20 Martin Liska <mliska@suse.cz>
10143
10144 * config/i386/i386.c (ix86_libc_has_fast_function):
10145 Add ATTRIBUTE_UNUSED for the argument.
10146
10147 2019-05-20 Richard Biener <rguenther@suse.de>
10148
10149 * gimple-match-head.c: Include vec-perm-indices.h.
10150 * generic-match-head.c: Likewise.
10151 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
10152 is included.
10153 * fold-const.c (fold_vec_perm): Export.
10154 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
10155 (match.pd): ...here.
10156
10157 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10158
10159 * cfgloop.h (struct loop): Add simdlen member.
10160 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
10161 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
10162 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
10163 as new argument to autovectorize_vector_sizes target hook. If
10164 loop->simdlen, pick up vector size where the vectorization factor
10165 is equal to loop->simd, and if there is none, fall back to the first
10166 successful one.
10167 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
10168 caller.
10169 * omp-low.c (omp_clause_aligned_alignment): Likewise.
10170 * omp-general.c (omp_max_vf): Likewise.
10171 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
10172 * tree-vect-slp.c (vect_slp_bb): Likewise.
10173 * target.def (autovectorize_vector_sizes): Add ALL argument and
10174 document it.
10175 * doc/tm.texi: Adjust documentation.
10176 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
10177 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
10178 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
10179 bool argument.
10180 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
10181 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
10182 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
10183 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
10184 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
10185 preferred vector size is not 512-bit or 256-bit, just put those
10186 unpreferred ones last.
10187
10188 2019-05-20 Martin Liska <mliska@suse.cz>
10189
10190 * targhooks.c (default_libc_has_fast_function): New function.
10191 * targhooks.h (default_libc_has_fast_function): Likewise.
10192
10193 2019-05-20 Martin Liska <mliska@suse.cz>
10194
10195 PR middle-end/90263
10196 * builtins.c (expand_builtin_memory_copy_args): When having a
10197 target with fast mempcpy implementation do now use memcpy.
10198 * config/i386/i386.c (ix86_libc_has_fast_function): New.
10199 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
10200 * doc/tm.texi: Likewise.
10201 * doc/tm.texi.in: Likewise.
10202 * target.def:
10203 * expr.c (emit_block_move_hints): Add 2 new arguments.
10204 * expr.h (emit_block_move_hints): Bail out when libcall
10205 to memcpy would be used.
10206
10207 2019-05-20 Martin Liska <mliska@suse.cz>
10208
10209 * profile-count.c: Add vertical spacing in order
10210 to separate functions.
10211 * profile-count.h: Likewise.
10212
10213 2019-05-20 Martin Liska <mliska@suse.cz>
10214
10215 * profile-count.h: Do not use full qualified
10216 names if possible.
10217 * profile-count.c (profile_count::to_frequency): Likewise.
10218
10219 2019-05-20 Martin Liska <mliska@suse.cz>
10220
10221 * profile-count.h (enum profile_quality): Use capital letters
10222 for enum value names. Use the adjusted names.
10223 * profile-count.c: Use the adjusted names.
10224
10225 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10226
10227 * config/rs6000/constraints.md (define_register_constraint "wH"):
10228 Delete.
10229 (define_register_constraint "wI"): Delete.
10230 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10231 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
10232 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10233 (rs6000_init_hard_regno_mode_ok): Adjust.
10234 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
10235 resp. "d", or with "wa" as appropriate, all with "p8v".
10236 * config/rs6000/vsx.md: Ditto.
10237 * doc/md.texi (Machine Constraints): Adjust.
10238
10239 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10240
10241 * config/rs6000/constraints.md (define_register_constraint "wy"):
10242 Delete.
10243 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10244 RS6000_CONSTRAINT_wy.
10245 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10246 (rs6000_init_hard_regno_mode_ok): Adjust.
10247 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
10248 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
10249 (define_mode_attr Fisa): New.
10250 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
10251 * doc/md.texi (Machine Constraints): Adjust.
10252
10253 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10254
10255 * config/rs6000/constraints.md (define_register_constraint "wu"):
10256 Delete.
10257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10258 RS6000_CONSTRAINT_wu.
10259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10260 (rs6000_init_hard_regno_mode_ok): Adjust.
10261 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
10262 both with "p8v".
10263 (define_mode_attr Fa): Delete.
10264 * config/rs6000/vsx.md: Ditto.
10265 * doc/md.texi (Machine Constraints): Adjust.
10266
10267 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10268
10269 * config/rs6000/constraints.md (define_register_constraint "wJ"):
10270 Delete.
10271 (define_register_constraint "wK"): Delete.
10272 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10273 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
10274 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10275 (rs6000_init_hard_regno_mode_ok): Adjust.
10276 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
10277 Replace "wK" constraint by "wH" with "p9v".
10278 * config/rs6000/vsx.md: Ditto.
10279 * doc/md.texi (Machine Constraints): Adjust.
10280
10281 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10282
10283 * config/rs6000/constraints.md (define_register_constraint "wb"):
10284 Delete.
10285 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10286 RS6000_CONSTRAINT_wb.
10287 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10288 (rs6000_init_hard_regno_mode_ok): Adjust.
10289 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
10290 * config/rs6000/vsx.md: Ditto.
10291 * doc/md.texi (Machine Constraints): Adjust.
10292
10293 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10294
10295 * config/rs6000/constraints.md (define_register_constraint "wo"):
10296 Delete.
10297 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10298 RS6000_CONSTRAINT_wo.
10299 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10300 (rs6000_init_hard_regno_mode_ok): Adjust.
10301 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
10302 * config/rs6000/altivec.md: Ditto.
10303 * doc/md.texi (Machine Constraints): Adjust.
10304
10305 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10306
10307 * config/darwin-c.c (darwin_register_objc_includes): Do not
10308 prepend the sysroot when building gnu-runtime header search
10309 paths.
10310
10311 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10312
10313 * config/darwin.c (darwin_file_end): Use switch_to_section ()
10314 instead of direct output of the asm.
10315
10316 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10317
10318 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
10319 argument to be type bool (was int before).
10320 (rs6000_emit_epilogue): Simplify some code. Declare some variables
10321 at first use. Use type bool for some variables. Fix a theoretical
10322 eh_return bug for svr4.
10323
10324 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10325
10326 * config/rs6000/rs6000.md (isa): New attribute.
10327 (enabled): New attribute.
10328
10329 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
10330
10331 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
10332 assemble_start_function and assemble_end_function.
10333
10334 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
10335
10336 PR middle-end/89433
10337 * omp-general.c (oacc_verify_routine_clauses): Change formal
10338 parameters. Add checking if already marked with an OpenACC
10339 'routine' directive. Adjust all users.
10340
10341 PR middle-end/89433
10342 * omp-general.c (oacc_build_routine_dims): Move some of its
10343 processing into...
10344 (oacc_verify_routine_clauses): ... this new function.
10345 * omp-general.h (oacc_verify_routine_clauses): New prototype.
10346
10347 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10348
10349 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
10350 formating of picbase labels to match other ports.
10351
10352 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10353
10354 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
10355 in the generated code.
10356
10357 2019-05-16 Martin Sebor <msebor@redhat.com>
10358
10359 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
10360 identifiers, keywords, operators, and types in diagnostics. Correct
10361 quoting, spelling, and sentence capitalization issues.
10362 (expand_builtin_atomic_is_lock_free): Same.
10363 (fold_builtin_next_arg): Same.
10364 * cfgexpand.c (expand_one_var): Same.
10365 (tree_conflicts_with_clobbers_p): Same.
10366 (expand_asm_stmt): Same.
10367 (verify_loop_structure): Same.
10368 * cgraphunit.c (process_function_and_variable_attributes): Same.
10369 * collect-utils.c (collect_execute): Same.
10370 * collect2.c (maybe_run_lto_and_relink): Same.
10371 (is_lto_object_file): Same.
10372 (scan_prog_file): Same.
10373 * convert.c (convert_to_real_1): Same.
10374 * dwarf2out.c (dwarf2out_begin_prologue): Same.
10375 * except.c (verify_eh_tree): Same.
10376 * gcc.c (execute): Same.
10377 (eval_spec_function): Same.
10378 (run_attempt): Same.
10379 (driver::set_up_specs): Same.
10380 (compare_debug_auxbase_opt_spec_function): Same.
10381 * gcov-tool.c (unlink_gcda_file): Same.
10382 (do_merge): Same.
10383 (do_rewrite): Same.
10384 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
10385 * gimplify.c (gimplify_asm_expr): Same.
10386 (gimplify_adjust_omp_clauses): Same.
10387 * hsa-gen.c (gen_hsa_addr_insns): Same.
10388 (gen_hsa_insns_for_load): Same.
10389 (gen_hsa_cmp_insn_from_gimple): Same.
10390 (gen_hsa_insns_for_operation_assignment): Same.
10391 (gen_get_level): Same.
10392 (gen_hsa_alloca): Same.
10393 (omp_simple_builtin::generate): Same.
10394 (gen_hsa_atomic_for_builtin): Same.
10395 (gen_hsa_insns_for_call): Same.
10396 * input.c (dump_location_info): Same.
10397 * ipa-devirt.c (compare_virtual_tables): Same.
10398 * ira.c (ira_setup_eliminable_regset): Same.
10399 * lra-assigns.c (lra_assign): Same.
10400 * lra-constraints.c (lra_constraints): Same.
10401 * lto-streamer-in.c (lto_input_mode_table): Same.
10402 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
10403 (merge_and_complain): Same.
10404 (compile_offload_image): Same.
10405 (compile_images_for_offload_targets): Same.
10406 (debug_objcopy): Same.
10407 (run_gcc): Same.
10408 (main): Same.
10409 * opts.c (print_specific_help): Same.
10410 (parse_no_sanitize_attribute): Same.
10411 (print_help): Same.
10412 (handle_param): Same.
10413 * plugin.c (add_new_plugin): Same.
10414 (parse_plugin_arg_opt): Same.
10415 (try_init_one_plugin): Same.
10416 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
10417 operators, and types in diagnostics. Correct quoting and spelling
10418 issues.
10419 * read-rtl-function.c (parse_edge_flag_token): Same.
10420 (function_reader::parse_enum_value): Same.
10421 * reg-stack.c (check_asm_stack_operands): Same.
10422 * regcprop.c (validate_value_data): Same.
10423 * sched-rgn.c (make_pass_sched_fusion): Same.
10424 * stmt.c (check_unique_operand_names): Same.
10425 * targhooks.c (default_target_option_pragma_parse): Same.
10426 * tlink.c (recompile_files): Same.
10427 * toplev.c (process_options): Same.
10428 (do_compile): Same.
10429 * trans-mem.c (diagnose_tm_1): Same.
10430 (ipa_tm_scan_irr_block): Same.
10431 (ipa_tm_diagnose_transaction): Same.
10432 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
10433 format a tree code name in a diagnostic.
10434 (verify_types_in_gimple_min_lval): Same.
10435 (verify_types_in_gimple_reference): Same.
10436 (verify_gimple_call): Same.
10437 (verify_gimple_assign_unary): Same.
10438 (verify_gimple_assign_binary): Same.
10439 (verify_gimple_assign_ternary): Same.
10440 (verify_gimple_assign_single): Same.
10441 (verify_gimple_switch): Same.
10442 (verify_gimple_label): Same.
10443 (verify_gimple_phi): Same.
10444 (verify_gimple_in_seq): Same.
10445 (verify_eh_throw_stmt_node): Same.
10446 (collect_subblocks): Same.
10447 (gimple_verify_flow_info): Same.
10448 (do_warn_unused_result): Same.
10449 * tree-inline.c (expand_call_inline): Same.
10450 * tree-into-ssa.c (update_ssa): Same.
10451 * tree.c (tree_int_cst_elt_check_failed): Same.
10452 (tree_vec_elt_check_failed): Same.
10453 (omp_clause_operand_check_failed): Same.
10454 (verify_type_variant): Same.
10455 (verify_type): Same.
10456 * value-prof.c (verify_histograms): Same.
10457 * varasm.c (assemble_start_function): Same.
10458
10459 2019-05-16 Martin Sebor <msebor@redhat.com>
10460
10461 * config/i386/i386-expand.c (get_element_number): Quote keywords
10462 and other internal names in diagnostics. Adjust other diagnostic
10463 formatting issues noted by -Wformat-diag.
10464 * config/i386/i386-features.c
10465 (ix86_mangle_function_version_assembler_name): Same.
10466 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
10467 * config/i386/i386.c (ix86_function_type_abi): Same.
10468 (ix86_function_ms_hook_prologue): Same.
10469 (classify_argument): Same.
10470 (ix86_expand_prologue): Same.
10471 (ix86_md_asm_adjust): Same.
10472 (ix86_memmodel_check): Same.
10473
10474 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10475
10476 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
10477 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
10478 and fpxx modes.
10479
10480 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
10481
10482 PR target/90497
10483 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
10484 intrinsics without SSE/SSE2/SSSE3.
10485 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
10486 check.
10487 (*mmx_uavgv8qi3): Likewise.
10488
10489 2019-05-17 Richard Biener <rguenther@suse.de>
10490
10491 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
10492 VEC_PERM_EXPR as __VEC_PERM with -gimple.
10493
10494 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
10495
10496 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
10497 vec_sldw insn pattern.
10498
10499 2019-05-17 Richard Biener <rguenther@suse.de>
10500
10501 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
10502
10503 2019-05-17 Martin Liska <mliska@suse.cz>
10504
10505 PR driver/90496
10506 * toplev.c (output_stack_usage): With LTO and sanitizer it
10507 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
10508 has no file location.
10509
10510 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10511
10512 PR c++/90484
10513 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
10514 sz0 is equal to sz1, instead return false in that case.
10515
10516 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
10517 has non-constant expression, force sctx.lane and use two
10518 argument IFN_GOMP_SIMD_LANE instead of single argument.
10519 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
10520 two argument IFN_GOMP_SIMD_LANE without lhs.
10521 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
10522 member.
10523 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
10524 Define.
10525 (LOOP_REQUIRES_VERSIONING): Or in
10526 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
10527 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10528 simd_if_cond.
10529 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
10530 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
10531 from simd if clause if needed.
10532
10533 2019-05-16 Richard Biener <rguenther@suse.de>
10534
10535 * tree-affine.c (expr_to_aff_combination): New function split
10536 out from...
10537 (tree_to_aff_combination): ... here.
10538 (aff_combination_expand): Avoid building a GENERIC tree.
10539
10540 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
10541
10542 * cgraphunit.c (cgraph_node::expand_thunk): Remove
10543 assemble_start_function and assemble_end_function calls.
10544 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
10545 assemble_start_function and assemble_end_function.
10546 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
10547 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
10548 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
10549 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
10550 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
10551 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
10552 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
10553 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
10554 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10555 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10556 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10557 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
10558 Likewise.
10559 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10560 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
10561 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
10562 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
10563 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10564 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10565 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
10566 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
10567 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10568 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
10569 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10570 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10571 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
10572 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
10573 Likewise.
10574 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10575 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10576 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
10577
10578 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
10579
10580 * tree-ssa-alias.c (alias_stats): Add
10581 aliasing_component_refs_p_may_alias and
10582 aliasing_component_refs_p_no_alias.
10583 (dump_alias_stats): Print aliasing_component_refs_p stats.
10584 (aliasing_component_refs_p): Update stats.
10585
10586 2019-05-16 Martin Liska <mliska@suse.cz>
10587
10588 PR lto/90500
10589 * multiple_target.c (expand_target_clones): Do not allow
10590 target_clones being used with a symbol that is an alias.
10591
10592 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
10593
10594 PR tree-optimization/90394
10595 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
10596 positives rather than ICE for cases where (code2 == NE_EXPR
10597 && code1 == BIT_AND_EXPR).
10598
10599 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10600
10601 PR fortran/90329
10602 * tree-core.h (struct tree_decl_common): Document
10603 decl_nonshareable_flag for PARM_DECLs.
10604 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
10605 * calls.c (expand_call): Don't try tail call if caller
10606 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
10607 passed on the stack and callee needs to pass any arguments on the
10608 stack.
10609 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10610 else if instead of series of mutually exclusive ifs. Handle
10611 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
10612 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10613
10614 * lto-streamer.h (LTO_major_version): Bump to 9.
10615
10616 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
10617
10618 PR tree-optimization/90106
10619 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
10620 new parameter as new internal function call, also move it to new
10621 basic block.
10622 (use_internal_fn): Pass internal function call to
10623 shrink_wrap_one_built_in_call_with_conds.
10624
10625 2019-05-15 Jakub Jelinek <jakub@redhat.com>
10626
10627 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
10628 max_vf to 1.
10629 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
10630 safelen_int and set loop->dont_vectorize.
10631
10632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10633
10634 PR target/89021
10635 * config/i386/i386-builtin.def: Enable MMX intrinsics with
10636 SSE/SSE2/SSSE3.
10637 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10638 Likewise.
10639 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
10640 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
10641 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
10642 is defined.
10643
10644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10645
10646 PR target/89021
10647 * config/i386/mmx.md (*vec_dupv2sf): Changed to
10648 define_insn_and_split to support SSE emulation.
10649 (*vec_extractv2sf_0): Likewise.
10650 (*vec_extractv2sf_1): Likewise.
10651 (*vec_extractv2si_0): Likewise.
10652 (*vec_extractv2si_1): Likewise.
10653 (*vec_extractv2si_zext_mem): Likewise.
10654 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
10655 (vec_extractv2sf_1 splitter): Likewise.
10656 (vec_extractv2sfsf): Likewise.
10657 (vec_setv2si): Likewise.
10658 (vec_extractv2si_1 splitter): Likewise.
10659 (vec_extractv2sisi): Likewise.
10660 (vec_setv4hi): Likewise.
10661 (vec_extractv4hihi): Likewise.
10662 (vec_setv8qi): Likewise.
10663 (vec_extractv8qiqi): Likewise.
10664 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10665 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
10666 (vec_extractv2sisi): Likewise.
10667 (vec_extractv4hihi): Likewise.
10668 (vec_extractv8qiqi): Likewise.
10669 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10670 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
10671 (vec_initv2sisi): Likewise.
10672 (vec_initv4hihi): Likewise.
10673 (vec_initv8qiqi): Likewise.
10674 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
10675 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
10676 (vec_setv4hi): Likewise.
10677 (vec_setv8qi): Likewise.
10678
10679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10680
10681 PR target/89021
10682 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
10683 TARGET_MMX_WITH_SSE.
10684 (MMXMODE:*mov<mode>_internal): Likewise.
10685 (MMXMODE:movmisalign<mode>): Likewise.
10686
10687 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
10688
10689 PR target/89021
10690 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
10691 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
10692 (sse2_cvtpd2pi): Ditto.
10693 (sse2_cvttpd2pi): Ditto.
10694 (*vec_concatv2sf_sse4_1): Ditto.
10695 (*vec_concatv2sf_sse): Ditto.
10696 (*vec_concatv2si_sse4_1): Ditto.
10697 (*vec_concatv2si): Ditto.
10698 (*vec_concatv4si_0): Ditto.
10699 (*vec_concatv2di_0): Ditto.
10700
10701 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10702
10703 PR target/89021
10704 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
10705
10706 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10707
10708 PR target/89021
10709 * config/i386/sse.md (ssse3_palignrdi): Changed to
10710 define_insn_and_split to support SSE emulation.
10711
10712 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10713
10714 PR target/89021
10715 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
10716
10717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10718
10719 PR target/89021
10720 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
10721 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10722 SSE emulation.
10723
10724 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10725
10726 PR target/89021
10727 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
10728 or TARGET_MMX_WITH_SSE.
10729 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
10730
10731 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10732
10733 PR target/89021
10734 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
10735
10736 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10737
10738 PR target/89021
10739 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
10740 Changed to define_insn_and_split to support SSE emulation.
10741
10742 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10743
10744 PR target/89021
10745 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
10746 Changed to define_insn_and_split to support SSE emulation.
10747
10748 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10749
10750 PR target/89021
10751 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
10752 (*mmx_<emms>): This.
10753 (mmx_<emms>): New expander.
10754
10755 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10756
10757 PR target/89021
10758 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
10759 support.
10760 (*sse2_umulv1siv1di3): Add SSE2 emulation.
10761
10762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10763
10764 PR target/89021
10765 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
10766
10767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10768
10769 PR target/89021
10770 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
10771
10772 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10773
10774 PR target/89021
10775 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
10776 TARGET_MMX_WITH_SSE.
10777 (*mmx_uavgv4hi3): Add SSE emulation.
10778
10779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10780
10781 PR target/89021
10782 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
10783 and TARGET_MMX_WITH_SSE.
10784 (*mmx_uavgv8qi3): Add SSE emulation.
10785
10786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10787
10788 PR target/89021
10789 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
10790 maskmovdqu for __MMX_WITH_SSE__.
10791
10792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10793
10794 PR target/89021
10795 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
10796 TARGET_MMX and TARGET_MMX_WITH_SSE.
10797 (*mmx_umulv4hi3_highpart): Add SSE emulation.
10798
10799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10800
10801 PR target/89021
10802 * config/i386/mmx.md (mmx_pmovmskb): Changed to
10803 define_insn_and_split to support SSE emulation.
10804
10805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10806
10807 PR target/89021
10808 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
10809 and TARGET_MMX_WITH_SSE.
10810 (mmx_<code>v8qi3): Likewise.
10811 (smaxmin:<code>v4hi3): New.
10812 (umaxmin:<code>v8qi3): Likewise.
10813 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
10814 (umaxmin:*mmx_<code>v8qi3): Likewise.
10815
10816 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10817
10818 PR target/89021
10819 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
10820 TARGET_MMX_WITH_SSE.
10821 (*mmx_pinsrw): Add SSE emulation.
10822
10823 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10824
10825 PR target/89021
10826 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
10827
10828 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10829
10830 PR target/89021
10831 * config/i386/sse.md (sse_cvtpi2ps): Changed to
10832 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10833 SSE emulation.
10834
10835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10836
10837 PR target/89021
10838 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
10839 (sse_cvttps2pi): Likewise.
10840
10841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10842
10843 PR target/89021
10844 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
10845 TARGET_MMX_WITH_SSE.
10846 (mmx_pshufw_1): Add SSE emulation.
10847 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
10848 TARGET_MMX_WITH_SSE to support SSE emulation.
10849
10850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10851
10852 PR target/89021
10853 * config/i386/constraints.md (Yw): New constraint.
10854 * config/i386/mmx.md (*vec_dupv2si): Changed to
10855 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
10856 support SSE emulation.
10857
10858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10859
10860 PR target/89021
10861 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
10862 TARGET_MMX_WITH_SSE.
10863 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10864 support.
10865 (mmx_gt<mode>3): Likewise.
10866
10867 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10868
10869 PR target/89021
10870 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
10871 TARGET_MMX_WITH_SSE. Add SSE support.
10872
10873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10874
10875 PR target/89021
10876 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
10877 TARGET_MMX_WITH_SSE.
10878 (any_logic:<code><mode>3): New.
10879 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
10880 Add SSE support.
10881
10882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10883
10884 PR target/89021
10885 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
10886 TARGET_MMX_WITH_SSE. Add SSE emulation.
10887 (mmx_<shift_insn><mode>3): Likewise.
10888 (ashr<mode>3): New.
10889 (<shift_insn><mode>3): Likewise.
10890
10891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10892
10893 PR target/89021
10894 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
10895 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
10896
10897 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10898
10899 PR target/89021
10900 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
10901 TARGET_MMX_WITH_SSE.
10902 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
10903 SSE support.
10904
10905 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10906
10907 PR target/89021
10908 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
10909 TARGET_MMX_WITH_SSE.
10910 (mulv4hi3): New.
10911 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10912 support.
10913
10914 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10915
10916 PR target/89021
10917 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
10918 (plusminus:mmx_<plusminus_insn><mode>3): Check
10919 TARGET_MMX_WITH_SSE.
10920 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
10921 (<plusminus_insn><mode>3): New.
10922 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
10923 (*mmx_<plusminus_insn><mode>3): Likewise.
10924
10925 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10926
10927 PR target/89021
10928 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
10929 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
10930 prototype.
10931 * config/i386/mmx.m (mmx_punpckhbw): Changed to
10932 define_insn_and_split to support SSE emulation.
10933 (mmx_punpcklbw): Likewise.
10934 (mmx_punpckhwd): Likewise.
10935 (mmx_punpcklwd): Likewise.
10936 (mmx_punpckhdq): Likewise.
10937 (mmx_punpckldq): Likewise.
10938
10939 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10940 Uros Bizjak <ubizjak@gmail.com>
10941
10942 PR target/89021
10943 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
10944 New function.
10945 (ix86_split_mmx_pack): Likewise.
10946 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
10947 New prototype.
10948 (ix86_split_mmx_pack): Likewise.
10949 * config/i386/i386.md (mmx_isa): New.
10950 (enabled): Also check mmx_isa.
10951 * config/i386/mmx.md (any_s_truncate): New code iterator.
10952 (s_trunsuffix): New code attr.
10953 (mmx_packsswb): Removed.
10954 (mmx_packssdw): Likewise.
10955 (mmx_packuswb): Likewise.
10956 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
10957 MMX packsswb/packuswb with SSE2.
10958 (mmx_packssdw): Likewise.
10959 * config/i386/predicates.md (register_mmxmem_operand): New.
10960
10961 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10962
10963 PR target/89021
10964 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10965 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
10966 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
10967 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
10968 (ix86_vector_mode_supported_p): Likewise.
10969 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
10970
10971 2019-05-15 Martin Liska <mliska@suse.cz>
10972
10973 PR middle-end/90478
10974 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
10975 Check for overflow.
10976
10977 2019-05-15 Richard Biener <rguenther@suse.de>
10978
10979 * tree-into-ssa.c (pass_build_ssa::execute): Run
10980 update_address_taken before going into SSA.
10981
10982 2019-05-15 Richard Biener <rguenther@suse.de>
10983
10984 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
10985 as __BIT_FIELD_REF with type with -gimple.
10986
10987 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
10988
10989 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
10990 semantically equivalent branches (left over after prior refactorings).
10991
10992 2019-05-15 Richard Biener <rguenther@suse.de>
10993
10994 PR tree-optimization/88828
10995 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
10996 bogus check.
10997
10998 2019-05-14 Richard Biener <rguenther@suse.de>
10999
11000 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
11001 as __VIEW_CONVERT with -gimple.
11002
11003 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11004
11005 PR target/82920
11006 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
11007 Darwin.
11008
11009 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11010
11011 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
11012 define_split to become a define_insn_and_split.
11013
11014 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11015
11016 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
11017 arguments.
11018 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
11019 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
11020 (sibcall_epilogue): Adjust.
11021 (epilogue): Adjust.
11022
11023 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11024
11025 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
11026 to unsupported ones.
11027 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
11028 * config.host: Likewise.
11029 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
11030 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
11031 __svr4__]: Remove "brand" fallback.
11032 [!KSTAT_DATA_STRING]: Remove.
11033 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
11034 to *-*-solaris2*.
11035 (comdat_group): Likewise.
11036 (set_have_as_tls): Likewise.
11037 (gcc_cv_target_dl_iterate_phdr): Likewise.
11038 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
11039 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
11040 * configure: Regenerate.
11041 * doc/install.texi: Simplify Solaris target triplets.
11042 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
11043 (Specific, *-*-solaris2*): Document Solaris 10 removal.
11044 Remove Solaris 10 references.
11045 Remove obsolete Solaris bug reference.
11046 (Specific, sparc-sun-solaris2.10): Remove.
11047
11048 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
11049
11050 * config/i386/i386.md (any_div): New code iterator.
11051 (paired_mod): New code attribute.
11052 (sgnprefix): Handle DIV and UDIV RTXes.
11053 (u): Ditto.
11054 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
11055 and udivmod<mode>4 patterns using any_div code iterator.
11056 (divmod splitters): Macroize splitters using any_div code iterator.
11057 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
11058 (*udivmodsi4_pow2_zext_2): Ditto.
11059 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
11060 and *udivmod<mode>4_noext patterns using any_div code iterator.
11061 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
11062 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
11063 patterns using any_div code iterator.
11064 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
11065 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
11066 patterns using any_div code iterator.
11067 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
11068 udivmodhiqi3 patterns using any_extend code iterator.
11069
11070 2019-05-14 Richard Biener <rguenther@suse.de>
11071 H.J. Lu <hongjiu.lu@intel.com>
11072
11073 PR tree-optimization/88828
11074 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11075 permuting in a single non-constant element not extracted
11076 from a vector.
11077
11078 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11079
11080 * internal-fn.def (SIGNBIT): New.
11081 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
11082 defined.
11083 (signbitv4sf2): Likewise.
11084
11085 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
11086
11087 PR target/90357
11088 * config/mips/mips.c (mips_split_move): Skip forward SRC into
11089 next insn when the SRC reg is dead.
11090
11091 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
11092
11093 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
11094 (alloc_cand_and_find_basis): Ditto.
11095 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
11096 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
11097 (create_add_imm_cand, slsr_process_cast): Ditto.
11098 (slsr_process_copy, replace_mult_candidate): Ditto.
11099 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
11100 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
11101 (pass_strength_reduction::execute): Init the first NULL element.
11102
11103 2019-05-13 Nathan Sidwell <nathan@acm.org>
11104
11105 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
11106 (run_attempt): Reformat line break.
11107
11108 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
11109
11110 PR target/90418
11111 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
11112 data registers in sibcall epilogues.
11113 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11114
11115 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
11116
11117 PR target/89221
11118 * configure.ac (--enable-frame-pointer):
11119 Disable by default for cygwin and mingw.
11120 * configure: Regenerate.
11121
11122 2019-05-13 Nathan Sidwell <nathan@acm.org>
11123
11124 * dwarf2out.c (breakout_comdat_types): Move comment to correct
11125 piece of code.
11126 (const_ok_for_output_1): Balance parens around #if/#else/#endif
11127 (gen_member_die): Move abstract origin check earlier. Only VARs
11128 can be static_inline_p. Simplify splicing control flow.
11129
11130 2019-05-13 Richard Biener <rguenther@suse.de>
11131
11132 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
11133 VIEW_CONVERT_EXPR.
11134 (vect_build_slp_tree_1): Likewise.
11135
11136 2019-05-13 Richard Biener <rguenther@suse.de>
11137
11138 PR tree-optimization/90402
11139 * tree-if-conv.c (tree_if_conversion): Value number only
11140 the loop body by making the latch an exit of the region
11141 as well.
11142 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
11143 processing PHIs.
11144 (do_rpo_vn): Deal with multiple edges into the entry block
11145 that are not backedges inside the region by skipping PHIs
11146 of the entry block.
11147
11148 2019-05-13 Richard Biener <rguenther@suse.de>
11149
11150 PR tree-optimization/90316
11151 * tree-ssa-pre.c (insert_aux): Fold into ...
11152 (insert): ... this function. Use a RPO walk to reduce the
11153 number of required iterations.
11154
11155 2019-05-13 Martin Liska <mliska@suse.cz>
11156
11157 PR tree-optimization/90416
11158 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
11159 string instead of passing the second part as va_arg argument.
11160
11161 2019-05-13 Martin Liska <mliska@suse.cz>
11162
11163 PR gcov-profile/90380
11164 * gcov.c (handle_cycle): Do not support zero cycle count,
11165 it should not be possible.
11166 (path_contains_zero_cycle_arc): New function.
11167 (circuit): Ignore zero cycle arc counts.
11168
11169 2019-05-13 Martin Liska <mliska@suse.cz>
11170
11171 PR gcov-profile/90380
11172 * gcov.c (enum loop_type): Remove the enum and
11173 the operator.
11174 (handle_cycle): Assert that we should not reach
11175 a negative count.
11176 (circuit): Use loop_found instead of a tri-state loop_type.
11177 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
11178 happen.
11179
11180 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11181
11182 PR target/82920
11183 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
11184 (ix86_output_indirect_branch_via_reg): Use output mechanism
11185 accounting for __USER_LABEL_PREFIX__.
11186 (ix86_output_indirect_branch_via_push): Likewise.
11187 (ix86_output_function_return): Likewise.
11188 (ix86_output_indirect_function_return): Likewise.
11189
11190 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
11191
11192 * doc/md.texi: Document use of code attributes in rtx patterns.
11193 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
11194 * read-rtl.c (find_code): Split out search loops into...
11195 (maybe_find_code): ...this new function.
11196 (check_code_iterator): Make the error message more informative.
11197 (check_code_attribute): New function.
11198 (rtx_reader::rtx_alloc_for_name): Likewise.
11199 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
11200 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
11201 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
11202 <max_opp> directly as an rtx code instead of via a match_operator.
11203 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
11204 (<su>abd<mode>_3): Update accordingly.
11205
11206 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11207
11208 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
11209 is given, print the state of the EH "save world" computation for
11210 Darwin.
11211
11212 2019-05-11 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR c++/59813
11215 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
11216 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11217
11218 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
11219
11220 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
11221 Use pinsrd for TARGET_SSE4_1.
11222 * config/i386/sse.md (movdi_to_sse): Ditto.
11223
11224 2019-05-10 Richard Biener <rguenther@suse.de>
11225
11226 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
11227 (do_rpo_vn): Initialize next_value_id.
11228
11229 2019-05-10 Martin Liska <mliska@suse.cz>
11230
11231 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11232 Fix plural form.
11233
11234 2019-05-10 Jakub Jelinek <jakub@redhat.com>
11235
11236 PR tree-optimization/90385
11237 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
11238 arguments of the exit phis.
11239
11240 PR c++/90383
11241 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
11242 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
11243 id->do_not_fold.
11244 (copy_tree_body_r): Likewise.
11245 (copy_fn): Set id.do_not_fold to true.
11246
11247 2019-05-10 Martin Liska <mliska@suse.cz>
11248
11249 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
11250 Reapply changes from r269790.
11251
11252 2019-05-10 Martin Liska <mliska@suse.cz>
11253
11254 PR middle-end/90340
11255 * doc/invoke.texi: New params.
11256 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
11257 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
11258 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11259 Use it.
11260 * tree-switch-conversion.h (struct jump_table_cluster):
11261 Likewise.
11262
11263 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
11264
11265 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
11266
11267 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
11268
11269 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
11270
11271 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
11272
11273 PR rtl-optimization/88879
11274 * sel-sched.c (sel_target_adjust_priority): Remove assert.
11275
11276 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
11277
11278 PR target/90405
11279 * config/arm/arm.c (callee_saved_reg_p): Move before
11280 thumb_find_work_register.
11281 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
11282 thumb_find_work_register. Only call df_get_live_out once.
11283 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
11284 (thumb_find_work_register): Use
11285 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
11286 algorithms to locate a spare call clobbered reg.
11287
11288 2019-05-09 Martin Liska <mliska@suse.cz>
11289
11290 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
11291 and MAX_EXPR in GIMPLE FE format.
11292
11293 2019-05-09 Martin Liska <mliska@suse.cz>
11294
11295 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
11296 * gimple-pretty-print.c (dump_gimple_bb_header):
11297 Dump BB count.
11298 (pp_cfg_jump): Dump edge probability.
11299 * profile-count.c (profile_quality_as_string): Simplify
11300 with a static array.
11301 (parse_profile_quality): New function.
11302 (profile_count::dump): Simplify with a static array.
11303 (profile_count::from_gcov_type): Add new argument.
11304 * profile-count.h (parse_profile_quality): Likewise.
11305 * predict.h (set_hot_bb_threshold): New.
11306 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11307 New param.
11308 * predict.c (get_hot_bb_threshold): Set from the new param.
11309 (set_hot_bb_threshold): New.
11310
11311 2019-05-09 Richard Biener <rguenther@suse.de>
11312
11313 PR tree-optimization/90395
11314 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
11315 rewrite vector stores that throw internally.
11316
11317 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
11318
11319 * cif-code.def (CHKP): Remove.
11320
11321 PR target/89221
11322 * configure.ac (--enable-frame-pointer): Disable by default for
11323 GNU systems.
11324 * configure: Regenerate.
11325
11326 2019-05-09 Alan Modra <amodra@gmail.com>
11327
11328 PR target/89271
11329 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
11330 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
11331 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
11332 cost for general <-> vsx when direct moves are available.
11333 Cost union classes at minimal cost for any reg in the class.
11334 Correct calculation for moves between vsx, float, and altivec.
11335 Don't return a low cost for moves between special regs. Don't
11336 use hard coded register numbers.
11337 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
11338 (rs6000_ira_change_pseudo_allocno_class): New function.
11339 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
11340 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
11341 alternatives.
11342 (movsi_internal1): Don't disparage vector alternatives.
11343 (mov<mode>_internal): Likewise, excepting alternative that
11344 will be split.
11345 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
11346 we <- b alternative.
11347
11348 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11349
11350 PR c++/59813
11351 PR tree-optimization/89060
11352 * tree-ssa-live.h (live_vars_map): New typedef.
11353 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
11354 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
11355 (struct compute_live_vars_data): New type.
11356 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
11357 live_vars_at_stmt, destroy_live_vars): New functions.
11358 * tree-tailcall.c: Include tree-ssa-live.h.
11359 (live_vars, live_vars_vec): New global variables.
11360 (find_tail_calls): Perform variable life analysis before punting.
11361 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
11362 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
11363 member.
11364 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
11365 Perform variable life analysis to select variables that really need
11366 clobbers added.
11367 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
11368 instead set id->eh_landing_pad_dest and assert it is the same.
11369 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
11370
11371 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
11372 Richard Earnshaw <rearnsha@arm.com>
11373
11374 PR target/88167
11375 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
11376 function.
11377 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
11378 (thumb1_compute_save_core_reg_mask): Don't force a spare work
11379 register if both the epilogue and prologue can use call-clobbered
11380 regs.
11381 (thumb1_unexpanded_epilogue): Use
11382 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
11383 picking temporaries for restoring high regs to match that of the
11384 prologue where possible.
11385 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
11386 the list of work registers. Detect if the return address is still live
11387 at the end of the prologue and avoid using it for a work register if so.
11388 If the return address is not live, add LR to the list of pushable regs
11389 after the first pass.
11390
11391 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11392
11393 PR tree-optimization/90078
11394 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
11395 (INFTY): Increase the value for infinite cost.
11396 (struct comp_cost): Promote type of members to int64_t.
11397 (infinite_cost): Don't set complexity in initialization.
11398 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
11399 overflows to infinite_cost.
11400 (adjust_setup_cost): Promote type of parameter and cost computation
11401 to int64_t.
11402 (struct ainc_cost_data, struct iv_ca): Promote type of member to
11403 int64_t.
11404 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
11405 cost computation to int64_t.
11406 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
11407 int64_t's format specifier in dump.
11408
11409 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11410
11411 PR tree-optimization/90240
11412 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
11413 with respect to scaling factor pre-computed for each basic block.
11414 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
11415 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
11416 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
11417 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
11418 live range for array of loop's basic blocks. Cleanup aux field of
11419 loop's basic blocks.
11420
11421 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11422
11423 PR tree-optimization/90356
11424 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
11425
11426 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
11427
11428 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
11429 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
11430 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
11431 (ix86_handle_option): Handle -mavx512bf16.
11432 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
11433 to extra_headers.
11434 * config/i386/avx512bf16vlintrin.h: New.
11435 * config/i386/avx512bf16intrin.h: New.
11436 * config/i386/cpuid.h (bit_AVX512BF16): New.
11437 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
11438 * config/i386/i386-builtin-types.def: Add new types.
11439 * config/i386/i386-builtin.def: Add new builtins.
11440 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11441 __AVX512BF16__.
11442 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
11443 (ix86_option_override_internal): Handle BF16.
11444 (ix86_valid_target_attribute_inner_p): Ditto.
11445 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
11446 * config/i386/i386-builtin.c (enum processor_features): Add
11447 F_AVX512BF16.
11448 (static const _isa_names_table isa_names_table): Ditto.
11449 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
11450 (PTA_AVX512BF16): Ditto.
11451 * config/i386/i386.opt: Add -mavx512bf16.
11452 * config/i386/immintrin.h: Include avx512bf16intrin.h
11453 and avx512bf16vlintrin.h.
11454 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
11455 avx512f_cvtneps2bf16_<mode><mask_name>,
11456 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
11457 * config/i386/subst.md (mask_half): Add new subst.
11458 * doc/invoke.texi: Document -mavx512bf16.
11459
11460 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11461
11462 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
11463 Delete declaration.
11464 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
11465 (rs6000_debug_legitimize_reload_address): Delete.
11466 (rs6000_legitimize_reload_address_ptr): Delete.
11467 (rs6000_option_override_internal): Adjust.
11468 (mem_operand_gpr): Adjust comment.
11469 (legitimate_lo_sum_address_p): Ditto.
11470 (rs6000_legitimize_reload_address): Delete.
11471 (rs6000_debug_legitimize_reload_address): Delete.
11472 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
11473
11474 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
11475
11476 PR target/89765
11477 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11478 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
11479 to compute vector element selector for both constant and variable
11480 operands.
11481
11482 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11483
11484 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
11485 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
11486 ashrdi3_cvt using SWI48 mode iterator.
11487
11488 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11489
11490 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
11491 (aarch64_<su>abd<mode>_3): Likewise.
11492 (*aarch64_<su>abd<mode>_3): New define_insn.
11493 (<sur>sad<vsi2qi>): New define_expand.
11494 * config/aarch64/iterators.md: Added MAX_OPP attribute.
11495 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
11496 (build_vect_cond_expr): Likewise.
11497
11498 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11499
11500 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
11501 clobbers outside of accessible_reg_set.
11502 * config/i386/i386.c (ix86_conditional_register_usage):
11503 Disable register sets by clearing corresponding bits in
11504 accessible_reg_set. Do not set corresponding bits in fixed_regs,
11505 call_used_regs and don't clear corresponding reg_names array members.
11506
11507 2019-05-07 Richard Biener <rguenther@suse.de>
11508
11509 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
11510 not specified still compute a comp_vectype for invariant
11511 compares.
11512
11513 2019-05-07 Richard Biener <rguenther@suse.de>
11514
11515 PR tree-optimization/90316
11516 * tree-ssa-pre.c (translate_vuse_through_block): When
11517 same_valid is NULL do not bother to search for a virtual
11518 PHI continuation.
11519 (phi_translate_1): When operands changed we cannot keep
11520 the same value-number so do not bother to ask whether
11521 that's possible from translate_vuse_through_block.
11522
11523 2019-05-07 Martin Liska <mliska@suse.cz>
11524
11525 * bitmap.c (bitmap_register): Come up with
11526 alloc_descriptor_max_uid and assign it for
11527 a new bitmap.
11528 (register_overhead): Use get_descriptor as
11529 a descriptor.
11530 (release_overhead): New.
11531 (bitmap_elem_to_freelist): Call it.
11532 (bitmap_elt_clear_from): Likewise.
11533 (bitmap_obstack_free): Likewise.
11534 (bitmap_move): Sensitively release memory.
11535 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
11536 (bitmap_initialize): Initialize alloc_descriptor to zero.
11537 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
11538
11539 2019-05-07 Richard Biener <rguenther@suse.de>
11540
11541 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
11542 we build a SLP node. Remove max_size and limiting.
11543 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
11544
11545 2019-05-07 Richard Biener <rguenther@suse.de>
11546
11547 PR tree-optimization/90316
11548 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
11549 limit by reference.
11550 (walk_non_aliased_vuses): Take walking limit argument.
11551 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
11552 walking if it is reached instead of just counting.
11553 (get_continuation_for_phi): Likewise.
11554 (walk_non_aliased_vuses): Likewise, instead of leaving counter
11555 limiting to the callback.
11556 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
11557 (vn_reference_lookup_3): Likewise.
11558 (vn_reference_lookup_pieces): Likewise.
11559 (vn_reference_lookup): Likewise.
11560 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
11561 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
11562 (avail_exprs_stack::lookup_avail_expr): Likewise.
11563
11564 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
11565
11566 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
11567 for comparaible types in the second direction even if first one
11568 hits incomparable type.
11569
11570 2019-05-07 Richard Biener <rguenther@suse.de>
11571
11572 PR lto/90369
11573 * lto-wrapper.c (debug_objcopy): Use the original filename
11574 including archive offset for the filename used for -save-temps.
11575
11576 2019-05-07 Li Jia He <helijia@linux.ibm.com>
11577
11578 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
11579 detection.
11580
11581 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
11582 Hongtao Liu <hongtao.liu@intel.com>
11583
11584 PR target/89750
11585 PR target/86444
11586 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
11587 Modified, original implementation isn't correct.
11588
11589 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11590
11591 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
11592 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
11593 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
11594 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
11595 (FRAME_POINTER_REGNUM): Change numbering.
11596 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
11597 (alt_reg_names): Adjust.
11598 (rs6000_conditional_register_usage): Don't mark hard register 64 as
11599 fixed.
11600 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11601 (DWARF_FRAME_REGISTERS): Delete.
11602 (DWARF2_FRAME_REG_OUT): Fix whitespace.
11603 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11604 Adjust.
11605 (REG_ALLOC_ORDER): Adjust.
11606 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
11607 (REG_CLASS_CONTENTS): Adjust.
11608 (RETURN_ADDR_RTX): Change comment.
11609 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
11610 instead of 67.
11611 (REGISTER_NAMES): Adjust.
11612 (ADDITIONAL_REGISTER_NAMES): Adjust.
11613 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11614
11615 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11616
11617 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
11618 Delete.
11619 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11620 (DWARF_FRAME_REGISTERS): Adjust.
11621 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11622 Adjust.
11623 (REG_ALLOC_ORDER): Adjust.
11624 (enum reg_class): Delete SPR_REGS.
11625 (REG_CLASS_NAMES): Delete SPR_REGS.
11626 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
11627 (REGISTER_NAMES): Adjust.
11628 (ADDITIONAL_REGISTER_NAMES): Adjust.
11629 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11630 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
11631 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
11632 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
11633 (htm_spr_regno): Delete.
11634 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
11635 argument.
11636 (rs6000_dbx_register_number): Adjust.
11637
11638 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11639
11640 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
11641
11642 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11643
11644 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
11645 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
11646
11647 2019-05-06 Jakub Jelinek <jakub@redhat.com>
11648
11649 PR tree-optimization/88709
11650 PR tree-optimization/90271
11651 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
11652 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
11653 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
11654 variable.
11655 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
11656 of the store merging group is larger than
11657 PARAM_STORE_MERGING_MAX_SIZE parameter.
11658 (split_group): Add bzero_first argument. If set, always emit first
11659 the first store which must be = {} of the whole area and then for the
11660 rest of the stores consider all zero bytes as paddings.
11661 (imm_store_chain_info::output_merged_store): Check if first store
11662 is = {} of the whole area and if yes, determine which setting of
11663 bzero_first for split_group gives smaller number of stores. Adjust
11664 split_group callers.
11665 (lhs_valid_for_store_merging_p): Allow decls.
11666 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
11667 no elts.
11668 (pass_store_merging::process_store): Likewise.
11669
11670 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
11671
11672 PR target/89424
11673 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11674 handling of V1TImode.
11675
11676 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
11677
11678 PR target/89221
11679 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
11680 and enable_frame_pointer ...
11681 * configure.ac: ... here. Update help strings for
11682 --enable-frame-pointer.
11683 * configure: Regenerate.
11684 * config/i386/i386-options.c (ix86_option_override_internal): Remove
11685 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
11686 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
11687 (USE_X86_64_FRAME_POINTER): Ditto.
11688
11689 2019-05-06 Martin Liska <mliska@suse.cz>
11690
11691 * config.gcc: Append to target_gtfiles and fix indentation.
11692
11693 2019-05-06 Richard Biener <rguenther@suse.de>
11694
11695 PR tree-optimization/90358
11696 * tree-vect-stmts.c (get_group_load_store_type): Properly
11697 detect unused upper half of load.
11698 (vectorizable_load): Likewise.
11699
11700 2019-05-06 Richard Biener <rguenther@suse.de>
11701
11702 PR tree-optimization/88828
11703 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
11704 (simplify_vector_constructor): ...here. Handle constants in
11705 the constructor.
11706
11707 2019-05-06 Richard Biener <rguenther@suse.de>
11708
11709 PR tree-optimization/90328
11710 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
11711 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
11712 is valid in the loop nest before using it.
11713 (initialize_data_dependence_relation): Adjust.
11714 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
11715 loop as loop-nest to dr_may_alias_p.
11716
11717 2019-05-06 Richard Biener <rguenther@suse.de>
11718
11719 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
11720
11721 2019-05-06 Richard Biener <rguenther@suse.de>
11722
11723 PR tree-optimization/90316
11724 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
11725 compute target on demand.
11726 (get_continuation_for_phi): Remove code walking stmts to
11727 get to a target virtual operand which could end up being
11728 quadratic.
11729
11730 2019-05-06 Martin Liska <mliska@suse.cz>
11731
11732 PR sanitizer/90312
11733 * config/i386/i386-options.c (ix86_option_override_internal): Error only
11734 when -mabi is selected to a non-default version.
11735
11736 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
11737 Martin Liska <mliska@suse.cz>
11738
11739 * Makefile.in: Add lto-dump.texi.
11740 * cgraph.h: Add new functions get_visibility_string and
11741 get_symtab_type_string.
11742 * doc/gcc.texi: Include lto-dump section.
11743 * doc/lto-dump.texi: New file.
11744 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
11745 (parse_dump_option): Factor out this function.
11746 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
11747 (parse_dump_option): Export the function.
11748 * symtab.c (symtab_node::get_visibility_string): New function.
11749 (symtab_node::get_symtab_type_string): Likewise.
11750
11751 2019-05-06 Martin Liska <mliska@suse.cz>
11752
11753 * config/i386/i386-builtins.c: New file.
11754 * config/i386/i386-builtins.h: New file.
11755 * config/i386/i386-expand.c: New file.
11756 * config/i386/i386-expand.h: New file.
11757 * config/i386/i386-features.c: New file.
11758 * config/i386/i386-features.h: New file.
11759 * config/i386/i386-options.c: New file.
11760 * config/i386/i386-options.h: New file.
11761 * config.gcc: Add new files into extra_objs and
11762 target_gtfiles.
11763 * config/i386/i386.c: Split content of the file
11764 into newly introduced files.
11765 * config/i386/i386.h: Declare common variables
11766 and macros.
11767 * config/i386/t-i386: Define dependencies for new files.
11768
11769 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
11770
11771 PR target/89400
11772 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
11773 Restrict 'all' variant to 32-bit configurations.
11774 (unaligned_loadhiu): Likewise.
11775 (unaligned_storehi): Likewise.
11776 (unaligned_storesi): Likewise.
11777 (unaligned_loadhis): Disable when compiling for thumb1.
11778
11779 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
11780
11781 PR tree-optimization/90269
11782 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11783 Ignore clobbers.
11784
11785 2019-05-03 Martin Liska <mliska@suse.cz>
11786
11787 * hash-map.h: Add is_empty function.
11788 * hash-set.h: Likewise.
11789 * hash-table.h: Likewise.
11790 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
11791 elements () == 0 (and similar usages).
11792 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
11793 * gimplify.c (gimplify_bind_expr): Likewise.
11794 (gimplify_switch_expr): Likewise.
11795 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
11796 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
11797 * postreload-gcse.c (dump_hash_table): Likewise.
11798 (gcse_after_reload_main): Likewise.
11799 * predict.c (combine_predictions_for_bb): Likewise.
11800 * tree-parloops.c (reduction_phi): Likewise.
11801 (separate_decls_in_region): Likewise.
11802 (transform_to_exit_first_loop): Likewise.
11803 (gen_parallel_loop): Likewise.
11804 (gather_scalar_reductions): Likewise.
11805 (try_create_reduction_list): Likewise.
11806 * var-tracking.c (dump_vars): Likewise.
11807 (emit_notes_for_changes): Likewise.
11808 (vt_emit_notes): Likewise.
11809
11810 2019-05-03 Richard Biener <rguenther@suse.de>
11811
11812 PR tree-optimization/90316
11813 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
11814 before running VN.
11815
11816 2019-05-03 Richard Biener <rguenther@suse.de>
11817
11818 * tree-vect-stmts.c (get_group_load_store_type): Avoid
11819 peeling for gaps by loading only lower halves of vectors
11820 if possible.
11821 (vectorizable_load): Likewise.
11822
11823 2019-05-03 Richard Biener <rguenther@suse.de>
11824
11825 PR middle-end/89518
11826 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
11827
11828 2019-05-03 Richard Biener <rguenther@suse.de>
11829
11830 PR middle-end/87314
11831 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
11832 Handle STRING_CST vs DECL or STRING_CST.
11833
11834 2019-05-03 Richard Biener <rguenther@suse.de>
11835
11836 PR tree-optimization/88963
11837 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
11838 vector loads feeding only BIT_FIELD_REFs to component
11839 loads. Rewrite stores fed by CONSTRUCTORs to component
11840 stores.
11841
11842 2019-05-03 Jakub Jelinek <jakub@redhat.com>
11843
11844 * opts.h (finish_options): Remove lang_mask argument.
11845 (print_help, help_option_argument): Declare.
11846 * opts.c (print_help): Remove forward declaration, no longer static.
11847 (finish_options): Remove lang_mask argument, don't call print_help
11848 here.
11849 * opts-global.c (decode_options): Adjust finish_option caller, call
11850 print_help here.
11851
11852 PR tree-optimization/90303
11853 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
11854 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
11855
11856 2019-05-03 Richard Biener <rguenther@suse.de>
11857
11858 PR tree-optimization/89698
11859 * gimple-fold.c (canonicalize_constructor_val): Early out
11860 for constants, handle unfolded INTEGER_CSTs as they appear in
11861 C++ virtual table ctors.
11862
11863 2019-05-03 Richard Biener <rguenther@suse.de>
11864
11865 * passes.c (execute_function_todo): Remove dead code.
11866
11867 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11868
11869 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
11870 the internal register number, for any "real" register.
11871
11872 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11873
11874 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
11875 correct numbers for TFHAR, TFIAR, TEXASR.
11876
11877 2019-05-02 Richard Biener <rguenther@suse.de>
11878
11879 PR tree-optimization/89653
11880 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
11881 update-address-taken before the pass.
11882 * passes.def (pass_tree_loop_init): Put comment before it.
11883
11884 2019-05-02 Richard Biener <rguenther@suse.de>
11885
11886 PR tree-optimization/89509
11887 * tree-ssa-structalias.c (compute_dependence_clique): Look
11888 at the first subvar when determining whether it is restrict.
11889
11890 2019-05-02 Richard Biener <rguenther@suse.de>
11891
11892 PR tree-optimization/90273
11893 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
11894 useless debug stmts.
11895
11896 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11897
11898 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
11899 ACLE branch.
11900 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
11901 SVE ACLE branch.
11902 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
11903 VEC_COND_EXPR be inserted to emulate a conditional internal function.
11904 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
11905 (vectorizable_reduction): Use the functions above to vectorize in a
11906 fully masked loop codes that don't have a conditional internal
11907 function.
11908
11909 2019-05-02 Martin Liska <mliska@suse.cz>
11910
11911 * cgraphclones.c: Call valid_attribute_p with 1 for
11912 target_clone.
11913 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
11914 it's for target attribute.
11915 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
11916 Add new boolean argument.
11917 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11918 Likewise.
11919 (ix86_valid_target_attribute_tree): Pass target_clone_attr
11920 to ix86_valid_target_attribute_inner_p.
11921 (ix86_valid_target_attribute_p): Pass flags argument to
11922 ix86_valid_target_attribute_inner_p.
11923 (get_builtin_code_for_version): Use 0 as it's target attribute.
11924
11925 2019-05-02 Martin Liska <mliska@suse.cz>
11926
11927 * gcc.c (process_command): Add dummy file only
11928 if n_infiles == 0.
11929 * opts-global.c (decode_options): Pass lang_mask.
11930 * opts.c (print_help): New function.
11931 (finish_options): Print --help if help_option_argument
11932 is set.
11933 (common_handle_option): Factor out content of OPT__help_
11934 into print_help.
11935 * opts.h (finish_options): Add new argument.
11936
11937 2019-05-02 Martin Liska <mliska@suse.cz>
11938
11939 PR target/88809
11940 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
11941 With -minline-all-stringops use inline expansion using 4B loop.
11942 * doc/invoke.texi: Document the change of
11943 -minline-all-stringops.
11944
11945 2019-05-01 Jeff Law <law@redhat.com>
11946
11947 PR tree-optimization/88797
11948 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
11949 PHI feeds a conditional on the RHS of an assignment.
11950
11951 2019-04-30 Andrew Waterman <andrew@sifive.com>
11952 Jim Wilson <jimw@sifive.com>
11953
11954 * config/riscv/constraints.md (L): New.
11955 * config/riscv/predicates.md (lui_operand): New.
11956 (sfb_alu_operand): New.
11957 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
11958 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
11959 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
11960 * config/riscv/risc.md (type): Add sfb_alu.
11961 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
11962 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
11963 (branch_zero<mode>): Delete.
11964 (mov<mode>cc): New.
11965 (mov<GPR:mode><X:mode>cc): Likewise.
11966 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
11967
11968 2019-04-30 Nathan Sidwell <nathan@acm.org>
11969
11970 * tree.h (MARK_TS_EXP): New.
11971
11972 2019-04-30 Martin Liska <mliska@suse.cz>
11973
11974 * opts.c (enable_warning_as_error): Provide hints
11975 for unknown options.
11976
11977 2019-04-30 Martin Liska <mliska@suse.cz>
11978
11979 PR debug/90288
11980 * doc/invoke.texi: Add missing dash for gas-locview-support
11981 and gno-as-locview-support.
11982
11983 2019-04-30 Jakub Jelinek <jakub@redhat.com>
11984
11985 PR target/89093
11986 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
11987 whitespace at the start of target attribute string.
11988
11989 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11990
11991 PR target/86538
11992 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
11993 Define __ARM_FEATURE_ATOMICS.
11994
11995 2019-04-30 Martin Liska <mliska@suse.cz>
11996
11997 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
11998 into built_in_function enum. Remove code for endp == 2 and
11999 use BUILT_IN_* constants.
12000 (gimple_fold_builtin): Call the function with fcode.
12001
12002 2019-04-30 Martin Liska <mliska@suse.cz>
12003
12004 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
12005 DECL_FUNCTION_CODE into ix86_builtins enum before
12006 the switch statement.
12007
12008 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12009
12010 PR tree-optimization/89475
12011 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
12012 calls.
12013
12014 2019-04-30 Martin Liska <mliska@suse.cz>
12015
12016 PR translation/90274
12017 * opts.c (print_filtered_help): Wrap string in _(...).
12018
12019 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
12020
12021 PR tree-optimization/90240
12022 Revert:
12023 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12024
12025 PR tree-optimization/90078
12026 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12027 checks for infinite_cost overflow.
12028
12029 2019-04-29 Jeff Law <law@redhat.com>
12030
12031 * passes.def: Move -Wrestrict pass after copy propagation.
12032
12033 2019-04-29 Maya Rashish <coypu@sdf.org>
12034
12035 * config.gcc (default_gnu_indirect_function): Default to yes
12036 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
12037 sparc*-*-netbsd*, x86_64-*-netbsd*.
12038
12039 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
12040
12041 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
12042 where cond2 is NE_EXPR.
12043 (is_value_included_in): Update comment.
12044
12045 2019-04-29 Richard Biener <rguenther@suse.de>
12046
12047 PR tree-optimization/90278
12048 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
12049 EH on comparison simplification.
12050
12051 2019-04-29 Jason Merrill <jason@redhat.com>
12052
12053 PR c++/82081 - tail call optimization breaks noexcept
12054 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
12055 nothrow function to a might-throw function into a tail call.
12056
12057 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
12058
12059 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
12060 (DDR_INNER_LOOP): Likewise.
12061 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
12062 (initialize_data_dependence_relation): Likewise.
12063 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
12064
12065 2019-04-29 Jakub Jelinek <jakub@redhat.com>
12066
12067 PR rtl-optimization/90257
12068 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
12069 return value.
12070
12071 Revert the revert:
12072 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12073
12074 PR target/90178
12075 Revert:
12076 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12077
12078 Revert the revert:
12079 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12080
12081 Revert:
12082 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12083
12084 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12085
12086 2019-04-29 Richard Biener <rguenther@suse.de>
12087
12088 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
12089 rhs issue a reset.
12090
12091 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
12092
12093 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
12094 varasm.h, and netbsd-protos.h.
12095
12096 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
12097
12098 PR target/89261
12099 * config/i386/i386-protos.h (ix86_data_alignment): Change
12100 the second argument type to unsigned int.
12101 * config/i386/i386.c (ix86_data_alignment): Change "align"
12102 argument type to unsigned int.
12103
12104 2019-04-27 Martin Liska <mliska@suse.cz>
12105
12106 PR middle-end/90258
12107 * opt-suggestions.c (option_proposer::build_option_suggestions):
12108 When get_valid_option_values returns empty values, add the
12109 misspelling candidate.
12110
12111 2019-04-26 Jim Wilson <jimw@sifive.com>
12112
12113 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
12114 parameter.
12115 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
12116 Pass orig_mode to riscv_build_integer.
12117 (riscv_split_integer): Pass mode to riscv_move_integer.
12118 (riscv_legitimize_const_move): Likewise.
12119 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
12120 promoted_mode. Replace force_reg call with code to load constant into
12121 promoted reg and then subreg it for the store.
12122 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
12123 riscv_move_integer.
12124
12125 2018-04-26 Eugene Sharygin <eush@ispras.ru>
12126
12127 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
12128 corrupt codes.
12129
12130 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
12131
12132 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
12133 commentary about the encoding of precision.
12134
12135 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
12136
12137 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
12138 * config/i386/t-freebsd64: New file.
12139 * config.gcc: Add the t-freebsd64 for multilib support.
12140
12141 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
12142
12143 * doc/extend.texi (vector_size): Add missing comma after @xref.
12144
12145 2019-04-25 Jakub Jelinek <jakub@redhat.com>
12146
12147 * BASE-VER: Set to 10.0.0.
12148
12149 2019-04-25 Richard Biener <rguenther@suse.de>
12150
12151 PR middle-end/89765
12152 * gimplify.c (gimplify_expr): Avoid turning a lvalue
12153 VIEW_CONVERT_EXPR into one operating on an rvalue.
12154
12155 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
12156
12157 PR target/89929
12158 * config/i386/i386.c (feature_priority): Moved to file scope.
12159 (processor_features): Likewise.
12160 (processor_model): Likewise.
12161 (_arch_names_table): Likewise.
12162 (arch_names_table): Likewise.
12163 (_feature_list): Removed.
12164 (feature_list): Likewise.
12165 (_isa_names_table): Moved to file scope. Add priority.
12166 (isa_names_table): Likewise.
12167 (get_builtin_code_for_version): Replace feature_list with
12168 isa_names_table. Update error message for P_ZERO priority.
12169
12170 2019-04-25 Richard Biener <rguenther@suse.de>
12171
12172 * tree-pass.h (make_pass_phi_only_cprop): Remove.
12173 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
12174
12175 2019-04-24 Jeff Law <law@redhat.com>
12176
12177 PR tree-optimization/90037
12178 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
12179 * passes.def: Replace all instance of phi-only cprop with the
12180 lattice propagator. Move propagation pass from after erroneous
12181 path isolation to before erroneous path isolation.
12182 * tree-ssa-phionlycprop.c: Remove.
12183
12184 2019-04-24 Richard Biener <rguenther@suse.de>
12185
12186 PR middle-end/90213
12187 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
12188 by size and BITS_PER_UNIT on poly-wide-ints.
12189
12190 2019-04-25 Richard Biener <rguenther@suse.de>
12191
12192 PR middle-end/90194
12193 * match.pd: Add pattern to simplify view-conversion of an
12194 empty constructor.
12195
12196 2019-04-24 Clement Chigot <clement.chigot@atos.net>
12197
12198 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
12199 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
12200 for Go on 32 bit AIX.
12201 * config/rs6000/aix72.h: Likewise.
12202
12203 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12204
12205 PR target/90193
12206 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
12207 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
12208
12209 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
12210
12211 PR target/89952
12212 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
12213 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
12214 for restored hard frame pointer.
12215 (s390_sched_dependencies_evaluation): Implement new target hook.
12216 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
12217
12218 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
12219
12220 * config/arc/arc-options.def: Fix typos and spelling mistakes.
12221 * config/arc/arc.c (arc_init): Cleanup warning message.
12222 (arc_override_options): Likewise.
12223
12224 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12225
12226 PR target/90187
12227 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
12228 a register if both if_true and if_false are MEMs.
12229
12230 PR tree-optimization/90208
12231 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
12232 after labels of new_bb, not before them.
12233
12234 PR tree-optimization/90211
12235 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
12236 which are not SSA_NAMEs.
12237
12238 2018-04-23 Sudakshina Das <sudi.das@arm.com>
12239
12240 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
12241 AArch64.
12242 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
12243
12244 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12245
12246 PR rtl-optimization/87979
12247 * modulo-sched.c (sms_schedule): Start ii value "mii" should
12248 not equal zero.
12249
12250 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12251
12252 PR rtl-optimization/84032
12253 * modulo-sched.c (ps_insn_find_column): Change condition so that
12254 branch will always be the last insn in a row inside partial
12255 schedule.
12256
12257 2019-04-23 Richard Biener <rguenther@suse.de>
12258
12259 PR debug/90131
12260 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
12261 dest_single_pred_p argument.
12262 (remove_forwarder_block): Adjust.
12263 (remove_forwarder_block_with_phi): Likewise.
12264
12265 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12266 Bernd Edlinger <bernd.edlinger@hotmail.de>
12267 Jakub Jelinek <jakub@redhat.com>
12268
12269 PR target/89093
12270 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
12271 if used with general-regs-only.
12272 (arm_conditional_register_usage): Don't add non-general regs if
12273 general-regs-only.
12274 (arm_valid_target_attribute_rec): Handle general-regs-only.
12275 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
12276 general-regs-only.
12277 (TARGET_HARD_FLOAT_SUB): Define.
12278 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
12279 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
12280 (TARGET_REALLY_IWMMXT2): Likewise.
12281 * config/arm/arm.opt: Add -mgeneral-regs-only.
12282 * doc/extend.texi: Document ARM general-regs-only target.
12283 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
12284
12285 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12286
12287 PR tree-optimization/90078
12288 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12289 checks for infinite_cost overflow.
12290
12291 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12292
12293 PR tree-optimization/90021
12294 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
12295 and check univariate against it.
12296 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
12297 * tree-data-ref.c (add_other_self_distances): Pass new argument.
12298
12299 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12300
12301 PR target/90178
12302 Revert:
12303 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12304
12305 Revert the revert:
12306 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12307
12308 Revert:
12309 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12310
12311 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12312
12313 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
12314
12315 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
12316 names using operand format, rather than hard-wired.
12317 (speculation_barrier): Likewise.
12318
12319 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
12320
12321 PR tree-optimization/88055
12322 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
12323 (gen_one_condition): Use it if !HONOR_NANS.
12324
12325 2019-04-19 Jakub Jelinek <jakub@redhat.com>
12326
12327 PR middle-end/90139
12328 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
12329 assign_temp instead of gen_reg_rtx.
12330
12331 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
12332
12333 PR translation/90118
12334 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12335 Add missing space before %<.
12336
12337 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
12338
12339 PR rtl-optimization/87871
12340 * ira-lives.c (make_object_dead): Don't add conflicts to
12341 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
12342
12343 2019-04-18 Martin Sebor <msebor@redhat.com>
12344
12345 PR middle-end/89797
12346 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
12347 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
12348 assuming type size fits in SHWI.
12349
12350 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
12351
12352 PR ipa/85051
12353 * ipa-inline.c (flatten_function): New parameter UPDATE.
12354 (ipa_inline, early_inliner): Use it.
12355
12356 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12357
12358 * fold-const.c (int_const_binop): Return early on failure.
12359
12360 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12361
12362 PR middle-end/85164
12363 * combine.c (force_int_to_mode): Cast the argument rather than
12364 the result of known_alignment.
12365 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
12366
12367 2019-04-18 Richard Biener <rguenther@suse.de>
12368
12369 PR debug/90131
12370 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
12371 out from ...
12372 (remove_forwarder_block): ... here.
12373 (remove_forwarder_block_with_phi): Also move debug stmts here.
12374
12375 2019-04-18 Jakub Jelinek <jakub@redhat.com>
12376
12377 PR translation/79183
12378 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
12379 inform where appropriate.
12380
12381 2019-04-18 Richard Biener <rguenther@suse.de>
12382
12383 * tree.c (get_qualified_type): Put found type variants at the
12384 head of the variant list.
12385
12386 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12387
12388 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
12389
12390 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
12391
12392 PR target/90125
12393 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
12394 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
12395 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
12396 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
12397 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
12398
12399 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
12400
12401 * ira-conflicts.c (print_allocno_conflicts): Always print something,
12402 even for allocno's with no conflicts.
12403 (print_conflicts): Print an extra newline.
12404
12405 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12406
12407 * auto-inc-dec.c (attempt_change): Set the alignment of the
12408 temporary memory to that of the original.
12409
12410 2019-04-17 Joao Moreira <jmoreira@suse.de>
12411
12412 * targhooks.c (default_print_patchable_function_entry): Emit
12413 __patchable_function_entries section with writable flags to allow
12414 relocation resolution.
12415
12416 2019-04-17 Jonny Grant <jg@jguk.org>
12417
12418 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
12419
12420 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12421
12422 PR middle-end/90095
12423 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
12424 on lowpart SUBREGs.
12425
12426 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
12427
12428 * config/arc/arc.c (arc_init): Format diagnostic string.
12429 (arc_override_options): Likewise.
12430 (check_if_valid_regno_const): Likewise.
12431 (arc_reorg): Likewise.
12432
12433 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12434
12435 PR target/17108
12436 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
12437 name.
12438 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
12439 name.
12440 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
12441 (*movdi_update1): Use Pmode.
12442 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
12443 (movdi_<mode>_update_stack): Rename to ...
12444 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
12445 use Pmode.
12446 (*movsi_update1): Use Pmode.
12447 (*movsi_update2): Use Pmode.
12448 (movsi_update): Rename to ...
12449 (movsi_<mode>_update): ... this. Use Pmode.
12450 (movsi_update_stack): Fix condition.
12451 (*movhi_update1): Use Pmode. Fix argument to
12452 avoiding_indexed_address_p.
12453 (*movhi_update2): Ditto.
12454 (*movhi_update3): Ditto.
12455 (*movhi_update4): Ditto.
12456 (*movqi_update1): Ditto.
12457 (*movqi_update2): Ditto.
12458 (*movqi_update3): Ditto.
12459 (*movsf_update1, *movdf_update1): Merge, rename to...
12460 (*mov<mode>_update1): This. Use Pmode. Fix argument to
12461 avoiding_indexed_address_p. Add "size" attribute.
12462 (*movsf_update2, *movdf_update2): Merge, rename to...
12463 (*mov<mode>_update2): This. Ditto.
12464 (*movsf_update3): Use Pmode. Fix argument to
12465 avoiding_indexed_address_p.
12466 (*movsf_update4): Ditto.
12467 (allocate_stack): Simplify condition. Adjust pattern names.
12468
12469 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12470
12471 PR target/89093
12472 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
12473 whitespace at the start of target attribute string.
12474
12475 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
12476
12477 PR target/84369
12478 * config/rs6000/power9.md: Add store forwarding bypass.
12479
12480 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
12481
12482 PR debug/89528
12483 * valtrack.c (dead_debug_insert_temp): Reset debug references
12484 to the return value of a call being removed.
12485
12486 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12487
12488 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
12489 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
12490 implement target hook.
12491 (arc_memory_move_cost): New function.
12492 (TARGET_REGISTER_MOVE_COST): Define.
12493 (TARGET_MEMORY_MOVE_COST): Likewise.
12494 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
12495 (MEMORY_MOVE_COST): Likewise.
12496
12497 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12498
12499 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
12500 (sibcall_value_insn): Likewise.
12501 * config/arc/constraints.md (Rs5): Remove.
12502
12503 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12504
12505 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
12506 for last two fake registers.
12507 (arc_conditional_register_usage): Make sure fake frame and arg
12508 pointer regs are in general regs class.
12509 (FRAME_POINTER_MASK): Remove.
12510 (RETURN_ADDR_MASK): Remove.
12511 (arc_must_save_register): Use hard frame regnum.
12512 (frame_restore_reg): Use hard_frame_pointer_rtx.
12513 (arc_save_callee_saves): Likewise.
12514 (arc_restore_callee_saves): Likewise.
12515 (arc_save_callee_enter): Likewise.
12516 (arc_restore_callee_leave): Likewise.
12517 (arc_save_callee_milli): Likewise.
12518 (arc_eh_return_address_location): Likewise.
12519 (arc_check_multi): Use hard frame regnum.
12520 (arc_can_eliminate): Likewise.
12521 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
12522 for register allocator.
12523 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
12524 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
12525 (FRAME_POINTER_REGNUM): Change it to a fake register.
12526 (HARD_FRAME_POINTER_REGNUM): Defined.
12527 (ARG_POINTER_REGNUM): Change it to a new fake register.
12528 (ELIMINABLE_REGS): Update.
12529 (REGISTER_NAMES): Update names.
12530 * config/arc/arc.md (LP_START): Remove.
12531 (LP_END): Likewise.
12532 (shift_si3_loop): Update pattern.
12533
12534 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12535
12536 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
12537 to avoid delay slot scheduling.
12538 (arc_must_save_register): Don't save SP.
12539 * config/arc/arc.md (stack_tie): Remove.
12540 (UNSPEC_ARC_STKTIE): Likewise.
12541
12542 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
12543 Shiva Chen <shiva0217@gmail.com>
12544
12545 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
12546 code gen with large shift amount.
12547
12548 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
12549
12550 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
12551 subreg.
12552
12553 2019-04-16 Jakub Jelinek <jakub@redhat.com>
12554
12555 PR target/90096
12556 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
12557 print -m64/-mx32/-m32 if it is true.
12558 (ix86_debug_options, ix86_function_specific_print): Pass true as
12559 ADD_ABI_P to ix86_target_string.
12560 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
12561 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
12562 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
12563
12564 PR rtl-optimization/90082
12565 * dce.c (can_delete_call): New function.
12566 (deletable_insn_p, mark_insn): Use it.
12567
12568 PR tree-optimization/90090
12569 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
12570 throw internally.
12571 (is_division_by_square): Likewise. Formatting fix.
12572
12573 2019-04-16 Richard Biener <rguenther@suse.de>
12574
12575 PR tree-optimization/56049
12576 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
12577 equality check if alias-set zero will prevail.
12578
12579 2019-04-15 Jeff Law <law@redhat.com>
12580
12581 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
12582 size and alignment as unsigned.
12583
12584 2019-04-15 Richard Biener <rguenther@suse.de>
12585
12586 PR debug/90074
12587 * tree-loop-distribution.c (destroy_loop): Preserve correct
12588 debug info.
12589
12590 2019-04-15 Richard Biener <rguenther@suse.de>
12591
12592 PR tree-optimization/90071
12593 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
12594 abnormal operands from def stmts.
12595
12596 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
12597
12598 PR rtl-optimization/89794
12599 * combine.c (count_auto_inc): New function.
12600 (try_combine): Count how many auto_inc expressions there were in the
12601 original instructions. Ensure we have the same number in the new
12602 instructions. Remove the code that tried to ensure auto_inc side
12603 effects on i1 and i0 are not lost.
12604
12605 2019-04-15 Richard Biener <rguenther@suse.de>
12606
12607 PR ipa/88936
12608 * tree.h (auto_var_p): Declare.
12609 * tree.c (auto_var_p): New function, split out from ...
12610 (auto_var_in_fn_p): ... here.
12611 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
12612 member.
12613 (new_var_info): Initialize it.
12614 (set_uids_in_ptset): Also set the shadow variable uid if required.
12615 (ipa_pta_execute): Postprocess points-to solutions assigning
12616 shadow variable uids for locals that may reach their containing
12617 function recursively.
12618 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
12619 assert but instead check whether the points-to solution is
12620 a singleton.
12621
12622 2019-04-15 Martin Jambor <mjambor@suse.cz>
12623
12624 PR ipa/pr89693
12625 * cgraph.c (clone_of_p): Loop over clone chain for each step in
12626 the thunk chain.
12627
12628 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12629
12630 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
12631
12632 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12633 Kito Cheng <kito.cheng@gmail.com>
12634 Shiva Chen <shiva0217@gmail.com>
12635
12636 * config/nds32/nds32-md-auxiliary.c
12637 (nds32_legitimize_pic_address): Use new PIC pattern.
12638 (nds32_legitimize_tls_address): Use new TLS pattern.
12639 (nds32_output_symrel): New.
12640 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
12641 (nds32_alloc_relax_group_id): Ditto.
12642 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
12643 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
12644 relax_group_id.
12645 (nds32_group_tls_insn): Ditto.
12646 (nds32_group_float_insns): Ditto.
12647 * config/nds32/nds32.md (tls_le): New.
12648 (sym_got): Ditto.
12649
12650 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
12651
12652 * configure: Add nds32 target for dwarf2 debug_line checking.
12653 * configure.ac: Regenerated.
12654
12655 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
12656
12657 PR lto/89358
12658 * ipa-devirt.c (skip_in_fields_list_p): New.
12659 (odr_types_equivalent_p): Use it.
12660
12661 2019-04-13 Jakub Jelinek <jakub@redhat.com>
12662
12663 PR target/89093
12664 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
12665 instead of strncmp when checking for thumb and arm. Formatting fixes.
12666
12667 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
12668
12669 * doc/install.texi: Document --with-target-system-zlib.
12670
12671 2019-04-12 Martin Sebor <msebor@redhat.com>
12672
12673 PR c/88383
12674 PR c/89288
12675 PR c/89798
12676 PR c/89797
12677 * targhooks.c (default_vector_alignment): Avoid assuming
12678 argument fits in SHWI.
12679 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
12680 a shift expression.
12681 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
12682
12683 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12684
12685 PR rtl-optimization/89965
12686 * dce.c: Include rtl-iter.h.
12687 (struct check_argument_load_data): New type.
12688 (check_argument_load): New function.
12689 (find_call_stack_args): Check for loads from stack slots still tracked
12690 in sp_bytes and punt if any is found.
12691
12692 * config/mips/loongson-mmiintrin.h: Fix up #error message.
12693
12694 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
12695
12696 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
12697 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
12698
12699 2019-04-12 Martin Liska <mliska@suse.cz>
12700
12701 PR middle-end/89970
12702 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
12703 in error message.
12704 (separate_attrs): Handle multiple 'default's.
12705 (expand_target_clones): Rework error handling code.
12706
12707 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
12708
12709 PR target/87532
12710 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
12711 mode of vector rather than mode of destination for move instruction.
12712 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
12713 Use QI inner mode with V16QI vector mode.
12714
12715 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12716
12717 PR target/52726
12718 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
12719 "invalid %%t operand" in output_operand_lossage message.
12720
12721 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
12722
12723 * config/s390/predicates.md (permute_pattern_operand): New
12724 predicate.
12725 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
12726 operand for the permute pattern.
12727 ("*vec_perm<mode>"): New insn definition.
12728 ("bswap<mode>"): Generate the permute pattern operand in the
12729 expander and perform the operand reloads for pre arch13 level
12730 already.
12731 ("*bswap<mode>_emu"): Rename to ...
12732 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
12733 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
12734 Add the USE operand for the permute pattern.
12735 ("*vec_set_bswap_vec<mode>"): Likewise.
12736
12737 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12738
12739 PR c/89946
12740 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
12741 and gcc_unreachable if it fails, just call tree_to_uhwi which
12742 verifies that too. Test TREE_CHAIN instead of list_length > 1.
12743 Start warning message with a lower-case letter. Formatting fixes.
12744
12745 PR rtl-optimization/90026
12746 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
12747 successors, look for BARRIERs inside of the whole BB_FOOTER chain
12748 rather than just at the start of it. If e->src BB_FOOTER is not NULL
12749 in cfglayout mode, use emit_barrier_after_bb.
12750
12751 2018-04-11 Steve Ellcey <sellcey@marvell.com>
12752
12753 PR rtl-optimization/87763
12754 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
12755 New Instruction.
12756
12757 2019-04-11 Tom de Vries <tdevries@suse.de>
12758
12759 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
12760 max macro using statement expression.
12761
12762 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
12763
12764 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
12765 * xcoffout.c (xcoff_private_rodata_section_name): Define.
12766 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
12767 read_only_private_data_section using xcoff_private_rodata_section_name.
12768 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
12769
12770 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
12771
12772 PR target/90016
12773 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
12774
12775 2019-04-11 Jakub Jelinek <jakub@redhat.com>
12776
12777 PR rtl-optimization/89965
12778 * dce.c (sp_based_mem_offset): New function.
12779 (find_call_stack_args): Use sp_based_mem_offset.
12780
12781 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
12782
12783 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
12784
12785 2019-04-11 Richard Biener <rguenther@suse.de>
12786
12787 PR tree-optimization/90020
12788 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
12789 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
12790 * tree-ssa-pre.c (compute_avail): Use it to not put
12791 possibly trapping references after a call that might not
12792 return into EXP_GEN.
12793 * gcse.c (compute_hash_table_work): Do not elide
12794 marking a block containing a call if the call might not
12795 return.
12796
12797 2019-04-11 Richard Biener <rguenther@suse.de>
12798
12799 PR tree-optimization/90018
12800 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
12801 Test both SLP and interleaving variants.
12802
12803 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
12804
12805 * config/s390/8561.md: New file.
12806 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12807 Add arch13 cpu model.
12808 * config/s390/s390-opts.h (enum processor_type): Likewise.
12809 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
12810 (s390_get_unit_mask): Likewise.
12811 (s390_is_fpd): Likewise.
12812 (s390_is_fxd): Likewise.
12813 * config/s390/s390.h (s390_tune_attr): Likewise.
12814 * config/s390/s390.md: Include arch13 pipeline description.
12815 * config/s390/s390.opt: Add arch13.
12816
12817 2018-04-10 Steve Ellcey <sellcey@marvell.com>
12818
12819 PR rtl-optimization/87763
12820 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
12821 New prototype.
12822 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
12823 New function.
12824 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
12825 New instruction.
12826 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
12827 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
12828 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
12829 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
12830
12831 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
12832
12833 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
12834 "Although" in -fipa-icf documentation.
12835
12836 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
12837 of using multiple -g options.
12838
12839 2019-04-10 Martin Liska <mliska@suse.cz>
12840
12841 PR gcov-profile/89959
12842 * doc/gcov.texi: Make documentation of -x option
12843 more precise.
12844
12845 2019-04-10 Richard Biener <rguenther@suse.de>
12846
12847 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
12848 member.
12849 (DR_GROUP_SAME_DR_STMT): Remove.
12850 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
12851 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
12852 replace with assert.
12853 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
12854 (vect_record_grouped_load_vectors): Remove unreachable code.
12855
12856 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
12857
12858 PR target/90016
12859 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
12860 obsolete reference to N.
12861
12862 2019-04-10 Jakub Jelinek <jakub@redhat.com>
12863
12864 PR middle-end/90025
12865 * expr.c (store_expr): Set properly size on the MEM passed to
12866 clear_storage.
12867
12868 PR c++/90010
12869 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
12870 with strlen in between hostsz-3 and hostsz-1 inclusive when no
12871 translation is needed, and when translation is needed, only append
12872 ... if the string length is hostsz or more bytes long. Avoid using
12873 strncpy or strcat.
12874
12875 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
12876
12877 PR target/90024
12878 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
12879 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
12880 into three.
12881 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
12882 differences directly.
12883 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
12884
12885 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12886
12887 PR translation/90011
12888 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12889 from diagnostics.
12890 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
12891 diagnostics.
12892 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12893 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
12894 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
12895 trailing space from -gsplit-dwarf diagnostics.
12896
12897 PR tree-optimization/89998
12898 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
12899 instead of integer_type_node if possible, don't add ranges if return
12900 type is not compatible with int.
12901 * gimple-fold.c (gimple_fold_builtin_sprintf,
12902 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
12903 integer_type_node.
12904
12905 2019-04-09 Martin Liska <mliska@suse.cz>
12906
12907 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
12908 * doc/install.texi: Document the new config.
12909
12910 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
12911
12912 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
12913 use gimple_expr_type for load and store calls. Skip over the
12914 condition argument in a conditional internal function.
12915 Protect use of TREE_INT_CST_LOW.
12916
12917 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12918
12919 PR target/90015
12920 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
12921 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
12922 trailing period from it too.
12923
12924 2019-04-08 wu yuan <wuyuan5@huawei.com>
12925
12926 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
12927 * config/aarch64/aarch64.md : Add "tsv110.md"
12928 * config/aarch64/tsv110.md: New file.
12929
12930 2019-04-08 Richard Biener <rguenther@suse.de>
12931
12932 PR tree-optimization/90006
12933 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
12934 calls like lrint.
12935
12936 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
12937
12938 PR target/83033
12939 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
12940 construction.
12941 (fma_root_node): Likewise.
12942 (func_fma_steering): Likewise.
12943
12944 2019-04-08 Jakub Jelinek <jakub@redhat.com>
12945
12946 PR rtl-optimization/89865
12947 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
12948
12949 PR rtl-optimization/89865
12950 * config/i386/i386.md
12951 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
12952 numbers not to clash with the additional operands[4].
12953 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
12954 with extra register copy in the middle.
12955
12956 2019-04-08 Martin Liska <mliska@suse.cz>
12957
12958 PR gcov-profile/89961
12959 * doc/gcov.texi: Document data_file.
12960 * gcov.c (generate_results): Add data_info into JSON output.
12961
12962 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
12963
12964 PR tree-optimization/89725
12965 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
12966 loop's chrec as invariant symbol.
12967 * tree-chrec.h (chrec_contains_symbols): New parameter.
12968 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
12969 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
12970 function of loops not in DDR's loop_nest.
12971 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
12972
12973 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
12974
12975 PR target/89623
12976 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
12977 Mask.
12978
12979 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
12980
12981 PR target/89945
12982 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12983 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
12984
12985 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
12986
12987 * sched-deps.c (sched_macro_fuse_insns): Check return value of
12988 targetm.fixed_condition_code_regs.
12989
12990 2019-04-05 Richard Biener <rguenther@suse.de>
12991
12992 PR debug/89892
12993 PR debug/89905
12994 * tree-cfgcleanup.c (remove_forwarder_block): Always move
12995 debug bind stmts but reset them if they are not valid at the
12996 destination.
12997
12998 2019-04-05 Martin Liska <mliska@suse.cz>
12999
13000 PR translation/89936
13001 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
13002 order to wrap keywords or arguments.
13003 * collect2.c (main): Likewise.
13004 (scan_prog_file): Likewise.
13005 (scan_libraries): Likewise.
13006 * common/config/riscv/riscv-common.c
13007 (riscv_subset_list::parsing_subset_version): Likewise.
13008 (riscv_subset_list::parse_std_ext): Likewise.
13009 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13010 Likewise.
13011 * config/arm/arm.c (arm_option_override): Likewise.
13012 * config/cris/cris.c (cris_print_operand): Likewise.
13013 * config/darwin-c.c (darwin_pragma_options): Likewise.
13014 (darwin_pragma_unused): Likewise.
13015 (darwin_pragma_ms_struct): Likewise.
13016 * config/ft32/ft32.c (ft32_print_operand): Likewise.
13017 * config/i386/i386.c (print_reg): Likewise.
13018 (ix86_print_operand): Likewise.
13019 * config/i386/xm-djgpp.h: Likewise.
13020 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
13021 * config/m32c/m32c.c (m32c_option_override): Likewise.
13022 * config/msp430/msp430.c (msp430_option_override): Likewise.
13023 * config/nds32/nds32.c (nds32_option_override): Likewise.
13024 * config/nvptx/mkoffload.c (main): Likewise.
13025 * config/rx/rx.c (rx_print_operand): Likewise.
13026 (valid_psw_flag): Likewise.
13027 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
13028 (vms_pragma_nomember_alignment): Likewise.
13029 (vms_pragma_extern_model): Likewise.
13030 * lto-wrapper.c (compile_offload_image): Likewise.
13031 * omp-offload.c (oacc_parse_default_dims): Likewise.
13032 * symtab.c (symtab_node::verify_base): Likewise.
13033 * tlink.c (recompile_files): Likewise.
13034 (start_tweaking): Likewise.
13035 * tree-profile.c (parse_profile_filter): Likewise.
13036
13037 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
13038
13039 PR tree-optimization/89956
13040 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
13041 multiple negates of the same value.
13042
13043 2019-04-04 Martin Sebor <msebor@redhat.com>
13044
13045 PR middle-end/89957
13046 PR middle-end/89911
13047 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
13048 have the same precision since the function crashes otherwise.
13049 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
13050 has non-zero arguments.
13051
13052 2019-04-04 Martin Sebor <msebor@redhat.com>
13053
13054 PR middle-end/89934
13055 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
13056 out if the number of arguments is less than expected.
13057
13058 2019-04-04 Jeff Law <law@redhat.com>
13059
13060 PR rtl-optimization/89399
13061 * ree.c (combine_set_extension): Use single_set rather than
13062 digging into PATTERN for items on the candidate list.
13063 (combine_reaching_defs): Likewise.
13064
13065 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
13066
13067 PR rtl-optimization/46590
13068 * loop-invariant.c (find_defs): Move df_remove_problem and
13069 df_process_deferred_rescans to move_invariants.
13070 Move df_live_add_problem and df_live_set_all_dirty calls
13071 to move_invariants.
13072 (move_invariants): Likewise.
13073 (move_loop_invariants): Likewise, making the df_live calls
13074 conditional on -O. Remove the problem again if we added it
13075 locally.
13076
13077 2019-04-03 qing zhao <qing.zhao@oracle.com>
13078
13079 PR tree-optimization/89730
13080 * ipa-inline.c (can_inline_edge_p): Delete the checking for
13081 -flive-patching=inline-only-static.
13082 (can_inline_edge_by_limits_p): Add the checking for
13083 -flive-patching=inline-only-static and grant always_inline
13084 even when -flive-patching=inline-only-static is specified.
13085
13086 2019-04-03 Jeff Law <law@redhat.com>
13087
13088 PR rtl-optimization/81025
13089 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
13090
13091 2019-04-03 Richard Biener <rguenther@suse.de>
13092
13093 PR tree-optimization/84101
13094 * tree-vect-stmts.c: Include explow.h for hard_function_value,
13095 regs.h for hard_regno_nregs.
13096 (cfun_returns): New helper.
13097 (vect_model_store_cost): When vectorizing a store to a decl
13098 we return and the function ABI returns in a multi-reg location
13099 account for the possible spilling that will happen.
13100
13101 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
13102
13103 * config/s390/s390.c (s390_legitimate_address_p): Reject long
13104 displacement addresses for vector mode operands.
13105
13106 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
13107
13108 * config/arc/arc.c (GMASK_LEN): Define.
13109 (arc_restore_callee_saves): Restore first blink when
13110 !optimize_size.
13111
13112 2019-04-03 Sudakshina Das <sudi.das@arm.com>
13113
13114 * doc/extend.texi: Add deprecated comment on sign-return-address
13115 function attribute and add mbranch-protection.
13116 * doc/invoke.texi: Add bti to the options for mbranch-protection.
13117
13118 2019-04-03 Richard Biener <rguenther@suse.de>
13119
13120 PR lto/89896
13121 * lto-wrapper.c (run_gcc): Avoid implicit rules making
13122 the all target phony.
13123
13124 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
13125
13126 PR target/89902
13127 PR target/89903
13128 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
13129 Return false for variable DImode shifts.
13130 (dimode_scalar_chain::compute_convert_gain): Do not handle
13131 register count operand in variable DImode shifts.
13132 (dimode_scalar_chain::make_vector_copies): Remove support to copy
13133 count argument of a variable shift instruction to a vector register.
13134 (dimode_scalar_chain::convert_reg): Remove support to convert
13135 count argument of a variable shift instruction.
13136
13137 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13138
13139 PR rtl-optimization/84206
13140 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
13141 iterating over loop headers.
13142
13143 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13144
13145 PR rtl-optimization/85876
13146 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
13147 beyond the original fence.
13148
13149 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
13150
13151 * config.gcc: Mark spu* targets as deprecated/obsolete.
13152
13153 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13154
13155 * config/s390/s390-builtin-types.def: New builtin function type
13156 definitions. Remove unused types.
13157 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
13158 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
13159 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
13160 overloaded builtins.
13161 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
13162 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
13163 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
13164 (vec_double, vec_signed, vec_unsigned): Define to use the new
13165 overloaded builtins.
13166 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
13167 Remove expanders.
13168
13169 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13170
13171 * config/s390/s390-builtin-types.def: New builtin function type
13172 definitions.
13173 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
13174 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
13175 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
13176 (s390_vstrszh, s390_vstrszf): New low-level builtins.
13177 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
13178 constant definitions.
13179 * config/s390/vecintrin.h (vec_search_string_cc)
13180 (vec_search_string_until_zero_cc): New builtin name definitions.
13181 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
13182 expanders.
13183 ("vec_vstrs<mode>"): New insn definition.
13184
13185 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13186
13187 * config/s390/s390-builtin-types.def: Add new builtin function
13188 types.
13189 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
13190 New overloaded builtins.
13191 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
13192 s390_vsrd.
13193 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
13194 (UNSPEC_VEC_SLDBYTE): ... this.
13195 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
13196 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
13197 definitions.
13198 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
13199 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
13200 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
13201
13202 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13203
13204 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
13205 New insn definition.
13206 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
13207 * config/s390/vector.md (V_HW_HSD): ... here.
13208
13209 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13210
13211 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
13212 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
13213 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
13214 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
13215 New insn definitions.
13216
13217 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13218
13219 * config/s390/s390-builtin-types.def: Add new builtin function type.
13220 * config/s390/s390-builtins.def: Add overloaded builtin
13221 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
13222 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
13223 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
13224 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
13225 ("eltswap<mode>"): New expander.
13226 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
13227 insn definitions.
13228
13229 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13230
13231 * config/s390/s390-builtin-types.def: Add new builtin function types.
13232 * config/s390/s390-builtins.def: Add overloaded builtin
13233 s390_vec_revb. Add low-level builtins for vlbr and vstbr
13234 instructions.
13235 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
13236 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
13237 ("bswap<mode>"): New expander.
13238 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
13239
13240 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13241
13242 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
13243 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
13244 vector builtin version number in __VEC__.
13245
13246 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13247
13248 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
13249 iterators.
13250 (SFSI): New mode attribute.
13251 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
13252 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
13253 rename to ...
13254 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
13255 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
13256 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
13257 ("floatsi<mode>2"): Add wcefb instruction.
13258
13259 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13260
13261 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
13262 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
13263 mode iterators.
13264 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
13265 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
13266 support 32 bit fp-int conversions. Rename to ...
13267 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13268 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13269 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
13270 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
13271 ... to these.
13272
13273 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13274
13275 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
13276 if-then-else constructs if we can use the select instruction.
13277 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
13278
13279 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13280
13281 * config/s390/s390.md ("*popcountdi_arch13_cc")
13282 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
13283 definition.
13284 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
13285 Append _z196 to make it ...
13286 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
13287 ("popcounthi2_z196"): ... this.
13288 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
13289 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
13290
13291 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13292
13293 * config/s390/s390.c (s390_canonicalize_comparison): Convert
13294 certain compares for arch13 in order to make use of the condition
13295 code result produced by the new instructions.
13296 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
13297 nxrk, and nxgrk instruction patterns.
13298 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
13299 (inv_no): Add new code iterator together with some attributes.
13300 ("*andc_split_<mode>"): Disable splitter for arch13.
13301 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
13302 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
13303 ("*<ANDOR:bitops_name>c<GPR:mode>")
13304 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
13305 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
13306 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
13307 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
13308
13309 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13310
13311 * common/config/s390/s390-common.c (processor_flags_table): New
13312 entry for arch13.
13313 * config.gcc: Support arch13 with the --with-arch= configure flag.
13314 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13315 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
13316 * config/s390/s390.c (s390_get_sched_attrmask)
13317 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
13318 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
13319 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
13320 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
13321 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
13322 definitions.
13323 * config/s390/s390.opt: Support arch13 as processor type in
13324 command line options.
13325
13326 2019-04-02 Martin Liska <mliska@suse.cz>
13327
13328 PR translation/89912
13329 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
13330 Fix param description of graphite-max-arrays-per-scop.
13331
13332 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
13333
13334 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
13335 (ASAN_CC1_SPEC): Use it in 64-bit mode.
13336 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
13337
13338 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13339
13340 PR rtl-optimization/85412
13341 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
13342 sel_sched_region_1, not after.
13343
13344 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13345
13346 PR rtl-optimization/86928
13347 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
13348 compute_live if necessary.
13349 (sel_redirect_edge_and_branch): Likewise.
13350
13351 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
13352
13353 PR rtl-optimization/89865
13354 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
13355 register if it is a part of small class.
13356
13357 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13358
13359 PR rtl-optimization/87273
13360 * sel-sched-ir.c (merge_fences): Remove assert.
13361
13362 2019-04-01 Richard Biener <rguenther@suse.de>
13363
13364 PR tree-optimization/46590
13365 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
13366 (dom_walker::m_reachability): Add in place of...
13367 (dom_walker::m_skip_unreachable_blocks): ...this.
13368 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
13369 Move complex initialization ...
13370 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
13371 lazily and initialize edge flags on each invocation.
13372 (dom_walker::bb_reachable): Use m_reachability.
13373
13374 2019-04-01 Martin Liska <mliska@suse.cz>
13375
13376 PR driver/89861
13377 * opt-suggestions.c (option_proposer::build_option_suggestions):
13378 Add variant without any argument in order to provide better
13379 hints.
13380
13381 2019-04-01 Richard Biener <rguenther@suse.de>
13382
13383 PR c/71598
13384 * gimple.c: Include langhooks.h.
13385 (gimple_get_alias_set): Treat enumeral types as the underlying
13386 integer type.
13387
13388 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13389 Eric Botcazou <ebotcazou@adacore.com>
13390
13391 PR rtl-optimization/89862
13392 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
13393 that operates on the full registers for WORD_REGISTER_OPERATIONS
13394 architectures.
13395
13396 2019-03-29 Jim Wilson <jimw@sifive.com>
13397
13398 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
13399 Clear MASK_RVC and then set if C subset supported.
13400
13401 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13402
13403 PR c/89872
13404 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
13405 non-addressable complit into its initializer if it is volatile.
13406
13407 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
13408
13409 * opts-common.c (integral_argument): Set errno properly in one case.
13410
13411 2019-03-29 Martin Liska <mliska@suse.cz>
13412
13413 * doc/invoke.texi: Remove -Wchkp from documentation.
13414
13415 2019-03-29 Martin Liska <mliska@suse.cz>
13416
13417 * dbgcnt.c (print_limit_reach): New function.
13418 (dbg_cnt): Use it.
13419
13420 2019-03-29 Martin Liska <mliska@suse.cz>
13421
13422 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
13423 (dbg_cnt_process_opt): Parse first tokens aas
13424 dbg_cnt_process_single_pair is also using strtok.
13425
13426 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13427
13428 PR rtl-optimization/87485
13429 * function.c (expand_function_end): Move stack_protect_epilogue
13430 before loading of return value into hard register(s).
13431
13432 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13433
13434 PR middle-end/89621
13435 * tree-inline.h (struct copy_body_data): Add
13436 dont_remap_vla_if_no_change flag.
13437 * tree-inline.c (remap_type_3, remap_type_2): New functions.
13438 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
13439 and remap_type_2 returns false.
13440 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
13441 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
13442 only from where it is copied to nested contexts.
13443
13444 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13445
13446 PR target/89865
13447 * config/i386/i386.md (RMW operation with LEA peephole):
13448 Use LEAMODE mode attribute instead of SWI mode iterator for
13449 LEA pattern.
13450
13451 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13452
13453 PR target/89848
13454 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13455 Also process XEXP (src, 0) of a shift insn.
13456
13457 2019-03-28 David Malcolm <dmalcolm@redhat.com>
13458
13459 PR middle-end/89725
13460 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
13461 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
13462
13463 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13464
13465 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
13466 test.
13467 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
13468 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
13469 immediately after first one with df_analyze in between, but rather
13470 process all bbs, queueing ones that need second pass in a worklist,
13471 df_analyze, process queued debug insn changes and if second pass is
13472 needed, process bbs from worklist, df_analyze, process queued debug
13473 insns again.
13474
13475 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
13476 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
13477 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
13478
13479 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
13480
13481 PR c/79022
13482 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
13483 definition.
13484
13485 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
13486
13487 PR target/85667
13488 * config/i386/i386.c (ix86_function_value_1): Call the newly added
13489 function for 32-bit MS_ABI.
13490 (function_value_ms_32): New function.
13491
13492 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
13493
13494 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
13495 (movdi): Call gen_movdi_symbol_save_scc.
13496 (gen_movdi_symbol_save_scc): New insn and split.
13497
13498 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
13499
13500 PR rtl-optimization/89313
13501 * function.c (matching_constraint_num): New static function.
13502 (match_asm_constraints_1): Use it. Fixup white space and comment.
13503 Don't replace inputs with non-matching constraints which conflict
13504 with early clobber outputs.
13505
13506 2019-03-27 Jeff Law <law@redhat.com>
13507
13508 PR rtl-optimization/87761
13509 PR rtl-optimization/89826
13510 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
13511 slightly later.
13512 (pass_cprop_hardreg::execute): Call df_analyze after adding the
13513 note problem to get REG_DEAD/REG_UNUSED notes updated.
13514
13515 2019-03-27 Richard Biener <rguenther@suse.de>
13516
13517 PR tree-optimization/89463
13518 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
13519 queue edges to remove.
13520 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
13521 dead stmts. Delay edge removal until PHIs are removed to
13522 make debug-stmt creation not confused by seemingly degenerate
13523 PHIs.
13524
13525 2019-03-27 Alan Modra <amodra@gmail.com>
13526
13527 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
13528 throughout file.
13529 * config/rs6000/darwin.h: Likewise.
13530 * config/rs6000/rs6000.c: Likewise.
13531
13532 2019-03-27 Alan Modra <amodra@gmail.com>
13533
13534 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
13535 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
13536
13537 2019-03-26 Andrew Waterman <andrew@sifive.com>
13538 Jim Wilson <jimw@sifive.com>
13539
13540 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
13541 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
13542 (generic_idivdi, generic_fmul_single, generic_fmul_double)
13543 (generic_fdiv, generic_fsqrt): Add check for generic tune.
13544 (generic_alu): Add auipc to type list.
13545 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
13546 (riscv_microarchitecture): Declare.
13547 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
13548 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
13549 field.
13550 (riscv_microarchitecture): New.
13551 (sifive_7_tune_info): New.
13552 (riscv_cpu_info_table): Add microarchitecture value for rocket and
13553 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
13554 entries.
13555 (riscv_store_data_bypass_p): New.
13556 (riscv_option_override): Set riscv_microarchitecture from
13557 cpu->microarchitecture.
13558 * config/riscv/riscv.md: Include sifive-7.md.
13559 (type): Add auipc.
13560 (tune): New.
13561 (auipc<mode>): Change type to auipc.
13562 (restore_stack_nonlocal): New.
13563 * config/riscv/sifive-7.md: New.
13564 * doc/invoke.texi (RISC-V Options): Update mtune docs.
13565
13566 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
13567
13568 PR target/89827
13569 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13570 Also process XEXP (src, 0) of a shift insn.
13571
13572 2019-03-26 Richard Biener <rguenther@suse.de>
13573
13574 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
13575 (copy_debug_stmt): Likewise.
13576 (expand_call_inline): Likewise.
13577 (copy_bb): Avoid redundant lookup & set of gimple_block.
13578 * gimple-low.c (lower_gimple_return): Likewise.
13579 (lower_builtin_setjmp): Likewise.
13580
13581 2019-03-26 Jakub Jelinek <jakub@redhat.com>
13582
13583 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
13584 is constant 0, turn into static const data member initialized to false.
13585 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
13586 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
13587
13588 2019-03-26 Jason Merrill <jason@redhat.com>
13589 Jakub Jelinek <jakub@redhat.com>
13590
13591 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
13592 method.
13593 (mem_alloc_description::release_object_overhead): Fix comment typos.
13594 * hash-table.h (hash_table::~hash_table): Call
13595 release_instance_overhead only if m_entries is non-NULL, otherwise
13596 call unregister_descriptor.
13597
13598 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
13599
13600 PR tree-optimization/81740
13601 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13602 In case of outer loop vectorization, check for backward dependence
13603 at the inner loop if outer loop dependence is reversed.
13604
13605 2019-03-26 Alan Modra <amodra@gmail.com>
13606
13607 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
13608 rs6000_vector_mem init. Correct wI and wJ comment.
13609
13610 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
13611
13612 PR rtl-optimization/88347
13613 PR rtl-optimization/88423
13614 * sched-deps.c (sched_analyze_insn): Take into account that for
13615 tablejumps the barrier appears after a label and a jump_table_data.
13616
13617 2019-03-25 Martin Sebor <msebor@redhat.com>
13618
13619 PR c/89812
13620 * c-common.c (check_user_alignment): Rename local. Correct maximum
13621 alignment in diagnostic. Avoid assuming argument fits in SHWI,
13622 convert it to UHWI when it fits.
13623
13624 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
13625
13626 PR debug/86964
13627 * dwarf2out.c (premark_used_variables): New function.
13628 (prune_unused_types_walk): Do not mark not premarked external
13629 variables.
13630 (prune_unused_types): Call premark_used_variables.
13631
13632 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
13633
13634 PR rtl-optimization/89676
13635 * lra-constraints.c (curr_insn_transform): Do match reload for
13636 early clobbers when the match was successful only for different
13637 registers.
13638
13639 2019-03-25 Martin Sebor <msebor@redhat.com>
13640
13641 * doc/extend.texi (Common Type Attributes): Document vector_size.
13642 (Common Variable Attributes): Mention size constraint. Correct
13643 quoting and typos.
13644 (Vector Extensions): Use @dfn when defining bas type. Clarify
13645 base type and size constraints.
13646
13647 2019-03-25 Richard Biener <rguenther@suse.de>
13648
13649 PR tree-optimization/89789
13650 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
13651 changes from non-undefined back to undefined.
13652
13653 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
13654
13655 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
13656 heap string and a gc string, but since this variable is unknown to
13657 ggc the gc string might get reused and corrupted. Fixed by always
13658 using a heap string.
13659
13660 2019-03-25 Richard Biener <rguenther@suse.de>
13661
13662 PR tree-optimization/89779
13663 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
13664 to remove IV defs, delay actual removal.
13665 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
13666 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
13667 very end, properly also reset loop control IV information.
13668
13669 2019-03-25 Richard Biener <rguenther@suse.de>
13670
13671 PR tree-optimization/89802
13672 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
13673 move EH data to folded stmt.
13674
13675 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13676
13677 * config/s390/s390-builtin-types.def: Remove few unused types and
13678 fix sort order for others.
13679
13680 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13681
13682 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
13683 expected and found types with -mdebug during builtin matching.
13684
13685 2019-03-25 Richard Biener <rguenther@suse.de>
13686
13687 PR middle-end/89790
13688 * fold-const.c (operand_equal_p): Revert last change with
13689 updated comment.
13690
13691 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
13692
13693 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
13694 notes for the result of the __tls_get_addr calls.
13695 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
13696
13697 2019-03-24 Jeff Law <law@redhat.com>
13698
13699 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
13700
13701 PR rtl-optimization/87761
13702 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
13703 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
13704 as needed.
13705 (pass_cprop_hardreg::execute): Add df note problem and defer insn
13706 rescans. Reprocess blocks as needed, calling df_analyze before
13707 reprocessing. Always call df_analyze before fixing up debug bind
13708 insns.
13709
13710 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
13711
13712 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
13713 big endian.
13714
13715 2019-03-22 Andrew Pinski <apinski@marvell.com>
13716
13717 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
13718 attrribute for uxtw.
13719
13720 2019-03-26 Jeff Law <law@redhat.com>
13721
13722 PR rtl-optimization/87761
13723 * config/mips/mips-protos.h (mips_split_move): Add new argument.
13724 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
13725 (mips_split_move): Accept new INSN argument. Try to forward SRC
13726 into the next instruction.
13727 (mips_split_move_insn): Pass INSN through to mips_split_move.
13728
13729 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
13730
13731 PR rtl-optimization/89676
13732 * lra-constraints.c (curr_insn_transform): Do match reload for
13733 early clobbers even if the match was successful.
13734
13735 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13736
13737 PR c++/87481
13738 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
13739
13740 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
13741
13742 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
13743
13744 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13745
13746 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
13747 <avx512>_fmsub_<mode>_mask3<round_name>,
13748 <avx512>_fnmadd_<mode>_mask3<round_name>,
13749 <avx512>_fnmsub_<mode>_mask3<round_name>,
13750 avx512f_vmfmadd_<mode>_mask3<round_name>,
13751 avx512f_vmfmsub_<mode>_mask3<round_name>,
13752 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
13753 instead of register_operand and %v instead of v for match_operand 1.
13754 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
13755 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
13756 <round_nimm_predicate> instead of register_operand and %v instead of v
13757 for match_operand 1.
13758
13759 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
13760 <avx512>_fmadd_<mode>_mask3<round_name>,
13761 <avx512>_fmsub_<mode>_mask<round_name>,
13762 <avx512>_fmsub_<mode>_mask3<round_name>,
13763 <avx512>_fnmadd_<mode>_mask<round_name>,
13764 <avx512>_fnmadd_<mode>_mask3<round_name>,
13765 <avx512>_fnmsub_<mode>_mask<round_name>,
13766 <avx512>_fnmsub_<mode>_mask3<round_name>,
13767 <avx512>_fmaddsub_<mode>_mask<round_name>,
13768 <avx512>_fmaddsub_<mode>_mask3<round_name>,
13769 <avx512>_fmsubadd_<mode>_mask<round_name>,
13770 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
13771 <round_nimm_predicate> instead of nonimmediate_operand.
13772 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
13773 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
13774 Use register_operand instead of <round_nimm_predicate> for the
13775 operand that needs to match output.
13776 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
13777 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
13778 Likewise. Formatting fixes.
13779
13780 PR target/89784
13781 * config/i386/i386.c (enum ix86_builtins): Remove
13782 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
13783 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
13784 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
13785 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
13786 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
13787 __builtin_ia32_vfmsubss3_mask3): New builtins.
13788 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
13789 avx512f_vmfmadd_<mode>_mask3<round_name>,
13790 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
13791 *avx512f_vmfmsub_<mode>_mask<round_name>,
13792 avx512f_vmfmsub_<mode>_mask3<round_name>,
13793 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
13794 *avx512f_vmfnmadd_<mode>_mask<round_name>,
13795 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
13796 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
13797 *avx512f_vmfnmsub_<mode>_mask<round_name>,
13798 avx512f_vmfnmsub_<mode>_mask3<round_name>,
13799 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
13800 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
13801 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
13802 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
13803 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
13804 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
13805 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
13806 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
13807 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
13808 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
13809 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
13810 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
13811 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
13812 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
13813 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
13814 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
13815 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
13816 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
13817 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
13818 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
13819 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
13820 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
13821
13822 2019-03-21 Martin Sebor <msebor@redhat.com>
13823
13824 PR tree-optimization/89350
13825 * builtins.c (compute_objsize): Also ignore offsets whose upper
13826 bound is negative.
13827 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
13828 (builtin_memref::builtin_memref): Initialize new member.
13829 Allow EXPR to be null.
13830 (builtin_memref::extend_offset_range): Replace local with a member.
13831 Avoid assuming pointer offsets are unsigned.
13832 (builtin_memref::set_base_and_offset): Determine base object
13833 before computing offset range.
13834 (builtin_access::builtin_access): Handle memset.
13835 (builtin_access::generic_overlap): Replace local with a member.
13836 (builtin_access::strcat_overlap): Same.
13837 (builtin_access::overlap): Same.
13838 (maybe_diag_overlap): Same.
13839 (maybe_diag_access_bounds): Same.
13840 (wrestrict_dom_walker::check_call): Handle memset.
13841 (check_bounds_or_overlap): Same.
13842
13843 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
13844 Jakub Jelinek <jakub@redhat.com>
13845
13846 PR lto/89692
13847 * tree.c (fld_type_variant, fld_incomplete_type_of,
13848 fld_process_array_type): Call fld->pset.add and don't call
13849 add_tree_to_fld_list if it returns true.
13850 (free_lang_data_in_type): Similarly with self-recursive call. Purge
13851 non-marked types from TYPE_NEXT_VARIANT list.
13852 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
13853
13854 2019-03-21 Jakub Jelinek <jakub@redhat.com>
13855
13856 * hash-table.h (hash_table): Add Lazy template parameter defaulted
13857 to false, if true, don't alloc_entries during construction, but defer
13858 it to the first method that needs m_entries allocated.
13859 (hash_table::hash_table, hash_table::~hash_table,
13860 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
13861 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
13862 hash_table::clear_slot, hash_table::traverse_noresize,
13863 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
13864 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
13865 false.
13866 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
13867 NO_INSERT instead of find_with_hash.
13868 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
13869 hash_set::m_table): Add Lazy to template params of hash_table.
13870 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
13871 * attribs.c (test_attribute_exclusions): Likewise.
13872 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
13873 hash_set. Add tests for hash_set with Lazy = true.
13874
13875 2019-03-21 Richard Biener <rguenther@suse.de>
13876
13877 PR tree-optimization/89779
13878 * tree.c (tree_nop_conversion): Consolidate and fix defensive
13879 checks with respect to released SSA names now having error_mark_node
13880 type.
13881 * fold-const.c (operand_equal_p): Likewise.
13882
13883 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
13884
13885 PR target/89775
13886 * config/s390/s390.c (global_not_special_regno_p): Move to make it
13887 available to ...
13888 (s390_optimize_register_info): Use global_not_special_regno_p to
13889 check for global regs.
13890
13891 2019-03-20 Jakub Jelinek <jakub@redhat.com>
13892
13893 PR target/89752
13894 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
13895 update this_alternative nor this_alternative_set.
13896
13897 2019-03-19 Jim Wilson <jimw@sifive.com>
13898
13899 PR target/89411
13900 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
13901 align, size, offset. Use them to handle a BLKmode reference. Update
13902 comment.
13903 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
13904
13905 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13906
13907 PR rtl-optimization/89768
13908 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
13909 instead of GEN_INT.
13910 (unroll_loop_runtime_iterations): Likewise.
13911
13912 2019-03-19 Martin Sebor <msebor@redhat.com>
13913
13914 PR tree-optimization/89644
13915 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
13916 rather than endptr as an indicator of nul-termination.
13917
13918 PR tree-optimization/89644
13919 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
13920 arrays in determining sequence sizes in strncpy and stpncpy.
13921
13922 2019-03-19 Martin Liska <mliska@suse.cz>
13923
13924 PR middle-end/89737
13925 * predict.c (combine_predictions_for_bb): Empty likely_edges and
13926 unlikely_edges if there's an edge that belongs to both these sets.
13927
13928 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
13929
13930 PR target/89746
13931 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
13932 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
13933 go via a stack temporary.
13934
13935 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13936
13937 PR target/89378
13938 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
13939 instead of gen_rtx_SUBREG.
13940 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
13941
13942 2019-03-19 Richard Biener <rguenther@suse.de>
13943
13944 PR debug/88389
13945 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
13946
13947 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
13948
13949 PR lto/87809
13950 PR lto/89335
13951 * tree.c (free_lang_data_in_decl): Do not free context of C++
13952 destrutors.
13953
13954 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13955
13956 PR target/89506
13957 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
13958 subs for the first alternative except when operands[3] is 1.
13959
13960 PR target/89752
13961 * gimplify.c (gimplify_asm_expr): For output argument with
13962 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
13963 diagnose error.
13964
13965 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
13966
13967 PR rtl-optimization/89753
13968 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
13969 explicit unrolling factor even more robust.
13970
13971 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13972
13973 PR target/89726
13974 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
13975 compensation use x2 += 1 instead of x2 -= -1 and when honoring
13976 signed zeros, do another copysign after the compensation.
13977
13978 2019-03-18 Martin Sebor <msebor@redhat.com>
13979
13980 PR tree-optimization/89720
13981 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
13982 more conservatively, the same as anti-range.
13983
13984 2019-03-18 Richard Biener <rguenther@suse.de>
13985
13986 PR middle-end/88945
13987 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
13988 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
13989 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
13990 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
13991
13992 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
13993
13994 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
13995 Extend queue to 1024 entries.
13996 Add "consumed" field.
13997 (gomp_print_output): Remove print_index parameter.
13998 Add final parameter.
13999 Change limit to unsigned.
14000 Use consumed field to implement circular buffer.
14001 Detect interrupted print in final pass.
14002 Flush output at the end.
14003 (run): Update gomp_print_output usage.
14004 (main): Initialize kernargs->output_data.consumed.
14005
14006 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
14007
14008 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
14009 calculation of the minimum number of scalar iterations for
14010 fully-predicated loops.
14011
14012 2019-03-18 Martin Jambor <mjambor@suse.cz>
14013
14014 PR tree-optimization/89546
14015 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
14016 any propagation to its children took place.
14017
14018 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
14019
14020 PR target/89627
14021 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
14022 parameter, and make use of it.
14023 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
14024
14025 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14026
14027 * config/arc/arc.opt (mcode-density-frame): Get the inital value
14028 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
14029 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14030 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14031 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
14032 match what the ops is doing.
14033 (push_multi_fp_blink): Likewise.
14034 * config/arc/arc.c (arc_override_options): Enable enter/leave when
14035 compiling for size and elf target.
14036 (arc_save_callee_enter): Adjust note to match what enter/leave
14037 operation does.
14038
14039 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14040
14041 * config/arc/arc.md (tst_movb): Fix constraint.
14042
14043 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14044
14045 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
14046
14047 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14048
14049 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
14050 * config/arc/arc.c (arc_conditional_register_usage): Remove all
14051 reg_alloc_order references.
14052 (size_alloc_order): Define.
14053 (arc_adjust_reg_alloc_order): New function.
14054 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
14055 order.
14056 (ADJUST_REG_ALLOC_ORDER): Define.
14057 (HONOR_REG_ALLOC_ORDER): Likewise.
14058
14059 2019-03-18 Richard Biener <rguenther@suse.de>
14060
14061 PR target/87561
14062 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
14063 loads and stores a bit more.
14064
14065 2019-03-18 Richard Biener <rguenther@suse.de>
14066
14067 PR target/87561
14068 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
14069 load pessimization to stores as well.
14070
14071 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
14072
14073 PR middle-end/86979
14074 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
14075 successor, use NULL as its av set.
14076
14077 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
14078
14079 PR rtl-optimization/89721
14080 * lra-constraints (invariant_p): Return false if side_effects_p holds.
14081
14082 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
14083
14084 PR target/87532
14085 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14086 When handling vec_extract, use modular arithmetic to allow
14087 constant selectors greater than vector length.
14088 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
14089 V1TImode vectors to have constant selector values greater than 0.
14090 Use modular arithmetic to compute vector index.
14091 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
14092 index for in-memory vectors. Correct code generation for
14093 in-register vectors.
14094 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
14095 compute index.
14096
14097 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
14098
14099 PR c++/88534
14100 PR c++/88537
14101 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
14102 VAR_DECL args.
14103
14104 2019-03-15 Jakub Jelinek <jakub@redhat.com>
14105
14106 PR c++/89709
14107 * tree.c (inchash::add_expr): Strip any location wrappers.
14108 * fold-const.c (operand_equal_p): Move stripping of location wrapper
14109 after hash verification.
14110
14111 PR debug/89704
14112 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
14113 SIGN_EXTEND and ZERO_EXTEND.
14114
14115 2019-03-14 Jason Merrill <jason@redhat.com>
14116 Jakub Jelinek <jakub@redhat.com>
14117
14118 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
14119 than if is_empty (*slot).
14120 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
14121 existing elt and for elt removal.
14122 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
14123 of already removed elt.
14124
14125 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
14126
14127 PR target/89650
14128 * config/i386/i386.c (remove_partial_avx_dependency): Handle
14129 REG_EH_REGION note.
14130
14131 2019-03-14 Martin Liska <mliska@suse.cz>
14132
14133 PR other/89712
14134 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
14135
14136 2019-03-14 Richard Biener <rguenther@suse.de>
14137
14138 PR target/89711
14139 * config/i386/i386.c (make_resolver_func): Properly set
14140 DECL_CONTEXT on the RESULT_DECL.
14141 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
14142
14143 2019-03-14 Richard Biener <rguenther@suse.de>
14144
14145 * gimple-pretty-print.c: Include cfgloop.h.
14146 (dump_gimple_phi): Adjust.
14147 (dump_gimple_bb_header): Dump loop header for GIMPLE.
14148 (pp_cfg_jump): Adjust.
14149 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
14150 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
14151 (lower_phi_internal_fn): Remove.
14152 (verify_gimple_call): Remove IFN_PHI special-casing.
14153 (dump_function_to_file): Dump IL state.
14154 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
14155 done to deal with PHI nodes being present in non-SSA state.
14156
14157 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14158
14159 PR ipa/89684
14160 * multiple_target.c (create_dispatcher_calls): Change
14161 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
14162 In the node->iterate_referring loop, push *ref rather than ref, call
14163 ref->remove_reference () and always pass 0 to iterate_referring.
14164
14165 PR rtl-optimization/89679
14166 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
14167 would contain a paradoxical SUBREG.
14168
14169 2019-03-14 Richard Biener <rguenther@suse.de>
14170
14171 PR tree-optimization/89710
14172 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
14173 safe_dyn_cast.
14174
14175 2019-03-14 Martin Liska <mliska@suse.cz>
14176
14177 * coverage.c (coverage_begin_function): Stream also
14178 end_column.
14179 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
14180 documentation about function declaration location.
14181 * gcov-dump.c (tag_function): Print whole range
14182 of function declaration.
14183 * gcov.c (struct function_info): Add end_column field.
14184 (function_info::function_info): Initialize it.
14185 (output_json_intermediate_file): Output {start,end}_column
14186 fields.
14187 (read_graph_file): Read end_column.
14188
14189 2019-03-14 Richard Biener <rguenther@suse.de>
14190
14191 PR middle-end/89698
14192 * fold-const.c (operand_equal_p): For INDIRECT_REF check
14193 that the access types are similar.
14194
14195 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14196
14197 PR tree-optimization/89703
14198 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
14199 aren't compatible also with builtin_decl_explicit. Check pure
14200 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
14201 and BUILT_IN_STPNCPY{,_CHK}.
14202
14203 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
14204
14205 PR target/89523
14206 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
14207 addr32 prefix to VSIB address for X32.
14208 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
14209 "%M2" to opcode.
14210 (*avx512pf_gatherpf<mode>df_mask): Likewise.
14211 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
14212 (*avx512pf_scatterpf<mode>df_mask): Likewise.
14213 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
14214 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
14215 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
14216 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
14217 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
14218 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
14219 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
14220 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
14221 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
14222 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
14223 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
14224 (*avx512f_scatterdi<mode>): Likewise.
14225
14226 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
14227
14228 PR target/85860
14229 * lra-constraints.c (inherit_in_ebb): Update
14230 potential_reload_hard_regs along with live_hard_regs.
14231
14232 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14233
14234 PR debug/89498
14235 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
14236 DWARF_OFFSET_SIZE.
14237 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
14238
14239 2019-03-13 Martin Sebor <msebor@redhat.com>
14240
14241 PR tree-optimization/89662
14242 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
14243 has a size.
14244
14245 2019-03-13 Richard Biener <rguenther@suse.de>
14246
14247 PR middle-end/89677
14248 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
14249 throw FP expressions at tree-affine.
14250
14251 2019-03-14 Richard Biener <rguenther@suse.de>
14252
14253 * tree-pretty-print.c (dump_generic_node): For -gimple properly
14254 dump negative integer constants using _Literal (type) -num.
14255
14256 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14257
14258 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
14259 nonlocal_value member.
14260
14261 PR middle-end/88588
14262 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
14263 (ipa_simd_modify_function_body): Handle PHIs.
14264
14265 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14266
14267 * config/s390/s390.c (s390_option_override_internal): Use more
14268 aggressive inlining parameters.
14269
14270 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14271
14272 * config/s390/3906.md: New file.
14273 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14274 (LONGRUNNING_THRESHOLD): Remove.
14275 (MAX_SCHED_MIX_SCORE): Decrease.
14276 (MAX_SCHED_MIX_DISTANCE): Decrease.
14277 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
14278 (struct s390_sched_state): New struct to hold scheduling state.
14279 (S390_SCHED_STATE_NORMAL): Remove.
14280 (S390_SCHED_STATE_CRACKED): Remove.
14281 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
14282 (s390_get_sched_attrmask): Use new attribute.
14283 (s390_get_unit_mask): Use new units.
14284 (s390_is_fpd): New function.
14285 (s390_is_fxd): New function.
14286 (s390_is_longrunning): New function.
14287 (s390_sched_score): Use new functions.
14288 (s390_sched_reorder): Likewise.
14289 (s390_sched_variable_issue): Rework and use new functions.
14290 (s390_sched_init): Use new functions.
14291 * config/s390/s390.h (s390_tune_attr): Add z14.
14292 * config/s390/s390.md: Add z14.
14293
14294 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14295
14296 * config/s390/2964.md: Update pipeline description.
14297 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14298 (LONGRUNNING_THRESHOLD): Remove.
14299 (LATENCY_FACTOR): Remove.
14300 (s390_get_unit_mask): Add unit.
14301 (s390_sched_score): Use fxd/fpd.
14302 (s390_sched_variable_issue): Use fxd/fpd.
14303
14304 2019-03-12 Martin Liska <mliska@suse.cz>
14305
14306 * config/i386/i386.c: Reword an error message.
14307
14308 2019-03-12 Martin Jambor <mjambor@suse.cz>
14309
14310 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
14311 terminate with newline.
14312
14313 2019-03-12 Jakub Jelinek <jakub@redhat.com>
14314
14315 PR target/52726
14316 * config/s390/s390.md (tabort): Use %wd instead of
14317 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
14318 letters and periods.
14319 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
14320 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
14321 's with %< and %>.
14322
14323 PR middle-end/89663
14324 * builtins.c (expand_builtin_int_roundingfn,
14325 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
14326 gcc_unreachable if validate_arglist fails.
14327
14328 2019-03-12 Richard Biener <rguenther@suse.de>
14329
14330 PR tree-optimization/89664
14331 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
14332 free the occurance tree after the early out.
14333
14334 2019-03-11 Jakub Jelinek <jakub@redhat.com>
14335
14336 PR middle-end/89655
14337 PR bootstrap/89656
14338 * vr-values.c (vr_values::update_value_range): If
14339 old_vr->varying_p (), don't update it, make new_vr also VARYING
14340 and return false.
14341
14342 2019-03-11 Martin Liska <mliska@suse.cz>
14343
14344 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14345 Fix double string quoting.
14346
14347 2019-03-11 Martin Liska <mliska@suse.cz>
14348
14349 * collect-utils.c (collect_wait): Wrap apostrophes
14350 in gcc internal format with %'.
14351 * collect2.c (main): Likewise.
14352 (scan_prog_file): Likewise.
14353 (scan_libraries): Likewise.
14354 * config/i386/i386.c (ix86_expand_call): Likewise.
14355 (ix86_handle_interrupt_attribute): Likewise.
14356 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14357 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14358 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
14359 * lto-wrapper.c (find_crtoffloadtable): Likewise.
14360 * symtab.c (symtab_node::verify_base): Likewise.
14361 * tree-cfg.c (verify_gimple_label): Likewise.
14362 * tree.c (verify_type_variant): Likewise.
14363
14364 2019-03-11 Martin Liska <mliska@suse.cz>
14365
14366 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
14367 in a string format message and fix GNU coding style.
14368 (expand_builtin_set_thread_pointer): Likewise.
14369 * common/config/aarch64/aarch64-common.c
14370 (aarch64_rewrite_selected_cpu): Likewise.
14371 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
14372 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
14373 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
14374 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
14375 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
14376 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
14377 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
14378 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
14379 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
14380 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
14381 Likewise.
14382 * common/config/riscv/riscv-common.c
14383 (riscv_subset_list::parsing_subset_version): Likewise.
14384 (riscv_subset_list::parse_std_ext): Likewise.
14385 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14386 (riscv_subset_list::parse): Likewise.
14387 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
14388 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
14389 (aarch64_override_options_internal): Likewise.
14390 (aarch64_validate_mcpu): Likewise.
14391 (aarch64_validate_march): Likewise.
14392 (aarch64_validate_mtune): Likewise.
14393 (aarch64_override_options): Likewise.
14394 * config/alpha/alpha.c (alpha_option_override): Likewise.
14395 * config/arc/arc.c (arc_init): Likewise.
14396 (parse_mrgf_banked_regs_option): Likewise.
14397 (arc_override_options): Likewise.
14398 (arc_expand_builtin_aligned): Likewise.
14399 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
14400 (arm_expand_builtin): Likewise.
14401 * config/arm/arm.c (arm_option_check_internal): Likewise.
14402 (arm_configure_build_target): Likewise.
14403 (arm_option_override): Likewise.
14404 (arm_options_perform_arch_sanity_checks): Likewise.
14405 (arm_handle_cmse_nonsecure_entry): Likewise.
14406 (arm_handle_cmse_nonsecure_call): Likewise.
14407 (arm_tls_referenced_p): Likewise.
14408 (thumb1_expand_prologue): Likewise.
14409 * config/avr/avr.c (avr_option_override): Likewise.
14410 * config/bfin/bfin.c (bfin_option_override): Likewise.
14411 * config/c6x/c6x.c (c6x_option_override): Likewise.
14412 * config/cr16/cr16.c (cr16_override_options): Likewise.
14413 * config/cris/cris.c (cris_option_override): Likewise.
14414 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
14415 * config/darwin-c.c (macosx_version_as_macro): Likewise.
14416 * config/darwin.c (darwin_override_options): Likewise.
14417 * config/frv/frv.c (frv_expand_builtin): Likewise.
14418 * config/h8300/h8300.c (h8300_option_override): Likewise.
14419 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
14420 (ix86_option_override_internal): Likewise.
14421 (warn_once_call_ms2sysv_xlogues): Likewise.
14422 (ix86_expand_prologue): Likewise.
14423 (split_stack_prologue_scratch_regno): Likewise.
14424 (ix86_warn_parameter_passing_abi): Likewise.
14425 * config/ia64/ia64.c (fix_range): Likewise.
14426 * config/m68k/m68k.c (m68k_option_override): Likewise.
14427 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
14428 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
14429 (mips_set_compression_mode): Likewise.
14430 * config/mmix/mmix.c (mmix_option_override): Likewise.
14431 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
14432 * config/msp430/msp430.c (msp430_option_override): Likewise.
14433 * config/nds32/nds32.c (nds32_option_override): Likewise.
14434 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
14435 (nios2_option_override): Likewise.
14436 (nios2_expand_custom_builtin): Likewise.
14437 * config/nvptx/mkoffload.c (main): Likewise.
14438 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
14439 * config/pa/pa.c (fix_range): Likewise.
14440 (pa_option_override): Likewise.
14441 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
14442 (riscv_option_override): Likewise.
14443 * config/rl78/rl78.c (rl78_option_override): Likewise.
14444 * config/rs6000/aix61.h: Likewise.
14445 * config/rs6000/aix71.h: Likewise.
14446 * config/rs6000/aix72.h: Likewise.
14447 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
14448 * config/rs6000/freebsd64.h: Likewise.
14449 * config/rs6000/linux64.h: Likewise.
14450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
14451 (rs6000_expand_zeroop_builtin): Likewise.
14452 (rs6000_expand_mtfsb_builtin): Likewise.
14453 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
14454 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
14455 (rs6000_invalid_builtin): Likewise.
14456 (rs6000_expand_split_stack_prologue): Likewise.
14457 * config/rs6000/rtems.h: Likewise.
14458 * config/rx/rx.c (valid_psw_flag): Likewise.
14459 (rx_expand_builtin): Likewise.
14460 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14461 * config/s390/s390.c (s390_expand_builtin): Likewise.
14462 (s390_function_profiler): Likewise.
14463 (s390_option_override_internal): Likewise.
14464 (s390_option_override): Likewise.
14465 * config/sh/sh.c (sh_option_override): Likewise.
14466 (sh_builtin_saveregs): Likewise.
14467 (sh_fix_range): Likewise.
14468 * config/sh/vxworks.h: Likewise.
14469 * config/sparc/sparc.c (sparc_option_override): Likewise.
14470 * config/spu/spu.c (spu_option_override): Likewise.
14471 (fix_range): Likewise.
14472 * config/visium/visium.c (visium_option_override): Likewise.
14473 (visium_handle_interrupt_attr): Likewise.
14474 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
14475 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
14476 (dbg_cnt_process_opt): Likewise.
14477 * dwarf2out.c (output_dwarf_version): Likewise.
14478 * except.c (expand_eh_return): Likewise.
14479 * gcc.c (defined): Likewise.
14480 (driver_handle_option): Likewise.
14481 (process_command): Likewise.
14482 (compare_files): Likewise.
14483 (driver::prepare_infiles): Likewise.
14484 (driver::do_spec_on_infiles): Likewise.
14485 (driver::maybe_run_linker): Likewise.
14486 * omp-offload.c (oacc_parse_default_dims): Likewise.
14487 * opts-global.c (handle_common_deferred_options): Likewise.
14488 * opts.c (parse_sanitizer_options): Likewise.
14489 (common_handle_option): Likewise.
14490 (enable_warning_as_error): Likewise.
14491 * passes.c (enable_disable_pass): Likewise.
14492 * plugin.c (parse_plugin_arg_opt): Likewise.
14493 (default_plugin_dir_name): Likewise.
14494 * targhooks.c (default_expand_builtin_saveregs): Likewise.
14495 (default_pch_valid_p): Likewise.
14496 * toplev.c (init_asm_output): Likewise.
14497 (process_options): Likewise.
14498 (toplev::run_self_tests): Likewise.
14499 * tree-cfg.c (verify_gimple_call): Likewise.
14500 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
14501 (tree_inlinable_function_p): Likewise.
14502 * var-tracking.c (vt_find_locations): Likewise.
14503
14504 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
14505
14506 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
14507 only on the else branch.
14508
14509 2019-03-11 Martin Liska <mliska@suse.cz>
14510
14511 * gcov.c (output_intermediate_json_line): Print function
14512 name of each line.
14513 (output_json_intermediate_file): Add new argument.
14514 * doc/gcov.texi: Document the change.
14515
14516 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
14517
14518 PR rtl-optimization/89588
14519 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14520 explicit unrolling factor more robust.
14521
14522 2019-03-11 Richard Biener <rguenther@suse.de>
14523
14524 PR tree-optimization/89649
14525 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14526 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
14527 on the prolog and epilog loops.
14528 (vect_loop_versioning): Return copy of loop.
14529 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
14530 on the non-vectorized version of the loop.
14531
14532 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
14533
14534 PR target/68924
14535 * config/i386/sse.md (*vec_extractv2di_0_sse):
14536 Add (=r,x) alternative and corresponding splitter.
14537
14538 2019-03-10 Martin Jambor <mjambor@suse.cz>
14539
14540 PR tree-optimization/85762
14541 PR tree-optimization/87008
14542 PR tree-optimization/85459
14543 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
14544 it points to if there is a type changing MEM_REF. Adjust all callers.
14545 (build_accesses_from_assign): Disable total scalarization if
14546 contains_vce_or_bfcref_p returns true through the new parameter, for
14547 both rhs and lhs.
14548
14549 2019-03-09 Jakub Jelinek <jakub@redhat.com>
14550
14551 PR c/88568
14552 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
14553 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
14554
14555 PR target/79645
14556 * common.opt (fdiagnostics-show-labels,
14557 fdiagnostics-show-line-numbers, fdiagnostics-format=,
14558 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
14559 gas-locview-support, ginline-points, ginternal-reset-location-views):
14560 Terminate description text with a dot.
14561 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
14562 * config/mcore/mcore.opt (m210, m340): Likewise.
14563 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
14564 mnops=): Start description text with a capital letter.
14565 * config/arc/arc.opt (msize-level=): Likewise.
14566 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
14567 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
14568 mnewlib): Likewise.
14569 * config/ft32/ft32.opt (msim): Likewise.
14570 (mft32b, mcompress): Likewise. Terminate description text with a dot.
14571 (mnodiv, mnopm): Terminate description text with a dot.
14572 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
14573 a colon.
14574 * config/i386/i386.opt (prefer_vector_width, instrument_return):
14575 Likewise.
14576 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
14577 text.
14578
14579 PR rtl-optimization/89634
14580 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
14581 are modified in BB_END (e->src) instruction.
14582
14583 2019-03-08 David Malcolm <dmalcolm@redhat.com>
14584
14585 PR target/79926
14586 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
14587 messages more amenable to translation, and improve wording.
14588
14589 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
14590
14591 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
14592 ud- and du-chains between phases.
14593
14594 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
14595
14596 PR debug/89631
14597 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
14598 instead of POLY_INT_CST.
14599
14600 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
14601
14602 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
14603 requirement.
14604
14605 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
14606
14607 PR target/68924
14608 PR target/78782
14609 PR target/87558
14610 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
14611 (_mm_storeu_si64): Ditto.
14612
14613 2019-03-08 Martin Liska <mliska@suse.cz>
14614
14615 PR target/86952
14616 * config/i386/i386.c (ix86_option_override_internal): Disable
14617 jump tables when retpolines are used.
14618
14619 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
14620
14621 PR go/63560
14622 * ipa-split.c (execute_split_functions): Do not split
14623 'noinline' or 'section' function.
14624
14625 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14626
14627 PR target/79846
14628 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
14629 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
14630 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
14631
14632 PR ipa/80000
14633 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14634 from diagnostics. Formatting fixes.
14635
14636 PR target/85665
14637 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
14638 warn_odr diagnostics.
14639
14640 PR other/80058
14641 * lra-constraints.c (process_alt_operands): Avoid one space before
14642 " at the end of line and another after " on another line in a string
14643 literal.
14644 * attribs.c (handle_dll_attribute): Likewise.
14645 * config/avr/avr-devices.c (avr_texinfo): Likewise.
14646
14647 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
14648 warning_at or inform messages in G_() if there is no ?:.
14649
14650 PR tree-optimization/89550
14651 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
14652 returned true. Formatting fixes.
14653 (expand_builtin_strnlen): Formatting fixes.
14654 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
14655 if warning_at returned true.
14656 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
14657
14658 2019-03-08 Richard Biener <rguenther@suse.de>
14659
14660 PR middle-end/89578
14661 * cfgloop.h (struct loop): Add owned_clique field.
14662 * cfgloopmanip.c (copy_loop_info): Copy it.
14663 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
14664 cliques.
14665 * tree-inline.c (copy_loops): Remap owned_clique.
14666 * lto-streamer-in.c (input_cfg): Stream owned_clique.
14667 * lto-streamer-out.c (output_cfg): Likewise.
14668
14669 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14670
14671 PR target/80190
14672 * config/darwin.c: Include intl.h.
14673 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
14674 composing the message out of two separate parts.
14675
14676 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14677
14678 PR target/80003
14679 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
14680 doesn't start with a capital letter and doesn't end with a dot.
14681 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
14682 with a capital letter.
14683 (ix86_mangle_function_version_assembler_name): Likewise.
14684 (ix86_generate_version_dispatcher_body): Likewise.
14685 (fold_builtin_cpu): Likewise.
14686 (get_builtin_code_for_version): Likewise. Remove extraneous space.
14687 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
14688 translators, wrap full type name in %qs.
14689
14690 PR translation/79999
14691 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
14692 depend clause with source (or sink) modifier.
14693 * omp-expand.c (expand_omp_ordered_sink): Likewise.
14694
14695 PR target/89602
14696 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
14697 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
14698 (avx512f_load<mode>_mask): New define_expand.
14699 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
14700 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
14701 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
14702 __builtin_ia32_movess_mask): New builtins.
14703 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
14704 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
14705 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
14706 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
14707
14708 2019-03-07 Martin Jambor <mjambor@suse.cz>
14709
14710 PR lto/87525
14711 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
14712 for extern inline functions.
14713
14714 2019-03-07 Martin Jambor <mjambor@suse.cz>
14715
14716 PR ipa/88235
14717 * cgraph.h (cgraph_node): New inline method former_thunk_p.
14718 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
14719 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
14720 have multiple callees. At the end check if declarations match as
14721 opposed to cgraph_nodes.
14722
14723 2019-03-07 Martin Liska <mliska@suse.cz>
14724
14725 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
14726 which is equivalent to searching for this in clones chain.
14727 * symtab.c (symtab_node::verify_base): Similarly compare ASM
14728 names with a neighbour and special case first node in a chain.
14729
14730 2019-01-25 Jason Merrill <jason@redhat.com>
14731
14732 PR c++/80916 - spurious "static but not defined" warning.
14733 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
14734 for an internal symbol with DECL_EXTERNAL.
14735
14736 2019-04-07 Richard Biener <rguenther@suse.de>
14737
14738 PR middle-end/89618
14739 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
14740 * tree-inline.c (copy_loops): Simplify.
14741
14742 2019-03-07 Martin Liska <mliska@suse.cz>
14743
14744 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
14745
14746 2019-03-07 Richard Biener <rguenther@suse.de>
14747
14748 PR tree-optimization/89595
14749 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
14750 stmt iterator as reference, take boolean output parameter to
14751 indicate whether the stmt was removed and thus the iterator
14752 already advanced.
14753 (dom_opt_dom_walker::before_dom_children): Re-iterate over
14754 stmts created by folding.
14755
14756 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14757
14758 PR c++/89585
14759 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
14760 at toplevel.
14761
14762 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
14763
14764 PR rtl-optimization/88845
14765 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
14766 LRA.
14767 * lra.c (remove_scratches_1): New function.
14768 (remove_scratches): Use it.
14769 (lra_emit_move): Likewise.
14770
14771 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
14772
14773 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
14774 unaligned_access variable.
14775 * config/arc/arc.c (arc_override_options): Set unaligned access
14776 default on for HS CPUs.
14777 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
14778
14779 2019-03-06 Martin Liska <mliska@suse.cz>
14780
14781 PR gcov-profile/89577
14782 * doc/gcov.texi: Prefer to use --coverage.
14783 * doc/sourcebuild.texi: Likewise.
14784
14785 2019-03-02 Jason Merrill <jason@redhat.com>
14786
14787 PR c++/86485 - -Wmaybe-unused with empty class ?:
14788 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
14789
14790 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14791
14792 PR target/89587
14793 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
14794 if_multiarch.
14795
14796 PR middle-end/89590
14797 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
14798 exactly one argument.
14799
14800 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14801 Richard Sandiford <richard.sandiford@arm.com>
14802
14803 PR tree-optimization/89570
14804 * match.pd (vec_cond into cond_op simplification): Don't use
14805 get_conditional_internal_fn, use as_internal_fn (cond_op).
14806
14807 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
14808
14809 PR target/89222
14810 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
14811 to decide when to split off a non-zero offset from a symbol.
14812 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
14813 in function symbols.
14814
14815 2019-03-05 Richard Biener <rguenther@suse.de>
14816
14817 PR tree-optimization/89594
14818 * tree-if-conv.c (pass_if_conversion::execute): Handle
14819 case where .LOOP_VECTORIZED_FUNCTION was removed.
14820
14821 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14822
14823 PR bootstrap/89560
14824 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
14825 instead alloca it only when needed with the needed size.
14826
14827 PR tree-optimization/89570
14828 * match.pd (vec_cond into cond_op simplification): Guard with
14829 vectorized_internal_fn_supported_p test and #if GIMPLE.
14830
14831 PR tree-optimization/89566
14832 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
14833 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
14834 Punt if get_user_idx_format succeeds, but idx_format argument is
14835 not provided or doesn't have pointer type, or if idx_args is above
14836 number of provided arguments.
14837
14838 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
14839
14840 PR tree-optimization/89437
14841 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
14842
14843 2019-03-04 Richard Biener <rguenther@suse.de>
14844
14845 PR middle-end/89572
14846 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
14847 safe_dyn_cast.
14848
14849 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
14850
14851 PR tree-optimization/89487
14852 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
14853 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
14854 (distribute_loop): Don't do runtime alias check if there is non-
14855 addressable data reference.
14856 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
14857 is a register variable.
14858
14859 2019-03-02 Jakub Jelinek <jakub@redhat.com>
14860
14861 PR target/89506
14862 * config/arm/arm.md (cmpsi2_addneg): Use
14863 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
14864 If operands[2] is 0 or INT_MIN, force use of subs.
14865 (*compare_scc splitter): Use gen_int_mode.
14866 (*negscc): Likewise.
14867 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
14868
14869 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
14870 Monk Chiang <sh.chiang04@gmail.com>
14871
14872 * common/config/riscv/riscv-common.c: Include sstream.
14873 (riscv_subset_list::to_string): New.
14874 (riscv_arch_str): Likewise.
14875 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
14876 * config.in: Regen.
14877 * config/riscv/riscv-protos.h (riscv_arch_str): New.
14878 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
14879 (riscv_emit_attribute): New.
14880 (riscv_file_start): Emit attribute if needed.
14881 (riscv_option_override): Init riscv_emit_attribute_p.
14882 * config/riscv/riscv.opt (mriscv-attribute): New option.
14883 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
14884 * configure: Regen.
14885 * doc/install.texi: Document --with-riscv-attribute.
14886 * doc/invoke.texi: Document -mriscv-attribute.
14887
14888 * common/config/riscv/riscv-common.c:
14889 Include config/riscv/riscv-protos.h.
14890 (INCLUDE_STRING): Defined.
14891 (RISCV_DONT_CARE_VERSION): Defined.
14892 (riscv_subset_t): Declare.
14893 (riscv_subset_t::riscv_subset_t): New.
14894 (riscv_subset_list): Declare.
14895 (riscv_subset_list::riscv_subset_list): New.
14896 (riscv_subset_list::~riscv_subset_list): Likewise.
14897 (riscv_subset_list::parsing_subset_version): Likewise.
14898 (riscv_subset_list::parse_std_ext): Likewise.
14899 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14900 (riscv_subset_list::add): Likewise.
14901 (riscv_subset_list::lookup): Likewise.
14902 (riscv_subset_list::xlen): Likewise.
14903 (riscv_subset_list::parse): Likewise.
14904 (riscv_supported_std_ext): Likewise.
14905 (current_subset_list): Likewise.
14906 (riscv_parse_arch_string): Using riscv_subset_list::parse to
14907 parse.
14908
14909 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
14910
14911 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14912 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
14913 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
14914
14915 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
14916
14917 PR rtl-optimization/85899
14918 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
14919 fallthru edges leading to the exit block.
14920
14921 2019-03-01 Tamar Christina <tamar.christina@arm.com>
14922
14923 PR target/89517
14924 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
14925 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
14926
14927 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
14928
14929 PR tree-optimization/89535
14930 * tree-vect-stmts.c (vectorizable_call): Record the vector types
14931 for each operand. Calculate the fallback choice for mask operands
14932 and pass it to vect_get_vec_def_for_operand.
14933
14934 2019-03-01 Richard Biener <rguenther@suse.de>
14935
14936 PR middle-end/89541
14937 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
14938 get virtual operands.
14939 (get_expr_operands): Handle CONST_DECL like other decls.
14940
14941 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14942
14943 PR middle-end/89503
14944 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
14945 on DECL_P and EXPR_P.
14946
14947 2019-03-01 Richard Biener <rguenther@suse.de>
14948
14949 PR middle-end/89497
14950 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
14951 argument, defaulted to zero.
14952 * passes.c (execute_function_todo): Pass down SSA update flags
14953 to cleanup_tree_cfg.
14954 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
14955 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
14956 form if requested.
14957 (cleanup_tree_cfg): Get and pass down SSA update flags.
14958
14959 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14960
14961 PR bootstrap/89539
14962 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
14963 early_lto_debug argument.
14964
14965 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
14966
14967 PR tree-optimization/89536
14968 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
14969 only whether bit #0 of the value is 0 instead of the entire value.
14970
14971 2019-02-28 Marek Polacek <polacek@redhat.com>
14972
14973 PR c++/87068 - missing diagnostic with fallthrough statement.
14974 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
14975 at the end of a seq, save its location to walk_stmt_info.
14976 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
14977 a switch.
14978
14979 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
14980
14981 PR lto/88585
14982 * tree.c (find_atomic_core_type): Move ahead in file.
14983 (check_base_type): Correctly compare alignments of atomic types.
14984
14985 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
14986
14987 PR target/89455
14988 * config/i386/i386.c (get_builtin_code_for_version): Identify
14989 Westmere from PCLMUL, instead of AES.
14990
14991 2019-02-28 Jakub Jelinek <jakub@redhat.com>
14992
14993 PR target/89434
14994 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
14995 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
14996 -UINTVAL (...).
14997
14998 2019-02-28 Tamar Christina <tamar.christina@arm.com>
14999
15000 PR target/88530
15001 * config/aarch64/aarch64-option-extensions.def: Document it.
15002 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
15003 if empty hwcaps.
15004
15005 2019-02-28 Jakub Jelinek <jakub@redhat.com>
15006
15007 PR c/89520
15008 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
15009 builtins if they don't have a single scalar floating point argument.
15010 Formatting fixes.
15011
15012 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15013
15014 PR rtl-optimization/89490
15015 * varasm.c (get_block_for_section): Bail out for mergeable sections.
15016 (default_use_anchors_for_symbol_p, output_object_block): Assert the
15017 block section is not mergeable.
15018
15019 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15020
15021 PR target/70341
15022 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
15023 old define_insn to ...
15024 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
15025 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
15026 Rename old define_insn to ...
15027 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
15028 (thumb2_casesi_internal_pic): New define_expand. Rename old
15029 define_insn to ...
15030 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
15031 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
15032 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
15033
15034 2019-02-27 Richard Biener <rguenther@suse.de>
15035
15036 PR debug/88878
15037 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
15038
15039 2019-02-27 Richard Biener <rguenther@suse.de>
15040
15041 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
15042 building.
15043
15044 2019-02-27 Richard Biener <rguenther@suse.de>
15045
15046 PR debug/88878
15047 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
15048 parameter, prefix section name with .gnu.debuglto_ if true.
15049 (dwarf2out_finish): Pass false to output_comdat_type_unit.
15050 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
15051
15052 2019-02-27 Richard Biener <rguenther@suse.de>
15053
15054 PR debug/89514
15055 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
15056 rather than on use_debug_types, doing what output_die does.
15057 (value_format): Likewise.
15058
15059 2019-02-27 Martin Jambor <mjambor@suse.cz>
15060 Martin Sebor <msebor@redhat.com>
15061
15062 * doc/invoke.texi (Warning Options): Reword description of
15063 -Wno-absolute-value.
15064
15065 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15066
15067 PR tree-optimization/89280
15068 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
15069 builtin_setjmp_setup_bb): New functions.
15070 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
15071 When visiting __builtin_setjmp_setup block, queue in special
15072 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
15073 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
15074 from visited after the loop if they don't have any visited successor
15075 blocks.
15076
15077 2018-02-26 Steve Ellcey <sellcey@marvell.com>
15078
15079 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
15080 New function.
15081 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
15082
15083 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15084
15085 PR c++/89507
15086 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
15087 with types other than sizetype/ssizetype.
15088
15089 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15090
15091 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
15092 (enum sparc_processor_type): ...this.
15093 (enum sparc_code_model_type): New enumeration type.
15094 (enum sparc_memory_model_type): Tweak comments.
15095 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
15096 (mtune): Likewise.
15097 (mcmodel): Use sparc_code_model enumeration and variable.
15098 (sparc_code_model): New enumeration.
15099 (mdebug): Add Undocumented marker.
15100 * config/sparc/sparc.h (enum cmodel): Delete.
15101 (sparc_cmodel): Likewise.
15102 (TARGET_CM_MEDLOW): Adjust to above renaming.
15103 (TARGET_CM_MEDMID): Likewise.
15104 (TARGET_CM_MEDANY): Likewise.
15105 (TARGET_CM_EMBMEDANY): Likewise.
15106 * config/sparc/sparc.c (sparc_cmodel): Delete.
15107 (sparc_option_override): Remove string/value mapping support for the
15108 code model. Move code and memory model support to after the handling
15109 of target flags. Do private machine setup last.
15110 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
15111 (sparc_legitimize_reload_address): Likewise.
15112 (sparc_output_mi_thunk): Likewise.
15113 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
15114
15115 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15116
15117 PR tree-optimization/89500
15118 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
15119 (handle_builtin_strlen): Remove noncst_bound variable. Always
15120 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
15121 cst if the first cst bytes starting at x are known to be non-zero,
15122 even if the string is not zero terminated. Don't try to modify
15123 *si for strnlen. Update strlen_to_stridx only for strlen or if
15124 we can prove strnlen returns the same value as strlen would.
15125
15126 2019-02-26 Martin Liska <mliska@suse.cz>
15127
15128 * alloc-pool.h (struct pool_usage): Remove extra
15129 print_dash_line.
15130 * bitmap.h (struct bitmap_usage): Likewise.
15131 * ggc-common.c (struct ggc_usage): Likewise.
15132 * mem-stats.h (struct mem_usage): Likewise.
15133 (mem_alloc_description::dump): Print dash lines
15134 here and repeat header at the end of a table report.
15135 It's then more readable.
15136 * tree-phinodes.c (phinodes_print_statistics): Make
15137 horizontal alignment.
15138 * tree-ssanames.c (ssanames_print_statistics): Likewise.
15139 * vec.c (struct vec_usage): Remove extra print_dash_line.
15140 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
15141
15142 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
15143
15144 * doc/extend.texi (__builtin_object_size):
15145 Use @pxref instead of @xref inside parenthesis.
15146 (__builtin_has_attribute): Add missing comma after @xref.
15147 (__builtin_object_size): Ditto.
15148 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
15149
15150 2019-02-26 Jeff Law <law@redhat.com>
15151
15152 PR rtl-optimization/87761
15153 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
15154 detect obviously dead insns and delete them.
15155
15156 2019-02-26 Richard Biener <rguenther@suse.de>
15157
15158 PR tree-optimization/89505
15159 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
15160 to handle restrict pointed-to vars with multiple subvars
15161 correctly.
15162
15163 2019-02-26 Richard Biener <rguenther@suse.de>
15164
15165 PR tree-optimization/89489
15166 * tree-parloops.c (create_loop_fn): Copy over last_clique.
15167
15168 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15169
15170 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
15171 and move around comment.
15172 <BIT_AND_EXPR>: Likewise.
15173 <BIT_NOT_EXPR>: Add specific handling for boolean types.
15174
15175 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15176
15177 PR target/89474
15178 * config/i386/i386.c (remove_partial_avx_dependency): Call
15179 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
15180 after changing possibly many instructions to use that pseudo. Fix up
15181 insertion of v4sf_const0 setter at the start of bb.
15182
15183 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15184
15185 PR c/80409
15186 * doc/extend.texi (Variadic Pointer Args): New section.
15187
15188 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15189 Martin Sebor <msebor@gmail.com>
15190
15191 * common.opt (Wattribute-alias): Likewise.
15192 * doc/invoke.texi (Option Summary): List general form of
15193 -Wattribute-alias=. List positive form of -Wmissing-attributes.
15194 (-Wmissing-attributes): Invert entry, rewrite and correct default.
15195 Add cross-references.
15196 (-Wattribute-alias): Rewrite and correct default. Mention
15197 considered attributes (same as for -Wmissing-attributes).
15198
15199 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
15200
15201 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
15202 (_mm_cvtpd_ps): Likewise.
15203 (_mm_cvttpd_epi32): Likewise.
15204
15205 PR target/89338
15206 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
15207 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
15208
15209 PR target/89339
15210 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
15211
15212 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15213
15214 PR target/88530
15215 * common/config/aarch64/aarch64-common.c
15216 (struct aarch64_option_extension): Add is_synthetic.
15217 (all_extensions): Use it.
15218 (TARGET_OPTION_INIT_STRUCT): Define hook.
15219 (struct gcc_targetm_common): Moved to end.
15220 (all_extensions_by_on): New.
15221 (opt_ext_cmp, typedef opt_ext): New.
15222 (aarch64_option_init_struct): New.
15223 (aarch64_contains_opt): New.
15224 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
15225 * config/aarch64/aarch64-option-extensions.def
15226 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
15227 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
15228 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
15229 Set is_synthetic to false.
15230 (crypto): Set is_synthetic to true.
15231 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
15232 SYNTHETIC.
15233
15234 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15235
15236 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15237 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
15238 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15239 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
15240 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
15241 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
15242 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
15243 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
15244 Rename ...
15245 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
15246 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15247 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
15248 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
15249 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
15250 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
15251 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
15252 vfmlsl_laneq_high_f16): ... To this.
15253 * config/arm/neon.md: Update comments.
15254
15255 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15256
15257 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15258 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
15259 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15260 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
15261 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
15262 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
15263 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
15264 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
15265 Rename ...
15266 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
15267 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15268 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
15269 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
15270 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
15271 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
15272 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
15273 vfmlslq_laneq_high_f16): ... To this.
15274
15275 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
15276
15277 PR rtl-optimization/86096
15278 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
15279 comparing mw_order values.
15280
15281 2019-02-25 Jakub Jelinek <jakub@redhat.com>
15282
15283 PR target/89434
15284 * config/arm/arm.md (*subsi3_carryin_const): Use
15285 arm_neg_immediate_operand predicate instead of
15286 arm_not_immediate_operand, "L" constraint instead of "K" and
15287 print it using %n2 instead of %B2.
15288 (*subsi3_carryin_const0): New define_insn.
15289 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
15290 instead of arm_not_operand and "I" constraint instead of "K" and
15291 print it using %n3 instead of %B2. Instead of using match_dup 2 add
15292 another match_operand and in the condition check that it is negation
15293 of operands[2].
15294 (*subsi3_carryin_compare_const0): New define_ins.
15295 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
15296 *subsi3_carryin_const.
15297 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
15298 split into *subsi3_carryin_compare_const0 if the highpart is zero.
15299
15300 PR target/89438
15301 * config/arm.vfp.md (*negdf2_vfp): Use
15302 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
15303 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
15304
15305 2019-02-24 Jakub Jelinek <jakub@redhat.com>
15306
15307 PR rtl-optimization/89445
15308 * simplify-rtx.c (simplify_ternary_operation): Don't use
15309 simplify_merge_mask on operands that may trap.
15310 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
15311 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
15312 second operand is CONST_VECTOR, check if any element could be zero.
15313 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
15314 their operands can trap.
15315
15316 2019-02-23 Martin Sebor <msebor@redhat.com>
15317
15318 * gimple-ssa-sprintf.c (target_strtol): Rename...
15319 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
15320 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
15321 check for range error.
15322
15323 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
15324
15325 PR driver/69471
15326 * opts-common.c (prune_options): Also prune joined switches
15327 with Negative and RejectNegative.
15328 * config/i386/i386.opt (march=): Add Negative(march=).
15329 (mtune=): Add Negative(mtune=).
15330 * doc/options.texi: Document Negative used together with Joined
15331 and RejectNegative.
15332
15333 2019-02-22 Martin Sebor <msebor@redhat.com>
15334
15335 * doc/extend.texi (Other Builtins): Add
15336 __builtin_is_constant_evaluated.
15337
15338 2019-02-22 Richard Biener <rguenther@suse.de>
15339
15340 PR tree-optimization/87609
15341 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
15342
15343 2019-02-22 Jeff Law <law@redhat.com>
15344
15345 PR rtl-optimization/87761
15346 * config/mips/mips.md: Add new combiner pattern to recognize
15347 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
15348
15349 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
15350
15351 PR target/89324
15352 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
15353 destination register in peepholes generating patterns for ADDS/SUBS.
15354 (add<mode>3_compare0,
15355 *addsi3_compare0_uxtw, add<mode>3_compareC,
15356 add<mode>3_compareV_imm, add<mode>3_compareV,
15357 *adds_<optab><ALLX:mode>_<GPI:mode>,
15358 *subs_<optab><ALLX:mode>_<GPI:mode>,
15359 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
15360 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
15361 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
15362 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
15363 sub<mode>3_compare1): Allow stack pointer for source register.
15364 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
15365
15366 2019-02-22 Martin Sebor <msebor@redhat.com>
15367
15368 PR tree-optimization/88993
15369 PR tree-optimization/88853
15370 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
15371 New helper.
15372 (sprintf_dom_walker::call_info::is_string_func): New helper.
15373 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
15374 for formatted string functions.
15375 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
15376
15377 2019-02-22 Martin Sebor <msebor@redhat.com>
15378
15379 PR c/89425
15380 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
15381 unreachable subexpressions.
15382
15383 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
15384 Hongtao Liu <hongtao.liu@intel.com>
15385 Sunil K Pandey <sunil.k.pandey@intel.com>
15386
15387 PR target/87007
15388 * config/i386/i386-passes.def: Add
15389 pass_remove_partial_avx_dependency.
15390 * config/i386/i386-protos.h
15391 (make_pass_remove_partial_avx_dependency): New.
15392 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
15393 New function.
15394 (pass_data_remove_partial_avx_dependency): New.
15395 (pass_remove_partial_avx_dependency): Likewise.
15396 (make_pass_remove_partial_avx_dependency): Likewise.
15397 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
15398 (*extendsfdf2): Add avx_partial_xmm_update.
15399 (truncdfsf2): Likewise.
15400 (*float<SWI48:mode><MODEF:mode>2): Likewise.
15401 (SF/DF conversion splitters): Disabled for TARGET_AVX.
15402
15403 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
15404
15405 PR middle-end/85598
15406 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
15407 analysis for pass.
15408
15409 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
15410
15411 PR target/89444
15412 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
15413 (PTA_SKYLAKE): Add PTA_AES.
15414 (PTA_GOLDMONT): Likewise.
15415
15416 2019-02-22 Sudakshina Das <sudi.das@arm.com>
15417
15418 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
15419 instruction if enabled.
15420 (aarch64_override_options): Remove reference to return address key.
15421
15422 2019-02-22 Richard Biener <rguenther@suse.de>
15423
15424 PR tree-optimization/89440
15425 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15426 not necessary assert.
15427
15428 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
15429
15430 PR fortran/72741
15431 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
15432 (oacc_replace_fn_attrib_attr): ... this new function.
15433 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
15434 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
15435
15436 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15437
15438 * config/arm/arm-cpus.in (ares): Rename to...
15439 (neoverse-n1): ... This. Add ares as alias.
15440 * config/arm/arm-tables.opt: Regenerate.
15441 * config/arm/arm-tune.md: Likewise.
15442 * doc/invoke.txt (ARM Options): Document neoverse-n1.
15443
15444 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15445
15446 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
15447 * config/aarch64/aarch64-tune.md: Regenerate.
15448 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
15449
15450 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15451
15452 * config/aarch64/aarch64.c (ares_tunings): Rename to...
15453 (neoversen1_tunings): ... This.
15454 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
15455 (neoverse-n1): New CPU.
15456 * config/aarch64/aarch64-tune.md: Regenerate.
15457 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
15458
15459 2019-02-22 Richard Biener <rguenther@suse.de>
15460
15461 PR middle-end/87609
15462 * cfghooks.h (dependence_hash): New typedef.
15463 (struct copy_bb_data): New type.
15464 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
15465 (duplicate_block): Likewise.
15466 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
15467 (copy_bbs): Create and pass down copy_bb_data.
15468 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
15469 (rtl_duplicate_bb): Likewise.
15470 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
15471 remap dependence info.
15472
15473 2019-02-22 Richard Biener <rguenther@suse.de>
15474
15475 PR tree-optimization/87609
15476 * tree-core.h (tree_base): Document special clique values.
15477 * tree-inline.c (remap_dependence_clique): Do not use the
15478 special clique value of one.
15479 (maybe_set_dependence_info): Use clique one.
15480 (clear_dependence_clique): New callback.
15481 (compute_dependence_clique): Clear clique one from all refs
15482 before assigning it (again).
15483
15484 2019-02-21 Martin Sebor <msebor@redhat.com>
15485
15486 * doc/extend.texi (__clear_cache): Correct signature.
15487
15488 2019-02-21 Ian Lance Taylor <iant@golang.org>
15489
15490 PR go/89170
15491 * varasm.c (decode_addr_const): Call lookup_constant_def rather
15492 than output_constant_def.
15493 (add_constant_to_table): New static function.
15494 (output_constant_def): Call add_constant_to_table.
15495 (tree_output_constant_def): Likewise.
15496
15497 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15498
15499 PR c++/89285
15500 * builtins.c (fold_builtin_arith_overflow): If first two args are
15501 INTEGER_CSTs, set intres and ovfres to constants rather than calls
15502 to ifn.
15503
15504 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
15505
15506 PR target/87412
15507 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
15508 error for -mindirect-branch/-mfunction-return with incompatible
15509 -fcf-protection.
15510
15511 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15512
15513 PR bootstrap/88714
15514 * constraints.md (q): Remove.
15515 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
15516 instead of q.
15517
15518 2019-02-21 Martin Jambor <mjambor@suse.cz>
15519
15520 PR hsa/89302
15521 * omp-general.c (omp_extract_for_data): Removed a duplicate call
15522 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
15523 (omp_adjust_for_condition): ...here. Added necessary parameters.
15524 * omp-general.h (omp_adjust_for_condition): Updated declaration.
15525 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
15526 proper values to new parameters of omp_adjust_for_condition.
15527
15528 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15529
15530 PR middle-end/89412
15531 * expr.c (expand_assignment): If result is a MEM, use change_address
15532 instead of simplify_gen_subreg.
15533
15534 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15535 David Malcolm <dmalcolm@redhat.com>
15536
15537 PR middle-end/89091
15538 * fold-const.c (decode_field_reference): Return NULL_TREE if
15539 lang_hooks.types.type_for_size returns NULL. Check it before
15540 overwriting *exp_. Use return NULL_TREE instead of return 0.
15541
15542 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15543
15544 PR middle-end/88074
15545 PR middle-end/89415
15546 * toplev.c (do_compile): Double the emin/emax exponents to workaround
15547 buggy mpc_norm.
15548
15549 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
15550
15551 PR target/89397
15552 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
15553 TARGET_SSE in addition to TARGET_SSE_MATH.
15554
15555 (ix86_excess_precision): Ditto.
15556 (ix86_float_exceptions_rounding_supported_p): Ditto.
15557 (use_rsqrt_p): Ditto.
15558 * config/i386/sse.md (rsqrt<mode>2): Ditto.
15559
15560 2019-02-20 David Malcolm <dmalcolm@redhat.com>
15561
15562 PR c/89410
15563 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
15564 linenum_arith_t when determining if two adjacent line spans are
15565 close enough to merge.
15566 (diagnostic_show_locus): Use linenum_arith_t when iterating over
15567 lines within each line_span.
15568
15569 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
15570
15571 PR target/86487
15572 * lra-constraints.c(uses_hard_regs_p): Fix handling of
15573 paradoxical SUBREGS.
15574
15575 2019-02-20 Li Jia He <helijia@linux.ibm.com>
15576
15577 PR target/88100
15578 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
15579 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
15580 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
15581 range checking it.
15582
15583 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
15584
15585 * config/gcn/gcn.c (print_operand): Fix typo.
15586
15587 2019-02-19 Richard Biener <rguenther@suse.de>
15588
15589 PR middle-end/88074
15590 * toplev.c (do_compile): Initialize mpfr's exponent range
15591 based on available float modes.
15592
15593 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
15594
15595 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
15596 as long as the epilogue isn't completed.
15597
15598 2019-02-18 Martin Sebor <msebor@redhat.com>
15599
15600 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
15601 __has_cpp_attribute, and __has_include.
15602
15603 2019-02-18 Martin Sebor <msebor@redhat.com>
15604
15605 * doc/invoke.texi (-Wreturn-type): Correct and expand.
15606
15607 2019-02-18 Martin Sebor <msebor@redhat.com>
15608
15609 PR middle-end/89294
15610 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
15611 expression.
15612 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
15613
15614 2019-02-18 Richard Biener <rguenther@suse.de>
15615
15616 PR tree-optimization/89296
15617 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
15618 of no-warning flag to cases that might emit the bogus warning.
15619
15620 2019-02-18 Jakub Jelinek <jakub@redhat.com>
15621
15622 PR bootstrap/88714
15623 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
15624 "q" constraint.
15625 * config/arm/vfp.md (*movdi_vfp): Likewise.
15626 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
15627 "q" constraint for operands[0].
15628
15629 PR target/89369
15630 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
15631 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
15632 pattern in a temporary buffer.
15633 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
15634 than 64-operands[2].
15635
15636 PR target/89361
15637 * config/s390/s390.c (s390_indirect_branch_attrvalue,
15638 s390_indirect_branch_settings): Define unconditionally.
15639 (s390_set_current_function): Likewise, but guard the whole body except
15640 the s390_indirect_branch_settings call with
15641 #if S390_USE_TARGET_ATTRIBUTE.
15642 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
15643
15644 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
15645 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
15646 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
15647 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
15648 HOST_WIDE_INT_1U instead of 1ULL.
15649 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
15650 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
15651 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
15652 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
15653 instead of 1UL.
15654 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
15655 instead of 1ul.
15656
15657 2019-02-18 Martin Jambor <mjambor@suse.cz>
15658
15659 PR tree-optimization/89209
15660 * tree-sra.c (create_access_replacement): New optional parameter
15661 reg_tree. Use it as a type if non-NULL and access type is not of
15662 a register type.
15663 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
15664 to create_access_replacement.
15665 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
15666 Check lacc is non-NULL before attempting to re-create it on the RHS.
15667
15668 2019-02-18 Martin Liska <mliska@suse.cz>
15669
15670 PR ipa/89306
15671 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
15672 by default.
15673 (symbol_table::free_edge): Recycle m_summary_id.
15674 * cgraph.h (get_summary_id): New.
15675 (symbol_table::release_symbol): Set m_summary_id to -1
15676 by default.
15677 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
15678 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
15679 function_summary to fast_function_summary.
15680 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
15681 * ipa-pure-const.c (class funct_state_summary_t):
15682 Switch from function_summary to fast_function_summary.
15683 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
15684 (class ipa_ref_opt_summary_t): Switch from function_summary
15685 to fast_function_summary.
15686 * symbol-summary.h (class function_summary_base): New class
15687 that is created from base of former function_summary.
15688 (function_summary_base::unregister_hooks): New.
15689 (class function_summary): Inherit from function_summary_base.
15690 (class call_summary_base): New class
15691 that is created from base of former call_summary.
15692 (class call_summary): Inherit from call_summary_base.
15693 (struct is_same): New.
15694 (class fast_function_summary): New summary class.
15695 (class fast_call_summary): New summary class.
15696 * vec.h (vec_safe_grow_cleared): New function.
15697
15698 2019-02-18 Martin Liska <mliska@suse.cz>
15699
15700 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
15701 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
15702 * doc/tm.texi: Document new target hook.
15703 * doc/tm.texi.in: Likewise.
15704 * target.def: Add new target macro.
15705 * gcc.c (find_fortran_preinclude_file): Do not search multilib
15706 suffixes.
15707
15708 2019-02-17 Alan Modra <amodra@gmail.com>
15709
15710 PR target/89271
15711 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
15712 output reg on add insn.
15713 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
15714
15715 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15716
15717 PR target/89372
15718 * config/i386/sse.md (ssedoublemode): Remove V4HI.
15719 (PMULHRSW): Likewise.
15720 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
15721 TARGET_AVX2.
15722 (ssse3_pmulhrswv4hi3): New expander.
15723
15724 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15725
15726 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
15727 MMX. Add isa attribute.
15728
15729 2019-02-16 Jakub Jelinek <jakub@redhat.com>
15730
15731 PR rtl-optimization/66152
15732 * builtins.h (c_readstr): Declare.
15733 * builtins.c (c_readstr): Remove forward declaration. Add
15734 null_terminated_p argument, if false, read all bytes from the
15735 string instead of stopping after '\0'.
15736 * expr.c (string_cst_read_str): New function.
15737 (store_expr): Use string_cst_read_str instead of
15738 builtin_strncpy_read_str. Try to store by pieces the whole
15739 exp_len first, and only if that fails, split it up into
15740 store by pieces followed by clear_storage. Formatting fix.
15741
15742 * config/i386/i386.md (*movqi_internal): Remove static from
15743 buf variable. Use output_asm_insn (buf, operands); return "";
15744 instead of return buf;.
15745 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
15746 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
15747 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
15748
15749 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15750
15751 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
15752 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
15753 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
15754 (CC1_SPEC): Likewise.
15755 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
15756
15757 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15758
15759 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
15760 the base address on 64-bit strict-alignment platforms.
15761
15762 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
15763
15764 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
15765
15766 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15767
15768 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
15769
15770 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
15771
15772 PR rtl-optimization/88308
15773 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
15774 on copied instruction.
15775
15776 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15777
15778 * final.c (insn_current_reference_address): Replace test on JUMP_P
15779 with test on jump_to_label_p.
15780 * config/visium/visium-passes.def: New file.
15781 * config/visium/t-visium (PASSES_EXTRA): Define.
15782 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
15783 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
15784 (TRAMPOLINE_ALIGNMENT): Define.
15785 * config/visium/visium.c (visium_option_override): Do not register
15786 the machine-specific reorg pass here.
15787 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
15788 for the GR6.
15789 (output_branch): Adjust threshold for long branch instruction.
15790 * config/visium/visium.md (cpu): Move around.
15791 (length): Adjust for the GR6.
15792
15793 2019-02-15 Richard Biener <rguenther@suse.de>
15794 Jakub Jelinek <jakub@redhat.com>
15795
15796 PR tree-optimization/89278
15797 * tree-loop-distribution.c: Include tree-eh.h.
15798 (generate_memset_builtin, generate_memcpy_builtin): Call
15799 rewrite_to_non_trapping_overflow on builtin->size before passing it
15800 to force_gimple_operand_gsi.
15801
15802 2019-02-15 Jakub Jelinek <jakub@redhat.com>
15803
15804 PR other/89342
15805 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
15806 optimize_debug.
15807 * opth-gen.awk: Likewise.
15808
15809 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15810
15811 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
15812 Enable MMX, SSE and SSE2 by default.
15813 * config/i386/i386.c (ix86_option_override_internal): Do not
15814 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
15815
15816 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15817
15818 PR rtl-optimization/89354
15819 * combine.c (make_extraction): Punt if extraction_mode is narrower
15820 than len bits.
15821
15822 2019-02-14 Maya Rashish <coypu@sdf.org>
15823
15824 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
15825 * config/netbsd-d.c: New file.
15826 * config/t-netbsd: Add netbsd-d.o
15827
15828 2018-02-14 Steve Ellcey <sellcey@marvell.com>
15829
15830 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
15831 affects_type_identity to true for aarch64_vector_pcs.
15832 (aarch64_comp_type_attributes): New function.
15833 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
15834
15835 2019-02-14 Tamar Christina <tamar.christina@arm.com>
15836
15837 PR target/88850
15838 * config/arm/iterators.md (ANY64): Add V4HF.
15839
15840 2019-02-14 Martin Liska <mliska@suse.cz>
15841
15842 PR rtl-optimization/89242
15843 * dce.c (delete_unmarked_insns): Call free_dominance_info we
15844 process a transformation.
15845
15846 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15847
15848 PR tree-optimization/89314
15849 * fold-const.c (fold_binary_loc): Cast strlen argument to
15850 const char * before dereferencing it. Formatting fixes.
15851
15852 PR middle-end/89284
15853 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
15854
15855 2019-02-13 Ian Lance Taylor <iant@golang.org>
15856
15857 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
15858 and set current index for other optimizations.
15859
15860 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
15861
15862 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
15863 nonimmediate_operand as operand 2 predicate.
15864 (vec_set<VF2_512_256:mode>_0): Ditto.
15865 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
15866 (*vec_concatv2si): Remove alternative 2.
15867 (*vec_concatv4si_0): Use vm constraint for alternative 0.
15868 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
15869 (vec_concatv2di): Split alternatives 4,5,6 to ...
15870 (*vec_concatv2di_0) ... new pattern.
15871
15872 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
15873
15874 PR target/89190
15875 * config/arm/arm.c (ldm_stm_operation_p) Set
15876 addr_reg_in_reglist correctly for first register.
15877 (load_multiple_sequence): Remove dead base check.
15878 (gen_ldm_seq): Correctly set write_back for Thumb-1.
15879
15880 2019-02-13 Tamar Christina <tamar.christina@arm.com>
15881
15882 PR target/88847
15883 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
15884 Expose as @aarch64_pred_mov.
15885 * config/aarch64/aarch64.c (aarch64_classify_address):
15886 Use expand_insn which legitimizes operands.
15887
15888 2019-02-13 Martin Liska <mliska@suse.cz>
15889
15890 * builtins.h (expand_builtin_with_bounds): Remove declaration.
15891 * calls.c (struct arg_data): Remove special_slot, pointer_arg
15892 and pointer_offset fields.
15893 (initialize_argument_information): Remove usage of dead
15894 fields.
15895 * cgraph.h (struct cgraph_thunk_info): Remove
15896 add_pointer_bounds_args.
15897 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
15898 fields.
15899 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
15900 fields.
15901 * config/i386/i386.c (ix86_function_arg_advance): Remove
15902 unrelated comment.
15903 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
15904 (def_builtin): Remove usage of dead fields.
15905 (ix86_add_new_builtins): Likewise.
15906 * ipa-fnsummary.c (compute_fn_summary): Likewise.
15907 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15908 (sem_function::init): Likewise.
15909 (sem_variable::merge): Likewise.
15910 * ipa-visibility.c (function_and_variable_visibility): Likewise.
15911 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
15912 * lto-cgraph.c (lto_output_node): Likewise.
15913 (lto_output_varpool_node): Likewise.
15914 (input_node): Likewise.
15915 (input_varpool_node): Likewise.
15916 * lto-streamer-out.c (lto_output): Likewise.
15917 * tree-inline.c (expand_call_inline): Remove usage of
15918 assign_stmts.
15919 * tree-inline.h (struct copy_body_data): Likewise.
15920 * varpool.c (varpool_node::dump): Likewise.
15921
15922 2019-02-13 Jakub Jelinek <jakub@redhat.com>
15923
15924 PR middle-end/89303
15925 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
15926 into pt->vars_contains_escaped_heap instead of setting
15927 pt->vars_contains_escaped_heap to it.
15928
15929 PR middle-end/89281
15930 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
15931 INTVAL (size), compare it to GET_MODE_MASK instead of
15932 1 << GET_MODE_BITSIZE.
15933
15934 PR target/89290
15935 * config/i386/predicates.md (x86_64_immediate_operand): Allow
15936 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
15937 -mcmodel=large.
15938
15939 2019-02-13 Martin Liska <mliska@suse.cz>
15940
15941 PR lto/88858
15942 * cfgrtl.c (remove_barriers_from_footer): New function.
15943 (try_redirect_by_replacing_jump): Use it.
15944 (cfg_layout_redirect_edge_and_branch): Likewise.
15945
15946 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15947
15948 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
15949 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
15950 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
15951 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
15952 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
15953 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
15954 New BU_CRYPTO_2.
15955 * config/rs6000/rs6000.c (builtin_function_type)
15956 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
15957 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
15958 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
15959 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
15960 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
15961
15962 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
15963
15964 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
15965 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
15966
15967 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
15968
15969 PR target/89229
15970 * config/i386/i386.md (*movoi_internal_avx): Revert revision
15971 268678 and revision 268657.
15972 (*movti_internal): Likewise.
15973
15974 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
15975
15976 PR target/89233
15977 * config/s390/s390.c (s390_decompose_address): Update comment.
15978 (s390_check_qrst_address): Reject invalid address forms after
15979 LRA.
15980
15981 2019-02-12 Martin Liska <mliska@suse.cz>
15982
15983 PR lto/88876
15984 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
15985 we need default values of funct_state for a function that
15986 is not optimized.
15987
15988 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
15989
15990 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
15991 the object to pick the size of stores on strict-alignment platforms.
15992
15993 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
15994 (*movdi_insn_sp32): Likewise.
15995 (*movdi_insn_sp64): Likewise.
15996
15997 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
15998
15999 PR lto/88677
16000 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
16001 types that needs constructiong.
16002 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
16003
16004 2019-02-12 Richard Biener <rguenther@suse.de>
16005
16006 PR tree-optimization/89253
16007 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
16008 duplicate the loop.
16009
16010 2019-02-11 David Malcolm <dmalcolm@redhat.com>
16011
16012 PR lto/88147
16013 * input.c (selftest::test_line_offset_overflow): New selftest.
16014 (selftest::input_c_tests): Call it.
16015
16016 2019-02-11 Martin Sebor <msebor@redhat.com>
16017
16018 PR tree-optimization/88771
16019 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
16020 when -Wstringop-overflow is set.
16021 (builtin_memref::builtin_memref): Adjust excessive upper bound
16022 only when lower bound is not excessive.
16023 (maybe_diag_overlap): Detect and diagnose excessive bounds via
16024 -Wstringop-ovefflow.
16025 (maybe_diag_offset_bounds): Rename...
16026 (maybe_diag_access_bounds): ...to this.
16027 (check_bounds_or_overlap): Adjust for name change above.
16028
16029 2019-02-11 Martin Sebor <msebor@redhat.com>
16030
16031 PR c++/87996
16032 * builtins.c (max_object_size): Move from here...
16033 * builtins.h (max_object_size): ...and here...
16034 * tree.c (max_object_size): ...to here...
16035 * tree.h (max_object_size): ...and here.
16036
16037 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
16038
16039 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
16040 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
16041 for correct semantics.
16042
16043 2019-02-11 Alan Modra <amodra@gmail.com>
16044
16045 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
16046 -mlongcall and -mpltseq.
16047 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
16048 (RS/6000 and PowerPC Options <-mpltseq>): Document.
16049 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
16050 * config/rs6000/sysv4.opt (mpltseq): New option.
16051 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
16052 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
16053 support is lacking. Don't allow -mpltseq with -mbss-plt.
16054 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
16055 -mpltseq given for ELFv1.
16056 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
16057 Only use UNSPEC_PLTSEQ for inline PLT calls.
16058 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
16059 use UNSPEC_PLTSEQ for inline PLT calls.
16060 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
16061 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
16062 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
16063 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16064 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16065 (pltseq_mtctr_<mode>): Likewise.
16066
16067 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16068
16069 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
16070 Solaris ld.
16071 * configure: Regenerate.
16072
16073 2019-02-11 Jakub Jelinek <jakub@redhat.com>
16074
16075 PR bootstrap/88714
16076 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
16077 instead of r.
16078
16079 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16080
16081 * function.c (assign_parm_setup_block): Use the stored
16082 size, not the passed size, when allocating stack-space,
16083 also for a parameter with alignment larger than
16084 MAX_SUPPORTED_STACK_ALIGNMENT.
16085
16086 2019-02-11 Martin Liska <mliska@suse.cz>
16087
16088 PR ipa/89009
16089 * ipa-cp.c (build_toporder_info): Remove usage of a param.
16090 * ipa-inline.c (inline_small_functions): Likewise.
16091 * ipa-pure-const.c (propagate_pure_const): Likewise.
16092 (propagate_nothrow): Likewise.
16093 * ipa-reference.c (propagate): Likewise.
16094 * ipa-utils.c (struct searchc_env): Remove unused field.
16095 (searchc): Always search across AVAIL_INTERPOSABLE.
16096 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
16097 the only called IPA pure const can properly not propagate
16098 across interposable boundary.
16099 * ipa-utils.h (ipa_reduced_postorder): Remove param.
16100
16101 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
16102
16103 * config/nds32/nds32.md (call_internal, call_value_internal,
16104 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
16105
16106 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16107
16108 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
16109 typo.
16110
16111 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
16112
16113 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
16114 in comments
16115
16116 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16117
16118 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
16119
16120 2019-02-10 Jakub Jelinek <jakub@redhat.com>
16121
16122 PR tree-optimization/89268
16123 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
16124 if preds is non-NULL.
16125
16126 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16127
16128 PR lto/89272
16129 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
16130 polymorphic types.
16131
16132 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16133
16134 * config/nds32/nds32.md (trap): New pattern.
16135
16136 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16137
16138 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
16139 dwarf span.
16140
16141 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16142
16143 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
16144 to split POST_INC.
16145
16146 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16147
16148 * ipa-visibility.c (localize_node): Also do not localize
16149 LDPR_PREVAILING_DEF_IRONLY_EXP.
16150
16151 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16152
16153 PR lto/87957
16154 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
16155 instead of type_with_linkage.
16156
16157 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16158
16159 PR ipa/88755
16160 * params.def (uninlined-function-insns, uninlined-function-time,
16161 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
16162 bound so we don't get overflows.
16163
16164 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16165
16166 * config/rs6000/rs6000-string.c (expand_compare_loop,
16167 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
16168 memcmp/strncmp.
16169
16170 2019-02-09 Jakub Jelinek <jakub@redhat.com>
16171
16172 PR middle-end/89246
16173 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16174 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
16175 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
16176
16177 2019-02-09 Alan Modra <amodra@gmail.com>
16178
16179 PR target/88343
16180 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
16181 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
16182 setup.
16183
16184 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
16185
16186 PR middle-end/88560
16187 * lra-constraints.c (process_alt_operands): Don't increase reject
16188 for memory when offset memory is required.
16189
16190 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
16191
16192 * config/s390/vector.md: Implement vector copysign.
16193
16194 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16195
16196 * expr.c (expand_constructor): Correct indentations.
16197
16198 2019-02-08 Richard Biener <rguenther@suse.de>
16199
16200 PR tree-optimization/89247
16201 * tree-if-conv.c: Include tree-cfgcleanup.h.
16202 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
16203 (tree_if_conversion): Pass through predicate vector.
16204 (pass_if_conversion::execute): Do CFG cleanup and SSA update
16205 inline, see if any if-converted loops we refrece in
16206 LOOP_VECTORIZED calls vanished and fixup.
16207 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
16208
16209 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
16210
16211 * config/s390/constraints.md (jdd): New constraint.
16212
16213 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16214
16215 PR target/89229
16216 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
16217 upper 16 vector registers without TARGET_AVX512VL.
16218 (*movti_internal): Likewise.
16219
16220 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16221
16222 PR rtl-optimization/89234
16223 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
16224 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
16225 (copy_reg_eh_region_note_backward): Likewise.
16226
16227 2019-02-08 Richard Biener <rguenther@suse.de>
16228
16229 PR middle-end/89223
16230 * tree-data-ref.c (initialize_matrix_A): Fail if constant
16231 doesn't fit in HWI.
16232 (analyze_subscript_affine_affine): Handle failure from
16233 initialize_matrix_A.
16234
16235 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16236
16237 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
16238 cfun everywhere.
16239
16240 2019-02-07 David Malcolm <dmalcolm@redhat.com>
16241
16242 PR tree-optimization/86637
16243 PR tree-optimization/89235
16244 * tree-vect-loop.c (optimize_mask_stores): Add an
16245 auto_purge_vect_location sentinel to ensure that vect_location is
16246 purged on exit.
16247 * tree-vectorizer.c
16248 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
16249 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
16250 to ensure that vect_location is purged on exit.
16251 (pass_slp_vectorize::execute): Likewise, replacing the manual
16252 reset.
16253 * tree-vectorizer.h (class auto_purge_vect_location): New class.
16254
16255 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16256
16257 * config/aarch64/iterators.md (max_opp): New code_attr.
16258 (USMAX): New code iterator.
16259 * config/aarch64/predicates.md (aarch64_smin): New predicate.
16260 (aarch64_smax): Likewise.
16261 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
16262 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
16263 MINUS (MAX MIN).
16264
16265 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
16266
16267 PR target/89229
16268 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
16269 for TARGET_AVX512VL.
16270 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
16271
16272 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
16273
16274 * config/s390/s390-builtin-types.def: Add new types.
16275 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
16276 (s390_vec_xlw4): Make the memory operand into a const pointer.
16277 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
16278 float.
16279 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
16280 a new vector type with the alignment of the scalar memory operand.
16281
16282 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
16283 Jakub Jelinek <jakub@redhat.com>
16284
16285 PR bootstrap/88714
16286 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
16287 arm_count_ldrdstrd_insns): New declarations.
16288 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
16289 MINUS.
16290 (valid_operands_ldrd_strd): New function.
16291 (arm_count_ldrdstrd_insns): New function.
16292 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
16293 sets instead of single DImode set and define new insns to match this.
16294
16295 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16296
16297 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
16298 Make it a C initializer.
16299
16300 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16301
16302 PR/target 88850
16303 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
16304
16305 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16306
16307 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
16308 Use neon_dot<q> for type.
16309 (neon_<sup>dot_lane<vsi2qi>): Likewise.
16310
16311 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16312
16313 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
16314 Use neon_dot<q> for type.
16315 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
16316 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
16317
16318 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
16319
16320 PR rtl-optimization/89225
16321 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
16322 sizes check.
16323
16324 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
16325
16326 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
16327 after restoring registers saved to allocate the frame on Windows.
16328
16329 2019-02-06 Richard Biener <rguenther@suse.de>
16330
16331 PR tree-optimization/89182
16332 * graphite.h (cached_scalar_evolution_in_region): Declare.
16333 * graphite.c (struct seir_cache_key): New.
16334 (struct sese_scev_hash): Likewise.
16335 (seir_cache): New global.
16336 (cached_scalar_evolution_in_region): New function.
16337 (graphite_transform_loops): Allocate and release seir_cache.
16338 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
16339 cached_scalar_evolution_in_region.
16340 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16341 Simplify.
16342 (scop_detection::graphite_can_represent_expr: Use
16343 cached_scalar_evolution_in_region.
16344 (scop_detection::stmt_simple_for_scop_p): Likewise.
16345 (find_params_in_bb): Likewise.
16346 (gather_bbs::before_dom_children): Likewise.
16347 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
16348 (add_loop_constraints): Likewise.
16349
16350 2019-02-06 Jakub Jelinek <jakub@redhat.com>
16351
16352 PR middle-end/89210
16353 * fold-const-call.c (fold_const_vec_convert): Pass true as last
16354 operand to new_unary_operation only if both element types are integral
16355 and it isn't a widening conversion. Return NULL_TREE if
16356 new_unary_operation failed.
16357
16358 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
16359
16360 PR target/88856
16361 * config/s390/s390.md: Remove load and test FP splitter.
16362
16363 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16364
16365 PR target/89112
16366 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
16367 expand_compare_loop, expand_block_compare_gpr,
16368 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
16369 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
16370 #include "profile-count.h" and "predict.h" for types and functions
16371 needed to work with REG_BR_PROB notes.
16372
16373 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16374
16375 PR target/89112
16376 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
16377 for the long branch case.
16378
16379 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16380
16381 PR target/89188
16382 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
16383 can throw, non-call exceptions are enabled and we can't delete
16384 dead exceptions or alter cfg. Set must_clean if
16385 delete_insn_and_edges returns true, don't set it blindly for calls.
16386 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
16387
16388 PR rtl-optimization/89195
16389 * combine.c (make_extraction): For MEMs, don't extract bytes outside
16390 of the original MEM.
16391
16392 2019-02-05 Martin Liska <mliska@suse.cz>
16393
16394 PR gcov-profile/89000
16395 * gcov.c (function_summary): Remove argument.
16396 (file_summary): New function.
16397 (print_usage): Replace tabs with spaces.
16398 (generate_results): Use new function file_summary.
16399
16400 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16401
16402 PR target/89186
16403 * optabs.c (prepare_cmp_insn): Pass x and y to
16404 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
16405
16406 2019-02-05 Richard Biener <rguenther@suse.de>
16407
16408 PR middle-end/89150
16409 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
16410 (struct bitmap_element): Drop chain_prev so we properly recurse on
16411 the prev member, supporting tree views.
16412 (struct bitmap_head): GTY skip the obstack member.
16413
16414 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
16415
16416 PR c/88698
16417 * doc/extend.texi (Vector Extensions): Add an example of using vector
16418 types together with x86 intrinsics.
16419
16420 2019-02-04 Alan Modra <amodra@gmail.com>
16421
16422 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
16423 str[] size to 160, and comment.
16424
16425 2019-02-04 Alan Modra <amodra@gmail.com>
16426
16427 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
16428 (rs6000_pltseq_template): Guard output of TLS markers with
16429 TARGET_TLS_MARKERS.
16430 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
16431 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
16432 to use inline PLT sequences.
16433 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16434 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16435 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
16436
16437 2019-02-04 Martin Liska <mliska@suse.cz>
16438
16439 PR ipa/88985
16440 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
16441 out when ipa_fn_summaries does not contain entry for callee.
16442
16443 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
16444
16445 * config/sparc/sparc.h: Remove superfluous blank lines.
16446 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
16447 (got_register_rtx): ...this.
16448 (sparc_got): Adjust to above renaming.
16449 (sparc_tls_got): Likewise.
16450 (sparc_delegitimize_address): Likewise.
16451 (sparc_output_mi_thunk): Likewise.
16452 (sparc_init_pic_reg): Likewise.
16453 (save_local_or_in_reg_p): Fix test on the GOT register.
16454 (USE_HIDDEN_LINKONCE): Move around.
16455 (get_pc_thunk_name): Likewise.
16456 (gen_load_pcrel_sym): Likewise.
16457 (load_got_register): Likewise.
16458
16459 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
16460
16461 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
16462 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
16463
16464 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16465
16466 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
16467 into consideration.
16468
16469 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16470
16471 * config.gcc (with_nds32_lib, glibc):
16472 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
16473 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
16474 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
16475
16476 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
16477
16478 PR target/89071
16479 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
16480 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
16481 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
16482 (*rcpsf2_sse): Ditto.
16483 (*rsqrtsf2_sse): Ditto.
16484 (sse4_1_round<mode<2): Ditto.
16485
16486 2019-02-03 Richard Biener <rguenther@suse.de>
16487
16488 PR debug/87295
16489 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
16490 orig.
16491
16492 2019-02-02 Jakub Jelinek <jakub@redhat.com>
16493
16494 PR middle-end/87887
16495 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16496 Punt with warning on aggregate return or argument types. Ignore
16497 type/mode checking for uniform arguments.
16498
16499 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
16500
16501 * combine.c (try_combine): Do not print "Can't combine" messages unless
16502 printing failed combination attempts.
16503
16504 2019-02-01 Martin Jambor <mjambor@suse.cz>
16505
16506 PR hsa/87863
16507 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
16508 segment and global segment variables before making them static.
16509
16510 2019-02-01 Martin Jambor <mjambor@suse.cz>
16511
16512 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
16513 missed optimization dump with dump_enabled_p.
16514
16515 2019-02-01 Richard Biener <rguenther@suse.de>
16516
16517 PR middle-end/88597
16518 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
16519 the instantiate cache.
16520 (instantiate_scev_binary): Elide second operand procesing
16521 if equal to the first.
16522 * tree-chrec.c (chrec_contains_symbols): Add visited set.
16523 (chrec_contains_undetermined): Likewise.
16524 (tree_contains_chrecs): Likewise.
16525
16526 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
16527
16528 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
16529
16530 2019-02-01 Jakub Jelinek <jakub@redhat.com>
16531
16532 PR tree-optimization/89143
16533 * wide-int-range.h (wide_int_range_absu): Declare.
16534 * wide-int-range.cc (wide_int_range_absu): New function.
16535 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
16536
16537 PR tree-optimization/88107
16538 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
16539 instead of assertion that eh_region_outermost is non-NULL, if it
16540 is NULL, set *ALL to true and return NULL.
16541 (move_sese_region_to_fn): Adjust caller, if all is set, call
16542 duplicate_eh_regions with NULL region.
16543
16544 2019-02-01 Richard Biener <rguenth@suse.de>
16545
16546 PR rtl-optimization/88593
16547 * mode-switching.c (optimize_mode_switching): Free dominators before
16548 calling cleanup_cfg.
16549
16550 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16551
16552 PR tree-optimization/88932
16553 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
16554
16555 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16556
16557 PR middle-end/89137
16558 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
16559 bogus clang warning.
16560
16561 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
16562
16563 PR target/89071
16564 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
16565 alternative to avoid partial SSE register stall for TARGET_AVX.
16566 (truncdfsf2): Ditto.
16567 (sse4_1_round<mode>2): Ditto.
16568
16569 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
16570
16571 PR tree-optimization/89008
16572 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
16573 process anything of the form X * 0.
16574
16575 2019-01-31 Richard Biener <rguenther@suse.de>
16576
16577 PR tree-optimization/89135
16578 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
16579 with abnormal preds.
16580
16581 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16582
16583 PR sanitizer/89124
16584 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
16585 always_inline callees into no_sanitize_address callers.
16586
16587 2019-01-31 Richard Biener <rguenther@suse.de>
16588
16589 PR rtl-optimization/89115
16590 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
16591
16592 2019-01-30 Martin Sebor <msebor@redhat.com>
16593
16594 PR other/89106
16595 * doc/extend.texi (cast to a union): Correct and expand.
16596
16597 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
16598
16599 PR rtl-optimization/87246
16600 * lra-constraints.c (simplify_operand_subreg): Reload memory
16601 in subreg if the address became invalid.
16602
16603 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
16604
16605 PR target/87064
16606 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
16607 Disable for little-endian.
16608
16609 2019-01-30 Richard Biener <rguenther@suse.de>
16610
16611 PR rtl-optimization/89115
16612 * opts.c (default_options_optimization): Reduce
16613 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
16614 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
16615 to the default.
16616
16617 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
16618
16619 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
16620 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
16621 type of vector element when vec_extract is implemented by direct
16622 move.
16623
16624 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
16625
16626 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
16627
16628 2019-01-30 Richard Biener <rguenther@suse.de>
16629
16630 PR tree-optimization/89111
16631 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
16632 canonicalization to appropriately sized access types.
16633
16634 2019-01-30 Jakub Jelinek <jakub@redhat.com>
16635
16636 PR c++/89105
16637 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
16638 for arguments to functions that are TU-local and shouldn't be
16639 referenced by assembly.
16640
16641 2019-01-30 Ulrich Drepper <drepper@redhat.com>
16642
16643 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
16644 after '='.
16645
16646 2019-01-29 Martin Sebor <msebor@redhat.com>
16647
16648 PR c/88956
16649 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
16650
16651 2019-01-29 Jakub Jelinek <jakub@redhat.com>
16652
16653 PR c++/66676
16654 PR ipa/89104
16655 * omp-simd-clone.c (simd_clone_clauses_extract)
16656 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
16657 OMP_CLAUSE_ALIGNED_ALIGNMENT.
16658
16659 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
16660
16661 * config.gcc: Force .init_array for ARC.
16662
16663 2019-01-29 Richard Biener <rguenther@suse.de>
16664
16665 PR debug/87295
16666 * dwarf2out.c (collect_skeleton_dies): New helper.
16667 (copy_decls_for_unworthy_types): Call it.
16668 (build_abbrev_table): Assert we do not try to replace
16669 DW_AT_signature refs with local refs.
16670
16671 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16672
16673 PR middle-end/89002
16674 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
16675 for lastprivate/linear IV, push gimplify context around gimplify_assign
16676 and, if it needed any temporaries, pop it into a gimple bind around the
16677 sequence.
16678
16679 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16680
16681 * common.opt (-Wattribute-alias): Remove "no-" from name.
16682 Make -Wattribute-alias command line option and
16683 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
16684
16685 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16686
16687 PR target/89073
16688 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
16689 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
16690 x86 ISA options.
16691 (bmi2): Add missing @opindex.
16692 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
16693 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
16694 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
16695 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
16696 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
16697 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
16698 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
16699 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
16700 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
16701 xsavec, xsaveopt and xsaves options.
16702
16703 2019-01-28 Richard Biener <rguenther@suse.de>
16704
16705 PR debug/89076
16706 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
16707 support removal.
16708
16709 2019-01-28 Richard Biener <rguenther@suse.de>
16710
16711 PR tree-optimization/88739
16712 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16713 BIT_FIELD_REFs only are applied to mode-precision operands
16714 when they are integral.
16715 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
16716 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
16717 BIT_FIELD_REFs of non-mode-precision integral operands.
16718
16719 2019-01-27 Jakub Jelinek <jakub@redhat.com>
16720
16721 PR target/87214
16722 * config/i386/sse.md
16723 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
16724 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
16725 first constants in pairs are multiples of 2. Formatting fixes.
16726 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
16727 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
16728 first constants in each quadruple are multiples of 4. Formatting fixes.
16729
16730 2019-01-26 Martin Jambor <mjambor@suse.cz>
16731
16732 PR ipa/88933
16733 * tree-inline.c: Include tree-cfgcleanup.h.
16734 (delete_unreachable_blocks_update_callgraph): Move...
16735 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
16736 ...here, make externally visible, make second argument bool, adjust
16737 all callers.
16738 * tree-cfgcleanup.c: Include cgraph.h.
16739 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
16740 Declare.
16741 * ipa-prop.c: Include tree-cfgcleanup.h.
16742 (ipcp_transform_function): Call
16743 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
16744
16745 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
16746
16747 PR rtl-optimization/88846
16748 * ira.c (process_set_for_memref_referenced_p): New.
16749 (memref_referenced_p): Add new param. Use
16750 process_set_for_memref_referenced_p. Add new switch cases.
16751 (memref_used_between_p): Pass new arg to memref_referenced_p.
16752
16753 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
16754
16755 PR target/88469
16756 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
16757 argument ABI_BREAK. Set to true if the calculated alignment has
16758 changed in gcc-9. Check bit-fields for their base type alignment.
16759 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
16760 (aarch64_function_arg_boundary): Likewise.
16761 (aarch64_gimplify_va_arg_expr): Likewise.
16762
16763 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16764
16765 PR middle-end/89037
16766 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
16767 instead of accessing TREE_INT_CST_ELT directly.
16768
16769 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
16770
16771 * doc/sourcebuild.texi (Environment attributes): Add fenv and
16772 fenv_exceptions description.
16773
16774 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
16775
16776 PR rtl-optimization/87763
16777 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
16778 Allow SUBREG when matching CC_NZmode compare.
16779
16780 2019-01-25 Richard Biener <rguenther@suse.de>
16781
16782 PR tree-optimization/89049
16783 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16784 Look at the pattern stmt to determine if the stmt is vectorized.
16785
16786 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16787
16788 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
16789 (pred_mov<mode>): Handle all-register forms using both a new
16790 alternative and a split.
16791
16792 2019-01-25 Richard Biener <rguenther@suse.de>
16793
16794 PR tree-optimization/86865
16795 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16796 Reject non-do-while loops.
16797
16798 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
16799
16800 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
16801 * config/rs6000/constraints.md (Q constraint): Use REG_P.
16802 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
16803 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16804 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
16805 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16806 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
16807 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
16808 vlogical_operand, gpc_reg_operand, int_reg_operand,
16809 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
16810 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
16811 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
16812 (save_world_operation, restore_world_operation, lmw_operation,
16813 stmw_operation): Use MEM_P and REG_P.
16814 (tie_operand): Use MEM_P.
16815 (vrsave_operation, crsave_operation): Use REG_P.
16816 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
16817 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
16818 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
16819 (call_operand): Use HARD_REGISTER_P.
16820 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
16821 Use CONST_INT_P.
16822 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
16823 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
16824 quad_aligned_load_p, replace_swapped_aligned_store,
16825 recombine_lvx_pattern, replace_swapped_aligned_load,
16826 recombine_stvx_pattern): Use MEM_P.
16827 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
16828 Use MEM_P and SYMBOL_REF_P.
16829 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
16830 (insn_is_swappable_p): Use REG_P and MEM_P.
16831 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
16832 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
16833 Use CONST_INT_P.
16834 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
16835 Use CONST_DOUBLE_P.
16836 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
16837 CONST_WIDE_INT_P.
16838 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
16839 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
16840 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
16841 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
16842 reg_or_subregno:
16843 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16844 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
16845 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
16846 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
16847 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
16848 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
16849 rs6000_split_logical_di): Use CONST_INT_P.
16850 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
16851 REG_P and SYMBOL_REF_P.
16852 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
16853 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
16854 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
16855 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
16856 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
16857 (small_data_operand, print_operand_address): Use CONST_INT_P and
16858 SYMBOL_REF_P.
16859 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
16860 (rs6000_init_hard_regno_mode_ok, direct_move_p):
16861 Use HARD_REGISTER_NUM_P.
16862 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
16863 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
16864 SUBREG_P and SYMBOL_REF_P.
16865 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
16866 and HARD_REGISTER_NUM_P.
16867 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
16868 reg_or_subregno.
16869 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
16870 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
16871 MEM_P and REG_P.
16872 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
16873 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
16874 find_addr_reg): Use REG_P.
16875 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
16876 (rs6000_emit_le_vsx_move): Use SUBREG_P.
16877 (offsettable_ok_by_alignment, constant_pool_expr_p,
16878 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
16879 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
16880 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
16881 rs6000_assemble_integer, create_TOC_reference,
16882 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
16883 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
16884 (rs6000_split_vec_extract_var): Use reg_or_subregno.
16885 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16886 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16887 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16888 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16889 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
16890 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
16891 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
16892 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
16893 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
16894 and cbranch<mode>4): Use CONST_INT_P.
16895 (multiple define_splits): Use REG_P and SUBREG_P.
16896 (define_expands call, call_value): Use MEM_P.
16897 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
16898 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
16899 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
16900 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
16901 and HARD_REGISTER_NUM_P.
16902 (multiple define_splits): Use HARD_REGISTER_NUM_P.
16903
16904 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
16905
16906 PR rtl-optimization/88948
16907 * rtl.h (prepare_copy_insn): New prototype.
16908 * gcse.c (prepare_copy_insn): New function, split out from
16909 process_insert_insn.
16910 (process_insert_insn): Use prepare_copy_insn.
16911 * store-motion.c (replace_store_insn): Use prepare_copy_insn
16912 instead of gen_move_insn.
16913
16914 2019-01-24 Jakub Jelinek <jakub@redhat.com>
16915
16916 PR debug/89006
16917 * config/i386/i386.c (ix86_pic_register_p): Return true for
16918 UNSPEC_SET_GOT too.
16919
16920 PR tree-optimization/88964
16921 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
16922 punt if HONOR_SNANS (chrec).
16923
16924 PR middle-end/89015
16925 * tree-nested.c (convert_nonlocal_reference_stmt,
16926 convert_local_reference_stmt, convert_tramp_reference_stmt,
16927 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
16928 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
16929 or GIMPLE_OMP_TASK.
16930
16931 PR tree-optimization/89027
16932 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
16933 for "omp simd array" variables.
16934
16935 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
16936
16937 PR target/88469
16938 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
16939 force the alignment of m_val.
16940
16941 2019-01-24 Richard Biener <rguenther@suse.de>
16942
16943 PR lto/87187
16944 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
16945 When in "legacy" debug mode make sure to reset self-origins.
16946
16947 2019-01-24 Martin Liska <mliska@suse.cz>
16948
16949 PR gcov-profile/88994
16950 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
16951 result will be always smaller or equal to the original.
16952 * gcov.c (mangle_name): Fix else branch where we should
16953 also copy to PTR and shift the pointer.
16954
16955 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
16956
16957 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
16958 * vr-values.c (find_case_label_ranges): Fix a comment typo.
16959
16960 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
16961
16962 * common/config/i386/i386-common.c
16963 (OPTION_MASK_ISA_ENQCMD_SET,
16964 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
16965 (ix86_handle_option): Handle -menqcmd.
16966 * config.gcc (enqcmdintrin.h): New header file.
16967 * config/i386/cpuid.h (bit_ENQCMD): New bit.
16968 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16969 -menqcmd.
16970 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
16971 function type.
16972 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
16973 __builtin_ia32_enqcmds): New builtins.
16974 * config/i386/i386-c.c (__ENQCMD__): New macro.
16975 * config/i386/i386-option.c (ix86_target_string): Add
16976 -menqcmd.
16977 (ix86_valid_target_attribute_inner_p): Likewise.
16978 * config/i386/i386-expand.c
16979 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
16980 IX86_BUILTIN_ENQCMDS.
16981 * config/i386/i386.h (TARGET_ENQCMD): New.
16982 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
16983 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
16984 (movdir64b_<mode>): Parameterize to enable share expansion code
16985 with ENQCMD in function ix86_expand_builtin.
16986 * config/i386/i386.opt: Add -menqcmd.
16987 * config/i386/immintrin.h: Include enqcmdintrin.h.
16988 * config/i386/enqcmdintrin.h: New intrinsic file.
16989 * doc/invoke.texi: Add -menqcmd.
16990
16991 2019-01-23 Bin Cheng <bin.cheng@arm.com>
16992 Steve Ellcey <sellcey@marvell.com>
16993
16994 PR target/85711
16995 * recog.c (address_operand): Return false on wrong mode for address.
16996 (constrain_operands): Check for mode with 'p' constraint.
16997
16998 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
16999
17000 PR target/88998
17001 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
17002 Disparage MMX alternative.
17003 (sse2_cvtpd2pi): Ditto.
17004 (sse2_cvttpd2pi): Ditto.
17005
17006 2019-01-23 David Malcolm <dmalcolm@redhat.com>
17007
17008 PR driver/89014
17009 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
17010 use-after-free of the result of
17011 aarch64_get_extension_string_for_isa_flags.
17012
17013 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17014
17015 PR c/44715
17016 * doc/extend.texi: Document break and continue behavior in
17017 statement expressions.
17018
17019 2019-01-23 Richard Biener <rguenther@suse.de>
17020
17021 PR tree-optimization/89008
17022 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
17023 not leave another stray operand.
17024
17025 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17026
17027 * BASE-VER: Bump to 9.0.1.
17028
17029 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
17030
17031 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
17032 thunk that returns by reference, use the type of the return object
17033 of the thunk instead of that of the alias to build the dereference.
17034
17035 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
17036
17037 * config/arc/atomic.md: Add operand to DMB instruction.
17038
17039 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17040
17041 PR tree-optimization/88964
17042 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
17043 build_zero_cst instead of build_int_cst. Return false for loop
17044 invariants which honor signed zeros.
17045
17046 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
17047
17048 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
17049
17050 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17051
17052 PR target/88965
17053 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
17054 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
17055 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
17056
17057 PR middle-end/88968
17058 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
17059 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
17060
17061 PR target/87064
17062 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
17063 Disable for little endian.
17064
17065 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17066
17067 PR target/88469
17068 * config/arm/arm.c (arm_needs_double_word_align): Check
17069 DECL_BIT_FIELD_TYPE.
17070
17071 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
17072 H.J. Lu <hongjiu.lu@intel.com>
17073
17074 PR target/88909
17075 * config/i386/i386-builtin.def: Add mask2 to all builtin
17076 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
17077 SPECIAL_ARGS.
17078 * config/i386/i386.c (BDESC): Add mask2 to the definition.
17079 (BDESC_FIRST): Likewise.
17080 (define_builtin): Add an argument for mask2. Updated to handle
17081 both ix86_isa_flags and ix86_isa_flags2.
17082 (define_builtin_const): Likewise.
17083 (define_builtin_pure): Likewise.
17084 (define_builtin2): Deleted.
17085 (define_builtin_const2): Likewise.
17086 (builtin_description): Add a member, mask2.
17087 (bdesc_*): Add mask2 to builtin initializations.
17088 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
17089 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
17090 support.
17091 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
17092
17093 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
17094
17095 PR target/88954
17096 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
17097 noplt attribute.
17098
17099 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17100
17101 PR target/88469
17102 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
17103 alignment is dominated by a bitfield with 64-bit aligned base type.
17104 (arm_function_arg): Emit a warning if the alignment has changed since
17105 earlier GCC releases.
17106 (arm_function_arg_boundary): Likewise.
17107 (arm_setup_incoming_varargs): Likewise.
17108
17109 2019-01-22 Richard Biener <rguenther@suse.de>
17110
17111 PR tree-optimization/88862
17112 * graphite-scop-detection.c
17113 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
17114
17115 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
17116
17117 * doc/extend.tex (AMD GCN Function Attributes): New section.
17118 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
17119 * doc/invoke.texi (AMD GCN Options): New section.
17120 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
17121
17122 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
17123
17124 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
17125 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
17126
17127 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17128
17129 PR tree-optimization/88044
17130 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
17131 is false in the first iteration, but !every_iteration, return false
17132 instead of true with niter->niter zero.
17133
17134 PR rtl-optimization/88904
17135 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
17136 any nonequal registers before processing BB_END (b).
17137
17138 PR target/88905
17139 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
17140 GET_MODE (op0).
17141 (expand_binop_directly, expand_doubleword_clz,
17142 expand_doubleword_popcount, expand_ctz, expand_ffs,
17143 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
17144
17145 PR rtl-optimization/49429
17146 PR target/49454
17147 PR rtl-optimization/86334
17148 PR target/88906
17149 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
17150 addressable from here...
17151 (emit_block_op_via_libcall): ... to here.
17152
17153 2019-01-22 Richard Biener <rguenther@suse.de>
17154
17155 * tree-vect-loop.c (vect_analyze_loop_operations): Use
17156 auto_vec for cost vector to fix memleak.
17157 (vectorize_fold_left_reduction): Properly gather SLP defs.
17158 (vectorizable_comparison): Do not swap operands to properly
17159 gather SLP defs.
17160
17161 2019-01-22 Alan Modra <amodra@gmail.com>
17162
17163 PR target/88614
17164 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
17165 stays a reg. Allow a const_int.
17166 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
17167 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
17168 (IS_NOMARK_TLSGETADDR): Define.
17169 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
17170 (rs6000_output_tlsargs): New function.
17171 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
17172 __tls_get_addr call takes an arg.
17173 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
17174 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
17175 delete split..
17176 (call_value_nonlocal_sysv): ..or here, delete split.
17177 (tls_gdld_nomark): Delete.
17178 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
17179 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
17180 (call_value_nonlocal_sysv): Likewise.
17181 (call_value_nonlocal_sysv_secure): Likewise.
17182 (call_value_nonlocal_aix): Likewise.
17183 (call_value_indirect_aix): Likewise.
17184 (call_value_indirect_elfv2): Likewise.
17185 (call_value_local32, call_value_local64): Disable for no-mark tls.
17186 (call_value_local_aix): Likewise.
17187
17188 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
17189
17190 PR target/88938
17191 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
17192 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
17193
17194 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
17195
17196 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
17197 string contents as hash_map keys.
17198
17199 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17200
17201 PR c/88928
17202 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
17203 for rvalue context. Handle rvalues correctly. Use min_align_of_type
17204 instead of TYPE_ALIGN.
17205 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
17206 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
17207 pointer from TYPE_STUB_DECL.
17208
17209 2019-01-21 Richard Biener <rguenther@suse.de>
17210
17211 PR tree-optimization/88934
17212 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
17213 at the possibly non-constant operand.
17214 (vect_get_constant_vectors): Adjust.
17215
17216 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
17217
17218 PR target/71659
17219 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
17220 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
17221 instead of _X86INTRIN_H_INCLUDED.
17222 * onfig/i386/clwbintrin.h: Likewise.
17223 * config/i386/pkuintrin.h: Likewise.
17224 * config/i386/prfchwintrin.h: Likewise.
17225 * config/i386/rdseedintrin.h: Likewise.
17226 * config/i386/wbnoinvdintrin.h: Likewise.
17227 * config/i386/xsavecintrin.h: Likewise.
17228 * config/i386/xsavesintrin.h: Likewise.
17229 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
17230 * config/i386/xsaveintrin.h: Likewise.
17231 * config/i386/xsaveoptintrin.h: Likewise.
17232 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
17233 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
17234 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
17235 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
17236 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
17237 * config/i386/immintrin.h: Here.
17238
17239 2019-01-20 Martin Jambor <mjambor@suse.cz>
17240
17241 PR ipa/87615
17242 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
17243 with aa_walk_budget.
17244 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
17245 aa_walk_budget_p parameter.
17246 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
17247 walk. Updated all callers.
17248 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
17249 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
17250 unmodified_parm.
17251 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
17252 parameter info. Extract info from fbi. Pass fbi to recursive calls
17253 and to unmodified_parm.
17254 (phi_result_unknown_predicate): New parameter fbi, removed parameter
17255 info, updated call to will_be_nonconstant_expr_predicate.
17256 (param_change_prob): New parameter fbi, limit AA walking.
17257 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
17258 calls to various above functions.
17259 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
17260 parameter. Use it to limit AA walking.
17261 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
17262 fbi, limit AA walk.
17263 (detect_type_change): New parameter fbi, pass it on to
17264 detect_type_change_from_memory_writes.
17265 (detect_type_change_ssa): Likewise.
17266 (aa_overwalked): Removed.
17267 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
17268 accordingly, adjust to the neew AA limiting scheme.
17269 (parm_ref_data_preserved_p): Likewise.
17270 (ipa_compute_jump_functions_for_edge): Adjust call to
17271 get_dynamic_type.
17272 (ipa_analyze_call_uses): Likewise.
17273 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
17274 (ipa_analyze_node): Initialize aa_walk_budget.
17275 (ipcp_transform_function): Likewise.
17276 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
17277 to get_dynamic_type.
17278
17279 2019-01-19 Jakub Jelinek <jakub@redhat.com>
17280
17281 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
17282 outside of #if CHECKING_P code.
17283
17284 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
17285
17286 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
17287 New function, split out from...
17288 (loop_versioning::analyze_stride): ...here.
17289 (loop_versioning::find_per_loop_multiplication): Use gassign.
17290 (loop_versioning::analyze_term_using_scevs): Return a success code.
17291 (loop_versioning::analyze_arbitrary_term): New function.
17292 (loop_versioning::analyze_address_fragment): Use
17293 analyze_arbitrary_term if all else fails.
17294
17295 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
17296
17297 PR target/88892
17298 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
17299 operands.
17300
17301 2019-01-18 Richard Biener <rguenther@suse.de>
17302
17303 PR tree-optimization/88903
17304 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
17305 scalar stmts a SLP shift amount is composed of when detecting
17306 shifts by scalars.
17307
17308 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
17309
17310 PR target/88799
17311 * config/arm/arm-cpus.in (mp): New feature.
17312 (sec): New feature.
17313 (fgroup ARMv7ve): Add mp and sec features.
17314 (arch armv7-a): Add options to allow mp and sec extensions.
17315 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
17316 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
17317 extenstions to the base architecture.
17318 (cpu cortex-a8): Add sec extension to the base architecture.
17319 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
17320 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
17321 variants down to the base v7-a varaint.
17322 * config/arm/t-multilib (v7_a_arch_variants): New variable.
17323 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
17324 of permitted extensions for -march=armv7-a and for
17325 -mcpu=generic-armv7-a.
17326
17327 2019-01-18 Martin Liska <mliska@suse.cz>
17328
17329 * params.def: Fix comment.
17330 * tree-profile.c (gimple_init_gcov_profiler): Bump function
17331 name.
17332 (gimple_gen_ic_func_profiler): Likewise.
17333
17334 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17335
17336 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
17337 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
17338 and put in error checks for stack protector guard options.
17339 (aarch64_stack_protect_guard): New.
17340 (TARGET_STACK_PROTECT_GUARD): Define.
17341 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
17342 (reg_stack_protect_address<mode>): New.
17343 (stack_protect_set): Adjust for SSP_GLOBAL.
17344 (stack_protect_test): Likewise.
17345 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
17346 (-mstack-protector-guard): Likewise.
17347 (-mstack-protector-guard-offset): Likewise.
17348
17349 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17350
17351 PR tree-optimization/86214
17352 * tree-inline.h (struct copy_body_data): Add
17353 add_clobbers_to_eh_landing_pads member.
17354 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
17355 (copy_edges_for_bb): Call it if EH edge destination is <
17356 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
17357 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
17358 if flag_stack_reuse != SR_NONE and clear it afterwards.
17359
17360 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
17361
17362 PR target/85596
17363 * doc/install.texi (with-multilib-list): Document for aarch64.
17364
17365 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17366
17367 PR target/88734
17368 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
17369 (("..."))) with ("...").
17370
17371 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17372
17373 * doc/extend.texi (Built-in Functions for Memory Model Aware
17374 Atomic Operations): Document atomic fetch and nand.
17375
17376 2019-01-18 Martin Liska <mliska@suse.cz>
17377 Richard Biener <rguenther@suse.de>
17378
17379 PR middle-end/88587
17380 * cgraph.h (create_version_clone_with_body): Add new argument
17381 with attributes.
17382 * cgraphclones.c (cgraph_node::create_version_clone): Add
17383 DECL_ATTRIBUTES to a newly created decl. And call
17384 valid_attribute_p so that proper cl_target_optimization_node
17385 is set for the newly created declaration.
17386 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
17387 for declaration.
17388 (expand_target_clones): Do not call valid_attribute_p, it must
17389 be already done.
17390 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
17391 vector types.
17392
17393 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17394
17395 PR target/88734
17396 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
17397 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
17398 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
17399
17400 2019-01-17 Martin Sebor <msebor@redhat.com>
17401
17402 PR middle-end/88273
17403 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
17404 Handle anti-ranges the same as no range at all.
17405
17406 2018-01-17 Steve Ellcey <sellcey@cavium.com>
17407
17408 * config/aarch64/aarch64.c (cgraph.h): New include.
17409 (intl.h): New include.
17410 (supported_simd_type): New function.
17411 (currently_supported_simd_type): Ditto.
17412 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
17413 (aarch64_simd_clone_adjust): Ditto.
17414 (aarch64_simd_clone_usable): Ditto.
17415 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
17416 (TARGET_SIMD_CLONE_ADJUST): Ditto.
17417 (TARGET_SIMD_CLONE_USABLE): Ditto.
17418 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
17419 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
17420 call.
17421
17422 2019-01-17 Martin Sebor <msebor@redhat.com>
17423
17424 PR tree-optimization/88800
17425 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
17426 NO_WARNING bit here. Avoid folding out-of-bounds calls.
17427 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
17428 redundant argument. Add new argument and issue diagnostics under
17429 its control. Detect out-of-bounds access even with warnings
17430 disabled.
17431 (check_bounds_or_overlap): Change return type. Add argument.
17432 (wrestrict_dom_walker::check_call): Adjust.
17433 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
17434 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
17435 check_bounds_or_overlap's return value.
17436 (handle_builtin_stxncpy): Same.
17437 (handle_builtin_strcat): Same.
17438
17439 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17440 Kwok Cheung Yeung <kcy@codesourcery.com>
17441 Julian Brown <julian@codesourcery.com>
17442 Tom de Vries <tom@codesourcery.com>
17443
17444 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
17445
17446 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17447
17448 * doc/sourcebuild.texi: Document dg-require-effective-target
17449 llvm_binutils and offload_gcn.
17450
17451 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17452 Kwok Cheung Yeung <kcy@codesourcery.com>
17453 Julian Brown <julian@codesourcery.com>
17454 Tom de Vries <tom@codesourcery.com>
17455
17456 * doc/sourcebuild.texi: Document dg-required-effective-target
17457 exceptions.
17458
17459 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17460 Kwok Cheung Yeung <kcy@codesourcery.com>
17461 Julian Brown <julian@codesourcery.com>
17462 Tom de Vries <tom@codesourcery.com>
17463 Jan Hubicka <hubicka@ucw.cz>
17464 Martin Jambor <mjambor@suse.cz>
17465
17466 * config.gcc: Add amdgcn*-*-amdhsa configuration.
17467 * configure.ac: Check for dlopen.
17468 * configure: Regenerate.
17469
17470 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17471 Kwok Cheung Yeung <kcy@codesourcery.com>
17472 Julian Brown <julian@codesourcery.com>
17473 Tom de Vries <tom@codesourcery.com>
17474 Jan Hubicka <hubicka@ucw.cz>
17475 Martin Jambor <mjambor@suse.cz>
17476
17477 * common/config/gcn/gcn-common.c: New file.
17478 * config/gcn/driver-gcn.c: New file.
17479 * config/gcn/gcn-builtins.def: New file.
17480 * config/gcn/gcn-hsa.h: New file.
17481 * config/gcn/gcn-modes.def: New file.
17482 * config/gcn/gcn-opts.h: New file.
17483 * config/gcn/gcn-passes.def: New file.
17484 * config/gcn/gcn-protos.h: New file.
17485 * config/gcn/gcn-run.c: New file.
17486 * config/gcn/gcn-tree.c: New file.
17487 * config/gcn/gcn.c: New file.
17488 * config/gcn/gcn.h: New file.
17489 * config/gcn/gcn.opt: New file.
17490 * config/gcn/t-gcn-hsa: New file.
17491
17492 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17493 Kwok Cheung Yeung <kcy@codesourcery.com>
17494 Julian Brown <julian@codesourcery.com>
17495 Tom de Vries <tom@codesourcery.com>
17496 Jan Hubicka <hubicka@ucw.cz>
17497 Martin Jambor <mjambor@suse.cz>
17498
17499 * config/gcn/constraints.md: New file.
17500 * config/gcn/gcn-valu.md: New file.
17501 * config/gcn/gcn.md: New file.
17502 * config/gcn/predicates.md: New file.
17503
17504 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
17505
17506 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
17507 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
17508 (stmt_uses_0_or_null_in_undefined_way): Likewise.
17509 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
17510
17511 2019-01-17 Tamar Christina <tamar.christina@arm.com>
17512
17513 PR target/88851
17514 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
17515 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
17516 it and document registers.
17517
17518 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17519
17520 * config/aarch64/aarch64.c (ares_tunings): Define.
17521 * config/aarch64/aarch64-cores.def (ares): Use the above.
17522
17523 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17524
17525 PR target/88794
17526 Revert:
17527 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
17528
17529 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
17530 (_mm512_fixupimm_round_pd): Update parameters and builtin.
17531 (_mm512_maskz_fixupimm_round_pd): Ditto.
17532 (_mm512_fixupimm_round_ps): Ditto.
17533 (_mm512_maskz_fixupimm_round_ps): Ditto.
17534 (_mm_fixupimm_round_sd): Ditto.
17535 (_mm_maskz_fixupimm_round_sd): Ditto.
17536 (_mm_fixupimm_round_ss): Ditto.
17537 (_mm_maskz_fixupimm_round_ss): Ditto.
17538 (_mm512_fixupimm_pd): Ditto.
17539 (_mm512_maskz_fixupimm_pd): Ditto.
17540 (_mm512_fixupimm_ps): Ditto.
17541 (_mm512_maskz_fixupimm_ps): Ditto.
17542 (_mm_fixupimm_sd): Ditto.
17543 (_mm_maskz_fixupimm_sd): Ditto.
17544 (_mm_fixupimm_ss): Ditto.
17545 (_mm_maskz_fixupimm_ss): Ditto.
17546 (_mm512_mask_fixupimm_round_pd): Update builtin.
17547 (_mm512_mask_fixupimm_round_ps): Ditto.
17548 (_mm_mask_fixupimm_round_sd): Ditto.
17549 (_mm_mask_fixupimm_round_ss): Ditto.
17550 (_mm512_mask_fixupimm_pd): Ditto.
17551 (_mm512_mask_fixupimm_ps): Ditto.
17552 (_mm_mask_fixupimm_sd): Ditto.
17553 (_mm_mask_fixupimm_ss): Ditto.
17554 * config/i386/avx512vlintrin.h:
17555 (_mm256_fixupimm_pd): Update parameters and builtin.
17556 (_mm256_maskz_fixupimm_pd): Ditto.
17557 (_mm256_fixupimm_ps): Ditto.
17558 (_mm256_maskz_fixupimm_ps): Ditto.
17559 (_mm_fixupimm_pd): Ditto.
17560 (_mm_maskz_fixupimm_pd): Ditto.
17561 (_mm_fixupimm_ps): Ditto.
17562 (_mm_maskz_fixupimm_ps): Ditto.
17563 (_mm256_mask_fixupimm_pd): Update builtin.
17564 (_mm256_mask_fixupimm_ps): Ditto.
17565 (_mm_mask_fixupimm_pd): Ditto.
17566 (_mm_mask_fixupimm_ps): Ditto.
17567 * config/i386/i386-builtin-types.def: Add new types and remove
17568 useless ones.
17569 * config/i386/i386-builtin.def: Update builtin definitions.
17570 * config/i386/i386.c: Handle new builtin types and remove useless ones.
17571 * config/i386/sse.md: Update VFIXUPIMM* patterns.
17572 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17573 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17574 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
17575 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17576 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17577 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
17578 * config/i386/subst.md:
17579 (round_saeonly_sd_mask_operand4): Add new subst_attr.
17580 (round_saeonly_sd_mask_op4): Ditto.
17581 (round_saeonly_expand_operand5): Ditto.
17582 (round_saeonly_expand): Update.
17583
17584 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17585
17586 PR target/88794
17587 Revert:
17588 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
17589
17590 * config/i386/sse.md: Combine VFIXUPIMM* patterns
17591 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17592 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17593 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
17594 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17595 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17596 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
17597
17598 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17599
17600 PR target/88794
17601 Revert:
17602 2018-12-15 Jakub Jelinek <jakub@redhat.com>
17603
17604 PR target/88489
17605 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
17606 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
17607 instead of UNSPEC_FIXUPIMM.
17608
17609 2019-01-17 Richard Biener <rguenther@suse.de>
17610
17611 PR lto/86736
17612 * dwarf2out.c (want_pubnames): Never generate pubnames sections
17613 and friends for the LTO part of debug info.
17614
17615 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17616
17617 PR tree-optimization/86214
17618 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
17619 if x == y.
17620
17621 PR rtl-optimization/88870
17622 * dce.c (deletable_insn_p): Never delete const/pure calls that can
17623 throw if we can't alter the cfg or delete dead exceptions.
17624 (mark_insn): Don't call find_call_stack_args for such calls.
17625
17626 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
17627
17628 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
17629 prototypes for vec_st.
17630 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
17631 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
17632 mainly on signed/unsigned long long and double.
17633
17634 2019-01-16 David Malcolm <dmalcolm@redhat.com>
17635
17636 PR target/88861
17637 * combine.c (delete_noop_moves): Convert to "bool" return,
17638 returning true if any edges are eliminated.
17639 (combine_instructions): Also return true if delete_noop_moves
17640 returns true.
17641
17642 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17643
17644 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
17645 correct max nunits for endian swap.
17646 (aarch64_expand_fcmla_builtin): Correct subreg code.
17647 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
17648 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
17649 lane endianness.
17650
17651 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
17652
17653 * config/alpha/alpha.c (alpha_gimplify_va_arg):
17654 Handle split indirect COMPLEX_TYPE arguments.
17655
17656 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
17657
17658 PR target/86891
17659 * config/aarch64/aarch64-modes.def: Add comment about how the carry
17660 bit is set by add and compare.
17661 (CC_ADC): New CC_MODE.
17662 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
17663 to cache the code and mode of X. Adjust the shape of a CC_Cmode
17664 comparison. Add detection for CC_ADCmode.
17665 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
17666 CC_ADCmode.
17667 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
17668 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
17669 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
17670 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
17671 to eliminate the need for zero-extending the operands.
17672 (add<mode>3_compareC_imm): Delete. Merge into ...
17673 (add<mode>3_compareC): ... this. Restructure the comparison to
17674 eliminate the need for zero-extending the operands.
17675 (add<mode>3_carryin): Use LTU for the overflow detection.
17676 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
17677 Reexpress comparison for overflow.
17678 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
17679 (add<mode>3_carryinC): Likewise.
17680 (add<mode>3_carryinV): Use LTU for carry between partials.
17681 * config/aarch64/predicates.md (aarch64_carry_operation): Update
17682 handling of CC_Cmode and add CC_ADCmode.
17683 (aarch64_borrow_operation): Likewise.
17684
17685 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17686
17687 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
17688 Remove patternmode.
17689 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
17690 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
17691 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
17692 Remove endianness conversion.
17693
17694 2019-01-16 Martin Liska <mliska@suse.cz>
17695
17696 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
17697 for GCC driver.
17698 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
17699 a new argument.
17700 * gcc.c (add_sysrooted_hdrs_prefix): New function.
17701 (path_prefix_reset): Move up in the source file.
17702 (find_fortran_preinclude_file): Make complex search for the
17703 fortran header files.
17704
17705 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
17706
17707 * godump.c (go_output_typedef): When outputting a typedef, refer
17708 to the underlying type by its name and not its structure.
17709
17710 2019-01-15 David Malcolm <dmalcolm@redhat.com>
17711
17712 PR c++/88795
17713 * tree.c (build_function_type): Assert that arg_types is not
17714 error_mark_node.
17715
17716 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
17717
17718 PR inline-asm/52813
17719 * doc/extend.texi: Document that listing the stack pointer in the
17720 clobber list of an asm is a deprecated feature.
17721 * common.opt (Wdeprecated): Moved from c-family/c.opt.
17722 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
17723 warning instead of an error for clobbers of the stack pointer.
17724 Add a note explaining why.
17725
17726 2019-01-15 Richard Biener <rguenther@suse.de>
17727
17728 PR debug/88046
17729 * dwarf2out.c (gen_member_die): Do not generate inheritance
17730 DIEs late.
17731
17732 2019-01-15 Richard Biener <rguenther@suse.de>
17733
17734 PR tree-optimization/88855
17735 * tree-if-conv.c (combine_blocks): Collect
17736 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
17737
17738 2019-01-15 Tom de Vries <tdevries@suse.de>
17739
17740 PR target/80547
17741 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
17742 lhs == NULL_TREE for gang-level reduction.
17743
17744 2019-01-15 Richard Biener <rguenther@suse.de>
17745 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17746
17747 PR ipa/88788
17748 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
17749 return true if SSA_NAME is already marked in visited bitmap.
17750 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
17751
17752 2019-01-15 Jakub Jelinek <jakub@redhat.com>
17753
17754 PR tree-optimization/88775
17755 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
17756 equal == 0 equality pointer comparisons some more if compared in
17757 integral types and either one points to an automatic var and the
17758 other to a global, or we can prove at least one points to the middle
17759 or both point to start or both point to end.
17760
17761 2019-01-14 Andi Kleen <ak@linux.intel.com>
17762
17763 * Makefile.in: Lower autofdo sampling rate by 10x.
17764 * Makefile.tpl: Dito.
17765
17766 2019-01-14 Tom Honermann <tom@honermann.net>
17767
17768 * defaults.h: Define CHAR8_TYPE.
17769
17770 2019-01-14 Martin Sebor <msebor@redhat.com>
17771
17772 PR target/88638
17773 * doc/extend.texi (Darwin Format Checks): Clarify.
17774
17775 2019-01-14 Richard Biener <rguenther@suse.de>
17776
17777 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
17778 whether we are in (simplify ...) or (match ...) context.
17779
17780 2019-01-14 Jakub Jelinek <jakub@redhat.com>
17781
17782 PR rtl-optimization/88796
17783 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
17784 * cfgexpand.c (stack_protect_prologue): Initialize
17785 crtl->stack_protect_guard_decl.
17786 * function.c (stack_protect_epilogue): Use it instead of calling
17787 targetm.stack_protect_guard again.
17788 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
17789 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
17790 crtl->stack_protect_guard_decl.
17791 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
17792 on the returned MEM_EXPR.
17793
17794 2019-01-12 Tom de Vries <tdevries@suse.de>
17795
17796 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
17797 vector length using -fopenacc-dim.
17798
17799 2019-01-12 Tom de Vries <tdevries@suse.de>
17800
17801 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
17802 lengths into account.
17803
17804 2019-01-12 Svante Signell <svante.signell@gmail.com>
17805
17806 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
17807 (TARGET_CAN_SPLIT_STACK): Define.
17808 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
17809
17810 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17811
17812 * params.def (inline-unit-growth): Set to 40.
17813
17814 2019-01-12 Jakub Jelinek <jakub@redhat.com>
17815
17816 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
17817
17818 2019-01-12 Tom de Vries <tdevries@suse.de>
17819
17820 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
17821 region calling vector-partitionable routine, set default_vector_length
17822 to WARP_SIZE.
17823
17824 2019-01-12 Tom de Vries <tdevries@suse.de>
17825
17826 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
17827 variable default_vector_length.
17828
17829 2019-01-12 Tom de Vries <tdevries@suse.de>
17830
17831 PR middle-end/88703
17832 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
17833 from oacc_default_dims, as oacc_validate_dims would do it, and apply
17834 dimensions limits.
17835
17836 2019-01-12 Tom de Vries <tdevries@suse.de>
17837
17838 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
17839 (nvptx_goacc_validate_dims): Add used parameter.
17840 * doc/tm.texi: Regenerate.
17841 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
17842 argument to call to targetm.goacc.validate_dims.
17843 (default_goacc_validate_dims): Add used
17844 parameter.
17845 * target.def (validate_dims): Add used parameter in DEFHOOK.
17846 * targhooks.h (default_goacc_validate_dims): Add used parameter.
17847
17848 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17849
17850 PR middle-end/85956
17851 PR lto/88733
17852 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
17853 field.
17854 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
17855 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
17856 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
17857 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
17858
17859 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
17860
17861 PR rtl-optimization/87305
17862 * lra-assigns.c
17863 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
17864 for little endian pseudos used as paradoxical subreg.
17865
17866 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17867
17868 PR tree-optimization/88693
17869 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
17870 for STRING_CSTs that don't contain any NUL characters in the first
17871 TREE_STRING_LENGTH bytes.
17872
17873 2019-01-11 Alan Modra <amodra@gmail.com>
17874
17875 PR 88777
17876 PR 88614
17877 * genattrtab.c (min_fn): Don't translate values.
17878 (min_attr_value): Return INT_MAX when the value can't be calculated.
17879 Return minimum among any values that can be calculated.
17880 (max_attr_value): Adjust.
17881
17882 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17883
17884 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
17885
17886 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17887
17888 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17889 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
17890 (aarch64_return_call_with_max_clobbers): New function.
17891 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
17892 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
17893 argument.
17894 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
17895 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
17896 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
17897 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
17898 * cselib.c (cselib_process_insn): Add argument to
17899 targetm.hard_regno_call_part_clobbered call.
17900 * ira-conflicts.c (ira_build_conflicts): Ditto.
17901 * ira-costs.c (ira_tune_allocno_costs): Ditto.
17902 * lra-constraints.c (inherit_reload_reg): Ditto.
17903 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
17904 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
17905 argument. Call targetm.return_call_with_max_clobbers.
17906 Add argument to targetm.hard_regno_call_part_clobbered call.
17907 (calls_have_same_clobbers_p): New function.
17908 (process_bb_lives): Add call_insn and last_call_insn variables.
17909 Pass call_insn to check_pseudos_live_through_calls.
17910 Modify if stmt to check targetm.return_call_with_max_clobbers.
17911 Update setting of flush variable.
17912 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
17913 to false.
17914 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
17915 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
17916 targetm.hard_regno_call_part_clobbered call.
17917 * reginfo.c (choose_hard_reg_mode): Ditto.
17918 * regrename.c (check_new_reg_p): Ditto.
17919 * reload.c (find_equiv_reg): Ditto.
17920 * reload1.c (emit_reload_insns): Ditto.
17921 * sched-deps.c (deps_analyze_insn): Ditto.
17922 * sel-sched.c (init_regs_for_mode): Ditto.
17923 (mark_unavailable_hard_regs): Ditto.
17924 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
17925 * target.def (hard_regno_call_part_clobbered): Add insn argument.
17926 (return_call_with_max_clobbers): New target function.
17927 * doc/tm.texi: Regenerate.
17928 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
17929 * hooks.c (hook_bool_uint_mode_false): Change to
17930 hook_bool_insn_uint_mode_false.
17931 * hooks.h (hook_bool_uint_mode_false): Ditto.
17932
17933 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17934
17935 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17936 (aarch64_remove_extra_call_preserved_regs): New function.
17937 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
17938 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
17939 * doc/tm.texi: Regenerate.
17940 * final.c (get_call_reg_set_usage): Call new hook.
17941 * target.def (remove_extra_call_preserved_regs): New hook.
17942 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
17943 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
17944
17945 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17946
17947 PR bootstrap/88714
17948 * passes.c (finish_optimization_passes): Call print_combine_total_stats
17949 inside of pass_combine_1 dump rather than pass_profile_1.
17950
17951 2019-01-11 Tom de Vries <tdevries@suse.de>
17952
17953 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
17954 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
17955 (PTX_NUM_PER_WORKER_BARRIERS): Define.
17956 (nvptx_apply_dim_limits): Prevent vector_length 64 and
17957 num_workers 16.
17958
17959 2019-01-11 Tom de Vries <tdevries@suse.de>
17960
17961 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
17962
17963 2019-01-11 Jan Beulich <jbeulich@suse.com>
17964
17965 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
17966 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
17967 sse2_cvtsi2sd): Add {l}.
17968 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
17969 syntax.
17970
17971 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17972
17973 PR target/88785
17974 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
17975 define_expand.
17976 (*float<floatunssuffix>v2div2sf2): New define_insn.
17977 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
17978 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
17979 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
17980 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
17981 match_operands with "const0_operand" "C".
17982
17983 2019-01-10 Tamar Christina <tamar.christina@arm.com>
17984
17985 * config/aarch64/aarch64-builtins.c
17986 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
17987 (aarch64_init_simd_builtins): ...Here
17988
17989 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
17990
17991 PR rtl-optimization/87305
17992 * lra-assigns.c
17993 (setup_live_pseudos_and_spill_after_risky_transforms): Check
17994 allocation for big endian pseudos used as paradoxical subregs and
17995 spill them if it is wrong.
17996 * lra-constraints.c (lra_constraints): Add a comment.
17997
17998 2019-01-10 Richard Biener <rguenther@suse.de>
17999
18000 PR tree-optimization/88792
18001 * tree-ssa-pre.c (get_representative_for): Do not return a
18002 value-number here.
18003
18004 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18005
18006 PR middle-end/84877
18007 PR bootstrap/88450
18008 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
18009 (assign_parm_setup_block): Do the argument slot realignment here
18010 instead.
18011
18012 2019-01-10 Stefan Agner <stefan@agner.ch>
18013
18014 PR target/88648
18015 * config/arm/arm.c (arm_option_override_internal): Force
18016 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
18017
18018 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18019
18020 PR c/88568
18021 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
18022 DECL_EXTERNAL.
18023
18024 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18025
18026 * config/arm/arm-builtins.c
18027 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
18028 (MAC_LANE_PAIR_QUALIFIERS): New.
18029 (arm_expand_builtin_args): Use it.
18030 (arm_expand_builtin_1): Likewise.
18031 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
18032 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
18033 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
18034 * config/arm/arm_neon.h:
18035 (vcadd_rot90_f16): New.
18036 (vcaddq_rot90_f16): New.
18037 (vcadd_rot270_f16): New.
18038 (vcaddq_rot270_f16): New.
18039 (vcmla_f16): New.
18040 (vcmlaq_f16): New.
18041 (vcmla_lane_f16): New.
18042 (vcmla_laneq_f16): New.
18043 (vcmlaq_lane_f16): New.
18044 (vcmlaq_laneq_f16): New.
18045 (vcmla_rot90_f16): New.
18046 (vcmlaq_rot90_f16): New.
18047 (vcmla_rot90_lane_f16): New.
18048 (vcmla_rot90_laneq_f16): New.
18049 (vcmlaq_rot90_lane_f16): New.
18050 (vcmlaq_rot90_laneq_f16): New.
18051 (vcmla_rot180_f16): New.
18052 (vcmlaq_rot180_f16): New.
18053 (vcmla_rot180_lane_f16): New.
18054 (vcmla_rot180_laneq_f16): New.
18055 (vcmlaq_rot180_lane_f16): New.
18056 (vcmlaq_rot180_laneq_f16): New.
18057 (vcmla_rot270_f16): New.
18058 (vcmlaq_rot270_f16): New.
18059 (vcmla_rot270_lane_f16): New.
18060 (vcmla_rot270_laneq_f16): New.
18061 (vcmlaq_rot270_lane_f16): New.
18062 (vcmlaq_rot270_laneq_f16): New.
18063 (vcadd_rot90_f32): New.
18064 (vcaddq_rot90_f32): New.
18065 (vcadd_rot270_f32): New.
18066 (vcaddq_rot270_f32): New.
18067 (vcmla_f32): New.
18068 (vcmlaq_f32): New.
18069 (vcmla_lane_f32): New.
18070 (vcmla_laneq_f32): New.
18071 (vcmlaq_lane_f32): New.
18072 (vcmlaq_laneq_f32): New.
18073 (vcmla_rot90_f32): New.
18074 (vcmlaq_rot90_f32): New.
18075 (vcmla_rot90_lane_f32): New.
18076 (vcmla_rot90_laneq_f32): New.
18077 (vcmlaq_rot90_lane_f32): New.
18078 (vcmlaq_rot90_laneq_f32): New.
18079 (vcmla_rot180_f32): New.
18080 (vcmlaq_rot180_f32): New.
18081 (vcmla_rot180_lane_f32): New.
18082 (vcmla_rot180_laneq_f32): New.
18083 (vcmlaq_rot180_lane_f32): New.
18084 (vcmlaq_rot180_laneq_f32): New.
18085 (vcmla_rot270_f32): New.
18086 (vcmlaq_rot270_f32): New.
18087 (vcmla_rot270_lane_f32): New.
18088 (vcmla_rot270_laneq_f32): New.
18089 (vcmlaq_rot270_lane_f32): New.
18090 (vcmlaq_rot270_laneq_f32): New.
18091 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
18092 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
18093 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
18094 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
18095 vcmlaq_lane270): New.
18096 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18097 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
18098 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
18099 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
18100 (arm_option_reconfigure_globals): Use them.
18101 * config/arm/iterators.md (VDF, VQ_HSF): New.
18102 (VCADD, VCMLA): New.
18103 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
18104 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
18105 New.
18106 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
18107 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
18108
18109 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18110
18111 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18112 Add qualifier_lane_pair_index.
18113 (emit-rtl.h): Include.
18114 (TYPES_QUADOP_LANE_PAIR): New.
18115 (aarch64_simd_expand_args): Use it.
18116 (aarch64_simd_expand_builtin): Likewise.
18117 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
18118 New.
18119 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
18120 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
18121 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
18122 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
18123 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
18124 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
18125 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
18126 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
18127 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
18128 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
18129 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
18130 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
18131 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
18132 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18133 Add __ARM_FEATURE_COMPLEX.
18134 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
18135 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
18136 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
18137 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
18138 fcmlaq_lane270): New.
18139 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18140 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
18141 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
18142 * config/aarch64/arm_neon.h:
18143 (vcadd_rot90_f16): New.
18144 (vcaddq_rot90_f16): New.
18145 (vcadd_rot270_f16): New.
18146 (vcaddq_rot270_f16): New.
18147 (vcmla_f16): New.
18148 (vcmlaq_f16): New.
18149 (vcmla_lane_f16): New.
18150 (vcmla_laneq_f16): New.
18151 (vcmlaq_lane_f16): New.
18152 (vcmlaq_rot90_lane_f16): New.
18153 (vcmla_rot90_laneq_f16): New.
18154 (vcmla_rot90_lane_f16): New.
18155 (vcmlaq_rot90_f16): New.
18156 (vcmla_rot90_f16): New.
18157 (vcmlaq_laneq_f16): New.
18158 (vcmla_rot180_laneq_f16): New.
18159 (vcmla_rot180_lane_f16): New.
18160 (vcmlaq_rot180_f16): New.
18161 (vcmla_rot180_f16): New.
18162 (vcmlaq_rot90_laneq_f16): New.
18163 (vcmlaq_rot270_laneq_f16): New.
18164 (vcmlaq_rot270_lane_f16): New.
18165 (vcmla_rot270_laneq_f16): New.
18166 (vcmlaq_rot270_f16): New.
18167 (vcmla_rot270_f16): New.
18168 (vcmlaq_rot180_laneq_f16): New.
18169 (vcmlaq_rot180_lane_f16): New.
18170 (vcmla_rot270_lane_f16): New.
18171 (vcadd_rot90_f32): New.
18172 (vcaddq_rot90_f32): New.
18173 (vcaddq_rot90_f64): New.
18174 (vcadd_rot270_f32): New.
18175 (vcaddq_rot270_f32): New.
18176 (vcaddq_rot270_f64): New.
18177 (vcmla_f32): New.
18178 (vcmlaq_f32): New.
18179 (vcmlaq_f64): New.
18180 (vcmla_lane_f32): New.
18181 (vcmla_laneq_f32): New.
18182 (vcmlaq_lane_f32): New.
18183 (vcmlaq_laneq_f32): New.
18184 (vcmla_rot90_f32): New.
18185 (vcmlaq_rot90_f32): New.
18186 (vcmlaq_rot90_f64): New.
18187 (vcmla_rot90_lane_f32): New.
18188 (vcmla_rot90_laneq_f32): New.
18189 (vcmlaq_rot90_lane_f32): New.
18190 (vcmlaq_rot90_laneq_f32): New.
18191 (vcmla_rot180_f32): New.
18192 (vcmlaq_rot180_f32): New.
18193 (vcmlaq_rot180_f64): New.
18194 (vcmla_rot180_lane_f32): New.
18195 (vcmla_rot180_laneq_f32): New.
18196 (vcmlaq_rot180_lane_f32): New.
18197 (vcmlaq_rot180_laneq_f32): New.
18198 (vcmla_rot270_f32): New.
18199 (vcmlaq_rot270_f32): New.
18200 (vcmlaq_rot270_f64): New.
18201 (vcmla_rot270_lane_f32): New.
18202 (vcmla_rot270_laneq_f32): New.
18203 (vcmlaq_rot270_lane_f32): New.
18204 (vcmlaq_rot270_laneq_f32): New.
18205 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
18206 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
18207 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
18208 (FCADD, FCMLA): New.
18209 (rot): New.
18210 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
18211
18212 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18213
18214 PR other/16615
18215
18216 * config/pa/pa.c: Change "can not" to "cannot".
18217 * gimple-ssa-evrp-analyze.c: Likewise.
18218 * ipa-icf.c: Likewise.
18219 * ipa-polymorphic-call.c: Likewise.
18220 * ipa-pure-const.c: Likewise.
18221 * lra-constraints.c: Likewise.
18222 * lra-remat.c: Likewise.
18223 * reload1.c: Likewise.
18224 * reorg.c: Likewise.
18225 * tree-ssa-uninit.c: Likewise.
18226
18227 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18228
18229 PR other/16615
18230
18231 * Makefile.in: Mechanically replace "can not" with "cannot".
18232 * alias.c: Likewise.
18233 * builtins.c: Likewise.
18234 * calls.c: Likewise.
18235 * cgraph.c: Likewise.
18236 * cgraph.h: Likewise.
18237 * cgraphclones.c: Likewise.
18238 * cgraphunit.c: Likewise.
18239 * combine-stack-adj.c: Likewise.
18240 * combine.c: Likewise.
18241 * common/config/i386/i386-common.c: Likewise.
18242 * config/aarch64/aarch64.c: Likewise.
18243 * config/alpha/sync.md: Likewise.
18244 * config/arc/arc.c: Likewise.
18245 * config/arc/predicates.md: Likewise.
18246 * config/arm/arm-c.c: Likewise.
18247 * config/arm/arm.c: Likewise.
18248 * config/arm/arm.h: Likewise.
18249 * config/arm/arm.md: Likewise.
18250 * config/arm/cortex-r4f.md: Likewise.
18251 * config/csky/csky.c: Likewise.
18252 * config/csky/csky.h: Likewise.
18253 * config/darwin-f.c: Likewise.
18254 * config/epiphany/epiphany.md: Likewise.
18255 * config/i386/i386.c: Likewise.
18256 * config/i386/sol2.h: Likewise.
18257 * config/m68k/m68k.c: Likewise.
18258 * config/mcore/mcore.h: Likewise.
18259 * config/microblaze/microblaze.md: Likewise.
18260 * config/mips/20kc.md: Likewise.
18261 * config/mips/sb1.md: Likewise.
18262 * config/nds32/nds32.c: Likewise.
18263 * config/nds32/predicates.md: Likewise.
18264 * config/pa/pa.c: Likewise.
18265 * config/rs6000/e300c2c3.md: Likewise.
18266 * config/rs6000/rs6000.c: Likewise.
18267 * config/s390/s390.h: Likewise.
18268 * config/sh/sh.c: Likewise.
18269 * config/sh/sh.md: Likewise.
18270 * config/spu/vmx2spu.h: Likewise.
18271 * cprop.c: Likewise.
18272 * dbxout.c: Likewise.
18273 * df-scan.c: Likewise.
18274 * doc/cfg.texi: Likewise.
18275 * doc/extend.texi: Likewise.
18276 * doc/fragments.texi: Likewise.
18277 * doc/gty.texi: Likewise.
18278 * doc/invoke.texi: Likewise.
18279 * doc/lto.texi: Likewise.
18280 * doc/md.texi: Likewise.
18281 * doc/objc.texi: Likewise.
18282 * doc/rtl.texi: Likewise.
18283 * doc/tm.texi: Likewise.
18284 * dse.c: Likewise.
18285 * emit-rtl.c: Likewise.
18286 * emit-rtl.h: Likewise.
18287 * except.c: Likewise.
18288 * expmed.c: Likewise.
18289 * expr.c: Likewise.
18290 * fold-const.c: Likewise.
18291 * genautomata.c: Likewise.
18292 * gimple-fold.c: Likewise.
18293 * hard-reg-set.h: Likewise.
18294 * ifcvt.c: Likewise.
18295 * ipa-comdats.c: Likewise.
18296 * ipa-cp.c: Likewise.
18297 * ipa-devirt.c: Likewise.
18298 * ipa-fnsummary.c: Likewise.
18299 * ipa-icf.c: Likewise.
18300 * ipa-inline-transform.c: Likewise.
18301 * ipa-inline.c: Likewise.
18302 * ipa-polymorphic-call.c: Likewise.
18303 * ipa-profile.c: Likewise.
18304 * ipa-prop.c: Likewise.
18305 * ipa-pure-const.c: Likewise.
18306 * ipa-reference.c: Likewise.
18307 * ipa-split.c: Likewise.
18308 * ipa-visibility.c: Likewise.
18309 * ipa.c: Likewise.
18310 * ira-build.c: Likewise.
18311 * ira-color.c: Likewise.
18312 * ira-conflicts.c: Likewise.
18313 * ira-costs.c: Likewise.
18314 * ira-int.h: Likewise.
18315 * ira-lives.c: Likewise.
18316 * ira.c: Likewise.
18317 * ira.h: Likewise.
18318 * loop-invariant.c: Likewise.
18319 * loop-unroll.c: Likewise.
18320 * lower-subreg.c: Likewise.
18321 * lra-assigns.c: Likewise.
18322 * lra-constraints.c: Likewise.
18323 * lra-eliminations.c: Likewise.
18324 * lra-lives.c: Likewise.
18325 * lra-remat.c: Likewise.
18326 * lra-spills.c: Likewise.
18327 * lra.c: Likewise.
18328 * lto-cgraph.c: Likewise.
18329 * lto-streamer-out.c: Likewise.
18330 * postreload-gcse.c: Likewise.
18331 * predict.c: Likewise.
18332 * profile-count.h: Likewise.
18333 * profile.c: Likewise.
18334 * recog.c: Likewise.
18335 * ree.c: Likewise.
18336 * reload.c: Likewise.
18337 * reload1.c: Likewise.
18338 * reorg.c: Likewise.
18339 * resource.c: Likewise.
18340 * rtl.def: Likewise.
18341 * rtl.h: Likewise.
18342 * rtlanal.c: Likewise.
18343 * sched-deps.c: Likewise.
18344 * sched-ebb.c: Likewise.
18345 * sched-rgn.c: Likewise.
18346 * sel-sched-ir.c: Likewise.
18347 * sel-sched.c: Likewise.
18348 * shrink-wrap.c: Likewise.
18349 * simplify-rtx.c: Likewise.
18350 * symtab.c: Likewise.
18351 * target.def: Likewise.
18352 * toplev.c: Likewise.
18353 * tree-call-cdce.c: Likewise.
18354 * tree-cfg.c: Likewise.
18355 * tree-complex.c: Likewise.
18356 * tree-core.h: Likewise.
18357 * tree-eh.c: Likewise.
18358 * tree-inline.c: Likewise.
18359 * tree-loop-distribution.c: Likewise.
18360 * tree-nrv.c: Likewise.
18361 * tree-profile.c: Likewise.
18362 * tree-sra.c: Likewise.
18363 * tree-ssa-alias.c: Likewise.
18364 * tree-ssa-dce.c: Likewise.
18365 * tree-ssa-dom.c: Likewise.
18366 * tree-ssa-forwprop.c: Likewise.
18367 * tree-ssa-loop-im.c: Likewise.
18368 * tree-ssa-loop-ivcanon.c: Likewise.
18369 * tree-ssa-loop-ivopts.c: Likewise.
18370 * tree-ssa-loop-niter.c: Likewise.
18371 * tree-ssa-phionlycprop.c: Likewise.
18372 * tree-ssa-phiopt.c: Likewise.
18373 * tree-ssa-propagate.c: Likewise.
18374 * tree-ssa-threadedge.c: Likewise.
18375 * tree-ssa-threadupdate.c: Likewise.
18376 * tree-ssa-uninit.c: Likewise.
18377 * tree-ssanames.c: Likewise.
18378 * tree-streamer-out.c: Likewise.
18379 * tree.c: Likewise.
18380 * tree.h: Likewise.
18381 * vr-values.c: Likewise.
18382
18383 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
18384
18385 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
18386 (ix86_split_xorsign): Ditto.
18387 * config/i386/i386.c (ix86_expand_xorsign): New function.
18388 (ix86_split_xorsign): Ditto.
18389 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
18390 (xorsign<mode>3): New expander.
18391 (xorsign<mode>3_1): New insn_and_split pattern.
18392 * config/i386/sse.md (xorsign<mode>3): New expander.
18393
18394 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18395
18396 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
18397 (*tablejump_sp64): Likewise.
18398 (*tablejump<P:mode>): ...this.
18399 (*call_address_sp32): Merge into...
18400 (*call_address_sp64): Likewise.
18401 (*call_address<P:mode>): ...this.
18402 (*call_symbolic_sp32): Merge into...
18403 (*call_symbolic_sp64): Likewise.
18404 (*call_symbolic<P:mode>): ...this.
18405 (call_value): Remove constraint and add predicate.
18406 (*call_value_address_sp32): Merge into...
18407 (*call_value_address_sp64): Likewise.
18408 (*call_value_address<P:mode>): ...this.
18409 (*call_value_symbolic_sp32): Merge into...
18410 (*call_value_symbolic_sp64): Likewise.
18411 (*call_value_symbolic<P:mode>): ...this.
18412 (*sibcall_symbolic_sp32): Merge into...
18413 (*sibcall_symbolic_sp64): Likewise.
18414 (*sibcall_symbolic<P:mode>): ...this.
18415 (sibcall_value): Remove constraint and add predicate.
18416 (*sibcall_value_symbolic_sp32): Merge into...
18417 (*sibcall_value_symbolic_sp64): Likewise.
18418 (*sibcall_value_symbolic<P:mode>): ...this.
18419 (window_save): Minor tweak.
18420 (*branch_sp32): Merge into...
18421 (*branch_sp64): Likewise.
18422 (*branch<P:mode>): ...this.
18423
18424 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18425 James Clarke <jrtc27@jrtc27.com>
18426
18427 PR target/84010
18428 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
18429 consistently in TLS address generation and adjust code to the renaming
18430 of patterns. Mark calls to __tls_get_addr as const.
18431 * config/sparc/sparc.md (tgd_hi22): Turn into...
18432 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
18433 (tgd_lo10): Turn into...
18434 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
18435 (tgd_add32): Merge into...
18436 (tgd_add64): Likewise.
18437 (tgd_add<P:mode>): ...this and use Pmode throughout.
18438 (tldm_hi22): Turn into...
18439 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
18440 (tldm_lo10): Turn into...
18441 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
18442 (tldm_add32): Merge into...
18443 (tldm_add64): Likewise.
18444 (tldm_add<P:mode>): ...this and use Pmode throughout.
18445 (tldm_call32): Merge into...
18446 (tldm_call64): Likewise.
18447 (tldm_call<P:mode>): ...this and use Pmode throughout.
18448 (tldo_hix22): Turn into...
18449 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
18450 (tldo_lox10): Turn into...
18451 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
18452 (tldo_add32): Merge into...
18453 (tldo_add64): Likewise.
18454 (tldo_add<P:mode>): ...this and use Pmode throughout.
18455 (tie_hi22): Turn into...
18456 (tie_hi22<P:mode>): ...this and use Pmode throughout.
18457 (tie_lo10): Turn into...
18458 (tie_lo10<P:mode>): ...this and use Pmode throughout.
18459 (tie_ld64): Use DImode throughout.
18460 (tie_add32): Merge into...
18461 (tie_add64): Likewise.
18462 (tie_add<P:mode>): ...this and use Pmode throughout.
18463 (tle_hix22_sp32): Merge into...
18464 (tle_hix22_sp64): Likewise.
18465 (tle_hix22<P:mode>): ...this and use Pmode throughout.
18466 (tle_lox22_sp32): Merge into...
18467 (tle_lox22_sp64): Likewise.
18468 (tle_lox22<P:mode>): ...this and use Pmode throughout.
18469 (*tldo_ldub_sp32): Merge into...
18470 (*tldo_ldub_sp64): Likewise.
18471 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
18472 (*tldo_ldub1_sp32): Merge into...
18473 (*tldo_ldub1_sp64): Likewise.
18474 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
18475 (*tldo_ldub2_sp32): Merge into...
18476 (*tldo_ldub2_sp64): Likewise.
18477 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
18478 (*tldo_ldsb1_sp32): Merge into...
18479 (*tldo_ldsb1_sp64): Likewise.
18480 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
18481 (*tldo_ldsb2_sp32): Merge into...
18482 (*tldo_ldsb2_sp64): Likewise.
18483 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
18484 (*tldo_ldub3_sp64): Use DImode throughout.
18485 (*tldo_ldsb3_sp64): Likewise.
18486 (*tldo_lduh_sp32): Merge into...
18487 (*tldo_lduh_sp64): Likewise.
18488 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
18489 (*tldo_lduh1_sp32): Merge into...
18490 (*tldo_lduh1_sp64): Likewise.
18491 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
18492 (*tldo_ldsh1_sp32): Merge into...
18493 (*tldo_ldsh1_sp64): Likewise.
18494 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
18495 (*tldo_lduh2_sp64): Use DImode throughout.
18496 (*tldo_ldsh2_sp64): Likewise.
18497 (*tldo_lduw_sp32): Merge into...
18498 (*tldo_lduw_sp64): Likewise.
18499 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
18500 (*tldo_lduw1_sp64): Use DImode throughout.
18501 (*tldo_ldsw1_sp64): Likewise.
18502 (*tldo_ldx_sp64): Likewise.
18503 (*tldo_stb_sp32): Merge into...
18504 (*tldo_stb_sp64): Likewise.
18505 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
18506 (*tldo_sth_sp32): Merge into...
18507 (*tldo_sth_sp64): Likewise.
18508 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
18509 (*tldo_stw_sp32): Merge into...
18510 (*tldo_stw_sp64): Likewise.
18511 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
18512 (*tldo_stx_sp64): Use DImode throughout.
18513
18514 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18515
18516 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
18517 check configure option to set BTI and Return Address Signing.
18518 * configure.ac: Add --enable-standard-branch-protection and
18519 --disable-standard-branch-protection.
18520 * configure: Regenerated.
18521 * doc/install.texi: Document the same.
18522
18523 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18524 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18525
18526 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
18527 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
18528 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
18529 if bti is enabled.
18530 * config/aarch64/aarch64-bti-insert.c: New file.
18531 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
18532 pass.
18533 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
18534 new bti pass.
18535 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
18536 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
18537 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
18538 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
18539
18540 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18541
18542 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
18543 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
18544 Disable bti for -mbranch-protection=none.
18545 (aarch64_handle_standard_branch_protection): Enable bti for
18546 -mbranch-protection=standard.
18547 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
18548 -mbranch-protection.
18549 (aarch64_bti_enabled): Check if bti is enabled.
18550 * config/aarch64/aarch64.opt: Declare target variable.
18551 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
18552
18553 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18554
18555 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
18556 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
18557 (aarch64_expand_epilogue): Likewise.
18558 (aarch64_output_mi_thunk): Likewise.
18559 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
18560 TAILCALL_ADDR_REGS to x16 and x17.
18561 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
18562
18563 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18564
18565 * config/aarch64/aarch64-option-extensions.def: Define
18566 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
18567 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
18568 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
18569 (AARCH64_FL_PREDRES): New.
18570 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
18571 AARCH64_FL_PREDRES by default.
18572 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
18573
18574 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18575
18576 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
18577 ARMv8.5-A.
18578 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
18579 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
18580 * doc/invoke.texi: Document ARMv8.5-A.
18581
18582 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18583
18584 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
18585 (xorsign<mode>3): Likewise.
18586
18587 2019-01-09 Jelinek <jakub@redhat.com>
18588
18589 PR middle-end/88758
18590 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
18591 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
18592
18593 PR rtl-optimization/88331
18594 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
18595 not currently_expanding_to_rtl.
18596
18597 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18598
18599 * doc/invoke.texi (-Os): Remove trailing spaces.
18600 (-finline-functions): Remove reference to -O2.
18601
18602 2019-01-08 Jakub Jelinek <jakub@redhat.com>
18603
18604 PR rtl-optimization/79593
18605 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
18606
18607 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
18608 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
18609
18610 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
18611
18612 PR bootstrap/88721
18613 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
18614 to -1 on entry.
18615
18616 PR debug/88723
18617 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
18618 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
18619
18620 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
18621
18622 PR target/88717
18623 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
18624 ix86_avx_u128_mode_entry.
18625
18626 2019-01-08 Martin Liska <mliska@suse.cz>
18627
18628 PR tree-optimization/88753
18629 * tree-switch-conversion.c (switch_conversion::build_one_array):
18630 Come up with local variable constructor. Convert first to
18631 type of constructor values.
18632
18633 2019-01-08 Richard Biener <rguenther@suse.de>
18634
18635 PR tree-optimization/86554
18636 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
18637 rpo_avail): Move earlier.
18638 (visit_nary_op): When value-numbering to expressions
18639 with different overflow behavior make sure there's an
18640 available expression on the path.
18641
18642 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
18643
18644 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
18645 aarch64_parse_branch_protection,
18646 struct aarch64_branch_protect_type,
18647 aarch64_handle_no_branch_protection,
18648 aarch64_handle_standard_branch_protection,
18649 aarch64_validate_mbranch_protection,
18650 aarch64_handle_pac_ret_protection,
18651 aarch64_handle_attr_branch_protection,
18652 accepted_branch_protection_string,
18653 aarch64_pac_ret_subtypes,
18654 aarch64_branch_protect_types,
18655 aarch64_handle_pac_ret_leaf): Define.
18656 (aarch64_override_options_after_change_1, aarch64_override_options):
18657 Add check for accepted_branch_protection_string.
18658 (aarch64_option_save): Save accepted_branch_protection_string.
18659 (aarch64_option_restore): Save accepted_branch_protection_string.
18660 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
18661 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
18662 msign-return-address.
18663 * doc/invoke.texi: Add mbranch-protection.
18664
18665 2019-01-08 Alan Modra <amodra@gmail.com>
18666
18667 PR target/88614
18668 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
18669 Delete "unknownp" parameter. Adjust callers. Handle
18670 CONST_INT, PLUS, MINUS, and MULT.
18671 (attr_value_aligned): Renamed from or_attr_value.
18672 (min_attr_value): Return INT_MIN for unhandled rtl case..
18673 (min_fn): ..and translate to INT_MAX here.
18674 (write_length_unit_log): Modify to cope without "unknown".
18675 (write_attr_value): Handle IF_THEN_ELSE.
18676
18677 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18678
18679 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
18680 optimization for masked stores.
18681
18682 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18683
18684 PR middle-end/88567
18685 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
18686 output vector directly to duplicate_and_interleave instead of
18687 going through a temporary. Postpone insertion of ctor_seq to
18688 the end of the loop.
18689
18690 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
18691
18692 PR target/86891
18693 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
18694 unsigned_p. Handle signed and unsigned overflow correction as
18695 required.
18696 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
18697 prototype.
18698 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
18699 for operand 2.
18700 (add<mode>3_compareV_imm): Make this callable for expanding.
18701 (subv<GPI:mode>4): Use register_operand for operand 1. Use
18702 aarch64_plus_operand for operand 2.
18703 (subv<GPI:mode>_insn): New insn pattern.
18704 (subv<GPI:mode>_imm): Likewise.
18705 (negv<GPI:mode>3): New expand pattern.
18706 (negv<GPI:mode>_insn): New insn pattern.
18707 (negv<GPI:mode>_cmp_only): Likewise.
18708 (cmpv<GPI:mode>_insn): Likewise.
18709 (subvti4): Use register_operand for operand 1. Update call to
18710 aarch64_expand_subvti.
18711 (usubvti4): Likewise.
18712 (negvti3): New expand pattern.
18713 (negdi_carryout): New insn pattern.
18714 (negvdi_carryinV): New insn pattern.
18715 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
18716 version the named version.
18717 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
18718 operands.
18719 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
18720 patterns.
18721 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
18722 patterns.
18723 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
18724 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
18725 (sub<mode>3_carryinCV): Delete.
18726 (sub<GPI:mode>3_carryinV): New expand pattern.
18727 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
18728
18729 2019-01-07 Richard Biener <rguenther@suse.de>
18730
18731 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
18732 of tree_operand_hash.
18733
18734 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18735
18736 PR tree-optimization/88598
18737 * tree.h (single_nonzero_element): Declare.
18738 * tree.c (single_nonzero_element): New function.
18739 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
18740 if I is the only nonzero element of CST.
18741
18742 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18743
18744 PR tree-optimization/88598
18745 * tree.h (initializer_each_zero_or_onep): Declare.
18746 * tree.c (initializer_each_zero_or_onep): New function.
18747 (signed_or_unsigned_type_for): Handle float types too.
18748 (unsigned_type_for, signed_type_for): Update comments accordingly.
18749 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
18750 x & { 0 or -1, 0 or -1, ... }.
18751
18752 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
18753
18754 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
18755 with x86_64-pc-linux-gnu.
18756
18757 2019-01-07 Tom de Vries <tdevries@suse.de>
18758
18759 PR target/85486
18760 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
18761 function.
18762 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
18763 routines.
18764
18765 2019-01-07 Jakub Jelinek <jakub@redhat.com>
18766
18767 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
18768 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
18769 TARGET_AVX512F as condition.
18770
18771 PR debug/88723
18772 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
18773 const_not_ok_for_debug_p target hook.
18774 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
18775 on UNSPEC and subexpressions thereof if all subexpressions of the
18776 UNSPEC are CONSTANT_P.
18777
18778 PR tree-optimization/88676
18779 * tree-ssa-phiopt.c (two_value_replacement): New function.
18780 (tree_ssa_phiopt_worker): Call it.
18781
18782 PR sanitizer/88619
18783 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
18784 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
18785
18786 PR c++/85052
18787 * tree-vect-generic.c: Include insn-config.h and recog.h.
18788 (expand_vector_piecewise): Add defaulted ret_type argument,
18789 if non-NULL, use that in preference to type for the result type.
18790 (expand_vector_parallel): Formatting fix.
18791 (do_vec_conversion, do_vec_narrowing_conversion,
18792 expand_vector_conversion): New functions.
18793 (expand_vector_operations_1): Call expand_vector_conversion
18794 for VEC_CONVERT ifn calls.
18795 * internal-fn.def (VEC_CONVERT): New internal function.
18796 * internal-fn.c (expand_VEC_CONVERT): New function.
18797 * fold-const-call.c (fold_const_vec_convert): New function.
18798 (fold_const_call): Use it for CFN_VEC_CONVERT.
18799 * doc/extend.texi (__builtin_convertvector): Document.
18800
18801 2019-01-07 Tom de Vries <tdevries@suse.de>
18802
18803 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
18804 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
18805 vector_red_partition, vector_red_sym): New global variables.
18806 (nvptx_option_override): Initialize vector_red_sym.
18807 (nvptx_declare_function_name): Restore red_partition register.
18808 (nvptx_file_end): Emit code to declare the vector reduction variables.
18809 (nvptx_output_red_partition): New function.
18810 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
18811 large vector reductions.
18812 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
18813 (nvptx_init_builtins): Add VECTOR_ADDR.
18814 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
18815 Handle nvptx_expand_shared_addr.
18816 (nvptx_get_shared_red_addr): Add vector argument and handle large
18817 vectors.
18818 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
18819 large vectors.
18820 (nvptx_goacc_reduction_init): Likewise.
18821 (nvptx_goacc_reduction_fini): Likewise.
18822 (nvptx_goacc_reduction_teardown): Likewise.
18823 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
18824 init,fini,teardown}.
18825 (nvptx_init_axis_predicate): Initialize vector_red_partition.
18826 (nvptx_set_current_function): Init vector_red_partition.
18827 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
18828 (nvptx_red_partition): New insn.
18829 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
18830
18831 2019-01-07 Tom de Vries <tdevries@suse.de>
18832
18833 PR target/85381
18834 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
18835 empty loops.
18836
18837 2019-01-07 Tom de Vries <tdevries@suse.de>
18838
18839 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
18840 (nvptx_option_override): Init oacc_bcast_partition.
18841 (nvptx_init_oacc_workers): New function.
18842 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
18843 (nvptx_needs_shared_bcast): New function.
18844 (nvptx_find_par): Generalize to enable vectors to use shared-memory
18845 to propagate state.
18846 (nvptx_shared_propagate): Initialize vector bcast partition and
18847 synchronization state.
18848 (nvptx_single): Generalize to enable vectors to use shared-memory
18849 to propagate state.
18850 (nvptx_process_pars): Likewise.
18851 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
18852 * config/nvptx/nvptx.h (struct machine_function): Add
18853 bcast_partition and sync_bar members.
18854
18855 2019-01-07 Tom de Vries <tdevries@suse.de>
18856
18857 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
18858 (nvptx_apply_dim_limits): New function.
18859 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
18860 PTX_WARP_SIZE.
18861
18862 2019-01-07 Tom de Vries <tdevries@suse.de>
18863
18864 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
18865 as late as possible.
18866
18867 2019-01-07 Tom de Vries <tdevries@suse.de>
18868
18869 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
18870 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
18871 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
18872 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
18873 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
18874
18875 2019-01-07 Tom de Vries <tdevries@suse.de>
18876
18877 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
18878
18879 2019-01-07 Tom de Vries <tdevries@suse.de>
18880
18881 * omp-offload.c (oacc_get_min_dim): New function.
18882 * omp-offload.h (oacc_get_min_dim): Declare.
18883
18884 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
18885
18886 PR target/88521
18887 * config/i386/i386.c (function_value_ms_64): Return small sturct in
18888 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
18889
18890 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18891
18892 PR tree-opt/86020
18893 Revert:
18894 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
18895
18896 * ipa-inline.c (edge_badness): Use inlined_time instead of
18897 inline_summaries->get.
18898
18899 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18900
18901 * opts.c (enable_fdo_optimizations): Enable
18902 version-loops-for-strides, loop-interchange, unrol-and-jam
18903 and tree-loop-distribution.
18904 * invoke.texi: Document newly enabled options.
18905
18906 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18907
18908 * doc/invoke.texi (max-inline-insns-small): New parameters.
18909 * ipa-inline.c (want_early_inline_function_p): simplify.
18910 (want_inline_small_function_p): Fix pasto from previous patch;
18911 use max-inline-insns-small bound.
18912 * params.def (max-inline-insns-small): New param.
18913 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
18914 variables correctly.
18915
18916 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18917
18918 * doc/invoke.texi: Document max-inline-insns-size,
18919 uninlined-function-insns, uninlined-function-time,
18920 uninlined-thunk-insns and uninlined-thunk-time.
18921 * params.def: Add max-inline-insns-size,
18922 uninlined-function-insns, uninlined-function-time,
18923 uninlined-thunk-insns and uninlined-thunk-time.
18924 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
18925 new parameters.
18926 * ipa-inline.c (can_inline_edge_by_limits_p,
18927 want_inline_small_function_p): Use new parameters.
18928
18929 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18930
18931 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
18932
18933 2019-01-05 Jakub Jelinek <jakub@redhat.com>
18934
18935 PR middle-end/82564
18936 PR target/88620
18937 * expr.c (expand_assignment): For calls returning VLA structures
18938 if to_rtx is not a MEM, force it into a stack temporary.
18939
18940 PR debug/88635
18941 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
18942 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
18943 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
18944 subexpressions of both operands.
18945 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
18946 subrtxes are CONSTANT_P.
18947 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
18948 2018-11-09 changes.
18949
18950 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
18951
18952 * params.def (hot-bb-count-ws-permille): Set to 990.
18953
18954 2019-01-04 Martin Sebor <msebor@redhat.com>
18955
18956 PR c/88546
18957 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
18958 leaf.
18959
18960 2019-01-04 Martin Sebor <msebor@redhat.com>
18961
18962 PR c/88363
18963 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
18964
18965 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18966
18967 * gdbinit.in: Turn off pagination for the skip commands, restore
18968 it to previous state afterwards.
18969
18970 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18971
18972 PR target/88594
18973 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
18974 of GET_MODE (opN) as modes of the libcall arguments.
18975
18976 2019-01-04 Jan Beulich <jbeulich@suse.com>
18977
18978 * config/i386/sse.md
18979 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
18980 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
18981 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18982 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18983 avx512f_vmcmp<mode>3<round_saeonly_name>,
18984 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
18985 avx512f_maskcmp<mode>3,
18986 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18987 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18988 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18989 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18990 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18991 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18992 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18993 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18994 <avx512>_testm<mode>3<mask_scalar_merge_name>,
18995 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
18996 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
18997 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
18998 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
18999 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
19000 avx512cd_maskb_vec_dup<mode>,
19001 avx512cd_maskw_vec_dup<mode>,
19002 avx512dq_fpclass<mode><mask_scalar_merge_name>,
19003 avx512dq_vmfpclass<mode>,
19004 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
19005 instead of =Yk.
19006
19007 2019-01-03 Martin Sebor <msebor@redhat.com>
19008
19009 PR tree-optimization/88659
19010 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
19011
19012 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19013
19014 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
19015 unaligned vsx and avoid lxvd2x/stxvd2x.
19016 (gen_lvx_v4si_move): New function.
19017
19018 2019-01-03 Tom de Vries <tdevries@suse.de>
19019
19020 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
19021 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
19022 function.
19023 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
19024
19025 2019-01-03 Tom de Vries <tdevries@suse.de>
19026
19027 * config/nvptx/nvptx.c (struct offload_attrs): New.
19028 (populate_offload_attrs): New function. Factor mask extraction out of
19029 nvptx_reorg. Add extraction of dimensions.
19030 (nvptx_reorg): Use populate_offload_attrs.
19031
19032 2019-01-03 Tom de Vries <tdevries@suse.de>
19033
19034 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
19035 cases for oacc_min_dims_p and routine_p. Add asserts for
19036 oacc_default_dims_p and offload_region_p.
19037
19038 2019-01-03 Tom de Vries <tdevries@suse.de>
19039
19040 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
19041 factored out of ...
19042 (nvptx_goacc_validate_dims): ... here.
19043
19044 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19045
19046 PR tree-optimization/85574
19047 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
19048 structure.
19049 (struct ssa_equip_hash_traits): Declare.
19050 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
19051
19052 2019-01-03 Jakub Jelinek <jakub@redhat.com>
19053
19054 PR debug/88644
19055 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
19056 change it to qualified_type.
19057
19058 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19059
19060 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
19061 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
19062
19063 2019-01-02 Martin Sebor <msebor@redhat.com>
19064 Jeff Law <law@redhat.com>
19065
19066 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
19067 (get_range_strlen_tree): Update appropriately.
19068 (get_range_strlen)
19069 * gimple-fold.h (get_range_strlen): Drop unused last argument.
19070
19071 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
19072 rather than set_range_info.
19073 * tree-ssa-strlen.c (set_strlen_range): Extracted from
19074 maybe_set_strlen_range. Handle potentially boundary crossing
19075 cases more conservatively.
19076 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
19077 Call set_strlen_range.
19078 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
19079
19080 PR middle-end/88663
19081 * gimple-fold.c (get_range_strlen): Update prototype to no longer
19082 need the flexp argument.
19083 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
19084 from calls to get_range_strlen. Update comments. Just update
19085 VAL for an unterminated const char array and let the reset of the
19086 code handle it normally. No longer try to set *flexp. Adjust
19087 return value.
19088 (get_range_strlen): Update for the new get_range_strlen API.
19089 (get_maxval_strlen): Similarly.
19090 (gimple_fold_builtin_strlen): Handle update meaning of return value
19091 from get_range_strlen.
19092 * gimple-ssa-sprintf.c (get_string_length): Update for the new
19093 get_range_strlen API.
19094
19095 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
19096
19097 PR lto/88130
19098 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
19099 false at WPA time when body was removed.
19100
19101 2019-01-02 Martin Liska <mliska@suse.cz>
19102
19103 PR tree-optimization/88650
19104 * predict.c (set_even_probabilities): Calculate probability
19105 remainer only when really used.
19106
19107 2019-01-02 Richard Biener <rguenther@suse.de>
19108
19109 PR middle-end/88651
19110 * tree-data-ref.c (analyze_subscript_affine_affine): Use
19111 widest_ints when mangling max_stmt_execution results.
19112
19113 2019-01-02 Richard Biener <rguenther@suse.de>
19114
19115 PR tree-optimization/88621
19116 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
19117 bitfields when canoncalizing.
19118
19119 2019-01-02 Richard Biener <rguenther@suse.de>
19120
19121 PR target/87545
19122 * config/i386/x86-tune-costs.h (intel_cost): Adjust
19123 cost of cheap SSE instruction.
19124
19125 2019-01-02 Richard Biener <rguenther@suse.de>
19126
19127 PR ipa/85574
19128 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
19129 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
19130 function.
19131 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
19132 set after UIDs before splitting them.
19133
19134 2019-01-01 Martin Sebor <msebor@redhat.com>
19135 Jeff Law <law@redhat.com>
19136
19137 * gimple-fold.c (get_range_strlen_tree): Record if the computed
19138 length is optimistic. If it is, then arrange to compute the
19139 conservative length as well.
19140
19141 * gimple-fold.h (get_range_strlen): Update prototype.
19142 * builtins.c (check_access): Update call to get_range_strlen to use
19143 c_strlen_data pointer. Change various variable accesses to instead
19144 pull data from the c_strlen_data structure.
19145 (check_strncat_sizes, expand_builtin_strncat): Likewise.
19146 * calls.c (maybe_warn_nonstring_arg): Likewise.
19147 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
19148 minimum length if maximum lengh is unknown.
19149 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
19150 that used c_strlen, it's no longer needed. Restructure slightly.
19151 (format_string): Set unlikely range appropriately.
19152 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
19153 formatting issues.
19154 (get_range_strlen): Accept c_strlen_data pointer for external
19155 call sites as well. Pass through to call to internal get_range_strlen.
19156 Adjust minlen, maxlen and maxbound as needed.
19157 (get_maxval_strlen): Update comments.
19158 (gimple_fold_builtin_strlen): Update call to get_range_strlen
19159 to use c_strlen_data pointer. Change variable accesses to instead
19160 use c_strlen_data data members.
19161
19162 * gimple-fold.c (get_range_strlen): Update prototype.
19163 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
19164 local variables. Use pdata to return information to caller.
19165 Update calls to get_range_strlen. Update pdata->maxbound.
19166 (get_range_strlen -- static version): Similarly.
19167 (get_range_strlen -- extern version): Update for internal
19168 get_range_strlen API change. Convert to external data format.
19169 (get_maxval_strlen): Similarly.
19170
19171 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
19172
19173 * coverage.c (get_coverage_counts): Use current_function_decl.
19174 * profile.c (read_thunk_profile): New function.
19175 (branch_prob): Add THUNK parameter.
19176 * tree-profile.c (tree_profiling): Handle thunks.
19177 * value-prof.c (init_node_map): Handle thunks.
19178 * value-prof.h (branch_prob): Upate prototype.
19179 (read_thunk_profile): Declare.
19180
19181 2019-01-01 Jakub Jelinek <jakub@redhat.com>
19182
19183 Update copyright years.
19184
19185 * gcc.c (process_command): Update copyright notice dates.
19186 * gcov-dump.c (print_version): Ditto.
19187 * gcov.c (print_version): Ditto.
19188 * gcov-tool.c (print_version): Ditto.
19189 * gengtype.c (create_file): Ditto.
19190 * doc/cpp.texi: Bump @copying's copyright year.
19191 * doc/cppinternals.texi: Ditto.
19192 * doc/gcc.texi: Ditto.
19193 * doc/gccint.texi: Ditto.
19194 * doc/gcov.texi: Ditto.
19195 * doc/install.texi: Ditto.
19196 * doc/invoke.texi: Ditto.
19197 \f
19198 Copyright (C) 2019 Free Software Foundation, Inc.
19199
19200 Copying and distribution of this file, with or without modification,
19201 are permitted in any medium without royalty provided the copyright
19202 notice and this notice are preserved.