]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
PR tree-optimization/91294 - [10 Regression] wrong strlen result of a conditional...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-14 Martin Sebor <msebor@redhat.com>
2
3 PR tree-optimization/91294
4 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
5 source length as exact.
6
7 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
8
9 * doc/extend.texi: Add "noinit" attribute documentation.
10 * doc/sourcebuild.texi: Add noinit effective target documentation.
11 * varasm.c (default_section_type_flags): Add support for "noinit"
12 section.
13 (default_elf_select_section): Add support for "noinit" attribute.
14 * config/msp430/msp430.c (msp430_attribute_table): Remove "noinit" entry.
15
16 2019-08-14 Richard Biener <rguenther@suse.de>
17 Uroš Bizjak <ubizjak@gmail.com>
18
19 PR target/91154
20 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
21 mode arguments.
22 (scalar_chain::smode): New member.
23 (scalar_chain::vmode): Likewise.
24 (dimode_scalar_chain): Rename to...
25 (general_scalar_chain): ... this.
26 (general_scalar_chain::general_scalar_chain): Take mode arguments.
27 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
28 base with TImode and V1TImode.
29 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
30 (general_scalar_chain::vector_const_cost): Adjust for SImode
31 chains.
32 (general_scalar_chain::compute_convert_gain): Likewise. Add
33 {S,U}{MIN,MAX} support.
34 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
35 (general_scalar_chain::make_vector_copies): Likewise. Handle
36 non-DImode chains appropriately.
37 (general_scalar_chain::convert_reg): Likewise.
38 (general_scalar_chain::convert_op): Likewise.
39 (general_scalar_chain::convert_insn): Likewise. Add
40 fatal_insn_not_found if the result is not recognized.
41 (convertible_comparison_p): Pass in the scalar mode and use that.
42 (general_scalar_to_vector_candidate_p): Likewise. Rename from
43 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
44 (scalar_to_vector_candidate_p): Remove by inlining into single
45 caller.
46 (general_remove_non_convertible_regs): Rename from
47 dimode_remove_non_convertible_regs.
48 (remove_non_convertible_regs): Remove by inlining into single caller.
49 (convert_scalars_to_vector): Handle SImode and DImode chains
50 in addition to TImode chains.
51 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
52 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
53 (*<maxmin>di3_doubleword): Likewise.
54
55 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
56 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
57
58 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
59 (*cond_bic<mode>_any): New patterns.
60
61 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
62
63 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
64 take the equivalent mask, as well as a bit count.
65 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
66 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
67 (aarch64_sve_pred_and_operand): New predicates.
68 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
69 code attribute.
70 * config/aarch64/aarch64-sve.md
71 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
72 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
73
74 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
75
76 * config/aarch64/aarch64-sve.md
77 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
78 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
79 New patterns.
80
81 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
82 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
83
84 * config/aarch64/aarch64-sve.md
85 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
86 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
87
88 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
89 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
90
91 * config/aarch64/aarch64-sve.md
92 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
93 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
94
95 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
96
97 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
98 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
99 New pattern.
100
101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
102 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
103
104 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
105
106 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
107 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
108
109 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
110 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
111 (aarch64_print_operand): Add support for %I.
112 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
113 Bitcast floating-point constants to the corresponding integer constant.
114 (aarch64_float_const_representable_p): Handle vectors as well
115 as scalars.
116 (aarch64_expand_sve_vcond): Make sure that the operands are valid
117 for the new vcond_mask_<mode><vpred> expander.
118 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
119 test aarch64_float_const_representable_p.
120 (aarch64_sve_reg_or_dup_imm): New predicate.
121 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
122 gen_vcond_mask_<mode><vpred> instead of
123 gen_aarch64_sve_dup<mode>_const.
124 (vcond_mask_<mode><vpred>): Turn into a define_expand that
125 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
126 for operands 1 and 2 respectively. Force operand 2 into a
127 register if operand 1 is a register. Fold old define_insn...
128 (aarch64_sve_dup<mode>_const): ...and this define_insn...
129 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
130 floating-point constants that can be moved as integers. Add
131 alternatives for MOV /M and FMOV /M.
132 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
133 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
134 1 and 2 respectively.
135 * config/aarch64/constraints.md (Ufc): Handle vectors as well
136 as scalars.
137 (vss): New constraint.
138
139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
140
141 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
142 (aarch64_sve_float_maxmin_operand): New predicates.
143 * config/aarch64/constraints.md (vsB): New constraint.
144 (vsM): Fix typo.
145 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
146 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
147 UNSPEC_COND_FMINNM.
148 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
149 Use aarch64_sve_float_maxmin_operand for operand 2.
150 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
151 Add alternatives for the constant forms.
152
153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
154
155 * config/aarch64/constraints.md (vsb): New constraint.
156 (vsm): Generalize description.
157 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
158 iterator.
159 (sve_imm_con): Handle smax, smin, umax and umin.
160 (sve_imm_prefix): New code attribute.
161 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
162 (aarch64_sve_vsb_operand): New predicates.
163 (aarch64_sve_mul_immediate): Rename to...
164 (aarch64_sve_vsm_immediate): ...this.
165 (aarch64_sve_mul_operand): Rename to...
166 (aarch64_sve_vsm_operand): ...this.
167 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
168 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
169 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
170 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
171 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
172 add movprfx support for the immediate alternatives.
173 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
174 of the above.
175 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
176 for operand 3.
177
178 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
179
180 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
181 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
182 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
183
184 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
185
186 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
187 (optab, sve_int_op): Handle them.
188 * config/aarch64/aarch64-sve.md: Expand comment.
189
190 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
191
192 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
193 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
194 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
195
196 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
197
198 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
199 (aarch64_expand_sve_const_pred_trn): New functions.
200 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
201 use the above functions when the parameter is true.
202 (aarch64_expand_sve_const_pred): Update call accordingly.
203 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
204 Rename to...
205 (@aarch64_sve_<perm_insn><mode>): ...this.
206
207 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
208
209 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
210 Declare.
211 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
212 (aarch64_sve_emit_int_cmp): New functions.
213 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
214 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
215 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
216 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
217 (UNSPEC_PRED_Z): New unspec.
218 (set_clobber_cc_nzc): Delete.
219 * config/aarch64/aarch64-sve.md: Add a block comment about
220 UNSPEC_PRED_Z.
221 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
222 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
223 the old pattern with that name. Use UNSPEC_PRED_Z instead of
224 UNSPEC_MERGE_PTRUE.
225 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
226 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
227 check for compatible predicates.
228 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
229 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
230 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
231 comparisons above.
232
233 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
234
235 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
236 * config/aarch64/aarch64-sve.md: Add a section describing it.
237 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
238 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
239 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
240 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
241 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
242 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
243 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
244 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
245 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
246 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
247 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
248 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
249 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
250 (aarch64_evpc_rev_local): Update accordingly.
251
252 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
253
254 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
255 iterators.
256 (SVE_BHSI, SVE_SDI): Tweak comment.
257 (SVE_HSDI): Likewise. Fix definition.
258 (SVE_SDF): New mode iterator.
259 (elem_bits): New mode attribute.
260 (SVE_COND_FCVT): New int iterator.
261 * config/aarch64/aarch64-sve.md
262 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
263 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
264 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
265 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
266 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
267 ...these new patterns.
268 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
269 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
270 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
271 Merge into...
272 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
273 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
274 ...these new patterns.
275 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
276 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
277 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
278 ...this new pattern.
279 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
280 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
281 ...this new pattern.
282 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
283
284 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
285
286 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
287 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
288 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
289 unspecs.
290 (optab, su): Handle them.
291 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
292 * config/aarch64/aarch64-sve.md
293 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
294 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
295 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
296 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
297 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
298 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
299 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
300 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
301 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
302 FIXUORS.
303 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
304 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
305 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
306 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
307 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
308 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
309 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
310 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
311 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
312 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
313 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
314 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
315 of UNSPEC_FLOAT_CONVERT.
316 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
317 aarch64_sve_extend<mode><Vwide>2.
318
319 2019-08-14 Richard Biener <rguenther@suse.de>
320
321 PR target/91154
322 * config/i386/i386-features.c
323 (dimode_scalar_chain::compute_convert_gain): Compute and dump
324 individual instruction gain. Fix reg-reg copy GRP cost. Use
325 ix86_cost->sse_op for vector instruction costs.
326
327 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
328
329 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
330 (cmp_op): Handle it.
331 (SVE_COND_FP_CMP): Rename to...
332 (SVE_COND_FP_CMP_I0): ...this.
333 (SVE_FP_CMP): Remove.
334 * config/aarch64/aarch64-sve.md
335 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
336 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
337 using unspecs to represent the comparison.
338 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
339 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
340 accordingly.
341 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
342 (aarch64_unspec_cond_code): Move after integer code. Handle
343 UNORDERED.
344 (aarch64_emit_sve_predicated_cond): Replace with...
345 (aarch64_emit_sve_fp_cond): ...this new function.
346 (aarch64_emit_sve_or_conds): Replace with...
347 (aarch64_emit_sve_or_fp_conds): ...this new function.
348 (aarch64_emit_sve_inverted_cond): Replace with...
349 (aarch64_emit_sve_invert_fp_cond): ...this new function.
350 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
351
352 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
353
354 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
355 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
356 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
357 SVE_HSD instead of SVE_SD.
358
359 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
360 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
361
362 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
363 iterator.
364 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
365 attributes.
366 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
367 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
368 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
369 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
370 (*div<SVE_F:mode>3): Generalize to...
371 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
372
373 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
374 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
375
376 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
377 constants.
378 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
379 predicate.
380 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
381 Declare.
382 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
383 function.
384 * config/aarch64/aarch64-sve.md: Add a block comment about the
385 handling of predicated FP operations.
386 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
387 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
388 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
389 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
390 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
391 operand.
392 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
393 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
394 operand.
395 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
396 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
397 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
398 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
399 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
400 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
401 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
402 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
403 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
404 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
405 strictness operands. Use aarch64_sve_pred_dominates_p to check
406 whether the predicate on the conditional operation is suitable
407 for merging. Split patterns into the canonical equal-predicate form.
408 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
409 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
410
411 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
412 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
413
414 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
415 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
416 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
417 rtx codes.
418 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
419 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
420 unspecs.
421
422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
423 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
424
425 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
426 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
427 actually has, rather than relying on REG_EQUAL notes.
428 Make the insn operand order match the SVE operand order.
429 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
430 the SVE operand order.
431
432 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
433
434 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
435 (aarch64_emit_set_immediate): Likewise.
436 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
437 (aarch64_pfalse_reg): Likewise.
438 (aarch64_convert_sve_data_to_pred): New function.
439 (aarch64_sve_move_pred_via_while): Take an optional target register
440 and the required register mode.
441 (aarch64_expand_sve_const_pred_1): New function.
442 (aarch64_expand_sve_const_pred): Likewise.
443 (aarch64_expand_mov_immediate): Build an all-true predicate
444 if the significant bits of the immediate are all true. Use
445 aarch64_expand_sve_const_pred for all compile-time predicate constants.
446 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
447 before register allocation.
448 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
449 a VNx16BI PTRUE when splitting the memory alternative.
450 (vec_duplicate<mode>): Update accordingly.
451 (*pred_cmp<cmp_op><mode>): Rename to...
452 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
453
454 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
455
456 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
457 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
458 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
459 (UNSPEC_PTEST): New unspec.
460 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
461 * config/aarch64/iterators.md (data_bytes): New mode attribute.
462 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
463 * config/aarch64/aarch64-sve.md: Add a new section describing the
464 handling of UNSPEC_PTEST.
465 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
466 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
467 (ptest_ptrue<mode>): Replace with...
468 (aarch64_ptest<mode>): ...this new pattern.
469 (cbranch<mode>4): Update after above changes.
470 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
471 UNSPEC_PTEST_PTRUE.
472 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
473 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
474 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
475
476 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
477
478 PR lto/91287
479 * builtins.c (builtin_with_linkage_p): New function.
480 * builtins.h (builtin_with_linkage_p): New function.
481 * symtab.c (write_symbol): Remove redundant assert.
482 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
483 Remove FIXME and use builtin_with_linkage_p.
484
485 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
486
487 PR middle-end/91421
488 * tree-core.h (function_decl::function_code): Change type to
489 unsigned int.
490 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
491 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
492 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
493 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
494 is BUILT_IN_NORMAL.
495 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
496 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
497 (fndecl_built_in_p): Change the type of the "name" argument to
498 unsigned int.
499 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
500 after check for DECL_BUILT_IN_CLASS.
501 * cgraphclones.c (build_function_decl_skip_args): Use
502 set_decl_built_in_function.
503 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
504 * ipa-split.c (split_function): Likewise.
505 * langhooks.c (add_builtin_function_common): Likewise.
506 * omp-simd-clone.c (simd_clone_create): Likewise.
507 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
508 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
509 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
510 DECL_FUNCTION_CODE.
511 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
512 instead of DECL_FUNCTION_CODE.
513 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
514 instead of DECL_FUNCTION_CODE.
515 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
516 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
517 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
518 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
519 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
520 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
521 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
522 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
523 (alpha_gimple_fold_builtin): Likewise.
524 * config/arc/arc.c (arc_expand_builtin): Likewise.
525 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
526 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
527 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
528 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
529 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
530 * config/frv/frv.c (frv_expand_builtin): Likewise.
531 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
532 (gcn_expand_builtin): Likewise.
533 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
534 (fold_builtin_cpu): Likewise.
535 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
536 * config/i386/i386.c (ix86_fold_builtin): Likewise.
537 (ix86_gimple_fold_builtin): Likewise.
538 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
539 (ia64_expand_builtin): Likewise.
540 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
541 * config/mips/mips.c (mips_expand_builtin): Likewise.
542 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
543 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
544 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
545 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
546 * config/pa/pa.c (pa_expand_builtin): Likewise.
547 * config/pru/pru.c (pru_expand_builtin): Likewise.
548 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
549 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
550 Likewise.
551 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
552 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
553 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
554 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
555 (rs6000_builtin_reciprocal): Likewise.
556 * config/rx/rx.c (rx_expand_builtin): Likewise.
557 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
558 * config/s390/s390.c (s390_expand_builtin): Likewise.
559 * config/sh/sh.c (sh_expand_builtin): Likewise.
560 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
561 (sparc_fold_builtin): Likewise.
562 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
563 * config/spu/spu.c (spu_expand_builtin): Likewise.
564 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
565 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
566 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
567 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
568 (xtensa_expand_builtin): Likewise.
569
570 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
571
572 PR middle-end/91421
573 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
574 before the DECL_FUNCTION_CODE.
575 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
576 to check for a BUILT_IN_ALLOCA call.
577 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
578 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
579 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
580 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
581 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
582 for BUILT_IN_NORMAL functions.
583 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
584 test for BUILT_IN_TM_ABORT.
585 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
586 to check for a BUILT_IN_STACK_RESTORE call.
587 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
588 * tree-ssa-threadedge.c
589 (record_temporary_equivalences_from_stmts_at_dest): Check for a
590 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
591 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
592 test for a BUILT_IN_NORMAL call instead of a negative test for
593 an internal function call.
594
595 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
596
597 * tree.h (build_vector_a_then_b): Declare.
598 * tree.c (build_vector_a_then_b): New function.
599 * fold-const-call.c (fold_while_ult): Likewise.
600 (fold_const_call): Use it to handle IFN_WHILE_ULT.
601 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
602 (aarch64_svpattern): New enum.
603 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
604 constants through aarch64_expand_mov_immediate.
605 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
606 than general_operand as the predicate for operand 1.
607 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
608 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
609 insn_type.
610 (simd_immediate_info::simd_immediate_info): New overload that
611 takes a scalar_int_mode and an svpattern.
612 (simd_immediate_info::u): Add a "pattern" field.
613 (svpattern_token): New function.
614 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
615 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
616 (aarch64_sve_move_pred_via_while): New functions.
617 (aarch64_expand_mov_immediate): Try using
618 aarch64_sve_move_pred_via_while for predicates that contain N ones
619 followed by M zeros but that do not correspond to a VLnnn pattern.
620 (aarch64_sve_pred_valid_immediate): New function.
621 (aarch64_simd_valid_immediate): Use it instead of dealing directly
622 with PTRUE and PFALSE.
623 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
624 forms.
625
626 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
627
628 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
629 flag.
630 (darwin_override_options): Likewise.
631 * config/darwin.h: Likewise.
632 * config/darwin.opt: Likewise.
633 * config/i386/i386.c (output_pic_addr_const): Likewise.
634 * config/rs6000/darwin.h: Likewise.
635 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
636 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
637 ... this TARGET_MACHO_SYMBOL_STUBS.
638 (FUNCTION_PROFILER):Likewise.
639 * config/i386/i386.h: Likewise.
640
641 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
642
643 * config/i386/i386.md (ix86_expand_vector_extract) <case E_V2SImode>:
644 Use vec_extr path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
645 <case E_V8QImode>: Ditto.
646 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
647 Use SWI48 mode iterator. Use %k to output operand 0.
648 (*mmx_pextrw): New insn pattern.
649 (*mmx_pextrb): Ditto.
650 (*mmx_pextrb_zext): Ditto.
651
652 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
653
654 * target.def (libc_has_function, libc_has_fast_function): Improve
655 documentation strings.
656 * doc/tm.texi: Regenerate.
657
658 2019-08-13 Caroline Tice <cmtice@google.com>
659
660 PR other/91396
661 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
662 vtv_end.o or vtv_end_preinit.o files if !static.
663
664 2019-08-13 Olivier Hainque <hainque@adacore.com>
665
666 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
667
668 2019-08-13 Olivier Hainque <hainque@adacore.com>
669
670 * rtlanal.c (tablejump_casesi_pattern): New function, to
671 determine if a tablejump insn is a casesi dispatcher. Extracted
672 from patch_jump_insn.
673 * rtl.h (tablejump_casesi_pattern): Declare.
674 * cfgrtl.c (patch_jump_insn): Use it.
675 * dwarf2cfi.c (create_trace_edges): Use it.
676
677 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
678
679 PR target/81800
680 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
681 operand is larger than a long int.
682
683 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
684
685 * machmode.h (opt_mode::else_mode): New function.
686 (opt_mode::else_blk): Use it.
687 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
688 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
689 (aarch64_gen_stepped_int_parallel): Likewise.
690 (aarch64_stepped_int_parallel_p): Likewise.
691 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
692 argument.
693 * config/aarch64/aarch64.c
694 (aarch64_expand_sve_widened_duplicate): Delete.
695 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
696 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
697 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
698 argument. Use early returns in the !CONST_INT_P handling.
699 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
700 than handling some inline.
701 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
702 from...
703 (aarch64_simd_container_mode): ...here.
704 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
705 (aarch64_sve_ld1rq_operand_p): New functions.
706 * config/aarch64/predicates.md (descending_int_parallel)
707 (aarch64_sve_ld1rq_operand): New predicates.
708 * config/aarch64/constraints.md (UtQ): New constraint.
709 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
710 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
711 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
712 (@aarch64_sve_reinterpret<mode>): New expander.
713 (*aarch64_sve_reinterpret<mode>): New pattern.
714 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
715 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
716 (*sve_ld1rq<Vesize>): Replace with...
717 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
718
719 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
720
721 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
722 16:12.
723
724 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
725
726 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
727 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
728 (msp430_check_path_for_devices): New.
729 (parse_devices_csv_1): New.
730 (parse_devices_csv): New.
731 (msp430_extract_mcu_data): Try to find devices.csv and search for the
732 MCU data in devices.csv before using the hard-coded data.
733 Warn if devices.csv isn't found and the MCU wasn't found in the
734 hard-coded data either.
735 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
736 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
737 Search for devices.csv on -I and -L paths.
738 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
739 msp430_set_driver_var.
740 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
741 -mdevices-csv-loc=.
742 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
743 searched for devices.csv.
744 (mwarn-devices-csv): Document option.
745
746 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
747
748 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
749 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
750 Use a single Dn alternative instead of separate Dz and Dm
751 alternatives. Use aarch64_output_sve_move_immediate.
752 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
753 function.
754 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
755 for predicates too.
756 (aarch64_output_sve_mov_immediate): Handle predicate modes.
757 (aarch64_output_ptrue): Delete.
758
759 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
760
761 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
762 INDEX.
763 (simd_immediate_info::value, simd_immediate_info::step)
764 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
765 with...
766 (simd_immediate_info::u): ...this new union.
767 (simd_immediate_info::simd_immediate_info): Update accordingly.
768 (aarch64_output_simd_mov_immediate): Likewise.
769 (aarch64_output_sve_mov_immediate): Likewise.
770
771 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
772
773 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
774 extra_gcc_objs.
775 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
776 (msp430_select_cpu): New spec function.
777 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
778 MCU data.
779 * config/msp430/msp430-devices.c: New file.
780 * config/msp430/msp430-devices.h: New file.
781 * config/msp430/msp430.c: Remove msp430_mcu_data.
782 (msp430_option_override): Use msp430_extract_mcu_data to extract
783 MCU data.
784 (msp430_use_f5_series_hwmult): Likewise.
785 (use_32bit_hwmult): Likewise.
786 (msp430_no_hwmult): Likewise.
787 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
788 assembler.
789 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
790 and -mcpu option.
791 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
792 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
793 Remove hard-coded MCU multilib data.
794
795 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
796
797 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
798 based on the mode instead of testing properties of it.
799
800 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
801
802 * doc/md.texi: Document the x and y constraints for AArch64.
803 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
804 (FP_LO8_REGS): New reg_class.
805 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
806 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
807 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
808 * config/aarch64/predicates.md (aarch64_simd_register): Use
809 FP_REGNUM_P instead of checking the classes manually.
810 * config/aarch64/constraints.md (y): New constraint.
811
812 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
813
814 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
815 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
816 * config/aarch64/aarch64-simd.md
817 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
818 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
819 from the asm template.
820 * config/aarch64/aarch64-sve.md
821 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
822 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
823 from the asm template.
824 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
825 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
826 from the asm template.
827 * config/aarch64/aarch64-simd-builtins.def: Update comment.
828
829 2019-08-13 Martin Liska <mliska@suse.cz>
830
831 * value-prof.c (gimple_ic_transform): Add new line.
832 Print details with MSG_NOTE.
833
834 2019-08-13 Martin Liska <mliska@suse.cz>
835
836 * doc/invoke.texi: Document automatic detection of jobserver.
837 * lto-wrapper.c (run_gcc): Detect jobserver always.
838
839 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
840
841 * config/i386/i386.md (ix86_expand_vector_set) <case E_V2SImode>:
842 Use vec_merge path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
843 <case E_V8QImode>: Ditto.
844 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
845 (*mmx_pinsrb): Ditto.
846
847 2019-08-12 Jakub Jelinek <jakub@redhat.com>
848
849 PR target/83250
850 PR target/91340
851 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
852 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
853 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
854 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
855 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
856
857 2019-08-12 Richard Biener <rguenther@suse.de>
858
859 PR lto/91375
860 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
861 flag_devirtualize.
862
863 2019-08-12 Richard Biener <rguenther@suse.de>
864
865 PR driver/91130
866 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
867 lang_mask option, always use CL_DRIVER.
868 (get_options_from_collect_gcc_options): Adjust.
869 (find_and_merge_options): Likewise.
870 (run_gcc): Likewise.
871
872 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
873
874 * ipa-predicate.c (add_condition): Restore inverted test.
875
876 2019-08-10 Jakub Jelinek <jakub@redhat.com>
877
878 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
879 (enum omp_clause_device_type_kind): New enum.
880 (struct tree_omp_clause): Add subcode.device_type_kind.
881 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
882 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
883 for device_type clause.
884 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
885 * tree-pretty-print.c (dump_omp_clause): Likewise.
886
887 PR target/91408
888 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
889 vector_operand.
890
891 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
892
893 * reload1.c (finish_spills): Do not check ira_conflicts_p when
894 handling spilled pseudos.
895
896 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
897
898 PR target/91386
899 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
900 to preserve the contents of the original insns.
901
902 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
903
904 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
905 (addsi3_compare_op2): Likewise.
906
907 2019-08-09 Martin Liska <mliska@suse.cz>
908
909 * alias.c (alias_ptr_types_compatible_p): Strengten
910 type comparison in LTO mode.
911
912 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
913
914 PR middle-end/90313
915 * tree-tailcall.c (find_tail_calls): Reject calls that might
916 read from an escaped RESULT_DECL.
917
918 2019-08-09 Martin Liska <mliska@suse.cz>
919
920 * doc/invoke.texi: Document the option value.
921 * lto-wrapper.c (run_gcc): Set auto_parallel
922 only with -flto=auto.
923
924 2019-08-09 Martin Liska <mliska@suse.cz>
925
926 * opts.c (common_handle_option): Error for an invalid argument
927 to -flto=.
928
929 2019-08-09 Martin Liska <mliska@suse.cz>
930
931 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
932 use dump_printf to report optimization.
933 (sem_variable::merge): Likwise.
934 (sem_item_optimizer::merge_classes): Use dump_printf to report
935 ICF hits.
936
937 2019-08-09 Martin Liska <mliska@suse.cz>
938
939 * value-prof.c (gimple_divmod_fixed_value_transform):
940 Use dump_printf_loc.
941 (gimple_mod_pow2_value_transform): Likewise.
942 (gimple_mod_subtract_transform): Likewise.
943 (init_node_map): Likewise.
944 (gimple_ic_transform): Likewise.
945 (gimple_stringops_transform): Likewise.
946
947 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
948
949 * doc/extend.texi: Add const qualifier to ld intrinsics.
950
951 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
952
953 * config/rs6000/dfp.md (D64_D128): Rename to ...
954 (DDTD): ... this, throughout.
955 (dfp_suffix): Rename to ...
956 (q): ... this, throughout.
957
958 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
959
960 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
961 (dfp_suffix): Ditto.
962 (adddd3, addtd3): Merge to ...
963 (add<mode>3 for D64_D128): ... this.
964 (subdd3, subtd3): Merge to ...
965 (sub<mode>3 for D64_D128): ... this.
966 (muldd3, multd3): Merge to ...
967 (mul<mode>3 for D64_D128): ... this.
968 (divdd3, divtd3): Merge to ...
969 (div<mode>3 for D64_D128): ... this.
970 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
971 (*cmp<mode>_internal1 for D64_D128): ... this.
972 (ftruncdd2, ftrunctd2): Merge to ...
973 (ftrunc<mode>2 for D64_D128): ... this.
974 (fixdddi2, fixtddi2): Merge to ...
975 (fix<mode>di2 for D64_D128): ... this.
976
977 2019-08-08 Jim Wilson <jimw@sifive.com>
978
979 PR target/91229
980 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
981 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
982 Pass into recursive call.
983 (riscv_flatten_aggregate_argument): New arg. Pass to
984 riscv_flatten_aggregate_field.
985 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
986 riscv_flatten_aggregate_argument twice, with false and true as last
987 arg. Process result twice. Compare results and warn if different.
988 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
989
990 2019-08-08 Martin Liska <mliska@suse.cz>
991
992 PR bootstrap/91352
993 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
994 * lto-wrapper.c (jobserver_active_p): Likewise.
995
996 2019-08-08 Martin Liska <mliska@suse.cz>
997
998 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
999 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
1000 (create_version_clone_with_body): Likewise.
1001
1002 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1003
1004 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
1005 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
1006 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
1007 GOVD_EXPLICIT flags.
1008 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
1009 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
1010 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
1011 call install_var_field with mask 11 instead of 3.
1012 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
1013 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
1014
1015 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1016
1017 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
1018 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
1019
1020 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1021
1022 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
1023 MOVPRFX alternatives. Make the GPR alternatives more expensive
1024 than the FPR ones.
1025
1026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1027
1028 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
1029 Disparage the GPR alternative relative to the FPR one.
1030 Fix handling of 8-bit and 16-bit FPR values.
1031
1032 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1033
1034 * config/aarch64/iterators.md (BITWISEV): Delete.
1035 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
1036 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
1037 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1038 UNSPEC_FMINNMV, UNSPEC_FMINV.
1039 (bit_reduc_op): Delete.
1040 (sve_int_op): New int attribute.
1041 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1042 UNSPEC_FMINNMV, UNSPEC_FMINV.
1043 * config/aarch64/aarch64-sve.md
1044 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1045 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1046 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
1047 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
1048 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
1049 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
1050 new patterns.
1051 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
1052 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
1053 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
1054 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
1055 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
1056 new patterns.
1057
1058 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1059
1060 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
1061 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
1062 (fms<mode>4, *fms<mode>4): Replace with...
1063 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1064 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
1065 Use unspecs instead of rtx codes.
1066 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
1067 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
1068
1069 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1070
1071 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
1072 int iterator.
1073 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
1074 * config/aarch64/aarch64-sve.md
1075 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
1076 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
1077 use a single unspec for the rhs.
1078 (*<su><maxmin><mode>3): Delete.
1079 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
1080
1081 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1082
1083 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
1084 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
1085 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
1086 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
1087 (optab, sve_fp_op): Handle them.
1088 (SVE_FP_UNARY): Delete.
1089 (optab): Remove sqrt entry.
1090 (sve_fp_op): Remove neg, abs and sqrt entries.
1091 (SVE_COND_FP_UNARY): New int iterator.
1092 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
1093 (*<frint_pattern><mode>2): Delete.
1094 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1095 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1096 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1097 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1098
1099 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1100
1101 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
1102
1103 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1104
1105 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
1106 (UNSPEC_COND_FADD): ...this.
1107 (UNSPEC_COND_SUB): Rename to...
1108 (UNSPEC_COND_FSUB): ...this.
1109 (UNSPEC_COND_MUL): Rename to...
1110 (UNSPEC_COND_FMUL): ...this.
1111 (UNSPEC_COND_DIV): Rename to...
1112 (UNSPEC_COND_FDIV): ...this.
1113 (UNSPEC_COND_MAX): Rename to...
1114 (UNSPEC_COND_FMAXNM): ...this.
1115 (UNSPEC_COND_MIN): Rename to...
1116 (UNSPEC_COND_FMINNM): ...this.
1117 (UNSPEC_COND_LT): Rename to...
1118 (UNSPEC_COND_FCMLT): ...this.
1119 (UNSPEC_COND_LE): Rename to...
1120 (UNSPEC_COND_FCMLE): ...this.
1121 (UNSPEC_COND_EQ): Rename to...
1122 (UNSPEC_COND_FCMEQ): ...this.
1123 (UNSPEC_COND_NE): Rename to...
1124 (UNSPEC_COND_FCMNE): ...this.
1125 (UNSPEC_COND_GE): Rename to...
1126 (UNSPEC_COND_FCMGE): ...this.
1127 (UNSPEC_COND_GT): Rename to...
1128 (UNSPEC_COND_FCMGT): ...this.
1129 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
1130 (sve_fp_op_rev): Update accordingly.
1131 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
1132
1133 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1134
1135 * config/aarch64/aarch64-sve.md: Reorganize contents and add
1136 banner comments.
1137 * config/aarch64/check-sve-md.awk: New file.
1138 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
1139 (insn-conditions.md): Depend on it.
1140
1141 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
1142
1143 PR target/91385
1144 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
1145 (*negsi2_cmpz_zext): Ditto.
1146
1147 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1148
1149 * config/aarch64/iterators.md (commutative): Remove.
1150
1151 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
1152
1153 PR driver/91130
1154 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
1155 processing COLLECT_GCC_OPTIONS.
1156 (run_gcc): Likewise.
1157
1158 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1159
1160 PR tree-optimization/91109
1161 * lra-remat.c (update_scratch_ops): Remove assignment of the
1162 hard register.
1163
1164 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1165
1166 * data-streamer.h (streamer_write_poly_uint64): Declare.
1167 (streamer_read_poly_uint64): Likewise.
1168 * data-streamer-in.c (streamer_read_poly_uint64): New function.
1169 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
1170 * ipa-predicate.h (condition::size): Turn into a poly_int64.
1171 (add_condition): Take a poly_int64 size.
1172 * ipa-predicate.c (add_condition): Likewise.
1173 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
1174 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
1175 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
1176 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
1177 condition::size as a poly_int64.
1178 (unmodified_parm_1): Take a poly_int64 size pointer.
1179 (unmodified_parm): Likewise.
1180 (unmodified_parm_or_parm_agg_item): Likewise.
1181 (set_cond_stmt_execution_predicate): Update accordingly.
1182 (set_switch_stmt_execution_predicate): Likewise.
1183 (will_be_nonconstant_expr_predicate): Likewise.
1184 (will_be_nonconstant_predicate): Likewise.
1185 (inline_read_section): Stream condition::size as a poly_int.
1186 (ipa_fn_summary_write): Likewise.
1187
1188 2019-08-07 Martin Liska <mliska@suse.cz>
1189
1190 * fold-const.c (twoval_comparison_p): Replace int
1191 with bool as a return type.
1192 (simple_operand_p): Likewise.
1193 (operand_equal_p): Replace int with bool as a return type.
1194 * fold-const.h (operand_equal_p): Likewise.
1195
1196 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1197
1198 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
1199 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
1200 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1201 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
1202 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
1203 * tree-pretty-print.c (dump_omp_clause): Likewise.
1204 * tree-nested.c (convert_nonlocal_omp_clauses,
1205 convert_local_omp_clauses): Likewise.
1206 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1207 Likewise.
1208 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
1209 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
1210 clause with array or reference to array types, no matter what type
1211 except for reference it has.
1212
1213 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
1214
1215 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
1216
1217 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
1218
1219 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
1220 (arch_canonicalize): Support rv32g and rv64g and fix error
1221 handling.
1222
1223 2019-08-06 Martin Liska <mliska@suse.cz>
1224
1225 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
1226 and DECL_IS_OPERATOR_DELETE_P.
1227
1228 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1229
1230 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
1231 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
1232 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
1233 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
1234 (gimplify_omp_for): Don't do C++ random access iterator clause
1235 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
1236 don't predetermine the artificial iterator in case of C++ random
1237 access iterators as lastprivate, but private. For OMP_LOOP, force
1238 bind expr around simd body and force for_pre_body before the
1239 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
1240 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
1241 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
1242 diff var of C++ random access iterators. Handle
1243 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
1244 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
1245 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
1246 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
1247 * omp-low.c (lower_rec_input_clauses): For
1248 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
1249 variables instead of default constructing them.
1250 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
1251 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
1252 is_taskloop_ctx check from the assert to the guarding condition.
1253
1254 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
1255
1256 * config/riscv/multilib-generator: (canonical_order): New.
1257 (arch_canonicalize): Dito.
1258 Apply arch_canonicalize for alts.
1259
1260 2019-08-05 Martin Sebor <msebor@redhat.com>
1261
1262 * doc/extend.texi (Common Variable Attributes): Document alias
1263 attribute.
1264
1265 2019-08-05 Marek Polacek <polacek@redhat.com>
1266
1267 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1268 * doc/invoke.texi: Document -Wcomma-subscript.
1269
1270 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1271
1272 * tree-core.h (tree_function_decl): Make function_code an
1273 independent field. Group the remaining bitfields into bytes
1274 and move decl_type so that it contines to be at a byte boundary.
1275 Leave 12 bits for future expansion.
1276
1277 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1278
1279 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
1280 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
1281 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
1282 IFN_MASK_STORE.
1283
1284 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1285
1286 * gimple.h (gimple_move_vops): Declare.
1287 * gimple.c (gimple_move_vops): New function
1288 * gimple-fold.c (replace_call_with_call_and_fold)
1289 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
1290 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
1291 (gimple_fold_call): Use it.
1292 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
1293 * tree-call-cdce.c (use_internal_fn): Likewise.
1294 * tree-if-conv.c (predicate_load_or_store): Likewise.
1295 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1296 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1297 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
1298 (update_call_from_tree): Likewise.
1299 * tree-vect-stmts.c (vectorizable_load): Likewise.
1300 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
1301
1302 2019-08-05 Martin Liska <mliska@suse.cz>
1303
1304 PR c++/91334
1305 * tree-ssa-dce.c (propagate_necessity): Handle new operators
1306 with not arguments.
1307 (eliminate_unnecessary_stmts): Likewise.
1308
1309 2019-08-05 Richard Biener <rguenther@suse.de>
1310
1311 PR middle-end/91169
1312 * fold-const.c (get_array_ctor_element_at_index): Create
1313 offset_ints according to the sign of the index type and treat
1314 that as signed if it is obviously so.
1315
1316 2019-08-05 Jakub Jelinek <jakub@redhat.com>
1317
1318 PR target/91341
1319 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
1320 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
1321 _mm256_storeu2_m128i): New function.
1322
1323 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
1324
1325 * config/riscv/riscv.c (riscv_promote_function_mode): New.
1326 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
1327
1328 2019-08-05 Alan Modra <amodra@gmail.com>
1329
1330 PR target/91349
1331 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
1332 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
1333
1334 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1335
1336 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
1337 bug that was fixed in Tcl 8.6.1.
1338
1339 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
1340
1341 * config/rs6000/future.md: New file.
1342 * config/rs6000/rs6000.md: Include future.md.
1343 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
1344
1345 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1346
1347 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
1348 check to use targetm.slow_unaligned_access instead.
1349
1350 * function.c (assign_param_data_one): Remove unused data members.
1351
1352 2019-08-02 Steve Ellcey <sellcey@marvell.com>
1353
1354 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
1355 build_distinct_type_copy.
1356 (simd_clone_adjust_argument_types): Ditto.
1357 (simd_clone_adjust): Call build_distinct_type_copy here.
1358 (expand_simd_clones): Ditto.
1359
1360 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1361
1362 PR target/91201
1363 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
1364
1365 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
1366
1367 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
1368 from 'const void *'.
1369 (sort_locs_in_loop_postorder_cmp): Likewise.
1370
1371 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
1372
1373 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
1374 (hot-bb-count-ws-permille): Likewise.
1375 (hot-bb-frequency-fraction): Likewise.
1376 (unlikely-bb-count-fraction): Likewise.
1377 * params.def (hot-bb-count-fraction): Rework description.
1378 (hot-bb-count-ws-permille): Likewise.
1379 (hot-bb-frequency-fraction): Likewise.
1380 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
1381 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
1382
1383 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1384
1385 PR target/91323
1386 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
1387 Return false.
1388
1389 2019-08-02 Richard Biener <rguenther@suse.de>
1390
1391 * vec.h (vec::sort): Add gcc_qsort_r support.
1392 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
1393 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
1394 to gcc_qsort_r style callback.
1395 (sort_locs_in_loop_postorder_cmp): Likewise.
1396 (analyze_memory_references): Use gcc_sort_r interfaces.
1397 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
1398
1399 2019-08-02 Martin Liska <mliska@suse.cz>
1400
1401 PR lto/91313
1402 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
1403 to detect working job server.
1404 (driver::detect_jobserver): Test whether jobserver
1405 is active from GCC driver. That will prevent situation where
1406 GCC is invoked from a LD plugin and the linker already uses
1407 file descriptors suggested by make. That leads to a wrong
1408 detection.
1409 * gcc.h (driver): Add detect_jobserver.
1410 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
1411 not scanning for --jobserver-auth prefix.
1412
1413 2019-08-02 Jakub Jelinek <jakub@redhat.com>
1414
1415 PR tree-optimization/91201
1416 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
1417 V16QImode extraction without sse4.1 try to use V4SImode lowpart
1418 extraction.
1419
1420 2019-08-01 Martin Sebor <msebor@redhat.com>
1421
1422 PR c++/90947
1423 * tree.c (type_initializer_zero_p): Define.
1424 * tree.h (type_initializer_zero_p): New function.
1425
1426 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1427
1428 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
1429
1430 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1431
1432 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
1433 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
1434 * predict.c (maybe_hot_count_p): Likewise.
1435 (maybe_hot_bb_p): Tweak comment.
1436 (maybe_hot_edge_p): Likewise.
1437 (probably_never_executed): Likewise. Minor tweak.
1438 (probably_never_executed_bb_p): Likewise.
1439 (unlikely_executed_edge_p): Likewise.
1440 (probably_never_executed_edge_p): Likewise.
1441 (optimize_function_for_size_p): Likewise.
1442 (optimize_function_for_speed_p): Likewise.
1443 (function_optimization_type): Likewise.
1444 (optimize_bb_for_size_p): Likewise.
1445 (optimize_bb_for_speed_p): Likewise.
1446 (bb_optimization_type): Likewise.
1447 (optimize_edge_for_size_p): Likewise.
1448 (optimize_edge_for_speed_p): Likewise.
1449 (optimize_insn_for_size_p): Likewise.
1450 (optimize_insn_for_speed_p): Likewise.
1451 (optimize_loop_for_size_p): Likewise.
1452 (optimize_loop_for_speed_p): Likewise.
1453 (optimize_loop_nest_for_speed_p): Likewise.
1454 (optimize_loop_nest_for_size_p): Likewise.
1455 (predictable_edge_p): Likewise.
1456 (handle_missing_profiles): Minor tweak.
1457
1458 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
1459
1460 * config/rs6000/predicates.md (pcrel_external_address): Update
1461 comment.
1462
1463 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1464
1465 PR target/85693
1466 * config/i386/mmx.md (usadv8qi): New expander.
1467
1468 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
1469
1470 PR c++/90590
1471 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
1472 with reserved names that are in a system header.
1473
1474 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1475
1476 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
1477 (*vec_extractv2si_0_zext_sse4): New insn pattern.
1478 (*vec_extractv2si_0_zext): Ditto.
1479 (*vec_extractv2si_1): Add (rm,x) alternative.
1480 (*vec_extractv2si_1_zext): New insn pattern.
1481 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
1482 insn constraint.
1483
1484 2019-08-01 Richard Biener <rguenther@suse.de>
1485
1486 * domwalk.c (bb_postorder): Remove static variable.
1487 (cmp_bb_postorder): Adjust.
1488 (sort_bbs_postorder): Adjust and use gcc_sort_r.
1489 (dom_walker::walk): Adjust.
1490
1491 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
1492
1493 * sort.cc (sort_r_ctx): New struct.
1494 (reorder23): Make templated on context type.
1495 (reorder45): Ditto.
1496 (cmp1): Ditto. Adjust signature.
1497 (netsort): Ditto.
1498 (mergesort): Ditto.
1499 [CHECKING_P] (cmp2to3): New static function. Use it...
1500 (gcc_qsort) [CHECKING_P]: ...here.
1501 (gcc_sort_r): New function.
1502 * system.h (sort_r_cmp_fn): New function typedef.
1503 (qsort_chk): Adjust signature.
1504 (gcc_sort_r): Declare.
1505 * vec.c (qsort_chk_error): Adjust.
1506 (qsort_chk): Adjust.
1507
1508 2019-08-01 Richard Biener <rguenther@suse.de>
1509
1510 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
1511 (compute_antic): Localize it here.
1512
1513 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
1514
1515 * common/config/riscv/riscv-common.c: Check -march string ends
1516 with null.
1517
1518 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
1519
1520 * ipa-devirt.c (type_warning_cmp): Make static.
1521 (decl_warning_cmp): Ditto.
1522
1523 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
1524
1525 PR target/91050
1526 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
1527 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1528 use of deleted rs6000_dejagnu_cpu_index variable.
1529 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
1530 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1531 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
1532 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
1533 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
1534 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1535
1536 2019-07-31 Richard Biener <rguenther@suse.de>
1537
1538 PR tree-optimization/91280
1539 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1540 Decompose MEM_REF manually for offset handling.
1541
1542 2019-07-31 Richard Biener <rguenther@suse.de>
1543
1544 PR tree-optimization/91293
1545 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
1546 of reduction stmts.
1547
1548 2019-07-31 Matt Thomas <matt@3am-software.com>
1549 Nick Hudson <nick@nthcliff.demon.co.uk>
1550 Matthew Green <mrg@eterna.com.au>
1551 Maya Rashish <coypu@sdf.org>
1552
1553 * config.gcc (hppa*-*-netbsd*): New target.
1554 * config/pa/pa-netbsd.h: New file.
1555 * config/pa/pa32-netbsd.h: New file.
1556
1557 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1558
1559 PR tree-optimization/91201
1560 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
1561
1562 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
1563
1564 * config/gcn/gcn-valu.md
1565 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
1566 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
1567 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1568 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
1569 struct ilist. Add nops for delayeduse insns.
1570 * config/gcn/gcn.md (delayeduse): New attribute.
1571 (*movbi): Remove s_waitcnt from stores.
1572 (*mov<mode>_insn): Likewise.
1573 (*movti_insn): Likewise. Add delayeduse attribute.
1574 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
1575 (atomic_store<mode>): Remove or adjust s_waitcnt.
1576
1577 2019-07-31 Richard Biener <rguenther@suse.de>
1578
1579 * vr-values.h (vr_values::swap_vr_value): New.
1580 (vr_values::free_value_range): likewise.
1581 * vr-values.c (vr_values::swap_vr_value): Implement.
1582 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
1583 Do not return a range or take a var.
1584 (evrp_range_analyzer::stack): Change back to recording a non-const
1585 value_range *.
1586 * gimple-ssa-evrp-analyze.c
1587 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
1588 value-range.
1589 (evrp_range_analyzer::pop_to_marker): Adjust.
1590 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
1591 (evrp_range_analyzer::pop_value_range): Likewise. Free the
1592 no longer needed value-range.
1593
1594 2019-07-31 Martin Liska <mliska@suse.cz>
1595
1596 * tree-ssa-dce.c (propagate_necessity): Delete operator can
1597 have size and (or) alignment as 2nd and later arguments.
1598 Mark all of them as necessary.
1599
1600 2019-07-31 Richard Biener <rguenther@suse.de>
1601
1602 PR tree-optimization/91178
1603 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1604 Use tail-recursion.
1605
1606 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1607
1608 PR tree-optimization/91201
1609 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
1610 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
1611 TARGET_AVX512F.
1612 (reduc_plus_scal_<mode>): Improve formatting by introducing
1613 a temporary.
1614
1615 2019-07-31 Sudakshina Das <sudi.das@arm.com>
1616
1617 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1618 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
1619 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
1620 (aarch64_init_tme_builtins): New.
1621 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
1622 (aarch64_expand_builtin_tme): New.
1623 (aarch64_expand_builtin): Handle TME builtins.
1624 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1625 __ARM_FEATURE_TME when enabled.
1626 * config/aarch64/aarch64-option-extensions.def: Add "tme".
1627 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
1628 (TARGET_TME): New.
1629 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
1630 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
1631 UNSPECV_TCANCEL.
1632 (tstart, ttest, tcommit, tcancel): New instructions.
1633 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
1634 (__tcancel, __ttest): New.
1635 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
1636 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
1637 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
1638 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
1639 * config/arm/types.md: Add new tme type attr.
1640 * doc/invoke.texi: Document "tme".
1641
1642 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
1643
1644 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
1645 warn_unused_result attribute.
1646 (cmse_check_address_range): Add warn_unused_result attribute.
1647
1648 2019-07-31 Richard Biener <rguenther@suse.de>
1649
1650 PR tree-optimization/91257
1651 * tree-vrp.c (union_ranges): Unify equality and less tests
1652 by using compare_values. Re-order cheap tests first.
1653
1654 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1655
1656 PR middle-end/91301
1657 * gimplify.c (gimplify_omp_for): If for class iterator on
1658 distribute parallel for there is no data sharing clause
1659 on inner_for_stmt, look for private clause on combined
1660 parallel too and if found, move it to inner_for_stmt.
1661
1662 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
1663
1664 * lra-int.h (lra_operand_data): Remove early_clobber field.
1665 (lra_insn_reg): Likewise.
1666 * lra.c (debug_operand_data): Update accordingly.
1667 (setup_operand_alternative): Likewise.
1668 (new_insn_reg): Likewise. Remove early_clobber parameter.
1669 (collect_non_operand_hard_regs): Update call accordingly.
1670 Don't assign to lra_insn_reg::early_clobber.
1671 (add_regs_to_insn_regno_info): Remove early_clobber parameter
1672 and update calls to new_insn_reg.
1673 (lra_update_insn_regno_info): Update calls accordingly.
1674 * lra-constraints.c (update_and_check_small_class_inputs): Take the
1675 alternative number as a parameter and test whether the operand
1676 is earlyclobbered in that particular alternative.
1677 (process_alt_operands): Update call accordingly. Use per-alternative
1678 checks for earyclobber here too.
1679 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
1680 against zero for IRA_UNKNOWN_ALT.
1681
1682 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1683
1684 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
1685
1686 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
1687
1688 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
1689 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1690
1691 2019-07-30 Martin Liska <mliska@suse.cz>
1692
1693 PR ipa/89330
1694 * cgraph.c (cgraph_edge::make_direct): Use
1695 edge->indirect_unknown_callee as edge->resolve_speculation can
1696 deallocate edge which is this pointer.
1697
1698 2019-07-30 Richard Biener <rguenther@suse.de>
1699
1700 PR tree-optimization/91257
1701 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
1702
1703 2019-07-30 Martin Liska <mliska@suse.cz>
1704
1705 * doc/invoke.texi: Document new behavior.
1706 * lto-wrapper.c (cpuset_popcount): New function
1707 is a copy of libgomp/config/linux/proc.c.
1708 (init_num_threads): Likewise.
1709 (run_gcc): Automatically detect core count for -flto.
1710 (jobserver_active_p): New function.
1711
1712 2019-07-30 Richard Biener <rguenther@suse.de>
1713
1714 PR tree-optimization/91257
1715 * bitmap.h (bitmap_ior_into_and_free): Declare.
1716 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
1717 whether to add the unliked element to the freelist.
1718 (bitmap_list_insert_element_after): Add defaulted param for
1719 an already allocated element.
1720 (bitmap_ior_into_and_free): New function.
1721 * tree-ssa-structalias.c (condense_visit): Reduce the
1722 ponts-to and edge bitmaps of the SCC members in a
1723 logarithmic fashion rather than all to one.
1724
1725 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
1726
1727 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
1728 parameter. When nonnull, make sure that the addition or subtraction
1729 has the same condition.
1730 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
1731 for CFN_COND_MUL too.
1732
1733 2019-07-30 Richard Biener <rguenther@suse.de>
1734
1735 PR tree-optimization/91291
1736 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
1737 constant values.
1738
1739 2019-07-30 Jakub Jelinek <jakub@redhat.com>
1740
1741 PR middle-end/91216
1742 * omp-low.c (global_nonaddressable_vars): New variable.
1743 (use_pointer_for_field): For global decls, if they are non-addressable,
1744 remember it in the global_nonaddressable_vars bitmap, if they are
1745 addressable and in the global_nonaddressable_vars bitmap, ignore their
1746 TREE_ADDRESSABLE bit.
1747 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
1748 vars in global_nonaddressable_vars bitmap.
1749 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
1750
1751 PR target/91150
1752 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
1753 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
1754 comparison to unsigned HOST_WIDE_INT before shifting it left.
1755
1756 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1757
1758 * config/i386/i386.md (movstrict<mode>): Use register_operand
1759 predicate for operand 0. Add expander condition. Assert that
1760 operand 0 is a SUBREG RTX.
1761 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
1762 Update operand constraints and insn condition.
1763 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
1764 (zero_extendqihi2_and): Do not call gen_movstrictqi.
1765 (*setcc_qi_slp): Use register_operand predicate for operand 0.
1766 Update operand 0 constraints.
1767 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
1768
1769 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1770
1771 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
1772 when -m{code,data}-region are used without -mlarge.
1773 * config/msp430/msp430.c (msp430_option_override): Error when a
1774 non-default code or data region is used without -mlarge.
1775 (msp430_section_attr): Emit a warning and do not add upper/lower/either
1776 attributes when they are used without -mlarge.
1777
1778 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1779
1780 PR target/70320
1781 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
1782
1783 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1784
1785 PR middle-end/91242
1786 * wide-int.h (generic_wide_int::sext_elt): New function.
1787 * inchash.h (hash::add_wide_int): Use it instead of elt.
1788
1789 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1790
1791 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
1792 CODE_FOR_arm_##.
1793 * config/arm/arm.md (<crc_variant>): Rename to...
1794 (arm_<crc_variant>): ... This.
1795 (<cdp>): Rename to...
1796 (arm_<cdp>): ... This.
1797 (<ldc>): Rename to...
1798 (arm_<ldc>): ... This.
1799 (<stc>): Rename to...
1800 (arm_<stc>): ... This.
1801 (<mcr>): Rename to...
1802 (arm_<mcr>): ... This.
1803 (<mrc>): Rename to...
1804 (arm_<mrc>): ... This.
1805 (<mcrr>): Rename to...
1806 (arm_<mcrr>): ... This.
1807 (<mrrc>): Rename to...
1808 (arm_<mrrc>): ... This.
1809
1810 2019-07-29 Richard Biener <rguenther@suse.de>
1811
1812 PR tree-optimization/91257
1813 * tree-ssa-sccvn.h (struct vn_avail): New.
1814 (struct vn_ssa_aux): Add avail member.
1815 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
1816 member, add m_avail_freelist one.
1817 (rpo_elim::~rpo_elim): Remove.
1818 (rpo_elim::eliminate_avail): Adjust to new avail tracking
1819 data structure.
1820 (rpo_elim::eliminate_push_avail): Likewise.
1821 (do_unwind): Likewise.
1822 (do_rpo_vn): Likewise.
1823
1824 2019-07-29 Richard Biener <rguenther@suse.de>
1825
1826 PR tree-optimization/91257
1827 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
1828 most cases, instead call compare_values which handles the
1829 symbolic ranges we handle specially.
1830 (compare_values_warnv): Do not call operand_less_p but open-code
1831 the effective fold calls. Avoid converting so much.
1832
1833 2019-07-29 Martin Liska <mliska@suse.cz>
1834
1835 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
1836 remove LHS of operator new call. It's handled latter.
1837
1838 2019-07-29 Richard Biener <rguenther@suse.de>
1839
1840 PR tree-optimization/91267
1841 * vr-values.c (vr_values::update_value_range): Add early return
1842 for effectively VARYING lattice entry.
1843
1844 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1845
1846 PR debug/86638
1847 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
1848 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
1849 necessary if keep_all_vdefs_p is true.
1850 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
1851 that keep_all_vdefs_p is false.
1852 (mark_all_reaching_defs_necessary): Likewise.
1853 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
1854
1855 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1856
1857 * common.opt (Og): Change the initial value of flag_dse to 0.
1858 * opts.c (default_options_table): Move OPT_ftree_dse from
1859 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
1860 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
1861 entry before the OPT_ftree_sra entry.
1862 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
1863 of flags disabled by Og.
1864
1865 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1866
1867 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
1868 variables for -Og.
1869
1870 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1871
1872 * doc/sourcebuild.texi (check-function-bodies): Document.
1873
1874 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1875
1876 * simplify-rtx.c (simplify_const_unary_operation): Fold a
1877 VEC_DUPLICATE of a fixed-length vector even if the result
1878 is variable-length. Likewise fold a duplicate of a
1879 variable-length vector if the variable-length vector is
1880 itself a duplicate of a fixed-length sequence.
1881 (test_vector_ops_duplicate): Test more cases.
1882
1883 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1884
1885 * vector-builder.h (vector_builder): Add a shape template parameter.
1886 (vector_builder::new_unary_operation): New function, generalizing
1887 the old tree_vector_builder function.
1888 (vector_builder::new_binary_operation): Likewise.
1889 (vector_builder::binary_encoded_nelts): Likewise.
1890 * int-vector-builder.h (int_vector_builder): Update template
1891 parameters to vector_builder.
1892 (int_vector_builder::shape_nelts): New function.
1893 * rtx-vector-builder.h (rtx_vector_builder): Update template
1894 parameters to vector_builder.
1895 (rtx_vector_builder::shape_nelts): New function.
1896 (rtx_vector_builder::nelts_of): Likewise.
1897 (rtx_vector_builder::npatterns_of): Likewise.
1898 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
1899 * tree-vector-builder.h (tree_vector_builder): Update template
1900 parameters to vector_builder.
1901 (tree_vector_builder::shape_nelts): New function.
1902 (tree_vector_builder::nelts_of): Likewise.
1903 (tree_vector_builder::npatterns_of): Likewise.
1904 (tree_vector_builder::nelts_per_pattern_of): Likewise.
1905 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
1906 (tree_vector_builder::new_binary_operation): Delete.
1907 (tree_vector_builder::binary_encoded_nelts): Likewise.
1908 * simplify-rtx.c: Include rtx-vector-builder.h.
1909 (distributes_over_addition_p): New function.
1910 (simplify_const_unary_operation)
1911 (simplify_const_binary_operation): Generalize handling of vector
1912 constants to include variable-length vectors.
1913 (test_vector_ops_series): Add more tests.
1914
1915 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
1916
1917 PR lto/91222
1918 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
1919 than INDENTIFIER_POINTER.
1920
1921 2019-07-28 Martin Liska <mliska@suse.cz>
1922
1923 PR ipa/89330
1924 * cgraph.c (symbol_table::create_edge): Always allocate
1925 a cgraph_edge.
1926 (symbol_table::free_edge): Store summary_id to
1927 edge_released_summary_ids if != -1;
1928 * cgraph.h (NEXT_FREE_NODE): Remove.
1929 (SET_NEXT_FREE_NODE): Likewise.
1930 (NEXT_FREE_EDGE): Likewise.
1931 (symbol_table::release_symbol): Store summary_id to
1932 cgraph_released_summary_ids if != -1;
1933 (symbol_table::allocate_cgraph_symbol): Always allocate
1934 a cgraph_node.
1935
1936 2019-07-28 Alan Modra <amodra@gmail.com>
1937
1938 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
1939 gen_sibcall.
1940
1941 2019-07-28 Alan Modra <amodra@gmail.com>
1942
1943 PR target/91135
1944 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
1945 define.
1946 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
1947 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
1948 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
1949
1950 2019-07-28 Alan Modra <amodra@gmail.com>
1951
1952 PR target/91050
1953 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
1954 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
1955 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
1956 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
1957 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
1958 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
1959 in asm_default spec.
1960 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
1961 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
1962
1963 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1964
1965 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
1966
1967 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1968
1969 PR target/89517
1970 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
1971 * config/aarch64/aarch64-option-extensions.def: Add new comments
1972 and restore easier to read options.
1973
1974 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1975
1976 * convert.c (convert_to_real_1): Move part of conversion code...
1977 * match.pd: ...To here.
1978
1979 2019-07-26 Martin Jambor <mjambor@suse.cz>
1980
1981 PR ipa/89330
1982 * ipa-inline-transform.c (check_speculations_1): New function.
1983 (push_all_edges_in_set_to_vec): Likewise.
1984 (check_speculations): Use check_speculations_1, new parameter
1985 new_edges.
1986 (inline_call): Pass new_edges to check_speculations.
1987 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
1988 NULL.
1989 (speculation_useful_p): Early return true if edge is inlined, remove
1990 later checks for inline_failed.
1991
1992 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
1993
1994 PR rtl-optimization/91223
1995 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
1996 matching with INOUT operand.
1997
1998 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1999
2000 * stmt.c (expand_case): Try to narrow the index type if it's larger
2001 than a word. Tidy up.
2002
2003 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
2004
2005 * cif-code.def (NEVER_CALL): New code.
2006 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
2007 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
2008
2009 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
2010
2011 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
2012 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2013
2014 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2015
2016 * ipa-devirt.c (add_type_duplicate): Fix return value.
2017
2018 2019-07-25 Richard Biener <rguenther@suse.de>
2019
2020 * tree-vrp.c (extract_range_from_multiplicative_op): Add
2021 type parameter and use it instead of guessing expression
2022 type from the first operand.
2023 (extract_range_from_binary_expr): Pass expr_type down.
2024
2025 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2026
2027 * config/arm/arm.md (SATrev): Change to code attribute.
2028 (*satsi_<SAT:code>): Adjust for the above.
2029 (*satsi_<SAT:code>_shift): Likewise.
2030
2031 2019-07-25 Richard Biener <rguenther@suse.de>
2032
2033 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
2034 Make value_range * temporary const.
2035 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
2036 Likewise.
2037 (evrp_range_analyzer::record_ranges_from_): Likewise.
2038 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
2039 deal with having recorded a const one.
2040 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
2041 Return a const value_range *.
2042 (evrp_range_analyzer::pop_value_range): Likewise.
2043 (evrp_range_analyzer::stack): Record const value_range *s.
2044 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2045 Adjust.
2046 * gimple-ssa-sprintf.c (get_int_range): Likewise.
2047 (format_integer): Likewise.
2048 (sprintf_dom_walker::handle_gimple_call): Likewise.
2049 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
2050 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
2051 (vrp_prop::get_value_range): Adjust.
2052 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
2053 modifying the lattice in-place.
2054 (vrp_prop::visit_stmt): Likewise.
2055 * vr-values.c (vr_values::get_lattice_entry): New private method.
2056 (vr_values::get_value_range): Wrap it and return a const
2057 value_range *.
2058 (vr_values::set_def_to_varying): New.
2059 (vr_values::set_defs_to_varying): Use it.
2060 (vr_values::update_value_range): Likewise.
2061 (vr_values::vrp_stmt_computes_nonzero): Adjust.
2062 (values::op_with_constant_singleton_va): Likewise.
2063 (vr_values::extract_range_for_var_from_co): Likewise.
2064 (vr_values::extract_range_from_ssa_name): Likewise.
2065 (vr_values::extract_range_from_cond_expr): Likewise.
2066 (vr_values::extract_range_basic): Likewise.
2067 (compare_ranges): Take const value_range *, adjust.
2068 (compare_range_with_value): Likewise.
2069 (vrp_valueize): Adjust.
2070 (vrp_valueize_1): Likewise.
2071 (vr_values::get_vr_for_comparison): Return a const value_range *.
2072 (vr_values::compare_name_with_value): Adjust.
2073 (vr_values::compare_names): Likewise.
2074 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2075 Likewise.
2076 (vr_values::vrp_evaluate_conditional): Likewise.
2077 (find_case_label_ranges): Take a const value_range *.
2078 (vr_values::vrp_visit_switch_stmt): Adjust.
2079 (vr_values::extract_range_from_phi_node): Likewise.
2080 (vr_values::simplify_div_or_mod_using_ran): Likewise.
2081 (vr_values::simplify_abs_using_ranges): Likewise.
2082 (test_for_singularity): Take a const value_range *.
2083 (range_fits_type_p): Likewise.
2084 (vr_values::simplify_cond_using_ranges_1): Adjust.
2085 (vr_values::simplify_cond_using_ranges_2): Likewise.
2086 (vr_values::simplify_switch_using_ranges): Likewise.
2087 (vr_values::simplify_float_conversion_usi): Likewise.
2088 (vr_values::two_valued_val_range_p): Likewise.
2089 * vr-values.h (vr_values::get_value_range): Return a const
2090 value_range *.
2091 (vr_values::set_def_to_varying): New.
2092 (vr_values::get_lattice_entry): New private method.
2093 (vr_values::get_vr_for_comparison): Return a const value_range *.
2094
2095 2019-07-25 Martin Liska <mliska@suse.cz>
2096 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
2097
2098 PR c++/23383
2099 * common.opt: Add -fallocation-dce
2100 * gimple.c (gimple_call_operator_delete_p): New.
2101 * gimple.h (gimple_call_operator_delete_p): Likewise.
2102 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
2103 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
2104 DECL_IS_OPERATOR_DELETE_P.
2105 (mark_all_reaching_defs_necessary_1): Likewise.
2106 (propagate_necessity): Likewise.
2107 (eliminate_unnecessary_stmts): Handle
2108 gimple_call_operator_delete_p.
2109 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
2110 Add packing of OPERATOR_DELETE.
2111 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
2112 Similarly here.
2113 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
2114 (DECL_SET_IS_OPERATOR_DELETE): New.
2115 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
2116
2117 2019-07-25 Martin Liska <mliska@suse.cz>
2118
2119 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
2120 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
2121 * coverage.c (coverage_begin_function): Likewise.
2122 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
2123 * gimple.c (gimple_call_nonnull_result_p): Likewise.
2124 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
2125 (sem_item::hash_referenced_symbol_properties): Likewise.
2126 * lto-streamer-out.c (hash_tree): Likewise.
2127 * predict.c (expr_expected_value_1): Likewise.
2128 * tree-inline.c (expand_call_inline): Likewise.
2129 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2130 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2131 * tree-core.h (enum function_decl_type): New enum.
2132 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
2133 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
2134 (set_function_decl_type): Likewise.
2135 (DECL_IS_OPERATOR_NEW_P): New.
2136 (DECL_SET_IS_OPERATOR_NEW): Likewise.
2137 (DECL_LAMBDA_FUNCTION): Likewise.
2138 (DECL_LAMBDA_FUNCTION_P): Likewise.
2139 (DECL_IS_OPERATOR_NEW): Remove.
2140 (DECL_SET_LAMBDA_FUNCTION): Likewise.
2141
2142 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
2143
2144 * ipa-profile.c (get_most_common_single_value): Use
2145 get_nth_most_common_value.
2146 * profile.c (sort_hist_value): New function.
2147 (compute_value_histograms): Call sort_hist_value to sort the
2148 values after loading from disk.
2149 * value-prof.c (get_most_common_single_value): Rename to ...
2150 get_nth_most_common_value. Add input params n, return
2151 the n_th value and count.
2152 (gimple_divmod_fixed_value_transform): Use
2153 get_nth_most_common_value.
2154 (gimple_ic_transform): Likewise.
2155 (gimple_stringops_transform): Likewise.
2156 * value-prof.h (get_most_common_single_value): Add input params
2157 n, default to 0.
2158
2159 2019-07-25 Richard Biener <rguenther@suse.de>
2160
2161 PR tree-optimization/91236
2162 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2163 size of CONSTRUCTOR write. Fix buffer size we pass to
2164 native_encode_expr.
2165
2166 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2167
2168 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
2169 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
2170 r273773.
2171
2172 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2173
2174 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
2175 explicitly disabled with --disable-initfini-array.
2176
2177 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2178
2179 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
2180 if-exists.
2181
2182 2019-07-24 Martin Sebor <msebor@redhat.com>
2183
2184 PR tree-optimization/91183
2185 PR tree-optimization/86688
2186 * builtins.c (compute_objsize): Handle MEM_REF.
2187 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
2188 (get_min_string_length): Remove.
2189 (count_nonzero_bytes): New function.
2190 (handle_char_store): Rename...
2191 (handle_store): to this. Handle multibyte stores via integer types.
2192 (strlen_check_and_optimize_stmt): Adjust conditional and the called
2193 function name.
2194
2195 2019-07-24 Martin Sebor <msebor@redhat.com>
2196
2197 PR driver/80545
2198 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
2199 (diagnostic_report_diagnostic): Same.
2200 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
2201 (diagnostic_context::lang_mask): New data member.
2202 * ipa-pure-const.c (suggest_attribute): Use
2203 lang_hooks.option_lang_mask ().
2204 * opts-common.c (option_enabled): Handle new argument.
2205 (get_option_state): Pass an additional argument.
2206 * opts.c (print_filtered_help): Print supported languages for
2207 unsupported options. Adjust printing of current state.
2208 * opts.h (option_enabled): Add argument.
2209 * toplev.c (print_switch_values): Use lang_mask.
2210 (general_init): Set global_dc->lang_mask.
2211
2212 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2213
2214 PR bootstrap/87030
2215 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
2216
2217 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
2218
2219 * cgraphunit.c (symbol_table::compile): Start and stop
2220 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
2221 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
2222
2223 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
2224
2225 * gimplify.c (flag_instrument_functions_exclude_p): Include
2226 namespace/class information in the printable name.
2227 * opts.c (add_comma_separated_to_vector): Add NUL terminator
2228 to tokens entered into the vector.
2229
2230 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
2231
2232 * tree-nested.c (build_simple_mem_ref_notrap): New function.
2233 (get_static_chain): Call it instead of build_simple_mem_ref.
2234 (get_frame_field): Likewise.
2235 (get_nonlocal_debug_decl): Likewise.
2236 (convert_nonlocal_reference_op): Likewise.
2237
2238 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
2239
2240 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
2241 declaration.
2242 (arc_compute_frame_size): Millicode is disabled when compiling
2243 ISR.
2244 (arc_return_address_register): Likewise.
2245 (arc_compute_function_type): Likewise.
2246 (arc_compute_frame_size): Likewise.
2247 (secondary_reload_info): Likewise.
2248 (arc_get_unalign): Likewise.
2249 (arc_can_use_return_insn): Declare.
2250 * config/arc/arc.c (AUX_LP_START): Define
2251 (AUX_LP_END): Likewise.
2252 (arc_frame_info): Update gmask member to 64-bit datum.
2253 (GMASK_LEN): Update.
2254 (arc_compute_function_type): Make it static, move it forward.
2255 (arc_must_save_register): Update, consider the extra regs.
2256 (arc_compute_millicode_save_restore_regs): Update to use the 64
2257 bit gmask.
2258 (arc_compute_frame_size): Likewise.
2259 (arc_enter_leave_p): Likewise.
2260 (arc_save_callee_saves): Likewise.
2261 (arc_restore_callee_saves): Likewise.
2262 (arc_save_callee_enter): Likewise.
2263 (arc_restore_callee_leave): Likewise.
2264 (arc_save_callee_milli): Likewise.
2265 (arc_restore_callee_milli): Likewise.
2266 (arc_expand_prologue): Add new interrupt handling.
2267 (arc_return_address_register): Make it static, move it forward.
2268 (arc_expand_epilogue): Add new interrupt handling.
2269 (arc_get_unalign): Delete.
2270 (arc_epilogue_uses): Make sure we do not remove the extra
2271 saved/restored registers when interrupt.
2272 (arc_can_use_return_insn): New function.
2273 (push_reg): Likewise.
2274 (pop_reg): Likewise.
2275 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
2276 procedures.
2277 (arc_restore_callee_saves): Likewise, but restoring.
2278 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
2279 (R33_REG): Likewise.
2280 (R34_REG): Likewise.
2281 (R35_REG): Likewise.
2282 (R36_REG): Likewise.
2283 (R37_REG): Likewise.
2284 (R38_REG): Likewise.
2285 (R39_REG): Likewise.
2286 (R45_REG): Likewise.
2287 (R46_REG): Likewise.
2288 (R47_REG): Likewise.
2289 (R48_REG): Likewise.
2290 (R49_REG): Likewise.
2291 (R50_REG): Likewise.
2292 (R51_REG): Likewise.
2293 (R52_REG): Likewise.
2294 (R53_REG): Likewise.
2295 (R54_REG): Likewise.
2296 (R55_REG): Likewise.
2297 (R56_REG): Likewise.
2298 (R58_REG): Likewise.
2299 (type): Add rtie attribute.
2300 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
2301 (movsi_insn): Accept moves to lp_count.
2302 (rtie): Update pattern.
2303 (simple_return): Simplify it, don't use this pattern as a return
2304 from an interrupt.
2305 (arc600_rtie): New pattern.
2306 (p_return_i): Clean up.
2307 (return): Likewise.
2308 * config/arc/builtins.def (rtie): Only available for non ARC6xx
2309 family CPUs.
2310 * config/arc/predicates.md (move_src_operand): Consider lp_count
2311 as a register.
2312
2313 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
2314
2315 * config/s390/predicates.md (addv_const_operand): New predicate.
2316 * config/s390/s390-modes.def (CCO): New condition code mode.
2317 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
2318 (s390_branch_condition_mask): Likewise.
2319 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
2320 ("mulv<mode>4"): New expanders.
2321 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
2322 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
2323 pattern definitions.
2324
2325 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2326
2327 PR middle-end/91166
2328 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
2329 (define_predicates): Add entry for uniform_vector_p.
2330 (vec_same_elem_p): New match pattern.
2331
2332 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2333
2334 PR bootstrap/87030
2335 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
2336 * config/i386/darwin32-biarch.h .. to here.
2337 * config/i386/darwin64-biarch.h: Adjust comments.
2338 * config/rs6000/darwin32-biarch.h: Likewise.
2339 * config/rs6000/darwin64-biarch.h: Likewise.
2340 * config.gcc: Missed commit from r273746
2341 (*-*-darwin*): Don't include CPU t-darwin here.
2342 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2343 an error message if i686-darwin configuration is attempted for
2344 Darwin >= 18.
2345
2346 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
2347
2348 PR bootstrap/87030
2349 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
2350 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2351 an error message if i686-darwin configuration is attempted for
2352 Darwin >= 18.
2353 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
2354 (powerpc-*-darwin*): Use biarch files where needed.
2355 (powerpc64-*-darwin*): Likewise.
2356 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
2357 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2358 arch case.
2359 * config/i386/darwin32-biarch.h: New.
2360 * config/i386/darwin64.h: Rename.
2361 * config/i386/darwin64-biarch.h: To this.
2362 * config/i386/t-darwin: Rename.
2363 * config/i386/t-darwin32-biarch: To this.
2364 * config/i386/t-darwin64: Rename.
2365 * config/i386/t-darwin64-biarch: To this.
2366 * config/rs6000/darwin32-biarch.h: New.
2367 * config/rs6000/darwin64.h: Rename.
2368 * config/rs6000/darwin64-biarch.h: To this.
2369 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2370 arch case.
2371 * config/rs6000/t-darwin8: Rename.
2372 * config/rs6000/t-darwin32-biarch: To this.
2373 * config/rs6000/t-darwin64 Rename.
2374 * config/rs6000/t-darwin64-biarch: To this.
2375
2376 2019-07-23 Martin Sebor <msebor@redhat.com>
2377
2378 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
2379
2380 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2381
2382 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
2383 (rh): New alias for it.
2384
2385 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2386
2387 * gdbhooks.py: Pass replace=True to
2388 gdb.printing.register_pretty_printer.
2389
2390 2019-07-23 Richard Biener <rguenther@suse.de>
2391
2392 PR debug/91231
2393 * lto-streamer-in.c (input_function): Drop inline-entry markers
2394 that ended up with an unknown location block.
2395
2396 2019-07-23 Richard Biener <rguenther@suse.de>
2397
2398 PR tree-optimization/83518
2399 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
2400 init from a constant even when partial defs are already recorded.
2401
2402 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2403
2404 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
2405 * config/i386/znver1.md: Enable patterns for znver2 and add store
2406 variants which use extra AGU unit.
2407
2408 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2409
2410 * config/i386/i386-options.c (ix86_option_override_internal): Default
2411 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
2412 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
2413 for ZNVER2.
2414
2415 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2416
2417 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
2418 (znver2_costs): Update 256 bit SSE costs and multiplication.
2419
2420 2019-07-23 Jan Beulich <jbeulich@suse.com>
2421
2422 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
2423 Require only AVX512F.
2424 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
2425 alternative expanding to vpternlog.
2426
2427 2019-07-23 Martin Liska <mliska@suse.cz>
2428
2429 * dwarf2out.c (gen_producer_string): Canonize -flto=N
2430 to -flto in dwarf producer string.
2431
2432 2019-07-23 Richard Biener <rguenther@suse.de>
2433
2434 * tree-cfg.c (label_for_bb): Remove global var.
2435 (main_block_label): Take label_for_bb as argument.
2436 (cleanup_dead_labels_eh): Likewise, adjust.
2437 (cleanup_dead_labels): Adjust.
2438
2439 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2440
2441 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
2442 Configurations): Add documentation for __builtin_mtfsf.
2443
2444 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
2445
2446 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
2447 * config/riscv/riscv.c (riscv_constant_alignment): Use
2448 riscv_align_data_type.
2449 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
2450 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2451 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2452 * config/riscv/riscv.opt (malign-data): New.
2453 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
2454
2455 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
2456
2457 * cgraph.c (dump_graphviz): New function.
2458 * cgraph.h (dump_graphviz): New function.
2459 * symtab.c (dump_graphviz): New function.
2460
2461 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
2462
2463 * config/aarch64/aarch64-simd.md
2464 (*aarch64_simd_sra<mode>): New.
2465 * config/aarch64/iterators.md
2466 (SHIFTRT): New iterator.
2467 (sra_op): New attribute.
2468
2469 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2470
2471 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
2472 callee-saved regs R4->R10 in an interrupt function that calls another
2473 function.
2474
2475 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2476
2477 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
2478 (_mm_blendv_epi8): New.
2479
2480 2019-07-22 Richard Biener <rguenther@suse.de>
2481
2482 PR tree-optimization/91221
2483 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
2484 restrict partial-def handling of empty constructors and
2485 memset to refs with known offset.
2486
2487 2019-07-22 Jan Beulich <jbeulich@suse.com>
2488
2489 * config/i386/sse.md (ternlogsuffix): New.
2490 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
2491 AVX512F is in use.
2492 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
2493
2494 2019-07-22 Martin Liska <mliska@suse.cz>
2495
2496 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
2497 comment.
2498 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
2499
2500 2019-07-22 Martin Liska <mliska@suse.cz>
2501
2502 * lto-section-in.c (lto_get_section_data):
2503 Use new function get_compression.
2504 * lto-streamer-out.c (produce_lto_section): Use
2505 set_compression to encode compression algorithm.
2506 * lto-streamer.h (struct lto_section): Do not
2507 use bitfields in the format.
2508
2509 2019-07-22 Martin Liska <mliska@suse.cz>
2510
2511 PR driver/91172
2512 * opts-common.c (decode_cmdline_option): Decode
2513 argument of -Werror and check it for a wrong language.
2514 * opts-global.c (complain_wrong_lang): Remove such case.
2515
2516 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
2517
2518 * config/arc/arc.c (prepare_move_operands): Always use an
2519 intermediate register when storing a TLS symbols.
2520
2521 2019-07-22 Stafford Horne <shorne@gmail.com>
2522
2523 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
2524 force_reg.
2525
2526 2019-07-22 Stafford Horne <shorne@gmail.com>
2527
2528 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
2529 and munordered-float validations.
2530 * config/or1k/constraints.md (d): New register constraint.
2531 * config/or1k/predicates.md (fp_comparison_operator): New.
2532 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
2533 operands.
2534 (or1k_expand_compare): Normalize unordered comparisons.
2535 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
2536 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
2537 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
2538 * config/or1k/or1k.md (type): Add fpu.
2539 (fpu): New instruction reservation.
2540 (F, f, fr, fi, FI, FOP, fop): New.
2541 (<fop><F:mode>3): New ALU instruction definition.
2542 (float<fi><F:mode>2): New conversion instruction definition.
2543 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
2544 (fpcmpcc): New code iterator.
2545 (*sf_fp_insn): New instruction definition.
2546 (cstore<F:mode>4): New expand definition.
2547 (cbranch<F:mode>4): New expand definition.
2548 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
2549 munordered-float): New options.
2550 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
2551 munordered-float.
2552
2553 2019-07-22 Stafford Horne <shorne@gmail.com>
2554
2555 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
2556 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
2557 documenation to be more clear.
2558 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
2559 more clear.
2560 * config/or1k/or1k.opt (mrori): New option.
2561 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
2562 msfimm, mshftimm): Rewrite documentation to be more clear.
2563 * config/or1k/or1k.md (insn_support): Add ror and rori.
2564 (enabled): Add conditions for ror and rori.
2565 (rotrsi3): Replace condition for shftimm with ror and rori.
2566
2567 2019-07-22 Stafford Horne <shorne@gmail.com>
2568
2569 PR target/90363
2570 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
2571 (extend<mode>si2): Update predicate.
2572 * config/or1k/predicates.md (volatile_mem_operand): New.
2573 (reg_or_mem_operand): New.
2574
2575 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
2576
2577 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
2578 * config/rs6000/rs6000-call.c: ... to here.
2579
2580 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2581
2582 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
2583 memory.
2584
2585 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2586
2587 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
2588
2589 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2590
2591 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
2592
2593 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2594
2595 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
2596 (any_memory_operand): New predicate.
2597 (reg_or_mem_operand): Use it.
2598
2599 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2600
2601 PR target/91204
2602 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
2603
2604 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
2605
2606 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
2607 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
2608
2609 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2610
2611 * tree.def (OMP_LOOP): New tree code.
2612 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
2613 (enum omp_clause_bind_kind): New enum.
2614 (struct tree_omp_clause): Add subcode.bind_kind.
2615 * tree.h (OMP_LOOP_CHECK): Rename to ...
2616 (OMP_LOOPING_CHECK): ... this.
2617 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
2618 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
2619 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
2620 (OMP_CLAUSE_BIND_KIND): Define.
2621 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2622 bind clause entries.
2623 (walk_tree_1): Handle OMP_CLAUSE_BIND.
2624 * tree-pretty-print.c (dump_omp_clause): Likewise.
2625 (dump_generic_node): Handle OMP_LOOP.
2626 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
2627 (in_omp_construct): New variable.
2628 (is_gimple_stmt): Handle OMP_LOOP.
2629 (gimplify_scan_omp_clauses): For lastprivate don't set
2630 check_non_private if code == OMP_LOOP. For reduction clause
2631 on OMP_LOOP combined with parallel or teams propagate as shared
2632 on the combined construct. Handle OMP_CLAUSE_BIND.
2633 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
2634 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
2635 for constructs from a loop construct to gimplify_scan_omp_clauses.
2636 Don't predetermine iterator linear on OMP_SIMD from loop construct.
2637 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
2638 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
2639 to match the implicit ORT_TARGET construct around whole body.
2640 Temporarily clear in_omp_construct when processing body.
2641 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
2642 etc. temporarily set in_omp_construct when processing body.
2643 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
2644 * omp-low.c (struct omp_context): Add loop_p.
2645 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
2646 in that the original var might be private.
2647 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
2648 (check_omp_nesting_restrictions): Adjust nesting restrictions for
2649 addition of loop construct.
2650 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
2651
2652 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
2653 lastprivate non-addressable iterator of a collapse(1) simd.
2654
2655 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
2656
2657 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
2658 as in rs6000.c.
2659
2660 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
2661
2662 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
2663 refer to default conditions. Warn for the 'y' spec which is ignored
2664 by current linkers.
2665
2666 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
2667
2668 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
2669 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2670 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2671 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2672 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2673 init_cumulative_args, rs6000_promote_function_mode,
2674 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2675 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2676 rs6000_function_arg_boundary, rs6000_parm_offset,
2677 rs6000_parm_start, rs6000_arg_size,
2678 rs6000_darwin64_record_arg_advance_flush,
2679 rs6000_darwin64_record_arg_advance_recurse,
2680 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2681 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2682 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2683 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2684 rs6000_finish_function_arg, rs6000_function_arg,
2685 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2686 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2687 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2688 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2689 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2690 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2691 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2692 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2693 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2694 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2695 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2696 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2697 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2698 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2699 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2700 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2701 get_element_number, altivec_expand_vec_set_builtin,
2702 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2703 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2704 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2705 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2706 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2707 rs6000_expand_builtin, rs6000_vector_type,
2708 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2709 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2710 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
2711 to rs6000-call.c.
2712 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
2713 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2714 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2715 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2716 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2717 init_cumulative_args, rs6000_promote_function_mode,
2718 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2719 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2720 rs6000_function_arg_boundary, rs6000_parm_offset,
2721 rs6000_parm_start, rs6000_arg_size,
2722 rs6000_darwin64_record_arg_advance_flush,
2723 rs6000_darwin64_record_arg_advance_recurse,
2724 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2725 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2726 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2727 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2728 rs6000_finish_function_arg, rs6000_function_arg,
2729 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2730 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2731 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2732 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2733 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2734 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2735 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2736 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2737 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2738 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2739 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2740 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2741 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2742 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2743 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2744 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2745 get_element_number, altivec_expand_vec_set_builtin,
2746 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2747 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2748 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2749 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2750 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2751 rs6000_expand_builtin, rs6000_vector_type,
2752 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2753 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2754 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
2755 to here from rs6000.c.
2756 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
2757 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
2758 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
2759 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
2760 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
2761 rs6000_return_in_memory, rs6000_return_in_msb,
2762 rs6000_pass_by_reference, setup_incoming_varargs,
2763 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
2764 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
2765 rs6000_function_arg_padding, rs6000_function_arg,
2766 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
2767 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
2768 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
2769 rs6000_passes_long_double, rs6000_passes_vector,
2770 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
2771 altivec_builtin_mask_for_load) Add declarations.
2772 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
2773 * config/config.gcc: Add new source file rs6000-call.c to garbage
2774 collector and extra_objs.
2775
2776 2019-07-19 Jeff Law <law@redhat.com>
2777
2778 PR tree-optimization/86061
2779 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2780 strncpy. Drop some trivial dead code.
2781 (maybe_trim_memstar_call): Handle strncpy.
2782
2783 2019-07-19 Richard Biener <rguenther@suse.de>
2784
2785 PR tree-optimization/91211
2786 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2787 memset encoding size.
2788
2789 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
2790
2791 PR target/91204
2792 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
2793
2794 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
2795
2796 PR ipa/91194
2797 * ipa-inline.c (recursive_inlining): Fix limits check.
2798
2799 2019-07-19 Richard Biener <rguenther@suse.de>
2800
2801 PR tree-optimization/91200
2802 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
2803 no PHI nodes in middle-bb.
2804
2805 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
2806
2807 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
2808 to +sve-bitperm.
2809 * config/aarch64/aarch64-option-extensions.def: Likewise.
2810
2811 2019-07-19 Jakub Jelinek <jakub@redhat.com>
2812
2813 PR middle-end/91190
2814 * function.c (insert_temp_slot_address): Store into the hash table
2815 a copy of address to avoid RTL sharing issues.
2816
2817 2019-07-19 Richard Biener <rguenther@suse.de>
2818
2819 PR tree-optimization/91207
2820 Revert
2821 2019-07-17 Richard Biener <rguenther@suse.de>
2822
2823 PR tree-optimization/91178
2824 * tree-vect-stmts.c (get_group_load_store_type): For SLP
2825 loads with a gap larger than the vector size always use
2826 VMAT_STRIDED_SLP.
2827 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
2828 avoid loading vectors that are only contained in the gap
2829 and thus are not needed.
2830
2831 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2832
2833 * config/i386/i386.md (*addqi_2_slp): Remove.
2834 (*<code>qi_2_slp): Ditto.
2835
2836 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
2837
2838 * config/rs6000/predicates.md (prefixed_mem_operand): Call
2839 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
2840 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
2841 Rename function from rs6000_prefixed_address.
2842 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2843 TARGET_HAS_TOC.
2844 (TARGET_TOC): Likewise.
2845 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2846 rs6000.h.
2847 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2848 TARGET_HAS_TOC.
2849 (TARGET_TOC): Likewise.
2850 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2851 rs6000.h.
2852 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2853 TARGET_HAS_TOC.
2854 (TARGET_TOC): Likewise.
2855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2856 check to require -mcmodel=medium for pc-relative addressing.
2857 (create_TOC_reference): Add assertion for TARGET_TOC.
2858 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
2859 TARGET_NO_TOC.
2860 (rs6000_emit_move): Likewise.
2861 (TOC_alias_set): Rename TOC alias set static variable from 'set'
2862 to 'TOC_alias_set'.
2863 (get_TOC_alias_set): Likewise.
2864 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
2865 TARGET_NO_TOC.
2866 (rs6000_can_eliminate): Likewise.
2867 (rs6000_prefixed_address_mode_p): Rename function from
2868 rs6000_prefixed_address.
2869 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
2870 TARGET_HAS_TOC and not pc-relative.
2871 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
2872 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2873 TARGET_HAS_TOC.
2874 (TARGET_TOC): Likewise.
2875 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2876 rs6000.h.
2877
2878 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2879
2880 PR target/91188
2881 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
2882 for operand 0. Do not use (match_dup) to match operand 1 with
2883 operand 0. Add check in insn constraint that either input operand
2884 matches operand 0. Use SWI12 mode iterator to also handle
2885 HImode operands.
2886 (*and<mode>_1_slp): Ditto.
2887 (*<code>qi_1_slp): Ditto.
2888 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
2889 Do not use (match_dup) to match operand 1 with operand 0. Add
2890 check in insn constraint that operand 1 matches operand 0.
2891 Use SWI12 mode iterator to also handle HImode operands.
2892 (*ashl<mode>3_1_slp): Ditto.
2893 (*<shift_insn><mode>3_1_slp): Ditto.
2894 (*<rotate_insn><mode>3_1_slp): Ditto.
2895
2896 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2897
2898 * config/arm/arm-builtins.c
2899 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
2900 (arm_expand_unop_builtin): Likewise.
2901 * config/arm/crypto.md
2902 (crypto_sha1h): Convert from define_insn to define_expand.
2903 (crypto_<crypto_pattern>): Likewise.
2904 (crypto_sha1h_lb): New define_insn.
2905 (crypto_<crypto_pattern>_lb): Likewise.
2906
2907 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2908
2909 PR target/90317
2910 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
2911 (vsha1cq_u32): Likewise.
2912 (vsha1pq_u32): Likewise.
2913 (vsha1mq_u32): Likewise.
2914 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
2915 vec select.
2916 (crypto_sha1c): Correct vec select.
2917 (crypto_sha1m): Likewise.
2918 (crypto_sha1p): Likewise.
2919
2920 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
2921
2922 * config/arm/predicates.md (arm_borrow_operation): New predicate.
2923 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
2924 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
2925 (subdi_zesidi_zesidi): Likewise.
2926 (negdi2_compare, negdi2_insn): Likewise.
2927 (negdi_extensidi): Likewise.
2928 (negdi_zero_extendsidi): Likewise.
2929 (arm_cmpdi_insn): Likewise.
2930 (subsi3_carryin): Use arm_borrow_operation.
2931 (subsi3_carryin_const): Likewise.
2932 (subsi3_carryin_const0): Likewise.
2933 (subsi3_carryin_compare): Likewise.
2934 (subsi3_carryin_compare_const): Likewise.
2935 (subsi3_carryin_compare_const0): Likewise.
2936 (subsi3_carryin_shift): Likewise.
2937 (rsbsi3_carryin_shift): Likewise.
2938 (negsi2_carryin_compare): Likewise.
2939
2940 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
2941
2942 PR tree-optimization/91137
2943 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
2944 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
2945 Init, use and fini the above new field.
2946 (determine_base_object_1): New function.
2947 (determine_base_object): Reimplement using walk_tree.
2948
2949 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
2950
2951 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
2952 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
2953 CLEANUP_FORCE_FAST_DCE is set.
2954 * ifcvt.c (rest_of_handle_if_conversion): Pass
2955 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
2956 if-conversion succeeded.
2957
2958 2019-07-18 Richard Biener <rguenther@suse.de>
2959
2960 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
2961 branches to make code less indented.
2962
2963 2019-07-17 Alexandre Oliva <oliva@adacore.com>
2964
2965 PR middle-end/81824
2966 * attribs.c (decls_mismatched_attributes): Simplify the logic
2967 that avoids duplicates and false positives.
2968
2969 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
2970
2971 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
2972 data into data section when generating PIC code.
2973 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
2974 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
2975 generating code for SOM targets earlier than HP-UX 11. Otherwise,
2976 return 2 for SOM and 0 for other targets.
2977
2978 2019-07-17 Jeff Law <law@redhat.com>
2979
2980 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
2981 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
2982 avoid unexpected switch statement fallthru.
2983
2984 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
2985
2986 * config/i386/i386.md (*add<dwi>3_doubleword):
2987 Remove redundant constraints.
2988 (*add<mode>_1): Ditto.
2989 (*addhi_1): Ditto.
2990 (*addqi_1): Ditto.
2991 (*addqi_1_slp): Ditto.
2992 (*add<mode>_2): Ditto.
2993 (*addv<mode>4): Ditto.
2994 (*sub<dwi>3_doubleword): Ditto.
2995 (*sub<mode>_1): Ditto.
2996 (*subqi_1_slp): Ditto.
2997 (*sub<mode>_2): Ditto.
2998 (*subv<mode>4): Ditto.
2999 (*sub<mode>_3): Ditto.
3000 (@add<mode>3_carry): Ditto.
3001 (@sub<mode>3_carry): Ditto.
3002 (*add<mode>3_cc_overflow_1): Ditto.
3003 (*add<mode>3_zext_cc_overflow_2): Ditto.
3004 (*anddi_1): Ditto.
3005 (*and<mode>_1): Ditto.
3006 (*andqi_1): Ditto.
3007 (*andqi_1_slp): Ditto.
3008 (*anddi_2): Ditto.
3009 (*andqi_2_maybe_si): Ditto.
3010 (*and<mode>_2): Ditto.
3011 (*andqi_2_slp): Ditto.
3012 (*<code><mode>_1): Ditto.
3013 (*<code>qi_1): Ditto.
3014 (*<code>qi_1_slp): Ditto.
3015 (*<code><mode>_2): Ditto.
3016 (*<code>qi_2_slp): Ditto.
3017
3018 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
3019
3020 * alias.c (record_component_aliases): Do not simplify pointed-to
3021 types of ODR types.
3022
3023 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3024
3025 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
3026 partial reg stall on alternative 2.
3027
3028 2019-07-17 Richard Biener <rguenther@suse.de>
3029
3030 PR tree-optimization/91178
3031 * tree-ssa.c (release_defs_bitset): Iterate from higher to
3032 lower SSA names to avoid quadratic behavior in the common case.
3033 * tree-data-ref.c (split_constant_offset): Add limit argument
3034 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3035 (split_constant_offset_1): Add limit argument and use it to
3036 limit SSA def walking. Optimize the common plus/minus case.
3037
3038 2019-07-17 Richard Biener <rguenther@suse.de>
3039
3040 PR tree-optimization/91178
3041 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3042 loads with a gap larger than the vector size always use
3043 VMAT_STRIDED_SLP.
3044 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3045 avoid loading vectors that are only contained in the gap
3046 and thus are not needed.
3047
3048 2019-07-17 Richard Biener <rguenther@suse.de>
3049
3050 PR tree-optimization/91180
3051 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
3052 computation for memset partial defs.
3053
3054 2019-07-17 Jakub Jelinek <jakub@redhat.com>
3055
3056 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
3057 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
3058 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
3059 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
3060 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
3061 * omp-grid.c (grid_process_grid_body,
3062 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
3063 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
3064 == GF_OMP_FOR_KIND_SIMD.
3065 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
3066 check_omp_nesting_restrictions, scan_omp_1_stmt,
3067 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
3068 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
3069 omp_find_scan): Likewise.
3070 * omp-expand.c (expand_omp_for): Likewise.
3071 * omp-general.c (omp_extract_for_data): Likewise.
3072
3073 PR tree-optimization/91157
3074 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
3075 a vector boolean with scalar mode.
3076 (expand_vector_condition): Handle first operand being a vector boolean
3077 with scalar mode.
3078 (expand_vector_operations_1): For comparisons, don't bail out early
3079 if the return type is vector boolean with scalar mode, but comparison
3080 operand type is not.
3081
3082 2019-07-17 Richard Biener <rguenther@suse.de>
3083
3084 PR tree-optimization/91181
3085 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
3086 IFN_LOADs as calls.
3087
3088 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
3089
3090 * config/i386/i386.md (*testdi_1): Match CCZmode for
3091 constants that might have the SImode sign bit set.
3092 (*testqi_1_maybe_si): Remove "!" constraint modifier.
3093 Use correct constraints for pentium pairing.
3094 (*test<mode>_1): Ditto.
3095
3096 2019-07-16 Jeff Law <law@redhat.com>
3097
3098 PR rtl-optimization/91173
3099 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
3100 SSA_NAME with a constant value, fold its value into the offset
3101 and clear the base before calling gen_addr_rtx.
3102
3103 2019-07-16 Jakub Jelinek <jakub@redhat.com>
3104
3105 PR rtl-optimization/91164
3106 * dse.c (rest_of_handle_dse): If dead edges have been purged,
3107 invalidate dominance info.
3108
3109 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3110
3111 * read-md.h (md_reader::record_potential_iterator_use): Add a
3112 file_location parameter.
3113 * read-rtl.c (attribute_use::loc): New field.
3114 (map_attr_string): Take a file_location parameter. Report cases
3115 in which attributes map to multiple distinct values.
3116 (apply_attribute_uses): Update call accordingly.
3117 (md_reader::handle_overloaded_name): Likewise.
3118 (md_reader::apply_iterator_to_string): Likewise. Skip empty
3119 nonnull strings.
3120 (record_attribute_use): Take a file_location parameter.
3121 Initialize attribute_use::loc.
3122 (md_reader::record_potential_iterator_use): Take a file_location
3123 parameter. Update call to record_attribute_use.
3124 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
3125 (rtx_reader::read_rtx_code): Likewise.
3126 (rtx_reader::read_rtx_operand): Likewise. Record a location
3127 for implicitly-expanded empty strings.
3128
3129 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3130
3131 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
3132 Use file_location instead of separate fields.
3133 (md_reader::set_md_ptr_loc): Take a file_location instead of a
3134 separate filename and line number.
3135 * read-md.c (ptr_loc): As above.
3136 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
3137 (md_reader::fprint_md_ptr_loc): Likewise.
3138 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
3139 instead of a separate filename and line number.
3140 (md_reader::read_string): Update call accordingly.
3141
3142 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3143
3144 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
3145 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
3146 leaving the choice between SFDF and P implicit.
3147 (*mov<mode>_update2): Likewise.
3148 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
3149 rather than leaving the choice betweem IBM128 and GPR implicit.
3150 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
3151 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
3152 QHSI implicit.
3153 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
3154 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
3155 * config/rs6000/vsx.md
3156 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
3157 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
3158 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
3159 and VSX_EXTRACT_I implicit.
3160
3161 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3162
3163 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
3164 Explicitly use <MOVEP1:MODE> for the mode attribute.
3165
3166 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
3167
3168 PR bootstrap/91176
3169 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
3170
3171 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
3172
3173 PR target/91050
3174 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
3175 .machine directive.
3176
3177 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
3178
3179 * config/i386/i386.md (@test<mode>_ccno_1):
3180 Rename from test<mode>_ccno_1.
3181 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
3182 (*testqi_1_maybe_si): Remove modrm attribute.
3183 (*test<mode>_1): Ditto.
3184 * config/i386/i386-expand.c (ix86_split_idivmod): Use
3185 gen_test_ccno_1 and gen_extend_insn.
3186
3187 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
3188
3189 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
3190 to 0.
3191
3192 2019-07-15 Richard Biener <rguenther@suse.de>
3193
3194 PR middle-end/91162
3195 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
3196 node make sure to replace all uses with something valid.
3197
3198 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
3199
3200 PR tree-optimization/88497
3201 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
3202 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
3203 function undistribute_bitref_for_vector.
3204 (undistribute_bitref_for_vector): New function.
3205 (cleanup_vinfo_map): Likewise.
3206 (sort_by_mach_mode): Likewise.
3207
3208 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
3209
3210 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
3211 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
3212 and testdi_ccno_1 using SWI48 mode attribute.
3213 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
3214 x86_64_szext_general_operand.
3215 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
3216 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
3217 instead of genera_operand mode attribute.
3218
3219 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
3220
3221 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
3222 fopen and fclose to their respective types.
3223 (DotFn.invoke): Ditto.
3224
3225 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
3226
3227 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
3228 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
3229 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
3230 (array_index_predicate): Remove.
3231 (analyze_function_body): Account cost for variable ofsetted array
3232 indexing.
3233 (estimate_node_size_and_time): Do not compute array index hint.
3234 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
3235 (inline_read_section): Do not read array index hint.
3236 (ipa_fn_summary_write): Do not write array index hint.
3237 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
3238 * ipa-cp.c (hint_time_bonus): Remove.
3239 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
3240 (ipa_fnsummary): Remove array_index.
3241 * ipa-inline.c (want_inline_small_function_p): Do not use
3242 array_index.
3243 (edge_badness): Likewise.
3244 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
3245
3246 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
3247
3248 PR target/91148
3249 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
3250 superfluous "builtin function" phrasing.
3251
3252 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
3253
3254 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
3255 Break out from ...
3256 (aliasing_component_refs_walk): Break out from ...
3257 (aliasing_component_refs_p): ... here.
3258
3259 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
3260
3261 PR target/91148
3262 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
3263 "builtin function" phrasing.
3264
3265 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3266
3267 PR target/90723
3268 * recog.h (temporary_volatile_ok): New class.
3269 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
3270 volatile_ok temporarily to true using temporary_volatile_ok.
3271 * expr.c (emit_block_move_via_cpymem): Likewise.
3272 * optabs.c (maybe_legitimize_operand): Likewise.
3273
3274 2019-07-13 Jakub Jelinek <jakub@redhat.com>
3275
3276 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
3277 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
3278 uses inside of order(concurrent) constructs.
3279 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
3280 OMP_CLAUSE_ORDER is seen.
3281 * omp-low.c (struct omp_context): Add order_concurrent member.
3282 (scan_sharing_clauses): Set ctx->order_concurrent if
3283 OMP_CLAUSE_ORDER is seen.
3284 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
3285 of simd order(concurrent). Diagnose constructs not allowed inside of
3286 for order(concurrent).
3287 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
3288 complaining about static double setjmp (double); or class static
3289 methods or non-global namespace setjmps.
3290 (omp_runtime_api_call): New function.
3291 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
3292 order(concurrent) loops.
3293
3294 2019-07-12 Martin Sebor <msebor@redhat.com>
3295
3296 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
3297 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
3298 * tree-vrp.c (vrp_prop::check_mem_ref): Use
3299 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3300
3301 2019-07-12 Jan Hubicka <jh@suse.cz>
3302
3303 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
3304 (indirect_refs_may_alias_p): ... here.
3305 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
3306 mem refs in the access paths.
3307
3308 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
3309
3310 PR tree-optimization/89430
3311 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
3312 store elimination for local variable without address escape.
3313
3314 2019-07-12 Jeff Law <law@redhat.com>
3315
3316 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
3317 for the ".far" section.
3318
3319 2019-07-12 Richard Biener <rguenther@suse.de>
3320
3321 PR tree-optimization/91145
3322 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
3323 chain check.
3324
3325 2019-07-12 Alexandre Oliva <oliva@adacore.com>
3326
3327 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
3328 rather than this_state as the lowering context for the ELSE
3329 seq in a GIMPLE_EH_ELSE.
3330
3331 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3332
3333 * vector-builder.h (vector_builder::elt): Allow already-supplied
3334 elements to be read back before building is complete.
3335
3336 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3337
3338 PR rtl-optimization/91136
3339 * df-core.c (ACCESSING REFS): Fix typos in comment.
3340 * resource.c (mark_target_live_reg): Add artificial defs that occur at
3341 the beginning of the block to the initial set of live registers.
3342
3343 2019-07-12 Richard Biener <rguenther@suse.de>
3344
3345 * fold-const.h (get_array_ctor_element_at_index): Adjust.
3346 * fold-const.c (get_array_ctor_element_at_index): Add
3347 ctor_idx output parameter informing the caller where in
3348 the constructor the element was (not) found. Add early exit
3349 for when the ctor is sorted.
3350 * gimple-fold.c (fold_array_ctor_reference): Support constant
3351 folding across multiple array elements.
3352
3353 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3354
3355 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
3356 doesn't have location, set the current location to the function's end.
3357
3358 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3359
3360 * config/aarch64/aarch64.md (*compare_condjump<mode>)
3361 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
3362 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
3363 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
3364 * config/aarch64/aarch64-simd.md
3365 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3366 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
3367 * config/aarch64/aarch64-sve.md
3368 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
3369 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
3370
3371 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3372
3373 * doc/md.texi: Document that @ patterns can have different
3374 numbers of operands.
3375 * genemit.c (handle_overloaded_gen): Handle this case.
3376 * genopinit.c (handle_overloaded_gen): Likewise.
3377 * gensupport.c (replace_operands_with_dups): Iterate over
3378 the new rtx's format rather than the old one's.
3379
3380 2019-07-12 Jakub Jelinek <jakub@redhat.com>
3381
3382 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
3383 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3384 order clause entries.
3385 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
3386 * tree-pretty-print.c (dump_omp_clause): Likewise.
3387 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3388 Likewise.
3389 * omp-low.c (scan_sharing_clauses): Likewise.
3390 * tree-nested.c (convert_nonlocal_omp_clauses,
3391 convert_local_omp_clauses): Likewise.
3392
3393 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
3394
3395 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
3396 fallthrough target of current basic block isn't the placed
3397 right next.
3398
3399 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
3400
3401 PR target/90980
3402 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
3403 (_mm512_storeu_epi64): Likewise.
3404 (_mm512_loadu_epi32): Likewise.
3405 (_mm512_storeu_epi32): Likewise.
3406 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
3407 (_mm_storeu_epi64): Likewise.
3408 (_mm256_storeu_epi32): Likewise.
3409 (_mm_storeu_epi32): Likewise.
3410
3411 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3412
3413 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
3414
3415 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3416
3417 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
3418 Handle Modula-2.
3419
3420 2019-07-11 Jakub Jelinek <jakub@redhat.com>
3421
3422 PR target/91124
3423 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
3424 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3425 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
3426 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
3427 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
3428 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
3429 define_insns.
3430 (ufix_truncv2dfv2si2<mask_name>): Change into ...
3431 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
3432 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
3433 define_insns.
3434 (sse2_cvttpd2dq<mask_name>): Change into ...
3435 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
3436 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
3437 (*sse2_cvtpd2dq<mask_name>): Change into ...
3438 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3439 Add "C" constraint to const0_operand.
3440 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
3441 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
3442 changes.
3443
3444 PR target/91124
3445 * config/i386/i386-builtin-types.def
3446 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
3447 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
3448 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
3449 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
3450 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
3451 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
3452 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
3453 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
3454 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
3455 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
3456 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
3457 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
3458 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
3459 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
3460 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
3461 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
3462 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
3463 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
3464 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
3465 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
3466 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
3467 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
3468 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
3469 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
3470 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
3471 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
3472 __builtin_ia32_vpdpbusd_v4si_maskz,
3473 __builtin_ia32_vpdpbusds_v16si_mask,
3474 __builtin_ia32_vpdpbusds_v16si_maskz,
3475 __builtin_ia32_vpdpbusds_v8si_mask,
3476 __builtin_ia32_vpdpbusds_v8si_maskz,
3477 __builtin_ia32_vpdpbusds_v4si_mask,
3478 __builtin_ia32_vpdpbusds_v4si_maskz,
3479 __builtin_ia32_vpdpwssd_v16si_mask,
3480 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
3481 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
3482 __builtin_ia32_vpdpwssd_v4si_maskz,
3483 __builtin_ia32_vpdpwssds_v16si_mask,
3484 __builtin_ia32_vpdpwssds_v16si_maskz,
3485 __builtin_ia32_vpdpwssds_v8si_mask,
3486 __builtin_ia32_vpdpwssds_v8si_maskz,
3487 __builtin_ia32_vpdpwssds_v4si_mask,
3488 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
3489 suffixed types rather than *_INT.
3490 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
3491 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
3492 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
3493 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
3494 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
3495 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
3496
3497 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
3498
3499 * tree-vrp.c (intersect_ranges): If we know the intersection is
3500 empty, there is no need to conservatively add anything else to
3501 the set.
3502
3503 2019-07-11 Richard Biener <rguenther@suse.de>
3504
3505 PR middle-end/91131
3506 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
3507 when the object is volatile and we have not cleared it even though
3508 there are no nonzero elements.
3509
3510 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
3511
3512 * config/rs6000/predicates.md (cint34_operand): Update
3513 SIGNED_34BIT_OFFSET_P call.
3514 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
3515 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
3516 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
3517 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
3518 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
3519 argument.
3520 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
3521 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
3522 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
3523 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
3524 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
3525
3526 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
3527
3528 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
3529 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
3530 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
3531 (DEF_MIN_OSX_VERSION): New.
3532
3533 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3534
3535 * fold-const.c (fold_relational_const): Fix folding of
3536 vector-to-scalar NE_EXPRs.
3537 (test_vector_folding): Add more tests.
3538
3539 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3540
3541 PR target/91060
3542 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
3543 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
3544 (vec_setv2di_internal): Reexpress as...
3545 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
3546 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
3547 rather than gen_neon_vset_lane<mode>.
3548
3549 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
3550
3551 PR target/91102
3552 * lra-constraints.c (process_alt_operands): Don't match user
3553 defined regs only if they are early clobbers.
3554
3555 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
3556
3557 * wide-int.h (wi::lshift): Reject negative values for the fast path.
3558
3559 2019-07-10 Richard Biener <rguenther@suse.de>
3560
3561 PR tree-optimization/91126
3562 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
3563 native encoding offset for BYTES_BIG_ENDIAN.
3564 (vn_reference_lookup_3): Likewise.
3565
3566 2019-07-10 Richard Biener <rguenther@suse.de>
3567
3568 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
3569 LHS whenever possible.
3570
3571 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
3572
3573 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
3574 from ...; work also on duplicated types.
3575 (nonoverlapping_component_refs_since_match): ... here
3576 (ncr_type_uid): Break out from ...
3577 (ncr_compar): ... here; look for TYPE_UID of canonical type if
3578 available.
3579 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
3580 the types and nonoverlapping_component_refs_p_1 to disambiguate.
3581
3582 2019-07-09 Martin Sebor <msebor@redhat.com>
3583
3584 PR tree-optimization/90989
3585 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
3586 optimization to just single character stores.
3587
3588 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
3589
3590 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
3591 Swap operands only once.
3592
3593 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3594
3595 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
3596 for both call instructions.
3597
3598 2019-07-09 John Darrington <john@darrington.wattle.id.au>
3599
3600 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
3601 rather than GET_MODE_BITSIZE to better handle partial integer modes.
3602
3603 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
3604
3605 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
3606 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
3607 function from rs6000-logue.c back to rs6000.c.
3608 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
3609
3610 2019-07-09 Martin Sebor <msebor@redhat.com>
3611
3612 PR c++/61339
3613 * auto-profile.c: Change class-key of PODs to struct and others
3614 to class.
3615 * basic-block.h: Same.
3616 * bitmap.c (bitmap_alloc): Same.
3617 * bitmap.h: Same.
3618 * builtins.c (expand_builtin_prefetch): Same.
3619 (expand_builtin_interclass_mathfn): Same.
3620 (expand_builtin_strlen): Same.
3621 (expand_builtin_mempcpy_args): Same.
3622 (expand_cmpstr): Same.
3623 (expand_builtin___clear_cache): Same.
3624 (expand_ifn_atomic_bit_test_and): Same.
3625 (expand_builtin_thread_pointer): Same.
3626 (expand_builtin_set_thread_pointer): Same.
3627 * caller-save.c (setup_save_areas): Same.
3628 (replace_reg_with_saved_mem): Same.
3629 (insert_restore): Same.
3630 (insert_save): Same.
3631 (add_used_regs): Same.
3632 * cfg.c (get_bb_copy): Same.
3633 (set_loop_copy): Same.
3634 * cfg.h: Same.
3635 * cfganal.h: Same.
3636 * cfgexpand.c (alloc_stack_frame_space): Same.
3637 (add_stack_var): Same.
3638 (add_stack_var_conflict): Same.
3639 (add_scope_conflicts_1): Same.
3640 (update_alias_info_with_stack_vars): Same.
3641 (expand_used_vars): Same.
3642 * cfghooks.c (redirect_edge_and_branch_force): Same.
3643 (delete_basic_block): Same.
3644 (split_edge): Same.
3645 (make_forwarder_block): Same.
3646 (force_nonfallthru): Same.
3647 (duplicate_block): Same.
3648 (lv_flush_pending_stmts): Same.
3649 * cfghooks.h: Same.
3650 * cfgloop.c (flow_loops_cfg_dump): Same.
3651 (flow_loop_nested_p): Same.
3652 (superloop_at_depth): Same.
3653 (get_loop_latch_edges): Same.
3654 (flow_loop_dump): Same.
3655 (flow_loops_dump): Same.
3656 (flow_loops_free): Same.
3657 (flow_loop_nodes_find): Same.
3658 (establish_preds): Same.
3659 (flow_loop_tree_node_add): Same.
3660 (flow_loop_tree_node_remove): Same.
3661 (flow_loops_find): Same.
3662 (find_subloop_latch_edge_by_profile): Same.
3663 (find_subloop_latch_edge_by_ivs): Same.
3664 (mfb_redirect_edges_in_set): Same.
3665 (form_subloop): Same.
3666 (merge_latch_edges): Same.
3667 (disambiguate_multiple_latches): Same.
3668 (disambiguate_loops_with_multiple_latches): Same.
3669 (flow_bb_inside_loop_p): Same.
3670 (glb_enum_p): Same.
3671 (get_loop_body_with_size): Same.
3672 (get_loop_body): Same.
3673 (fill_sons_in_loop): Same.
3674 (get_loop_body_in_dom_order): Same.
3675 (get_loop_body_in_custom_order): Same.
3676 (release_recorded_exits): Same.
3677 (get_loop_exit_edges): Same.
3678 (num_loop_branches): Same.
3679 (remove_bb_from_loops): Same.
3680 (find_common_loop): Same.
3681 (delete_loop): Same.
3682 (cancel_loop): Same.
3683 (verify_loop_structure): Same.
3684 (loop_preheader_edge): Same.
3685 (loop_exit_edge_p): Same.
3686 (single_exit): Same.
3687 (loop_exits_to_bb_p): Same.
3688 (loop_exits_from_bb_p): Same.
3689 (get_loop_location): Same.
3690 (record_niter_bound): Same.
3691 (get_estimated_loop_iterations_int): Same.
3692 (max_stmt_executions_int): Same.
3693 (likely_max_stmt_executions_int): Same.
3694 (get_estimated_loop_iterations): Same.
3695 (get_max_loop_iterations): Same.
3696 (get_max_loop_iterations_int): Same.
3697 (get_likely_max_loop_iterations): Same.
3698 * cfgloop.h (simple_loop_desc): Same.
3699 (get_loop): Same.
3700 (loop_depth): Same.
3701 (loop_outer): Same.
3702 (loop_iterator::next): Same.
3703 (loop_outermost): Same.
3704 * cfgloopanal.c (mark_irreducible_loops): Same.
3705 (num_loop_insns): Same.
3706 (average_num_loop_insns): Same.
3707 (expected_loop_iterations_unbounded): Same.
3708 (expected_loop_iterations): Same.
3709 (mark_loop_exit_edges): Same.
3710 (single_likely_exit): Same.
3711 * cfgloopmanip.c (fix_bb_placement): Same.
3712 (fix_bb_placements): Same.
3713 (remove_path): Same.
3714 (place_new_loop): Same.
3715 (add_loop): Same.
3716 (scale_loop_frequencies): Same.
3717 (scale_loop_profile): Same.
3718 (create_empty_if_region_on_edge): Same.
3719 (create_empty_loop_on_edge): Same.
3720 (loopify): Same.
3721 (unloop): Same.
3722 (fix_loop_placements): Same.
3723 (copy_loop_info): Same.
3724 (duplicate_loop): Same.
3725 (duplicate_subloops): Same.
3726 (loop_redirect_edge): Same.
3727 (can_duplicate_loop_p): Same.
3728 (duplicate_loop_to_header_edge): Same.
3729 (mfb_keep_just): Same.
3730 (has_preds_from_loop): Same.
3731 (create_preheader): Same.
3732 (create_preheaders): Same.
3733 (lv_adjust_loop_entry_edge): Same.
3734 (loop_version): Same.
3735 * cfgloopmanip.h: Same.
3736 * cgraph.h: Same.
3737 * cgraphbuild.c: Same.
3738 * combine.c (make_extraction): Same.
3739 * config/i386/i386-features.c: Same.
3740 * config/i386/i386-features.h: Same.
3741 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
3742 (ix86_emit_outlined_ms2sysv_restore): Same.
3743 (ix86_noce_conversion_profitable_p): Same.
3744 (ix86_init_cost): Same.
3745 (ix86_simd_clone_usable): Same.
3746 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
3747 Wstruct-not-pod.
3748 * coretypes.h: Same.
3749 * data-streamer-in.c (string_for_index): Change class-key of PODs
3750 to struct and others to class.
3751 (streamer_read_indexed_string): Same.
3752 (streamer_read_string): Same.
3753 (bp_unpack_indexed_string): Same.
3754 (bp_unpack_string): Same.
3755 (streamer_read_uhwi): Same.
3756 (streamer_read_hwi): Same.
3757 (streamer_read_gcov_count): Same.
3758 (streamer_read_wide_int): Same.
3759 * data-streamer.h (streamer_write_bitpack): Same.
3760 (bp_unpack_value): Same.
3761 (streamer_write_char_stream): Same.
3762 (streamer_write_hwi_in_range): Same.
3763 (streamer_write_record_start): Same.
3764 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
3765 (add_cross_iteration_register_deps): Same.
3766 (build_intra_loop_deps): Same.
3767 * df-core.c (df_analyze): Same.
3768 (loop_post_order_compute): Same.
3769 (loop_inverted_post_order_compute): Same.
3770 * df-problems.c (df_rd_alloc): Same.
3771 (df_rd_simulate_one_insn): Same.
3772 (df_rd_local_compute): Same.
3773 (df_rd_init_solution): Same.
3774 (df_rd_confluence_n): Same.
3775 (df_rd_transfer_function): Same.
3776 (df_rd_free): Same.
3777 (df_rd_dump_defs_set): Same.
3778 (df_rd_top_dump): Same.
3779 (df_lr_alloc): Same.
3780 (df_lr_reset): Same.
3781 (df_lr_local_compute): Same.
3782 (df_lr_init): Same.
3783 (df_lr_confluence_n): Same.
3784 (df_lr_free): Same.
3785 (df_lr_top_dump): Same.
3786 (df_lr_verify_transfer_functions): Same.
3787 (df_live_alloc): Same.
3788 (df_live_reset): Same.
3789 (df_live_init): Same.
3790 (df_live_confluence_n): Same.
3791 (df_live_finalize): Same.
3792 (df_live_free): Same.
3793 (df_live_top_dump): Same.
3794 (df_live_verify_transfer_functions): Same.
3795 (df_mir_alloc): Same.
3796 (df_mir_reset): Same.
3797 (df_mir_init): Same.
3798 (df_mir_confluence_n): Same.
3799 (df_mir_free): Same.
3800 (df_mir_top_dump): Same.
3801 (df_word_lr_alloc): Same.
3802 (df_word_lr_reset): Same.
3803 (df_word_lr_init): Same.
3804 (df_word_lr_confluence_n): Same.
3805 (df_word_lr_free): Same.
3806 (df_word_lr_top_dump): Same.
3807 (df_md_alloc): Same.
3808 (df_md_simulate_one_insn): Same.
3809 (df_md_reset): Same.
3810 (df_md_init): Same.
3811 (df_md_free): Same.
3812 (df_md_top_dump): Same.
3813 * df-scan.c (df_insn_delete): Same.
3814 (df_insn_rescan): Same.
3815 (df_notes_rescan): Same.
3816 (df_sort_and_compress_mws): Same.
3817 (df_install_mws): Same.
3818 (df_refs_add_to_chains): Same.
3819 (df_ref_create_structure): Same.
3820 (df_ref_record): Same.
3821 (df_def_record_1): Same.
3822 (df_find_hard_reg_defs): Same.
3823 (df_uses_record): Same.
3824 (df_get_conditional_uses): Same.
3825 (df_get_call_refs): Same.
3826 (df_recompute_luids): Same.
3827 (df_get_entry_block_def_set): Same.
3828 (df_entry_block_defs_collect): Same.
3829 (df_get_exit_block_use_set): Same.
3830 (df_exit_block_uses_collect): Same.
3831 (df_mws_verify): Same.
3832 (df_bb_verify): Same.
3833 * df.h (df_scan_get_bb_info): Same.
3834 * doc/tm.texi: Same.
3835 * dse.c (record_store): Same.
3836 * dumpfile.h: Same.
3837 * emit-rtl.c (const_fixed_hasher::equal): Same.
3838 (set_mem_attributes_minus_bitpos): Same.
3839 (change_address): Same.
3840 (adjust_address_1): Same.
3841 (offset_address): Same.
3842 * emit-rtl.h: Same.
3843 * except.c (dw2_build_landing_pads): Same.
3844 (sjlj_emit_dispatch_table): Same.
3845 * explow.c (allocate_dynamic_stack_space): Same.
3846 (emit_stack_probe): Same.
3847 (probe_stack_range): Same.
3848 * expmed.c (store_bit_field_using_insv): Same.
3849 (store_bit_field_1): Same.
3850 (store_integral_bit_field): Same.
3851 (extract_bit_field_using_extv): Same.
3852 (extract_bit_field_1): Same.
3853 (emit_cstore): Same.
3854 * expr.c (emit_block_move_via_cpymem): Same.
3855 (expand_cmpstrn_or_cmpmem): Same.
3856 (set_storage_via_setmem): Same.
3857 (emit_single_push_insn_1): Same.
3858 (expand_assignment): Same.
3859 (store_constructor): Same.
3860 (expand_expr_real_2): Same.
3861 (expand_expr_real_1): Same.
3862 (try_casesi): Same.
3863 * flags.h: Same.
3864 * function.c (try_fit_stack_local): Same.
3865 (assign_stack_local_1): Same.
3866 (assign_stack_local): Same.
3867 (cut_slot_from_list): Same.
3868 (insert_slot_to_list): Same.
3869 (max_slot_level): Same.
3870 (move_slot_to_level): Same.
3871 (temp_address_hasher::equal): Same.
3872 (remove_unused_temp_slot_addresses): Same.
3873 (assign_temp): Same.
3874 (combine_temp_slots): Same.
3875 (update_temp_slot_address): Same.
3876 (preserve_temp_slots): Same.
3877 * function.h: Same.
3878 * fwprop.c: Same.
3879 * gcc-rich-location.h: Same.
3880 * gcov.c: Same.
3881 * genattrtab.c (check_attr_test): Same.
3882 (check_attr_value): Same.
3883 (convert_set_attr_alternative): Same.
3884 (convert_set_attr): Same.
3885 (check_defs): Same.
3886 (copy_boolean): Same.
3887 (get_attr_value): Same.
3888 (expand_delays): Same.
3889 (make_length_attrs): Same.
3890 (min_fn): Same.
3891 (make_alternative_compare): Same.
3892 (simplify_test_exp): Same.
3893 (tests_attr_p): Same.
3894 (get_attr_order): Same.
3895 (clear_struct_flag): Same.
3896 (gen_attr): Same.
3897 (compares_alternatives_p): Same.
3898 (gen_insn): Same.
3899 (gen_delay): Same.
3900 (find_attrs_to_cache): Same.
3901 (write_test_expr): Same.
3902 (walk_attr_value): Same.
3903 (write_attr_get): Same.
3904 (eliminate_known_true): Same.
3905 (write_insn_cases): Same.
3906 (write_attr_case): Same.
3907 (write_attr_valueq): Same.
3908 (write_attr_value): Same.
3909 (write_dummy_eligible_delay): Same.
3910 (next_comma_elt): Same.
3911 (find_attr): Same.
3912 (make_internal_attr): Same.
3913 (copy_rtx_unchanging): Same.
3914 (gen_insn_reserv): Same.
3915 (check_tune_attr): Same.
3916 (make_automaton_attrs): Same.
3917 (handle_arg): Same.
3918 * genextract.c (gen_insn): Same.
3919 (VEC_char_to_string): Same.
3920 * genmatch.c (print_operand): Same.
3921 (lower): Same.
3922 (parser::parse_operation): Same.
3923 (parser::parse_capture): Same.
3924 (parser::parse_c_expr): Same.
3925 (parser::parse_simplify): Same.
3926 (main): Same.
3927 * genoutput.c (output_operand_data): Same.
3928 (output_get_insn_name): Same.
3929 (compare_operands): Same.
3930 (place_operands): Same.
3931 (process_template): Same.
3932 (validate_insn_alternatives): Same.
3933 (validate_insn_operands): Same.
3934 (gen_expand): Same.
3935 (note_constraint): Same.
3936 * genpreds.c (write_one_predicate_function): Same.
3937 (add_constraint): Same.
3938 (process_define_register_constraint): Same.
3939 (write_lookup_constraint_1): Same.
3940 (write_lookup_constraint_array): Same.
3941 (write_insn_constraint_len): Same.
3942 (write_reg_class_for_constraint_1): Same.
3943 (write_constraint_satisfied_p_array): Same.
3944 * genrecog.c (optimize_subroutine_group): Same.
3945 * gensupport.c (process_define_predicate): Same.
3946 (queue_pattern): Same.
3947 (remove_from_queue): Same.
3948 (process_rtx): Same.
3949 (is_predicable): Same.
3950 (change_subst_attribute): Same.
3951 (subst_pattern_match): Same.
3952 (alter_constraints): Same.
3953 (alter_attrs_for_insn): Same.
3954 (shift_output_template): Same.
3955 (alter_output_for_subst_insn): Same.
3956 (process_one_cond_exec): Same.
3957 (subst_dup): Same.
3958 (process_define_cond_exec): Same.
3959 (mnemonic_htab_callback): Same.
3960 (gen_mnemonic_attr): Same.
3961 (read_md_rtx): Same.
3962 * ggc-page.c: Same.
3963 * gimple-loop-interchange.cc (dump_reduction): Same.
3964 (dump_induction): Same.
3965 (loop_cand::~loop_cand): Same.
3966 (free_data_refs_with_aux): Same.
3967 (tree_loop_interchange::interchange_loops): Same.
3968 (tree_loop_interchange::map_inductions_to_loop): Same.
3969 (tree_loop_interchange::move_code_to_inner_loop): Same.
3970 (compute_access_stride): Same.
3971 (compute_access_strides): Same.
3972 (proper_loop_form_for_interchange): Same.
3973 (tree_loop_interchange_compute_ddrs): Same.
3974 (prune_datarefs_not_in_loop): Same.
3975 (prepare_data_references): Same.
3976 (pass_linterchange::execute): Same.
3977 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
3978 (unroll_jam_possible_p): Same.
3979 (fuse_loops): Same.
3980 (adjust_unroll_factor): Same.
3981 (tree_loop_unroll_and_jam): Same.
3982 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
3983 (loop_versioning::expensive_stmt_p): Same.
3984 (loop_versioning::version_for_unity): Same.
3985 (loop_versioning::dump_inner_likelihood): Same.
3986 (loop_versioning::find_per_loop_multiplication): Same.
3987 (loop_versioning::analyze_term_using_scevs): Same.
3988 (loop_versioning::record_address_fragment): Same.
3989 (loop_versioning::analyze_expr): Same.
3990 (loop_versioning::analyze_blocks): Same.
3991 (loop_versioning::prune_conditions): Same.
3992 (loop_versioning::merge_loop_info): Same.
3993 (loop_versioning::add_loop_to_queue): Same.
3994 (loop_versioning::decide_whether_loop_is_versionable): Same.
3995 (loop_versioning::make_versioning_decisions): Same.
3996 (loop_versioning::implement_versioning_decisions): Same.
3997 * gimple-ssa-evrp-analyze.c
3998 (evrp_range_analyzer::record_ranges_from_phis): Same.
3999 * gimple-ssa-store-merging.c (split_store::split_store): Same.
4000 (count_multiple_uses): Same.
4001 (split_group): Same.
4002 (imm_store_chain_info::output_merged_store): Same.
4003 (pass_store_merging::process_store): Same.
4004 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
4005 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
4006 (is_max): Same.
4007 (alloca_call_type): Same.
4008 (pass_walloca::execute): Same.
4009 * gimple-streamer-in.c (input_phi): Same.
4010 (input_gimple_stmt): Same.
4011 * gimple-streamer.h: Same.
4012 * godump.c (go_force_record_alignment): Same.
4013 (go_format_type): Same.
4014 (go_output_type): Same.
4015 (go_output_fndecl): Same.
4016 (go_output_typedef): Same.
4017 (keyword_hash_init): Same.
4018 (find_dummy_types): Same.
4019 * graph.c (draw_cfg_nodes_no_loops): Same.
4020 (draw_cfg_nodes_for_loop): Same.
4021 * hard-reg-set.h (hard_reg_set_iter_next): Same.
4022 * hsa-brig.c: Same.
4023 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
4024 * hsa-dump.c (dump_hsa_cfun): Same.
4025 * hsa-gen.c (gen_function_def_parameters): Same.
4026 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
4027 * input.c (dump_line_table_statistics): Same.
4028 (test_lexer): Same.
4029 * input.h: Same.
4030 * internal-fn.c (get_multi_vector_move): Same.
4031 (expand_load_lanes_optab_fn): Same.
4032 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
4033 (expand_GOMP_SIMT_EXIT): Same.
4034 (expand_GOMP_SIMT_LAST_LANE): Same.
4035 (expand_GOMP_SIMT_ORDERED_PRED): Same.
4036 (expand_GOMP_SIMT_VOTE_ANY): Same.
4037 (expand_GOMP_SIMT_XCHG_BFLY): Same.
4038 (expand_GOMP_SIMT_XCHG_IDX): Same.
4039 (expand_addsub_overflow): Same.
4040 (expand_neg_overflow): Same.
4041 (expand_mul_overflow): Same.
4042 (expand_call_mem_ref): Same.
4043 (expand_mask_load_optab_fn): Same.
4044 (expand_scatter_store_optab_fn): Same.
4045 (expand_gather_load_optab_fn): Same.
4046 * ipa-cp.c (ipa_get_parm_lattices): Same.
4047 (print_all_lattices): Same.
4048 (ignore_edge_p): Same.
4049 (build_toporder_info): Same.
4050 (free_toporder_info): Same.
4051 (push_node_to_stack): Same.
4052 (ipcp_lattice<valtype>::set_contains_variable): Same.
4053 (set_agg_lats_to_bottom): Same.
4054 (ipcp_bits_lattice::meet_with): Same.
4055 (set_single_call_flag): Same.
4056 (initialize_node_lattices): Same.
4057 (ipa_get_jf_ancestor_result): Same.
4058 (ipcp_verify_propagated_values): Same.
4059 (propagate_scalar_across_jump_function): Same.
4060 (propagate_context_across_jump_function): Same.
4061 (propagate_bits_across_jump_function): Same.
4062 (ipa_vr_operation_and_type_effects): Same.
4063 (propagate_vr_across_jump_function): Same.
4064 (set_check_aggs_by_ref): Same.
4065 (set_chain_of_aglats_contains_variable): Same.
4066 (merge_aggregate_lattices): Same.
4067 (agg_pass_through_permissible_p): Same.
4068 (propagate_aggs_across_jump_function): Same.
4069 (call_passes_through_thunk_p): Same.
4070 (propagate_constants_across_call): Same.
4071 (devirtualization_time_bonus): Same.
4072 (good_cloning_opportunity_p): Same.
4073 (context_independent_aggregate_values): Same.
4074 (gather_context_independent_values): Same.
4075 (perform_estimation_of_a_value): Same.
4076 (estimate_local_effects): Same.
4077 (value_topo_info<valtype>::add_val): Same.
4078 (add_all_node_vals_to_toposort): Same.
4079 (value_topo_info<valtype>::propagate_effects): Same.
4080 (ipcp_propagate_stage): Same.
4081 (ipcp_discover_new_direct_edges): Same.
4082 (same_node_or_its_all_contexts_clone_p): Same.
4083 (cgraph_edge_brings_value_p): Same.
4084 (gather_edges_for_value): Same.
4085 (create_specialized_node): Same.
4086 (find_more_scalar_values_for_callers_subset): Same.
4087 (find_more_contexts_for_caller_subset): Same.
4088 (copy_plats_to_inter): Same.
4089 (intersect_aggregates_with_edge): Same.
4090 (find_aggregate_values_for_callers_subset): Same.
4091 (cgraph_edge_brings_all_agg_vals_for_node): Same.
4092 (decide_about_value): Same.
4093 (decide_whether_version_node): Same.
4094 (spread_undeadness): Same.
4095 (identify_dead_nodes): Same.
4096 (ipcp_store_vr_results): Same.
4097 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
4098 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
4099 (redirect_to_unreachable): Same.
4100 (edge_set_predicate): Same.
4101 (evaluate_conditions_for_known_args): Same.
4102 (evaluate_properties_for_edge): Same.
4103 (ipa_fn_summary_t::duplicate): Same.
4104 (ipa_call_summary_t::duplicate): Same.
4105 (dump_ipa_call_summary): Same.
4106 (ipa_dump_fn_summary): Same.
4107 (eliminated_by_inlining_prob): Same.
4108 (set_cond_stmt_execution_predicate): Same.
4109 (set_switch_stmt_execution_predicate): Same.
4110 (compute_bb_predicates): Same.
4111 (will_be_nonconstant_expr_predicate): Same.
4112 (phi_result_unknown_predicate): Same.
4113 (analyze_function_body): Same.
4114 (compute_fn_summary): Same.
4115 (estimate_edge_devirt_benefit): Same.
4116 (estimate_edge_size_and_time): Same.
4117 (estimate_calls_size_and_time): Same.
4118 (estimate_node_size_and_time): Same.
4119 (remap_edge_change_prob): Same.
4120 (remap_edge_summaries): Same.
4121 (ipa_merge_fn_summary_after_inlining): Same.
4122 (ipa_fn_summary_generate): Same.
4123 (inline_read_section): Same.
4124 (ipa_fn_summary_read): Same.
4125 (ipa_fn_summary_write): Same.
4126 * ipa-fnsummary.h: Same.
4127 * ipa-hsa.c (ipa_hsa_read_section): Same.
4128 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
4129 * ipa-icf.c (sem_function::param_used_p): Same.
4130 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
4131 * ipa-inline.c (edge_badness): Same.
4132 (inline_small_functions): Same.
4133 * ipa-polymorphic-call.c
4134 (ipa_polymorphic_call_context::stream_out): Same.
4135 * ipa-predicate.c (predicate::remap_after_duplication): Same.
4136 (predicate::remap_after_inlining): Same.
4137 (predicate::stream_out): Same.
4138 * ipa-predicate.h: Same.
4139 * ipa-profile.c (ipa_profile_read_summary): Same.
4140 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
4141 (count_formal_params): Same.
4142 (ipa_dump_param): Same.
4143 (ipa_alloc_node_params): Same.
4144 (ipa_print_node_jump_functions_for_edge): Same.
4145 (ipa_print_node_jump_functions): Same.
4146 (ipa_load_from_parm_agg): Same.
4147 (get_ancestor_addr_info): Same.
4148 (ipa_compute_jump_functions_for_edge): Same.
4149 (ipa_analyze_virtual_call_uses): Same.
4150 (ipa_analyze_stmt_uses): Same.
4151 (ipa_analyze_params_uses_in_bb): Same.
4152 (update_jump_functions_after_inlining): Same.
4153 (try_decrement_rdesc_refcount): Same.
4154 (ipa_impossible_devirt_target): Same.
4155 (update_indirect_edges_after_inlining): Same.
4156 (combine_controlled_uses_counters): Same.
4157 (ipa_edge_args_sum_t::duplicate): Same.
4158 (ipa_write_jump_function): Same.
4159 (ipa_write_indirect_edge_info): Same.
4160 (ipa_write_node_info): Same.
4161 (ipa_read_edge_info): Same.
4162 (ipa_prop_read_section): Same.
4163 (read_replacements_section): Same.
4164 * ipa-prop.h (ipa_get_param_count): Same.
4165 (ipa_get_param): Same.
4166 (ipa_get_type): Same.
4167 (ipa_get_param_move_cost): Same.
4168 (ipa_set_param_used): Same.
4169 (ipa_get_controlled_uses): Same.
4170 (ipa_set_controlled_uses): Same.
4171 (ipa_get_cs_argument_count): Same.
4172 * ipa-pure-const.c (analyze_function): Same.
4173 (pure_const_read_summary): Same.
4174 * ipa-ref.h: Same.
4175 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
4176 * ipa-split.c (test_nonssa_use): Same.
4177 (dump_split_point): Same.
4178 (dominated_by_forbidden): Same.
4179 (split_part_set_ssa_name_p): Same.
4180 (find_split_points): Same.
4181 * ira-build.c (finish_loop_tree_nodes): Same.
4182 (low_pressure_loop_node_p): Same.
4183 * ira-color.c (ira_reuse_stack_slot): Same.
4184 * ira-int.h: Same.
4185 * ira.c (setup_reg_equiv): Same.
4186 (print_insn_chain): Same.
4187 (ira): Same.
4188 * loop-doloop.c (doloop_condition_get): Same.
4189 (add_test): Same.
4190 (record_reg_sets): Same.
4191 (doloop_optimize): Same.
4192 * loop-init.c (loop_optimizer_init): Same.
4193 (fix_loop_structure): Same.
4194 * loop-invariant.c (merge_identical_invariants): Same.
4195 (compute_always_reached): Same.
4196 (find_exits): Same.
4197 (may_assign_reg_p): Same.
4198 (find_invariants_bb): Same.
4199 (find_invariants_body): Same.
4200 (replace_uses): Same.
4201 (can_move_invariant_reg): Same.
4202 (free_inv_motion_data): Same.
4203 (move_single_loop_invariants): Same.
4204 (change_pressure): Same.
4205 (mark_ref_regs): Same.
4206 (calculate_loop_reg_pressure): Same.
4207 * loop-iv.c (biv_entry_hasher::equal): Same.
4208 (iv_extend_to_rtx_code): Same.
4209 (check_iv_ref_table_size): Same.
4210 (clear_iv_info): Same.
4211 (latch_dominating_def): Same.
4212 (iv_get_reaching_def): Same.
4213 (iv_constant): Same.
4214 (iv_subreg): Same.
4215 (iv_extend): Same.
4216 (iv_neg): Same.
4217 (iv_add): Same.
4218 (iv_mult): Same.
4219 (get_biv_step): Same.
4220 (record_iv): Same.
4221 (analyzed_for_bivness_p): Same.
4222 (record_biv): Same.
4223 (iv_analyze_biv): Same.
4224 (iv_analyze_expr): Same.
4225 (iv_analyze_def): Same.
4226 (iv_analyze_op): Same.
4227 (iv_analyze): Same.
4228 (iv_analyze_result): Same.
4229 (biv_p): Same.
4230 (eliminate_implied_conditions): Same.
4231 (simplify_using_initial_values): Same.
4232 (shorten_into_mode): Same.
4233 (canonicalize_iv_subregs): Same.
4234 (determine_max_iter): Same.
4235 (check_simple_exit): Same.
4236 (find_simple_exit): Same.
4237 (get_simple_loop_desc): Same.
4238 * loop-unroll.c (report_unroll): Same.
4239 (decide_unrolling): Same.
4240 (unroll_loops): Same.
4241 (loop_exit_at_end_p): Same.
4242 (decide_unroll_constant_iterations): Same.
4243 (unroll_loop_constant_iterations): Same.
4244 (compare_and_jump_seq): Same.
4245 (unroll_loop_runtime_iterations): Same.
4246 (decide_unroll_stupid): Same.
4247 (unroll_loop_stupid): Same.
4248 (referenced_in_one_insn_in_loop_p): Same.
4249 (reset_debug_uses_in_loop): Same.
4250 (analyze_iv_to_split_insn): Same.
4251 * lra-eliminations.c (lra_debug_elim_table): Same.
4252 (setup_can_eliminate): Same.
4253 (form_sum): Same.
4254 (lra_get_elimination_hard_regno): Same.
4255 (lra_eliminate_regs_1): Same.
4256 (eliminate_regs_in_insn): Same.
4257 (update_reg_eliminate): Same.
4258 (init_elimination): Same.
4259 (lra_eliminate): Same.
4260 * lra-int.h: Same.
4261 * lra-lives.c (initiate_live_solver): Same.
4262 * lra-remat.c (create_remat_bb_data): Same.
4263 * lra-spills.c (lra_spill): Same.
4264 * lra.c (lra_set_insn_recog_data): Same.
4265 (lra_set_used_insn_alternative_by_uid): Same.
4266 (init_reg_info): Same.
4267 (expand_reg_info): Same.
4268 * lto-cgraph.c (output_symtab): Same.
4269 (read_identifier): Same.
4270 (get_alias_symbol): Same.
4271 (input_node): Same.
4272 (input_varpool_node): Same.
4273 (input_ref): Same.
4274 (input_edge): Same.
4275 (input_cgraph_1): Same.
4276 (input_refs): Same.
4277 (input_symtab): Same.
4278 (input_offload_tables): Same.
4279 (output_cgraph_opt_summary): Same.
4280 (input_edge_opt_summary): Same.
4281 (input_cgraph_opt_section): Same.
4282 * lto-section-in.c (lto_free_raw_section_data): Same.
4283 (lto_create_simple_input_block): Same.
4284 (lto_free_function_in_decl_state_for_node): Same.
4285 * lto-streamer-in.c (lto_tag_check_set): Same.
4286 (lto_location_cache::revert_location_cache): Same.
4287 (lto_location_cache::input_location): Same.
4288 (lto_input_location): Same.
4289 (stream_input_location_now): Same.
4290 (lto_input_tree_ref): Same.
4291 (lto_input_eh_catch_list): Same.
4292 (input_eh_region): Same.
4293 (lto_init_eh): Same.
4294 (make_new_block): Same.
4295 (input_cfg): Same.
4296 (fixup_call_stmt_edges): Same.
4297 (input_struct_function_base): Same.
4298 (input_function): Same.
4299 (lto_read_body_or_constructor): Same.
4300 (lto_read_tree_1): Same.
4301 (lto_read_tree): Same.
4302 (lto_input_scc): Same.
4303 (lto_input_tree_1): Same.
4304 (lto_input_toplevel_asms): Same.
4305 (lto_input_mode_table): Same.
4306 (lto_reader_init): Same.
4307 (lto_data_in_create): Same.
4308 * lto-streamer-out.c (output_cfg): Same.
4309 * lto-streamer.h: Same.
4310 * modulo-sched.c (duplicate_insns_of_cycles): Same.
4311 (generate_prolog_epilog): Same.
4312 (mark_loop_unsched): Same.
4313 (dump_insn_location): Same.
4314 (loop_canon_p): Same.
4315 (sms_schedule): Same.
4316 * omp-expand.c (expand_omp_for_ordered_loops): Same.
4317 (expand_omp_for_generic): Same.
4318 (expand_omp_for_static_nochunk): Same.
4319 (expand_omp_for_static_chunk): Same.
4320 (expand_omp_simd): Same.
4321 (expand_omp_taskloop_for_inner): Same.
4322 (expand_oacc_for): Same.
4323 (expand_omp_atomic_pipeline): Same.
4324 (mark_loops_in_oacc_kernels_region): Same.
4325 * omp-offload.c (oacc_xform_loop): Same.
4326 * omp-simd-clone.c (simd_clone_adjust): Same.
4327 * optabs-query.c (get_traditional_extraction_insn): Same.
4328 * optabs.c (expand_vector_broadcast): Same.
4329 (expand_binop_directly): Same.
4330 (expand_twoval_unop): Same.
4331 (expand_twoval_binop): Same.
4332 (expand_unop_direct): Same.
4333 (emit_indirect_jump): Same.
4334 (emit_conditional_move): Same.
4335 (emit_conditional_neg_or_complement): Same.
4336 (emit_conditional_add): Same.
4337 (vector_compare_rtx): Same.
4338 (expand_vec_perm_1): Same.
4339 (expand_vec_perm_const): Same.
4340 (expand_vec_cond_expr): Same.
4341 (expand_vec_series_expr): Same.
4342 (maybe_emit_atomic_exchange): Same.
4343 (maybe_emit_sync_lock_test_and_set): Same.
4344 (expand_atomic_compare_and_swap): Same.
4345 (expand_atomic_load): Same.
4346 (expand_atomic_store): Same.
4347 (maybe_emit_op): Same.
4348 (valid_multiword_target_p): Same.
4349 (create_integer_operand): Same.
4350 (maybe_legitimize_operand_same_code): Same.
4351 (maybe_legitimize_operand): Same.
4352 (create_convert_operand_from_type): Same.
4353 (can_reuse_operands_p): Same.
4354 (maybe_legitimize_operands): Same.
4355 (maybe_gen_insn): Same.
4356 (maybe_expand_insn): Same.
4357 (maybe_expand_jump_insn): Same.
4358 (expand_insn): Same.
4359 * optabs.h (create_expand_operand): Same.
4360 (create_fixed_operand): Same.
4361 (create_output_operand): Same.
4362 (create_input_operand): Same.
4363 (create_convert_operand_to): Same.
4364 (create_convert_operand_from): Same.
4365 * optinfo.h: Same.
4366 * poly-int.h: Same.
4367 * predict.c (optimize_insn_for_speed_p): Same.
4368 (optimize_loop_for_size_p): Same.
4369 (optimize_loop_for_speed_p): Same.
4370 (optimize_loop_nest_for_speed_p): Same.
4371 (get_base_value): Same.
4372 (predicted_by_loop_heuristics_p): Same.
4373 (predict_extra_loop_exits): Same.
4374 (predict_loops): Same.
4375 (predict_paths_for_bb): Same.
4376 (predict_paths_leading_to): Same.
4377 (propagate_freq): Same.
4378 (pass_profile::execute): Same.
4379 * predict.h: Same.
4380 * profile-count.c (profile_count::differs_from_p): Same.
4381 (profile_probability::differs_lot_from_p): Same.
4382 * profile-count.h: Same.
4383 * profile.c (branch_prob): Same.
4384 * regrename.c (free_chain_data): Same.
4385 (mark_conflict): Same.
4386 (create_new_chain): Same.
4387 (merge_overlapping_regs): Same.
4388 (init_rename_info): Same.
4389 (merge_chains): Same.
4390 (regrename_analyze): Same.
4391 (regrename_do_replace): Same.
4392 (scan_rtx_reg): Same.
4393 (record_out_operands): Same.
4394 (build_def_use): Same.
4395 * regrename.h: Same.
4396 * reload.h: Same.
4397 * reload1.c (init_reload): Same.
4398 (maybe_fix_stack_asms): Same.
4399 (copy_reloads): Same.
4400 (count_pseudo): Same.
4401 (count_spilled_pseudo): Same.
4402 (find_reg): Same.
4403 (find_reload_regs): Same.
4404 (select_reload_regs): Same.
4405 (spill_hard_reg): Same.
4406 (fixup_eh_region_note): Same.
4407 (set_reload_reg): Same.
4408 (allocate_reload_reg): Same.
4409 (compute_reload_subreg_offset): Same.
4410 (reload_adjust_reg_for_icode): Same.
4411 (emit_input_reload_insns): Same.
4412 (emit_output_reload_insns): Same.
4413 (do_input_reload): Same.
4414 (inherit_piecemeal_p): Same.
4415 * rtl.h: Same.
4416 * sanopt.c (maybe_get_dominating_check): Same.
4417 (maybe_optimize_ubsan_ptr_ifn): Same.
4418 (can_remove_asan_check): Same.
4419 (maybe_optimize_asan_check_ifn): Same.
4420 (sanopt_optimize_walker): Same.
4421 * sched-deps.c (add_dependence_list): Same.
4422 (chain_to_prev_insn): Same.
4423 (add_insn_mem_dependence): Same.
4424 (create_insn_reg_set): Same.
4425 (maybe_extend_reg_info_p): Same.
4426 (sched_analyze_reg): Same.
4427 (sched_analyze_1): Same.
4428 (get_implicit_reg_pending_clobbers): Same.
4429 (chain_to_prev_insn_p): Same.
4430 (deps_analyze_insn): Same.
4431 (deps_start_bb): Same.
4432 (sched_free_deps): Same.
4433 (init_deps): Same.
4434 (init_deps_reg_last): Same.
4435 (free_deps): Same.
4436 * sched-ebb.c: Same.
4437 * sched-int.h: Same.
4438 * sched-rgn.c (add_branch_dependences): Same.
4439 (concat_insn_mem_list): Same.
4440 (deps_join): Same.
4441 (sched_rgn_compute_dependencies): Same.
4442 * sel-sched-ir.c (reset_target_context): Same.
4443 (copy_deps_context): Same.
4444 (init_id_from_df): Same.
4445 (has_dependence_p): Same.
4446 (change_loops_latches): Same.
4447 (bb_top_order_comparator): Same.
4448 (make_region_from_loop_preheader): Same.
4449 (sel_init_pipelining): Same.
4450 (get_loop_nest_for_rgn): Same.
4451 (make_regions_from_the_rest): Same.
4452 (sel_is_loop_preheader_p): Same.
4453 * sel-sched-ir.h (inner_loop_header_p): Same.
4454 (get_all_loop_exits): Same.
4455 * selftest.h: Same.
4456 * sese.c (sese_build_liveouts): Same.
4457 (sese_insert_phis_for_liveouts): Same.
4458 * sese.h (defined_in_sese_p): Same.
4459 * sreal.c (sreal::stream_out): Same.
4460 * sreal.h: Same.
4461 * streamer-hooks.h: Same.
4462 * target-globals.c (save_target_globals): Same.
4463 * target-globals.h: Same.
4464 * target.def: Same.
4465 * target.h: Same.
4466 * targhooks.c (default_has_ifunc_p): Same.
4467 (default_empty_mask_is_expensive): Same.
4468 (default_init_cost): Same.
4469 * targhooks.h: Same.
4470 * toplev.c: Same.
4471 * tree-affine.c (aff_combination_mult): Same.
4472 (aff_combination_expand): Same.
4473 (aff_combination_constant_multiple_p): Same.
4474 * tree-affine.h: Same.
4475 * tree-cfg.c (build_gimple_cfg): Same.
4476 (replace_loop_annotate_in_block): Same.
4477 (replace_uses_by): Same.
4478 (remove_bb): Same.
4479 (dump_cfg_stats): Same.
4480 (gimple_duplicate_sese_region): Same.
4481 (gimple_duplicate_sese_tail): Same.
4482 (move_block_to_fn): Same.
4483 (replace_block_vars_by_duplicates): Same.
4484 (move_sese_region_to_fn): Same.
4485 (print_loops_bb): Same.
4486 (print_loop): Same.
4487 (print_loops): Same.
4488 (debug): Same.
4489 (debug_loops): Same.
4490 * tree-cfg.h: Same.
4491 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
4492 (chrec_fold_multiply_poly_poly): Same.
4493 (chrec_evaluate): Same.
4494 (chrec_component_in_loop_num): Same.
4495 (reset_evolution_in_loop): Same.
4496 (is_multivariate_chrec): Same.
4497 (chrec_contains_symbols): Same.
4498 (nb_vars_in_chrec): Same.
4499 (chrec_convert_1): Same.
4500 (chrec_convert_aggressive): Same.
4501 * tree-chrec.h: Same.
4502 * tree-core.h: Same.
4503 * tree-data-ref.c (dump_data_dependence_relation): Same.
4504 (canonicalize_base_object_address): Same.
4505 (data_ref_compare_tree): Same.
4506 (prune_runtime_alias_test_list): Same.
4507 (get_segment_min_max): Same.
4508 (create_intersect_range_checks): Same.
4509 (conflict_fn_no_dependence): Same.
4510 (object_address_invariant_in_loop_p): Same.
4511 (analyze_ziv_subscript): Same.
4512 (analyze_siv_subscript_cst_affine): Same.
4513 (analyze_miv_subscript): Same.
4514 (analyze_overlapping_iterations): Same.
4515 (build_classic_dist_vector_1): Same.
4516 (add_other_self_distances): Same.
4517 (same_access_functions): Same.
4518 (build_classic_dir_vector): Same.
4519 (subscript_dependence_tester_1): Same.
4520 (subscript_dependence_tester): Same.
4521 (access_functions_are_affine_or_constant_p): Same.
4522 (get_references_in_stmt): Same.
4523 (loop_nest_has_data_refs): Same.
4524 (graphite_find_data_references_in_stmt): Same.
4525 (find_data_references_in_bb): Same.
4526 (get_base_for_alignment): Same.
4527 (find_loop_nest_1): Same.
4528 (find_loop_nest): Same.
4529 * tree-data-ref.h (dr_alignment): Same.
4530 (ddr_dependence_level): Same.
4531 * tree-if-conv.c (fold_build_cond_expr): Same.
4532 (add_to_predicate_list): Same.
4533 (add_to_dst_predicate_list): Same.
4534 (phi_convertible_by_degenerating_args): Same.
4535 (idx_within_array_bound): Same.
4536 (all_preds_critical_p): Same.
4537 (pred_blocks_visited_p): Same.
4538 (predicate_bbs): Same.
4539 (build_region): Same.
4540 (if_convertible_loop_p_1): Same.
4541 (is_cond_scalar_reduction): Same.
4542 (predicate_scalar_phi): Same.
4543 (remove_conditions_and_labels): Same.
4544 (combine_blocks): Same.
4545 (version_loop_for_if_conversion): Same.
4546 (versionable_outer_loop_p): Same.
4547 (ifcvt_local_dce): Same.
4548 (tree_if_conversion): Same.
4549 (pass_if_conversion::gate): Same.
4550 * tree-if-conv.h: Same.
4551 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
4552 * tree-loop-distribution.c (bb_top_order_cmp): Same.
4553 (free_rdg): Same.
4554 (stmt_has_scalar_dependences_outside_loop): Same.
4555 (copy_loop_before): Same.
4556 (create_bb_after_loop): Same.
4557 (const_with_all_bytes_same): Same.
4558 (generate_memset_builtin): Same.
4559 (generate_memcpy_builtin): Same.
4560 (destroy_loop): Same.
4561 (build_rdg_partition_for_vertex): Same.
4562 (compute_access_range): Same.
4563 (data_ref_segment_size): Same.
4564 (latch_dominated_by_data_ref): Same.
4565 (compute_alias_check_pairs): Same.
4566 (fuse_memset_builtins): Same.
4567 (finalize_partitions): Same.
4568 (find_seed_stmts_for_distribution): Same.
4569 (prepare_perfect_loop_nest): Same.
4570 * tree-parloops.c (lambda_transform_legal_p): Same.
4571 (loop_parallel_p): Same.
4572 (reduc_stmt_res): Same.
4573 (add_field_for_name): Same.
4574 (create_call_for_reduction_1): Same.
4575 (replace_uses_in_bb_by): Same.
4576 (transform_to_exit_first_loop_alt): Same.
4577 (try_transform_to_exit_first_loop_alt): Same.
4578 (transform_to_exit_first_loop): Same.
4579 (num_phis): Same.
4580 (gen_parallel_loop): Same.
4581 (gather_scalar_reductions): Same.
4582 (get_omp_data_i_param): Same.
4583 (try_create_reduction_list): Same.
4584 (oacc_entry_exit_single_gang): Same.
4585 (parallelize_loops): Same.
4586 * tree-pass.h: Same.
4587 * tree-predcom.c (determine_offset): Same.
4588 (last_always_executed_block): Same.
4589 (split_data_refs_to_components): Same.
4590 (suitable_component_p): Same.
4591 (valid_initializer_p): Same.
4592 (find_looparound_phi): Same.
4593 (insert_looparound_copy): Same.
4594 (add_looparound_copies): Same.
4595 (determine_roots_comp): Same.
4596 (predcom_tmp_var): Same.
4597 (initialize_root_vars): Same.
4598 (initialize_root_vars_store_elim_1): Same.
4599 (initialize_root_vars_store_elim_2): Same.
4600 (finalize_eliminated_stores): Same.
4601 (initialize_root_vars_lm): Same.
4602 (remove_stmt): Same.
4603 (determine_unroll_factor): Same.
4604 (execute_pred_commoning_cbck): Same.
4605 (base_names_in_chain_on): Same.
4606 (combine_chains): Same.
4607 (pcom_stmt_dominates_stmt_p): Same.
4608 (try_combine_chains): Same.
4609 (prepare_initializers_chain_store_elim): Same.
4610 (prepare_initializers_chain): Same.
4611 (prepare_initializers): Same.
4612 (prepare_finalizers_chain): Same.
4613 (prepare_finalizers): Same.
4614 (insert_init_seqs): Same.
4615 * tree-scalar-evolution.c (loop_phi_node_p): Same.
4616 (compute_overall_effect_of_inner_loop): Same.
4617 (add_to_evolution_1): Same.
4618 (add_to_evolution): Same.
4619 (follow_ssa_edge_binary): Same.
4620 (follow_ssa_edge_expr): Same.
4621 (backedge_phi_arg_p): Same.
4622 (follow_ssa_edge_in_condition_phi_branch): Same.
4623 (follow_ssa_edge_in_condition_phi): Same.
4624 (follow_ssa_edge_inner_loop_phi): Same.
4625 (follow_ssa_edge): Same.
4626 (analyze_evolution_in_loop): Same.
4627 (analyze_initial_condition): Same.
4628 (interpret_loop_phi): Same.
4629 (interpret_condition_phi): Same.
4630 (interpret_rhs_expr): Same.
4631 (interpret_expr): Same.
4632 (interpret_gimple_assign): Same.
4633 (analyze_scalar_evolution_1): Same.
4634 (analyze_scalar_evolution): Same.
4635 (analyze_scalar_evolution_for_address_of): Same.
4636 (get_instantiated_value_entry): Same.
4637 (loop_closed_phi_def): Same.
4638 (instantiate_scev_name): Same.
4639 (instantiate_scev_poly): Same.
4640 (instantiate_scev_binary): Same.
4641 (instantiate_scev_convert): Same.
4642 (instantiate_scev_not): Same.
4643 (instantiate_scev_r): Same.
4644 (instantiate_scev): Same.
4645 (resolve_mixers): Same.
4646 (initialize_scalar_evolutions_analyzer): Same.
4647 (scev_reset_htab): Same.
4648 (scev_reset): Same.
4649 (derive_simple_iv_with_niters): Same.
4650 (simple_iv_with_niters): Same.
4651 (expression_expensive_p): Same.
4652 (final_value_replacement_loop): Same.
4653 * tree-scalar-evolution.h (block_before_loop): Same.
4654 * tree-ssa-address.h: Same.
4655 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
4656 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
4657 (record_edge_info): Same.
4658 * tree-ssa-live.c (var_map_base_fini): Same.
4659 (remove_unused_locals): Same.
4660 * tree-ssa-live.h: Same.
4661 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
4662 (pass_ch_vect::execute): Same.
4663 (pass_ch::process_loop_p): Same.
4664 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
4665 (movement_possibility): Same.
4666 (outermost_invariant_loop): Same.
4667 (stmt_cost): Same.
4668 (determine_max_movement): Same.
4669 (invariantness_dom_walker::before_dom_children): Same.
4670 (move_computations): Same.
4671 (may_move_till): Same.
4672 (force_move_till_op): Same.
4673 (force_move_till): Same.
4674 (memref_free): Same.
4675 (record_mem_ref_loc): Same.
4676 (set_ref_stored_in_loop): Same.
4677 (mark_ref_stored): Same.
4678 (sort_bbs_in_loop_postorder_cmp): Same.
4679 (sort_locs_in_loop_postorder_cmp): Same.
4680 (analyze_memory_references): Same.
4681 (mem_refs_may_alias_p): Same.
4682 (find_ref_loc_in_loop_cmp): Same.
4683 (rewrite_mem_ref_loc::operator): Same.
4684 (first_mem_ref_loc_1::operator): Same.
4685 (sm_set_flag_if_changed::operator): Same.
4686 (execute_sm_if_changed_flag_set): Same.
4687 (execute_sm): Same.
4688 (hoist_memory_references): Same.
4689 (ref_always_accessed::operator): Same.
4690 (refs_independent_p): Same.
4691 (record_dep_loop): Same.
4692 (ref_indep_loop_p_1): Same.
4693 (ref_indep_loop_p): Same.
4694 (can_sm_ref_p): Same.
4695 (find_refs_for_sm): Same.
4696 (loop_suitable_for_sm): Same.
4697 (store_motion_loop): Same.
4698 (store_motion): Same.
4699 (fill_always_executed_in): Same.
4700 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
4701 (estimated_unrolled_size): Same.
4702 (loop_edge_to_cancel): Same.
4703 (remove_exits_and_undefined_stmts): Same.
4704 (remove_redundant_iv_tests): Same.
4705 (unloop_loops): Same.
4706 (estimated_peeled_sequence_size): Same.
4707 (try_peel_loop): Same.
4708 (canonicalize_loop_induction_variables): Same.
4709 (canonicalize_induction_variables): Same.
4710 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
4711 (name_info): Same.
4712 (stmt_after_inc_pos): Same.
4713 (contains_abnormal_ssa_name_p): Same.
4714 (niter_for_exit): Same.
4715 (find_bivs): Same.
4716 (mark_bivs): Same.
4717 (find_givs_in_bb): Same.
4718 (find_induction_variables): Same.
4719 (find_interesting_uses_cond): Same.
4720 (outermost_invariant_loop_for_expr): Same.
4721 (idx_find_step): Same.
4722 (add_candidate_1): Same.
4723 (add_iv_candidate_derived_from_uses): Same.
4724 (alloc_use_cost_map): Same.
4725 (prepare_decl_rtl): Same.
4726 (generic_predict_doloop_p): Same.
4727 (computation_cost): Same.
4728 (determine_common_wider_type): Same.
4729 (get_computation_aff_1): Same.
4730 (get_use_type): Same.
4731 (determine_group_iv_cost_address): Same.
4732 (iv_period): Same.
4733 (difference_cannot_overflow_p): Same.
4734 (may_eliminate_iv): Same.
4735 (determine_set_costs): Same.
4736 (cheaper_cost_pair): Same.
4737 (compare_cost_pair): Same.
4738 (iv_ca_cand_for_group): Same.
4739 (iv_ca_recount_cost): Same.
4740 (iv_ca_set_remove_invs): Same.
4741 (iv_ca_set_no_cp): Same.
4742 (iv_ca_set_add_invs): Same.
4743 (iv_ca_set_cp): Same.
4744 (iv_ca_add_group): Same.
4745 (iv_ca_cost): Same.
4746 (iv_ca_compare_deps): Same.
4747 (iv_ca_delta_reverse): Same.
4748 (iv_ca_delta_commit): Same.
4749 (iv_ca_cand_used_p): Same.
4750 (iv_ca_delta_free): Same.
4751 (iv_ca_new): Same.
4752 (iv_ca_free): Same.
4753 (iv_ca_dump): Same.
4754 (iv_ca_extend): Same.
4755 (iv_ca_narrow): Same.
4756 (iv_ca_prune): Same.
4757 (cheaper_cost_with_cand): Same.
4758 (iv_ca_replace): Same.
4759 (try_add_cand_for): Same.
4760 (get_initial_solution): Same.
4761 (try_improve_iv_set): Same.
4762 (find_optimal_iv_set_1): Same.
4763 (create_new_iv): Same.
4764 (rewrite_use_compare): Same.
4765 (remove_unused_ivs): Same.
4766 (determine_scaling_factor): Same.
4767 * tree-ssa-loop-ivopts.h: Same.
4768 * tree-ssa-loop-manip.c (create_iv): Same.
4769 (compute_live_loop_exits): Same.
4770 (add_exit_phi): Same.
4771 (add_exit_phis): Same.
4772 (find_uses_to_rename_use): Same.
4773 (find_uses_to_rename_def): Same.
4774 (find_uses_to_rename_in_loop): Same.
4775 (rewrite_into_loop_closed_ssa): Same.
4776 (check_loop_closed_ssa_bb): Same.
4777 (split_loop_exit_edge): Same.
4778 (ip_end_pos): Same.
4779 (ip_normal_pos): Same.
4780 (copy_phi_node_args): Same.
4781 (gimple_duplicate_loop_to_header_edge): Same.
4782 (can_unroll_loop_p): Same.
4783 (determine_exit_conditions): Same.
4784 (scale_dominated_blocks_in_loop): Same.
4785 (niter_for_unrolled_loop): Same.
4786 (tree_transform_and_unroll_loop): Same.
4787 (rewrite_all_phi_nodes_with_iv): Same.
4788 * tree-ssa-loop-manip.h: Same.
4789 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
4790 (number_of_iterations_ne): Same.
4791 (assert_no_overflow_lt): Same.
4792 (assert_loop_rolls_lt): Same.
4793 (number_of_iterations_lt): Same.
4794 (adjust_cond_for_loop_until_wrap): Same.
4795 (tree_simplify_using_condition): Same.
4796 (simplify_using_initial_conditions): Same.
4797 (simplify_using_outer_evolutions): Same.
4798 (loop_only_exit_p): Same.
4799 (ssa_defined_by_minus_one_stmt_p): Same.
4800 (number_of_iterations_popcount): Same.
4801 (number_of_iterations_exit): Same.
4802 (find_loop_niter): Same.
4803 (finite_loop_p): Same.
4804 (chain_of_csts_start): Same.
4805 (get_val_for): Same.
4806 (loop_niter_by_eval): Same.
4807 (derive_constant_upper_bound_ops): Same.
4808 (do_warn_aggressive_loop_optimizations): Same.
4809 (record_estimate): Same.
4810 (get_cst_init_from_scev): Same.
4811 (record_nonwrapping_iv): Same.
4812 (idx_infer_loop_bounds): Same.
4813 (infer_loop_bounds_from_ref): Same.
4814 (infer_loop_bounds_from_array): Same.
4815 (infer_loop_bounds_from_pointer_arith): Same.
4816 (infer_loop_bounds_from_signedness): Same.
4817 (bound_index): Same.
4818 (discover_iteration_bound_by_body_walk): Same.
4819 (maybe_lower_iteration_bound): Same.
4820 (estimate_numbers_of_iterations): Same.
4821 (estimated_loop_iterations): Same.
4822 (estimated_loop_iterations_int): Same.
4823 (max_loop_iterations): Same.
4824 (max_loop_iterations_int): Same.
4825 (likely_max_loop_iterations): Same.
4826 (likely_max_loop_iterations_int): Same.
4827 (estimated_stmt_executions_int): Same.
4828 (max_stmt_executions): Same.
4829 (likely_max_stmt_executions): Same.
4830 (estimated_stmt_executions): Same.
4831 (stmt_dominates_stmt_p): Same.
4832 (nowrap_type_p): Same.
4833 (loop_exits_before_overflow): Same.
4834 (scev_var_range_cant_overflow): Same.
4835 (scev_probably_wraps_p): Same.
4836 (free_numbers_of_iterations_estimates): Same.
4837 * tree-ssa-loop-niter.h: Same.
4838 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
4839 (idx_analyze_ref): Same.
4840 (analyze_ref): Same.
4841 (gather_memory_references_ref): Same.
4842 (mark_nontemporal_store): Same.
4843 (emit_mfence_after_loop): Same.
4844 (may_use_storent_in_loop_p): Same.
4845 (mark_nontemporal_stores): Same.
4846 (should_unroll_loop_p): Same.
4847 (volume_of_dist_vector): Same.
4848 (add_subscript_strides): Same.
4849 (self_reuse_distance): Same.
4850 (insn_to_prefetch_ratio_too_small_p): Same.
4851 * tree-ssa-loop-split.c (split_at_bb_p): Same.
4852 (patch_loop_exit): Same.
4853 (find_or_create_guard_phi): Same.
4854 (easy_exit_values): Same.
4855 (connect_loop_phis): Same.
4856 (connect_loops): Same.
4857 (compute_new_first_bound): Same.
4858 (split_loop): Same.
4859 (tree_ssa_split_loops): Same.
4860 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
4861 (is_maybe_undefined): Same.
4862 (tree_may_unswitch_on): Same.
4863 (simplify_using_entry_checks): Same.
4864 (tree_unswitch_single_loop): Same.
4865 (tree_unswitch_loop): Same.
4866 (tree_unswitch_outer_loop): Same.
4867 (empty_bb_without_guard_p): Same.
4868 (used_outside_loop_p): Same.
4869 (get_vop_from_header): Same.
4870 (hoist_guard): Same.
4871 * tree-ssa-loop.c (gate_oacc_kernels): Same.
4872 (get_lsm_tmp_name): Same.
4873 * tree-ssa-loop.h: Same.
4874 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
4875 (build_and_add_sum): Same.
4876 (no_side_effect_bb): Same.
4877 (get_ops): Same.
4878 (linearize_expr): Same.
4879 (should_break_up_subtract): Same.
4880 (linearize_expr_tree): Same.
4881 * tree-ssa-scopedtables.c: Same.
4882 * tree-ssa-scopedtables.h: Same.
4883 * tree-ssa-structalias.c (condense_visit): Same.
4884 (label_visit): Same.
4885 (dump_pred_graph): Same.
4886 (perform_var_substitution): Same.
4887 (move_complex_constraints): Same.
4888 (remove_preds_and_fake_succs): Same.
4889 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
4890 (determine_bb_domination_status): Same.
4891 (duplicate_thread_path): Same.
4892 (thread_through_all_blocks): Same.
4893 * tree-ssa-threadupdate.h: Same.
4894 * tree-streamer-in.c (streamer_read_string_cst): Same.
4895 (input_identifier): Same.
4896 (unpack_ts_type_common_value_fields): Same.
4897 (unpack_ts_block_value_fields): Same.
4898 (unpack_ts_translation_unit_decl_value_fields): Same.
4899 (unpack_ts_omp_clause_value_fields): Same.
4900 (streamer_read_tree_bitfields): Same.
4901 (streamer_alloc_tree): Same.
4902 (lto_input_ts_common_tree_pointers): Same.
4903 (lto_input_ts_vector_tree_pointers): Same.
4904 (lto_input_ts_poly_tree_pointers): Same.
4905 (lto_input_ts_complex_tree_pointers): Same.
4906 (lto_input_ts_decl_minimal_tree_pointers): Same.
4907 (lto_input_ts_decl_common_tree_pointers): Same.
4908 (lto_input_ts_decl_non_common_tree_pointers): Same.
4909 (lto_input_ts_decl_with_vis_tree_pointers): Same.
4910 (lto_input_ts_field_decl_tree_pointers): Same.
4911 (lto_input_ts_function_decl_tree_pointers): Same.
4912 (lto_input_ts_type_common_tree_pointers): Same.
4913 (lto_input_ts_type_non_common_tree_pointers): Same.
4914 (lto_input_ts_list_tree_pointers): Same.
4915 (lto_input_ts_vec_tree_pointers): Same.
4916 (lto_input_ts_exp_tree_pointers): Same.
4917 (lto_input_ts_block_tree_pointers): Same.
4918 (lto_input_ts_binfo_tree_pointers): Same.
4919 (lto_input_ts_constructor_tree_pointers): Same.
4920 (lto_input_ts_omp_clause_tree_pointers): Same.
4921 (streamer_read_tree_body): Same.
4922 * tree-streamer.h: Same.
4923 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
4924 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
4925 (vect_analyze_possibly_independent_ddr): Same.
4926 (vect_analyze_data_ref_dependence): Same.
4927 (vect_compute_data_ref_alignment): Same.
4928 (vect_enhance_data_refs_alignment): Same.
4929 (vect_analyze_data_ref_access): Same.
4930 (vect_check_gather_scatter): Same.
4931 (vect_find_stmt_data_reference): Same.
4932 (vect_create_addr_base_for_vector_ref): Same.
4933 (vect_setup_realignment): Same.
4934 (vect_supportable_dr_alignment): Same.
4935 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
4936 (adjust_phi_and_debug_stmts): Same.
4937 (vect_set_loop_mask): Same.
4938 (add_preheader_seq): Same.
4939 (vect_maybe_permute_loop_masks): Same.
4940 (vect_set_loop_masks_directly): Same.
4941 (vect_set_loop_condition_masked): Same.
4942 (vect_set_loop_condition_unmasked): Same.
4943 (slpeel_duplicate_current_defs_from_edges): Same.
4944 (slpeel_add_loop_guard): Same.
4945 (slpeel_can_duplicate_loop_p): Same.
4946 (create_lcssa_for_virtual_phi): Same.
4947 (iv_phi_p): Same.
4948 (vect_update_ivs_after_vectorizer): Same.
4949 (vect_gen_vector_loop_niters_mult_vf): Same.
4950 (slpeel_update_phi_nodes_for_loops): Same.
4951 (slpeel_update_phi_nodes_for_guard1): Same.
4952 (find_guard_arg): Same.
4953 (slpeel_update_phi_nodes_for_guard2): Same.
4954 (slpeel_update_phi_nodes_for_lcssa): Same.
4955 (vect_do_peeling): Same.
4956 (vect_create_cond_for_alias_checks): Same.
4957 (vect_loop_versioning): Same.
4958 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
4959 (vect_inner_phi_in_double_reduction_p): Same.
4960 (vect_analyze_scalar_cycles_1): Same.
4961 (vect_fixup_scalar_cycles_with_patterns): Same.
4962 (vect_get_loop_niters): Same.
4963 (bb_in_loop_p): Same.
4964 (vect_get_max_nscalars_per_iter): Same.
4965 (vect_verify_full_masking): Same.
4966 (vect_compute_single_scalar_iteration_cost): Same.
4967 (vect_analyze_loop_form_1): Same.
4968 (vect_analyze_loop_form): Same.
4969 (vect_active_double_reduction_p): Same.
4970 (vect_analyze_loop_operations): Same.
4971 (neutral_op_for_slp_reduction): Same.
4972 (vect_is_simple_reduction): Same.
4973 (vect_model_reduction_cost): Same.
4974 (get_initial_def_for_reduction): Same.
4975 (get_initial_defs_for_reduction): Same.
4976 (vect_create_epilog_for_reduction): Same.
4977 (vectorize_fold_left_reduction): Same.
4978 (vectorizable_reduction): Same.
4979 (vectorizable_induction): Same.
4980 (vectorizable_live_operation): Same.
4981 (loop_niters_no_overflow): Same.
4982 (vect_get_loop_mask): Same.
4983 (vect_transform_loop_stmt): Same.
4984 (vect_transform_loop): Same.
4985 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
4986 (vect_determine_precisions): Same.
4987 (vect_pattern_recog_1): Same.
4988 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4989 * tree-vect-stmts.c (stmt_vectype): Same.
4990 (process_use): Same.
4991 (vect_init_vector_1): Same.
4992 (vect_truncate_gather_scatter_offset): Same.
4993 (get_group_load_store_type): Same.
4994 (vect_build_gather_load_calls): Same.
4995 (vect_get_strided_load_store_ops): Same.
4996 (vectorizable_simd_clone_call): Same.
4997 (vectorizable_store): Same.
4998 (permute_vec_elements): Same.
4999 (vectorizable_load): Same.
5000 (vect_transform_stmt): Same.
5001 (supportable_widening_operation): Same.
5002 * tree-vectorizer.c (vec_info::replace_stmt): Same.
5003 (vec_info::free_stmt_vec_info): Same.
5004 (vect_free_loop_info_assumptions): Same.
5005 (vect_loop_vectorized_call): Same.
5006 (set_uid_loop_bbs): Same.
5007 (vectorize_loops): Same.
5008 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
5009 * tree.c (add_tree_to_fld_list): Same.
5010 (fld_type_variant_equal_p): Same.
5011 (fld_decl_context): Same.
5012 (fld_incomplete_type_of): Same.
5013 (free_lang_data_in_binfo): Same.
5014 (need_assembler_name_p): Same.
5015 (find_decls_types_r): Same.
5016 (get_eh_types_for_runtime): Same.
5017 (find_decls_types_in_eh_region): Same.
5018 (find_decls_types_in_node): Same.
5019 (assign_assembler_name_if_needed): Same.
5020 * value-prof.c (stream_out_histogram_value): Same.
5021 * value-prof.h: Same.
5022 * var-tracking.c (use_narrower_mode): Same.
5023 (prepare_call_arguments): Same.
5024 (vt_expand_loc_callback): Same.
5025 (resolve_expansions_pending_recursion): Same.
5026 (vt_expand_loc): Same.
5027 * varasm.c (const_hash_1): Same.
5028 (compare_constant): Same.
5029 (tree_output_constant_def): Same.
5030 (simplify_subtraction): Same.
5031 (get_pool_constant): Same.
5032 (output_constant_pool_2): Same.
5033 (output_constant_pool_1): Same.
5034 (mark_constants_in_pattern): Same.
5035 (mark_constant_pool): Same.
5036 (get_section_anchor): Same.
5037 * vr-values.c (compare_range_with_value): Same.
5038 (vr_values::extract_range_from_phi_node): Same.
5039 * vr-values.h: Same.
5040 * web.c (unionfind_union): Same.
5041 * wide-int.h: Same.
5042
5043 2019-07-09 Martin Sebor <msebor@redhat.com>
5044
5045 PR c++/61339
5046 * align.h: Change class-key from class to struct and vice versa
5047 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
5048 * alloc-pool.h: Same.
5049 * asan.c (shadow_mem_size): Same.
5050 * auto-profile.c: Same.
5051 * basic-block.h: Same.
5052 * bitmap.h: Same.
5053 * cfgexpand.c (set_rtl): Same.
5054 (expand_one_stack_var_at): Same.
5055 * cfghooks.h: Same.
5056 * cfgloop.h: Same.
5057 * cgraph.h: Same.
5058 * config/i386/i386.h: Same.
5059 * df-problems.c (df_print_bb_index): Same.
5060 * df-scan.c: Same.
5061 * df.h (df_single_use): Same.
5062 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
5063 (layout::annotation_line_showed_range_p): Same.
5064 (get_printed_columns): Same.
5065 (correction::ensure_terminated): Same.
5066 (line_corrections::~line_corrections): Same.
5067 * dojump.h: Same.
5068 * dse.c: Same.
5069 * dump-context.h: Same.
5070 * dumpfile.h: Same.
5071 * dwarf2out.c: Same.
5072 * edit-context.c: Same.
5073 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
5074 * flags.h: Same.
5075 * function.c (assign_stack_local): Same.
5076 * function.h: Same.
5077 * gcc.c: Same.
5078 * gcov.c (block_info::block_info): Same.
5079 * genattrtab.c: Same.
5080 * genextract.c: Same.
5081 * genmatch.c (comparison_code_p): Same.
5082 (id_base::id_base): Same.
5083 (decision_tree::print): Same.
5084 * genoutput.c: Same.
5085 * genpreds.c (write_one_predicate_function): Same.
5086 * genrecog.c (validate_pattern): Same.
5087 (find_operand_positions): Same.
5088 (optimize_subroutine_group): Same.
5089 (merge_pattern_transition::merge_pattern_transition): Same.
5090 (merge_pattern_info::merge_pattern_info): Same.
5091 (merge_state_result::merge_state_result): Same.
5092 (merge_into_state): Same.
5093 * gensupport.c: Same.
5094 * gensupport.h: Same.
5095 * ggc-common.c (init_ggc_heuristics): Same.
5096 * ggc-tests.c (test_union): Same.
5097 * gimple-loop-interchange.cc (dump_induction): Same.
5098 * gimple-loop-versioning.cc: Same.
5099 * gimple-match.h (gimple_match_cond::any_else): Same.
5100 * gimple-ssa-backprop.c: Same.
5101 * gimple-ssa-sprintf.c: Same.
5102 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
5103 Same.
5104 (store_immediate_info::store_immediate_info): Same.
5105 (merged_store_group::apply_stores): Same.
5106 (get_location_for_stmts): Same.
5107 * gimple-ssa-strength-reduction.c: Same.
5108 * gimple-ssa-warn-alloca.c: Same.
5109 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
5110 * godump.c (go_type_decl): Same.
5111 * hash-map-tests.c (test_map_of_strings_to_int): Same.
5112 * hash-map.h: Same.
5113 * hash-set-tests.c (test_set_of_strings): Same.
5114 * hsa-brig.c: Same.
5115 * hsa-common.h: Same.
5116 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
5117 * input.c (assert_loceq): Same.
5118 * input.h: Same.
5119 * ipa-cp.c: Same.
5120 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
5121 * ipa-fnsummary.h: Same.
5122 * ipa-inline.h: Same.
5123 * ipa-prop.h: Same.
5124 * ipa-split.c (visit_bb): Same.
5125 * ira-int.h (minmax_set_iter_next): Same.
5126 * loop-invariant.c: Same.
5127 * loop-iv.c: Same.
5128 * lra-eliminations.c: Same.
5129 * lra-int.h: Same.
5130 * lra-lives.c (mark_regno_dead): Same.
5131 * lra-remat.c: Same.
5132 * lra-spills.c: Same.
5133 * lto-streamer.h: Same.
5134 * mem-stats.h: Same.
5135 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
5136 * omp-low.c (omp_clause_aligned_alignment): Same.
5137 * optabs-query.h (get_vcond_eq_icode): Same.
5138 * optabs.h: Same.
5139 * opts.c (wrap_help): Same.
5140 * poly-int.h: Same.
5141 * predict.c (predict_paths_leading_to_edge): Same.
5142 * pretty-print.h: Same.
5143 * profile-count.h: Same.
5144 * read-md.h: Same.
5145 * read-rtl-function.c: Same.
5146 * ree.c: Same.
5147 * reginfo.c: Same.
5148 * regrename.c: Same.
5149 * regrename.h: Same.
5150 * reload.h: Same.
5151 * rtl-iter.h: Same.
5152 * rtl.h (costs_add_n_insns): Same.
5153 * sanopt.c: Same.
5154 * sched-int.h: Same.
5155 * sel-sched-ir.h: Same.
5156 * selftest.h: Same.
5157 * sese.h (vec_find): Same.
5158 * stmt.c: Same.
5159 * target-globals.h: Same.
5160 * tree-affine.c (aff_combination_find_elt): Same.
5161 * tree-affine.h: Same.
5162 * tree-data-ref.h: Same.
5163 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
5164 * tree-predcom.c: Same.
5165 * tree-scalar-evolution.c (find_var_scev_info): Same.
5166 * tree-ssa-alias.h: Same.
5167 * tree-ssa-ccp.c: Same.
5168 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
5169 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
5170 (rewrite_mem_refs): Same.
5171 (execute_sm_if_changed): Same.
5172 (hoist_memory_references): Same.
5173 * tree-ssa-loop-ivopts.c (operator<=): Same.
5174 * tree-ssa-loop.h: Same.
5175 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
5176 * tree-ssa-structalias.c: Same.
5177 * tree-switch-conversion.h (cluster::cluster): Same.
5178 (simple_cluster::simple_cluster): Same.
5179 * tree-vect-patterns.c (type_conversion_p): Same.
5180 * tree-vectorizer.c (dump_stmt_cost): Same.
5181 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
5182 * tree.c (protected_set_expr_location): Same.
5183 * tree.h (desired_pro_or_demotion_p): Same.
5184 (fndecl_built_in_p): Same.
5185 * unique-ptr-tests.cc: Same.
5186 * var-tracking.c (delete_variable_part): Same.
5187 * varasm.c (assemble_real): Same.
5188 (tree_output_constant_def): Same.
5189 * vec.c: Same.
5190 * wide-int-bitmask.h: Same.
5191 * wide-int.h (decompose): Same.
5192
5193 2019-07-09 Richard Biener <rguenther@suse.de>
5194
5195 PR tree-optimization/91114
5196 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
5197 find a vector type isn't fatal.
5198
5199 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5200
5201 * config/aarch64/aarch64-simd.md
5202 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
5203 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
5204 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
5205 (*aarch64_crypto_aese_fused,
5206 *aarch64_crypto_aesd_fused): Update to new definition.
5207 * config/aarch64/aarch64.c
5208 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
5209
5210 2019-07-09 Richard Biener <rguenther@suse.de>
5211
5212 * gimple-match.h (gimple_match_op::resimplify): New.
5213 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
5214 gimple_resimplify4, gimple_resimplify5): Remove.
5215 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
5216 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
5217 Make static.
5218 (gimple_match_op::resimplify): New.
5219 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
5220 according to availability. Use gimple_match_op::resimplify.
5221
5222 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
5223
5224 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
5225
5226 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5227
5228 * config/arm/crypto.md:
5229 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
5230 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
5231 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
5232 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
5233 * config/arm/arm.c
5234 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
5235 * config/arm/aarch-common-protos.h
5236 (aarch_crypto_can_dual_issue): Remove.
5237 * config/arm/aarch-common.c
5238 (aarch_crypto_can_dual_issue): Likewise.
5239 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
5240 * config/arm/cortex-a53.md: Likewise.
5241 * config/arm/cortex-a57.md: Likewise.
5242 * config/arm/iterators.md:
5243 (CRYPTO_BINARY): Redefine.
5244 (CRYPTO_UNARY): Removed.
5245 (CRYPTO_AES, CRYPTO_AESMC): New.
5246
5247 2019-07-09 Richard Biener <rguenther@suse.de>
5248
5249 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
5250 (vn_reference_lookup_3): If the main ref has no access path recorded
5251 but orig_ref has use it to do access-path based disambiguation.
5252 (vn_reference_lookup_pieces): Adjust.
5253 (vn_reference_lookup): Pass down original ref if we valueized.
5254
5255 2019-07-09 Martin Liska <mliska@suse.cz>
5256
5257 * doc/extend.texi: Document influence on loop
5258 optimizers.
5259
5260 2019-07-09 Martin Liska <mliska@suse.cz>
5261
5262 * lto-compress.c (lto_normalized_zstd_level): Do not use
5263 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
5264 of libzstd. One can use 0 as a default compression level.
5265
5266 2019-07-09 Martin Liska <mliska@suse.cz>
5267
5268 * doc/invoke.texi: Add link from -fprofile-dir option.
5269 Use better wording for 'gcno filename'.
5270
5271 2019-07-08 Martin Sebor <msebor@redhat.com>
5272
5273 PR middle-end/71924
5274 PR middle-end/90549
5275 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
5276 comment.
5277 (args_loc_t): New type.
5278 (args_loc_t, locmap_t): same.
5279 (diag_returned_locals): New function.
5280 (is_addr_local): Same.
5281 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
5282 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
5283 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
5284
5285 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5286
5287 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
5288 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
5289 and casts in offset when different, both through gimple stmts
5290 and through trees. Rewritten using loops to minimize code duplication
5291 for each operand.
5292
5293 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
5294
5295 * emit-rtl.c (set_insn_locations): New function moved from...
5296 * function.c (set_insn_locations): ...here.
5297 * ira-emit.c (emit_moves): Propagate location of the first instruction
5298 to the inserted move instructions.
5299 * reg-stack.c (compensate_edge): Set the location if the sequence is
5300 inserted on the edge.
5301 * rtl.h (set_insn_locations): Declare.
5302
5303 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5304
5305 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
5306 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
5307 .machine string.
5308
5309 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5310
5311 PR rtl-optimization/88233
5312 * common.opt (fsplit-wide-types-early): New option.
5313 * common/config/rs6000/rs6000-common.c
5314 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
5315 OPT_LEVELS_ALL.
5316 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
5317 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
5318 flag_split_wide_types_early.
5319 (pass_data_lower_subreg3): New.
5320 (pass_lower_subreg3): New.
5321 (make_pass_lower_subreg3): New.
5322 * passes.def (pass_lower_subreg2): Move after the loop passes.
5323 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
5324 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
5325 the pass pipeline; its previous place is taken by ...
5326 (make_pass_lower_subreg3): ... this.
5327
5328 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5329
5330 * config/s390/s390.c (s390_shift_truncation_mask): Define.
5331 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5332
5333 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5334
5335 * config/s390/constraints.md: Add new jsc constraint.
5336 * config/s390/predicates.md: New predicates.
5337 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
5338 * config/s390/s390.c (s390_valid_shift_count): New function.
5339 (print_shift_count_operand): Use s390_valid_shift_count.
5340 (print_operand): Likewise.
5341 * config/s390/s390.md: Use new predicate.
5342 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
5343 * config/s390/vector.md: Use new predicate.
5344
5345 2019-07-08 Andrew Waterman <andrew@sifive.com>
5346 Jim Wilson <jimw@sifive.com>
5347
5348 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
5349 bitsize instead of BITS_PER_WORD.
5350
5351 2019-07-08 Martin Liska <mliska@suse.cz>
5352
5353 * collect2.c (defined): Revert to before r254460.
5354 (scan_prog_file): Revert to before r254460.
5355
5356 2019-07-08 Richard Biener <rguenther@suse.de>
5357
5358 PR tree-optimization/83518
5359 * tree-ssa-sccvn.c: Include splay-tree.h.
5360 (struct pd_range, struct pd_data): New.
5361 (struct vn_walk_cb_data): Add data to track partial definitions.
5362 (vn_walk_cb_data::~vn_walk_cb_data): New.
5363 (vn_walk_cb_data::push_partial_def): New.
5364 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
5365 (vn_reference_lookup_2): When partial defs are registered give up.
5366 (vn_reference_lookup_3): Track partial defs for memset and
5367 constructor zeroing and for defs from constants.
5368
5369 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5370
5371 * doc/install.texi (bootstrap-Og): Document.
5372
5373 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5374
5375 * config/riscv/pic.md (*local_pic_load_s<mode>)
5376 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
5377 referenced by <mode>, giving...
5378 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
5379 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
5380 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
5381 use <X:MODE> for the mode attribute.
5382
5383 2019-07-07 Jeff Law <law@redhat.com>
5384
5385 PR tree-optimization/91090
5386 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
5387 in handling of ranges to simplify switch statements.
5388
5389 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5390
5391 * config/darwin.c (darwin_override_options): Make a final check on PIC
5392 options.
5393
5394 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5395
5396 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
5397 on for kernel code.
5398
5399 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5400
5401 PR target/91068
5402 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
5403 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
5404 instead of matching them to "l" output operands.
5405
5406 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5407
5408 * config/mips/mips.c (mips_split_move): Zero-initialize addr
5409 and check whether addr.reg is nonnull before using it.
5410
5411 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5412
5413 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
5414 ctx->for_simd_scan_phase simd copy the outer var to the privatized
5415 variable(s). For conditional lastprivate look through outer
5416 GIMPLE_OMP_SCAN context.
5417 (lower_omp_1): For conditional lastprivate look through outer
5418 GIMPLE_OMP_SCAN context.
5419
5420 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
5421 member to combined_into_simd_safelen1.
5422 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
5423 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
5424 clauses if ctx->combined_into_simd_safelen1 put statements after the
5425 predicate conditionalized block rather than into it.
5426
5427 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5428
5429 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
5430 operand 1.
5431 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
5432 Make the choice of <mode> explicit, giving...
5433 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
5434
5435 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5436
5437 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
5438 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
5439 of .md attributes.
5440 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
5441 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
5442 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
5443 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
5444 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
5445 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
5446 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
5447 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
5448 (*avx512f_scatterdi<mode>): Likewise.
5449 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
5450
5451 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5452
5453 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
5454 specify the mode iterator referenced by <mode>, giving...
5455 (*push1_h8300hs_<QHI:mode>): ...this.
5456
5457 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5458
5459 * config/gcn/gcn-valu.md
5460 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
5461 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
5462 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
5463 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
5464 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
5465 but using the _exec comparison patterns.
5466 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
5467 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
5468 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
5469 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
5470 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
5471 but using the _exec comparison patterns.
5472
5473 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5474
5475 * config/arm/sync.md
5476 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
5477 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
5478 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
5479 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
5480 <SIDI:cas_cmp_str>.
5481
5482 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5483
5484 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
5485 (maybe_lookup_ctx): Add forward declaration.
5486 (omp_find_scan): Likewise. Walk into body of simd if composited
5487 with worksharing loop.
5488 (scan_omp_simd_scan): New function.
5489 (scan_omp_1_stmt): Call it.
5490 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
5491 ctx->for_simd_scan_phase.
5492 (lower_rec_input_clauses): Do much less work for inscan reductions
5493 in ctx->for_simd_scan_phase is_simd regions.
5494 (lower_omp_scan): Set is_simd also on simd constructs composited
5495 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
5496 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
5497 emit their body after in simd constructs composited with worksharing
5498 loop.
5499 (lower_omp_for_scan): Handle worksharing loop composited with simd.
5500
5501 * omp-low.c (omp_find_scan): Make static.
5502 (lower_omp_for_scan): Fix order of merge arguments in input phase of
5503 the second loop, var2 represents the first partial sum and so needs
5504 to go before rprivb[ivar].
5505
5506 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
5507
5508 * config/rs6000/rs6000-logue.c: Remove unused code.
5509
5510 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5511
5512 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
5513
5514 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
5515
5516 PR target/90712
5517 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
5518 check with a frame laid out check.
5519
5520 2019-07-05 Richard Biener <rguenther@suse.de>
5521
5522 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
5523 when comparing against a store with possibly the same value.
5524
5525 2019-07-05 Richard Biener <rguenther@suse.de>
5526
5527 PR tree-optimization/91091
5528 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
5529 (walk_non_aliased_vuses): Likewise.
5530 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
5531 (get_continuation_for_phi): New tbaa_p parameter and pass
5532 it down.
5533 (walk_non_aliased_vuses): Likewise.
5534 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
5535 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5536 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5537 Likewise.
5538 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
5539 (adjust_offsets_for_equal_base_address): New function.
5540 (vn_reference_lookup_3): Use it to catch more base equivalences.
5541 Handle and pass down tbaa_p flag.
5542 (vn_reference_lookup_pieces): Adjust.
5543 (vn_reference_lookup): Remove alias-set altering, instead pass
5544 down false as tbaa_p.
5545
5546 2019-07-05 Richard Biener <rguenther@suse.de>
5547
5548 PR tree-optimization/91091
5549 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
5550 accesses can happen with -fno-strict-aliasing.
5551
5552 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
5553
5554 * tree-ssa-alias.c (alias_stats): Add
5555 nonoverlapping_component_refs_since_match_p_must_overlap.
5556 (dump_alias_stats): Print it.
5557 (nonoverlapping_component_refs_since_match_p): Add early exit.
5558 (nonoverlapping_component_refs_p): Do not account early exit.
5559
5560 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5561
5562 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
5563 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
5564 (emit_eh_dispatch): Delete.
5565 (lower_catch): Emit the eh_dispatch manually and set the location of
5566 the first catch statement onto it.
5567 (lower_eh_filter): Emit the eh_dispatch manually and set location.
5568 (lower_eh_dispatch): Propagate location.
5569 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
5570 (eliminate_build): Likewise.
5571
5572 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5573
5574 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
5575 phi nodes if possible.
5576 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
5577 location info on the newly created statement.
5578 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
5579 newly created increment if needed.
5580
5581 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5582
5583 PR middle-end/78884
5584 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
5585 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
5586 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
5587 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
5588 ctx->add_safelen1 is set.
5589
5590 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
5591 GOMP_loop_start at the start of second worksharing loop in a scan.
5592 For nowait, don't emit GOMP_loop_end_nowait at the end of first
5593 worksharing loop in a scan even if there are conditional lastprivates,
5594 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
5595
5596 2019-07-04 Jan Hubicka <jh@suse.cz>
5597
5598 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5599 Fix check for match in the ref walk.
5600
5601 2019-07-04 Martin Liska <mliska@suse.cz>
5602
5603 * tree-ssa-loop-niter.c
5604 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
5605 (estimate_numbers_of_iterations):
5606 Support __builtin_expect_with_probability for analysis
5607 of # of loop iterations.
5608
5609 2019-07-04 Alexandre Oliva <oliva@adacore.com>
5610
5611 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
5612 * except.c: Likewise.
5613 * expr.c (expand_expr_real_1): Reject it.
5614 * gimplify.c (gimplify_expr): Gimplify it, within
5615 TRY_FINALLY_EXPR.
5616 * tree-dump.c (dequeue_and_dump): Dump it.
5617 * tree-pretty-print.c (dump_generic_node): Likewise.
5618 * tree.c (block_may_fallthru): Handle it.
5619 * tree.def (EH_ELSE_EXPR): Introduce it.
5620 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
5621 with GIMPLE_EH_ELSE as try/finally/else.
5622
5623 2019-07-04 Richard Biener <rguenther@suse.de>
5624
5625 PR ipa/91062
5626 * tree-pass.h (execute_all_ipa_transforms): Add a flag
5627 parameter whether to disable GC collection.
5628 * passes.c (execute_one_ipa_transform_pass): Likewise, and
5629 honor it.
5630 (execute_all_ipa_transforms): Likewise and pass it down.
5631 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
5632 collection from applying IPA transforms.
5633 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
5634 from applying IPA transforms.
5635
5636 2019-07-04 Richard Biener <rguenther@suse.de>
5637
5638 PR tree-optimization/90911
5639 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
5640 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
5641 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5642 scalar_loop_scaling.
5643 (vect_transform_loop): Scale scalar loop profile if needed.
5644 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
5645 the loop copy from if-conversion adjust edge probabilities
5646 and scale the vectorized loop body profile, queue the scalar
5647 profile for updating after peeling.
5648
5649 2019-07-04 Jan Hubicka <jh@suse.cz>
5650
5651 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
5652 parameters; return early for must-alias.
5653 (indirect_ref_may_alias_decl_p): Likewise; when establishing
5654 outer types match, try nonoverlapping_component_refs
5655 if must-alias is not obvious.
5656 (indirect_refs_may_alias_p): Likewise.
5657 (refs_may_alias_p_2): Likewise.
5658
5659 2019-07-04 Richard Biener <rguenther@suse.de>
5660
5661 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
5662 argument.
5663 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
5664 globals into...
5665 (struct vn_walk_cb_data): New callback data struct.
5666 (vn_reference_lookup_2): Adjust.
5667 (vn_reference_lookup_3): Likewise.
5668 (vn_reference_lookup_pieces): Likewise.
5669 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
5670 (visit_reference_op_load): Adjust.
5671
5672 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5673
5674 PR tree-optimization/91063
5675 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
5676 stmt from stmts sequence before calling vect_init_vector_1.
5677 Formatting fix.
5678
5679 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5680
5681 PR target/88833
5682 * fwprop.c (reg_single_def_p): New function.
5683 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
5684 (forward_propagate_into): New parameter reg_prop_only
5685 with default value false.
5686 Propagate def's src into loop only if SET_SRC and SET_DEST
5687 of def_set have single definitions.
5688 Likewise if reg_prop_only is set to true.
5689 (fwprop): New param fwprop_addr_p.
5690 Integrate fwprop_addr into fwprop.
5691 (fwprop_addr): Remove.
5692 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
5693 to true.
5694 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
5695 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
5696 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
5697
5698 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5699
5700 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
5701 in worksharing loop scans.
5702
5703 PR tree-optimization/91074
5704 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
5705 temporary.
5706
5707 PR rtl-optimization/90756
5708 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
5709 for VECTOR_TYPE_P.
5710
5711 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
5712
5713 * config/aarch64/aarch64.md: Remove redundant constraints from
5714 define_expand but keep some patterns untouched if they are
5715 specially selected by TARGET_SECONDARY_RELOAD hook.
5716 * config/aarch64/aarch64-sve.md: Likewise.
5717 * config/aarch64/atomics.md: Remove redundant constraints from
5718 define_expand.
5719 * config/aarch64/aarch64-simd.md: Likewise.
5720
5721 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5722
5723 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
5724 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
5725 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
5726 clauses.
5727 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
5728 DARWIN_NOPIE_SPEC.
5729
5730 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5731
5732 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
5733 (STARTFILE_SPEC): Split crt3 into a separate spec.
5734 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
5735 (DARWIN_CRT2_SPEC): New.
5736 (DARWIN_CRT3_SPEC): New.
5737 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
5738 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
5739 (DARWIN_CRT3_SPEC): New.
5740
5741 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
5742
5743 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
5744 Change the RTL attribute "length" from "4" to "*" to allow the
5745 length attribute to be adjusted automatically for prefixed load,
5746 store, and add immediate instructions.
5747 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
5748 Likewise.
5749 (extendsi<mode>2, EXTSI iterator): Likewise.
5750 (movsi_internal1): Likewise.
5751 (movsi_from_sf): Likewise.
5752 (movdi_from_sf_zero_ext): Likewise.
5753 (mov<mode>_internal): Likewise.
5754 (movcc_internal1, QHI iterator): Likewise.
5755 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
5756 (movsf_from_si): Likewise.
5757 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
5758 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
5759 (mov<mode>, FMOVE128 iterator): Likewise.
5760 (movdi_internal64): Likewise.
5761 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
5762 Likewise.
5763 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
5764 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
5765 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
5766 (vsx_splat_v4sf): Likewise.
5767
5768 2019-07-03 Mark Wielaard <mark@klomp.org>
5769
5770 PR debug/90981
5771 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
5772 DW_AT_addr_base if there is actually a .debug_addr section with
5773 addresses.
5774 (output_addr_table): Add DWARF5 table header generation here after
5775 checking there are actually any addresses from...
5776 (dwarf2out_finish): ...here.
5777
5778 2019-07-03 Richard Biener <rguenther@suse.de>
5779
5780 PR middle-end/91069
5781 * match.pd (vec_perm -> bit_insert): Fix element read from
5782 first vector.
5783
5784 2019-07-03 Martin Liska <mliska@suse.cz>
5785
5786 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
5787 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
5788 condition.
5789 * generic-match-head.c: Include dbgcnt.h.
5790 * gimple-match-head.c: Likewise.
5791
5792 2019-07-03 Martin Liska <mliska@suse.cz>
5793
5794 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
5795 (GCOV_COUNTER_V_TOPN): New.
5796 (GCOV_COUNTER_V_INDIR): Use _topn.
5797 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
5798 (GCOV_TOPN_VALUES): New.
5799 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
5800 (GCOV_TOPN_VALUES_COUNTERS): New.
5801 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
5802 * tree-profile.c:
5803 (gimple_init_gcov_profiler): Rename variables from one_value
5804 to topn_values.
5805 (gimple_gen_one_value_profiler): Remove.
5806 (gimple_gen_topn_values_profiler): New function.
5807 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
5808 names instead of SINGLE_VALUE.
5809 (stream_out_histogram_value): Likewise.
5810 (stream_in_histogram_value): Likewise.
5811 (get_most_common_single_value): Likewise.
5812 (gimple_divmod_fixed_value_transform): Likewise.
5813 (gimple_stringops_transform): Likewise.
5814 (gimple_divmod_values_to_profile): Likewise.
5815 (gimple_stringops_values_to_profile): Likewise.
5816 (gimple_find_values_to_profile): Likewise.
5817 * value-prof.h (enum hist_type): Rename to TOPN.
5818 (gimple_gen_one_value_profiler): Remove.
5819 (gimple_gen_topn_values_profiler): New.
5820
5821 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
5822
5823 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
5824 if it has the DW_AT_data_member_location attribute.
5825
5826 2019-07-03 Richard Biener <rguenther@suse.de>
5827
5828 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
5829 dumping.
5830
5831 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
5832
5833 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
5834 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
5835 (tlsdesc_small_sve_<mode>): Likewise.
5836
5837 2019-07-03 Martin Liska <mliska@suse.cz>
5838
5839 * Makefile.in: Define ZSTD_LIB.
5840 * common.opt: Adjust compression level
5841 to support also zstd levels.
5842 * config.in: Regenerate.
5843 * configure: Likewise.
5844 * configure.ac: Add --with-zstd and --with-zstd-include options
5845 and detect ZSTD.
5846 * doc/install.texi: Mention zstd dependency.
5847 * gcc.c: Print supported LTO compression algorithms.
5848 * lto-compress.c (lto_normalized_zstd_level): Likewise.
5849 (lto_compression_zstd): Likewise.
5850 (lto_uncompression_zstd): Likewise.
5851 (lto_end_compression): Dispatch in between zlib and zstd.
5852 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
5853 (lto_uncompression_zlib): Make it static.
5854 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
5855 * lto-section-in.c (lto_get_section_data): Pass info
5856 about used compression.
5857 * lto-streamer-out.c: By default use zstd when possible.
5858 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
5859 (TV_IPA_LTO_COMPRESS): Likewise for compression.
5860
5861 2019-07-03 Martin Liska <mliska@suse.cz>
5862
5863 * lto-section-in.c (lto_get_section_data): Add "lto" section.
5864 * lto-section-out.c (lto_destroy_simple_output_block): Never
5865 compress LTO_section_lto section.
5866 * lto-streamer-out.c (produce_asm): Do not set major_version
5867 and minor_version.
5868 (lto_output_toplevel_asms): Likewise.
5869 (produce_lto_section): New function.
5870 (lto_output): Call produce_lto_section.
5871 (lto_write_mode_table): Do not set major_version and
5872 minor_version.
5873 (produce_asm_for_decls): Likewise.
5874 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
5875 type.
5876 (struct lto_header): Remove.
5877 (struct lto_section): New struct.
5878 (struct lto_simple_header): Do not inherit from lto_header.
5879 (struct lto_file_decl_data): Add lto_section_header field.
5880
5881 2019-07-03 Martin Liska <mliska@suse.cz>
5882
5883 * lra-eliminations.c (eliminate_regs_in_insn): Remove
5884 dead assignemts.
5885 * reg-stack.c (check_asm_stack_operands): Likewise.
5886 * tree-ssa-structalias.c (create_function_info_for): Likewise.
5887 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5888 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
5889 force_expand_binop.
5890
5891 2019-07-03 Martin Liska <mliska@suse.cz>
5892
5893 PR tree-optimization/90892
5894 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
5895 in string constants.
5896
5897 2019-07-03 Martin Liska <mliska@suse.cz>
5898
5899 PR middle-end/90899
5900 * multiple_target.c (create_dispatcher_calls): Add to comdat
5901 group only if set for ifunc.
5902
5903 2019-07-03 Martin Liska <mliska@suse.cz>
5904
5905 PR target/88056
5906 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5907 Define local_object_name in outer scope in order to handle
5908 use-after-scope issue.
5909
5910 2019-07-03 Martin Liska <mliska@suse.cz>
5911
5912 * common.opt: Add fprofile-note.
5913 * coverage.c (coverage_init): Append the option
5914 to bbg_file_name.
5915 * doc/invoke.texi: Document -fprofile-note.
5916
5917 2019-07-03 Jakub Jelinek <jakub@redhat.com>
5918
5919 PR tree-optimization/91033
5920 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
5921 vect_analyze_data_refs): Add bool * arguments.
5922 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
5923 if failure is due to scatter/gather, set *fatal to false if non-NULL.
5924 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5925 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
5926 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
5927 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
5928 vect_analyze_data_refs caller.
5929
5930 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
5931 clause.
5932 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
5933 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
5934 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
5935 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5936 OMP_CLAUSE__SCANTEMP_ entry.
5937 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
5938 * tree-pretty-print.c (dump_omp_clause): Likewise.
5939 * tree-nested.c (convert_nonlocal_omp_clauses,
5940 convert_local_omp_clauses): Likewise.
5941 * omp-general.h (struct omp_for_data): Add have_scantemp and
5942 have_nonctrl_scantemp members.
5943 * omp-general.c (omp_extract_for_data): Initialize them.
5944 * omp-low.c (struct omp_context): Add scan_exclusive member.
5945 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
5946 result again with GF_OMP_FOR_KIND_MASK. Initialize also
5947 ctx->scan_exclusive.
5948 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
5949 of !ctx->scan_inclusive.
5950 (lower_rec_input_clauses): Simplify gimplification of dtors using
5951 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
5952 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
5953 loops. Don't add barrier for reduction_omp_orig_ref if
5954 ctx->scan_??xclusive.
5955 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
5956 (lower_omp_scan): Use ctx->scan_exclusive instead
5957 of !ctx->scan_inclusive. Handle worksharing loops with inscan
5958 reductions. Use new_vard != new_var instead of repeated
5959 omp_is_reference calls.
5960 (omp_find_scan, lower_omp_for_scan): New functions.
5961 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
5962 inscan reductions.
5963 * omp-expand.c (expand_omp_scantemp_alloc): New function.
5964 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
5965 and fd->have_scantemp.
5966
5967 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
5968 on worksharing loop propagate it as shared clause to containing
5969 combined parallel.
5970
5971 * omp-expand.c (expand_omp_for_static_nochunk,
5972 expand_omp_for_static_chunk): For nowait worksharing loop with
5973 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
5974 at the end.
5975
5976 2019-07-02 qing zhao <qing.zhao@oracle.com>
5977
5978 PR preprocessor/90581
5979 * doc/cppopts.texi: Add document for -fmax-include-depth.
5980 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
5981
5982 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
5983
5984 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
5985 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
5986 (mmx_packssdw): Ditto.
5987 (mmx_punpckhbw): Ditto.
5988 (mmx_punpcklbw): Ditto.
5989 (mmx_punpckhwd): Ditto.
5990 (mmx_punpcklwd): Ditto.
5991 (mmx_punpckhdq): Ditto.
5992 (mmx_punpckldq): Ditto.
5993 (*vec_dupv4hi): Ditto.
5994 (*vec_dupv2si): Ditto.
5995 (mmx_pmovmskb): Ditto.
5996 * config/i386/sse.md (sse_cvtpi2ps): Use
5997 TARGET_SSE2 && SSE_REG_P in split condition.
5998 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
5999 TARGET_SSSE3 && SSE_REGNO_P in split condition.
6000 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
6001 (ssse3_pshufbv8qi3): Ditto.
6002 (ssse3_palignrdi): Ditto.
6003
6004 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
6005
6006 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
6007 with inlined save and restore.
6008
6009 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
6010
6011 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
6012 to be inserted on single successor edge of the entry block. Then call
6013 commit_edge_insertions instead of inserting the instructions manually.
6014 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
6015 RTL expansion and rebuild jump labels chain.
6016
6017 2019-07-02 Richard Biener <rguenther@suse.de>
6018
6019 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
6020 TI_CHREC_KNOWN.
6021 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6022 Define here.
6023 * tree.c (build_common_tree_nodes): Initialize them.
6024 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6025 Make declarations comments.
6026 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
6027 chrec_known): Remove definitions.
6028 (initialize_scalar_evolutions_analyzer): Remove.
6029 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
6030 * tree-streamer.c (preload_common_nodes): Do not preload
6031 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
6032
6033 2019-07-02 Jan Hubicka <jh@suse.cz>
6034
6035 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
6036 sanity check.
6037
6038 2019-07-02 Jan Hubicka <jh@suse.cz>
6039
6040 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
6041 to ..
6042 (nonoverlapping_component_refs_since_match_p): ... this one;
6043 handle also non-decl bases; return -1 if search gave up.
6044 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
6045 nonoverlapping_component_refs_of_decl_p_no_alias to
6046 nonoverlapping_component_refs_since_match_p_may_alias,
6047 nonoverlapping_component_refs_since_match_p_no_alias.
6048 (dump_alias_stats): Update dumping.
6049 (aliasing_matching_component_refs_p): Break out from ...;
6050 dispatch to nonoverlapping_component_refs_for_decl_p
6051 and nonoverlapping_component_refs_since_match_p.
6052 (aliasing_component_refs_p): ... here; call
6053 nonoverlapping_component_refs_p in scenarios where we can not
6054 precisely determine base match.
6055 (decl_refs_may_alias_p): Use
6056 nonoverlapping_component_refs_since_match_p.
6057 (indirect_ref_may_alias_decl_p): Do not call
6058 nonoverlapping_component_refs_p.
6059 (indirect_refs_may_alias_p): Likewise.
6060
6061 2019-07-02 Jan Hubicka <jh@suse.cz>
6062
6063 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
6064 to clobber of return value.
6065
6066 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6067
6068 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
6069 for is_neon_type instructions that have not already been categorized.
6070
6071 2019-07-02 Richard Biener <rguenther@suse.de>
6072
6073 PR tree-optimization/58483
6074 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
6075 for MEM_REF base hashing.
6076 (equal_mem_array_ref_p): Likewise for base comparison.
6077
6078 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6079
6080 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
6081 parameterized name.
6082 (signbit<mode>2): Use that name. Simplify.
6083
6084 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
6085
6086 PR middle-end/66726
6087 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
6088 Tune heuristic from PR71016 to allow MIN / MAX.
6089
6090 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6091
6092 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
6093 parameterized name.
6094 (abs<mode>2): Use that name. Simplify.
6095
6096 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6097
6098 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
6099 parameterized name.
6100 (neg<mode>2): Use that name. Simplify.
6101
6102 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6103
6104 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
6105 name.
6106 (abs<mode>2): Use that name. Simplify.
6107
6108 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6109
6110 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
6111 name.
6112 (neg<mode>2): Use that name. Simplify.
6113
6114 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
6115
6116 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
6117 ("enabled" attribute): Handle sse_noavx isa attribute.
6118 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
6119 Use TARGET_SSE && SSE_REGNO_P in split condition.
6120 (*vec_dupv2sf): Ditto.
6121
6122 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6123
6124 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
6125 name.
6126 (floatsi<mode>2): Use that name. Simplify.
6127
6128 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6129
6130 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
6131 parameterized name.
6132 (extenddf<mode>2_vsx): Make this a parameterized name.
6133 (extenddf<mode>2): Use those names. Simplify.
6134
6135 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6136
6137 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
6138 name.
6139 (eh_return): Use that name. Simplify.
6140
6141 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6142
6143 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
6144 (doloop_end): Use that name. Simplify.
6145
6146 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6147
6148 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
6149 parameterized name.
6150 (indirect_jump): Use that name. Simplify.
6151
6152 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6153
6154 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
6155 parameterized name.
6156 (abs<mode>2): Use that name. Simplify.
6157
6158 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6159
6160 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
6161 parameterized name.
6162 (fix_trunc<mode>si2): Use that name. Simplify.
6163
6164 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6165
6166 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
6167 (allocate_stack): Use that name. Simplify.
6168
6169 2019-07-01 Martin Sebor <msebor@redhat.com>
6170
6171 PR middle-end/90923
6172 * hash-map.h (hash_map::put): On insertion invoke element ctor.
6173 (hash_map::get_or_insert): Same. Reformat comment.
6174 * hash-set.h (hash_set::add): On insertion invoke element ctor.
6175 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6176 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6177 * hash-table.h (hash_table::operator=): Prevent copy assignment.
6178 (hash_table::hash_table (const hash_table&)): Use copy ctor
6179 instead of assignment to copy elements.
6180
6181 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
6182 John David Anglin <danglin@gcc.gnu.org>
6183
6184 PR target/90963
6185 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
6186 using saved frame pointer.
6187
6188 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
6189
6190 PR middle-end/64242
6191 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
6192 Add frame clobber and schedule blockage.
6193
6194 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
6195
6196 * doc/invoke.texi (Link Options): Further editorial changes to
6197 -flinker-output docs.
6198
6199 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6200
6201 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
6202 Load both operands of a PLUS into registers separately.
6203
6204 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
6205
6206 * config/s390/vector.md: Fix shift count operand printing.
6207
6208 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6209
6210 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
6211
6212 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6213
6214 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
6215 Use recog_data to test for an output operand.
6216
6217 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6218
6219 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
6220 exclude any others that are disparaged or that are bound to need
6221 a reload or spill.
6222 (ira_get_dup_out_num): Expand comment.
6223
6224 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6225
6226 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
6227 constraint string for each operand/alternative combo. Only handle
6228 '%' at the start of constraint strings, and look for it outside
6229 the main loop.
6230
6231 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6232
6233 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
6234 alternative_mask instead of HARD_REG_SET to represent a
6235 bitmask of alternatives.
6236 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
6237 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
6238
6239 2019-07-01 Martin Liska <mliska@suse.cz>
6240
6241 * edit-context.c (test_applying_fixits_unreadable_file): Do not
6242 use () for a constructor call.
6243 (test_applying_fixits_line_out_of_range): Likewise.
6244 * ggc-page.c (alloc_page): Use (void *) for %p printf format
6245 argument.
6246 (free_page): Likewise.
6247
6248 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
6249
6250 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
6251 parameter names to match usage (no functional change).
6252 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
6253
6254 2019-07-01 Richard Biener <rguenther@suse.de>
6255
6256 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
6257 pass parameter.
6258 (pass_fre::execute): Honor it.
6259 * passes.def: Adjust pass_fre invocations to allow iterating,
6260 add non-iterating pass_fre before late threading/dom.
6261
6262 2019-07-01 Richard Biener <rguenther@suse.de>
6263
6264 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
6265 TARGET_MEM_REF handling to also handle address-taken ones.
6266
6267 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
6268
6269 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6270 hardware attributes): Document avx512vp2intersect.
6271
6272 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6273
6274 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
6275 (abs<mode>2): New expander.
6276 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
6277 Use CODE_FOR_ssse3_absv8qi2.
6278 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
6279 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
6280
6281 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6282
6283 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
6284 to sse, sse_noavx and avx. Update all uses.
6285
6286 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6287
6288 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
6289 (*mmx_<plusminus_insn><mode>3): Ditto.
6290 (*mmx_mulv4hi3"): Ditto.
6291 (*mmx_smulv4hi3_highpart): Ditto.
6292 (*mmx_umulv4hi3_highpart): Ditto.
6293 (*mmx_pmaddwd): Ditto.
6294 (*sse2_umulv1siv1di3): Ditto.
6295 (*mmx_<code>v4hi3): Ditto.
6296 (*mmx_<code>v8qi3): Ditto.
6297 (mmx_ashr<mode>3): Ditto.
6298 ("mmx_<shift_insn><mode>3): Ditto.
6299 (*mmx_eq<mode>3): Ditto.
6300 (mmx_gt<mode>3): Ditto.
6301 (mmx_andnot<mode>3): Ditto.
6302 (*mmx_<code><mode>3): Ditto.
6303 (*mmx_pinsrw): Ditto.
6304 (*mmx_pextrw): Ditto.
6305 (mmx_pshufw_1): Ditto.
6306 (*mmx_uavgv8qi3): Ditto.
6307 (*mmx_uavgv4hi3): Ditto.
6308 ("mmx_psadbw): Ditto.
6309 * config/i386/sse.md (sse_cvtps2pi): Ditto.
6310 (sse_cvttps2pi): Ditto.
6311 (ssse3_pmaddubsw): Ditto.
6312 (*ssse3_pmulhrswv4hi3): Ditto.
6313 (ssse3_psign<mode>3): Ditto.
6314
6315 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
6316
6317 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
6318 adjustment for bit-fields to all aggregate types.
6319
6320 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
6321
6322 * config/rs6000/predicates.md (pcrel_address): Use
6323 SYMBOL_REF_LOCAL_P to determine if a label is local.
6324 (pcrel_external_address): New predicate.
6325 (non_prefixed_mem_operand): Delete, predicate not used.
6326 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
6327 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
6328 addressing.
6329 (SYMBOL_REF_PCREL_P): Likewise.
6330
6331 PR target/91009
6332 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
6333 alternative.
6334 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
6335 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
6336 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
6337
6338 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6339
6340 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
6341 override on extra_headers.
6342
6343 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6344
6345 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
6346 * config/darwin-driver.c (darwin_default_min_version): Remove newline
6347 from warning.
6348 (darwin_driver_init): Likewise.
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>, vgf2p8mulb_<mode><mask_name>):
6354 Eliminate redundant alternative.
6355
6356 2019-06-28 Jan Beulich <jbeulich@suse.com>
6357
6358 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6359 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
6360 Use vector_operand.
6361
6362 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
6363
6364 * config/arc/arc.c (arc_rtx_costs): All short instructions are
6365 having a lower cost regardless of the speed option.
6366
6367 2019-06-28 Jan Beulich <jbeulich@suse.com>
6368
6369 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
6370 vector_operand plus, on both alternatives, "Bm" constraint.
6371
6372 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
6373
6374 * config/arm/arm.md: Remove redundant constraints from
6375 define_expand but leave reload_inm and reload_outm patterns
6376 untouched since they need special constraints to work.
6377 * config/arm/arm-fixed.md: Remove redundant constraints from
6378 define_expand.
6379 * config/arm/iwmmxt.md: Likewise.
6380 * config/arm/neon.md: Likewise.
6381 * config/arm/sync.md: Likewise.
6382 * config/arm/thumb1.md: Likewise.
6383 * config/arm/vec-common.md: Likewise.
6384
6385 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
6386
6387 * doc/install.texi: Document --disable-tm-clone-registry.
6388
6389 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6390
6391 PR c++/91024
6392 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
6393 statements.
6394
6395 PR tree-optimization/91010
6396 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
6397 return true. Otherwise, don't call operand_equal_p if offset1 or
6398 offset2 is NULL and just return false.
6399
6400 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6401
6402 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
6403 user-specified float mode choice for kernel mode code.
6404
6405 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6406
6407 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
6408 spec.
6409
6410 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6411
6412 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
6413 use longcall for 64b code.
6414
6415 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
6416
6417 * builtins.c (get_memory_rtx): Fix comment.
6418 * optabs.def (movmem_optab): Change to cpymem_optab.
6419 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
6420 (emit_block_move_hints): Change movmem to cpymem.
6421 * defaults.h: Change movmem to cpymem.
6422 * targhooks.c (get_move_ratio): Change movmem to cpymem.
6423 (default_use_by_pieces_infrastructure_p): Ditto.
6424 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
6425 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
6426 to cpymem.
6427 * config/aarch64/aarch64.h: Change movmem to cpymem.
6428 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
6429 * config/alpha/alpha.h: Change movmem to cpymem in comment.
6430 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
6431 movmem to cpymem.
6432 * config/arc/arc-protos.h: Change movmem to cpymem.
6433 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
6434 * config/arc/arc.h: Change movmem to cpymem in comment.
6435 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
6436 * config/arm/arm-protos.h: Change movmem to cpymem in names.
6437 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
6438 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
6439 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
6440 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
6441 * config/avr/avr-protos.h: Change movmem to cpymem.
6442 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
6443 avr_out_movmem): Change movmem to cpymem.
6444 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
6445 Change movmem to cpymem.
6446 * config/bfin/bfin-protos.h: Change movmem to cpymem.
6447 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
6448 Change movmem to cpymem.
6449 * config/bfin/bfin.h: Change movmem to cpymem in comment.
6450 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
6451 * config/c6x/c6x-protos.h: Change movmem to cpymem.
6452 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
6453 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
6454 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
6455 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
6456 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
6457 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
6458 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
6459 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
6460 expand_small_cpymem_or_setmem,
6461 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
6462 expand_set_or_cpymem_constant_prologue,
6463 ix86_expand_set_or_cpymem): Change movmem to cpymem.
6464 * config/i386/i386-protos.h: Change movmem to cpymem.
6465 * config/i386/i386.h: Change movmem to cpymem in comment.
6466 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
6467 (setmem<mode>): Change expansion function name.
6468 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
6469 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
6470 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
6471 * config/m32c/m32c-protos.h: Change movmem to cpymem.
6472 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
6473 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
6474 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
6475 to cpymem.
6476 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
6477 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
6478 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
6479 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
6480 Change movmem to cpymem.
6481 * config/mips/mips.h: Change movmem to cpymem.
6482 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
6483 * config/nds32/nds32-memory-manipulation.c
6484 (nds32_expand_movmemsi_loop_unknown_size,
6485 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
6486 nds32_expand_movmemsi_unroll,
6487 nds32_expand_movmemsi): Change movmem to cpymem.
6488 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
6489 * config/nds32/nds32-protos.h: Change movmem to cpymem.
6490 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
6491 (pa_adjust_insn_length): Change call to compute_movmem_length.
6492 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
6493 movmemdi, movmemdi_prereload,
6494 movmemdi_postreload): Change movmem to cpymem.
6495 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
6496 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
6497 * config/riscv/riscv.c: Change movmem to cpymem in comment.
6498 * config/riscv/riscv.h: Change movmem to cpymem.
6499 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
6500 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
6501 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
6502 movmem to cpymem.
6503 * config/s390/s390-protos.h: Change movmem to cpymem.
6504 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
6505 s390_expand_insv): Change movmem to cpymem.
6506 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
6507 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
6508 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
6509 * config/sparc/sparc.h: Change movmem to cpymem in comment.
6510 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
6511 for nonexistent function.
6512 * config/vax/vax.h: Change movmem to cpymem in comment.
6513 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
6514 * config/visium/visium.h: Change movmem to cpymem in comment.
6515 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
6516 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
6517 * doc/md.texi: Change movmem to cpymem and update description to match.
6518 * doc/rtl.texi: Change movmem to cpymem.
6519 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
6520 * doc/tm.texi: Regenerate.
6521
6522 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
6523
6524 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6525 -fvariable-expansion-in-unroller by default.
6526 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
6527 default for Power.
6528
6529 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
6530
6531 Revert
6532 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6533 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6534
6535 * config.gcc(rs6000-*-*): Define target_gtfiles.
6536
6537 2019-06-27 Jan Hubicka <jh@suse.cz>
6538
6539 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
6540 (add_type_duplicate): When odr hash is not allocated, to nothing.
6541 (odr_based_tbaa_p): New function.
6542 (set_type_canonical_for_odr_type): New function.
6543 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
6544 set_type_canonical_for_odr_type): New.
6545 * tree.c (gimple_canonical_types_compatible_p): ODR types with
6546 ODR based TBAA are not equivalent to non-ODR types.
6547
6548 2019-06-27 Martin Liska <mliska@suse.cz>
6549
6550 PR tree-optimization/90974
6551 PR rtl-optimization/90975
6552 PR rtl-optimization/90976
6553 PR target/91016
6554 PR tree-optimization/91017
6555 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
6556 unused tmp.
6557 * lra.c (lra_set_insn_recog_data): Remove a leftover from
6558 initial commit of IRA.
6559 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
6560 of op0 and op1.
6561 * tree-vect-loop.c (vect_create_epilog_for_reduction):
6562 Remove unused mode1.
6563 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
6564 to new_stmt_info.
6565
6566 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6567
6568 PR target/90991
6569 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
6570 instead of register_operand for operands[1], add m to its constraints
6571 if operands[2] uses "C" constraint. Ensure in condition that if
6572 operands[2] is not 0, then operands[1] is not a MEM. For last two
6573 alternatives, use unaligned loads instead of aligned if operands[1] is
6574 misaligned_operand.
6575
6576 2019-06-27 Martin Liska <mliska@suse.cz>
6577
6578 * asan.c (asan_emit_allocas_unpoison): Remove obviously
6579 dead assignments.
6580 * bt-load.c (move_btr_def): Likewise.
6581 * builtins.c (expand_builtin_apply_args_1): Likewise.
6582 (expand_builtin_apply): Likewise.
6583 * cfgexpand.c (expand_asm_stmt): Likewise.
6584 (construct_init_block): Likewise.
6585 * cfghooks.c (verify_flow_info): Likewise.
6586 * cfgloopmanip.c (remove_path): Likewise.
6587 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
6588 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
6589 * combine.c (simplify_if_then_else): Likewise.
6590 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6591 (choose_basereg): Likewise.
6592 (ix86_expand_prologue): Likewise.
6593 (ix86_preferred_output_reload_class): Likewise.
6594 * cselib.c (cselib_record_sets): Likewise.
6595 * df-scan.c (df_scan_alloc): Likewise.
6596 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
6597 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
6598 * emit-rtl.c (try_split): Likewise.
6599 * graphite-scop-detection.c (assign_parameter_index_in_region):
6600 Likewise.
6601 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
6602 * ira-color.c (setup_profitable_hard_regs): Likewise.
6603 * ira.c (rtx_moveable_p): Likewise.
6604 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6605 * read-rtl.c (read_subst_mapping): Likewise.
6606 * regrename.c (scan_rtx): Likewise.
6607 * reorg.c (fill_slots_from_thread): Likewise.
6608 * tree-inline.c (tree_function_versioning): Likewise.
6609 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
6610 * tree-ssa-sink.c (statement_sink_location): Likewise.
6611 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6612 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
6613 (vect_create_epilog_for_reduction): Likewise.
6614 * tree.c (build_nonstandard_integer_type): Likewise.
6615
6616 2019-06-27 Richard Biener <rguenther@suse.de>
6617
6618 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
6619
6620 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
6621
6622 PR tree-optimization/89772
6623 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
6624 out-of-bound accesses checking.
6625
6626 2019-06-27 Martin Liska <mliska@suse.cz>
6627
6628 PR tree-optimization/91014
6629 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
6630 when LHS is NULL_TREE.
6631
6632 2019-06-27 Martin Liska <mliska@suse.cz>
6633
6634 * symbol-summary.h (traverse): Pass
6635 argument a to the call of callback.
6636 (gt_ggc_mx): Mark arguments as unused.
6637 (gt_pch_nx): Likewise.
6638
6639 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
6640
6641 PR target/62147
6642 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
6643 finiteness.
6644
6645 2019-06-26 Jeff Law <law@redhat.com>
6646
6647 PR tree-optimization/90883
6648 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
6649 (delete_dead_or_redundant_assignment): Likewise.
6650
6651 PR tree-optimization/90883
6652 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
6653 * tree-ssa-dse.c: Update various comments to distinguish between
6654 dead and redundant stores.
6655 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
6656 (dse_optimize_redundant_stores): New function.
6657 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
6658 Distinguish between dead and redundant calls in dump output. All
6659 callers updated.
6660 (delete_dead_or_redundant_assignment): Similarly for assignments.
6661 (dse_optimize_stmt): Handle _CHK variants. For statements which
6662 store 0 into multiple memory locations, try to prove a subsequent
6663 store is redundant.
6664
6665 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
6666
6667 PR target/89021
6668 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
6669 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
6670
6671 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6672
6673 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
6674 (branch_islands): New extern.
6675 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
6676 * config/rs6000/rs6000.c: .. here.
6677
6678 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6679
6680 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
6681 (powerpc*-*-*) ... to here.
6682
6683 2019-06-26 Jeff Law <law@redhat.com>
6684
6685 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
6686 memcpy, memmove and memset builtins.
6687 (maybe_trim_memstar_call): Likewise.
6688
6689 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6690
6691 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
6692
6693 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6694
6695 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6696
6697 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6698
6699 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
6700 declaration.
6701 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
6702 "static".
6703 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
6704 declaration.
6705
6706 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6707
6708 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
6709
6710 2019-06-26 Richard Biener <rguenther@suse.de>
6711
6712 PR ipa/90982
6713 * tree-inline.c (remap_ssa_name): Copy SSA range info.
6714
6715 2019-06-26 Richard Biener <rguenther@suse.de>
6716
6717 * lto-streamer.h (lto_bitmap_alloc): Remove.
6718 (lto_bitmap_free): Likewise.
6719 * lto-streamer.c (lto_bitmap_alloc): Remove.
6720 (lto_bitmap_free): Likewise.
6721 (lto_obstack): Likewise.
6722 (lto_obstack_initialized): Likewise.
6723 * lto-streamer-out.c (lto_output): Use own obstack for local
6724 bitmap, free it consistently.
6725
6726 2019-06-26 Jakub Jelinek <jakub@redhat.com>
6727
6728 PR target/90991
6729 * config/i386/sse.md
6730 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
6731 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
6732 insns if operands[2] is misaligned_operand.
6733
6734 2019-06-26 Li Jia He <helijia@linux.ibm.com>
6735
6736 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
6737 TARGET_POWERPC64.
6738 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
6739 to GPR.
6740
6741 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6742
6743 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
6744
6745 2019-06-26 Martin Liska <mliska@suse.cz>
6746
6747 PR tree-optimization/90973
6748 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
6749 epilogue_cost_vec instead of prologue_cost_vec for
6750 a epilogue cost.
6751
6752 2019-06-26 Martin Liska <mliska@suse.cz>
6753
6754 * bb-reorder.c (connect_better_edge_p): Add missing else
6755 statement in the middle of if-else statements.
6756
6757 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
6758 H.J. Lu <hongjiu.lu@intel.com>
6759 Olga Makhotina <olga.makhotina@intel.com>
6760
6761 * common/config/i386/i386-common.c
6762 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
6763 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
6764 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
6765 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
6766 (ix86_handle_option): Handle -mavx512vp2intersect.
6767 * config/i386/avx512vp2intersectintrin.h: New.
6768 * config/i386/avx512vp2intersectvlintrin.h: New.
6769 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
6770 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6771 AVX512VP2INTERSECT.
6772 * config/i386/i386-builtin-types.def: Add new types.
6773 * config/i386/i386-builtin.def: Add new builtins.
6774 * config/i386/i386-builtins.c: (enum processor_features): Add
6775 F_AVX512VP2INTERSECT.
6776 (static const _isa_names_table isa_names_table): Ditto.
6777 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6778 __AVX512VP2INTERSECT__.
6779 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
6780 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
6781 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
6782 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
6783 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
6784 * config/i386/i386-options.c (ix86_target_string): Add
6785 -mavx512vp2intersect.
6786 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
6787 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
6788 P2HImode and P2QImode.
6789 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
6790 number for P2QImode and P2HImode.
6791 (ix86_regmode_natural_size): New function.
6792 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
6793 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
6794 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
6795 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
6796 * config/i386/i386.opt: Add -mavx512vp2intersect.
6797 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
6798 avx512vp2intersectvlintrin.h.
6799 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
6800 (define_mode_iterator VI48_AVX512VP2VL): New.
6801 (avx512vp2intersect_2intersect<mode>,
6802 avx512vp2intersect_2intersectv16si): New define_insn patterns.
6803 * config.gcc: Add avx512vp2intersectvlintrin.h and
6804 avx512vp2intersectintrin.h to extra_headers.
6805 * doc/invoke.texi: Document -mavx512vp2intersect.
6806
6807 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
6808
6809 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
6810
6811 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6812
6813 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
6814 savres_routine_syms, savres_routine_name, morestack_ref,
6815 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6816 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6817 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6818 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6819 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6820 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6821 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6822 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6823 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6824 get_stack_clash_protection_probe_interval,
6825 get_stack_clash_protection_guard_size,
6826 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6827 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6828 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6829 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6830 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6831 gen_frame_mem_offset, rs6000_savres_routine_name,
6832 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6833 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6834 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6835 rs6000_global_entry_point_prologue_needed_p,
6836 rs6000_get_separate_components, rs6000_components_for_bb,
6837 rs6000_disqualify_components, rs6000_emit_prologue_components,
6838 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6839 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6840 rs6000_output_savres_externs, rs6000_output_function_prologue,
6841 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6842 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6843 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6844 rs6000_output_function_epilogue, gen_add3_const,
6845 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6846 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6847 to rs6000-logue.c.
6848 (machine_function): Moved to rs6000.h.
6849 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
6850 rs6000-internal.h.
6851 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
6852 savres_routine_syms, savres_routine_name, morestack_ref,
6853 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6854 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6855 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6856 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6857 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6858 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6859 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6860 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6861 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6862 get_stack_clash_protection_probe_interval,
6863 get_stack_clash_protection_guard_size,
6864 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6865 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6866 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6867 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6868 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6869 gen_frame_mem_offset, rs6000_savres_routine_name,
6870 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6871 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6872 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6873 rs6000_global_entry_point_prologue_needed_p,
6874 rs6000_get_separate_components, rs6000_components_for_bb,
6875 rs6000_disqualify_components, rs6000_emit_prologue_components,
6876 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6877 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6878 rs6000_output_savres_externs, rs6000_output_function_prologue,
6879 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6880 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6881 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6882 rs6000_output_function_epilogue, gen_add3_const,
6883 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6884 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6885 to here from rs6000.c.
6886 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
6887 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
6888 quad_address_offset_p) Moved to here from rs6000.c.
6889 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
6890 * config/config.gcc: Add new source file rs6000-logue.c to garbage
6891 collector.
6892
6893 2019-06-25 Martin Liska <mliska@suse.cz>
6894
6895 * hash-table.c (hashtab_chk_error): Move here from ...
6896 * hash-table.h (hashtab_chk_error): ... here.
6897
6898 2019-06-25 Martin Liska <mliska@suse.cz>
6899
6900 PR tree-optimization/90978
6901 * df-scan.c (df_update_entry_block_defs): Remove dead else
6902 branch.
6903 (df_update_exit_block_uses): Likewise.
6904
6905 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6906 Andrew Stubbs <ams@codesourcery.com>
6907
6908 * config.gcc (thread_file): Set to gcn for AMD GCN.
6909 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
6910 (TARGET_EMUTLS_VAR_INIT): New hook.
6911
6912 2019-06-25 Martin Jambor <mjambor@suse.cz>
6913
6914 PR ipa/90939
6915 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
6916
6917 2019-06-25 Richard Biener <rguenther@suse.de>
6918
6919 PR tree-optimization/90930
6920 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
6921 into parallel form in the last pass instance.
6922
6923 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
6924
6925 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
6926 (arc_legitimize_pic_address): Simplify and cleanup the function.
6927 (SYMBOLIC_CONST): Remove.
6928 (prepare_pic_move): Likewise.
6929 (prepare_move_operands): Handle complex mov cases here.
6930 (arc_legitimize_address_0): Remove call to
6931 arc_legitimize_pic_address.
6932 (arc_legitimize_address): Remove call to
6933 arc_legitimize_tls_address.
6934 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
6935 (movhi_insn): Likewise.
6936
6937 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6938
6939 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
6940 PTRDIFF_TYPE.
6941 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
6942 format of "__intN" types for UINTMAX_TYPE.
6943 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
6944 format of "__intN" types for SIZETYPE.
6945 * tree.c (build_common_tree_nodes): Accept "__intN__"
6946 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
6947 * doc/invoke.texi: Document that __intN__ disables pedantic
6948 warnings.
6949
6950 2019-06-25 Jan Hubicka <jh@suse.cz>
6951
6952 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
6953 base2_alias_set is non-zero before doing TBAA based disambiguation.
6954
6955 2019-06-25 Martin Liska <mliska@suse.cz>
6956
6957 PR tree-optimization/90973
6958 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
6959 of prologue and epilogue.
6960
6961 2019-06-24 Jan Hubicka <jh@suse.cz>
6962
6963 * ipa-utils.h (type_with_linkage_p): Verify that type is
6964 CXX_ODR_P.
6965 (odr_type_p): Remove extra return.
6966 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
6967 hash STRING_FLAG only for arrays and integers.
6968 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
6969 Update analogously.
6970 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6971 Likewise.
6972 * print-tree.c (print_node): Print cxx-odr-p
6973 and string-flag.
6974 * tree.c (need_assembler_name_p): Also check that type
6975 is CXX_ODR_TYPE_P
6976 (verify_type_variant): Update verification of SRING_FLAG;
6977 also check CXX_ODR_P.
6978 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
6979 (TYPE_STRING_FLAG): Use it.
6980 (TYPE_CXX_ODR_P): New macro.
6981 * dwarf2out.c (gen_array_type_die): First check that type
6982 is an array and then test string flag.
6983
6984 2019-06-24 Richard Biener <rguenther@suse.de>
6985
6986 PR tree-optimization/90972
6987 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
6988 in common code, dealing with STRING_CST properly.
6989
6990 2019-06-24 Richard Biener <rguenther@suse.de>
6991
6992 PR tree-optimization/90930
6993 PR tree-optimization/90316
6994 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
6995 decrement of limit.
6996
6997 2019-06-24 Martin Sebor <msebor@redhat.com>
6998
6999 * tree-pretty-print.h: Remove unnecessary punctuation characters
7000 from a diagnostic.
7001 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
7002
7003 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
7004
7005 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
7006 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
7007 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
7008
7009 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7010
7011 * config/rs6000/darwin.h: Handle GCC target pragma.
7012
7013 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7014
7015 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
7016
7017 2019-06-22 Jeff Law <law@redhat.com>
7018
7019 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7020
7021 2019-06-22 Jan Hubicka <jh@suse.cz>
7022
7023 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
7024 give up on bitfields; continue searching for different refs
7025 appearing later.
7026
7027 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7028
7029 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7030 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
7031 containing the offset as possible simd lane access. Look through
7032 widening conversion. Move the
7033 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
7034
7035 2019-06-21 Richard Biener <rguenther@suse.de>
7036
7037 PR tree-optimization/90930
7038 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
7039 flag on new stmts to avoid re-processing them.
7040
7041 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
7042
7043 PR c++/90875 - added -Wswitch-outside-range option
7044 * doc/invoke.texi (Wswitch-outside-range): Document.
7045
7046 2019-06-21 Jeff Law <law@redhat.com>
7047
7048 PR tree-optimization/90949
7049 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
7050 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
7051
7052 2019-06-21 Richard Biener <rguenther@suse.de>
7053
7054 PR debug/90914
7055 * dwarf2out.c (prune_unused_types_walk): Always consider
7056 function-local extern declarations as used.
7057
7058 2019-06-21 Richard Biener <rguenther@suse.de>
7059
7060 PR tree-optimization/90913
7061 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
7062 the scalar variant of if-conversion versioning.
7063
7064 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7065
7066 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
7067 create another "omp scan inscan exclusive" array if
7068 !ctx->scan_inclusive.
7069 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
7070 (lower_omp_scan): Likewise.
7071 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
7072 2-bit bitfield for simd_lane_access_p member.
7073 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
7074 aux == (void *)-4 as simd lane access.
7075 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
7076 comment with permutations to show the canonical permutation order.
7077 (vectorizable_scan_store): Handle exclusive scan.
7078 (vectorizable_store): Call vectorizable_scan_store even for
7079 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
7080
7081 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7082 "omp simd array" arrays with one byte elements.
7083
7084 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
7085
7086 * config/alpha/alpha.md (@unaligned_store<mode>):
7087 Rename from unaligned_store<mode>.
7088 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
7089 * config/alpha/sync.md (@load_locked_<mode>): Rename
7090 from load_locked_<mode>.
7091 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
7092 (@atomic_compare_and_swap<mode>_1): Rename
7093 from atomic_compare_and_swap<mode>_1.
7094 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
7095 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
7096 Use gen_reload_in_aligned and gen_unaligned_store.
7097 (emit_load_locked): Remove.
7098 (emit_store_conditional): Ditto.
7099 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
7100 (alpha_split_compare_and_swap): Ditto.
7101 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
7102 (alpha_split_compare_and_swap_12): Use gen_load_locked
7103 and gen_store_conditional.
7104 (alpha_split_atomic_exchange): Ditto.
7105 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
7106 (alpha_split_atomic_exchange_12): Use gen_load_locked
7107 and gen_store_conditional.
7108
7109 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
7110
7111 * config/aarch64/aarch64-errata.h: New file.
7112 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
7113 (CA53_ERR_843419_SPEC): Delete.
7114 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
7115 * config/aarch64/aarch64-linux.h: Likewise.
7116 * config/aarch64/aarch64-netbsd.h: Likewise.
7117 * config/aarch64/aarch64-freebsd.h: Likewise.
7118
7119 2019-06-20 Marek Polacek <polacek@redhat.com>
7120
7121 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
7122
7123 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
7124
7125 * config/rs6000/rs6000.md (isa attribute): Add support for
7126 for a future processor.
7127
7128 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
7129
7130 PR target/54855
7131 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
7132 standard scalar operation pattern for V2DF.
7133 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
7134 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
7135 (*ieee_<ieee_maxmin><mode>3): Likewise.
7136 (vec_setv2df_0): Likewise.
7137
7138 2019-06-20 Jan Hubicka <jh@suse.cz>
7139
7140 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
7141 parameter; it has no use in gimple memory model.
7142 (indirect_ref_may_alias_decl_p): Update.
7143
7144 2019-06-20 Martin Liska <mliska@suse.cz>
7145
7146 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
7147 to 10.
7148
7149 2019-06-20 Jakub Jelinek <jakub@redhat.com>
7150
7151 * tree-vect-stmts.c (enum scan_store_kind): New type.
7152 (scan_store_can_perm_p): Change last argument from int * to
7153 vec<enum scan_store_kind> *, record precisely which permutations
7154 need whole vector left shift or that plus VEC_COND_EXPR.
7155 (vectorizable_scan_store): Adjust caller, use whole vector left shift
7156 and additional VEC_COND_EXPR only for those iterations that need it.
7157
7158 2019-06-20 Alexandre Oliva <oliva@adacore.com>
7159
7160 * config.gcc: Fix ARM --with-fpu checking and error message.
7161
7162 2019-06-19 Marek Polacek <polacek@redhat.com>
7163
7164 PR c++/60364 - noreturn after first decl not diagnosed.
7165 * attribs.c (get_attribute_namespace): No longer static.
7166 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
7167 attributes.
7168 (attr_noreturn_exclusions): Make it extern.
7169 * attribs.h (get_attribute_namespace): Declare.
7170 * tree-inline.c (function_attribute_inlinable_p): Use
7171 get_attribute_name.
7172
7173 2019-06-19 Martin Sebor <msebor@redhat.com>
7174
7175 PR tree-optimization/90626
7176 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
7177
7178 PR tree-optimization/90626
7179 * tree-ssa-strlen.c (strxcmp_unequal): New function.
7180 (handle_builtin_string_cmp): Call it.
7181
7182 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7183
7184 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
7185 and DARWIN_NOPIE_SPEC.
7186 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
7187 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
7188 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
7189 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
7190 (DARWIN_EXPORT_DYNAMIC): Delete.
7191 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
7192 and pie options processing to darwin.h.
7193 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
7194
7195 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7196
7197 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
7198 in computing the number of options to be moved.
7199
7200 2019-06-19 Maya Rashish <coypu@sdf.org>
7201
7202 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
7203 (CLEAR_INSN_CACHE) Use it.
7204
7205 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
7206
7207 * config/i386/i386.md (cmpstrnsi): Remove dead code.
7208
7209 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
7210
7211 PR middle-end/84521
7212 * builtins.c (expand_builtin_setjmp_setup): Save
7213 hard_frame_pointer_rtx.
7214 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
7215 restore fp.
7216 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
7217 non-local goto.
7218 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
7219 elimination code.
7220 (remove_reg_equal_offset_note): Remove unused function.
7221 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
7222 code.
7223 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7224 (arc_builtin_setjmp_frame_value): Remove function.
7225 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7226 (avr_builtin_setjmp_frame_value): Remove function.
7227 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7228 (ix86_builtin_setjmp_frame_value): Remove function.
7229 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
7230 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7231 (sparc_builtin_setjmp_frame_value): Remove function.
7232 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7233 (vax_builtin_setjmp_frame_value): Remove function.
7234 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
7235 pointer if has_nonlocal_label.
7236
7237 2019-06-19 Jakub Jelinek <jakub@redhat.com>
7238
7239 * doc/md.texi: Document vec_shl_<mode> pattern.
7240 * optabs.def (vec_shl_optab): New optab.
7241 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
7242 argument, if == vec_shl_optab, check for left whole vector shift
7243 pattern rather than right shift.
7244 (expand_vec_perm_const): Add vec_shl_optab support.
7245 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
7246 in the comment.
7247 * tree-vect-generic.c (lower_vec_perm): Support permutations which
7248 can be handled by vec_shl_optab.
7249 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
7250 (check_scan_store): Use it.
7251 (vectorizable_scan_store): If target can't do normal permutations,
7252 try to use whole vector left shifts and if needed a VEC_COND_EXPR
7253 after it.
7254 * config/i386/sse.md (vec_shl_<mode>): New expander.
7255
7256 * omp-low.c (lower_rec_input_clauses): Handle references properly
7257 in inscan clauses.
7258 (lower_omp_scan): Likewise.
7259
7260 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7261
7262 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
7263 mem_mode is BLKmode.
7264
7265 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
7266
7267 PR target/90922
7268 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
7269 pointer adjustment for the case of no callee-saved registers and
7270 stack frame bigger than 128 bytes.
7271
7272 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7273
7274 PR middle-end/90862
7275 * omp-low.c (check_omp_nesting_restrictions): Handle
7276 GF_OMP_TARGET_KIND_OACC_DECLARE.
7277
7278 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
7279
7280 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
7281 (@add<mode>3_carry): Rename from add<mode>3_carry.
7282 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
7283 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
7284 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
7285 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
7286 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
7287 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
7288 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
7289 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
7290 (cmpstrnsi): Use gen_cmp_1.
7291 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
7292 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
7293 (@umonitor_<mode>): Rename from umonitor_<mode>.
7294 * config/i386/i386-expand.c (ix86_expand_copysign):
7295 Use gen_copysign3_const and gen_copysign3_var.
7296 (ix86_expand_xorsign): Use gen_xorsign3_1.
7297 (ix86_expand_branch): Use gen_sub3_carry_ccc,
7298 gen_sub3_carry_ccgz and gen_cmp1.
7299 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
7300 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
7301 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
7302 (ix86_split_lshr): Ditto.
7303 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
7304
7305 2019-06-18 Jason Merrill <jason@redhat.com>
7306
7307 * tree.c (build_constructor): Add MEM_STAT_DECL.
7308
7309 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7310
7311 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
7312 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
7313 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
7314 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
7315 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
7316 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
7317 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
7318 Use CC_NZC instead of CC.
7319 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
7320 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
7321 (aarch64_print_operand): Handle E_CC_NZCmode.
7322 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
7323 of gen_set_clobber_cc.
7324
7325 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7326
7327 * config/aarch64/aarch64-sve.md: Tabify file.
7328
7329 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7330
7331 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
7332 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
7333 * config/aarch64/aarch64-sve.md: Use it.
7334
7335 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7336
7337 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
7338 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
7339 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
7340 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
7341 (aarch64_expand_sve_vec_cmp_int): Use it.
7342 (aarch64_expand_sve_vec_cmp_float): Likewise.
7343 * config/aarch64/aarch64-sve.md: Likewise throughout.
7344
7345 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7346 Kugan Vivekanandarajah <kuganv@linaro.org>
7347
7348 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
7349 (*cond_<optab><mode>_z): Fold into...
7350 (*cond_<optab><mode>_any): ...here. Also handle cases in which
7351 operand 4 can be tied to operand 0 (either inherently or via RA).
7352
7353 2019-06-18 Richard Biener <rguenther@suse.de>
7354
7355 PR debug/90900
7356 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
7357 as if optimized away.
7358
7359 2019-06-18 Tom de Vries <tdevries@suse.de>
7360
7361 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
7362 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
7363 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
7364 Rename to ...
7365 (define_insn "@set_softstack_<mode>"): ... this.
7366 (define_insn "omp_simt_enter_<mode>"): Rename to ...
7367 (define_insn "@omp_simt_enter_<mode>"): ... this.
7368 (define_insn "omp_simt_exit_<mode>"): Rename to ...
7369 (define_insn "@omp_simt_exit_<mode>"): ... this.
7370
7371 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7372
7373 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
7374 vf parameter. Restore the previous iv step of nscalars_step,
7375 but give it iv_type rather than compare_type. Tweak code order
7376 to match the comments.
7377 (vect_set_loop_condition_masked): Update accordingly.
7378 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
7379 for iv_precision. Tweak comment formatting.
7380
7381 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7382
7383 * config/darwin.c: Strip trailing whitespace.
7384
7385 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7386
7387 * config/darwin.c (darwin_emit_unwind_label): New default to false.
7388 (darwin_override_options): Set darwin_emit_unwind_label as needed.
7389
7390 2019-06-18 Martin Jambor <mjambor@suse.cz>
7391
7392 PR ipa/90889
7393 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
7394 caller does not have flag_ipa_cp set.
7395
7396 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7397
7398 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
7399 from "*fold_left_plus_<mode>", updated operands order.
7400 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
7401 * internal-fn.c (mask_fold_left_direct): New define.
7402 (expand_mask_fold_left_optab_fn): Likewise.
7403 (direct_mask_fold_left_optab_supported_p): Likewise.
7404 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
7405 * optabs.def (mask_fold_left_plus_optab): New optab.
7406 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
7407 masked internal_fn for a reduction ifn.
7408 (vectorize_fold_left_reduction): Add support for masking reductions.
7409
7410 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
7411
7412 PR middle-end/80791
7413 * target.def (predict_doloop_p): New hook.
7414 * targhooks.h (default_predict_doloop_p): New declaration.
7415 * targhooks.c (default_predict_doloop_p): New function.
7416 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
7417 * doc/tm.texi: Regenerate.
7418 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
7419 (TARGET_PREDICT_DOLOOP_P): New macro.
7420 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
7421
7422 2019-06-17 Jakub Jelinek <jakub@redhat.com>
7423
7424 * omp-low.c (struct omp_context): Add scan_inclusive field.
7425 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
7426 if inclusive scan.
7427 (struct omplow_simd_context): Add lastlane member.
7428 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
7429 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
7430 1 or 2 argument.
7431 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
7432 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
7433 (lower_omp_scan): New function.
7434 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
7435 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
7436 check 3rd argument if present rather than 2nd.
7437 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
7438 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
7439 2-bit bitfield.
7440 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7441 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
7442 than 2nd.
7443 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
7444 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
7445 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
7446 init.
7447 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
7448 IFN_GOMP_SIMD_LANE argument.
7449 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
7450 encoded ->aux value.
7451 * tree-vect-stmts.c: Include attribs.h.
7452 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
7453 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
7454 functions.
7455 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
7456 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
7457
7458 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
7459
7460 PR target/62055
7461 * config/i386/i386.md (*nabstf2_1): New insn pattern.
7462 (*nabs<mode>2_1): Ditto.
7463 (nabs sse-reg splitter): New splitter.
7464 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
7465
7466 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7467
7468 PR bootstrap/90873.
7469 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7470 TMR index check.
7471
7472 2019-06-17 Tom de Vries <tdevries@suse.de>
7473
7474 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
7475 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
7476 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
7477 ...
7478 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
7479 match_operand 0.
7480 (define_insn "omp_simt_enter_insn"): Rename to ...
7481 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
7482 match_operand 0, 1 and 2, as well as the unspec_volatile result.
7483 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
7484 gen_omp_simt_enter_si.
7485 (define_expand "omp_simt_exit"): New.
7486 (define_insn "omp_simt_exit"): Rename to ...
7487 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
7488 match_operand 0.
7489
7490 2019-06-17 Matthew Green <mrg@eterna.com.au>
7491 Maya Rashish <coypu@sdf.org>
7492
7493 * config.gcc (aarch64*-*-netbsd*): New target.
7494 * config/aarch64/aarch64-netbsd.h: New file.
7495 * config/aarch64/t-aarch64-netbsd: Likewise.
7496
7497 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7498
7499 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
7500 the access path from base to first VIEW_CONVERT_EXPR or
7501 BIT_FIELD_REF.
7502
7503 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7504
7505 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
7506 access path on BIT_FIELD_REFs.
7507
7508 2019-06-17 Martin Liska <mliska@suse.cz>
7509
7510 PR ipa/90874
7511 * ipa-utils.h (odr_type_p): Remove dead code.
7512
7513 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7514
7515 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
7516 alternative Solaris 11.4 format.
7517 * configure: Regenerate.
7518
7519 2019-06-17 Tom de Vries <tdevries@suse.de>
7520
7521 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
7522 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
7523 match_operand 0.
7524 (define_insn "call_value_insn"): Rename to ...
7525 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
7526 match_operand 0.
7527 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
7528 DI.
7529
7530 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
7531
7532 PR middle-end/64242
7533 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
7534 frame clobbers and schedule block.
7535 (builtin_longjmp): Likewise.
7536
7537 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7538
7539 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
7540 describe how to perform MSPABI compliant 64-bit shift.
7541 * config/msp430/msp430.md (ashldi3): New define_expand.
7542 (ashrdi3): New define_expand.
7543 (lshrdi3): New define_expand.
7544
7545 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7546
7547 * doc/sourcebuild.texi: Document new effective target keyword
7548 longlong64.
7549
7550 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7551
7552 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
7553 indirect_refs_may_alias_p): Revert accidental commits.
7554
7555 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
7556 at the end of structures.
7557
7558 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7559
7560 * config/darwin.c (machopic_indirect_call_target): Use renamed
7561 darwin_picsymbol_stubs to decide on output.
7562 (darwin_override_options): Handle darwin_picsymbol_stubs.
7563 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
7564 (LD64_VERSION): Revise default.
7565 * config/darwin.opt: (mpic-symbol-stubs): New option.
7566 (darwin_picsymbol_stubs): New variable.
7567 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
7568 rename to TARGET_MACHO_PICSYM_STUBS.
7569 * config/i386/i386.c (output_pic_addr_const): Likewise.
7570 * config/i386/i386.h Likewise.
7571 * config/rs6000/darwin.h: Likewise.
7572 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
7573 darwin_picsymbol_stubs.
7574
7575 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7576
7577 * config/darwin.opt (prebind, noprebind, seglinkedit,
7578 noseglinkedit): Add RejectNegative.
7579
7580 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7581
7582 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
7583 in my previous patch.
7584
7585 2019-06-16 Tom de Vries <tdevries@suse.de>
7586
7587 PR tree-optimization/89376
7588 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
7589
7590 2019-06-15 Maya Rashish <coypu@sdf.org>
7591
7592 * doc/invoke.texi (Spec Files): Update location of the
7593 Fortran spec file.
7594
7595 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
7596
7597 * doc/extend.texi (Common Function Attributes): Clarify
7598 no_sanitize. Fix grammar.
7599
7600 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
7601
7602 * tree-ssa-alias.c (alias_stats): Add
7603 nonoverlapping_component_refs_p_may_alias,
7604 nonoverlapping_component_refs_p_no_alias,
7605 nonoverlapping_component_refs_of_decl_p_may_alias,
7606 nonoverlapping_component_refs_of_decl_p_no_alias.
7607 (dump_alias_stats): Dump them.
7608 (nonoverlapping_component_refs_of_decl_p): Add stats.
7609 (nonoverlapping_component_refs_p): Add stats; do not stop on first
7610 ARRAY_REF.
7611
7612 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
7613
7614 * config/i386/i386.md (and<mode>3): Generate zero-extends for
7615 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
7616 only.
7617 (*anddi3_doubleword): Split before reload. Merge with
7618 anddi->zext pre-reload splitter.
7619 (*andndi3_doubleword): Split before reload.
7620 (*<code>di3_doubleword): Ditto.
7621 (*one_cmpldi2_doubleword): Ditto.
7622
7623 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7624
7625 PR middle-end/90779
7626 * gimplify.c: Include omp-offload.h and context.h.
7627 (gimplify_bind_expr): Add "omp declare target" attributes
7628 to static block scope variables inside of target region or target
7629 functions.
7630
7631 2019-06-15 Tom de Vries <tdevries@suse.de>
7632
7633 PR tree-optimization/90009
7634 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
7635 Return NULL if bb contains IFN_UNIQUE.
7636
7637 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
7638
7639 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
7640 (un): New define_mode_attr.
7641 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
7642 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
7643 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
7644 merge into ...
7645 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
7646
7647 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
7648
7649 * config/darwin.opt: Add RejectNegative where needed, reorder
7650 and add minimal functional descriptions.
7651
7652 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7653
7654 PR rtl-optimization/90765
7655 * calls.c (update_stack_alignment_for_call): New function.
7656 (expand_call): Call update_stack_alignment_for_call when
7657 outgoing parameter is passed in the stack.
7658 (emit_library_call_value_1): Likewise.
7659 * function.c (locate_and_pad_parm): Don't update
7660 stack_alignment_needed and preferred_stack_boundary.
7661
7662 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7663
7664 PR target/90877
7665 * config/i386/i386-features.c
7666 (dimode_scalar_chain::compute_convert_gain): Replace
7667 mmxsse_to_integer with sse_to_integer.
7668 * config/i386/i386.c (ix86_register_move_cost): Verify that
7669 moves between MMX and non-MMX units require secondary memory.
7670 Correct costs of moves between SSE and integer units.
7671 * config/i386/i386.h (processor_costs): Rename cost of moving
7672 SSE register to integer to sse_to_integer. Rename cost of
7673
7674 2019-06-14 Matt Thomas <matt@3am-software.com>
7675 Matthew Green <mrg@eterna.com.au>
7676 Nick Hudson <skrll@netbsd.org>
7677 Maya Rashish <coypu@sdf.org>
7678 Richard Earnshaw <rearnsha@arm.com>
7679
7680 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
7681 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
7682 * config/arm/netbsd-eabi.h: New file.
7683 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
7684 redefining.
7685 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
7686 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
7687 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
7688 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
7689
7690 2019-06-14 Richard Biener <rguenther@suse.de>
7691
7692 * tree-loop-distribution.c (classify_partition): Return
7693 whether a reduction appeared in all partitions and do not
7694 stop builtin detection because of this.
7695 (distribute_loop): Sort a non-builtin partition last if
7696 there's a reduction in all partitions and make sure the
7697 partition prevailing as last is not a builtin.
7698
7699 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
7700
7701 PR ipa/90401
7702 * ipa-prop.c (add_to_agg_contents_list): New function.
7703 (clobber_by_agg_contents_list_p): Likewise.
7704 (extract_mem_content): Likewise.
7705 (get_place_in_agg_contents_list): Delete.
7706 (determine_known_aggregate_parts): Renamed from
7707 determine_locally_known_aggregate_parts. New parameter
7708 aa_walk_budget_p.
7709
7710 2019-06-13 Martin Sebor <msebor@redhat.com>
7711
7712 PR tree-optimization/90662
7713 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
7714 to the same type.
7715
7716 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7717
7718 PR bootstrap/90873
7719 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
7720 dbase is not TARGET_MEM_REF.
7721
7722 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7723
7724 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
7725 Update all uses.
7726 (and<mode>3): Use gen_extend_insn instead of indirect functions.
7727 Do not generate DImode extends for 32bit targets.
7728 (and->zext post-reload splitter): Use gen_extend_insn
7729 instead of indirect functions.
7730 (anddi->zext pre-reload splitter): New.
7731 (*zext<mode>_doubleword_and): Remove.
7732 (*zext<mode>_doubleword): Ditto.
7733 (*zextsi_doubleword): Dittto.
7734
7735 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7736
7737 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7738 Use gen_sub3_insn instead of indirect function.
7739 (ix86_expand_ashl_const): Use gen_add2_insn instead of
7740 indirect function.
7741 (ix86_adjust_counter): Ditto.
7742
7743 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
7744 Lijia He <helijia@linux.ibm.com>
7745
7746 PR tree-optimization/77820
7747 * tree-ssa-threadedge.c
7748 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
7749 function.
7750 (thread_across_edge): Add call to
7751 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
7752
7753 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
7754
7755 * config/darwin-driver.c (validate_macosx_version_min): New.
7756 (darwin_default_min_version): Cleanup and validate supplied version.
7757 (darwin_driver_init): Likewise and push cleaned version into opts.
7758
7759 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7760
7761 PR tree-optimization/90869
7762 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
7763 converts in MEM_REF referencing decl rather than view converts
7764 from decl type to MEM_REF type.
7765
7766 2019-06-13 Richard Biener <rguenther@suse.de>
7767
7768 PR tree-optimization/90856
7769 * tree-sra.c (build_ref_for_model): Only use
7770 build_reconstructed_reference when address-spaces are the same.
7771
7772 2019-06-13 Jakub Jelinek <jakub@redhat.com>
7773
7774 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
7775 wrap ei variable name in the declaration in ()s.
7776 (nvptx_single): Actually use mode_label variable. Formatting fix.
7777
7778 2019-06-13 Richard Biener <rguenther@suse.de>
7779
7780 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
7781 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
7782 also return the condition stmt.
7783 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
7784 loop we can version and version that, reusing the loop version
7785 created by if-conversion instead of versioning again.
7786
7787 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
7788
7789 * gimple-loop-versioning.cc (prune_loop_conditions): Use
7790 may_contain_p.
7791 * tree-vrp (value_range_base::may_contain_p): Call into
7792 value_inside_range.
7793 (value_inside_range): Make private inside value_range_base class.
7794 Take min/max from *this.
7795 (range_includes_p): Remove.
7796 * tree-vrp.h (value_range_base): Add value_inside_range.
7797 (range_includes_p): Remove.
7798 (range_includes_zero_p): Call may_contain_p.
7799 * vr-values.c (compare_range_with_value): Same.
7800
7801 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
7802
7803 * doc/extend.texi (ARC Function Attributes): Update info.
7804
7805 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7806
7807 PR tree-optimization/89713
7808 * doc/invoke.texi (-ffinite-loops): Document new option.
7809 * common.opt (-ffinite-loops): New option.
7810 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
7811 IFN_GOACC_LOOP calls as necessary.
7812 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
7813 is finite.
7814 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
7815 IFN_GOACC_LOOP call is not used.
7816 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
7817
7818 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7819
7820 PR target/88838
7821 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
7822 compare_type is not with Pmode size, we will create an IV with
7823 Pmode size with truncated use (i.e. converted to the correct type).
7824 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
7825 (vect_iv_limit_for_full_masking): New. Factored out of
7826 vect_set_loop_condition_masked.
7827 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
7828 (vect_iv_limit_for_full_masking): Declare.
7829
7830 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7831
7832 PR target/88834
7833 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
7834 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
7835 (get_alias_ptr_type_for_ptr_address): Likewise.
7836 (add_iv_candidate_for_use): Add scaled index candidate if useful.
7837 * tree-ssa-address.c (preferred_mem_scale_factor): New.
7838 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
7839 allow_reg_index_p.
7840
7841 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7842
7843 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
7844
7845 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
7846
7847 * common/config/pru/pru-common.c: New file.
7848 * config.gcc: Add PRU target.
7849 * config/pru/alu-zext.md: New file.
7850 * config/pru/constraints.md: New file.
7851 * config/pru/predicates.md: New file.
7852 * config/pru/pru-opts.h: New file.
7853 * config/pru/pru-passes.c: New file.
7854 * config/pru/pru-pragma.c: New file.
7855 * config/pru/pru-protos.h: New file.
7856 * config/pru/pru.c: New file.
7857 * config/pru/pru.h: New file.
7858 * config/pru/pru.md: New file.
7859 * config/pru/pru.opt: New file.
7860 * config/pru/t-pru: New file.
7861 * doc/extend.texi: Document PRU pragmas.
7862 * doc/invoke.texi: Document PRU-specific options.
7863 * doc/md.texi: Document PRU asm constraints.
7864
7865 2019-06-12 Martin Sebor <msebor@redhat.com>
7866
7867 PR middle-end/90676
7868 * tree-pretty-print.c (dump_mem_ref): New function. Include
7869 MEM_REF type in output when different size than operand.
7870 (dump_generic_node): Move code to dump_mem_ref and call it.
7871
7872 2019-06-12 Martin Sebor <msebor@redhat.com>
7873
7874 PR tree-optimization/90662
7875 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
7876 to arrays.
7877
7878 2019-06-12 Tom de Vries <tdevries@suse.de>
7879
7880 PR tree-optimization/90009
7881 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
7882
7883 2019-06-12 Martin Liska <mliska@suse.cz>
7884
7885 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
7886 the created map.
7887 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
7888 * mem-stats.h (mem_alloc_description::mem_alloc_description):
7889 Do not sanitize created maps.
7890
7891 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
7892
7893 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
7894 value_range::singleton_p.
7895 * tree-vrp.c (value_range_constant_singleton): Remove.
7896 * tree-vrp.h (value_range_constant_singleton): Remove.
7897 * vr-values.c (vr_values::singleton): Use
7898 value_range::singleton_p.
7899
7900 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7901
7902 PR target/90811
7903 * cfgexpand.c (align_local_variable): Add really_expand argument,
7904 don't SET_DECL_ALIGN if it is false.
7905 (add_stack_var): Add really_expand argument, pass it through to
7906 align_local_variable.
7907 (expand_one_stack_var_1): Pass true as really_expand to
7908 align_local_variable.
7909 (expand_one_ssa_partition): Pass true as really_expand to
7910 add_stack_var.
7911 (expand_one_var): Pass really_expand through to add_stack_var.
7912
7913 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7914
7915 * config/arm/iterators.md (VABAL): New int iterator.
7916 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
7917 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
7918 UNSPEC_VABAL_U values.
7919
7920 2019-06-12 Martin Liska <mliska@suse.cz>
7921
7922 * value-prof.c (stream_out_histogram_value): Only first value
7923 can't be negative.
7924
7925 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7926
7927 PR c/90760
7928 * symtab.c (symtab_node::set_section): Allow being called on aliases
7929 as long as they aren't analyzed yet.
7930
7931 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
7932
7933 * config/mips/mips.c (mips_final_postscan_insn): Modify call
7934 to `mips_set_text_contents_type' to indicate whether a
7935 non-debug insn follows.
7936
7937 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
7938
7939 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
7940 enabling -mpcrel by default.
7941 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
7942 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
7943 that the test against -mcpu=future is done first. Then test if
7944 -mprefixed-addr is on for -mpcrel.
7945 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
7946
7947 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7948
7949 PR target/90811
7950 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
7951 instead of and.u%d.
7952
7953 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7954
7955 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
7956
7957 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
7958
7959 PR c++/90449 - add -Winaccessible-base option.
7960 * doc/invoke.texi (Winaccessible-base): Document.
7961
7962 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7963
7964 PR tree-optimization/62041
7965 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
7966
7967 2019-06-11 Jason Merrill <jason@redhat.com>
7968
7969 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
7970 * tree.c (get_tree_code_name): Likewise.
7971 * print-tree.c (print_node): Only briefly print a node with an
7972 invalid code.
7973
7974 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7975
7976 PR bootstrap/90819
7977 * trans-mem.c (tm_memopt_compute_available): Add assertion
7978 that blocks is not empty. Formatting fix.
7979
7980 2019-06-11 Martin Liska <mliska@suse.cz>
7981
7982 PR c++/87847
7983 * hash-table.h: Extend create_gcc, add one parameter
7984 that is passed into hash_table::hash_table.
7985
7986 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
7987
7988 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
7989 New prototype.
7990 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
7991 Emit clobber also for non-sse operations.
7992 (ix86_split_fp_absneg_operator): New function.
7993 * config/i386/i386.md (SSEMODEF): New mode iterator.
7994 (ssevecmodef): New mode attribute.
7995 (<code>tf2): Use absneg code iterator.
7996 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
7997 Add three-operand AVX alternatives.
7998 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
7999 Use absneg code iterator and X87MODEF mode iterator.
8000 (absneg fp_reg non-sse splitter): Call absneg code iterator
8001 and X87MODEF mode iterator.
8002 (absneg general_reg non-sse splitter): Use absneg code iterator
8003 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
8004 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
8005 code iterator. Add three-operand AVX alternative.
8006 (absneg sse_reg splitter): Use absneg code iterator
8007 and SSEMODEF mode iterator. Handle AVX operands.
8008 (absneg fp_reg splitter): Use absneg code iterator
8009 and MODEF mode iterator.
8010 (absneg general_reg splitter): Merge splitters using MODEF mode
8011 iterator. Use absneg code iterator. Call
8012 ix86_split_fp_absneg_operator.
8013 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
8014 Do not enable for non-sse modes before reload.
8015 (CSGNMODE): Remove.
8016 (CSGNVMODE): Ditto.
8017 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
8018 ssevecmodef mode attribute instaed of CSGNVMODE.
8019 (copysign<mode>3_const): Ditto.
8020 (copysign<mode>3_var): Ditto.
8021 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
8022 Use absneg code iterator. Simplify code using std::swap.
8023 * config/i386/predicates.md (absneg_operator): Remove.
8024
8025 2019-06-10 Martin Sebor <msebor@redhat.com>
8026
8027 * gimple-fold.c (get_range_strlen): Update comment that didn't
8028 make it into r267503 or related commits.
8029
8030 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
8031
8032 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
8033 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
8034
8035 2019-06-10 Jakub Jelinek <jakub@redhat.com>
8036
8037 * tree.def (OMP_SCAN): New tree code.
8038 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
8039 OMP_CLAUSE_EXCLUSIVE.
8040 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
8041 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
8042 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
8043 OMP_CLAUSE_{IN,EX}CLUSIVE.
8044 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8045 * tree-nested.c (convert_nonlocal_reference_stmt,
8046 convert_local_reference_stmt, convert_gimple_call): Handle
8047 GIMPLE_OMP_SCAN.
8048 * tree-pretty-print.c (dump_omp_clause): Handle
8049 OMP_CLAUSE_{IN,EX}CLUSIVE.
8050 (dump_generic_node): Handle OMP_SCAN.
8051 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
8052 * gimple.h (gomp_scan): New type.
8053 (is_a_helper <gomp_scan *>::test,
8054 is_a_helper <const gomp_scan *>::test): New templates.
8055 (gimple_build_omp_scan): Declare.
8056 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
8057 gimple_omp_scan_set_clauses): New inline functions.
8058 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
8059 * gimple.c (gimple_build_omp_scan): New function.
8060 (gimple_copy): Handle GIMPLE_OMP_SCAN.
8061 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
8062 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
8063 GIMPLE_OMP_TASKGROUP.
8064 (dump_gimple_omp_scan): New function.
8065 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
8066 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
8067 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
8068 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
8069 (is_gimple_stmt): Handle OMP_SCAN.
8070 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
8071 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8072 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
8073 mentioned in nested #pragma omp scan. Handle
8074 OMP_CLAUSE_{IN,EX}CLUSIVE.
8075 (gimplify_expr): Handle OMP_SCAN.
8076 * omp-low.c (check_omp_nesting_restrictions): For parent context,
8077 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
8078 simd constructs.
8079 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
8080 GIMPLE_OMP_SCAN.
8081
8082 2019-06-10 Martin Liska <mliska@suse.cz>
8083
8084 * ipa-cp.c (ignore_edge_p): New function.
8085 (build_toporder_info): Use it.
8086 * ipa-inline.c (ignore_edge_p): New function.
8087 (inline_small_functions): Use it.
8088 * ipa-pure-const.c (ignore_edge_for_nothrow):
8089 Verify opt_for_fn for caller and callee.
8090 (ignore_edge_for_pure_const): Likewise.
8091 * ipa-reference.c (ignore_edge_p): Extend to check
8092 for opt_for_fn.
8093 * ipa-utils.c (searchc): Refactor.
8094 * ipa-utils.h: Fix coding style.
8095
8096 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8097
8098 * config/arc/arc.c (arc_rtx_costs): Update costs.
8099
8100 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8101
8102 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
8103 (arc_split_ior): Likewise.
8104 (arc_check_mov_const): Likewise.
8105 (arc_split_mov_const): Likewise.
8106 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
8107 (arc_rtx_costs): Replace check Crr with Cax constraint.
8108 (prepare_move_operands): Cleanup, remove unused code.
8109 (arc_split_ior): New function.
8110 (arc_check_ior_const): Likewise.
8111 (arc_split_mov_const): Likewise.
8112 (arc_check_mov_const): Likewise.
8113 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
8114 in define_insn_and_split pattern.
8115 (iorsi3): Likewise.
8116 (mulsi3_v2): Add new matching variant.
8117 (andsi3_i): Cleanup pattern.
8118 (rotrsi3_cnt1): Update pattern.
8119 (rotrsi3_cnt8): New pattern.
8120 (ashlsi2_cnt8): Likewise.
8121 (ashlsi2_cnt16): Likewise.
8122 * config/arc/constraints.md (C0p): Update constraint.
8123 (Crr): Remove it.
8124 (C0x): New pattern.
8125 (Cax): New pattern.
8126
8127 2019-06-10 Martin Liska <mliska@suse.cz>
8128
8129 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
8130 Update coding style.
8131 (sem_item_optimizer::dump_cong_classes):
8132 Print how many items are in a non-singular class. Improve
8133 coding style.
8134
8135 2019-06-10 Martin Liska <mliska@suse.cz>
8136
8137 * value-prof.c (dump_histogram_value): Change dump format.
8138 (gimple_mod_subtract_transform): Remove legacy comment.
8139
8140 2019-06-10 Martin Liska <mliska@suse.cz>
8141
8142 * value-prof.c (dump_histogram_value): Print histogram values
8143 only if present.
8144
8145 2019-06-10 Martin Liska <mliska@suse.cz>
8146
8147 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
8148 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
8149 * ipa-profile.c (ipa_profile_generate_summary):
8150 Use get_most_common_single_value.
8151 * tree-profile.c (gimple_init_gcov_profiler):
8152 Instrument with __gcov_one_value_profiler_v2
8153 and __gcov_indirect_call_profiler_v4.
8154 * value-prof.c (dump_histogram_value):
8155 Print all values for HIST_TYPE_SINGLE_VALUE.
8156 (stream_out_histogram_value): Update assert for
8157 N values.
8158 (stream_in_histogram_value): Set number of
8159 counters for HIST_TYPE_SINGLE_VALUE.
8160 (get_most_common_single_value): New.
8161 (gimple_divmod_fixed_value_transform):
8162 Use get_most_common_single_value.
8163 (gimple_ic_transform): Likewise.
8164 (gimple_stringops_transform): Likewise.
8165 (gimple_find_values_to_profile): Set number
8166 of counters for HIST_TYPE_SINGLE_VALUE.
8167 * value-prof.h (get_most_common_single_value): New.
8168
8169 2019-06-10 Martin Liska <mliska@suse.cz>
8170
8171 * hash-map.h: Pass default value to hash_table ctor.
8172 * hash-table.h: Add default value to call of a ctor.
8173
8174 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
8175
8176 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
8177 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
8178
8179 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
8180
8181 PR target/90751
8182 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
8183 Call pa_output_function_label.
8184 (TARGET_ASM_FUNCTION_PROLOGUE): define.
8185 * config/pa/pa-protos.h (pa_output_function_label): Declare.
8186 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
8187 to declaration.
8188 (pa_linux_output_function_prologue): Declare.
8189 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
8190 (pa_output_function_label): New.
8191 (pa_output_function_prologue): Revise to use pa_output_function_label.
8192 (pa_linux_output_function_prologue): New.
8193 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
8194
8195 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
8196
8197 * tree-vrp.h (value_range_base::intersect): New.
8198 (value_range::intersect_helper): Move from here...
8199 (value_range_base::intersect_helper): ...to here.
8200 * tree-vrp.c (value_range::intersect_helper): Rename to...
8201 (value_range_base::intersect_helper): ...this, and rewrite to
8202 return a value instead of modifying THIS in place.
8203 Also, move equivalence handling...
8204 (value_range::intersect): ...here, while calling intersect_helper.
8205 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
8206 calling intersect.
8207 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
8208 Same.
8209 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
8210
8211 2019-06-07 Jakub Jelinek <jakub@redhat.com>
8212
8213 * Makefile.in (genprogerr): Add condmd.
8214 (genprog): Remove it here.
8215
8216 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
8217
8218 * doc/invoke.texi (AMD GCN Options): Add gfx906.
8219
8220 2019-06-07 Richard Biener <rguenther@suse.de>
8221
8222 PR debug/90574
8223 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
8224 that appear after user labels.
8225
8226 2019-06-07 Martin Liska <mliska@suse.cz>
8227
8228 * cselib.c (cselib_init): Disable hash table
8229 sanitization.
8230 * hash-set.h: Pass new default argument to m_table.
8231 * hash-table.c: Add global variable with hash table
8232 sanitization limit.
8233 * hash-table.h (Allocator>::hash_table): Add new argument
8234 to ctor.
8235 (hashtab_chk_error): New.
8236 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
8237 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
8238 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
8239
8240 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8241
8242 * common.opt (flto-odr-type-merging): Ignore.
8243 * invoke.texi (-flto-odr-type-merging): Remove.
8244 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
8245 (can_be_vtable_hashed_p): Remove.
8246 (hash_odr_vtable): Remove.
8247 (odr_vtable_hasher::hash): Remove.
8248 (types_same_for_odr): Remove.
8249 (types_odr_comparable): Remove.
8250 (odr_vtable_hasher::equal): Remove.
8251 (odr_vtable_hash_type, odr_vtable_hash): Remove.
8252 (add_type_duplicate): Do not synchronize vtable and name hashtables.
8253 (get_odr_type): Do not use vtable hash.
8254 (dump_odr_type): Remove commented out code.
8255 (build_type_inheritance_graph): Do not allocate vtable hash.
8256 (rebuild_type_inheritance_graph): Do not delete vtable hash.
8257 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
8258 (odr_type_p): Likewise.
8259 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
8260 test.
8261
8262 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8263
8264 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
8265 immediately after same_types_for_tbaa_p returns -1 and continue
8266 looking for possible exact match; if matching types are arrays
8267 watch for partial overlaps.
8268 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
8269 (indirect_refs_may_alias_p): Do type based disambiguation first;
8270 update comment.
8271
8272 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
8273
8274 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
8275
8276 2019-06-07 Martin Liska <mliska@suse.cz>
8277
8278 * doc/invoke.texi: Remove param.
8279 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
8280 Remove.
8281 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
8282 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
8283 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
8284 * profile.c (instrument_values): Remove
8285 HIST_TYPE_INDIR_CALL_TOPN.
8286 * tree-profile.c (init_ic_make_global_vars):
8287 Always build __gcov_indirect_call only.
8288 (gimple_init_gcov_profiler): Remove usage
8289 of PARAM_INDIR_CALL_TOPN_PROFILE.
8290 (gimple_gen_ic_profiler): Likewise.
8291 * value-prof.c (dump_histogram_value): Likewise.
8292 (stream_in_histogram_value): Likewise.
8293 (gimple_indirect_call_to_profile): Likewise.
8294 (gimple_find_values_to_profile): Likewise.
8295 * value-prof.h (enum hist_type): Likewise.
8296
8297 2019-06-07 Martin Liska <mliska@suse.cz>
8298
8299 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
8300 function.
8301
8302 2019-06-07 Martin Liska <mliska@suse.cz>
8303
8304 PR tree-optimization/78902
8305 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
8306 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
8307 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8308 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8309 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
8310 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8311 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
8312 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
8313 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8314 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8315 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8316 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
8317 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
8318 New.
8319 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
8320 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
8321 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
8322 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8323 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8324 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
8325 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8326 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8327 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
8328 warn_unused_result attribute.
8329 (BUILT_IN_STRDUP): Likewise.
8330 (BUILT_IN_STRNDUP): Likewise.
8331 (BUILT_IN_ALLOCA): Likewise.
8332 (BUILT_IN_CALLOC): Likewise.
8333 (BUILT_IN_MALLOC): Likewise.
8334 (BUILT_IN_REALLOC): Likewise.
8335
8336 2019-06-06 Jim Wilson <jimw@sifive.com>
8337
8338 PR target/89955
8339 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
8340 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
8341 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8342
8343 2019-06-06 Martin Sebor <msebor@redhat.com>
8344
8345 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
8346 (handle_builtin_malloc): Remove trailing spaces.
8347 (handle_builtin_memset): Same.
8348 (handle_builtin_memcmp): Same.
8349 (compute_string_length): Same.
8350 (determine_min_objsize): Same.
8351 (handle_builtin_string_cmp): Same.
8352 (handle_char_store): Same. Break up excessively long line.
8353
8354 2019-06-06 Martin Jambor <mjambor@suse.cz>
8355
8356 * tree-sra.c (build_reconstructed_reference): Drop the alignment
8357 check.
8358
8359 2019-06-06 Martin Jambor <mjambor@suse.cz>
8360
8361 * tree-sra.c (struct access): New field grp_same_access_path.
8362 (dump_access): Dump it.
8363 (build_reconstructed_reference): New function.
8364 (build_ref_for_model): Use it if possible.
8365 (path_comparable_for_same_access): New function.
8366 (same_access_path_p): Likewise.
8367 (sort_and_splice_var_accesses): Set the new flag.
8368 (analyze_access_subtree): Likewise.
8369 (propagate_subaccesses_across_link): Propagate zero value of the new
8370 flag down the access tree.
8371
8372 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
8373
8374 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
8375 * config/gcn/gcn.opt (gpu_type): Add gfx906.
8376 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
8377 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
8378 Add gfx906.
8379
8380 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8381
8382 PR tree-optimization/90332
8383 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8384 Handle VALS containing two vectors.
8385 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
8386 to...
8387 (@aarch64_combinez<mode>): ... This.
8388 (*aarch64_combinez_be<mode>): Rename to...
8389 (@aarch64_combinez_be<mode>): ... This.
8390 (vec_init<mode><Vhalf>): New define_expand.
8391 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
8392
8393 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8394
8395 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
8396 library functions only when not optimizing for size.
8397 (ashlsi3): Likewise.
8398 (ashrhi3): Likewise.
8399 (ashrsi3): Likewise.
8400 (lshrhi3): Likewise.
8401 (lshrsi3): Likewise.
8402
8403 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
8404
8405 PR rtl-optimization/88751
8406 * ira.c (ira): Use the number of the actually referenced registers
8407 when calculating the threshold.
8408
8409 2019-06-06 Jakub Jelinek <jakub@redhat.com>
8410
8411 * configure: Regenerate.
8412
8413 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8414
8415 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
8416 register if it is in memory, so the shift can be emulated with a rotate
8417 instruction.
8418 (ashrhi3): Likewise.
8419 (lshrhi3): Likewise.
8420
8421 2019-06-06 Martin Liska <mliska@suse.cz>
8422
8423 PR tree-optimization/87954
8424 * match.pd: Simplify mult where both arguments are 0 or 1.
8425
8426 2019-06-06 Richard Biener <rguenther@suse.de>
8427
8428 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
8429 put equivalences on UNDEFINED ranges.
8430 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8431 Make sure to drop defs of stmts added during simplification
8432 to VARYING.
8433
8434 2019-06-06 Richard Biener <rguenther@suse.de>
8435
8436 * tree-ssa-structalias.c: Include tree-cfg.h.
8437 (make_heapvar): Do not make heap vars artificial.
8438 (find_func_aliases_for_builtin_call): Handle stack allocation
8439 functions.
8440 (find_func_aliases): Delay processing of simple enough returns
8441 in non-IPA mode.
8442 (set_uids_in_ptset): Adjust.
8443 (find_what_var_points_to): Likewise.
8444 (solve_constraints): Do not dump points-to sets here.
8445 (compute_points_to_sets): Post-process return statements,
8446 amending the escaped solution. Dump points-to sets afterwards.
8447 (ipa_pta_execute): Dump points-to sets.
8448
8449 2019-06-06 Martin Liska <mliska@suse.cz>
8450
8451 PR web/87933
8452 * doc/install.texi: Fix HTML headers and
8453 titles for 'Installing GCC' pages.
8454
8455 2019-06-06 Martin Liska <mliska@suse.cz>
8456
8457 * ipa-icf-gimple.h (dump_message_1): Remove.
8458 (dump_message): Likewise.
8459 (return_false_with_message_1): Print also file.
8460 (return_false_with_msg): Likewise.
8461 (return_with_result): Likewise.
8462 (return_with_debug): Likewise.
8463 * ipa-icf.c (sem_function::equals_private): Remove call
8464 to dump_message.
8465
8466 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8467
8468 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
8469 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
8470 memory operand for it.
8471 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
8472
8473 2019-06-05 Martin Sebor <msebor@redhat.com>
8474
8475 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
8476 Adjust quoting and hyphenation.
8477 * convert.c (convert_to_real_1): Same.
8478 * gcc.c (driver_wrong_lang_callback): Same.
8479 (driver::handle_unrecognized_options): Same.
8480 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8481 * opts-common.c (cmdline_handle_error): Same.
8482 (read_cmdline_option): Same.
8483 * opts-global.c (complain_wrong_lang): Same.
8484 (print_ignored_options): Same.
8485 (handle_common_deferred_options): Same.
8486 * pretty-print.h: Same.
8487 * print-rtl.c (debug_bb_n_slim): Same.
8488 * sched-rgn.c (make_pass_sched_fusion): Same.
8489 * tree-cfg.c (verify_gimple_assign_unary): Same.
8490 (verify_gimple_label): Same.
8491 * tree-ssa-operands.c (verify_ssa_operands): Same.
8492 * varasm.c (do_assemble_alias): Same.
8493 (assemble_alias): Same.
8494
8495 2019-06-05 Richard Henderson <rth@twiddle.net>
8496
8497 * config/alpha/alpha.c (direct_return): Move down after
8498 struct machine_function definition; use saved frame_size;
8499 return bool.
8500 (struct machine_function): Add sa_mask, sa_size, frame_size.
8501 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
8502 (alpha_compute_frame_layout): ... new function.
8503 (TARGET_COMPUTE_FRAME_LAYOUT): New.
8504 (alpha_initial_elimination_offset): Use saved sa_size.
8505 (alpha_vms_initial_elimination_offset): Likewise.
8506 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
8507 (alpha_expand_prologue): Use saved frame data. Merge integer
8508 and fp register save loops.
8509 (alpha_expand_epilogue): Likewise.
8510 (alpha_start_function): Use saved frame data.
8511 * config/alpha/alpha-protos.h (direct_return): Update.
8512 (alpha_sa_size): Remove.
8513
8514 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
8515
8516 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
8517 multiplication by a power-of-two value.
8518 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
8519 and turn the modulo operation into a masking operation.
8520
8521 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8522
8523 PR debug/90733
8524 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
8525 with VOIDmode inner operands.
8526
8527 2019-06-05 Richard Biener <rguenther@suse.de>
8528
8529 PR middle-end/90726
8530 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8531 turn an expression graph into a tree.
8532
8533 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8534
8535 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
8536 member.
8537 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
8538 treat it like explicit monotonic schedule modifier.
8539 (expand_omp_for): Initialize has_lastprivate_conditional.
8540 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
8541 schedule modifier.
8542
8543 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
8544 references, lookup in in hash map MEM_REF operand instead of the
8545 MEM_REF itself.
8546 (lower_omp_1): When looking for lastprivate conditional assignments,
8547 handle MEM_REFs with REFERENCE_TYPE operands.
8548
8549 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
8550 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
8551 and references a VLA. Handle references to non-VLAs if is_simd
8552 all privatization clauses like reductions.
8553 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
8554 If omp_is_reference, use always omp simd arrays and set
8555 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
8556 fails, emit reference initialization.
8557
8558 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8559
8560 PR target/89803
8561 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
8562 _mm_mask_fpclass_sd_mask): New intrinsics.
8563 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
8564 * config/i386/i386-builtin.def
8565 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
8566 New builtins.
8567 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
8568 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
8569 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
8570 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
8571 case QI_FTYPE_V2SF_INT): Ditto.
8572 * config/i386/sse.md
8573 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
8574 Extended to insnstructions with mask operands.
8575
8576 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8577
8578 * config/rs6000/constraints.md (define_register_constraint "wp"):
8579 Delete.
8580 (define_register_constraint "wq"): Delete.
8581 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8582 (rs6000_init_hard_regno_mode_ok): Adjust.
8583 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8584 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
8585 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
8586 (define_mode_attr VSa): Delete.
8587 (define_mode_attr VSisa): New.
8588 (rest of file): Adjust.
8589 * doc/md.texi (Machine Constraints): Adjust.
8590
8591 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8592
8593 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
8594 (define_attr "enabled"): Handle those new isa values.
8595
8596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8597
8598 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
8599 (define_mode_attr VSr5): Delete.
8600 (define_mode_attr VStype_sqrt): Delete.
8601 (define_mode_iterator VSX_SPDP): Delete.
8602 (define_mode_attr VS_spdp_res): Delete.
8603 (define_mode_attr VS_spdp_insn): Delete.
8604 (define_mode_attr VS_spdp_type): Delete.
8605 (*vsx_sqrt<mode>2): Adjust.
8606 (vsx_<VS_spdp_insn>): Delete, split to...
8607 (vsx_xscvdpsp): ... this. New. And...
8608 (vsx_xvcvspdp): ... this. New. And...
8609 (vsx_xvcvdpsp): ... this. New.
8610
8611 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8612
8613 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
8614 and V2DF.
8615 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
8616 (rest of file): Adjust.
8617
8618 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8619
8620 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
8621 (vsx_extract_<mode>_var): Ditto.
8622
8623 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8624
8625 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
8626 with just "wa".
8627
8628 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8629
8630 * config/rs6000/constraints.md (define_register_constraint "ww"):
8631 Delete.
8632 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8633 (rs6000_init_hard_regno_mode_ok): Adjust.
8634 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8635 RS6000_CONSTRAINT_ww.
8636 * config/rs6000/rs6000.md: Adjust.
8637 * config/rs6000/vsx.md: Adjust.
8638 * doc/md.texi (Machine Constraints): Adjust.
8639
8640 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8641
8642 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
8643 (define_mode_attr sd): New.
8644 (define_mode_attr s): New.
8645 (define_mode_attr Ftrad): Delete.
8646 (define_mode_attr Fvsx): Delete.
8647 (define_mode_attr Fs): Delete.
8648 (rest of file): Use the new mode attributes.
8649 * config.rs6000/vsx.md: Use the new mode attributes.
8650
8651 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8652
8653 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
8654 with just "wa".
8655
8656 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8657
8658 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
8659 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
8660 used with VSX_B, VSX_D, or VSX_F, with just "wa".
8661
8662 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
8663
8664 PR target/78263
8665 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
8666 C++ with strict ANSI requirements.
8667
8668 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
8669
8670 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
8671 computations when step is 1.
8672
8673 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8674
8675 * config/rs6000/constraints.md (define_register_constraint "wf"):
8676 Delete.
8677 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8678 (rs6000_init_hard_regno_mode_ok): Adjust.
8679 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8680 RS6000_CONSTRAINT_wf.
8681 * config/rs6000/rs6000.md: Adjust.
8682 * config/rs6000/vsx.md: Adjust.
8683 * doc/md.texi (Machine Constraints): Adjust.
8684
8685 2019-06-04 Andrew Pinski <apinski@marvell.com>
8686
8687 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
8688 Fix ILP32 value.
8689
8690 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8691
8692 * config/rs6000/constraints.md (define_register_constraint "wd"):
8693 Delete.
8694 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8695 (rs6000_init_hard_regno_mode_ok): Adjust.
8696 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8697 RS6000_CONSTRAINT_wd.
8698 * config/rs6000/rs6000.md: Adjust.
8699 * config/rs6000/vsx.md: Adjust.
8700 * doc/md.texi (Machine Constraints): Adjust.
8701
8702 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8703
8704 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
8705 (rest of file): Adjust.
8706
8707 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8708
8709 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
8710 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
8711 (vsx_splat_<mode>_reg): Adjust.
8712
8713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8714
8715 * config/rs6000/constraints.md (define_register_constraint "ws"):
8716 Delete.
8717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8718 (rs6000_init_hard_regno_mode_ok): Adjust.
8719 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8720 RS6000_CONSTRAINT_ws.
8721 * config/rs6000/rs6000.md: Adjust.
8722 * config/rs6000/vsx.md: Adjust.
8723 * doc/md.texi (Machine Constraints): Adjust.
8724
8725 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8726
8727 * config/rs6000/constraints.md (define_register_constraint "wv"):
8728 Delete.
8729 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8730 (rs6000_init_hard_regno_mode_ok): Adjust.
8731 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8732 RS6000_CONSTRAINT_wv.
8733 * config/rs6000/rs6000.md: Adjust.
8734 * config/rs6000/vsx.md: Adjust.
8735 * doc/md.texi (Machine Constraints): Adjust.
8736
8737 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8738
8739 * config/rs6000/constraints.md (define_register_constraint "wi"):
8740 Delete.
8741 (define_register_constraint "wt"): Delete.
8742 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8743 (rs6000_init_hard_regno_mode_ok): Adjust.
8744 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8745 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
8746 * config/rs6000/rs6000.md: Adjust.
8747 * config/rs6000/vsx.md: Adjust.
8748 * doc/md.texi (Machine Constraints): Adjust.
8749
8750 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8751
8752 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
8753 const.
8754 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
8755 default_elf_asm_output_external.
8756
8757 2019-06-04 Martin Liska <mliska@suse.cz>
8758
8759 * ipa-icf.c (INCLUDE_LIST): Remove.
8760 (sem_item_optimizer::execute): Remove call to init_wpa.
8761 * ipa-icf.h (init_wpa): Remove.
8762
8763 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8764
8765 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
8766 conditional on combined for simd.
8767 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
8768 member.
8769 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
8770 constructs, don't remove lastprivate_conditional_map, but instead set
8771 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
8772 to parent construct temporaries.
8773 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
8774 like !ctx->lastprivate_conditional_map.
8775 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
8776 use up->outer context instead of up.
8777 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
8778 gimple_omp_for_combined_p.
8779 (expand_omp_for_static_nochunk): Likewise.
8780 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
8781 probably moved over into expand_omp_for_generic rather than being copied
8782 there.
8783
8784 2019-06-04 Martin Liska <mliska@suse.cz>
8785
8786 * value-prof.c (dump_histogram_value): Fix typo.
8787 (gimple_mod_subtract_transform): Likewise.
8788
8789 2019-06-04 Richard Biener <rguenther@suse.de>
8790
8791 PR middle-end/90726
8792 * tree-chrec.c (chrec_contains_symbols): Add to visited.
8793 (tree_contains_chrecs): Likewise.
8794 (chrec_contains_symbols_defined_in_loop): Move here and avoid
8795 exponential behaivor from ...
8796 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8797 ... here.
8798 (expression_expensive_p): Avoid exponential behavior and compute
8799 expanded size, rejecting any expansion.
8800 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
8801 (idx_contains_abnormal_ssa_name_p): Likewise.
8802 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
8803 (contains_abnormal_ssa_name_p): Simplify and use
8804 walk_tree_without_duplicates.
8805
8806 2019-06-04 Richard Biener <rguenther@suse.de>
8807
8808 PR tree-optimization/90738
8809 Revert
8810 2019-06-03 Richard Biener <rguenther@suse.de>
8811
8812 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8813 full reference tree and record in ref->ref.
8814 (vn_reference_lookup_3): Pass in original ref to
8815 ao_ref_init_from_vn_reference.
8816 (vn_reference_lookup): Likewise.
8817 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8818 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8819 Handle non-decl bases in the original reference.
8820
8821 2019-06-04 Martin Liska <mliska@suse.cz>
8822
8823 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
8824 number of references.
8825 (sem_item_optimizer::do_congruence_step):
8826 (sem_item_optimizer::worklist_push): Dump how references
8827 a class has.
8828 (sem_item_optimizer::worklist_pop): Use heap.
8829 (sem_item_optimizer::process_cong_reduction): Likewise.
8830 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
8831
8832 2019-06-04 Martin Liska <mliska@suse.cz>
8833
8834 * ipa-icf.h (struct sem_usage_pair_hash): New.
8835 (sem_usage_pair_hash::hash): Likewise.
8836 (sem_usage_pair_hash::equal): Likewise.
8837 (struct sem_usage_hash): Likewise.
8838 * ipa-icf.c (sem_item::sem_item): Initialize
8839 referenced_by_count.
8840 (sem_item::add_reference): Register a reference
8841 in ref_map and not in target->usages.
8842 (sem_item::setup): Remove initialization of
8843 dead vectors.
8844 (sem_item::~sem_item): Remove usage of dead vectors.
8845 (sem_item::dump): Remove dump of references.
8846 (sem_item_optimizer::sem_item_optimizer): Initialize
8847 m_references.
8848 (sem_item_optimizer::read_section): Remove useless
8849 dump.
8850 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
8851 (sem_item_optimizer::build_graph): Pass m_references
8852 to ::add_reference.
8853 (sem_item_optimizer::verify_classes): Remove usage of dead
8854 vectors.
8855 (sem_item_optimizer::traverse_congruence_split): Return true
8856 when a class is split.
8857 (sem_item_optimizer::do_congruence_step_for_index): Use
8858 hash_map for look up of (sem_item *, index). That brings
8859 significant speed up.
8860 (sem_item_optimizer::do_congruence_step): Return true
8861 when a split is done.
8862 (congruence_class::is_class_used): Use referenced_by_count.
8863
8864 2019-06-04 Alan Modra <amodra@gmail.com>
8865
8866 PR target/90689
8867 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
8868 error.
8869
8870 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8871
8872 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
8873 * config/rs6000/rs6000.c (direct_move_p): Adjust.
8874 (rs6000_secondary_reload_simple_move): Adjust.
8875 (rs6000_opt_masks): Neuter the "mfpgpr" option.
8876 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
8877 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
8878 comment.
8879 (power6x): Adjust.
8880 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
8881 (floatunssi<mode>2_lfiwzx): Adjust.
8882 (fix_trunc<mode>si2_stfiwx): Adjust.
8883 (fixuns_trunc<mode>si2_stfiwx): Adjust.
8884 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
8885 (mfpgpr): Mark as deprecated.
8886 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
8887 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
8888 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
8889
8890 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8891
8892 * config/rs6000/constraints.md (define_register_constraint "wg"):
8893 Delete.
8894 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8895 RS6000_CONSTRAINT_wg.
8896 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8897 (rs6000_init_hard_regno_mode_ok): Adjust.
8898 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
8899 Delete "wg" alternatives.
8900 * doc/md.texi (Machine Constraints): Adjust.
8901
8902 2019-06-03 Alan Modra <amodra@gmail.com>
8903
8904 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
8905 (get_uncond_jump_length): Assert length less than INT_MAX and
8906 non-negative.
8907
8908 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8909
8910 PR middle-end/64242
8911 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
8912 block.
8913 (expand_builtin_nonlocal_goto): Likewise.
8914
8915 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8916
8917 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
8918 (aarch64_asm_output_external): Declare.
8919 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
8920 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
8921 (aarch64_asm_output_alias): New.
8922 (aarch64_asm_output_external): New.
8923 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8924 (ASM_OUTPUT_EXTERNAL): Define.
8925
8926 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
8927 * tree-vrp.h (value_range_base::nonzero_p): New.
8928 (value_range_base::set_nonnull): Rename to...
8929 (value_range_base::set_nonzero): ...this.
8930 (value_range_base::set_null): Rename to...
8931 (value_range_base::set_zero): ...this.
8932 (value_range::set_nonnull): Remove.
8933 (value_range::set_null): Remove.
8934 * tree-vrp.c (range_is_null): Remove.
8935 (range_is_nonnull): Remove.
8936 (extract_range_from_binary_expr): Use value_range_base::*zero_p
8937 instead of range_is_*null.
8938 (extract_range_from_unary_expr): Same.
8939 (value_range_base::set_nonnull): Rename to...
8940 (value_range_base::set_nonzero): ...this.
8941 (value_range::set_nonnull): Remove.
8942 (value_range_base::set_null): Rename to...
8943 (value_range_base::set_zero): ...this.
8944 (value_range::set_null): Remove.
8945 (extract_range_from_binary_expr): Rename set_*null uses to
8946 set_*zero.
8947 (extract_range_from_unary_expr): Same.
8948 (union_helper): Same.
8949 * vr-values.c (get_value_range): Use set_*zero instead of
8950 set_*null.
8951 (vr_values::extract_range_from_binary_expr): Same.
8952 (vr_values::extract_range_basic): Same.
8953
8954 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8955
8956 PR driver/90684
8957 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
8958
8959 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8960
8961 * config/aarch64/iterators.md (MAX_OPP): New code attr.
8962 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
8963 Rename to...
8964 (aarch64_<su>abd<mode>_3): ... This.
8965 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
8966
8967 2019-06-03 Richard Biener <rguenther@suse.de>
8968
8969 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8970 full reference tree and record in ref->ref.
8971 (vn_reference_lookup_3): Pass in original ref to
8972 ao_ref_init_from_vn_reference.
8973 (vn_reference_lookup): Likewise.
8974 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8975 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8976 Handle non-decl bases in the original reference.
8977
8978 2019-06-03 Martin Liska <mliska@suse.cz>
8979
8980 * doc/generic.texi: Remove Java Trees.
8981
8982 2019-06-03 Martin Liska <mliska@suse.cz>
8983
8984 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
8985 returns 0 when operands are equal.
8986
8987 2019-06-03 Richard Biener <rguenther@suse.de>
8988
8989 PR tree-optimization/90716
8990 * tree-loop-distribution.c (destroy_loop): Process blocks in
8991 correct order.
8992
8993 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8994
8995 PR target/88837
8996 * vector-builder.h (vector_builder::count_dups): New method.
8997 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
8998 Declare prototype.
8999 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
9000 (vec_init<mode><Vel>): New pattern.
9001 * config/aarch64/aarch64.c (emit_insr): New function.
9002 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
9003 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
9004 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
9005 (aarch64_sve_expand_vector_init): Define two overloaded functions.
9006
9007 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9008
9009 PR tree-optimization/90681
9010 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
9011 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
9012 special case for SLP, but fail on non-groupped loads.
9013
9014 2019-06-03 Martin Liska <mliska@suse.cz>
9015
9016 * cfg.c (debug): Use TDF_DETAILS for debug and
9017 print edge info only once.
9018
9019 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
9020
9021 PR fortran/90539
9022 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
9023
9024 2019-06-01 Martin Sebor <msebor@redhat.com>
9025
9026 PR middle-end/90694
9027 * tree-pretty-print.c (dump_generic_node): Add parentheses.
9028
9029 2019-05-31 Jan Hubicka <jh@suse.cz>
9030
9031 * alias.c: Include ipa-utils.h.
9032 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
9033 * ipa-devirt.c (prevailing_odr_type): New.
9034 * ipa-utils.h (previaling_odr_type): Declare.
9035
9036 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
9037 Hongtao Liu <hongtao.liu@intel.com>
9038
9039 PR target/89355
9040 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
9041 NOTE_INSN_DELETED_LABEL check.
9042
9043 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
9044 Robert Suchanek <robert.suchanek@mips.com>
9045
9046 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
9047 and 3rd operands of the fmadd/fmsub/maddv builtin.
9048
9049 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9050
9051 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
9052 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9053 on OMP_SIMD if not nested inside of worksharing loop that also has
9054 lastprivate conditional clause for the same decl.
9055 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
9056 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
9057 on simd.
9058 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
9059 on simd construct.
9060 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
9061 on simd construct.
9062 (lower_lastprivate_clauses): Likewise.
9063 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
9064 calling lower_rec_input_clauses.
9065 (lower_omp_for): Likewise.
9066 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
9067 clause on simd construct.
9068 * omp-expand.c (expand_omp_simd): Initialize cond_var if
9069 OMP_CLAUSE__CONDTEMP_ clause is present.
9070
9071 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
9072 ivar and lvar.
9073
9074 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
9075
9076 PR c/43673
9077 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
9078 TEX_D32, TEX_D64 or TEX_D128.
9079
9080 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9081
9082 * match.pd (~(vec?cst1:cst2)): New transformation.
9083
9084 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9085
9086 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
9087 ((size_t)(A /[ex] B) CMP C): New transformation.
9088
9089 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
9090
9091 * doc/md.texi: Document define_insn_and_rewrite.
9092 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
9093 * gensupport.c (queue_elem): Update comment.
9094 (replace_operands_with_dups): New function.
9095 (gen_rewrite_sequence): Likewise.
9096 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
9097 * read-rtl.c (apply_subst_iterator): Likewise.
9098 (add_condition_to_rtx, named_rtx_p): Likewise.
9099 (rtx_reader::read_rtx_operand): Likewise.
9100 * config/aarch64/aarch64-sve.md
9101 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
9102 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
9103 define_insn_and_rewrite.
9104 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
9105 Remove separate define_split.
9106
9107 2019-05-31 Jan Hubicka <jh@suse.cz>
9108
9109 * tree-ssa-alias.c (type_has_components_p): New function.
9110 (aliasing_component_refs_p): Use it.
9111
9112 2019-05-31 Martin Liska <mliska@suse.cz>
9113
9114 * gdbhooks.py: Add const_tree to TreePrinter.
9115
9116 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
9117
9118 PR debug/86964
9119 * common.opt (feliminate-unused-debug-symbols): Enable by default.
9120 * doc/invoke.texi (Debugging Options): Document new default of
9121 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
9122
9123 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9124
9125 PR tree-optimization/90671
9126 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
9127 template_block used to be empty on the first call, don't use
9128 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
9129 seq with bb_seq and set it with set_bb_seq.
9130
9131 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
9132
9133 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
9134
9135 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9136 Michael Meissner <meissner@linux.ibm.com>
9137
9138 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
9139 (prefixed_mem_operand): Likewise.
9140 (non_prefixed_mem_operand): Likewise.
9141 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
9142 prototype.
9143 * config/rs6000/rs6000.c (print_operand_address): Handle
9144 PC-relative addresses.
9145 (mode_supports_prefixed_address_p): New function.
9146 (rs6000_prefixed_address): New function.
9147 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
9148 (SYMBOL_REF_PCREL_P): Likewise.
9149
9150 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9151
9152 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
9153 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
9154 (gimplify_omp_for): If worksharing loop with lastprivate conditional
9155 is nested inside of parallel region, add _condtemp_ clause to both.
9156 * tree-nested.c (convert_nonlocal_omp_clauses,
9157 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
9158 assertion failure.
9159 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
9160 member.
9161 * omp-general.c (omp_extract_for_data): Compute it.
9162 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
9163 (lower_rec_input_clauses): Likewise.
9164 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
9165 clause is already present, just add one further one after it.
9166 (lower_lastprivate_clauses): Handle cond_ptr with array type.
9167 (lower_send_shared_vars): Clear _condtemp_ vars.
9168 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
9169 or section or taskgroup.
9170 * omp-expand.c (determine_parallel_type): Disallow combining only if
9171 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
9172 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
9173 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9174 expand_omp_for_static_chunk, expand_omp_for): Use
9175 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
9176 determine if a special set of API routines are needed and if condtemp
9177 needs to be initialized, while always initialize cond_var if
9178 fd->lastprivate_conditional is non-zero.
9179
9180 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9181 Michael Meissner <meissner@linux.ibm.com>
9182
9183 * config/rs6000/constraints.md (eI): New constraint.
9184 * config/rs6000/predicates.md (cint34_operand): New predicate.
9185 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
9186 (SIGNED_34BIT_OFFSET_P): Likewise.
9187 * doc/md.texi (eI): Document constraint.
9188
9189 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
9190
9191 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
9192
9193 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9194 Michael Meissner <meissner@linux.ibm.com>
9195
9196 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
9197 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
9198 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
9199 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
9200 (OTHER_FUTURE_MASKS): Likewise.
9201 (POWERPC_MASKS): Likewise.
9202 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
9203 specified without -mprefixed-addr or -mcpu=future. Error if
9204 -mprefixed-addr is specified without -mcpu=future.
9205 (rs6000_opt_masks): Add entry for prefixed-addr.
9206 * rs6000.opt (mprefixed-addr): New option.
9207
9208 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
9209
9210 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
9211 cfun->is_thunk check.
9212
9213 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9214
9215 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
9216 to length.
9217
9218 2019-05-30 Martin Liska <mliska@suse.cz>
9219
9220 * gdbinit.in: Fix 'ptc' command. Add trt
9221 that prints TREE_TYPE($).
9222
9223 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
9224 Alan Modra <amodra@gmail.com>
9225
9226 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
9227 calls here...
9228 (rs6000_indirect_call_template_1): ...and here.
9229 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
9230 plt16_ha, plt16_lo, mtctr indirect calls. Use
9231 rs6000_pltseq_enum.
9232 (rs6000_decl_ok_for_sibcall): New function.
9233 (rs6000_function_ok_for_sibcall): Refactor.
9234 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
9235 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
9236 when pcrel. Reorganize.
9237 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
9238 * rs6000.h (rs6000_pltseq_enum): New enum.
9239 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
9240 (*pltseq_tocsave): Use rs6000_pltseq_enum.
9241 (*pltseq_plt16_ha): Likewise.
9242 (*pltseq_plt16_lo): Likewise.
9243 (*pltseq_mtctr): Likewise.
9244 (*pltseq_plt_pcrel): New insn.
9245 (*call_local_aix): Handle @notoc calls.
9246 (*call_value_local_aix): Likewise.
9247 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
9248 (*call_value_nonlocal_aix): Likewise.
9249 (*call_indirect_pcrel): New insn.
9250 (*call_value_indirect_pcrel): Likewise.
9251
9252 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
9253
9254 * config/i386/sse.md (*save_multiple<mode>): Rename from
9255 save_multiple<mode>.
9256 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
9257 (*restore_multiple_and_return<mode>): Rename from
9258 restore_multiple_and_return<mode>.
9259 (*restore_multiple_leave_return<mode>): Rename from
9260 restore_multiple_leave_return<mode>.
9261
9262 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
9263
9264 * config.gcc (rx-*-linux*): New target.
9265 * config/rx/elf.opt: New file.
9266 * config/rx/linux.h: Likewise.
9267 * config/rx/t-linux: Likewise.
9268 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
9269 make it zero.
9270 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
9271 (ASM_APP_OFF): Likewise.
9272 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
9273 moved elsewhere.
9274
9275 2019-05-29 Jan Hubicka <jh@suse.cz>
9276
9277 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
9278 variants are pointer equivalent.
9279
9280 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9281
9282 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
9283 * config/aarch64/aarch64-sve2.md: New file.
9284 (<u>avg<mode>3_floor): New pattern.
9285 (<u>avg<mode>3_ceil): Likewise.
9286 (*<sur>h<addsub><mode>): Likewise.
9287 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
9288 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
9289
9290 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9291
9292 PR bootstrap/90543
9293 * optc-save-gen.awk: In cl_optimization_print, use correct condition
9294 for var_opt_string printing. In cl_optimization_print_diff, print
9295 (null) instead of invoking undefined behavior if one of the
9296 var_opt_string pointers is NULL and use && instead of first || in the
9297 guarding condition. For var_target_other options, handle const char *
9298 target variables similarly to const char * optimize node variables.
9299
9300 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
9301
9302 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
9303 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
9304 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
9305 Add autib1716 and pacib1716 initialisation.
9306 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
9307 for autib1716 and pacib1716.
9308 * config/aarch64/aarch64-protos.h (aarch64_key_type,
9309 aarch64_post_cfi_startproc): Define.
9310 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
9311 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
9312 aarch64_handle_pac_ret_protection): Set default sign key to A.
9313 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
9314 aarch64_expand_prologue): Add check for b-key.
9315 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
9316 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
9317 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
9318 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
9319 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
9320 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
9321 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9322 * config/aarch64/aarch64.md (do_return): Add check for b-key.
9323 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
9324 pauth_hint_num_a with pauth_hint_num.
9325 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
9326 pauth_hint_num_a with pauth_hint_num.
9327 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
9328 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
9329 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9330 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
9331 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
9332 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
9333 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
9334 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9335 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
9336 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
9337 UNSPEC_AUTIA1716 respectively.
9338 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
9339 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
9340 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
9341 * doc/invoke.texi (-mbranch-protection): Add b-key type.
9342 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
9343 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
9344
9345 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9346
9347 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
9348 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
9349 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
9350 explicit clause on combined parallel into implicit shared clause.
9351 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
9352 and firstprivate if the decl has one too from combined parallel to
9353 the worksharing construct.
9354
9355 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
9356 Michael Meissner <meissner@linux.ibm.com>
9357
9358 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
9359
9360 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
9361
9362 * rtl.h (LABEL_REF_P): New #define.
9363
9364 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
9365
9366 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
9367
9368 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9369
9370 * internal-fn.c: Marked mask_load_direct as vectorizable.
9371 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
9372 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
9373 combined even if masks different with allow_slp_p param.
9374 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
9375 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
9376 dissolve SLP-only vectorizable groups when SLP has been discarded.
9377 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
9378 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
9379 masks.
9380 (vect_build_slp_tree_1): Fixed comment typo.
9381 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
9382 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
9383 loads for SLP only.
9384 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
9385 vectorizable.
9386 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
9387
9388 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9389
9390 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
9391 Remove obsolete use_thunk reference.
9392 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9393 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9394 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9395 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9396 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9397 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9398 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9399 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9400 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9401
9402 2019-05-28 Nathan Sidwell <nathan@acm.org>
9403
9404 * tree.h (IDENTIFIER_ANON_P): New.
9405 (anon_aggrname_format, anon_aggname_p): Don't declare.
9406 (make_anon_name): Declare.
9407 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
9408 (hash_tree): Likewise.
9409 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
9410 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
9411 (anon_cnt, make_anon_name): New.
9412
9413 2019-05-28 Martin Liska <mliska@suse.cz>
9414
9415 PR other/90315
9416 * opts-global.c (decode_options): Print help for all
9417 help_option_arguments.
9418 * opts.c (print_help): Add new argument.
9419 (common_handle_option): Remember all values into
9420 help_option_arguments.
9421 * opts.h (print_help): Add new argument.
9422
9423 2019-05-28 Martin Liska <mliska@suse.cz>
9424
9425 PR ipa/90555
9426 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
9427 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
9428 (func_checker::compare_bb): Call compare_loops.
9429
9430 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9431
9432 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9433 on sections construct.
9434 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
9435 construct.
9436 (lower_omp_sections): Handle lastprivate conditional.
9437 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
9438 lastprivate_conditional_map.
9439 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
9440
9441 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
9442 critical, taskgroup and section regions when looking for a region
9443 with non-NULL lastprivate_conditional_map.
9444
9445 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9446
9447 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
9448 (*ix86_gen_sub3): Ditto.
9449 (*ix86_gen_sub3_carry): Ditto.
9450 (*ix86_gen_one_cmpl2): Ditto.
9451 (*ix86_gen_andsp): Ditto.
9452 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
9453 (gen_and2_insn): New static function.
9454 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
9455 Use gen_add3_insn instead of ix86_gen_add3.
9456 (ix86_expand_split_stack_prologue): Use gen_add2_insn
9457 instead of ix86_gen_add3.
9458 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
9459 Use gen_sub3_insn instead of ix86_gen_sub3.
9460 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
9461 instead of ix86_gen_add3.
9462 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
9463 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
9464 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
9465 * config/i386/i386-options.c (ix86_option_override_internal):
9466 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
9467 ix86_gen_one_cmpl2 and ix86_gen_andsp.
9468
9469 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
9470
9471 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
9472 and DW_OP_GNU_const_index opcodes.
9473
9474 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9475
9476 * config/i386/i386.h (STACK_SIZE_MODE): Define.
9477
9478 2019-05-27 Richard Biener <rguenther@suse.de>
9479
9480 PR tree-optimization/90637
9481 * tree-ssa-sink.c (statement_sink_location): Honor the
9482 computed sink location for single-uses.
9483
9484 2019-05-27 Richard Biener <rguenther@suse.de>
9485
9486 PR middle-end/90610
9487 * match.pd (vec_perm): Avoid clobbering op0 when not generating
9488 a bit-insert.
9489
9490 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9491
9492 * config/i386/i386.md (@sub<mode>3_carry): Rename
9493 from sub<mode>3_carry.
9494 (@leave_<mode>): New expander.
9495 (*leave): Rename from leave.
9496 (*leave_rex64): Rename from leave_rex64.
9497 (@monitorx_<mode>): Rename from monitorx_<mode>.
9498 (@clzero_<mode>): Rename from clzero_<mode>.
9499 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
9500 from sse3_monitor_<mode>.
9501 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
9502 (*ix86_gen_leave): Ditto.
9503 (*ix86_gen_monitor): Ditto.
9504 (*ix86_gen_monitorx): Ditto.
9505 (*ix86_gen_clzero): Ditto.
9506 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
9507 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
9508 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
9509 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
9510 Use gen_sse3_monitor instead of ix86_gen_monitor.
9511 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
9512 instead of ix86_gen_monitorx.
9513 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
9514 instead of ix86_gen_clzero.
9515 * config/i386/i386-options.c (ix86_option_override_internal):
9516 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
9517 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
9518
9519 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9520
9521 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
9522 Rename from tls_global_dynamic_64_<mode>.
9523 (@tls_local_dynamic_base_64_<mode>): Rename from
9524 tls_local_dynamic_base_64_<mode>.
9525 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
9526 Remove indirect function.
9527 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
9528 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
9529 instead of ix86_gen_tls_global_dynamic_64.
9530 Use gen_tls_local_dynamic_base_64 instead of
9531 ix86_gen_tls_local_dynamic_base_64.
9532 * config/i386/i386-options.c (ix86_option_override_internal):
9533 Do not initialize ix86_gen_tls_global_dynamic_64 and
9534 ix86_gen_tls_local_dynamic_base_64.
9535
9536 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9537
9538 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
9539 Rename from pro_epilogue_adjust_stack_<mode>_add.
9540 (@pro_epilogue_adjust_stack_sub_<mode>)
9541 Rename from pro_epilogue_adjust_stack_<mode>_sub.
9542 (@allocate_stack_worker_probe_<mode>):
9543 Rename from allocate_stack_worker_probe_<mode>.
9544 (allocate_stack): Use gen_allocate_stack_worker_probe.
9545 (probe_stack): Use gen_probe_stack_1.
9546 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
9547 (@adjust_stack_and_probe_<mode>): Rename from
9548 adjust_stack_and_probe<mode>.
9549 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
9550 (stack_protect_set): Use gen_stack_protect_set_1.
9551 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
9552 (stack_protect_test): Use gen_stack_protect_test_1.
9553 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
9554 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
9555 Remove indirect function.
9556 (*ix86_gen_adjust_stack_and_probe): Ditto.
9557 (*ix86_gen_probe_stack_range): Ditto.
9558 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
9559 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
9560 (ix86_adjust_stack_and_probe_stack_clash): Use
9561 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
9562 (ix86_adjust_stack_and_probe): Ditto.
9563 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
9564 of ix86_gen_probe_stack_range.
9565 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
9566 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
9567 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
9568 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
9569 CODE_FOR_stack_protect_test_{si,di}.
9570 * config/i386/i386-options.c (ix86_option_override_internal):
9571 Do not initialize ix86_gen_allocate_stack_worker,
9572 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
9573
9574 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
9575
9576 * doc/invoke.texi (Link Options): Many editorial changes around
9577 -flinker-output.
9578
9579 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9580
9581 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
9582 pre-Solaris 11 referene and most Studio compiler details.
9583
9584 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
9585
9586 PR target/90530
9587 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
9588 DImode to SImode in floating-point registers on 64-bit target.
9589 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
9590 register_operand in xmpyu patterns.
9591
9592 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9593
9594 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
9595 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
9596 OMP_CLAUSE__REDUCTEMP_.
9597 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9598 OMP_CLAUSE__CONDTEMP_.
9599 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
9600 * tree-pretty-print.c (dump_omp_clause): Likewise.
9601 * tree-nested.c (convert_nonlocal_omp_clauses,
9602 convert_local_omp_clauses): Likewise.
9603 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
9604 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
9605 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
9606 on OMP_FOR.
9607 (gimplify_omp_for): Warn and disable conditional modifier from
9608 lastprivate on loop iterators.
9609 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
9610 member.
9611 * omp-general.c (omp_extract_for_data): Initialize it.
9612 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
9613 member.
9614 (delete_omp_context): Delete it.
9615 (lower_lastprivate_conditional_clauses): New function.
9616 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
9617 handle lastprivate conditional clauses.
9618 (lower_reduction_clauses): Add CLIST argument, emit it into
9619 the critical section if any.
9620 (lower_omp_sections): Adjust lower_lastprivate_clauses and
9621 lower_reduction_clauses callers.
9622 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
9623 to lower_lastprivate_clauses.
9624 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
9625 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
9626 clist into a critical section if not emitted there already by
9627 lower_reduction_clauses.
9628 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
9629 callers.
9630 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
9631 conditional variables.
9632 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
9633 clause is present.
9634 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9635 expand_omp_for_static_chunk): Handle lastprivate conditional.
9636 (expand_omp_for): Handle fd.lastprivate_conditional like
9637 fd.have_reductemp.
9638
9639 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9640
9641 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
9642 kernel does not exit cleanly.
9643 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
9644
9645 2019-05-24 Jason Merrill <jason@redhat.com>
9646
9647 Revert:
9648 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9649
9650 2019-05-24 Richard Biener <rguenther@suse.de>
9651
9652 PR testsuite/90607
9653 * tree-loop-distribution.c (struct partition): Add location
9654 member.
9655 (partition_alloc): Initialize all fields.
9656 (generate_memset_builtin): Use the location recorded in the
9657 partition for the generated call.
9658 (generate_memcpy_builtin): Likewise.
9659 (classify_partition): Record the location of a single store
9660 as location for the partition.
9661
9662 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9663
9664 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
9665 for lo-part.
9666
9667 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
9668
9669 PR target/90588
9670 * common/config/aarch64/aarch64-common.c
9671 (aarch64_rewrite_selected_cpu): Change local temporary variable
9672 type from unsigned long to uint64_t.
9673 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
9674 aarch64_get_extension_string_for_isa_flags): Change declaration to
9675 match new definition by replacing unsigned long with uint64_t.
9676
9677 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9678
9679 PR target/90568
9680 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
9681 gen_attr_type just once instead of 4-7 times. Formatting fixes.
9682 Handle stack_protect_test_<mode> codegen similarly to corresponding
9683 sub instruction.
9684
9685 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
9686
9687 * config/i386/darwin.h: Reject -mfentry*.
9688 * doc/sourcebuild.texi: Document mfentry target support.
9689
9690 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9691
9692 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
9693 Rename to rs6000_global_entry_point_prologue_needed_p. Return
9694 false for PC-relative functions.
9695 (rs6000_output_function_prologue): Change called function name to
9696 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
9697 name,1" for PC-relative functions.
9698 (rs6000_elf_declare_function_name): Change called function name to
9699 rs6000_global_entry_point_prologue_needed_p.
9700
9701 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
9702
9703 PR target/90552
9704 * config/i386/i386.c (gen_rtx_cost):
9705 Use ix86_tune_cost instead of ix86_cost.
9706
9707 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9708 Michael Meissner <meissner@linux.ibm.com>
9709 Segher Boessenkool <segher@kernel.crashing.org>
9710
9711 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
9712 OPTION_MASK_PCREL.
9713 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
9714 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
9715 (rs6000_fndecl_pcrel_p): Likewise.
9716 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
9717 error if -mpcrel is requested without -mcpu=future.
9718 (rs6000_opt_masks): Add entry for pcrel.
9719 (rs6000_fndecl_pcrel_p): New function.
9720 (rs6000_pcrel_p): Likewise.
9721 * config/rs6000/rs6000.opt (mpcrel): New option.
9722 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
9723
9724 2019-05-23 Jan Hubicka <jh@suse.cz>
9725 Martin Liska <mliska@suse.cz>
9726
9727 PR tree-optimization/90576
9728 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
9729 poly_int_tree_p.
9730 (aliasing_component_refs_p): Fix three way size compare conditional;
9731 give up earlier in case we can not decide on equivalence.
9732
9733 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9734 Michael Meissner <meissner@linux.ibm.com>
9735 Segher Boessenkool <segher@kernel.crashing.org>
9736
9737 * config.gcc: Add future cpu.
9738 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
9739 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
9740 #define.
9741 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
9742 (RS6000_CPU): New instantiation for future cpu.
9743 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9744 PROCESSOR_FUTURE.
9745 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
9746 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
9747 * config/rs6000/rs6000-tables.opt: Regenerate.
9748 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
9749 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
9750 (rs6000_machine_from_flags): Handle future cpu.
9751 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
9752 PROCESSOR_POWER9 for now.
9753 (rs6000_adjust_cost): Likewise.
9754 (rs6000_issue_rate): Likewise.
9755 (rs6000_register_move_cost): Likewise.
9756 (rs6000_opt_masks): Add entry for future.
9757 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
9758 (MASK_FUTURE): New #define.
9759 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
9760 * config/rs6000/rs6000.opt (mfuture): New target option.
9761 * doc/invoke.texi (mcpu): Add future cpu.
9762
9763 2019-05-23 Martin Liska <mliska@suse.cz>
9764
9765 PR c++/90587
9766 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
9767 operation points to a temporary (pointed via tree_to_wide_ref)
9768 that is out of scope after the &.
9769
9770 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
9771
9772 PR c++/90592
9773 * doc/extend.texi (Function Names): Add missing word.
9774
9775 2019-05-23 Richard Biener <rguenther@suse.de>
9776
9777 PR tree-optimization/88440
9778 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
9779 at -O[2s]+.
9780 * tree-loop-distribution.c (generate_memset_builtin): Fold the
9781 generated call.
9782 (generate_memcpy_builtin): Likewise.
9783 (distribute_loop): Pass in whether to only distribute patterns.
9784 (prepare_perfect_loop_nest): Also allow size optimization.
9785 (pass_loop_distribution::execute): When optimizing a loop
9786 nest for size allow pattern replacement.
9787
9788 2019-05-23 Jakub Jelinek <jakub@redhat.com>
9789
9790 PR target/90568
9791 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
9792 of xor.
9793
9794 2019-05-23 Martin Liska <mliska@suse.cz>
9795
9796 PR sanitizer/90570
9797 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
9798 expression similarly to gimplify_decl_expr.
9799
9800 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9801
9802 * cse.c (cse_dump_path): s/dump_file/f.
9803
9804 2019-05-22 David Malcolm <dmalcolm@redhat.com>
9805
9806 PR c++/90462
9807 * diagnostic-format-json.cc: Include "selftest.h".
9808 (json_from_expanded_location): Only add "file" key for non-NULL
9809 file strings.
9810 (json_from_location_range): Don't add "start" and "finish"
9811 children if they are UNKNOWN_LOCATION.
9812 (selftest::test_unknown_location): New selftest.
9813 (selftest::test_bad_endpoints): New selftest.
9814 (selftest::diagnostic_format_json_cc_tests): New function.
9815 * json.cc (json::object::get): New function.
9816 (selftest::test_object_get): New selftest.
9817 (selftest::json_cc_tests): Call it.
9818 * json.h (json::object::get): New decl.
9819 * selftest-run-tests.c (selftest::run_tests): Call
9820 selftest::diagnostic_format_json_cc_tests.
9821 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
9822 decl.
9823
9824 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
9825 Andrew Stubbs <amd@codesourcery.com>
9826
9827 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
9828 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
9829 (kernel): Rename to...
9830 (main_kernel): ... this.
9831 (load_image): Load _init_array and _fini_array kernels.
9832 (run): Add argument for kernel to run.
9833 (main): Run init_array_kernel before main_kernel, and
9834 fini_array_kernel after.
9835 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
9836 amdgpu_hsa_kernel attribute on functions.
9837 (gcn_disable_constructors): Delete.
9838 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
9839 * config/gcn/crt0.c (size_t): Define.
9840 (_init_array, _fini_array): New.
9841 (__preinit_array_start, __preinit_array_end,
9842 __init_array_start, __init_array_end,
9843 __fini_array_start, __fini_array_end): Declare weak references.
9844
9845 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
9846
9847 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
9848
9849 2019-05-22 Jason Merrill <jason@redhat.com>
9850
9851 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9852
9853 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
9854
9855 PR target/88483
9856 * config/i386/i386-options.c (ix86_init_machine_status): Set
9857 stack_frame_required to true.
9858 * config/i386/i386.c (ix86_get_frame_size): New function.
9859 (ix86_frame_pointer_required): Replace get_frame_size with
9860 ix86_get_frame_size.
9861 (ix86_compute_frame_layout): Likewise.
9862 (ix86_find_max_used_stack_alignment): Changed to void. Set
9863 stack_frame_required.
9864 (ix86_finalize_stack_frame_flags): Always call
9865 ix86_find_max_used_stack_alignment. Replace get_frame_size with
9866 ix86_get_frame_size.
9867 * config/i386/i386.h (machine_function): Add stack_frame_required.
9868
9869 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
9870
9871 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
9872
9873 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
9874
9875 * common/config/aarch64/aarch64-common.c
9876 (struct aarch64_option_extension, struct processor_name_to_arch,
9877 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
9878 aarch64_contains_opt,
9879 aarch64_get_extension_string_for_isa_flags): Change type of
9880 variables storing flags to uint64_t.
9881 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
9882 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
9883 * config/aarch64/aarch64.c (struct processor,
9884 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
9885 aarch64_validate_march, aarch64_override_options,
9886 aarch64_option_print, aarch64_handle_attr_isa_flags,
9887 aarch64_declare_function_name, aarch64_start_file): Make flag
9888 variables uint64_t.
9889 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
9890 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
9891 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
9892 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
9893 * config/aarch64/driver-aarch64.c
9894 (struct aarch64_arch_extension, struct aarch64_core_data,
9895 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
9896 flag variables uint64_t.
9897 * doc/invoke.texi: Add documentation for new arguments.
9898
9899 2019-05-22 Richard Biener <rguenther@suse.de>
9900
9901 * alias.c (ao_ref_from_mem): Move stack-slot sharing
9902 rewrite ...
9903 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
9904
9905 2019-05-22 Martin Liska <mliska@suse.cz>
9906
9907 PR lto/90500
9908 * doc/extend.texi: Document the change.
9909
9910 2019-05-22 Richard Biener <rguenther@suse.de>
9911
9912 PR tree-optimization/90450
9913 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
9914 (mem_ref_hasher::equal): Check it.
9915 (mem_ref_alloc): Initialize it.
9916 (gather_mem_refs_stmt): Set it.
9917
9918 2019-05-22 Richard Biener <rguenther@suse.de>
9919
9920 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
9921 Add ABS_EXPR.
9922 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
9923 as ABSU_EXPR.
9924
9925 2019-05-22 Alan Modra <amodra@gmail.com>
9926
9927 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
9928 (ASM_CPU_SPEC): Conditionally add -many.
9929 * config/rs6000/rs6000.c (rs6000_machine): New static var.
9930 (rs6000_machine_from_flags, emit_asm_machine): New functions..
9931 (rs6000_file_start): ..extracted from here, and modified to
9932 test all ISA bits.
9933 (rs6000_output_function_prologue): Emit .machine as necessary.
9934
9935 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
9936
9937 PR middle-end/90553
9938 * ira-lives.c (process_bb_node_lives): Consider defs
9939 for a call insn to be die before the call, not after.
9940
9941 * function.c (assign_parm_setup_block): Raise alignment of
9942 stacked parameter only for STRICT_ALIGNMENT targets.
9943
9944 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9945
9946 * config/rs6000/constraints.md (define_register_constraint "wz"):
9947 Delete.
9948 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9949 RS6000_CONSTRAINT_wz.
9950 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9951 (rs6000_init_hard_regno_mode_ok): Adjust.
9952 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
9953 * doc/md.texi (Machine Constraints): Adjust.
9954
9955 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9956
9957 * config/rs6000/constraints.md (define_register_constraint "wl"):
9958 Delete.
9959 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9960 RS6000_CONSTRAINT_wl.
9961 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9962 (rs6000_init_hard_regno_mode_ok): Adjust.
9963 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
9964 * doc/md.texi (Machine Constraints): Adjust.
9965
9966 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9967
9968 * config/rs6000/constraints.md (define_register_constraint "wm"):
9969 Delete.
9970 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9971 RS6000_CONSTRAINT_wm.
9972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9973 (rs6000_init_hard_regno_mode_ok): Adjust.
9974 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
9975 * doc/md.texi (Machine Constraints): Adjust.
9976
9977 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9978
9979 * config/rs6000/constraints.md (define_register_constraint "wk"):
9980 Delete.
9981 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9982 RS6000_CONSTRAINT_wk.
9983 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9984 (rs6000_init_hard_regno_mode_ok): Adjust.
9985 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
9986 * doc/md.texi (Machine Constraints): Adjust.
9987
9988 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9989
9990 * config/rs6000/constraints.md (define_register_constraint "wj"):
9991 Delete.
9992 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9993 RS6000_CONSTRAINT_wj.
9994 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9995 (rs6000_init_hard_regno_mode_ok): Adjust.
9996 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
9997 (VS_64dm): Delete.
9998 * config/rs6000/vsx.md: Ditto.
9999 * doc/md.texi (Machine Constraints): Adjust.
10000
10001 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10002
10003 * config/rs6000/constraints.md (define_register_constraint "wh"):
10004 Delete.
10005 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10006 RS6000_CONSTRAINT_wh.
10007 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10008 (rs6000_init_hard_regno_mode_ok): Adjust.
10009 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
10010 * doc/md.texi (Machine Constraints): Adjust.
10011
10012 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10013
10014 PR target/90547
10015 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10016 Avoid calling gen_lowpart with CONST operand.
10017
10018 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
10019
10020 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
10021 field template_last_to_copy.
10022 (ssa_create_duplicates): Set it, and use it. Attempt to
10023 preserve more debug stmts.
10024
10025 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10026
10027 * config/i386/sse.md (VF1_AVX2): New mode iterator.
10028 (signbit<mode>2): New expander
10029
10030 2019-05-21 James Clarke <jrtc27@jrtc27.com>
10031
10032 PR bootstrap/87338
10033 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
10034 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
10035
10036 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10037
10038 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
10039 %ebx and %ecx bafore calling cpuid with leaf 1 or
10040 non-constant leaf argument.
10041
10042 2019-05-21 Alan Modra <amodra@gmail.com>
10043
10044 PR target/90545
10045 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
10046 power9 direct move cost.
10047
10048 2019-05-21 Richard Biener <rguenther@suse.de>
10049
10050 PR middle-end/90510
10051 * fold-const.c (fold_read_from_vector): New function.
10052 * fold-const.h (fold_read_from_vector): Declare.
10053 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
10054 single-element insert permutations. Canonicalize selector
10055 further and fix issue with last commit.
10056
10057 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10058
10059 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
10060 parameter with default value false to declaration.
10061 (split_edges_for_insertion): New inline function. Wrapper for
10062 split_critical_edges with for_edge_insertion_p = true.
10063 * tree-cfg.c (split_critical_edges): Don't split non-critical
10064 edges if for_edge_insertion_p is false. Fix whitespace.
10065 * tree-ssa-pre.c (pass_pre::execute): Call
10066 split_edges_for_insertion instead of split_critical_edges.
10067 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
10068 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
10069 (pass_data_sink_code): Update function name in the comment.
10070
10071 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10072
10073 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
10074 around is_value_included_in that knows how to handle BIT_AND_EXPR.
10075 (is_pred_expr_subset_of): Use the new function. Handle more cases where
10076 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
10077 positives.
10078
10079 2019-05-21 Martin Liska <mliska@suse.cz>
10080
10081 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
10082 an extra newline.
10083 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
10084 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
10085 vec_lvsr.
10086 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10087 Quote a C type.
10088 (rs6000_function_arg): Likewise.
10089 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
10090 (rs6000_expand_ternop_builtin): Use interval syntax.
10091 (get_element_number): Likewise.
10092 (altivec_expand_builtin): Likewise.
10093 (rs6000_get_function_versions_dispatcher): Quote target_clones.
10094
10095 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10096
10097 PR c++/59813
10098 PR target/90418
10099 * function.h (struct function): Add calls_eh_return member.
10100 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
10101 gimplifying __builtin_eh_return call.
10102 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
10103 to cfun.
10104 (expand_call_inline): Or in src_cfun->calls_eh_return into
10105 dst_cfun->calls_eh_return.
10106 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
10107 cfun->calls_eh_return.
10108 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
10109 * lto-streamer-out.c (output_struct_function_base): Write
10110 calls_eh_return.
10111
10112 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
10113
10114 PR rtl-optimization/43147
10115 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
10116 IX86_BUILTIN_SHUFPD.
10117
10118 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10119
10120 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
10121 (refs_may_alias_p_1): ... here; update stats.
10122 (refs_may_alias_p): Do not update stats here.
10123
10124 2019-05-20 Richard Biener <rguenther@suse.de>
10125
10126 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
10127 doesn't produce pointers.
10128 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
10129 the first operand points to.
10130
10131 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10132
10133 * tree-ssa-alias.c (compare_sizes): New function.
10134 (sompare_type_sizes): New function
10135 (aliasing_component_refs_p): Use it.
10136 (indirect_ref_may_alias_decl_p): Likewise.
10137
10138 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10139
10140 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
10141
10142 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10143
10144 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
10145 (LIBLSAN_EARLY_SPEC): Likewise.
10146 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
10147
10148 2019-05-20 Martin Liska <mliska@suse.cz>
10149
10150 * config/i386/i386.c (ix86_libc_has_fast_function):
10151 Add ATTRIBUTE_UNUSED for the argument.
10152
10153 2019-05-20 Richard Biener <rguenther@suse.de>
10154
10155 * gimple-match-head.c: Include vec-perm-indices.h.
10156 * generic-match-head.c: Likewise.
10157 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
10158 is included.
10159 * fold-const.c (fold_vec_perm): Export.
10160 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
10161 (match.pd): ...here.
10162
10163 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10164
10165 * cfgloop.h (struct loop): Add simdlen member.
10166 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
10167 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
10168 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
10169 as new argument to autovectorize_vector_sizes target hook. If
10170 loop->simdlen, pick up vector size where the vectorization factor
10171 is equal to loop->simd, and if there is none, fall back to the first
10172 successful one.
10173 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
10174 caller.
10175 * omp-low.c (omp_clause_aligned_alignment): Likewise.
10176 * omp-general.c (omp_max_vf): Likewise.
10177 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
10178 * tree-vect-slp.c (vect_slp_bb): Likewise.
10179 * target.def (autovectorize_vector_sizes): Add ALL argument and
10180 document it.
10181 * doc/tm.texi: Adjust documentation.
10182 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
10183 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
10184 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
10185 bool argument.
10186 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
10187 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
10188 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
10189 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
10190 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
10191 preferred vector size is not 512-bit or 256-bit, just put those
10192 unpreferred ones last.
10193
10194 2019-05-20 Martin Liska <mliska@suse.cz>
10195
10196 * targhooks.c (default_libc_has_fast_function): New function.
10197 * targhooks.h (default_libc_has_fast_function): Likewise.
10198
10199 2019-05-20 Martin Liska <mliska@suse.cz>
10200
10201 PR middle-end/90263
10202 * builtins.c (expand_builtin_memory_copy_args): When having a
10203 target with fast mempcpy implementation do now use memcpy.
10204 * config/i386/i386.c (ix86_libc_has_fast_function): New.
10205 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
10206 * doc/tm.texi: Likewise.
10207 * doc/tm.texi.in: Likewise.
10208 * target.def:
10209 * expr.c (emit_block_move_hints): Add 2 new arguments.
10210 * expr.h (emit_block_move_hints): Bail out when libcall
10211 to memcpy would be used.
10212
10213 2019-05-20 Martin Liska <mliska@suse.cz>
10214
10215 * profile-count.c: Add vertical spacing in order
10216 to separate functions.
10217 * profile-count.h: Likewise.
10218
10219 2019-05-20 Martin Liska <mliska@suse.cz>
10220
10221 * profile-count.h: Do not use full qualified
10222 names if possible.
10223 * profile-count.c (profile_count::to_frequency): Likewise.
10224
10225 2019-05-20 Martin Liska <mliska@suse.cz>
10226
10227 * profile-count.h (enum profile_quality): Use capital letters
10228 for enum value names. Use the adjusted names.
10229 * profile-count.c: Use the adjusted names.
10230
10231 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10232
10233 * config/rs6000/constraints.md (define_register_constraint "wH"):
10234 Delete.
10235 (define_register_constraint "wI"): Delete.
10236 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10237 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
10238 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10239 (rs6000_init_hard_regno_mode_ok): Adjust.
10240 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
10241 resp. "d", or with "wa" as appropriate, all with "p8v".
10242 * config/rs6000/vsx.md: Ditto.
10243 * doc/md.texi (Machine Constraints): Adjust.
10244
10245 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10246
10247 * config/rs6000/constraints.md (define_register_constraint "wy"):
10248 Delete.
10249 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10250 RS6000_CONSTRAINT_wy.
10251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10252 (rs6000_init_hard_regno_mode_ok): Adjust.
10253 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
10254 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
10255 (define_mode_attr Fisa): New.
10256 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
10257 * doc/md.texi (Machine Constraints): Adjust.
10258
10259 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10260
10261 * config/rs6000/constraints.md (define_register_constraint "wu"):
10262 Delete.
10263 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10264 RS6000_CONSTRAINT_wu.
10265 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10266 (rs6000_init_hard_regno_mode_ok): Adjust.
10267 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
10268 both with "p8v".
10269 (define_mode_attr Fa): Delete.
10270 * config/rs6000/vsx.md: Ditto.
10271 * doc/md.texi (Machine Constraints): Adjust.
10272
10273 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10274
10275 * config/rs6000/constraints.md (define_register_constraint "wJ"):
10276 Delete.
10277 (define_register_constraint "wK"): Delete.
10278 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10279 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
10280 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10281 (rs6000_init_hard_regno_mode_ok): Adjust.
10282 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
10283 Replace "wK" constraint by "wH" with "p9v".
10284 * config/rs6000/vsx.md: Ditto.
10285 * doc/md.texi (Machine Constraints): Adjust.
10286
10287 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10288
10289 * config/rs6000/constraints.md (define_register_constraint "wb"):
10290 Delete.
10291 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10292 RS6000_CONSTRAINT_wb.
10293 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10294 (rs6000_init_hard_regno_mode_ok): Adjust.
10295 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
10296 * config/rs6000/vsx.md: Ditto.
10297 * doc/md.texi (Machine Constraints): Adjust.
10298
10299 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10300
10301 * config/rs6000/constraints.md (define_register_constraint "wo"):
10302 Delete.
10303 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10304 RS6000_CONSTRAINT_wo.
10305 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10306 (rs6000_init_hard_regno_mode_ok): Adjust.
10307 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
10308 * config/rs6000/altivec.md: Ditto.
10309 * doc/md.texi (Machine Constraints): Adjust.
10310
10311 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10312
10313 * config/darwin-c.c (darwin_register_objc_includes): Do not
10314 prepend the sysroot when building gnu-runtime header search
10315 paths.
10316
10317 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10318
10319 * config/darwin.c (darwin_file_end): Use switch_to_section ()
10320 instead of direct output of the asm.
10321
10322 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10323
10324 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
10325 argument to be type bool (was int before).
10326 (rs6000_emit_epilogue): Simplify some code. Declare some variables
10327 at first use. Use type bool for some variables. Fix a theoretical
10328 eh_return bug for svr4.
10329
10330 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10331
10332 * config/rs6000/rs6000.md (isa): New attribute.
10333 (enabled): New attribute.
10334
10335 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
10336
10337 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
10338 assemble_start_function and assemble_end_function.
10339
10340 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
10341
10342 PR middle-end/89433
10343 * omp-general.c (oacc_verify_routine_clauses): Change formal
10344 parameters. Add checking if already marked with an OpenACC
10345 'routine' directive. Adjust all users.
10346
10347 PR middle-end/89433
10348 * omp-general.c (oacc_build_routine_dims): Move some of its
10349 processing into...
10350 (oacc_verify_routine_clauses): ... this new function.
10351 * omp-general.h (oacc_verify_routine_clauses): New prototype.
10352
10353 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10354
10355 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
10356 formating of picbase labels to match other ports.
10357
10358 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10359
10360 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
10361 in the generated code.
10362
10363 2019-05-16 Martin Sebor <msebor@redhat.com>
10364
10365 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
10366 identifiers, keywords, operators, and types in diagnostics. Correct
10367 quoting, spelling, and sentence capitalization issues.
10368 (expand_builtin_atomic_is_lock_free): Same.
10369 (fold_builtin_next_arg): Same.
10370 * cfgexpand.c (expand_one_var): Same.
10371 (tree_conflicts_with_clobbers_p): Same.
10372 (expand_asm_stmt): Same.
10373 (verify_loop_structure): Same.
10374 * cgraphunit.c (process_function_and_variable_attributes): Same.
10375 * collect-utils.c (collect_execute): Same.
10376 * collect2.c (maybe_run_lto_and_relink): Same.
10377 (is_lto_object_file): Same.
10378 (scan_prog_file): Same.
10379 * convert.c (convert_to_real_1): Same.
10380 * dwarf2out.c (dwarf2out_begin_prologue): Same.
10381 * except.c (verify_eh_tree): Same.
10382 * gcc.c (execute): Same.
10383 (eval_spec_function): Same.
10384 (run_attempt): Same.
10385 (driver::set_up_specs): Same.
10386 (compare_debug_auxbase_opt_spec_function): Same.
10387 * gcov-tool.c (unlink_gcda_file): Same.
10388 (do_merge): Same.
10389 (do_rewrite): Same.
10390 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
10391 * gimplify.c (gimplify_asm_expr): Same.
10392 (gimplify_adjust_omp_clauses): Same.
10393 * hsa-gen.c (gen_hsa_addr_insns): Same.
10394 (gen_hsa_insns_for_load): Same.
10395 (gen_hsa_cmp_insn_from_gimple): Same.
10396 (gen_hsa_insns_for_operation_assignment): Same.
10397 (gen_get_level): Same.
10398 (gen_hsa_alloca): Same.
10399 (omp_simple_builtin::generate): Same.
10400 (gen_hsa_atomic_for_builtin): Same.
10401 (gen_hsa_insns_for_call): Same.
10402 * input.c (dump_location_info): Same.
10403 * ipa-devirt.c (compare_virtual_tables): Same.
10404 * ira.c (ira_setup_eliminable_regset): Same.
10405 * lra-assigns.c (lra_assign): Same.
10406 * lra-constraints.c (lra_constraints): Same.
10407 * lto-streamer-in.c (lto_input_mode_table): Same.
10408 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
10409 (merge_and_complain): Same.
10410 (compile_offload_image): Same.
10411 (compile_images_for_offload_targets): Same.
10412 (debug_objcopy): Same.
10413 (run_gcc): Same.
10414 (main): Same.
10415 * opts.c (print_specific_help): Same.
10416 (parse_no_sanitize_attribute): Same.
10417 (print_help): Same.
10418 (handle_param): Same.
10419 * plugin.c (add_new_plugin): Same.
10420 (parse_plugin_arg_opt): Same.
10421 (try_init_one_plugin): Same.
10422 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
10423 operators, and types in diagnostics. Correct quoting and spelling
10424 issues.
10425 * read-rtl-function.c (parse_edge_flag_token): Same.
10426 (function_reader::parse_enum_value): Same.
10427 * reg-stack.c (check_asm_stack_operands): Same.
10428 * regcprop.c (validate_value_data): Same.
10429 * sched-rgn.c (make_pass_sched_fusion): Same.
10430 * stmt.c (check_unique_operand_names): Same.
10431 * targhooks.c (default_target_option_pragma_parse): Same.
10432 * tlink.c (recompile_files): Same.
10433 * toplev.c (process_options): Same.
10434 (do_compile): Same.
10435 * trans-mem.c (diagnose_tm_1): Same.
10436 (ipa_tm_scan_irr_block): Same.
10437 (ipa_tm_diagnose_transaction): Same.
10438 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
10439 format a tree code name in a diagnostic.
10440 (verify_types_in_gimple_min_lval): Same.
10441 (verify_types_in_gimple_reference): Same.
10442 (verify_gimple_call): Same.
10443 (verify_gimple_assign_unary): Same.
10444 (verify_gimple_assign_binary): Same.
10445 (verify_gimple_assign_ternary): Same.
10446 (verify_gimple_assign_single): Same.
10447 (verify_gimple_switch): Same.
10448 (verify_gimple_label): Same.
10449 (verify_gimple_phi): Same.
10450 (verify_gimple_in_seq): Same.
10451 (verify_eh_throw_stmt_node): Same.
10452 (collect_subblocks): Same.
10453 (gimple_verify_flow_info): Same.
10454 (do_warn_unused_result): Same.
10455 * tree-inline.c (expand_call_inline): Same.
10456 * tree-into-ssa.c (update_ssa): Same.
10457 * tree.c (tree_int_cst_elt_check_failed): Same.
10458 (tree_vec_elt_check_failed): Same.
10459 (omp_clause_operand_check_failed): Same.
10460 (verify_type_variant): Same.
10461 (verify_type): Same.
10462 * value-prof.c (verify_histograms): Same.
10463 * varasm.c (assemble_start_function): Same.
10464
10465 2019-05-16 Martin Sebor <msebor@redhat.com>
10466
10467 * config/i386/i386-expand.c (get_element_number): Quote keywords
10468 and other internal names in diagnostics. Adjust other diagnostic
10469 formatting issues noted by -Wformat-diag.
10470 * config/i386/i386-features.c
10471 (ix86_mangle_function_version_assembler_name): Same.
10472 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
10473 * config/i386/i386.c (ix86_function_type_abi): Same.
10474 (ix86_function_ms_hook_prologue): Same.
10475 (classify_argument): Same.
10476 (ix86_expand_prologue): Same.
10477 (ix86_md_asm_adjust): Same.
10478 (ix86_memmodel_check): Same.
10479
10480 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10481
10482 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
10483 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
10484 and fpxx modes.
10485
10486 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
10487
10488 PR target/90497
10489 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
10490 intrinsics without SSE/SSE2/SSSE3.
10491 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
10492 check.
10493 (*mmx_uavgv8qi3): Likewise.
10494
10495 2019-05-17 Richard Biener <rguenther@suse.de>
10496
10497 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
10498 VEC_PERM_EXPR as __VEC_PERM with -gimple.
10499
10500 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
10501
10502 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
10503 vec_sldw insn pattern.
10504
10505 2019-05-17 Richard Biener <rguenther@suse.de>
10506
10507 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
10508
10509 2019-05-17 Martin Liska <mliska@suse.cz>
10510
10511 PR driver/90496
10512 * toplev.c (output_stack_usage): With LTO and sanitizer it
10513 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
10514 has no file location.
10515
10516 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10517
10518 PR c++/90484
10519 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
10520 sz0 is equal to sz1, instead return false in that case.
10521
10522 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
10523 has non-constant expression, force sctx.lane and use two
10524 argument IFN_GOMP_SIMD_LANE instead of single argument.
10525 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
10526 two argument IFN_GOMP_SIMD_LANE without lhs.
10527 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
10528 member.
10529 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
10530 Define.
10531 (LOOP_REQUIRES_VERSIONING): Or in
10532 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
10533 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10534 simd_if_cond.
10535 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
10536 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
10537 from simd if clause if needed.
10538
10539 2019-05-16 Richard Biener <rguenther@suse.de>
10540
10541 * tree-affine.c (expr_to_aff_combination): New function split
10542 out from...
10543 (tree_to_aff_combination): ... here.
10544 (aff_combination_expand): Avoid building a GENERIC tree.
10545
10546 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
10547
10548 * cgraphunit.c (cgraph_node::expand_thunk): Remove
10549 assemble_start_function and assemble_end_function calls.
10550 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
10551 assemble_start_function and assemble_end_function.
10552 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
10553 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
10554 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
10555 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
10556 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
10557 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
10558 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
10559 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
10560 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10561 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10562 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10563 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
10564 Likewise.
10565 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10566 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
10567 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
10568 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
10569 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10570 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10571 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
10572 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
10573 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10574 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
10575 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10576 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10577 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
10578 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
10579 Likewise.
10580 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10581 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10582 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
10583
10584 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
10585
10586 * tree-ssa-alias.c (alias_stats): Add
10587 aliasing_component_refs_p_may_alias and
10588 aliasing_component_refs_p_no_alias.
10589 (dump_alias_stats): Print aliasing_component_refs_p stats.
10590 (aliasing_component_refs_p): Update stats.
10591
10592 2019-05-16 Martin Liska <mliska@suse.cz>
10593
10594 PR lto/90500
10595 * multiple_target.c (expand_target_clones): Do not allow
10596 target_clones being used with a symbol that is an alias.
10597
10598 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
10599
10600 PR tree-optimization/90394
10601 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
10602 positives rather than ICE for cases where (code2 == NE_EXPR
10603 && code1 == BIT_AND_EXPR).
10604
10605 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10606
10607 PR fortran/90329
10608 * tree-core.h (struct tree_decl_common): Document
10609 decl_nonshareable_flag for PARM_DECLs.
10610 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
10611 * calls.c (expand_call): Don't try tail call if caller
10612 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
10613 passed on the stack and callee needs to pass any arguments on the
10614 stack.
10615 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10616 else if instead of series of mutually exclusive ifs. Handle
10617 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
10618 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10619
10620 * lto-streamer.h (LTO_major_version): Bump to 9.
10621
10622 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
10623
10624 PR tree-optimization/90106
10625 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
10626 new parameter as new internal function call, also move it to new
10627 basic block.
10628 (use_internal_fn): Pass internal function call to
10629 shrink_wrap_one_built_in_call_with_conds.
10630
10631 2019-05-15 Jakub Jelinek <jakub@redhat.com>
10632
10633 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
10634 max_vf to 1.
10635 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
10636 safelen_int and set loop->dont_vectorize.
10637
10638 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10639
10640 PR target/89021
10641 * config/i386/i386-builtin.def: Enable MMX intrinsics with
10642 SSE/SSE2/SSSE3.
10643 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10644 Likewise.
10645 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
10646 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
10647 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
10648 is defined.
10649
10650 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10651
10652 PR target/89021
10653 * config/i386/mmx.md (*vec_dupv2sf): Changed to
10654 define_insn_and_split to support SSE emulation.
10655 (*vec_extractv2sf_0): Likewise.
10656 (*vec_extractv2sf_1): Likewise.
10657 (*vec_extractv2si_0): Likewise.
10658 (*vec_extractv2si_1): Likewise.
10659 (*vec_extractv2si_zext_mem): Likewise.
10660 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
10661 (vec_extractv2sf_1 splitter): Likewise.
10662 (vec_extractv2sfsf): Likewise.
10663 (vec_setv2si): Likewise.
10664 (vec_extractv2si_1 splitter): Likewise.
10665 (vec_extractv2sisi): Likewise.
10666 (vec_setv4hi): Likewise.
10667 (vec_extractv4hihi): Likewise.
10668 (vec_setv8qi): Likewise.
10669 (vec_extractv8qiqi): Likewise.
10670 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10671 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
10672 (vec_extractv2sisi): Likewise.
10673 (vec_extractv4hihi): Likewise.
10674 (vec_extractv8qiqi): Likewise.
10675 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10676 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
10677 (vec_initv2sisi): Likewise.
10678 (vec_initv4hihi): Likewise.
10679 (vec_initv8qiqi): Likewise.
10680 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
10681 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
10682 (vec_setv4hi): Likewise.
10683 (vec_setv8qi): Likewise.
10684
10685 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10686
10687 PR target/89021
10688 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
10689 TARGET_MMX_WITH_SSE.
10690 (MMXMODE:*mov<mode>_internal): Likewise.
10691 (MMXMODE:movmisalign<mode>): Likewise.
10692
10693 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
10694
10695 PR target/89021
10696 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
10697 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
10698 (sse2_cvtpd2pi): Ditto.
10699 (sse2_cvttpd2pi): Ditto.
10700 (*vec_concatv2sf_sse4_1): Ditto.
10701 (*vec_concatv2sf_sse): Ditto.
10702 (*vec_concatv2si_sse4_1): Ditto.
10703 (*vec_concatv2si): Ditto.
10704 (*vec_concatv4si_0): Ditto.
10705 (*vec_concatv2di_0): Ditto.
10706
10707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10708
10709 PR target/89021
10710 * config/i386/sse.md (abs<mode>2): Add 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_palignrdi): Changed to
10716 define_insn_and_split to support SSE emulation.
10717
10718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10719
10720 PR target/89021
10721 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
10722
10723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10724
10725 PR target/89021
10726 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
10727 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10728 SSE emulation.
10729
10730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10731
10732 PR target/89021
10733 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
10734 or TARGET_MMX_WITH_SSE.
10735 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
10736
10737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10738
10739 PR target/89021
10740 * config/i386/sse.md (ssse3_pmaddubsw): Add 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>dv2si3):
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/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
10752 Changed to define_insn_and_split to support SSE emulation.
10753
10754 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10755
10756 PR target/89021
10757 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
10758 (*mmx_<emms>): This.
10759 (mmx_<emms>): New expander.
10760
10761 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10762
10763 PR target/89021
10764 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
10765 support.
10766 (*sse2_umulv1siv1di3): Add SSE2 emulation.
10767
10768 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10769
10770 PR target/89021
10771 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
10772
10773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10774
10775 PR target/89021
10776 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
10777
10778 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10779
10780 PR target/89021
10781 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
10782 TARGET_MMX_WITH_SSE.
10783 (*mmx_uavgv4hi3): Add SSE emulation.
10784
10785 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10786
10787 PR target/89021
10788 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
10789 and TARGET_MMX_WITH_SSE.
10790 (*mmx_uavgv8qi3): Add SSE emulation.
10791
10792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10793
10794 PR target/89021
10795 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
10796 maskmovdqu for __MMX_WITH_SSE__.
10797
10798 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10799
10800 PR target/89021
10801 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
10802 TARGET_MMX and TARGET_MMX_WITH_SSE.
10803 (*mmx_umulv4hi3_highpart): Add 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_pmovmskb): Changed to
10809 define_insn_and_split to support SSE emulation.
10810
10811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10812
10813 PR target/89021
10814 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
10815 and TARGET_MMX_WITH_SSE.
10816 (mmx_<code>v8qi3): Likewise.
10817 (smaxmin:<code>v4hi3): New.
10818 (umaxmin:<code>v8qi3): Likewise.
10819 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
10820 (umaxmin:*mmx_<code>v8qi3): Likewise.
10821
10822 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10823
10824 PR target/89021
10825 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
10826 TARGET_MMX_WITH_SSE.
10827 (*mmx_pinsrw): Add SSE emulation.
10828
10829 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10830
10831 PR target/89021
10832 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
10833
10834 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10835
10836 PR target/89021
10837 * config/i386/sse.md (sse_cvtpi2ps): Changed to
10838 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10839 SSE emulation.
10840
10841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10842
10843 PR target/89021
10844 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
10845 (sse_cvttps2pi): Likewise.
10846
10847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10848
10849 PR target/89021
10850 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
10851 TARGET_MMX_WITH_SSE.
10852 (mmx_pshufw_1): Add SSE emulation.
10853 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
10854 TARGET_MMX_WITH_SSE to support SSE emulation.
10855
10856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10857
10858 PR target/89021
10859 * config/i386/constraints.md (Yw): New constraint.
10860 * config/i386/mmx.md (*vec_dupv2si): Changed to
10861 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
10862 support SSE emulation.
10863
10864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10865
10866 PR target/89021
10867 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
10868 TARGET_MMX_WITH_SSE.
10869 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10870 support.
10871 (mmx_gt<mode>3): Likewise.
10872
10873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10874
10875 PR target/89021
10876 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
10877 TARGET_MMX_WITH_SSE. Add SSE support.
10878
10879 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10880
10881 PR target/89021
10882 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
10883 TARGET_MMX_WITH_SSE.
10884 (any_logic:<code><mode>3): New.
10885 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
10886 Add SSE support.
10887
10888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10889
10890 PR target/89021
10891 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
10892 TARGET_MMX_WITH_SSE. Add SSE emulation.
10893 (mmx_<shift_insn><mode>3): Likewise.
10894 (ashr<mode>3): New.
10895 (<shift_insn><mode>3): Likewise.
10896
10897 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10898
10899 PR target/89021
10900 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
10901 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
10902
10903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10904
10905 PR target/89021
10906 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
10907 TARGET_MMX_WITH_SSE.
10908 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
10909 SSE support.
10910
10911 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10912
10913 PR target/89021
10914 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
10915 TARGET_MMX_WITH_SSE.
10916 (mulv4hi3): New.
10917 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10918 support.
10919
10920 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10921
10922 PR target/89021
10923 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
10924 (plusminus:mmx_<plusminus_insn><mode>3): Check
10925 TARGET_MMX_WITH_SSE.
10926 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
10927 (<plusminus_insn><mode>3): New.
10928 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
10929 (*mmx_<plusminus_insn><mode>3): Likewise.
10930
10931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10932
10933 PR target/89021
10934 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
10935 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
10936 prototype.
10937 * config/i386/mmx.m (mmx_punpckhbw): Changed to
10938 define_insn_and_split to support SSE emulation.
10939 (mmx_punpcklbw): Likewise.
10940 (mmx_punpckhwd): Likewise.
10941 (mmx_punpcklwd): Likewise.
10942 (mmx_punpckhdq): Likewise.
10943 (mmx_punpckldq): Likewise.
10944
10945 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10946 Uros Bizjak <ubizjak@gmail.com>
10947
10948 PR target/89021
10949 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
10950 New function.
10951 (ix86_split_mmx_pack): Likewise.
10952 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
10953 New prototype.
10954 (ix86_split_mmx_pack): Likewise.
10955 * config/i386/i386.md (mmx_isa): New.
10956 (enabled): Also check mmx_isa.
10957 * config/i386/mmx.md (any_s_truncate): New code iterator.
10958 (s_trunsuffix): New code attr.
10959 (mmx_packsswb): Removed.
10960 (mmx_packssdw): Likewise.
10961 (mmx_packuswb): Likewise.
10962 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
10963 MMX packsswb/packuswb with SSE2.
10964 (mmx_packssdw): Likewise.
10965 * config/i386/predicates.md (register_mmxmem_operand): New.
10966
10967 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10968
10969 PR target/89021
10970 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10971 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
10972 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
10973 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
10974 (ix86_vector_mode_supported_p): Likewise.
10975 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
10976
10977 2019-05-15 Martin Liska <mliska@suse.cz>
10978
10979 PR middle-end/90478
10980 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
10981 Check for overflow.
10982
10983 2019-05-15 Richard Biener <rguenther@suse.de>
10984
10985 * tree-into-ssa.c (pass_build_ssa::execute): Run
10986 update_address_taken before going into SSA.
10987
10988 2019-05-15 Richard Biener <rguenther@suse.de>
10989
10990 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
10991 as __BIT_FIELD_REF with type with -gimple.
10992
10993 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
10994
10995 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
10996 semantically equivalent branches (left over after prior refactorings).
10997
10998 2019-05-15 Richard Biener <rguenther@suse.de>
10999
11000 PR tree-optimization/88828
11001 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
11002 bogus check.
11003
11004 2019-05-14 Richard Biener <rguenther@suse.de>
11005
11006 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
11007 as __VIEW_CONVERT with -gimple.
11008
11009 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11010
11011 PR target/82920
11012 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
11013 Darwin.
11014
11015 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11016
11017 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
11018 define_split to become a define_insn_and_split.
11019
11020 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11021
11022 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
11023 arguments.
11024 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
11025 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
11026 (sibcall_epilogue): Adjust.
11027 (epilogue): Adjust.
11028
11029 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11030
11031 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
11032 to unsupported ones.
11033 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
11034 * config.host: Likewise.
11035 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
11036 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
11037 __svr4__]: Remove "brand" fallback.
11038 [!KSTAT_DATA_STRING]: Remove.
11039 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
11040 to *-*-solaris2*.
11041 (comdat_group): Likewise.
11042 (set_have_as_tls): Likewise.
11043 (gcc_cv_target_dl_iterate_phdr): Likewise.
11044 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
11045 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
11046 * configure: Regenerate.
11047 * doc/install.texi: Simplify Solaris target triplets.
11048 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
11049 (Specific, *-*-solaris2*): Document Solaris 10 removal.
11050 Remove Solaris 10 references.
11051 Remove obsolete Solaris bug reference.
11052 (Specific, sparc-sun-solaris2.10): Remove.
11053
11054 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
11055
11056 * config/i386/i386.md (any_div): New code iterator.
11057 (paired_mod): New code attribute.
11058 (sgnprefix): Handle DIV and UDIV RTXes.
11059 (u): Ditto.
11060 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
11061 and udivmod<mode>4 patterns using any_div code iterator.
11062 (divmod splitters): Macroize splitters using any_div code iterator.
11063 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
11064 (*udivmodsi4_pow2_zext_2): Ditto.
11065 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
11066 and *udivmod<mode>4_noext patterns using any_div code iterator.
11067 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
11068 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
11069 patterns using any_div code iterator.
11070 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
11071 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
11072 patterns using any_div code iterator.
11073 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
11074 udivmodhiqi3 patterns using any_extend code iterator.
11075
11076 2019-05-14 Richard Biener <rguenther@suse.de>
11077 H.J. Lu <hongjiu.lu@intel.com>
11078
11079 PR tree-optimization/88828
11080 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11081 permuting in a single non-constant element not extracted
11082 from a vector.
11083
11084 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11085
11086 * internal-fn.def (SIGNBIT): New.
11087 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
11088 defined.
11089 (signbitv4sf2): Likewise.
11090
11091 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
11092
11093 PR target/90357
11094 * config/mips/mips.c (mips_split_move): Skip forward SRC into
11095 next insn when the SRC reg is dead.
11096
11097 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
11098
11099 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
11100 (alloc_cand_and_find_basis): Ditto.
11101 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
11102 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
11103 (create_add_imm_cand, slsr_process_cast): Ditto.
11104 (slsr_process_copy, replace_mult_candidate): Ditto.
11105 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
11106 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
11107 (pass_strength_reduction::execute): Init the first NULL element.
11108
11109 2019-05-13 Nathan Sidwell <nathan@acm.org>
11110
11111 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
11112 (run_attempt): Reformat line break.
11113
11114 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
11115
11116 PR target/90418
11117 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
11118 data registers in sibcall epilogues.
11119 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11120
11121 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
11122
11123 PR target/89221
11124 * configure.ac (--enable-frame-pointer):
11125 Disable by default for cygwin and mingw.
11126 * configure: Regenerate.
11127
11128 2019-05-13 Nathan Sidwell <nathan@acm.org>
11129
11130 * dwarf2out.c (breakout_comdat_types): Move comment to correct
11131 piece of code.
11132 (const_ok_for_output_1): Balance parens around #if/#else/#endif
11133 (gen_member_die): Move abstract origin check earlier. Only VARs
11134 can be static_inline_p. Simplify splicing control flow.
11135
11136 2019-05-13 Richard Biener <rguenther@suse.de>
11137
11138 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
11139 VIEW_CONVERT_EXPR.
11140 (vect_build_slp_tree_1): Likewise.
11141
11142 2019-05-13 Richard Biener <rguenther@suse.de>
11143
11144 PR tree-optimization/90402
11145 * tree-if-conv.c (tree_if_conversion): Value number only
11146 the loop body by making the latch an exit of the region
11147 as well.
11148 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
11149 processing PHIs.
11150 (do_rpo_vn): Deal with multiple edges into the entry block
11151 that are not backedges inside the region by skipping PHIs
11152 of the entry block.
11153
11154 2019-05-13 Richard Biener <rguenther@suse.de>
11155
11156 PR tree-optimization/90316
11157 * tree-ssa-pre.c (insert_aux): Fold into ...
11158 (insert): ... this function. Use a RPO walk to reduce the
11159 number of required iterations.
11160
11161 2019-05-13 Martin Liska <mliska@suse.cz>
11162
11163 PR tree-optimization/90416
11164 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
11165 string instead of passing the second part as va_arg argument.
11166
11167 2019-05-13 Martin Liska <mliska@suse.cz>
11168
11169 PR gcov-profile/90380
11170 * gcov.c (handle_cycle): Do not support zero cycle count,
11171 it should not be possible.
11172 (path_contains_zero_cycle_arc): New function.
11173 (circuit): Ignore zero cycle arc counts.
11174
11175 2019-05-13 Martin Liska <mliska@suse.cz>
11176
11177 PR gcov-profile/90380
11178 * gcov.c (enum loop_type): Remove the enum and
11179 the operator.
11180 (handle_cycle): Assert that we should not reach
11181 a negative count.
11182 (circuit): Use loop_found instead of a tri-state loop_type.
11183 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
11184 happen.
11185
11186 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11187
11188 PR target/82920
11189 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
11190 (ix86_output_indirect_branch_via_reg): Use output mechanism
11191 accounting for __USER_LABEL_PREFIX__.
11192 (ix86_output_indirect_branch_via_push): Likewise.
11193 (ix86_output_function_return): Likewise.
11194 (ix86_output_indirect_function_return): Likewise.
11195
11196 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
11197
11198 * doc/md.texi: Document use of code attributes in rtx patterns.
11199 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
11200 * read-rtl.c (find_code): Split out search loops into...
11201 (maybe_find_code): ...this new function.
11202 (check_code_iterator): Make the error message more informative.
11203 (check_code_attribute): New function.
11204 (rtx_reader::rtx_alloc_for_name): Likewise.
11205 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
11206 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
11207 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
11208 <max_opp> directly as an rtx code instead of via a match_operator.
11209 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
11210 (<su>abd<mode>_3): Update accordingly.
11211
11212 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11213
11214 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
11215 is given, print the state of the EH "save world" computation for
11216 Darwin.
11217
11218 2019-05-11 Jakub Jelinek <jakub@redhat.com>
11219
11220 PR c++/59813
11221 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
11222 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11223
11224 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
11225
11226 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
11227 Use pinsrd for TARGET_SSE4_1.
11228 * config/i386/sse.md (movdi_to_sse): Ditto.
11229
11230 2019-05-10 Richard Biener <rguenther@suse.de>
11231
11232 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
11233 (do_rpo_vn): Initialize next_value_id.
11234
11235 2019-05-10 Martin Liska <mliska@suse.cz>
11236
11237 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11238 Fix plural form.
11239
11240 2019-05-10 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR tree-optimization/90385
11243 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
11244 arguments of the exit phis.
11245
11246 PR c++/90383
11247 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
11248 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
11249 id->do_not_fold.
11250 (copy_tree_body_r): Likewise.
11251 (copy_fn): Set id.do_not_fold to true.
11252
11253 2019-05-10 Martin Liska <mliska@suse.cz>
11254
11255 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
11256 Reapply changes from r269790.
11257
11258 2019-05-10 Martin Liska <mliska@suse.cz>
11259
11260 PR middle-end/90340
11261 * doc/invoke.texi: New params.
11262 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
11263 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
11264 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11265 Use it.
11266 * tree-switch-conversion.h (struct jump_table_cluster):
11267 Likewise.
11268
11269 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
11270
11271 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
11272
11273 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
11274
11275 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
11276
11277 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
11278
11279 PR rtl-optimization/88879
11280 * sel-sched.c (sel_target_adjust_priority): Remove assert.
11281
11282 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
11283
11284 PR target/90405
11285 * config/arm/arm.c (callee_saved_reg_p): Move before
11286 thumb_find_work_register.
11287 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
11288 thumb_find_work_register. Only call df_get_live_out once.
11289 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
11290 (thumb_find_work_register): Use
11291 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
11292 algorithms to locate a spare call clobbered reg.
11293
11294 2019-05-09 Martin Liska <mliska@suse.cz>
11295
11296 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
11297 and MAX_EXPR in GIMPLE FE format.
11298
11299 2019-05-09 Martin Liska <mliska@suse.cz>
11300
11301 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
11302 * gimple-pretty-print.c (dump_gimple_bb_header):
11303 Dump BB count.
11304 (pp_cfg_jump): Dump edge probability.
11305 * profile-count.c (profile_quality_as_string): Simplify
11306 with a static array.
11307 (parse_profile_quality): New function.
11308 (profile_count::dump): Simplify with a static array.
11309 (profile_count::from_gcov_type): Add new argument.
11310 * profile-count.h (parse_profile_quality): Likewise.
11311 * predict.h (set_hot_bb_threshold): New.
11312 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11313 New param.
11314 * predict.c (get_hot_bb_threshold): Set from the new param.
11315 (set_hot_bb_threshold): New.
11316
11317 2019-05-09 Richard Biener <rguenther@suse.de>
11318
11319 PR tree-optimization/90395
11320 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
11321 rewrite vector stores that throw internally.
11322
11323 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
11324
11325 * cif-code.def (CHKP): Remove.
11326
11327 PR target/89221
11328 * configure.ac (--enable-frame-pointer): Disable by default for
11329 GNU systems.
11330 * configure: Regenerate.
11331
11332 2019-05-09 Alan Modra <amodra@gmail.com>
11333
11334 PR target/89271
11335 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
11336 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
11337 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
11338 cost for general <-> vsx when direct moves are available.
11339 Cost union classes at minimal cost for any reg in the class.
11340 Correct calculation for moves between vsx, float, and altivec.
11341 Don't return a low cost for moves between special regs. Don't
11342 use hard coded register numbers.
11343 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
11344 (rs6000_ira_change_pseudo_allocno_class): New function.
11345 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
11346 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
11347 alternatives.
11348 (movsi_internal1): Don't disparage vector alternatives.
11349 (mov<mode>_internal): Likewise, excepting alternative that
11350 will be split.
11351 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
11352 we <- b alternative.
11353
11354 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11355
11356 PR c++/59813
11357 PR tree-optimization/89060
11358 * tree-ssa-live.h (live_vars_map): New typedef.
11359 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
11360 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
11361 (struct compute_live_vars_data): New type.
11362 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
11363 live_vars_at_stmt, destroy_live_vars): New functions.
11364 * tree-tailcall.c: Include tree-ssa-live.h.
11365 (live_vars, live_vars_vec): New global variables.
11366 (find_tail_calls): Perform variable life analysis before punting.
11367 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
11368 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
11369 member.
11370 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
11371 Perform variable life analysis to select variables that really need
11372 clobbers added.
11373 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
11374 instead set id->eh_landing_pad_dest and assert it is the same.
11375 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
11376
11377 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
11378 Richard Earnshaw <rearnsha@arm.com>
11379
11380 PR target/88167
11381 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
11382 function.
11383 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
11384 (thumb1_compute_save_core_reg_mask): Don't force a spare work
11385 register if both the epilogue and prologue can use call-clobbered
11386 regs.
11387 (thumb1_unexpanded_epilogue): Use
11388 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
11389 picking temporaries for restoring high regs to match that of the
11390 prologue where possible.
11391 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
11392 the list of work registers. Detect if the return address is still live
11393 at the end of the prologue and avoid using it for a work register if so.
11394 If the return address is not live, add LR to the list of pushable regs
11395 after the first pass.
11396
11397 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11398
11399 PR tree-optimization/90078
11400 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
11401 (INFTY): Increase the value for infinite cost.
11402 (struct comp_cost): Promote type of members to int64_t.
11403 (infinite_cost): Don't set complexity in initialization.
11404 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
11405 overflows to infinite_cost.
11406 (adjust_setup_cost): Promote type of parameter and cost computation
11407 to int64_t.
11408 (struct ainc_cost_data, struct iv_ca): Promote type of member to
11409 int64_t.
11410 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
11411 cost computation to int64_t.
11412 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
11413 int64_t's format specifier in dump.
11414
11415 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11416
11417 PR tree-optimization/90240
11418 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
11419 with respect to scaling factor pre-computed for each basic block.
11420 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
11421 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
11422 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
11423 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
11424 live range for array of loop's basic blocks. Cleanup aux field of
11425 loop's basic blocks.
11426
11427 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11428
11429 PR tree-optimization/90356
11430 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
11431
11432 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
11433
11434 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
11435 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
11436 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
11437 (ix86_handle_option): Handle -mavx512bf16.
11438 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
11439 to extra_headers.
11440 * config/i386/avx512bf16vlintrin.h: New.
11441 * config/i386/avx512bf16intrin.h: New.
11442 * config/i386/cpuid.h (bit_AVX512BF16): New.
11443 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
11444 * config/i386/i386-builtin-types.def: Add new types.
11445 * config/i386/i386-builtin.def: Add new builtins.
11446 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11447 __AVX512BF16__.
11448 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
11449 (ix86_option_override_internal): Handle BF16.
11450 (ix86_valid_target_attribute_inner_p): Ditto.
11451 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
11452 * config/i386/i386-builtin.c (enum processor_features): Add
11453 F_AVX512BF16.
11454 (static const _isa_names_table isa_names_table): Ditto.
11455 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
11456 (PTA_AVX512BF16): Ditto.
11457 * config/i386/i386.opt: Add -mavx512bf16.
11458 * config/i386/immintrin.h: Include avx512bf16intrin.h
11459 and avx512bf16vlintrin.h.
11460 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
11461 avx512f_cvtneps2bf16_<mode><mask_name>,
11462 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
11463 * config/i386/subst.md (mask_half): Add new subst.
11464 * doc/invoke.texi: Document -mavx512bf16.
11465
11466 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11467
11468 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
11469 Delete declaration.
11470 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
11471 (rs6000_debug_legitimize_reload_address): Delete.
11472 (rs6000_legitimize_reload_address_ptr): Delete.
11473 (rs6000_option_override_internal): Adjust.
11474 (mem_operand_gpr): Adjust comment.
11475 (legitimate_lo_sum_address_p): Ditto.
11476 (rs6000_legitimize_reload_address): Delete.
11477 (rs6000_debug_legitimize_reload_address): Delete.
11478 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
11479
11480 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
11481
11482 PR target/89765
11483 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11484 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
11485 to compute vector element selector for both constant and variable
11486 operands.
11487
11488 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11489
11490 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
11491 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
11492 ashrdi3_cvt using SWI48 mode iterator.
11493
11494 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11495
11496 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
11497 (aarch64_<su>abd<mode>_3): Likewise.
11498 (*aarch64_<su>abd<mode>_3): New define_insn.
11499 (<sur>sad<vsi2qi>): New define_expand.
11500 * config/aarch64/iterators.md: Added MAX_OPP attribute.
11501 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
11502 (build_vect_cond_expr): Likewise.
11503
11504 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11505
11506 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
11507 clobbers outside of accessible_reg_set.
11508 * config/i386/i386.c (ix86_conditional_register_usage):
11509 Disable register sets by clearing corresponding bits in
11510 accessible_reg_set. Do not set corresponding bits in fixed_regs,
11511 call_used_regs and don't clear corresponding reg_names array members.
11512
11513 2019-05-07 Richard Biener <rguenther@suse.de>
11514
11515 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
11516 not specified still compute a comp_vectype for invariant
11517 compares.
11518
11519 2019-05-07 Richard Biener <rguenther@suse.de>
11520
11521 PR tree-optimization/90316
11522 * tree-ssa-pre.c (translate_vuse_through_block): When
11523 same_valid is NULL do not bother to search for a virtual
11524 PHI continuation.
11525 (phi_translate_1): When operands changed we cannot keep
11526 the same value-number so do not bother to ask whether
11527 that's possible from translate_vuse_through_block.
11528
11529 2019-05-07 Martin Liska <mliska@suse.cz>
11530
11531 * bitmap.c (bitmap_register): Come up with
11532 alloc_descriptor_max_uid and assign it for
11533 a new bitmap.
11534 (register_overhead): Use get_descriptor as
11535 a descriptor.
11536 (release_overhead): New.
11537 (bitmap_elem_to_freelist): Call it.
11538 (bitmap_elt_clear_from): Likewise.
11539 (bitmap_obstack_free): Likewise.
11540 (bitmap_move): Sensitively release memory.
11541 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
11542 (bitmap_initialize): Initialize alloc_descriptor to zero.
11543 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
11544
11545 2019-05-07 Richard Biener <rguenther@suse.de>
11546
11547 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
11548 we build a SLP node. Remove max_size and limiting.
11549 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
11550
11551 2019-05-07 Richard Biener <rguenther@suse.de>
11552
11553 PR tree-optimization/90316
11554 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
11555 limit by reference.
11556 (walk_non_aliased_vuses): Take walking limit argument.
11557 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
11558 walking if it is reached instead of just counting.
11559 (get_continuation_for_phi): Likewise.
11560 (walk_non_aliased_vuses): Likewise, instead of leaving counter
11561 limiting to the callback.
11562 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
11563 (vn_reference_lookup_3): Likewise.
11564 (vn_reference_lookup_pieces): Likewise.
11565 (vn_reference_lookup): Likewise.
11566 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
11567 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
11568 (avail_exprs_stack::lookup_avail_expr): Likewise.
11569
11570 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
11571
11572 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
11573 for comparaible types in the second direction even if first one
11574 hits incomparable type.
11575
11576 2019-05-07 Richard Biener <rguenther@suse.de>
11577
11578 PR lto/90369
11579 * lto-wrapper.c (debug_objcopy): Use the original filename
11580 including archive offset for the filename used for -save-temps.
11581
11582 2019-05-07 Li Jia He <helijia@linux.ibm.com>
11583
11584 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
11585 detection.
11586
11587 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
11588 Hongtao Liu <hongtao.liu@intel.com>
11589
11590 PR target/89750
11591 PR target/86444
11592 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
11593 Modified, original implementation isn't correct.
11594
11595 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11596
11597 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
11598 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
11599 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
11600 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
11601 (FRAME_POINTER_REGNUM): Change numbering.
11602 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
11603 (alt_reg_names): Adjust.
11604 (rs6000_conditional_register_usage): Don't mark hard register 64 as
11605 fixed.
11606 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11607 (DWARF_FRAME_REGISTERS): Delete.
11608 (DWARF2_FRAME_REG_OUT): Fix whitespace.
11609 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11610 Adjust.
11611 (REG_ALLOC_ORDER): Adjust.
11612 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
11613 (REG_CLASS_CONTENTS): Adjust.
11614 (RETURN_ADDR_RTX): Change comment.
11615 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
11616 instead of 67.
11617 (REGISTER_NAMES): Adjust.
11618 (ADDITIONAL_REGISTER_NAMES): Adjust.
11619 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11620
11621 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11622
11623 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
11624 Delete.
11625 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11626 (DWARF_FRAME_REGISTERS): Adjust.
11627 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11628 Adjust.
11629 (REG_ALLOC_ORDER): Adjust.
11630 (enum reg_class): Delete SPR_REGS.
11631 (REG_CLASS_NAMES): Delete SPR_REGS.
11632 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
11633 (REGISTER_NAMES): Adjust.
11634 (ADDITIONAL_REGISTER_NAMES): Adjust.
11635 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11636 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
11637 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
11638 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
11639 (htm_spr_regno): Delete.
11640 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
11641 argument.
11642 (rs6000_dbx_register_number): Adjust.
11643
11644 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11645
11646 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
11647
11648 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11649
11650 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
11651 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
11652
11653 2019-05-06 Jakub Jelinek <jakub@redhat.com>
11654
11655 PR tree-optimization/88709
11656 PR tree-optimization/90271
11657 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
11658 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
11659 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
11660 variable.
11661 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
11662 of the store merging group is larger than
11663 PARAM_STORE_MERGING_MAX_SIZE parameter.
11664 (split_group): Add bzero_first argument. If set, always emit first
11665 the first store which must be = {} of the whole area and then for the
11666 rest of the stores consider all zero bytes as paddings.
11667 (imm_store_chain_info::output_merged_store): Check if first store
11668 is = {} of the whole area and if yes, determine which setting of
11669 bzero_first for split_group gives smaller number of stores. Adjust
11670 split_group callers.
11671 (lhs_valid_for_store_merging_p): Allow decls.
11672 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
11673 no elts.
11674 (pass_store_merging::process_store): Likewise.
11675
11676 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
11677
11678 PR target/89424
11679 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11680 handling of V1TImode.
11681
11682 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
11683
11684 PR target/89221
11685 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
11686 and enable_frame_pointer ...
11687 * configure.ac: ... here. Update help strings for
11688 --enable-frame-pointer.
11689 * configure: Regenerate.
11690 * config/i386/i386-options.c (ix86_option_override_internal): Remove
11691 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
11692 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
11693 (USE_X86_64_FRAME_POINTER): Ditto.
11694
11695 2019-05-06 Martin Liska <mliska@suse.cz>
11696
11697 * config.gcc: Append to target_gtfiles and fix indentation.
11698
11699 2019-05-06 Richard Biener <rguenther@suse.de>
11700
11701 PR tree-optimization/90358
11702 * tree-vect-stmts.c (get_group_load_store_type): Properly
11703 detect unused upper half of load.
11704 (vectorizable_load): Likewise.
11705
11706 2019-05-06 Richard Biener <rguenther@suse.de>
11707
11708 PR tree-optimization/88828
11709 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
11710 (simplify_vector_constructor): ...here. Handle constants in
11711 the constructor.
11712
11713 2019-05-06 Richard Biener <rguenther@suse.de>
11714
11715 PR tree-optimization/90328
11716 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
11717 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
11718 is valid in the loop nest before using it.
11719 (initialize_data_dependence_relation): Adjust.
11720 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
11721 loop as loop-nest to dr_may_alias_p.
11722
11723 2019-05-06 Richard Biener <rguenther@suse.de>
11724
11725 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
11726
11727 2019-05-06 Richard Biener <rguenther@suse.de>
11728
11729 PR tree-optimization/90316
11730 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
11731 compute target on demand.
11732 (get_continuation_for_phi): Remove code walking stmts to
11733 get to a target virtual operand which could end up being
11734 quadratic.
11735
11736 2019-05-06 Martin Liska <mliska@suse.cz>
11737
11738 PR sanitizer/90312
11739 * config/i386/i386-options.c (ix86_option_override_internal): Error only
11740 when -mabi is selected to a non-default version.
11741
11742 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
11743 Martin Liska <mliska@suse.cz>
11744
11745 * Makefile.in: Add lto-dump.texi.
11746 * cgraph.h: Add new functions get_visibility_string and
11747 get_symtab_type_string.
11748 * doc/gcc.texi: Include lto-dump section.
11749 * doc/lto-dump.texi: New file.
11750 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
11751 (parse_dump_option): Factor out this function.
11752 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
11753 (parse_dump_option): Export the function.
11754 * symtab.c (symtab_node::get_visibility_string): New function.
11755 (symtab_node::get_symtab_type_string): Likewise.
11756
11757 2019-05-06 Martin Liska <mliska@suse.cz>
11758
11759 * config/i386/i386-builtins.c: New file.
11760 * config/i386/i386-builtins.h: New file.
11761 * config/i386/i386-expand.c: New file.
11762 * config/i386/i386-expand.h: New file.
11763 * config/i386/i386-features.c: New file.
11764 * config/i386/i386-features.h: New file.
11765 * config/i386/i386-options.c: New file.
11766 * config/i386/i386-options.h: New file.
11767 * config.gcc: Add new files into extra_objs and
11768 target_gtfiles.
11769 * config/i386/i386.c: Split content of the file
11770 into newly introduced files.
11771 * config/i386/i386.h: Declare common variables
11772 and macros.
11773 * config/i386/t-i386: Define dependencies for new files.
11774
11775 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
11776
11777 PR target/89400
11778 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
11779 Restrict 'all' variant to 32-bit configurations.
11780 (unaligned_loadhiu): Likewise.
11781 (unaligned_storehi): Likewise.
11782 (unaligned_storesi): Likewise.
11783 (unaligned_loadhis): Disable when compiling for thumb1.
11784
11785 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
11786
11787 PR tree-optimization/90269
11788 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11789 Ignore clobbers.
11790
11791 2019-05-03 Martin Liska <mliska@suse.cz>
11792
11793 * hash-map.h: Add is_empty function.
11794 * hash-set.h: Likewise.
11795 * hash-table.h: Likewise.
11796 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
11797 elements () == 0 (and similar usages).
11798 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
11799 * gimplify.c (gimplify_bind_expr): Likewise.
11800 (gimplify_switch_expr): Likewise.
11801 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
11802 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
11803 * postreload-gcse.c (dump_hash_table): Likewise.
11804 (gcse_after_reload_main): Likewise.
11805 * predict.c (combine_predictions_for_bb): Likewise.
11806 * tree-parloops.c (reduction_phi): Likewise.
11807 (separate_decls_in_region): Likewise.
11808 (transform_to_exit_first_loop): Likewise.
11809 (gen_parallel_loop): Likewise.
11810 (gather_scalar_reductions): Likewise.
11811 (try_create_reduction_list): Likewise.
11812 * var-tracking.c (dump_vars): Likewise.
11813 (emit_notes_for_changes): Likewise.
11814 (vt_emit_notes): Likewise.
11815
11816 2019-05-03 Richard Biener <rguenther@suse.de>
11817
11818 PR tree-optimization/90316
11819 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
11820 before running VN.
11821
11822 2019-05-03 Richard Biener <rguenther@suse.de>
11823
11824 * tree-vect-stmts.c (get_group_load_store_type): Avoid
11825 peeling for gaps by loading only lower halves of vectors
11826 if possible.
11827 (vectorizable_load): Likewise.
11828
11829 2019-05-03 Richard Biener <rguenther@suse.de>
11830
11831 PR middle-end/89518
11832 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
11833
11834 2019-05-03 Richard Biener <rguenther@suse.de>
11835
11836 PR middle-end/87314
11837 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
11838 Handle STRING_CST vs DECL or STRING_CST.
11839
11840 2019-05-03 Richard Biener <rguenther@suse.de>
11841
11842 PR tree-optimization/88963
11843 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
11844 vector loads feeding only BIT_FIELD_REFs to component
11845 loads. Rewrite stores fed by CONSTRUCTORs to component
11846 stores.
11847
11848 2019-05-03 Jakub Jelinek <jakub@redhat.com>
11849
11850 * opts.h (finish_options): Remove lang_mask argument.
11851 (print_help, help_option_argument): Declare.
11852 * opts.c (print_help): Remove forward declaration, no longer static.
11853 (finish_options): Remove lang_mask argument, don't call print_help
11854 here.
11855 * opts-global.c (decode_options): Adjust finish_option caller, call
11856 print_help here.
11857
11858 PR tree-optimization/90303
11859 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
11860 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
11861
11862 2019-05-03 Richard Biener <rguenther@suse.de>
11863
11864 PR tree-optimization/89698
11865 * gimple-fold.c (canonicalize_constructor_val): Early out
11866 for constants, handle unfolded INTEGER_CSTs as they appear in
11867 C++ virtual table ctors.
11868
11869 2019-05-03 Richard Biener <rguenther@suse.de>
11870
11871 * passes.c (execute_function_todo): Remove dead code.
11872
11873 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11874
11875 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
11876 the internal register number, for any "real" register.
11877
11878 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11879
11880 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
11881 correct numbers for TFHAR, TFIAR, TEXASR.
11882
11883 2019-05-02 Richard Biener <rguenther@suse.de>
11884
11885 PR tree-optimization/89653
11886 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
11887 update-address-taken before the pass.
11888 * passes.def (pass_tree_loop_init): Put comment before it.
11889
11890 2019-05-02 Richard Biener <rguenther@suse.de>
11891
11892 PR tree-optimization/89509
11893 * tree-ssa-structalias.c (compute_dependence_clique): Look
11894 at the first subvar when determining whether it is restrict.
11895
11896 2019-05-02 Richard Biener <rguenther@suse.de>
11897
11898 PR tree-optimization/90273
11899 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
11900 useless debug stmts.
11901
11902 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11903
11904 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
11905 ACLE branch.
11906 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
11907 SVE ACLE branch.
11908 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
11909 VEC_COND_EXPR be inserted to emulate a conditional internal function.
11910 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
11911 (vectorizable_reduction): Use the functions above to vectorize in a
11912 fully masked loop codes that don't have a conditional internal
11913 function.
11914
11915 2019-05-02 Martin Liska <mliska@suse.cz>
11916
11917 * cgraphclones.c: Call valid_attribute_p with 1 for
11918 target_clone.
11919 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
11920 it's for target attribute.
11921 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
11922 Add new boolean argument.
11923 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11924 Likewise.
11925 (ix86_valid_target_attribute_tree): Pass target_clone_attr
11926 to ix86_valid_target_attribute_inner_p.
11927 (ix86_valid_target_attribute_p): Pass flags argument to
11928 ix86_valid_target_attribute_inner_p.
11929 (get_builtin_code_for_version): Use 0 as it's target attribute.
11930
11931 2019-05-02 Martin Liska <mliska@suse.cz>
11932
11933 * gcc.c (process_command): Add dummy file only
11934 if n_infiles == 0.
11935 * opts-global.c (decode_options): Pass lang_mask.
11936 * opts.c (print_help): New function.
11937 (finish_options): Print --help if help_option_argument
11938 is set.
11939 (common_handle_option): Factor out content of OPT__help_
11940 into print_help.
11941 * opts.h (finish_options): Add new argument.
11942
11943 2019-05-02 Martin Liska <mliska@suse.cz>
11944
11945 PR target/88809
11946 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
11947 With -minline-all-stringops use inline expansion using 4B loop.
11948 * doc/invoke.texi: Document the change of
11949 -minline-all-stringops.
11950
11951 2019-05-01 Jeff Law <law@redhat.com>
11952
11953 PR tree-optimization/88797
11954 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
11955 PHI feeds a conditional on the RHS of an assignment.
11956
11957 2019-04-30 Andrew Waterman <andrew@sifive.com>
11958 Jim Wilson <jimw@sifive.com>
11959
11960 * config/riscv/constraints.md (L): New.
11961 * config/riscv/predicates.md (lui_operand): New.
11962 (sfb_alu_operand): New.
11963 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
11964 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
11965 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
11966 * config/riscv/risc.md (type): Add sfb_alu.
11967 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
11968 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
11969 (branch_zero<mode>): Delete.
11970 (mov<mode>cc): New.
11971 (mov<GPR:mode><X:mode>cc): Likewise.
11972 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
11973
11974 2019-04-30 Nathan Sidwell <nathan@acm.org>
11975
11976 * tree.h (MARK_TS_EXP): New.
11977
11978 2019-04-30 Martin Liska <mliska@suse.cz>
11979
11980 * opts.c (enable_warning_as_error): Provide hints
11981 for unknown options.
11982
11983 2019-04-30 Martin Liska <mliska@suse.cz>
11984
11985 PR debug/90288
11986 * doc/invoke.texi: Add missing dash for gas-locview-support
11987 and gno-as-locview-support.
11988
11989 2019-04-30 Jakub Jelinek <jakub@redhat.com>
11990
11991 PR target/89093
11992 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
11993 whitespace at the start of target attribute string.
11994
11995 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11996
11997 PR target/86538
11998 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
11999 Define __ARM_FEATURE_ATOMICS.
12000
12001 2019-04-30 Martin Liska <mliska@suse.cz>
12002
12003 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
12004 into built_in_function enum. Remove code for endp == 2 and
12005 use BUILT_IN_* constants.
12006 (gimple_fold_builtin): Call the function with fcode.
12007
12008 2019-04-30 Martin Liska <mliska@suse.cz>
12009
12010 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
12011 DECL_FUNCTION_CODE into ix86_builtins enum before
12012 the switch statement.
12013
12014 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12015
12016 PR tree-optimization/89475
12017 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
12018 calls.
12019
12020 2019-04-30 Martin Liska <mliska@suse.cz>
12021
12022 PR translation/90274
12023 * opts.c (print_filtered_help): Wrap string in _(...).
12024
12025 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
12026
12027 PR tree-optimization/90240
12028 Revert:
12029 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12030
12031 PR tree-optimization/90078
12032 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12033 checks for infinite_cost overflow.
12034
12035 2019-04-29 Jeff Law <law@redhat.com>
12036
12037 * passes.def: Move -Wrestrict pass after copy propagation.
12038
12039 2019-04-29 Maya Rashish <coypu@sdf.org>
12040
12041 * config.gcc (default_gnu_indirect_function): Default to yes
12042 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
12043 sparc*-*-netbsd*, x86_64-*-netbsd*.
12044
12045 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
12046
12047 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
12048 where cond2 is NE_EXPR.
12049 (is_value_included_in): Update comment.
12050
12051 2019-04-29 Richard Biener <rguenther@suse.de>
12052
12053 PR tree-optimization/90278
12054 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
12055 EH on comparison simplification.
12056
12057 2019-04-29 Jason Merrill <jason@redhat.com>
12058
12059 PR c++/82081 - tail call optimization breaks noexcept
12060 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
12061 nothrow function to a might-throw function into a tail call.
12062
12063 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
12064
12065 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
12066 (DDR_INNER_LOOP): Likewise.
12067 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
12068 (initialize_data_dependence_relation): Likewise.
12069 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
12070
12071 2019-04-29 Jakub Jelinek <jakub@redhat.com>
12072
12073 PR rtl-optimization/90257
12074 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
12075 return value.
12076
12077 Revert the revert:
12078 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12079
12080 PR target/90178
12081 Revert:
12082 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12083
12084 Revert the revert:
12085 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12086
12087 Revert:
12088 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12089
12090 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12091
12092 2019-04-29 Richard Biener <rguenther@suse.de>
12093
12094 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
12095 rhs issue a reset.
12096
12097 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
12098
12099 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
12100 varasm.h, and netbsd-protos.h.
12101
12102 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
12103
12104 PR target/89261
12105 * config/i386/i386-protos.h (ix86_data_alignment): Change
12106 the second argument type to unsigned int.
12107 * config/i386/i386.c (ix86_data_alignment): Change "align"
12108 argument type to unsigned int.
12109
12110 2019-04-27 Martin Liska <mliska@suse.cz>
12111
12112 PR middle-end/90258
12113 * opt-suggestions.c (option_proposer::build_option_suggestions):
12114 When get_valid_option_values returns empty values, add the
12115 misspelling candidate.
12116
12117 2019-04-26 Jim Wilson <jimw@sifive.com>
12118
12119 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
12120 parameter.
12121 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
12122 Pass orig_mode to riscv_build_integer.
12123 (riscv_split_integer): Pass mode to riscv_move_integer.
12124 (riscv_legitimize_const_move): Likewise.
12125 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
12126 promoted_mode. Replace force_reg call with code to load constant into
12127 promoted reg and then subreg it for the store.
12128 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
12129 riscv_move_integer.
12130
12131 2018-04-26 Eugene Sharygin <eush@ispras.ru>
12132
12133 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
12134 corrupt codes.
12135
12136 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
12137
12138 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
12139 commentary about the encoding of precision.
12140
12141 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
12142
12143 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
12144 * config/i386/t-freebsd64: New file.
12145 * config.gcc: Add the t-freebsd64 for multilib support.
12146
12147 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
12148
12149 * doc/extend.texi (vector_size): Add missing comma after @xref.
12150
12151 2019-04-25 Jakub Jelinek <jakub@redhat.com>
12152
12153 * BASE-VER: Set to 10.0.0.
12154
12155 2019-04-25 Richard Biener <rguenther@suse.de>
12156
12157 PR middle-end/89765
12158 * gimplify.c (gimplify_expr): Avoid turning a lvalue
12159 VIEW_CONVERT_EXPR into one operating on an rvalue.
12160
12161 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
12162
12163 PR target/89929
12164 * config/i386/i386.c (feature_priority): Moved to file scope.
12165 (processor_features): Likewise.
12166 (processor_model): Likewise.
12167 (_arch_names_table): Likewise.
12168 (arch_names_table): Likewise.
12169 (_feature_list): Removed.
12170 (feature_list): Likewise.
12171 (_isa_names_table): Moved to file scope. Add priority.
12172 (isa_names_table): Likewise.
12173 (get_builtin_code_for_version): Replace feature_list with
12174 isa_names_table. Update error message for P_ZERO priority.
12175
12176 2019-04-25 Richard Biener <rguenther@suse.de>
12177
12178 * tree-pass.h (make_pass_phi_only_cprop): Remove.
12179 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
12180
12181 2019-04-24 Jeff Law <law@redhat.com>
12182
12183 PR tree-optimization/90037
12184 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
12185 * passes.def: Replace all instance of phi-only cprop with the
12186 lattice propagator. Move propagation pass from after erroneous
12187 path isolation to before erroneous path isolation.
12188 * tree-ssa-phionlycprop.c: Remove.
12189
12190 2019-04-24 Richard Biener <rguenther@suse.de>
12191
12192 PR middle-end/90213
12193 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
12194 by size and BITS_PER_UNIT on poly-wide-ints.
12195
12196 2019-04-25 Richard Biener <rguenther@suse.de>
12197
12198 PR middle-end/90194
12199 * match.pd: Add pattern to simplify view-conversion of an
12200 empty constructor.
12201
12202 2019-04-24 Clement Chigot <clement.chigot@atos.net>
12203
12204 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
12205 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
12206 for Go on 32 bit AIX.
12207 * config/rs6000/aix72.h: Likewise.
12208
12209 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12210
12211 PR target/90193
12212 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
12213 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
12214
12215 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
12216
12217 PR target/89952
12218 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
12219 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
12220 for restored hard frame pointer.
12221 (s390_sched_dependencies_evaluation): Implement new target hook.
12222 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
12223
12224 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
12225
12226 * config/arc/arc-options.def: Fix typos and spelling mistakes.
12227 * config/arc/arc.c (arc_init): Cleanup warning message.
12228 (arc_override_options): Likewise.
12229
12230 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12231
12232 PR target/90187
12233 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
12234 a register if both if_true and if_false are MEMs.
12235
12236 PR tree-optimization/90208
12237 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
12238 after labels of new_bb, not before them.
12239
12240 PR tree-optimization/90211
12241 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
12242 which are not SSA_NAMEs.
12243
12244 2018-04-23 Sudakshina Das <sudi.das@arm.com>
12245
12246 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
12247 AArch64.
12248 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
12249
12250 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12251
12252 PR rtl-optimization/87979
12253 * modulo-sched.c (sms_schedule): Start ii value "mii" should
12254 not equal zero.
12255
12256 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12257
12258 PR rtl-optimization/84032
12259 * modulo-sched.c (ps_insn_find_column): Change condition so that
12260 branch will always be the last insn in a row inside partial
12261 schedule.
12262
12263 2019-04-23 Richard Biener <rguenther@suse.de>
12264
12265 PR debug/90131
12266 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
12267 dest_single_pred_p argument.
12268 (remove_forwarder_block): Adjust.
12269 (remove_forwarder_block_with_phi): Likewise.
12270
12271 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12272 Bernd Edlinger <bernd.edlinger@hotmail.de>
12273 Jakub Jelinek <jakub@redhat.com>
12274
12275 PR target/89093
12276 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
12277 if used with general-regs-only.
12278 (arm_conditional_register_usage): Don't add non-general regs if
12279 general-regs-only.
12280 (arm_valid_target_attribute_rec): Handle general-regs-only.
12281 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
12282 general-regs-only.
12283 (TARGET_HARD_FLOAT_SUB): Define.
12284 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
12285 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
12286 (TARGET_REALLY_IWMMXT2): Likewise.
12287 * config/arm/arm.opt: Add -mgeneral-regs-only.
12288 * doc/extend.texi: Document ARM general-regs-only target.
12289 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
12290
12291 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12292
12293 PR tree-optimization/90078
12294 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12295 checks for infinite_cost overflow.
12296
12297 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12298
12299 PR tree-optimization/90021
12300 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
12301 and check univariate against it.
12302 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
12303 * tree-data-ref.c (add_other_self_distances): Pass new argument.
12304
12305 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12306
12307 PR target/90178
12308 Revert:
12309 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12310
12311 Revert the revert:
12312 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12313
12314 Revert:
12315 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12316
12317 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12318
12319 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
12320
12321 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
12322 names using operand format, rather than hard-wired.
12323 (speculation_barrier): Likewise.
12324
12325 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
12326
12327 PR tree-optimization/88055
12328 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
12329 (gen_one_condition): Use it if !HONOR_NANS.
12330
12331 2019-04-19 Jakub Jelinek <jakub@redhat.com>
12332
12333 PR middle-end/90139
12334 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
12335 assign_temp instead of gen_reg_rtx.
12336
12337 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
12338
12339 PR translation/90118
12340 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12341 Add missing space before %<.
12342
12343 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
12344
12345 PR rtl-optimization/87871
12346 * ira-lives.c (make_object_dead): Don't add conflicts to
12347 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
12348
12349 2019-04-18 Martin Sebor <msebor@redhat.com>
12350
12351 PR middle-end/89797
12352 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
12353 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
12354 assuming type size fits in SHWI.
12355
12356 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
12357
12358 PR ipa/85051
12359 * ipa-inline.c (flatten_function): New parameter UPDATE.
12360 (ipa_inline, early_inliner): Use it.
12361
12362 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12363
12364 * fold-const.c (int_const_binop): Return early on failure.
12365
12366 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12367
12368 PR middle-end/85164
12369 * combine.c (force_int_to_mode): Cast the argument rather than
12370 the result of known_alignment.
12371 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
12372
12373 2019-04-18 Richard Biener <rguenther@suse.de>
12374
12375 PR debug/90131
12376 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
12377 out from ...
12378 (remove_forwarder_block): ... here.
12379 (remove_forwarder_block_with_phi): Also move debug stmts here.
12380
12381 2019-04-18 Jakub Jelinek <jakub@redhat.com>
12382
12383 PR translation/79183
12384 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
12385 inform where appropriate.
12386
12387 2019-04-18 Richard Biener <rguenther@suse.de>
12388
12389 * tree.c (get_qualified_type): Put found type variants at the
12390 head of the variant list.
12391
12392 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12393
12394 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
12395
12396 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
12397
12398 PR target/90125
12399 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
12400 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
12401 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
12402 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
12403 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
12404
12405 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
12406
12407 * ira-conflicts.c (print_allocno_conflicts): Always print something,
12408 even for allocno's with no conflicts.
12409 (print_conflicts): Print an extra newline.
12410
12411 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12412
12413 * auto-inc-dec.c (attempt_change): Set the alignment of the
12414 temporary memory to that of the original.
12415
12416 2019-04-17 Joao Moreira <jmoreira@suse.de>
12417
12418 * targhooks.c (default_print_patchable_function_entry): Emit
12419 __patchable_function_entries section with writable flags to allow
12420 relocation resolution.
12421
12422 2019-04-17 Jonny Grant <jg@jguk.org>
12423
12424 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
12425
12426 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12427
12428 PR middle-end/90095
12429 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
12430 on lowpart SUBREGs.
12431
12432 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
12433
12434 * config/arc/arc.c (arc_init): Format diagnostic string.
12435 (arc_override_options): Likewise.
12436 (check_if_valid_regno_const): Likewise.
12437 (arc_reorg): Likewise.
12438
12439 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12440
12441 PR target/17108
12442 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
12443 name.
12444 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
12445 name.
12446 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
12447 (*movdi_update1): Use Pmode.
12448 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
12449 (movdi_<mode>_update_stack): Rename to ...
12450 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
12451 use Pmode.
12452 (*movsi_update1): Use Pmode.
12453 (*movsi_update2): Use Pmode.
12454 (movsi_update): Rename to ...
12455 (movsi_<mode>_update): ... this. Use Pmode.
12456 (movsi_update_stack): Fix condition.
12457 (*movhi_update1): Use Pmode. Fix argument to
12458 avoiding_indexed_address_p.
12459 (*movhi_update2): Ditto.
12460 (*movhi_update3): Ditto.
12461 (*movhi_update4): Ditto.
12462 (*movqi_update1): Ditto.
12463 (*movqi_update2): Ditto.
12464 (*movqi_update3): Ditto.
12465 (*movsf_update1, *movdf_update1): Merge, rename to...
12466 (*mov<mode>_update1): This. Use Pmode. Fix argument to
12467 avoiding_indexed_address_p. Add "size" attribute.
12468 (*movsf_update2, *movdf_update2): Merge, rename to...
12469 (*mov<mode>_update2): This. Ditto.
12470 (*movsf_update3): Use Pmode. Fix argument to
12471 avoiding_indexed_address_p.
12472 (*movsf_update4): Ditto.
12473 (allocate_stack): Simplify condition. Adjust pattern names.
12474
12475 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12476
12477 PR target/89093
12478 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
12479 whitespace at the start of target attribute string.
12480
12481 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
12482
12483 PR target/84369
12484 * config/rs6000/power9.md: Add store forwarding bypass.
12485
12486 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
12487
12488 PR debug/89528
12489 * valtrack.c (dead_debug_insert_temp): Reset debug references
12490 to the return value of a call being removed.
12491
12492 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12493
12494 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
12495 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
12496 implement target hook.
12497 (arc_memory_move_cost): New function.
12498 (TARGET_REGISTER_MOVE_COST): Define.
12499 (TARGET_MEMORY_MOVE_COST): Likewise.
12500 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
12501 (MEMORY_MOVE_COST): Likewise.
12502
12503 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12504
12505 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
12506 (sibcall_value_insn): Likewise.
12507 * config/arc/constraints.md (Rs5): Remove.
12508
12509 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12510
12511 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
12512 for last two fake registers.
12513 (arc_conditional_register_usage): Make sure fake frame and arg
12514 pointer regs are in general regs class.
12515 (FRAME_POINTER_MASK): Remove.
12516 (RETURN_ADDR_MASK): Remove.
12517 (arc_must_save_register): Use hard frame regnum.
12518 (frame_restore_reg): Use hard_frame_pointer_rtx.
12519 (arc_save_callee_saves): Likewise.
12520 (arc_restore_callee_saves): Likewise.
12521 (arc_save_callee_enter): Likewise.
12522 (arc_restore_callee_leave): Likewise.
12523 (arc_save_callee_milli): Likewise.
12524 (arc_eh_return_address_location): Likewise.
12525 (arc_check_multi): Use hard frame regnum.
12526 (arc_can_eliminate): Likewise.
12527 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
12528 for register allocator.
12529 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
12530 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
12531 (FRAME_POINTER_REGNUM): Change it to a fake register.
12532 (HARD_FRAME_POINTER_REGNUM): Defined.
12533 (ARG_POINTER_REGNUM): Change it to a new fake register.
12534 (ELIMINABLE_REGS): Update.
12535 (REGISTER_NAMES): Update names.
12536 * config/arc/arc.md (LP_START): Remove.
12537 (LP_END): Likewise.
12538 (shift_si3_loop): Update pattern.
12539
12540 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12541
12542 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
12543 to avoid delay slot scheduling.
12544 (arc_must_save_register): Don't save SP.
12545 * config/arc/arc.md (stack_tie): Remove.
12546 (UNSPEC_ARC_STKTIE): Likewise.
12547
12548 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
12549 Shiva Chen <shiva0217@gmail.com>
12550
12551 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
12552 code gen with large shift amount.
12553
12554 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
12555
12556 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
12557 subreg.
12558
12559 2019-04-16 Jakub Jelinek <jakub@redhat.com>
12560
12561 PR target/90096
12562 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
12563 print -m64/-mx32/-m32 if it is true.
12564 (ix86_debug_options, ix86_function_specific_print): Pass true as
12565 ADD_ABI_P to ix86_target_string.
12566 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
12567 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
12568 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
12569
12570 PR rtl-optimization/90082
12571 * dce.c (can_delete_call): New function.
12572 (deletable_insn_p, mark_insn): Use it.
12573
12574 PR tree-optimization/90090
12575 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
12576 throw internally.
12577 (is_division_by_square): Likewise. Formatting fix.
12578
12579 2019-04-16 Richard Biener <rguenther@suse.de>
12580
12581 PR tree-optimization/56049
12582 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
12583 equality check if alias-set zero will prevail.
12584
12585 2019-04-15 Jeff Law <law@redhat.com>
12586
12587 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
12588 size and alignment as unsigned.
12589
12590 2019-04-15 Richard Biener <rguenther@suse.de>
12591
12592 PR debug/90074
12593 * tree-loop-distribution.c (destroy_loop): Preserve correct
12594 debug info.
12595
12596 2019-04-15 Richard Biener <rguenther@suse.de>
12597
12598 PR tree-optimization/90071
12599 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
12600 abnormal operands from def stmts.
12601
12602 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
12603
12604 PR rtl-optimization/89794
12605 * combine.c (count_auto_inc): New function.
12606 (try_combine): Count how many auto_inc expressions there were in the
12607 original instructions. Ensure we have the same number in the new
12608 instructions. Remove the code that tried to ensure auto_inc side
12609 effects on i1 and i0 are not lost.
12610
12611 2019-04-15 Richard Biener <rguenther@suse.de>
12612
12613 PR ipa/88936
12614 * tree.h (auto_var_p): Declare.
12615 * tree.c (auto_var_p): New function, split out from ...
12616 (auto_var_in_fn_p): ... here.
12617 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
12618 member.
12619 (new_var_info): Initialize it.
12620 (set_uids_in_ptset): Also set the shadow variable uid if required.
12621 (ipa_pta_execute): Postprocess points-to solutions assigning
12622 shadow variable uids for locals that may reach their containing
12623 function recursively.
12624 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
12625 assert but instead check whether the points-to solution is
12626 a singleton.
12627
12628 2019-04-15 Martin Jambor <mjambor@suse.cz>
12629
12630 PR ipa/pr89693
12631 * cgraph.c (clone_of_p): Loop over clone chain for each step in
12632 the thunk chain.
12633
12634 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12635
12636 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
12637
12638 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12639 Kito Cheng <kito.cheng@gmail.com>
12640 Shiva Chen <shiva0217@gmail.com>
12641
12642 * config/nds32/nds32-md-auxiliary.c
12643 (nds32_legitimize_pic_address): Use new PIC pattern.
12644 (nds32_legitimize_tls_address): Use new TLS pattern.
12645 (nds32_output_symrel): New.
12646 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
12647 (nds32_alloc_relax_group_id): Ditto.
12648 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
12649 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
12650 relax_group_id.
12651 (nds32_group_tls_insn): Ditto.
12652 (nds32_group_float_insns): Ditto.
12653 * config/nds32/nds32.md (tls_le): New.
12654 (sym_got): Ditto.
12655
12656 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
12657
12658 * configure: Add nds32 target for dwarf2 debug_line checking.
12659 * configure.ac: Regenerated.
12660
12661 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
12662
12663 PR lto/89358
12664 * ipa-devirt.c (skip_in_fields_list_p): New.
12665 (odr_types_equivalent_p): Use it.
12666
12667 2019-04-13 Jakub Jelinek <jakub@redhat.com>
12668
12669 PR target/89093
12670 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
12671 instead of strncmp when checking for thumb and arm. Formatting fixes.
12672
12673 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
12674
12675 * doc/install.texi: Document --with-target-system-zlib.
12676
12677 2019-04-12 Martin Sebor <msebor@redhat.com>
12678
12679 PR c/88383
12680 PR c/89288
12681 PR c/89798
12682 PR c/89797
12683 * targhooks.c (default_vector_alignment): Avoid assuming
12684 argument fits in SHWI.
12685 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
12686 a shift expression.
12687 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
12688
12689 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12690
12691 PR rtl-optimization/89965
12692 * dce.c: Include rtl-iter.h.
12693 (struct check_argument_load_data): New type.
12694 (check_argument_load): New function.
12695 (find_call_stack_args): Check for loads from stack slots still tracked
12696 in sp_bytes and punt if any is found.
12697
12698 * config/mips/loongson-mmiintrin.h: Fix up #error message.
12699
12700 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
12701
12702 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
12703 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
12704
12705 2019-04-12 Martin Liska <mliska@suse.cz>
12706
12707 PR middle-end/89970
12708 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
12709 in error message.
12710 (separate_attrs): Handle multiple 'default's.
12711 (expand_target_clones): Rework error handling code.
12712
12713 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
12714
12715 PR target/87532
12716 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
12717 mode of vector rather than mode of destination for move instruction.
12718 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
12719 Use QI inner mode with V16QI vector mode.
12720
12721 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12722
12723 PR target/52726
12724 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
12725 "invalid %%t operand" in output_operand_lossage message.
12726
12727 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
12728
12729 * config/s390/predicates.md (permute_pattern_operand): New
12730 predicate.
12731 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
12732 operand for the permute pattern.
12733 ("*vec_perm<mode>"): New insn definition.
12734 ("bswap<mode>"): Generate the permute pattern operand in the
12735 expander and perform the operand reloads for pre arch13 level
12736 already.
12737 ("*bswap<mode>_emu"): Rename to ...
12738 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
12739 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
12740 Add the USE operand for the permute pattern.
12741 ("*vec_set_bswap_vec<mode>"): Likewise.
12742
12743 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12744
12745 PR c/89946
12746 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
12747 and gcc_unreachable if it fails, just call tree_to_uhwi which
12748 verifies that too. Test TREE_CHAIN instead of list_length > 1.
12749 Start warning message with a lower-case letter. Formatting fixes.
12750
12751 PR rtl-optimization/90026
12752 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
12753 successors, look for BARRIERs inside of the whole BB_FOOTER chain
12754 rather than just at the start of it. If e->src BB_FOOTER is not NULL
12755 in cfglayout mode, use emit_barrier_after_bb.
12756
12757 2018-04-11 Steve Ellcey <sellcey@marvell.com>
12758
12759 PR rtl-optimization/87763
12760 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
12761 New Instruction.
12762
12763 2019-04-11 Tom de Vries <tdevries@suse.de>
12764
12765 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
12766 max macro using statement expression.
12767
12768 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
12769
12770 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
12771 * xcoffout.c (xcoff_private_rodata_section_name): Define.
12772 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
12773 read_only_private_data_section using xcoff_private_rodata_section_name.
12774 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
12775
12776 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
12777
12778 PR target/90016
12779 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
12780
12781 2019-04-11 Jakub Jelinek <jakub@redhat.com>
12782
12783 PR rtl-optimization/89965
12784 * dce.c (sp_based_mem_offset): New function.
12785 (find_call_stack_args): Use sp_based_mem_offset.
12786
12787 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
12788
12789 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
12790
12791 2019-04-11 Richard Biener <rguenther@suse.de>
12792
12793 PR tree-optimization/90020
12794 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
12795 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
12796 * tree-ssa-pre.c (compute_avail): Use it to not put
12797 possibly trapping references after a call that might not
12798 return into EXP_GEN.
12799 * gcse.c (compute_hash_table_work): Do not elide
12800 marking a block containing a call if the call might not
12801 return.
12802
12803 2019-04-11 Richard Biener <rguenther@suse.de>
12804
12805 PR tree-optimization/90018
12806 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
12807 Test both SLP and interleaving variants.
12808
12809 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
12810
12811 * config/s390/8561.md: New file.
12812 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12813 Add arch13 cpu model.
12814 * config/s390/s390-opts.h (enum processor_type): Likewise.
12815 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
12816 (s390_get_unit_mask): Likewise.
12817 (s390_is_fpd): Likewise.
12818 (s390_is_fxd): Likewise.
12819 * config/s390/s390.h (s390_tune_attr): Likewise.
12820 * config/s390/s390.md: Include arch13 pipeline description.
12821 * config/s390/s390.opt: Add arch13.
12822
12823 2018-04-10 Steve Ellcey <sellcey@marvell.com>
12824
12825 PR rtl-optimization/87763
12826 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
12827 New prototype.
12828 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
12829 New function.
12830 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
12831 New instruction.
12832 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
12833 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
12834 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
12835 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
12836
12837 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
12838
12839 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
12840 "Although" in -fipa-icf documentation.
12841
12842 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
12843 of using multiple -g options.
12844
12845 2019-04-10 Martin Liska <mliska@suse.cz>
12846
12847 PR gcov-profile/89959
12848 * doc/gcov.texi: Make documentation of -x option
12849 more precise.
12850
12851 2019-04-10 Richard Biener <rguenther@suse.de>
12852
12853 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
12854 member.
12855 (DR_GROUP_SAME_DR_STMT): Remove.
12856 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
12857 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
12858 replace with assert.
12859 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
12860 (vect_record_grouped_load_vectors): Remove unreachable code.
12861
12862 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
12863
12864 PR target/90016
12865 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
12866 obsolete reference to N.
12867
12868 2019-04-10 Jakub Jelinek <jakub@redhat.com>
12869
12870 PR middle-end/90025
12871 * expr.c (store_expr): Set properly size on the MEM passed to
12872 clear_storage.
12873
12874 PR c++/90010
12875 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
12876 with strlen in between hostsz-3 and hostsz-1 inclusive when no
12877 translation is needed, and when translation is needed, only append
12878 ... if the string length is hostsz or more bytes long. Avoid using
12879 strncpy or strcat.
12880
12881 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
12882
12883 PR target/90024
12884 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
12885 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
12886 into three.
12887 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
12888 differences directly.
12889 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
12890
12891 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12892
12893 PR translation/90011
12894 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12895 from diagnostics.
12896 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
12897 diagnostics.
12898 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12899 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
12900 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
12901 trailing space from -gsplit-dwarf diagnostics.
12902
12903 PR tree-optimization/89998
12904 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
12905 instead of integer_type_node if possible, don't add ranges if return
12906 type is not compatible with int.
12907 * gimple-fold.c (gimple_fold_builtin_sprintf,
12908 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
12909 integer_type_node.
12910
12911 2019-04-09 Martin Liska <mliska@suse.cz>
12912
12913 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
12914 * doc/install.texi: Document the new config.
12915
12916 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
12917
12918 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
12919 use gimple_expr_type for load and store calls. Skip over the
12920 condition argument in a conditional internal function.
12921 Protect use of TREE_INT_CST_LOW.
12922
12923 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12924
12925 PR target/90015
12926 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
12927 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
12928 trailing period from it too.
12929
12930 2019-04-08 wu yuan <wuyuan5@huawei.com>
12931
12932 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
12933 * config/aarch64/aarch64.md : Add "tsv110.md"
12934 * config/aarch64/tsv110.md: New file.
12935
12936 2019-04-08 Richard Biener <rguenther@suse.de>
12937
12938 PR tree-optimization/90006
12939 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
12940 calls like lrint.
12941
12942 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
12943
12944 PR target/83033
12945 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
12946 construction.
12947 (fma_root_node): Likewise.
12948 (func_fma_steering): Likewise.
12949
12950 2019-04-08 Jakub Jelinek <jakub@redhat.com>
12951
12952 PR rtl-optimization/89865
12953 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
12954
12955 PR rtl-optimization/89865
12956 * config/i386/i386.md
12957 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
12958 numbers not to clash with the additional operands[4].
12959 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
12960 with extra register copy in the middle.
12961
12962 2019-04-08 Martin Liska <mliska@suse.cz>
12963
12964 PR gcov-profile/89961
12965 * doc/gcov.texi: Document data_file.
12966 * gcov.c (generate_results): Add data_info into JSON output.
12967
12968 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
12969
12970 PR tree-optimization/89725
12971 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
12972 loop's chrec as invariant symbol.
12973 * tree-chrec.h (chrec_contains_symbols): New parameter.
12974 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
12975 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
12976 function of loops not in DDR's loop_nest.
12977 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
12978
12979 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
12980
12981 PR target/89623
12982 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
12983 Mask.
12984
12985 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
12986
12987 PR target/89945
12988 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12989 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
12990
12991 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
12992
12993 * sched-deps.c (sched_macro_fuse_insns): Check return value of
12994 targetm.fixed_condition_code_regs.
12995
12996 2019-04-05 Richard Biener <rguenther@suse.de>
12997
12998 PR debug/89892
12999 PR debug/89905
13000 * tree-cfgcleanup.c (remove_forwarder_block): Always move
13001 debug bind stmts but reset them if they are not valid at the
13002 destination.
13003
13004 2019-04-05 Martin Liska <mliska@suse.cz>
13005
13006 PR translation/89936
13007 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
13008 order to wrap keywords or arguments.
13009 * collect2.c (main): Likewise.
13010 (scan_prog_file): Likewise.
13011 (scan_libraries): Likewise.
13012 * common/config/riscv/riscv-common.c
13013 (riscv_subset_list::parsing_subset_version): Likewise.
13014 (riscv_subset_list::parse_std_ext): Likewise.
13015 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13016 Likewise.
13017 * config/arm/arm.c (arm_option_override): Likewise.
13018 * config/cris/cris.c (cris_print_operand): Likewise.
13019 * config/darwin-c.c (darwin_pragma_options): Likewise.
13020 (darwin_pragma_unused): Likewise.
13021 (darwin_pragma_ms_struct): Likewise.
13022 * config/ft32/ft32.c (ft32_print_operand): Likewise.
13023 * config/i386/i386.c (print_reg): Likewise.
13024 (ix86_print_operand): Likewise.
13025 * config/i386/xm-djgpp.h: Likewise.
13026 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
13027 * config/m32c/m32c.c (m32c_option_override): Likewise.
13028 * config/msp430/msp430.c (msp430_option_override): Likewise.
13029 * config/nds32/nds32.c (nds32_option_override): Likewise.
13030 * config/nvptx/mkoffload.c (main): Likewise.
13031 * config/rx/rx.c (rx_print_operand): Likewise.
13032 (valid_psw_flag): Likewise.
13033 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
13034 (vms_pragma_nomember_alignment): Likewise.
13035 (vms_pragma_extern_model): Likewise.
13036 * lto-wrapper.c (compile_offload_image): Likewise.
13037 * omp-offload.c (oacc_parse_default_dims): Likewise.
13038 * symtab.c (symtab_node::verify_base): Likewise.
13039 * tlink.c (recompile_files): Likewise.
13040 (start_tweaking): Likewise.
13041 * tree-profile.c (parse_profile_filter): Likewise.
13042
13043 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
13044
13045 PR tree-optimization/89956
13046 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
13047 multiple negates of the same value.
13048
13049 2019-04-04 Martin Sebor <msebor@redhat.com>
13050
13051 PR middle-end/89957
13052 PR middle-end/89911
13053 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
13054 have the same precision since the function crashes otherwise.
13055 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
13056 has non-zero arguments.
13057
13058 2019-04-04 Martin Sebor <msebor@redhat.com>
13059
13060 PR middle-end/89934
13061 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
13062 out if the number of arguments is less than expected.
13063
13064 2019-04-04 Jeff Law <law@redhat.com>
13065
13066 PR rtl-optimization/89399
13067 * ree.c (combine_set_extension): Use single_set rather than
13068 digging into PATTERN for items on the candidate list.
13069 (combine_reaching_defs): Likewise.
13070
13071 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
13072
13073 PR rtl-optimization/46590
13074 * loop-invariant.c (find_defs): Move df_remove_problem and
13075 df_process_deferred_rescans to move_invariants.
13076 Move df_live_add_problem and df_live_set_all_dirty calls
13077 to move_invariants.
13078 (move_invariants): Likewise.
13079 (move_loop_invariants): Likewise, making the df_live calls
13080 conditional on -O. Remove the problem again if we added it
13081 locally.
13082
13083 2019-04-03 qing zhao <qing.zhao@oracle.com>
13084
13085 PR tree-optimization/89730
13086 * ipa-inline.c (can_inline_edge_p): Delete the checking for
13087 -flive-patching=inline-only-static.
13088 (can_inline_edge_by_limits_p): Add the checking for
13089 -flive-patching=inline-only-static and grant always_inline
13090 even when -flive-patching=inline-only-static is specified.
13091
13092 2019-04-03 Jeff Law <law@redhat.com>
13093
13094 PR rtl-optimization/81025
13095 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
13096
13097 2019-04-03 Richard Biener <rguenther@suse.de>
13098
13099 PR tree-optimization/84101
13100 * tree-vect-stmts.c: Include explow.h for hard_function_value,
13101 regs.h for hard_regno_nregs.
13102 (cfun_returns): New helper.
13103 (vect_model_store_cost): When vectorizing a store to a decl
13104 we return and the function ABI returns in a multi-reg location
13105 account for the possible spilling that will happen.
13106
13107 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
13108
13109 * config/s390/s390.c (s390_legitimate_address_p): Reject long
13110 displacement addresses for vector mode operands.
13111
13112 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
13113
13114 * config/arc/arc.c (GMASK_LEN): Define.
13115 (arc_restore_callee_saves): Restore first blink when
13116 !optimize_size.
13117
13118 2019-04-03 Sudakshina Das <sudi.das@arm.com>
13119
13120 * doc/extend.texi: Add deprecated comment on sign-return-address
13121 function attribute and add mbranch-protection.
13122 * doc/invoke.texi: Add bti to the options for mbranch-protection.
13123
13124 2019-04-03 Richard Biener <rguenther@suse.de>
13125
13126 PR lto/89896
13127 * lto-wrapper.c (run_gcc): Avoid implicit rules making
13128 the all target phony.
13129
13130 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
13131
13132 PR target/89902
13133 PR target/89903
13134 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
13135 Return false for variable DImode shifts.
13136 (dimode_scalar_chain::compute_convert_gain): Do not handle
13137 register count operand in variable DImode shifts.
13138 (dimode_scalar_chain::make_vector_copies): Remove support to copy
13139 count argument of a variable shift instruction to a vector register.
13140 (dimode_scalar_chain::convert_reg): Remove support to convert
13141 count argument of a variable shift instruction.
13142
13143 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13144
13145 PR rtl-optimization/84206
13146 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
13147 iterating over loop headers.
13148
13149 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13150
13151 PR rtl-optimization/85876
13152 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
13153 beyond the original fence.
13154
13155 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
13156
13157 * config.gcc: Mark spu* targets as deprecated/obsolete.
13158
13159 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13160
13161 * config/s390/s390-builtin-types.def: New builtin function type
13162 definitions. Remove unused types.
13163 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
13164 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
13165 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
13166 overloaded builtins.
13167 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
13168 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
13169 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
13170 (vec_double, vec_signed, vec_unsigned): Define to use the new
13171 overloaded builtins.
13172 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
13173 Remove expanders.
13174
13175 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13176
13177 * config/s390/s390-builtin-types.def: New builtin function type
13178 definitions.
13179 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
13180 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
13181 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
13182 (s390_vstrszh, s390_vstrszf): New low-level builtins.
13183 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
13184 constant definitions.
13185 * config/s390/vecintrin.h (vec_search_string_cc)
13186 (vec_search_string_until_zero_cc): New builtin name definitions.
13187 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
13188 expanders.
13189 ("vec_vstrs<mode>"): New insn definition.
13190
13191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13192
13193 * config/s390/s390-builtin-types.def: Add new builtin function
13194 types.
13195 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
13196 New overloaded builtins.
13197 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
13198 s390_vsrd.
13199 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
13200 (UNSPEC_VEC_SLDBYTE): ... this.
13201 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
13202 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
13203 definitions.
13204 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
13205 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
13206 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
13207
13208 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13209
13210 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
13211 New insn definition.
13212 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
13213 * config/s390/vector.md (V_HW_HSD): ... here.
13214
13215 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13216
13217 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
13218 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
13219 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
13220 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
13221 New insn definitions.
13222
13223 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13224
13225 * config/s390/s390-builtin-types.def: Add new builtin function type.
13226 * config/s390/s390-builtins.def: Add overloaded builtin
13227 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
13228 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
13229 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
13230 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
13231 ("eltswap<mode>"): New expander.
13232 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
13233 insn definitions.
13234
13235 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13236
13237 * config/s390/s390-builtin-types.def: Add new builtin function types.
13238 * config/s390/s390-builtins.def: Add overloaded builtin
13239 s390_vec_revb. Add low-level builtins for vlbr and vstbr
13240 instructions.
13241 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
13242 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
13243 ("bswap<mode>"): New expander.
13244 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
13245
13246 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13247
13248 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
13249 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
13250 vector builtin version number in __VEC__.
13251
13252 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13253
13254 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
13255 iterators.
13256 (SFSI): New mode attribute.
13257 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
13258 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
13259 rename to ...
13260 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
13261 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
13262 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
13263 ("floatsi<mode>2"): Add wcefb instruction.
13264
13265 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13266
13267 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
13268 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
13269 mode iterators.
13270 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
13271 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
13272 support 32 bit fp-int conversions. Rename to ...
13273 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13274 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13275 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
13276 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
13277 ... to these.
13278
13279 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13280
13281 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
13282 if-then-else constructs if we can use the select instruction.
13283 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
13284
13285 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13286
13287 * config/s390/s390.md ("*popcountdi_arch13_cc")
13288 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
13289 definition.
13290 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
13291 Append _z196 to make it ...
13292 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
13293 ("popcounthi2_z196"): ... this.
13294 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
13295 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
13296
13297 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13298
13299 * config/s390/s390.c (s390_canonicalize_comparison): Convert
13300 certain compares for arch13 in order to make use of the condition
13301 code result produced by the new instructions.
13302 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
13303 nxrk, and nxgrk instruction patterns.
13304 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
13305 (inv_no): Add new code iterator together with some attributes.
13306 ("*andc_split_<mode>"): Disable splitter for arch13.
13307 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
13308 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
13309 ("*<ANDOR:bitops_name>c<GPR:mode>")
13310 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
13311 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
13312 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
13313 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
13314
13315 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13316
13317 * common/config/s390/s390-common.c (processor_flags_table): New
13318 entry for arch13.
13319 * config.gcc: Support arch13 with the --with-arch= configure flag.
13320 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13321 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
13322 * config/s390/s390.c (s390_get_sched_attrmask)
13323 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
13324 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
13325 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
13326 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
13327 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
13328 definitions.
13329 * config/s390/s390.opt: Support arch13 as processor type in
13330 command line options.
13331
13332 2019-04-02 Martin Liska <mliska@suse.cz>
13333
13334 PR translation/89912
13335 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
13336 Fix param description of graphite-max-arrays-per-scop.
13337
13338 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
13339
13340 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
13341 (ASAN_CC1_SPEC): Use it in 64-bit mode.
13342 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
13343
13344 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13345
13346 PR rtl-optimization/85412
13347 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
13348 sel_sched_region_1, not after.
13349
13350 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13351
13352 PR rtl-optimization/86928
13353 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
13354 compute_live if necessary.
13355 (sel_redirect_edge_and_branch): Likewise.
13356
13357 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
13358
13359 PR rtl-optimization/89865
13360 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
13361 register if it is a part of small class.
13362
13363 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13364
13365 PR rtl-optimization/87273
13366 * sel-sched-ir.c (merge_fences): Remove assert.
13367
13368 2019-04-01 Richard Biener <rguenther@suse.de>
13369
13370 PR tree-optimization/46590
13371 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
13372 (dom_walker::m_reachability): Add in place of...
13373 (dom_walker::m_skip_unreachable_blocks): ...this.
13374 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
13375 Move complex initialization ...
13376 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
13377 lazily and initialize edge flags on each invocation.
13378 (dom_walker::bb_reachable): Use m_reachability.
13379
13380 2019-04-01 Martin Liska <mliska@suse.cz>
13381
13382 PR driver/89861
13383 * opt-suggestions.c (option_proposer::build_option_suggestions):
13384 Add variant without any argument in order to provide better
13385 hints.
13386
13387 2019-04-01 Richard Biener <rguenther@suse.de>
13388
13389 PR c/71598
13390 * gimple.c: Include langhooks.h.
13391 (gimple_get_alias_set): Treat enumeral types as the underlying
13392 integer type.
13393
13394 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13395 Eric Botcazou <ebotcazou@adacore.com>
13396
13397 PR rtl-optimization/89862
13398 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
13399 that operates on the full registers for WORD_REGISTER_OPERATIONS
13400 architectures.
13401
13402 2019-03-29 Jim Wilson <jimw@sifive.com>
13403
13404 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
13405 Clear MASK_RVC and then set if C subset supported.
13406
13407 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13408
13409 PR c/89872
13410 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
13411 non-addressable complit into its initializer if it is volatile.
13412
13413 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
13414
13415 * opts-common.c (integral_argument): Set errno properly in one case.
13416
13417 2019-03-29 Martin Liska <mliska@suse.cz>
13418
13419 * doc/invoke.texi: Remove -Wchkp from documentation.
13420
13421 2019-03-29 Martin Liska <mliska@suse.cz>
13422
13423 * dbgcnt.c (print_limit_reach): New function.
13424 (dbg_cnt): Use it.
13425
13426 2019-03-29 Martin Liska <mliska@suse.cz>
13427
13428 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
13429 (dbg_cnt_process_opt): Parse first tokens aas
13430 dbg_cnt_process_single_pair is also using strtok.
13431
13432 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13433
13434 PR rtl-optimization/87485
13435 * function.c (expand_function_end): Move stack_protect_epilogue
13436 before loading of return value into hard register(s).
13437
13438 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13439
13440 PR middle-end/89621
13441 * tree-inline.h (struct copy_body_data): Add
13442 dont_remap_vla_if_no_change flag.
13443 * tree-inline.c (remap_type_3, remap_type_2): New functions.
13444 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
13445 and remap_type_2 returns false.
13446 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
13447 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
13448 only from where it is copied to nested contexts.
13449
13450 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13451
13452 PR target/89865
13453 * config/i386/i386.md (RMW operation with LEA peephole):
13454 Use LEAMODE mode attribute instead of SWI mode iterator for
13455 LEA pattern.
13456
13457 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13458
13459 PR target/89848
13460 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13461 Also process XEXP (src, 0) of a shift insn.
13462
13463 2019-03-28 David Malcolm <dmalcolm@redhat.com>
13464
13465 PR middle-end/89725
13466 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
13467 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
13468
13469 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13470
13471 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
13472 test.
13473 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
13474 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
13475 immediately after first one with df_analyze in between, but rather
13476 process all bbs, queueing ones that need second pass in a worklist,
13477 df_analyze, process queued debug insn changes and if second pass is
13478 needed, process bbs from worklist, df_analyze, process queued debug
13479 insns again.
13480
13481 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
13482 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
13483 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
13484
13485 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
13486
13487 PR c/79022
13488 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
13489 definition.
13490
13491 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
13492
13493 PR target/85667
13494 * config/i386/i386.c (ix86_function_value_1): Call the newly added
13495 function for 32-bit MS_ABI.
13496 (function_value_ms_32): New function.
13497
13498 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
13499
13500 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
13501 (movdi): Call gen_movdi_symbol_save_scc.
13502 (gen_movdi_symbol_save_scc): New insn and split.
13503
13504 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
13505
13506 PR rtl-optimization/89313
13507 * function.c (matching_constraint_num): New static function.
13508 (match_asm_constraints_1): Use it. Fixup white space and comment.
13509 Don't replace inputs with non-matching constraints which conflict
13510 with early clobber outputs.
13511
13512 2019-03-27 Jeff Law <law@redhat.com>
13513
13514 PR rtl-optimization/87761
13515 PR rtl-optimization/89826
13516 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
13517 slightly later.
13518 (pass_cprop_hardreg::execute): Call df_analyze after adding the
13519 note problem to get REG_DEAD/REG_UNUSED notes updated.
13520
13521 2019-03-27 Richard Biener <rguenther@suse.de>
13522
13523 PR tree-optimization/89463
13524 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
13525 queue edges to remove.
13526 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
13527 dead stmts. Delay edge removal until PHIs are removed to
13528 make debug-stmt creation not confused by seemingly degenerate
13529 PHIs.
13530
13531 2019-03-27 Alan Modra <amodra@gmail.com>
13532
13533 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
13534 throughout file.
13535 * config/rs6000/darwin.h: Likewise.
13536 * config/rs6000/rs6000.c: Likewise.
13537
13538 2019-03-27 Alan Modra <amodra@gmail.com>
13539
13540 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
13541 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
13542
13543 2019-03-26 Andrew Waterman <andrew@sifive.com>
13544 Jim Wilson <jimw@sifive.com>
13545
13546 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
13547 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
13548 (generic_idivdi, generic_fmul_single, generic_fmul_double)
13549 (generic_fdiv, generic_fsqrt): Add check for generic tune.
13550 (generic_alu): Add auipc to type list.
13551 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
13552 (riscv_microarchitecture): Declare.
13553 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
13554 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
13555 field.
13556 (riscv_microarchitecture): New.
13557 (sifive_7_tune_info): New.
13558 (riscv_cpu_info_table): Add microarchitecture value for rocket and
13559 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
13560 entries.
13561 (riscv_store_data_bypass_p): New.
13562 (riscv_option_override): Set riscv_microarchitecture from
13563 cpu->microarchitecture.
13564 * config/riscv/riscv.md: Include sifive-7.md.
13565 (type): Add auipc.
13566 (tune): New.
13567 (auipc<mode>): Change type to auipc.
13568 (restore_stack_nonlocal): New.
13569 * config/riscv/sifive-7.md: New.
13570 * doc/invoke.texi (RISC-V Options): Update mtune docs.
13571
13572 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
13573
13574 PR target/89827
13575 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13576 Also process XEXP (src, 0) of a shift insn.
13577
13578 2019-03-26 Richard Biener <rguenther@suse.de>
13579
13580 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
13581 (copy_debug_stmt): Likewise.
13582 (expand_call_inline): Likewise.
13583 (copy_bb): Avoid redundant lookup & set of gimple_block.
13584 * gimple-low.c (lower_gimple_return): Likewise.
13585 (lower_builtin_setjmp): Likewise.
13586
13587 2019-03-26 Jakub Jelinek <jakub@redhat.com>
13588
13589 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
13590 is constant 0, turn into static const data member initialized to false.
13591 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
13592 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
13593
13594 2019-03-26 Jason Merrill <jason@redhat.com>
13595 Jakub Jelinek <jakub@redhat.com>
13596
13597 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
13598 method.
13599 (mem_alloc_description::release_object_overhead): Fix comment typos.
13600 * hash-table.h (hash_table::~hash_table): Call
13601 release_instance_overhead only if m_entries is non-NULL, otherwise
13602 call unregister_descriptor.
13603
13604 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
13605
13606 PR tree-optimization/81740
13607 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13608 In case of outer loop vectorization, check for backward dependence
13609 at the inner loop if outer loop dependence is reversed.
13610
13611 2019-03-26 Alan Modra <amodra@gmail.com>
13612
13613 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
13614 rs6000_vector_mem init. Correct wI and wJ comment.
13615
13616 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
13617
13618 PR rtl-optimization/88347
13619 PR rtl-optimization/88423
13620 * sched-deps.c (sched_analyze_insn): Take into account that for
13621 tablejumps the barrier appears after a label and a jump_table_data.
13622
13623 2019-03-25 Martin Sebor <msebor@redhat.com>
13624
13625 PR c/89812
13626 * c-common.c (check_user_alignment): Rename local. Correct maximum
13627 alignment in diagnostic. Avoid assuming argument fits in SHWI,
13628 convert it to UHWI when it fits.
13629
13630 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
13631
13632 PR debug/86964
13633 * dwarf2out.c (premark_used_variables): New function.
13634 (prune_unused_types_walk): Do not mark not premarked external
13635 variables.
13636 (prune_unused_types): Call premark_used_variables.
13637
13638 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
13639
13640 PR rtl-optimization/89676
13641 * lra-constraints.c (curr_insn_transform): Do match reload for
13642 early clobbers when the match was successful only for different
13643 registers.
13644
13645 2019-03-25 Martin Sebor <msebor@redhat.com>
13646
13647 * doc/extend.texi (Common Type Attributes): Document vector_size.
13648 (Common Variable Attributes): Mention size constraint. Correct
13649 quoting and typos.
13650 (Vector Extensions): Use @dfn when defining bas type. Clarify
13651 base type and size constraints.
13652
13653 2019-03-25 Richard Biener <rguenther@suse.de>
13654
13655 PR tree-optimization/89789
13656 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
13657 changes from non-undefined back to undefined.
13658
13659 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
13660
13661 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
13662 heap string and a gc string, but since this variable is unknown to
13663 ggc the gc string might get reused and corrupted. Fixed by always
13664 using a heap string.
13665
13666 2019-03-25 Richard Biener <rguenther@suse.de>
13667
13668 PR tree-optimization/89779
13669 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
13670 to remove IV defs, delay actual removal.
13671 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
13672 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
13673 very end, properly also reset loop control IV information.
13674
13675 2019-03-25 Richard Biener <rguenther@suse.de>
13676
13677 PR tree-optimization/89802
13678 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
13679 move EH data to folded stmt.
13680
13681 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13682
13683 * config/s390/s390-builtin-types.def: Remove few unused types and
13684 fix sort order for others.
13685
13686 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13687
13688 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
13689 expected and found types with -mdebug during builtin matching.
13690
13691 2019-03-25 Richard Biener <rguenther@suse.de>
13692
13693 PR middle-end/89790
13694 * fold-const.c (operand_equal_p): Revert last change with
13695 updated comment.
13696
13697 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
13698
13699 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
13700 notes for the result of the __tls_get_addr calls.
13701 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
13702
13703 2019-03-24 Jeff Law <law@redhat.com>
13704
13705 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
13706
13707 PR rtl-optimization/87761
13708 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
13709 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
13710 as needed.
13711 (pass_cprop_hardreg::execute): Add df note problem and defer insn
13712 rescans. Reprocess blocks as needed, calling df_analyze before
13713 reprocessing. Always call df_analyze before fixing up debug bind
13714 insns.
13715
13716 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
13717
13718 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
13719 big endian.
13720
13721 2019-03-22 Andrew Pinski <apinski@marvell.com>
13722
13723 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
13724 attrribute for uxtw.
13725
13726 2019-03-26 Jeff Law <law@redhat.com>
13727
13728 PR rtl-optimization/87761
13729 * config/mips/mips-protos.h (mips_split_move): Add new argument.
13730 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
13731 (mips_split_move): Accept new INSN argument. Try to forward SRC
13732 into the next instruction.
13733 (mips_split_move_insn): Pass INSN through to mips_split_move.
13734
13735 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
13736
13737 PR rtl-optimization/89676
13738 * lra-constraints.c (curr_insn_transform): Do match reload for
13739 early clobbers even if the match was successful.
13740
13741 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13742
13743 PR c++/87481
13744 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
13745
13746 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
13747
13748 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
13749
13750 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13751
13752 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
13753 <avx512>_fmsub_<mode>_mask3<round_name>,
13754 <avx512>_fnmadd_<mode>_mask3<round_name>,
13755 <avx512>_fnmsub_<mode>_mask3<round_name>,
13756 avx512f_vmfmadd_<mode>_mask3<round_name>,
13757 avx512f_vmfmsub_<mode>_mask3<round_name>,
13758 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
13759 instead of register_operand and %v instead of v for match_operand 1.
13760 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
13761 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
13762 <round_nimm_predicate> instead of register_operand and %v instead of v
13763 for match_operand 1.
13764
13765 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
13766 <avx512>_fmadd_<mode>_mask3<round_name>,
13767 <avx512>_fmsub_<mode>_mask<round_name>,
13768 <avx512>_fmsub_<mode>_mask3<round_name>,
13769 <avx512>_fnmadd_<mode>_mask<round_name>,
13770 <avx512>_fnmadd_<mode>_mask3<round_name>,
13771 <avx512>_fnmsub_<mode>_mask<round_name>,
13772 <avx512>_fnmsub_<mode>_mask3<round_name>,
13773 <avx512>_fmaddsub_<mode>_mask<round_name>,
13774 <avx512>_fmaddsub_<mode>_mask3<round_name>,
13775 <avx512>_fmsubadd_<mode>_mask<round_name>,
13776 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
13777 <round_nimm_predicate> instead of nonimmediate_operand.
13778 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
13779 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
13780 Use register_operand instead of <round_nimm_predicate> for the
13781 operand that needs to match output.
13782 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
13783 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
13784 Likewise. Formatting fixes.
13785
13786 PR target/89784
13787 * config/i386/i386.c (enum ix86_builtins): Remove
13788 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
13789 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
13790 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
13791 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
13792 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
13793 __builtin_ia32_vfmsubss3_mask3): New builtins.
13794 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
13795 avx512f_vmfmadd_<mode>_mask3<round_name>,
13796 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
13797 *avx512f_vmfmsub_<mode>_mask<round_name>,
13798 avx512f_vmfmsub_<mode>_mask3<round_name>,
13799 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
13800 *avx512f_vmfnmadd_<mode>_mask<round_name>,
13801 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
13802 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
13803 *avx512f_vmfnmsub_<mode>_mask<round_name>,
13804 avx512f_vmfnmsub_<mode>_mask3<round_name>,
13805 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
13806 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
13807 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
13808 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
13809 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
13810 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
13811 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
13812 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
13813 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
13814 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
13815 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
13816 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
13817 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
13818 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
13819 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
13820 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
13821 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
13822 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
13823 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
13824 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
13825 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
13826 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
13827
13828 2019-03-21 Martin Sebor <msebor@redhat.com>
13829
13830 PR tree-optimization/89350
13831 * builtins.c (compute_objsize): Also ignore offsets whose upper
13832 bound is negative.
13833 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
13834 (builtin_memref::builtin_memref): Initialize new member.
13835 Allow EXPR to be null.
13836 (builtin_memref::extend_offset_range): Replace local with a member.
13837 Avoid assuming pointer offsets are unsigned.
13838 (builtin_memref::set_base_and_offset): Determine base object
13839 before computing offset range.
13840 (builtin_access::builtin_access): Handle memset.
13841 (builtin_access::generic_overlap): Replace local with a member.
13842 (builtin_access::strcat_overlap): Same.
13843 (builtin_access::overlap): Same.
13844 (maybe_diag_overlap): Same.
13845 (maybe_diag_access_bounds): Same.
13846 (wrestrict_dom_walker::check_call): Handle memset.
13847 (check_bounds_or_overlap): Same.
13848
13849 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
13850 Jakub Jelinek <jakub@redhat.com>
13851
13852 PR lto/89692
13853 * tree.c (fld_type_variant, fld_incomplete_type_of,
13854 fld_process_array_type): Call fld->pset.add and don't call
13855 add_tree_to_fld_list if it returns true.
13856 (free_lang_data_in_type): Similarly with self-recursive call. Purge
13857 non-marked types from TYPE_NEXT_VARIANT list.
13858 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
13859
13860 2019-03-21 Jakub Jelinek <jakub@redhat.com>
13861
13862 * hash-table.h (hash_table): Add Lazy template parameter defaulted
13863 to false, if true, don't alloc_entries during construction, but defer
13864 it to the first method that needs m_entries allocated.
13865 (hash_table::hash_table, hash_table::~hash_table,
13866 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
13867 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
13868 hash_table::clear_slot, hash_table::traverse_noresize,
13869 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
13870 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
13871 false.
13872 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
13873 NO_INSERT instead of find_with_hash.
13874 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
13875 hash_set::m_table): Add Lazy to template params of hash_table.
13876 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
13877 * attribs.c (test_attribute_exclusions): Likewise.
13878 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
13879 hash_set. Add tests for hash_set with Lazy = true.
13880
13881 2019-03-21 Richard Biener <rguenther@suse.de>
13882
13883 PR tree-optimization/89779
13884 * tree.c (tree_nop_conversion): Consolidate and fix defensive
13885 checks with respect to released SSA names now having error_mark_node
13886 type.
13887 * fold-const.c (operand_equal_p): Likewise.
13888
13889 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
13890
13891 PR target/89775
13892 * config/s390/s390.c (global_not_special_regno_p): Move to make it
13893 available to ...
13894 (s390_optimize_register_info): Use global_not_special_regno_p to
13895 check for global regs.
13896
13897 2019-03-20 Jakub Jelinek <jakub@redhat.com>
13898
13899 PR target/89752
13900 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
13901 update this_alternative nor this_alternative_set.
13902
13903 2019-03-19 Jim Wilson <jimw@sifive.com>
13904
13905 PR target/89411
13906 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
13907 align, size, offset. Use them to handle a BLKmode reference. Update
13908 comment.
13909 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
13910
13911 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13912
13913 PR rtl-optimization/89768
13914 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
13915 instead of GEN_INT.
13916 (unroll_loop_runtime_iterations): Likewise.
13917
13918 2019-03-19 Martin Sebor <msebor@redhat.com>
13919
13920 PR tree-optimization/89644
13921 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
13922 rather than endptr as an indicator of nul-termination.
13923
13924 PR tree-optimization/89644
13925 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
13926 arrays in determining sequence sizes in strncpy and stpncpy.
13927
13928 2019-03-19 Martin Liska <mliska@suse.cz>
13929
13930 PR middle-end/89737
13931 * predict.c (combine_predictions_for_bb): Empty likely_edges and
13932 unlikely_edges if there's an edge that belongs to both these sets.
13933
13934 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
13935
13936 PR target/89746
13937 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
13938 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
13939 go via a stack temporary.
13940
13941 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13942
13943 PR target/89378
13944 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
13945 instead of gen_rtx_SUBREG.
13946 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
13947
13948 2019-03-19 Richard Biener <rguenther@suse.de>
13949
13950 PR debug/88389
13951 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
13952
13953 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
13954
13955 PR lto/87809
13956 PR lto/89335
13957 * tree.c (free_lang_data_in_decl): Do not free context of C++
13958 destrutors.
13959
13960 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13961
13962 PR target/89506
13963 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
13964 subs for the first alternative except when operands[3] is 1.
13965
13966 PR target/89752
13967 * gimplify.c (gimplify_asm_expr): For output argument with
13968 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
13969 diagnose error.
13970
13971 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
13972
13973 PR rtl-optimization/89753
13974 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
13975 explicit unrolling factor even more robust.
13976
13977 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13978
13979 PR target/89726
13980 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
13981 compensation use x2 += 1 instead of x2 -= -1 and when honoring
13982 signed zeros, do another copysign after the compensation.
13983
13984 2019-03-18 Martin Sebor <msebor@redhat.com>
13985
13986 PR tree-optimization/89720
13987 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
13988 more conservatively, the same as anti-range.
13989
13990 2019-03-18 Richard Biener <rguenther@suse.de>
13991
13992 PR middle-end/88945
13993 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
13994 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
13995 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
13996 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
13997
13998 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
13999
14000 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
14001 Extend queue to 1024 entries.
14002 Add "consumed" field.
14003 (gomp_print_output): Remove print_index parameter.
14004 Add final parameter.
14005 Change limit to unsigned.
14006 Use consumed field to implement circular buffer.
14007 Detect interrupted print in final pass.
14008 Flush output at the end.
14009 (run): Update gomp_print_output usage.
14010 (main): Initialize kernargs->output_data.consumed.
14011
14012 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
14013
14014 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
14015 calculation of the minimum number of scalar iterations for
14016 fully-predicated loops.
14017
14018 2019-03-18 Martin Jambor <mjambor@suse.cz>
14019
14020 PR tree-optimization/89546
14021 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
14022 any propagation to its children took place.
14023
14024 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
14025
14026 PR target/89627
14027 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
14028 parameter, and make use of it.
14029 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
14030
14031 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14032
14033 * config/arc/arc.opt (mcode-density-frame): Get the inital value
14034 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
14035 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14036 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14037 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
14038 match what the ops is doing.
14039 (push_multi_fp_blink): Likewise.
14040 * config/arc/arc.c (arc_override_options): Enable enter/leave when
14041 compiling for size and elf target.
14042 (arc_save_callee_enter): Adjust note to match what enter/leave
14043 operation does.
14044
14045 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14046
14047 * config/arc/arc.md (tst_movb): Fix constraint.
14048
14049 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14050
14051 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
14052
14053 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14054
14055 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
14056 * config/arc/arc.c (arc_conditional_register_usage): Remove all
14057 reg_alloc_order references.
14058 (size_alloc_order): Define.
14059 (arc_adjust_reg_alloc_order): New function.
14060 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
14061 order.
14062 (ADJUST_REG_ALLOC_ORDER): Define.
14063 (HONOR_REG_ALLOC_ORDER): Likewise.
14064
14065 2019-03-18 Richard Biener <rguenther@suse.de>
14066
14067 PR target/87561
14068 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
14069 loads and stores a bit more.
14070
14071 2019-03-18 Richard Biener <rguenther@suse.de>
14072
14073 PR target/87561
14074 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
14075 load pessimization to stores as well.
14076
14077 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
14078
14079 PR middle-end/86979
14080 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
14081 successor, use NULL as its av set.
14082
14083 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
14084
14085 PR rtl-optimization/89721
14086 * lra-constraints (invariant_p): Return false if side_effects_p holds.
14087
14088 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
14089
14090 PR target/87532
14091 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14092 When handling vec_extract, use modular arithmetic to allow
14093 constant selectors greater than vector length.
14094 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
14095 V1TImode vectors to have constant selector values greater than 0.
14096 Use modular arithmetic to compute vector index.
14097 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
14098 index for in-memory vectors. Correct code generation for
14099 in-register vectors.
14100 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
14101 compute index.
14102
14103 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
14104
14105 PR c++/88534
14106 PR c++/88537
14107 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
14108 VAR_DECL args.
14109
14110 2019-03-15 Jakub Jelinek <jakub@redhat.com>
14111
14112 PR c++/89709
14113 * tree.c (inchash::add_expr): Strip any location wrappers.
14114 * fold-const.c (operand_equal_p): Move stripping of location wrapper
14115 after hash verification.
14116
14117 PR debug/89704
14118 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
14119 SIGN_EXTEND and ZERO_EXTEND.
14120
14121 2019-03-14 Jason Merrill <jason@redhat.com>
14122 Jakub Jelinek <jakub@redhat.com>
14123
14124 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
14125 than if is_empty (*slot).
14126 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
14127 existing elt and for elt removal.
14128 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
14129 of already removed elt.
14130
14131 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
14132
14133 PR target/89650
14134 * config/i386/i386.c (remove_partial_avx_dependency): Handle
14135 REG_EH_REGION note.
14136
14137 2019-03-14 Martin Liska <mliska@suse.cz>
14138
14139 PR other/89712
14140 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
14141
14142 2019-03-14 Richard Biener <rguenther@suse.de>
14143
14144 PR target/89711
14145 * config/i386/i386.c (make_resolver_func): Properly set
14146 DECL_CONTEXT on the RESULT_DECL.
14147 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
14148
14149 2019-03-14 Richard Biener <rguenther@suse.de>
14150
14151 * gimple-pretty-print.c: Include cfgloop.h.
14152 (dump_gimple_phi): Adjust.
14153 (dump_gimple_bb_header): Dump loop header for GIMPLE.
14154 (pp_cfg_jump): Adjust.
14155 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
14156 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
14157 (lower_phi_internal_fn): Remove.
14158 (verify_gimple_call): Remove IFN_PHI special-casing.
14159 (dump_function_to_file): Dump IL state.
14160 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
14161 done to deal with PHI nodes being present in non-SSA state.
14162
14163 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14164
14165 PR ipa/89684
14166 * multiple_target.c (create_dispatcher_calls): Change
14167 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
14168 In the node->iterate_referring loop, push *ref rather than ref, call
14169 ref->remove_reference () and always pass 0 to iterate_referring.
14170
14171 PR rtl-optimization/89679
14172 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
14173 would contain a paradoxical SUBREG.
14174
14175 2019-03-14 Richard Biener <rguenther@suse.de>
14176
14177 PR tree-optimization/89710
14178 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
14179 safe_dyn_cast.
14180
14181 2019-03-14 Martin Liska <mliska@suse.cz>
14182
14183 * coverage.c (coverage_begin_function): Stream also
14184 end_column.
14185 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
14186 documentation about function declaration location.
14187 * gcov-dump.c (tag_function): Print whole range
14188 of function declaration.
14189 * gcov.c (struct function_info): Add end_column field.
14190 (function_info::function_info): Initialize it.
14191 (output_json_intermediate_file): Output {start,end}_column
14192 fields.
14193 (read_graph_file): Read end_column.
14194
14195 2019-03-14 Richard Biener <rguenther@suse.de>
14196
14197 PR middle-end/89698
14198 * fold-const.c (operand_equal_p): For INDIRECT_REF check
14199 that the access types are similar.
14200
14201 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14202
14203 PR tree-optimization/89703
14204 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
14205 aren't compatible also with builtin_decl_explicit. Check pure
14206 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
14207 and BUILT_IN_STPNCPY{,_CHK}.
14208
14209 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
14210
14211 PR target/89523
14212 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
14213 addr32 prefix to VSIB address for X32.
14214 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
14215 "%M2" to opcode.
14216 (*avx512pf_gatherpf<mode>df_mask): Likewise.
14217 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
14218 (*avx512pf_scatterpf<mode>df_mask): Likewise.
14219 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
14220 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
14221 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
14222 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
14223 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
14224 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
14225 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
14226 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
14227 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
14228 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
14229 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
14230 (*avx512f_scatterdi<mode>): Likewise.
14231
14232 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
14233
14234 PR target/85860
14235 * lra-constraints.c (inherit_in_ebb): Update
14236 potential_reload_hard_regs along with live_hard_regs.
14237
14238 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14239
14240 PR debug/89498
14241 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
14242 DWARF_OFFSET_SIZE.
14243 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
14244
14245 2019-03-13 Martin Sebor <msebor@redhat.com>
14246
14247 PR tree-optimization/89662
14248 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
14249 has a size.
14250
14251 2019-03-13 Richard Biener <rguenther@suse.de>
14252
14253 PR middle-end/89677
14254 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
14255 throw FP expressions at tree-affine.
14256
14257 2019-03-14 Richard Biener <rguenther@suse.de>
14258
14259 * tree-pretty-print.c (dump_generic_node): For -gimple properly
14260 dump negative integer constants using _Literal (type) -num.
14261
14262 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14263
14264 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
14265 nonlocal_value member.
14266
14267 PR middle-end/88588
14268 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
14269 (ipa_simd_modify_function_body): Handle PHIs.
14270
14271 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14272
14273 * config/s390/s390.c (s390_option_override_internal): Use more
14274 aggressive inlining parameters.
14275
14276 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14277
14278 * config/s390/3906.md: New file.
14279 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14280 (LONGRUNNING_THRESHOLD): Remove.
14281 (MAX_SCHED_MIX_SCORE): Decrease.
14282 (MAX_SCHED_MIX_DISTANCE): Decrease.
14283 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
14284 (struct s390_sched_state): New struct to hold scheduling state.
14285 (S390_SCHED_STATE_NORMAL): Remove.
14286 (S390_SCHED_STATE_CRACKED): Remove.
14287 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
14288 (s390_get_sched_attrmask): Use new attribute.
14289 (s390_get_unit_mask): Use new units.
14290 (s390_is_fpd): New function.
14291 (s390_is_fxd): New function.
14292 (s390_is_longrunning): New function.
14293 (s390_sched_score): Use new functions.
14294 (s390_sched_reorder): Likewise.
14295 (s390_sched_variable_issue): Rework and use new functions.
14296 (s390_sched_init): Use new functions.
14297 * config/s390/s390.h (s390_tune_attr): Add z14.
14298 * config/s390/s390.md: Add z14.
14299
14300 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14301
14302 * config/s390/2964.md: Update pipeline description.
14303 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14304 (LONGRUNNING_THRESHOLD): Remove.
14305 (LATENCY_FACTOR): Remove.
14306 (s390_get_unit_mask): Add unit.
14307 (s390_sched_score): Use fxd/fpd.
14308 (s390_sched_variable_issue): Use fxd/fpd.
14309
14310 2019-03-12 Martin Liska <mliska@suse.cz>
14311
14312 * config/i386/i386.c: Reword an error message.
14313
14314 2019-03-12 Martin Jambor <mjambor@suse.cz>
14315
14316 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
14317 terminate with newline.
14318
14319 2019-03-12 Jakub Jelinek <jakub@redhat.com>
14320
14321 PR target/52726
14322 * config/s390/s390.md (tabort): Use %wd instead of
14323 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
14324 letters and periods.
14325 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
14326 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
14327 's with %< and %>.
14328
14329 PR middle-end/89663
14330 * builtins.c (expand_builtin_int_roundingfn,
14331 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
14332 gcc_unreachable if validate_arglist fails.
14333
14334 2019-03-12 Richard Biener <rguenther@suse.de>
14335
14336 PR tree-optimization/89664
14337 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
14338 free the occurance tree after the early out.
14339
14340 2019-03-11 Jakub Jelinek <jakub@redhat.com>
14341
14342 PR middle-end/89655
14343 PR bootstrap/89656
14344 * vr-values.c (vr_values::update_value_range): If
14345 old_vr->varying_p (), don't update it, make new_vr also VARYING
14346 and return false.
14347
14348 2019-03-11 Martin Liska <mliska@suse.cz>
14349
14350 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14351 Fix double string quoting.
14352
14353 2019-03-11 Martin Liska <mliska@suse.cz>
14354
14355 * collect-utils.c (collect_wait): Wrap apostrophes
14356 in gcc internal format with %'.
14357 * collect2.c (main): Likewise.
14358 (scan_prog_file): Likewise.
14359 (scan_libraries): Likewise.
14360 * config/i386/i386.c (ix86_expand_call): Likewise.
14361 (ix86_handle_interrupt_attribute): Likewise.
14362 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14363 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14364 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
14365 * lto-wrapper.c (find_crtoffloadtable): Likewise.
14366 * symtab.c (symtab_node::verify_base): Likewise.
14367 * tree-cfg.c (verify_gimple_label): Likewise.
14368 * tree.c (verify_type_variant): Likewise.
14369
14370 2019-03-11 Martin Liska <mliska@suse.cz>
14371
14372 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
14373 in a string format message and fix GNU coding style.
14374 (expand_builtin_set_thread_pointer): Likewise.
14375 * common/config/aarch64/aarch64-common.c
14376 (aarch64_rewrite_selected_cpu): Likewise.
14377 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
14378 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
14379 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
14380 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
14381 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
14382 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
14383 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
14384 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
14385 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
14386 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
14387 Likewise.
14388 * common/config/riscv/riscv-common.c
14389 (riscv_subset_list::parsing_subset_version): Likewise.
14390 (riscv_subset_list::parse_std_ext): Likewise.
14391 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14392 (riscv_subset_list::parse): Likewise.
14393 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
14394 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
14395 (aarch64_override_options_internal): Likewise.
14396 (aarch64_validate_mcpu): Likewise.
14397 (aarch64_validate_march): Likewise.
14398 (aarch64_validate_mtune): Likewise.
14399 (aarch64_override_options): Likewise.
14400 * config/alpha/alpha.c (alpha_option_override): Likewise.
14401 * config/arc/arc.c (arc_init): Likewise.
14402 (parse_mrgf_banked_regs_option): Likewise.
14403 (arc_override_options): Likewise.
14404 (arc_expand_builtin_aligned): Likewise.
14405 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
14406 (arm_expand_builtin): Likewise.
14407 * config/arm/arm.c (arm_option_check_internal): Likewise.
14408 (arm_configure_build_target): Likewise.
14409 (arm_option_override): Likewise.
14410 (arm_options_perform_arch_sanity_checks): Likewise.
14411 (arm_handle_cmse_nonsecure_entry): Likewise.
14412 (arm_handle_cmse_nonsecure_call): Likewise.
14413 (arm_tls_referenced_p): Likewise.
14414 (thumb1_expand_prologue): Likewise.
14415 * config/avr/avr.c (avr_option_override): Likewise.
14416 * config/bfin/bfin.c (bfin_option_override): Likewise.
14417 * config/c6x/c6x.c (c6x_option_override): Likewise.
14418 * config/cr16/cr16.c (cr16_override_options): Likewise.
14419 * config/cris/cris.c (cris_option_override): Likewise.
14420 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
14421 * config/darwin-c.c (macosx_version_as_macro): Likewise.
14422 * config/darwin.c (darwin_override_options): Likewise.
14423 * config/frv/frv.c (frv_expand_builtin): Likewise.
14424 * config/h8300/h8300.c (h8300_option_override): Likewise.
14425 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
14426 (ix86_option_override_internal): Likewise.
14427 (warn_once_call_ms2sysv_xlogues): Likewise.
14428 (ix86_expand_prologue): Likewise.
14429 (split_stack_prologue_scratch_regno): Likewise.
14430 (ix86_warn_parameter_passing_abi): Likewise.
14431 * config/ia64/ia64.c (fix_range): Likewise.
14432 * config/m68k/m68k.c (m68k_option_override): Likewise.
14433 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
14434 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
14435 (mips_set_compression_mode): Likewise.
14436 * config/mmix/mmix.c (mmix_option_override): Likewise.
14437 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
14438 * config/msp430/msp430.c (msp430_option_override): Likewise.
14439 * config/nds32/nds32.c (nds32_option_override): Likewise.
14440 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
14441 (nios2_option_override): Likewise.
14442 (nios2_expand_custom_builtin): Likewise.
14443 * config/nvptx/mkoffload.c (main): Likewise.
14444 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
14445 * config/pa/pa.c (fix_range): Likewise.
14446 (pa_option_override): Likewise.
14447 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
14448 (riscv_option_override): Likewise.
14449 * config/rl78/rl78.c (rl78_option_override): Likewise.
14450 * config/rs6000/aix61.h: Likewise.
14451 * config/rs6000/aix71.h: Likewise.
14452 * config/rs6000/aix72.h: Likewise.
14453 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
14454 * config/rs6000/freebsd64.h: Likewise.
14455 * config/rs6000/linux64.h: Likewise.
14456 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
14457 (rs6000_expand_zeroop_builtin): Likewise.
14458 (rs6000_expand_mtfsb_builtin): Likewise.
14459 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
14460 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
14461 (rs6000_invalid_builtin): Likewise.
14462 (rs6000_expand_split_stack_prologue): Likewise.
14463 * config/rs6000/rtems.h: Likewise.
14464 * config/rx/rx.c (valid_psw_flag): Likewise.
14465 (rx_expand_builtin): Likewise.
14466 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14467 * config/s390/s390.c (s390_expand_builtin): Likewise.
14468 (s390_function_profiler): Likewise.
14469 (s390_option_override_internal): Likewise.
14470 (s390_option_override): Likewise.
14471 * config/sh/sh.c (sh_option_override): Likewise.
14472 (sh_builtin_saveregs): Likewise.
14473 (sh_fix_range): Likewise.
14474 * config/sh/vxworks.h: Likewise.
14475 * config/sparc/sparc.c (sparc_option_override): Likewise.
14476 * config/spu/spu.c (spu_option_override): Likewise.
14477 (fix_range): Likewise.
14478 * config/visium/visium.c (visium_option_override): Likewise.
14479 (visium_handle_interrupt_attr): Likewise.
14480 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
14481 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
14482 (dbg_cnt_process_opt): Likewise.
14483 * dwarf2out.c (output_dwarf_version): Likewise.
14484 * except.c (expand_eh_return): Likewise.
14485 * gcc.c (defined): Likewise.
14486 (driver_handle_option): Likewise.
14487 (process_command): Likewise.
14488 (compare_files): Likewise.
14489 (driver::prepare_infiles): Likewise.
14490 (driver::do_spec_on_infiles): Likewise.
14491 (driver::maybe_run_linker): Likewise.
14492 * omp-offload.c (oacc_parse_default_dims): Likewise.
14493 * opts-global.c (handle_common_deferred_options): Likewise.
14494 * opts.c (parse_sanitizer_options): Likewise.
14495 (common_handle_option): Likewise.
14496 (enable_warning_as_error): Likewise.
14497 * passes.c (enable_disable_pass): Likewise.
14498 * plugin.c (parse_plugin_arg_opt): Likewise.
14499 (default_plugin_dir_name): Likewise.
14500 * targhooks.c (default_expand_builtin_saveregs): Likewise.
14501 (default_pch_valid_p): Likewise.
14502 * toplev.c (init_asm_output): Likewise.
14503 (process_options): Likewise.
14504 (toplev::run_self_tests): Likewise.
14505 * tree-cfg.c (verify_gimple_call): Likewise.
14506 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
14507 (tree_inlinable_function_p): Likewise.
14508 * var-tracking.c (vt_find_locations): Likewise.
14509
14510 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
14511
14512 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
14513 only on the else branch.
14514
14515 2019-03-11 Martin Liska <mliska@suse.cz>
14516
14517 * gcov.c (output_intermediate_json_line): Print function
14518 name of each line.
14519 (output_json_intermediate_file): Add new argument.
14520 * doc/gcov.texi: Document the change.
14521
14522 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
14523
14524 PR rtl-optimization/89588
14525 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14526 explicit unrolling factor more robust.
14527
14528 2019-03-11 Richard Biener <rguenther@suse.de>
14529
14530 PR tree-optimization/89649
14531 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14532 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
14533 on the prolog and epilog loops.
14534 (vect_loop_versioning): Return copy of loop.
14535 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
14536 on the non-vectorized version of the loop.
14537
14538 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
14539
14540 PR target/68924
14541 * config/i386/sse.md (*vec_extractv2di_0_sse):
14542 Add (=r,x) alternative and corresponding splitter.
14543
14544 2019-03-10 Martin Jambor <mjambor@suse.cz>
14545
14546 PR tree-optimization/85762
14547 PR tree-optimization/87008
14548 PR tree-optimization/85459
14549 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
14550 it points to if there is a type changing MEM_REF. Adjust all callers.
14551 (build_accesses_from_assign): Disable total scalarization if
14552 contains_vce_or_bfcref_p returns true through the new parameter, for
14553 both rhs and lhs.
14554
14555 2019-03-09 Jakub Jelinek <jakub@redhat.com>
14556
14557 PR c/88568
14558 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
14559 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
14560
14561 PR target/79645
14562 * common.opt (fdiagnostics-show-labels,
14563 fdiagnostics-show-line-numbers, fdiagnostics-format=,
14564 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
14565 gas-locview-support, ginline-points, ginternal-reset-location-views):
14566 Terminate description text with a dot.
14567 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
14568 * config/mcore/mcore.opt (m210, m340): Likewise.
14569 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
14570 mnops=): Start description text with a capital letter.
14571 * config/arc/arc.opt (msize-level=): Likewise.
14572 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
14573 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
14574 mnewlib): Likewise.
14575 * config/ft32/ft32.opt (msim): Likewise.
14576 (mft32b, mcompress): Likewise. Terminate description text with a dot.
14577 (mnodiv, mnopm): Terminate description text with a dot.
14578 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
14579 a colon.
14580 * config/i386/i386.opt (prefer_vector_width, instrument_return):
14581 Likewise.
14582 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
14583 text.
14584
14585 PR rtl-optimization/89634
14586 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
14587 are modified in BB_END (e->src) instruction.
14588
14589 2019-03-08 David Malcolm <dmalcolm@redhat.com>
14590
14591 PR target/79926
14592 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
14593 messages more amenable to translation, and improve wording.
14594
14595 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
14596
14597 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
14598 ud- and du-chains between phases.
14599
14600 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
14601
14602 PR debug/89631
14603 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
14604 instead of POLY_INT_CST.
14605
14606 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
14607
14608 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
14609 requirement.
14610
14611 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
14612
14613 PR target/68924
14614 PR target/78782
14615 PR target/87558
14616 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
14617 (_mm_storeu_si64): Ditto.
14618
14619 2019-03-08 Martin Liska <mliska@suse.cz>
14620
14621 PR target/86952
14622 * config/i386/i386.c (ix86_option_override_internal): Disable
14623 jump tables when retpolines are used.
14624
14625 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
14626
14627 PR go/63560
14628 * ipa-split.c (execute_split_functions): Do not split
14629 'noinline' or 'section' function.
14630
14631 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14632
14633 PR target/79846
14634 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
14635 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
14636 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
14637
14638 PR ipa/80000
14639 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14640 from diagnostics. Formatting fixes.
14641
14642 PR target/85665
14643 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
14644 warn_odr diagnostics.
14645
14646 PR other/80058
14647 * lra-constraints.c (process_alt_operands): Avoid one space before
14648 " at the end of line and another after " on another line in a string
14649 literal.
14650 * attribs.c (handle_dll_attribute): Likewise.
14651 * config/avr/avr-devices.c (avr_texinfo): Likewise.
14652
14653 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
14654 warning_at or inform messages in G_() if there is no ?:.
14655
14656 PR tree-optimization/89550
14657 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
14658 returned true. Formatting fixes.
14659 (expand_builtin_strnlen): Formatting fixes.
14660 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
14661 if warning_at returned true.
14662 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
14663
14664 2019-03-08 Richard Biener <rguenther@suse.de>
14665
14666 PR middle-end/89578
14667 * cfgloop.h (struct loop): Add owned_clique field.
14668 * cfgloopmanip.c (copy_loop_info): Copy it.
14669 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
14670 cliques.
14671 * tree-inline.c (copy_loops): Remap owned_clique.
14672 * lto-streamer-in.c (input_cfg): Stream owned_clique.
14673 * lto-streamer-out.c (output_cfg): Likewise.
14674
14675 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14676
14677 PR target/80190
14678 * config/darwin.c: Include intl.h.
14679 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
14680 composing the message out of two separate parts.
14681
14682 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14683
14684 PR target/80003
14685 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
14686 doesn't start with a capital letter and doesn't end with a dot.
14687 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
14688 with a capital letter.
14689 (ix86_mangle_function_version_assembler_name): Likewise.
14690 (ix86_generate_version_dispatcher_body): Likewise.
14691 (fold_builtin_cpu): Likewise.
14692 (get_builtin_code_for_version): Likewise. Remove extraneous space.
14693 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
14694 translators, wrap full type name in %qs.
14695
14696 PR translation/79999
14697 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
14698 depend clause with source (or sink) modifier.
14699 * omp-expand.c (expand_omp_ordered_sink): Likewise.
14700
14701 PR target/89602
14702 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
14703 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
14704 (avx512f_load<mode>_mask): New define_expand.
14705 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
14706 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
14707 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
14708 __builtin_ia32_movess_mask): New builtins.
14709 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
14710 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
14711 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
14712 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
14713
14714 2019-03-07 Martin Jambor <mjambor@suse.cz>
14715
14716 PR lto/87525
14717 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
14718 for extern inline functions.
14719
14720 2019-03-07 Martin Jambor <mjambor@suse.cz>
14721
14722 PR ipa/88235
14723 * cgraph.h (cgraph_node): New inline method former_thunk_p.
14724 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
14725 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
14726 have multiple callees. At the end check if declarations match as
14727 opposed to cgraph_nodes.
14728
14729 2019-03-07 Martin Liska <mliska@suse.cz>
14730
14731 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
14732 which is equivalent to searching for this in clones chain.
14733 * symtab.c (symtab_node::verify_base): Similarly compare ASM
14734 names with a neighbour and special case first node in a chain.
14735
14736 2019-01-25 Jason Merrill <jason@redhat.com>
14737
14738 PR c++/80916 - spurious "static but not defined" warning.
14739 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
14740 for an internal symbol with DECL_EXTERNAL.
14741
14742 2019-04-07 Richard Biener <rguenther@suse.de>
14743
14744 PR middle-end/89618
14745 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
14746 * tree-inline.c (copy_loops): Simplify.
14747
14748 2019-03-07 Martin Liska <mliska@suse.cz>
14749
14750 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
14751
14752 2019-03-07 Richard Biener <rguenther@suse.de>
14753
14754 PR tree-optimization/89595
14755 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
14756 stmt iterator as reference, take boolean output parameter to
14757 indicate whether the stmt was removed and thus the iterator
14758 already advanced.
14759 (dom_opt_dom_walker::before_dom_children): Re-iterate over
14760 stmts created by folding.
14761
14762 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14763
14764 PR c++/89585
14765 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
14766 at toplevel.
14767
14768 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
14769
14770 PR rtl-optimization/88845
14771 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
14772 LRA.
14773 * lra.c (remove_scratches_1): New function.
14774 (remove_scratches): Use it.
14775 (lra_emit_move): Likewise.
14776
14777 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
14778
14779 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
14780 unaligned_access variable.
14781 * config/arc/arc.c (arc_override_options): Set unaligned access
14782 default on for HS CPUs.
14783 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
14784
14785 2019-03-06 Martin Liska <mliska@suse.cz>
14786
14787 PR gcov-profile/89577
14788 * doc/gcov.texi: Prefer to use --coverage.
14789 * doc/sourcebuild.texi: Likewise.
14790
14791 2019-03-02 Jason Merrill <jason@redhat.com>
14792
14793 PR c++/86485 - -Wmaybe-unused with empty class ?:
14794 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
14795
14796 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14797
14798 PR target/89587
14799 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
14800 if_multiarch.
14801
14802 PR middle-end/89590
14803 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
14804 exactly one argument.
14805
14806 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14807 Richard Sandiford <richard.sandiford@arm.com>
14808
14809 PR tree-optimization/89570
14810 * match.pd (vec_cond into cond_op simplification): Don't use
14811 get_conditional_internal_fn, use as_internal_fn (cond_op).
14812
14813 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
14814
14815 PR target/89222
14816 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
14817 to decide when to split off a non-zero offset from a symbol.
14818 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
14819 in function symbols.
14820
14821 2019-03-05 Richard Biener <rguenther@suse.de>
14822
14823 PR tree-optimization/89594
14824 * tree-if-conv.c (pass_if_conversion::execute): Handle
14825 case where .LOOP_VECTORIZED_FUNCTION was removed.
14826
14827 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14828
14829 PR bootstrap/89560
14830 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
14831 instead alloca it only when needed with the needed size.
14832
14833 PR tree-optimization/89570
14834 * match.pd (vec_cond into cond_op simplification): Guard with
14835 vectorized_internal_fn_supported_p test and #if GIMPLE.
14836
14837 PR tree-optimization/89566
14838 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
14839 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
14840 Punt if get_user_idx_format succeeds, but idx_format argument is
14841 not provided or doesn't have pointer type, or if idx_args is above
14842 number of provided arguments.
14843
14844 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
14845
14846 PR tree-optimization/89437
14847 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
14848
14849 2019-03-04 Richard Biener <rguenther@suse.de>
14850
14851 PR middle-end/89572
14852 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
14853 safe_dyn_cast.
14854
14855 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
14856
14857 PR tree-optimization/89487
14858 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
14859 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
14860 (distribute_loop): Don't do runtime alias check if there is non-
14861 addressable data reference.
14862 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
14863 is a register variable.
14864
14865 2019-03-02 Jakub Jelinek <jakub@redhat.com>
14866
14867 PR target/89506
14868 * config/arm/arm.md (cmpsi2_addneg): Use
14869 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
14870 If operands[2] is 0 or INT_MIN, force use of subs.
14871 (*compare_scc splitter): Use gen_int_mode.
14872 (*negscc): Likewise.
14873 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
14874
14875 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
14876 Monk Chiang <sh.chiang04@gmail.com>
14877
14878 * common/config/riscv/riscv-common.c: Include sstream.
14879 (riscv_subset_list::to_string): New.
14880 (riscv_arch_str): Likewise.
14881 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
14882 * config.in: Regen.
14883 * config/riscv/riscv-protos.h (riscv_arch_str): New.
14884 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
14885 (riscv_emit_attribute): New.
14886 (riscv_file_start): Emit attribute if needed.
14887 (riscv_option_override): Init riscv_emit_attribute_p.
14888 * config/riscv/riscv.opt (mriscv-attribute): New option.
14889 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
14890 * configure: Regen.
14891 * doc/install.texi: Document --with-riscv-attribute.
14892 * doc/invoke.texi: Document -mriscv-attribute.
14893
14894 * common/config/riscv/riscv-common.c:
14895 Include config/riscv/riscv-protos.h.
14896 (INCLUDE_STRING): Defined.
14897 (RISCV_DONT_CARE_VERSION): Defined.
14898 (riscv_subset_t): Declare.
14899 (riscv_subset_t::riscv_subset_t): New.
14900 (riscv_subset_list): Declare.
14901 (riscv_subset_list::riscv_subset_list): New.
14902 (riscv_subset_list::~riscv_subset_list): Likewise.
14903 (riscv_subset_list::parsing_subset_version): Likewise.
14904 (riscv_subset_list::parse_std_ext): Likewise.
14905 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14906 (riscv_subset_list::add): Likewise.
14907 (riscv_subset_list::lookup): Likewise.
14908 (riscv_subset_list::xlen): Likewise.
14909 (riscv_subset_list::parse): Likewise.
14910 (riscv_supported_std_ext): Likewise.
14911 (current_subset_list): Likewise.
14912 (riscv_parse_arch_string): Using riscv_subset_list::parse to
14913 parse.
14914
14915 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
14916
14917 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14918 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
14919 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
14920
14921 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
14922
14923 PR rtl-optimization/85899
14924 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
14925 fallthru edges leading to the exit block.
14926
14927 2019-03-01 Tamar Christina <tamar.christina@arm.com>
14928
14929 PR target/89517
14930 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
14931 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
14932
14933 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
14934
14935 PR tree-optimization/89535
14936 * tree-vect-stmts.c (vectorizable_call): Record the vector types
14937 for each operand. Calculate the fallback choice for mask operands
14938 and pass it to vect_get_vec_def_for_operand.
14939
14940 2019-03-01 Richard Biener <rguenther@suse.de>
14941
14942 PR middle-end/89541
14943 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
14944 get virtual operands.
14945 (get_expr_operands): Handle CONST_DECL like other decls.
14946
14947 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14948
14949 PR middle-end/89503
14950 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
14951 on DECL_P and EXPR_P.
14952
14953 2019-03-01 Richard Biener <rguenther@suse.de>
14954
14955 PR middle-end/89497
14956 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
14957 argument, defaulted to zero.
14958 * passes.c (execute_function_todo): Pass down SSA update flags
14959 to cleanup_tree_cfg.
14960 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
14961 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
14962 form if requested.
14963 (cleanup_tree_cfg): Get and pass down SSA update flags.
14964
14965 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14966
14967 PR bootstrap/89539
14968 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
14969 early_lto_debug argument.
14970
14971 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
14972
14973 PR tree-optimization/89536
14974 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
14975 only whether bit #0 of the value is 0 instead of the entire value.
14976
14977 2019-02-28 Marek Polacek <polacek@redhat.com>
14978
14979 PR c++/87068 - missing diagnostic with fallthrough statement.
14980 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
14981 at the end of a seq, save its location to walk_stmt_info.
14982 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
14983 a switch.
14984
14985 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
14986
14987 PR lto/88585
14988 * tree.c (find_atomic_core_type): Move ahead in file.
14989 (check_base_type): Correctly compare alignments of atomic types.
14990
14991 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
14992
14993 PR target/89455
14994 * config/i386/i386.c (get_builtin_code_for_version): Identify
14995 Westmere from PCLMUL, instead of AES.
14996
14997 2019-02-28 Jakub Jelinek <jakub@redhat.com>
14998
14999 PR target/89434
15000 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
15001 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
15002 -UINTVAL (...).
15003
15004 2019-02-28 Tamar Christina <tamar.christina@arm.com>
15005
15006 PR target/88530
15007 * config/aarch64/aarch64-option-extensions.def: Document it.
15008 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
15009 if empty hwcaps.
15010
15011 2019-02-28 Jakub Jelinek <jakub@redhat.com>
15012
15013 PR c/89520
15014 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
15015 builtins if they don't have a single scalar floating point argument.
15016 Formatting fixes.
15017
15018 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15019
15020 PR rtl-optimization/89490
15021 * varasm.c (get_block_for_section): Bail out for mergeable sections.
15022 (default_use_anchors_for_symbol_p, output_object_block): Assert the
15023 block section is not mergeable.
15024
15025 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15026
15027 PR target/70341
15028 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
15029 old define_insn to ...
15030 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
15031 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
15032 Rename old define_insn to ...
15033 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
15034 (thumb2_casesi_internal_pic): New define_expand. Rename old
15035 define_insn to ...
15036 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
15037 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
15038 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
15039
15040 2019-02-27 Richard Biener <rguenther@suse.de>
15041
15042 PR debug/88878
15043 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
15044
15045 2019-02-27 Richard Biener <rguenther@suse.de>
15046
15047 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
15048 building.
15049
15050 2019-02-27 Richard Biener <rguenther@suse.de>
15051
15052 PR debug/88878
15053 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
15054 parameter, prefix section name with .gnu.debuglto_ if true.
15055 (dwarf2out_finish): Pass false to output_comdat_type_unit.
15056 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
15057
15058 2019-02-27 Richard Biener <rguenther@suse.de>
15059
15060 PR debug/89514
15061 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
15062 rather than on use_debug_types, doing what output_die does.
15063 (value_format): Likewise.
15064
15065 2019-02-27 Martin Jambor <mjambor@suse.cz>
15066 Martin Sebor <msebor@redhat.com>
15067
15068 * doc/invoke.texi (Warning Options): Reword description of
15069 -Wno-absolute-value.
15070
15071 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15072
15073 PR tree-optimization/89280
15074 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
15075 builtin_setjmp_setup_bb): New functions.
15076 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
15077 When visiting __builtin_setjmp_setup block, queue in special
15078 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
15079 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
15080 from visited after the loop if they don't have any visited successor
15081 blocks.
15082
15083 2018-02-26 Steve Ellcey <sellcey@marvell.com>
15084
15085 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
15086 New function.
15087 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
15088
15089 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15090
15091 PR c++/89507
15092 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
15093 with types other than sizetype/ssizetype.
15094
15095 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15096
15097 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
15098 (enum sparc_processor_type): ...this.
15099 (enum sparc_code_model_type): New enumeration type.
15100 (enum sparc_memory_model_type): Tweak comments.
15101 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
15102 (mtune): Likewise.
15103 (mcmodel): Use sparc_code_model enumeration and variable.
15104 (sparc_code_model): New enumeration.
15105 (mdebug): Add Undocumented marker.
15106 * config/sparc/sparc.h (enum cmodel): Delete.
15107 (sparc_cmodel): Likewise.
15108 (TARGET_CM_MEDLOW): Adjust to above renaming.
15109 (TARGET_CM_MEDMID): Likewise.
15110 (TARGET_CM_MEDANY): Likewise.
15111 (TARGET_CM_EMBMEDANY): Likewise.
15112 * config/sparc/sparc.c (sparc_cmodel): Delete.
15113 (sparc_option_override): Remove string/value mapping support for the
15114 code model. Move code and memory model support to after the handling
15115 of target flags. Do private machine setup last.
15116 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
15117 (sparc_legitimize_reload_address): Likewise.
15118 (sparc_output_mi_thunk): Likewise.
15119 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
15120
15121 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15122
15123 PR tree-optimization/89500
15124 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
15125 (handle_builtin_strlen): Remove noncst_bound variable. Always
15126 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
15127 cst if the first cst bytes starting at x are known to be non-zero,
15128 even if the string is not zero terminated. Don't try to modify
15129 *si for strnlen. Update strlen_to_stridx only for strlen or if
15130 we can prove strnlen returns the same value as strlen would.
15131
15132 2019-02-26 Martin Liska <mliska@suse.cz>
15133
15134 * alloc-pool.h (struct pool_usage): Remove extra
15135 print_dash_line.
15136 * bitmap.h (struct bitmap_usage): Likewise.
15137 * ggc-common.c (struct ggc_usage): Likewise.
15138 * mem-stats.h (struct mem_usage): Likewise.
15139 (mem_alloc_description::dump): Print dash lines
15140 here and repeat header at the end of a table report.
15141 It's then more readable.
15142 * tree-phinodes.c (phinodes_print_statistics): Make
15143 horizontal alignment.
15144 * tree-ssanames.c (ssanames_print_statistics): Likewise.
15145 * vec.c (struct vec_usage): Remove extra print_dash_line.
15146 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
15147
15148 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
15149
15150 * doc/extend.texi (__builtin_object_size):
15151 Use @pxref instead of @xref inside parenthesis.
15152 (__builtin_has_attribute): Add missing comma after @xref.
15153 (__builtin_object_size): Ditto.
15154 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
15155
15156 2019-02-26 Jeff Law <law@redhat.com>
15157
15158 PR rtl-optimization/87761
15159 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
15160 detect obviously dead insns and delete them.
15161
15162 2019-02-26 Richard Biener <rguenther@suse.de>
15163
15164 PR tree-optimization/89505
15165 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
15166 to handle restrict pointed-to vars with multiple subvars
15167 correctly.
15168
15169 2019-02-26 Richard Biener <rguenther@suse.de>
15170
15171 PR tree-optimization/89489
15172 * tree-parloops.c (create_loop_fn): Copy over last_clique.
15173
15174 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15175
15176 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
15177 and move around comment.
15178 <BIT_AND_EXPR>: Likewise.
15179 <BIT_NOT_EXPR>: Add specific handling for boolean types.
15180
15181 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR target/89474
15184 * config/i386/i386.c (remove_partial_avx_dependency): Call
15185 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
15186 after changing possibly many instructions to use that pseudo. Fix up
15187 insertion of v4sf_const0 setter at the start of bb.
15188
15189 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15190
15191 PR c/80409
15192 * doc/extend.texi (Variadic Pointer Args): New section.
15193
15194 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15195 Martin Sebor <msebor@gmail.com>
15196
15197 * common.opt (Wattribute-alias): Likewise.
15198 * doc/invoke.texi (Option Summary): List general form of
15199 -Wattribute-alias=. List positive form of -Wmissing-attributes.
15200 (-Wmissing-attributes): Invert entry, rewrite and correct default.
15201 Add cross-references.
15202 (-Wattribute-alias): Rewrite and correct default. Mention
15203 considered attributes (same as for -Wmissing-attributes).
15204
15205 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
15206
15207 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
15208 (_mm_cvtpd_ps): Likewise.
15209 (_mm_cvttpd_epi32): Likewise.
15210
15211 PR target/89338
15212 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
15213 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
15214
15215 PR target/89339
15216 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
15217
15218 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15219
15220 PR target/88530
15221 * common/config/aarch64/aarch64-common.c
15222 (struct aarch64_option_extension): Add is_synthetic.
15223 (all_extensions): Use it.
15224 (TARGET_OPTION_INIT_STRUCT): Define hook.
15225 (struct gcc_targetm_common): Moved to end.
15226 (all_extensions_by_on): New.
15227 (opt_ext_cmp, typedef opt_ext): New.
15228 (aarch64_option_init_struct): New.
15229 (aarch64_contains_opt): New.
15230 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
15231 * config/aarch64/aarch64-option-extensions.def
15232 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
15233 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
15234 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
15235 Set is_synthetic to false.
15236 (crypto): Set is_synthetic to true.
15237 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
15238 SYNTHETIC.
15239
15240 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15241
15242 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15243 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
15244 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15245 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
15246 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
15247 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
15248 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
15249 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
15250 Rename ...
15251 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
15252 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15253 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
15254 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
15255 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
15256 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
15257 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
15258 vfmlsl_laneq_high_f16): ... To this.
15259 * config/arm/neon.md: Update comments.
15260
15261 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15262
15263 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15264 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
15265 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15266 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
15267 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
15268 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
15269 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
15270 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
15271 Rename ...
15272 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
15273 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15274 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
15275 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
15276 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
15277 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
15278 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
15279 vfmlslq_laneq_high_f16): ... To this.
15280
15281 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
15282
15283 PR rtl-optimization/86096
15284 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
15285 comparing mw_order values.
15286
15287 2019-02-25 Jakub Jelinek <jakub@redhat.com>
15288
15289 PR target/89434
15290 * config/arm/arm.md (*subsi3_carryin_const): Use
15291 arm_neg_immediate_operand predicate instead of
15292 arm_not_immediate_operand, "L" constraint instead of "K" and
15293 print it using %n2 instead of %B2.
15294 (*subsi3_carryin_const0): New define_insn.
15295 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
15296 instead of arm_not_operand and "I" constraint instead of "K" and
15297 print it using %n3 instead of %B2. Instead of using match_dup 2 add
15298 another match_operand and in the condition check that it is negation
15299 of operands[2].
15300 (*subsi3_carryin_compare_const0): New define_ins.
15301 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
15302 *subsi3_carryin_const.
15303 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
15304 split into *subsi3_carryin_compare_const0 if the highpart is zero.
15305
15306 PR target/89438
15307 * config/arm.vfp.md (*negdf2_vfp): Use
15308 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
15309 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
15310
15311 2019-02-24 Jakub Jelinek <jakub@redhat.com>
15312
15313 PR rtl-optimization/89445
15314 * simplify-rtx.c (simplify_ternary_operation): Don't use
15315 simplify_merge_mask on operands that may trap.
15316 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
15317 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
15318 second operand is CONST_VECTOR, check if any element could be zero.
15319 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
15320 their operands can trap.
15321
15322 2019-02-23 Martin Sebor <msebor@redhat.com>
15323
15324 * gimple-ssa-sprintf.c (target_strtol): Rename...
15325 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
15326 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
15327 check for range error.
15328
15329 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
15330
15331 PR driver/69471
15332 * opts-common.c (prune_options): Also prune joined switches
15333 with Negative and RejectNegative.
15334 * config/i386/i386.opt (march=): Add Negative(march=).
15335 (mtune=): Add Negative(mtune=).
15336 * doc/options.texi: Document Negative used together with Joined
15337 and RejectNegative.
15338
15339 2019-02-22 Martin Sebor <msebor@redhat.com>
15340
15341 * doc/extend.texi (Other Builtins): Add
15342 __builtin_is_constant_evaluated.
15343
15344 2019-02-22 Richard Biener <rguenther@suse.de>
15345
15346 PR tree-optimization/87609
15347 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
15348
15349 2019-02-22 Jeff Law <law@redhat.com>
15350
15351 PR rtl-optimization/87761
15352 * config/mips/mips.md: Add new combiner pattern to recognize
15353 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
15354
15355 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
15356
15357 PR target/89324
15358 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
15359 destination register in peepholes generating patterns for ADDS/SUBS.
15360 (add<mode>3_compare0,
15361 *addsi3_compare0_uxtw, add<mode>3_compareC,
15362 add<mode>3_compareV_imm, add<mode>3_compareV,
15363 *adds_<optab><ALLX:mode>_<GPI:mode>,
15364 *subs_<optab><ALLX:mode>_<GPI:mode>,
15365 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
15366 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
15367 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
15368 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
15369 sub<mode>3_compare1): Allow stack pointer for source register.
15370 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
15371
15372 2019-02-22 Martin Sebor <msebor@redhat.com>
15373
15374 PR tree-optimization/88993
15375 PR tree-optimization/88853
15376 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
15377 New helper.
15378 (sprintf_dom_walker::call_info::is_string_func): New helper.
15379 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
15380 for formatted string functions.
15381 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
15382
15383 2019-02-22 Martin Sebor <msebor@redhat.com>
15384
15385 PR c/89425
15386 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
15387 unreachable subexpressions.
15388
15389 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
15390 Hongtao Liu <hongtao.liu@intel.com>
15391 Sunil K Pandey <sunil.k.pandey@intel.com>
15392
15393 PR target/87007
15394 * config/i386/i386-passes.def: Add
15395 pass_remove_partial_avx_dependency.
15396 * config/i386/i386-protos.h
15397 (make_pass_remove_partial_avx_dependency): New.
15398 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
15399 New function.
15400 (pass_data_remove_partial_avx_dependency): New.
15401 (pass_remove_partial_avx_dependency): Likewise.
15402 (make_pass_remove_partial_avx_dependency): Likewise.
15403 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
15404 (*extendsfdf2): Add avx_partial_xmm_update.
15405 (truncdfsf2): Likewise.
15406 (*float<SWI48:mode><MODEF:mode>2): Likewise.
15407 (SF/DF conversion splitters): Disabled for TARGET_AVX.
15408
15409 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
15410
15411 PR middle-end/85598
15412 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
15413 analysis for pass.
15414
15415 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
15416
15417 PR target/89444
15418 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
15419 (PTA_SKYLAKE): Add PTA_AES.
15420 (PTA_GOLDMONT): Likewise.
15421
15422 2019-02-22 Sudakshina Das <sudi.das@arm.com>
15423
15424 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
15425 instruction if enabled.
15426 (aarch64_override_options): Remove reference to return address key.
15427
15428 2019-02-22 Richard Biener <rguenther@suse.de>
15429
15430 PR tree-optimization/89440
15431 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15432 not necessary assert.
15433
15434 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
15435
15436 PR fortran/72741
15437 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
15438 (oacc_replace_fn_attrib_attr): ... this new function.
15439 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
15440 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
15441
15442 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15443
15444 * config/arm/arm-cpus.in (ares): Rename to...
15445 (neoverse-n1): ... This. Add ares as alias.
15446 * config/arm/arm-tables.opt: Regenerate.
15447 * config/arm/arm-tune.md: Likewise.
15448 * doc/invoke.txt (ARM Options): Document neoverse-n1.
15449
15450 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15451
15452 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
15453 * config/aarch64/aarch64-tune.md: Regenerate.
15454 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
15455
15456 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15457
15458 * config/aarch64/aarch64.c (ares_tunings): Rename to...
15459 (neoversen1_tunings): ... This.
15460 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
15461 (neoverse-n1): New CPU.
15462 * config/aarch64/aarch64-tune.md: Regenerate.
15463 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
15464
15465 2019-02-22 Richard Biener <rguenther@suse.de>
15466
15467 PR middle-end/87609
15468 * cfghooks.h (dependence_hash): New typedef.
15469 (struct copy_bb_data): New type.
15470 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
15471 (duplicate_block): Likewise.
15472 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
15473 (copy_bbs): Create and pass down copy_bb_data.
15474 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
15475 (rtl_duplicate_bb): Likewise.
15476 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
15477 remap dependence info.
15478
15479 2019-02-22 Richard Biener <rguenther@suse.de>
15480
15481 PR tree-optimization/87609
15482 * tree-core.h (tree_base): Document special clique values.
15483 * tree-inline.c (remap_dependence_clique): Do not use the
15484 special clique value of one.
15485 (maybe_set_dependence_info): Use clique one.
15486 (clear_dependence_clique): New callback.
15487 (compute_dependence_clique): Clear clique one from all refs
15488 before assigning it (again).
15489
15490 2019-02-21 Martin Sebor <msebor@redhat.com>
15491
15492 * doc/extend.texi (__clear_cache): Correct signature.
15493
15494 2019-02-21 Ian Lance Taylor <iant@golang.org>
15495
15496 PR go/89170
15497 * varasm.c (decode_addr_const): Call lookup_constant_def rather
15498 than output_constant_def.
15499 (add_constant_to_table): New static function.
15500 (output_constant_def): Call add_constant_to_table.
15501 (tree_output_constant_def): Likewise.
15502
15503 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15504
15505 PR c++/89285
15506 * builtins.c (fold_builtin_arith_overflow): If first two args are
15507 INTEGER_CSTs, set intres and ovfres to constants rather than calls
15508 to ifn.
15509
15510 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
15511
15512 PR target/87412
15513 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
15514 error for -mindirect-branch/-mfunction-return with incompatible
15515 -fcf-protection.
15516
15517 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15518
15519 PR bootstrap/88714
15520 * constraints.md (q): Remove.
15521 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
15522 instead of q.
15523
15524 2019-02-21 Martin Jambor <mjambor@suse.cz>
15525
15526 PR hsa/89302
15527 * omp-general.c (omp_extract_for_data): Removed a duplicate call
15528 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
15529 (omp_adjust_for_condition): ...here. Added necessary parameters.
15530 * omp-general.h (omp_adjust_for_condition): Updated declaration.
15531 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
15532 proper values to new parameters of omp_adjust_for_condition.
15533
15534 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15535
15536 PR middle-end/89412
15537 * expr.c (expand_assignment): If result is a MEM, use change_address
15538 instead of simplify_gen_subreg.
15539
15540 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15541 David Malcolm <dmalcolm@redhat.com>
15542
15543 PR middle-end/89091
15544 * fold-const.c (decode_field_reference): Return NULL_TREE if
15545 lang_hooks.types.type_for_size returns NULL. Check it before
15546 overwriting *exp_. Use return NULL_TREE instead of return 0.
15547
15548 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15549
15550 PR middle-end/88074
15551 PR middle-end/89415
15552 * toplev.c (do_compile): Double the emin/emax exponents to workaround
15553 buggy mpc_norm.
15554
15555 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
15556
15557 PR target/89397
15558 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
15559 TARGET_SSE in addition to TARGET_SSE_MATH.
15560
15561 (ix86_excess_precision): Ditto.
15562 (ix86_float_exceptions_rounding_supported_p): Ditto.
15563 (use_rsqrt_p): Ditto.
15564 * config/i386/sse.md (rsqrt<mode>2): Ditto.
15565
15566 2019-02-20 David Malcolm <dmalcolm@redhat.com>
15567
15568 PR c/89410
15569 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
15570 linenum_arith_t when determining if two adjacent line spans are
15571 close enough to merge.
15572 (diagnostic_show_locus): Use linenum_arith_t when iterating over
15573 lines within each line_span.
15574
15575 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
15576
15577 PR target/86487
15578 * lra-constraints.c(uses_hard_regs_p): Fix handling of
15579 paradoxical SUBREGS.
15580
15581 2019-02-20 Li Jia He <helijia@linux.ibm.com>
15582
15583 PR target/88100
15584 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
15585 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
15586 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
15587 range checking it.
15588
15589 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
15590
15591 * config/gcn/gcn.c (print_operand): Fix typo.
15592
15593 2019-02-19 Richard Biener <rguenther@suse.de>
15594
15595 PR middle-end/88074
15596 * toplev.c (do_compile): Initialize mpfr's exponent range
15597 based on available float modes.
15598
15599 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
15600
15601 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
15602 as long as the epilogue isn't completed.
15603
15604 2019-02-18 Martin Sebor <msebor@redhat.com>
15605
15606 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
15607 __has_cpp_attribute, and __has_include.
15608
15609 2019-02-18 Martin Sebor <msebor@redhat.com>
15610
15611 * doc/invoke.texi (-Wreturn-type): Correct and expand.
15612
15613 2019-02-18 Martin Sebor <msebor@redhat.com>
15614
15615 PR middle-end/89294
15616 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
15617 expression.
15618 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
15619
15620 2019-02-18 Richard Biener <rguenther@suse.de>
15621
15622 PR tree-optimization/89296
15623 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
15624 of no-warning flag to cases that might emit the bogus warning.
15625
15626 2019-02-18 Jakub Jelinek <jakub@redhat.com>
15627
15628 PR bootstrap/88714
15629 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
15630 "q" constraint.
15631 * config/arm/vfp.md (*movdi_vfp): Likewise.
15632 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
15633 "q" constraint for operands[0].
15634
15635 PR target/89369
15636 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
15637 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
15638 pattern in a temporary buffer.
15639 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
15640 than 64-operands[2].
15641
15642 PR target/89361
15643 * config/s390/s390.c (s390_indirect_branch_attrvalue,
15644 s390_indirect_branch_settings): Define unconditionally.
15645 (s390_set_current_function): Likewise, but guard the whole body except
15646 the s390_indirect_branch_settings call with
15647 #if S390_USE_TARGET_ATTRIBUTE.
15648 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
15649
15650 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
15651 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
15652 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
15653 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
15654 HOST_WIDE_INT_1U instead of 1ULL.
15655 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
15656 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
15657 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
15658 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
15659 instead of 1UL.
15660 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
15661 instead of 1ul.
15662
15663 2019-02-18 Martin Jambor <mjambor@suse.cz>
15664
15665 PR tree-optimization/89209
15666 * tree-sra.c (create_access_replacement): New optional parameter
15667 reg_tree. Use it as a type if non-NULL and access type is not of
15668 a register type.
15669 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
15670 to create_access_replacement.
15671 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
15672 Check lacc is non-NULL before attempting to re-create it on the RHS.
15673
15674 2019-02-18 Martin Liska <mliska@suse.cz>
15675
15676 PR ipa/89306
15677 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
15678 by default.
15679 (symbol_table::free_edge): Recycle m_summary_id.
15680 * cgraph.h (get_summary_id): New.
15681 (symbol_table::release_symbol): Set m_summary_id to -1
15682 by default.
15683 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
15684 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
15685 function_summary to fast_function_summary.
15686 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
15687 * ipa-pure-const.c (class funct_state_summary_t):
15688 Switch from function_summary to fast_function_summary.
15689 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
15690 (class ipa_ref_opt_summary_t): Switch from function_summary
15691 to fast_function_summary.
15692 * symbol-summary.h (class function_summary_base): New class
15693 that is created from base of former function_summary.
15694 (function_summary_base::unregister_hooks): New.
15695 (class function_summary): Inherit from function_summary_base.
15696 (class call_summary_base): New class
15697 that is created from base of former call_summary.
15698 (class call_summary): Inherit from call_summary_base.
15699 (struct is_same): New.
15700 (class fast_function_summary): New summary class.
15701 (class fast_call_summary): New summary class.
15702 * vec.h (vec_safe_grow_cleared): New function.
15703
15704 2019-02-18 Martin Liska <mliska@suse.cz>
15705
15706 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
15707 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
15708 * doc/tm.texi: Document new target hook.
15709 * doc/tm.texi.in: Likewise.
15710 * target.def: Add new target macro.
15711 * gcc.c (find_fortran_preinclude_file): Do not search multilib
15712 suffixes.
15713
15714 2019-02-17 Alan Modra <amodra@gmail.com>
15715
15716 PR target/89271
15717 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
15718 output reg on add insn.
15719 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
15720
15721 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15722
15723 PR target/89372
15724 * config/i386/sse.md (ssedoublemode): Remove V4HI.
15725 (PMULHRSW): Likewise.
15726 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
15727 TARGET_AVX2.
15728 (ssse3_pmulhrswv4hi3): New expander.
15729
15730 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15731
15732 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
15733 MMX. Add isa attribute.
15734
15735 2019-02-16 Jakub Jelinek <jakub@redhat.com>
15736
15737 PR rtl-optimization/66152
15738 * builtins.h (c_readstr): Declare.
15739 * builtins.c (c_readstr): Remove forward declaration. Add
15740 null_terminated_p argument, if false, read all bytes from the
15741 string instead of stopping after '\0'.
15742 * expr.c (string_cst_read_str): New function.
15743 (store_expr): Use string_cst_read_str instead of
15744 builtin_strncpy_read_str. Try to store by pieces the whole
15745 exp_len first, and only if that fails, split it up into
15746 store by pieces followed by clear_storage. Formatting fix.
15747
15748 * config/i386/i386.md (*movqi_internal): Remove static from
15749 buf variable. Use output_asm_insn (buf, operands); return "";
15750 instead of return buf;.
15751 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
15752 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
15753 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
15754
15755 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15756
15757 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
15758 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
15759 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
15760 (CC1_SPEC): Likewise.
15761 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
15762
15763 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15764
15765 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
15766 the base address on 64-bit strict-alignment platforms.
15767
15768 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
15769
15770 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
15771
15772 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15773
15774 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
15775
15776 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
15777
15778 PR rtl-optimization/88308
15779 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
15780 on copied instruction.
15781
15782 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15783
15784 * final.c (insn_current_reference_address): Replace test on JUMP_P
15785 with test on jump_to_label_p.
15786 * config/visium/visium-passes.def: New file.
15787 * config/visium/t-visium (PASSES_EXTRA): Define.
15788 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
15789 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
15790 (TRAMPOLINE_ALIGNMENT): Define.
15791 * config/visium/visium.c (visium_option_override): Do not register
15792 the machine-specific reorg pass here.
15793 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
15794 for the GR6.
15795 (output_branch): Adjust threshold for long branch instruction.
15796 * config/visium/visium.md (cpu): Move around.
15797 (length): Adjust for the GR6.
15798
15799 2019-02-15 Richard Biener <rguenther@suse.de>
15800 Jakub Jelinek <jakub@redhat.com>
15801
15802 PR tree-optimization/89278
15803 * tree-loop-distribution.c: Include tree-eh.h.
15804 (generate_memset_builtin, generate_memcpy_builtin): Call
15805 rewrite_to_non_trapping_overflow on builtin->size before passing it
15806 to force_gimple_operand_gsi.
15807
15808 2019-02-15 Jakub Jelinek <jakub@redhat.com>
15809
15810 PR other/89342
15811 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
15812 optimize_debug.
15813 * opth-gen.awk: Likewise.
15814
15815 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15816
15817 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
15818 Enable MMX, SSE and SSE2 by default.
15819 * config/i386/i386.c (ix86_option_override_internal): Do not
15820 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
15821
15822 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15823
15824 PR rtl-optimization/89354
15825 * combine.c (make_extraction): Punt if extraction_mode is narrower
15826 than len bits.
15827
15828 2019-02-14 Maya Rashish <coypu@sdf.org>
15829
15830 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
15831 * config/netbsd-d.c: New file.
15832 * config/t-netbsd: Add netbsd-d.o
15833
15834 2018-02-14 Steve Ellcey <sellcey@marvell.com>
15835
15836 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
15837 affects_type_identity to true for aarch64_vector_pcs.
15838 (aarch64_comp_type_attributes): New function.
15839 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
15840
15841 2019-02-14 Tamar Christina <tamar.christina@arm.com>
15842
15843 PR target/88850
15844 * config/arm/iterators.md (ANY64): Add V4HF.
15845
15846 2019-02-14 Martin Liska <mliska@suse.cz>
15847
15848 PR rtl-optimization/89242
15849 * dce.c (delete_unmarked_insns): Call free_dominance_info we
15850 process a transformation.
15851
15852 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15853
15854 PR tree-optimization/89314
15855 * fold-const.c (fold_binary_loc): Cast strlen argument to
15856 const char * before dereferencing it. Formatting fixes.
15857
15858 PR middle-end/89284
15859 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
15860
15861 2019-02-13 Ian Lance Taylor <iant@golang.org>
15862
15863 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
15864 and set current index for other optimizations.
15865
15866 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
15867
15868 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
15869 nonimmediate_operand as operand 2 predicate.
15870 (vec_set<VF2_512_256:mode>_0): Ditto.
15871 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
15872 (*vec_concatv2si): Remove alternative 2.
15873 (*vec_concatv4si_0): Use vm constraint for alternative 0.
15874 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
15875 (vec_concatv2di): Split alternatives 4,5,6 to ...
15876 (*vec_concatv2di_0) ... new pattern.
15877
15878 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
15879
15880 PR target/89190
15881 * config/arm/arm.c (ldm_stm_operation_p) Set
15882 addr_reg_in_reglist correctly for first register.
15883 (load_multiple_sequence): Remove dead base check.
15884 (gen_ldm_seq): Correctly set write_back for Thumb-1.
15885
15886 2019-02-13 Tamar Christina <tamar.christina@arm.com>
15887
15888 PR target/88847
15889 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
15890 Expose as @aarch64_pred_mov.
15891 * config/aarch64/aarch64.c (aarch64_classify_address):
15892 Use expand_insn which legitimizes operands.
15893
15894 2019-02-13 Martin Liska <mliska@suse.cz>
15895
15896 * builtins.h (expand_builtin_with_bounds): Remove declaration.
15897 * calls.c (struct arg_data): Remove special_slot, pointer_arg
15898 and pointer_offset fields.
15899 (initialize_argument_information): Remove usage of dead
15900 fields.
15901 * cgraph.h (struct cgraph_thunk_info): Remove
15902 add_pointer_bounds_args.
15903 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
15904 fields.
15905 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
15906 fields.
15907 * config/i386/i386.c (ix86_function_arg_advance): Remove
15908 unrelated comment.
15909 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
15910 (def_builtin): Remove usage of dead fields.
15911 (ix86_add_new_builtins): Likewise.
15912 * ipa-fnsummary.c (compute_fn_summary): Likewise.
15913 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15914 (sem_function::init): Likewise.
15915 (sem_variable::merge): Likewise.
15916 * ipa-visibility.c (function_and_variable_visibility): Likewise.
15917 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
15918 * lto-cgraph.c (lto_output_node): Likewise.
15919 (lto_output_varpool_node): Likewise.
15920 (input_node): Likewise.
15921 (input_varpool_node): Likewise.
15922 * lto-streamer-out.c (lto_output): Likewise.
15923 * tree-inline.c (expand_call_inline): Remove usage of
15924 assign_stmts.
15925 * tree-inline.h (struct copy_body_data): Likewise.
15926 * varpool.c (varpool_node::dump): Likewise.
15927
15928 2019-02-13 Jakub Jelinek <jakub@redhat.com>
15929
15930 PR middle-end/89303
15931 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
15932 into pt->vars_contains_escaped_heap instead of setting
15933 pt->vars_contains_escaped_heap to it.
15934
15935 PR middle-end/89281
15936 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
15937 INTVAL (size), compare it to GET_MODE_MASK instead of
15938 1 << GET_MODE_BITSIZE.
15939
15940 PR target/89290
15941 * config/i386/predicates.md (x86_64_immediate_operand): Allow
15942 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
15943 -mcmodel=large.
15944
15945 2019-02-13 Martin Liska <mliska@suse.cz>
15946
15947 PR lto/88858
15948 * cfgrtl.c (remove_barriers_from_footer): New function.
15949 (try_redirect_by_replacing_jump): Use it.
15950 (cfg_layout_redirect_edge_and_branch): Likewise.
15951
15952 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15953
15954 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
15955 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
15956 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
15957 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
15958 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
15959 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
15960 New BU_CRYPTO_2.
15961 * config/rs6000/rs6000.c (builtin_function_type)
15962 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
15963 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
15964 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
15965 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
15966 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
15967
15968 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
15969
15970 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
15971 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
15972
15973 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
15974
15975 PR target/89229
15976 * config/i386/i386.md (*movoi_internal_avx): Revert revision
15977 268678 and revision 268657.
15978 (*movti_internal): Likewise.
15979
15980 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
15981
15982 PR target/89233
15983 * config/s390/s390.c (s390_decompose_address): Update comment.
15984 (s390_check_qrst_address): Reject invalid address forms after
15985 LRA.
15986
15987 2019-02-12 Martin Liska <mliska@suse.cz>
15988
15989 PR lto/88876
15990 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
15991 we need default values of funct_state for a function that
15992 is not optimized.
15993
15994 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
15995
15996 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
15997 the object to pick the size of stores on strict-alignment platforms.
15998
15999 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
16000 (*movdi_insn_sp32): Likewise.
16001 (*movdi_insn_sp64): Likewise.
16002
16003 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
16004
16005 PR lto/88677
16006 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
16007 types that needs constructiong.
16008 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
16009
16010 2019-02-12 Richard Biener <rguenther@suse.de>
16011
16012 PR tree-optimization/89253
16013 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
16014 duplicate the loop.
16015
16016 2019-02-11 David Malcolm <dmalcolm@redhat.com>
16017
16018 PR lto/88147
16019 * input.c (selftest::test_line_offset_overflow): New selftest.
16020 (selftest::input_c_tests): Call it.
16021
16022 2019-02-11 Martin Sebor <msebor@redhat.com>
16023
16024 PR tree-optimization/88771
16025 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
16026 when -Wstringop-overflow is set.
16027 (builtin_memref::builtin_memref): Adjust excessive upper bound
16028 only when lower bound is not excessive.
16029 (maybe_diag_overlap): Detect and diagnose excessive bounds via
16030 -Wstringop-ovefflow.
16031 (maybe_diag_offset_bounds): Rename...
16032 (maybe_diag_access_bounds): ...to this.
16033 (check_bounds_or_overlap): Adjust for name change above.
16034
16035 2019-02-11 Martin Sebor <msebor@redhat.com>
16036
16037 PR c++/87996
16038 * builtins.c (max_object_size): Move from here...
16039 * builtins.h (max_object_size): ...and here...
16040 * tree.c (max_object_size): ...to here...
16041 * tree.h (max_object_size): ...and here.
16042
16043 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
16044
16045 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
16046 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
16047 for correct semantics.
16048
16049 2019-02-11 Alan Modra <amodra@gmail.com>
16050
16051 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
16052 -mlongcall and -mpltseq.
16053 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
16054 (RS/6000 and PowerPC Options <-mpltseq>): Document.
16055 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
16056 * config/rs6000/sysv4.opt (mpltseq): New option.
16057 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
16058 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
16059 support is lacking. Don't allow -mpltseq with -mbss-plt.
16060 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
16061 -mpltseq given for ELFv1.
16062 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
16063 Only use UNSPEC_PLTSEQ for inline PLT calls.
16064 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
16065 use UNSPEC_PLTSEQ for inline PLT calls.
16066 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
16067 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
16068 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
16069 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16070 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16071 (pltseq_mtctr_<mode>): Likewise.
16072
16073 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16074
16075 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
16076 Solaris ld.
16077 * configure: Regenerate.
16078
16079 2019-02-11 Jakub Jelinek <jakub@redhat.com>
16080
16081 PR bootstrap/88714
16082 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
16083 instead of r.
16084
16085 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16086
16087 * function.c (assign_parm_setup_block): Use the stored
16088 size, not the passed size, when allocating stack-space,
16089 also for a parameter with alignment larger than
16090 MAX_SUPPORTED_STACK_ALIGNMENT.
16091
16092 2019-02-11 Martin Liska <mliska@suse.cz>
16093
16094 PR ipa/89009
16095 * ipa-cp.c (build_toporder_info): Remove usage of a param.
16096 * ipa-inline.c (inline_small_functions): Likewise.
16097 * ipa-pure-const.c (propagate_pure_const): Likewise.
16098 (propagate_nothrow): Likewise.
16099 * ipa-reference.c (propagate): Likewise.
16100 * ipa-utils.c (struct searchc_env): Remove unused field.
16101 (searchc): Always search across AVAIL_INTERPOSABLE.
16102 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
16103 the only called IPA pure const can properly not propagate
16104 across interposable boundary.
16105 * ipa-utils.h (ipa_reduced_postorder): Remove param.
16106
16107 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
16108
16109 * config/nds32/nds32.md (call_internal, call_value_internal,
16110 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
16111
16112 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16113
16114 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
16115 typo.
16116
16117 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
16118
16119 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
16120 in comments
16121
16122 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16123
16124 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
16125
16126 2019-02-10 Jakub Jelinek <jakub@redhat.com>
16127
16128 PR tree-optimization/89268
16129 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
16130 if preds is non-NULL.
16131
16132 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16133
16134 PR lto/89272
16135 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
16136 polymorphic types.
16137
16138 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16139
16140 * config/nds32/nds32.md (trap): New pattern.
16141
16142 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16143
16144 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
16145 dwarf span.
16146
16147 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16148
16149 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
16150 to split POST_INC.
16151
16152 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16153
16154 * ipa-visibility.c (localize_node): Also do not localize
16155 LDPR_PREVAILING_DEF_IRONLY_EXP.
16156
16157 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16158
16159 PR lto/87957
16160 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
16161 instead of type_with_linkage.
16162
16163 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16164
16165 PR ipa/88755
16166 * params.def (uninlined-function-insns, uninlined-function-time,
16167 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
16168 bound so we don't get overflows.
16169
16170 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16171
16172 * config/rs6000/rs6000-string.c (expand_compare_loop,
16173 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
16174 memcmp/strncmp.
16175
16176 2019-02-09 Jakub Jelinek <jakub@redhat.com>
16177
16178 PR middle-end/89246
16179 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16180 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
16181 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
16182
16183 2019-02-09 Alan Modra <amodra@gmail.com>
16184
16185 PR target/88343
16186 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
16187 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
16188 setup.
16189
16190 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
16191
16192 PR middle-end/88560
16193 * lra-constraints.c (process_alt_operands): Don't increase reject
16194 for memory when offset memory is required.
16195
16196 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
16197
16198 * config/s390/vector.md: Implement vector copysign.
16199
16200 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16201
16202 * expr.c (expand_constructor): Correct indentations.
16203
16204 2019-02-08 Richard Biener <rguenther@suse.de>
16205
16206 PR tree-optimization/89247
16207 * tree-if-conv.c: Include tree-cfgcleanup.h.
16208 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
16209 (tree_if_conversion): Pass through predicate vector.
16210 (pass_if_conversion::execute): Do CFG cleanup and SSA update
16211 inline, see if any if-converted loops we refrece in
16212 LOOP_VECTORIZED calls vanished and fixup.
16213 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
16214
16215 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
16216
16217 * config/s390/constraints.md (jdd): New constraint.
16218
16219 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16220
16221 PR target/89229
16222 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
16223 upper 16 vector registers without TARGET_AVX512VL.
16224 (*movti_internal): Likewise.
16225
16226 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16227
16228 PR rtl-optimization/89234
16229 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
16230 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
16231 (copy_reg_eh_region_note_backward): Likewise.
16232
16233 2019-02-08 Richard Biener <rguenther@suse.de>
16234
16235 PR middle-end/89223
16236 * tree-data-ref.c (initialize_matrix_A): Fail if constant
16237 doesn't fit in HWI.
16238 (analyze_subscript_affine_affine): Handle failure from
16239 initialize_matrix_A.
16240
16241 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16242
16243 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
16244 cfun everywhere.
16245
16246 2019-02-07 David Malcolm <dmalcolm@redhat.com>
16247
16248 PR tree-optimization/86637
16249 PR tree-optimization/89235
16250 * tree-vect-loop.c (optimize_mask_stores): Add an
16251 auto_purge_vect_location sentinel to ensure that vect_location is
16252 purged on exit.
16253 * tree-vectorizer.c
16254 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
16255 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
16256 to ensure that vect_location is purged on exit.
16257 (pass_slp_vectorize::execute): Likewise, replacing the manual
16258 reset.
16259 * tree-vectorizer.h (class auto_purge_vect_location): New class.
16260
16261 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16262
16263 * config/aarch64/iterators.md (max_opp): New code_attr.
16264 (USMAX): New code iterator.
16265 * config/aarch64/predicates.md (aarch64_smin): New predicate.
16266 (aarch64_smax): Likewise.
16267 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
16268 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
16269 MINUS (MAX MIN).
16270
16271 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
16272
16273 PR target/89229
16274 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
16275 for TARGET_AVX512VL.
16276 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
16277
16278 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
16279
16280 * config/s390/s390-builtin-types.def: Add new types.
16281 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
16282 (s390_vec_xlw4): Make the memory operand into a const pointer.
16283 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
16284 float.
16285 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
16286 a new vector type with the alignment of the scalar memory operand.
16287
16288 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
16289 Jakub Jelinek <jakub@redhat.com>
16290
16291 PR bootstrap/88714
16292 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
16293 arm_count_ldrdstrd_insns): New declarations.
16294 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
16295 MINUS.
16296 (valid_operands_ldrd_strd): New function.
16297 (arm_count_ldrdstrd_insns): New function.
16298 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
16299 sets instead of single DImode set and define new insns to match this.
16300
16301 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16302
16303 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
16304 Make it a C initializer.
16305
16306 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16307
16308 PR/target 88850
16309 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
16310
16311 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16312
16313 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
16314 Use neon_dot<q> for type.
16315 (neon_<sup>dot_lane<vsi2qi>): Likewise.
16316
16317 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16318
16319 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
16320 Use neon_dot<q> for type.
16321 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
16322 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
16323
16324 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
16325
16326 PR rtl-optimization/89225
16327 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
16328 sizes check.
16329
16330 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
16331
16332 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
16333 after restoring registers saved to allocate the frame on Windows.
16334
16335 2019-02-06 Richard Biener <rguenther@suse.de>
16336
16337 PR tree-optimization/89182
16338 * graphite.h (cached_scalar_evolution_in_region): Declare.
16339 * graphite.c (struct seir_cache_key): New.
16340 (struct sese_scev_hash): Likewise.
16341 (seir_cache): New global.
16342 (cached_scalar_evolution_in_region): New function.
16343 (graphite_transform_loops): Allocate and release seir_cache.
16344 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
16345 cached_scalar_evolution_in_region.
16346 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16347 Simplify.
16348 (scop_detection::graphite_can_represent_expr: Use
16349 cached_scalar_evolution_in_region.
16350 (scop_detection::stmt_simple_for_scop_p): Likewise.
16351 (find_params_in_bb): Likewise.
16352 (gather_bbs::before_dom_children): Likewise.
16353 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
16354 (add_loop_constraints): Likewise.
16355
16356 2019-02-06 Jakub Jelinek <jakub@redhat.com>
16357
16358 PR middle-end/89210
16359 * fold-const-call.c (fold_const_vec_convert): Pass true as last
16360 operand to new_unary_operation only if both element types are integral
16361 and it isn't a widening conversion. Return NULL_TREE if
16362 new_unary_operation failed.
16363
16364 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
16365
16366 PR target/88856
16367 * config/s390/s390.md: Remove load and test FP splitter.
16368
16369 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16370
16371 PR target/89112
16372 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
16373 expand_compare_loop, expand_block_compare_gpr,
16374 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
16375 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
16376 #include "profile-count.h" and "predict.h" for types and functions
16377 needed to work with REG_BR_PROB notes.
16378
16379 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16380
16381 PR target/89112
16382 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
16383 for the long branch case.
16384
16385 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16386
16387 PR target/89188
16388 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
16389 can throw, non-call exceptions are enabled and we can't delete
16390 dead exceptions or alter cfg. Set must_clean if
16391 delete_insn_and_edges returns true, don't set it blindly for calls.
16392 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
16393
16394 PR rtl-optimization/89195
16395 * combine.c (make_extraction): For MEMs, don't extract bytes outside
16396 of the original MEM.
16397
16398 2019-02-05 Martin Liska <mliska@suse.cz>
16399
16400 PR gcov-profile/89000
16401 * gcov.c (function_summary): Remove argument.
16402 (file_summary): New function.
16403 (print_usage): Replace tabs with spaces.
16404 (generate_results): Use new function file_summary.
16405
16406 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16407
16408 PR target/89186
16409 * optabs.c (prepare_cmp_insn): Pass x and y to
16410 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
16411
16412 2019-02-05 Richard Biener <rguenther@suse.de>
16413
16414 PR middle-end/89150
16415 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
16416 (struct bitmap_element): Drop chain_prev so we properly recurse on
16417 the prev member, supporting tree views.
16418 (struct bitmap_head): GTY skip the obstack member.
16419
16420 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
16421
16422 PR c/88698
16423 * doc/extend.texi (Vector Extensions): Add an example of using vector
16424 types together with x86 intrinsics.
16425
16426 2019-02-04 Alan Modra <amodra@gmail.com>
16427
16428 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
16429 str[] size to 160, and comment.
16430
16431 2019-02-04 Alan Modra <amodra@gmail.com>
16432
16433 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
16434 (rs6000_pltseq_template): Guard output of TLS markers with
16435 TARGET_TLS_MARKERS.
16436 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
16437 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
16438 to use inline PLT sequences.
16439 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16440 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16441 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
16442
16443 2019-02-04 Martin Liska <mliska@suse.cz>
16444
16445 PR ipa/88985
16446 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
16447 out when ipa_fn_summaries does not contain entry for callee.
16448
16449 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
16450
16451 * config/sparc/sparc.h: Remove superfluous blank lines.
16452 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
16453 (got_register_rtx): ...this.
16454 (sparc_got): Adjust to above renaming.
16455 (sparc_tls_got): Likewise.
16456 (sparc_delegitimize_address): Likewise.
16457 (sparc_output_mi_thunk): Likewise.
16458 (sparc_init_pic_reg): Likewise.
16459 (save_local_or_in_reg_p): Fix test on the GOT register.
16460 (USE_HIDDEN_LINKONCE): Move around.
16461 (get_pc_thunk_name): Likewise.
16462 (gen_load_pcrel_sym): Likewise.
16463 (load_got_register): Likewise.
16464
16465 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
16466
16467 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
16468 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
16469
16470 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16471
16472 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
16473 into consideration.
16474
16475 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16476
16477 * config.gcc (with_nds32_lib, glibc):
16478 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
16479 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
16480 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
16481
16482 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
16483
16484 PR target/89071
16485 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
16486 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
16487 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
16488 (*rcpsf2_sse): Ditto.
16489 (*rsqrtsf2_sse): Ditto.
16490 (sse4_1_round<mode<2): Ditto.
16491
16492 2019-02-03 Richard Biener <rguenther@suse.de>
16493
16494 PR debug/87295
16495 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
16496 orig.
16497
16498 2019-02-02 Jakub Jelinek <jakub@redhat.com>
16499
16500 PR middle-end/87887
16501 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16502 Punt with warning on aggregate return or argument types. Ignore
16503 type/mode checking for uniform arguments.
16504
16505 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
16506
16507 * combine.c (try_combine): Do not print "Can't combine" messages unless
16508 printing failed combination attempts.
16509
16510 2019-02-01 Martin Jambor <mjambor@suse.cz>
16511
16512 PR hsa/87863
16513 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
16514 segment and global segment variables before making them static.
16515
16516 2019-02-01 Martin Jambor <mjambor@suse.cz>
16517
16518 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
16519 missed optimization dump with dump_enabled_p.
16520
16521 2019-02-01 Richard Biener <rguenther@suse.de>
16522
16523 PR middle-end/88597
16524 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
16525 the instantiate cache.
16526 (instantiate_scev_binary): Elide second operand procesing
16527 if equal to the first.
16528 * tree-chrec.c (chrec_contains_symbols): Add visited set.
16529 (chrec_contains_undetermined): Likewise.
16530 (tree_contains_chrecs): Likewise.
16531
16532 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
16533
16534 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
16535
16536 2019-02-01 Jakub Jelinek <jakub@redhat.com>
16537
16538 PR tree-optimization/89143
16539 * wide-int-range.h (wide_int_range_absu): Declare.
16540 * wide-int-range.cc (wide_int_range_absu): New function.
16541 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
16542
16543 PR tree-optimization/88107
16544 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
16545 instead of assertion that eh_region_outermost is non-NULL, if it
16546 is NULL, set *ALL to true and return NULL.
16547 (move_sese_region_to_fn): Adjust caller, if all is set, call
16548 duplicate_eh_regions with NULL region.
16549
16550 2019-02-01 Richard Biener <rguenth@suse.de>
16551
16552 PR rtl-optimization/88593
16553 * mode-switching.c (optimize_mode_switching): Free dominators before
16554 calling cleanup_cfg.
16555
16556 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16557
16558 PR tree-optimization/88932
16559 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
16560
16561 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16562
16563 PR middle-end/89137
16564 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
16565 bogus clang warning.
16566
16567 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
16568
16569 PR target/89071
16570 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
16571 alternative to avoid partial SSE register stall for TARGET_AVX.
16572 (truncdfsf2): Ditto.
16573 (sse4_1_round<mode>2): Ditto.
16574
16575 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
16576
16577 PR tree-optimization/89008
16578 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
16579 process anything of the form X * 0.
16580
16581 2019-01-31 Richard Biener <rguenther@suse.de>
16582
16583 PR tree-optimization/89135
16584 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
16585 with abnormal preds.
16586
16587 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16588
16589 PR sanitizer/89124
16590 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
16591 always_inline callees into no_sanitize_address callers.
16592
16593 2019-01-31 Richard Biener <rguenther@suse.de>
16594
16595 PR rtl-optimization/89115
16596 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
16597
16598 2019-01-30 Martin Sebor <msebor@redhat.com>
16599
16600 PR other/89106
16601 * doc/extend.texi (cast to a union): Correct and expand.
16602
16603 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
16604
16605 PR rtl-optimization/87246
16606 * lra-constraints.c (simplify_operand_subreg): Reload memory
16607 in subreg if the address became invalid.
16608
16609 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
16610
16611 PR target/87064
16612 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
16613 Disable for little-endian.
16614
16615 2019-01-30 Richard Biener <rguenther@suse.de>
16616
16617 PR rtl-optimization/89115
16618 * opts.c (default_options_optimization): Reduce
16619 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
16620 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
16621 to the default.
16622
16623 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
16624
16625 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
16626 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
16627 type of vector element when vec_extract is implemented by direct
16628 move.
16629
16630 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
16631
16632 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
16633
16634 2019-01-30 Richard Biener <rguenther@suse.de>
16635
16636 PR tree-optimization/89111
16637 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
16638 canonicalization to appropriately sized access types.
16639
16640 2019-01-30 Jakub Jelinek <jakub@redhat.com>
16641
16642 PR c++/89105
16643 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
16644 for arguments to functions that are TU-local and shouldn't be
16645 referenced by assembly.
16646
16647 2019-01-30 Ulrich Drepper <drepper@redhat.com>
16648
16649 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
16650 after '='.
16651
16652 2019-01-29 Martin Sebor <msebor@redhat.com>
16653
16654 PR c/88956
16655 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
16656
16657 2019-01-29 Jakub Jelinek <jakub@redhat.com>
16658
16659 PR c++/66676
16660 PR ipa/89104
16661 * omp-simd-clone.c (simd_clone_clauses_extract)
16662 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
16663 OMP_CLAUSE_ALIGNED_ALIGNMENT.
16664
16665 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
16666
16667 * config.gcc: Force .init_array for ARC.
16668
16669 2019-01-29 Richard Biener <rguenther@suse.de>
16670
16671 PR debug/87295
16672 * dwarf2out.c (collect_skeleton_dies): New helper.
16673 (copy_decls_for_unworthy_types): Call it.
16674 (build_abbrev_table): Assert we do not try to replace
16675 DW_AT_signature refs with local refs.
16676
16677 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16678
16679 PR middle-end/89002
16680 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
16681 for lastprivate/linear IV, push gimplify context around gimplify_assign
16682 and, if it needed any temporaries, pop it into a gimple bind around the
16683 sequence.
16684
16685 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16686
16687 * common.opt (-Wattribute-alias): Remove "no-" from name.
16688 Make -Wattribute-alias command line option and
16689 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
16690
16691 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16692
16693 PR target/89073
16694 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
16695 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
16696 x86 ISA options.
16697 (bmi2): Add missing @opindex.
16698 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
16699 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
16700 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
16701 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
16702 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
16703 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
16704 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
16705 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
16706 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
16707 xsavec, xsaveopt and xsaves options.
16708
16709 2019-01-28 Richard Biener <rguenther@suse.de>
16710
16711 PR debug/89076
16712 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
16713 support removal.
16714
16715 2019-01-28 Richard Biener <rguenther@suse.de>
16716
16717 PR tree-optimization/88739
16718 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16719 BIT_FIELD_REFs only are applied to mode-precision operands
16720 when they are integral.
16721 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
16722 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
16723 BIT_FIELD_REFs of non-mode-precision integral operands.
16724
16725 2019-01-27 Jakub Jelinek <jakub@redhat.com>
16726
16727 PR target/87214
16728 * config/i386/sse.md
16729 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
16730 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
16731 first constants in pairs are multiples of 2. Formatting fixes.
16732 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
16733 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
16734 first constants in each quadruple are multiples of 4. Formatting fixes.
16735
16736 2019-01-26 Martin Jambor <mjambor@suse.cz>
16737
16738 PR ipa/88933
16739 * tree-inline.c: Include tree-cfgcleanup.h.
16740 (delete_unreachable_blocks_update_callgraph): Move...
16741 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
16742 ...here, make externally visible, make second argument bool, adjust
16743 all callers.
16744 * tree-cfgcleanup.c: Include cgraph.h.
16745 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
16746 Declare.
16747 * ipa-prop.c: Include tree-cfgcleanup.h.
16748 (ipcp_transform_function): Call
16749 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
16750
16751 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
16752
16753 PR rtl-optimization/88846
16754 * ira.c (process_set_for_memref_referenced_p): New.
16755 (memref_referenced_p): Add new param. Use
16756 process_set_for_memref_referenced_p. Add new switch cases.
16757 (memref_used_between_p): Pass new arg to memref_referenced_p.
16758
16759 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
16760
16761 PR target/88469
16762 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
16763 argument ABI_BREAK. Set to true if the calculated alignment has
16764 changed in gcc-9. Check bit-fields for their base type alignment.
16765 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
16766 (aarch64_function_arg_boundary): Likewise.
16767 (aarch64_gimplify_va_arg_expr): Likewise.
16768
16769 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16770
16771 PR middle-end/89037
16772 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
16773 instead of accessing TREE_INT_CST_ELT directly.
16774
16775 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
16776
16777 * doc/sourcebuild.texi (Environment attributes): Add fenv and
16778 fenv_exceptions description.
16779
16780 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
16781
16782 PR rtl-optimization/87763
16783 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
16784 Allow SUBREG when matching CC_NZmode compare.
16785
16786 2019-01-25 Richard Biener <rguenther@suse.de>
16787
16788 PR tree-optimization/89049
16789 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16790 Look at the pattern stmt to determine if the stmt is vectorized.
16791
16792 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16793
16794 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
16795 (pred_mov<mode>): Handle all-register forms using both a new
16796 alternative and a split.
16797
16798 2019-01-25 Richard Biener <rguenther@suse.de>
16799
16800 PR tree-optimization/86865
16801 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16802 Reject non-do-while loops.
16803
16804 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
16805
16806 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
16807 * config/rs6000/constraints.md (Q constraint): Use REG_P.
16808 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
16809 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16810 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
16811 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16812 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
16813 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
16814 vlogical_operand, gpc_reg_operand, int_reg_operand,
16815 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
16816 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
16817 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
16818 (save_world_operation, restore_world_operation, lmw_operation,
16819 stmw_operation): Use MEM_P and REG_P.
16820 (tie_operand): Use MEM_P.
16821 (vrsave_operation, crsave_operation): Use REG_P.
16822 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
16823 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
16824 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
16825 (call_operand): Use HARD_REGISTER_P.
16826 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
16827 Use CONST_INT_P.
16828 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
16829 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
16830 quad_aligned_load_p, replace_swapped_aligned_store,
16831 recombine_lvx_pattern, replace_swapped_aligned_load,
16832 recombine_stvx_pattern): Use MEM_P.
16833 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
16834 Use MEM_P and SYMBOL_REF_P.
16835 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
16836 (insn_is_swappable_p): Use REG_P and MEM_P.
16837 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
16838 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
16839 Use CONST_INT_P.
16840 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
16841 Use CONST_DOUBLE_P.
16842 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
16843 CONST_WIDE_INT_P.
16844 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
16845 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
16846 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
16847 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
16848 reg_or_subregno:
16849 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16850 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
16851 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
16852 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
16853 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
16854 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
16855 rs6000_split_logical_di): Use CONST_INT_P.
16856 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
16857 REG_P and SYMBOL_REF_P.
16858 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
16859 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
16860 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
16861 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
16862 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
16863 (small_data_operand, print_operand_address): Use CONST_INT_P and
16864 SYMBOL_REF_P.
16865 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
16866 (rs6000_init_hard_regno_mode_ok, direct_move_p):
16867 Use HARD_REGISTER_NUM_P.
16868 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
16869 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
16870 SUBREG_P and SYMBOL_REF_P.
16871 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
16872 and HARD_REGISTER_NUM_P.
16873 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
16874 reg_or_subregno.
16875 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
16876 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
16877 MEM_P and REG_P.
16878 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
16879 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
16880 find_addr_reg): Use REG_P.
16881 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
16882 (rs6000_emit_le_vsx_move): Use SUBREG_P.
16883 (offsettable_ok_by_alignment, constant_pool_expr_p,
16884 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
16885 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
16886 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
16887 rs6000_assemble_integer, create_TOC_reference,
16888 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
16889 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
16890 (rs6000_split_vec_extract_var): Use reg_or_subregno.
16891 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16892 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16893 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16894 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16895 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
16896 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
16897 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
16898 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
16899 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
16900 and cbranch<mode>4): Use CONST_INT_P.
16901 (multiple define_splits): Use REG_P and SUBREG_P.
16902 (define_expands call, call_value): Use MEM_P.
16903 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
16904 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
16905 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
16906 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
16907 and HARD_REGISTER_NUM_P.
16908 (multiple define_splits): Use HARD_REGISTER_NUM_P.
16909
16910 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
16911
16912 PR rtl-optimization/88948
16913 * rtl.h (prepare_copy_insn): New prototype.
16914 * gcse.c (prepare_copy_insn): New function, split out from
16915 process_insert_insn.
16916 (process_insert_insn): Use prepare_copy_insn.
16917 * store-motion.c (replace_store_insn): Use prepare_copy_insn
16918 instead of gen_move_insn.
16919
16920 2019-01-24 Jakub Jelinek <jakub@redhat.com>
16921
16922 PR debug/89006
16923 * config/i386/i386.c (ix86_pic_register_p): Return true for
16924 UNSPEC_SET_GOT too.
16925
16926 PR tree-optimization/88964
16927 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
16928 punt if HONOR_SNANS (chrec).
16929
16930 PR middle-end/89015
16931 * tree-nested.c (convert_nonlocal_reference_stmt,
16932 convert_local_reference_stmt, convert_tramp_reference_stmt,
16933 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
16934 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
16935 or GIMPLE_OMP_TASK.
16936
16937 PR tree-optimization/89027
16938 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
16939 for "omp simd array" variables.
16940
16941 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
16942
16943 PR target/88469
16944 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
16945 force the alignment of m_val.
16946
16947 2019-01-24 Richard Biener <rguenther@suse.de>
16948
16949 PR lto/87187
16950 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
16951 When in "legacy" debug mode make sure to reset self-origins.
16952
16953 2019-01-24 Martin Liska <mliska@suse.cz>
16954
16955 PR gcov-profile/88994
16956 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
16957 result will be always smaller or equal to the original.
16958 * gcov.c (mangle_name): Fix else branch where we should
16959 also copy to PTR and shift the pointer.
16960
16961 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
16962
16963 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
16964 * vr-values.c (find_case_label_ranges): Fix a comment typo.
16965
16966 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
16967
16968 * common/config/i386/i386-common.c
16969 (OPTION_MASK_ISA_ENQCMD_SET,
16970 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
16971 (ix86_handle_option): Handle -menqcmd.
16972 * config.gcc (enqcmdintrin.h): New header file.
16973 * config/i386/cpuid.h (bit_ENQCMD): New bit.
16974 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16975 -menqcmd.
16976 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
16977 function type.
16978 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
16979 __builtin_ia32_enqcmds): New builtins.
16980 * config/i386/i386-c.c (__ENQCMD__): New macro.
16981 * config/i386/i386-option.c (ix86_target_string): Add
16982 -menqcmd.
16983 (ix86_valid_target_attribute_inner_p): Likewise.
16984 * config/i386/i386-expand.c
16985 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
16986 IX86_BUILTIN_ENQCMDS.
16987 * config/i386/i386.h (TARGET_ENQCMD): New.
16988 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
16989 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
16990 (movdir64b_<mode>): Parameterize to enable share expansion code
16991 with ENQCMD in function ix86_expand_builtin.
16992 * config/i386/i386.opt: Add -menqcmd.
16993 * config/i386/immintrin.h: Include enqcmdintrin.h.
16994 * config/i386/enqcmdintrin.h: New intrinsic file.
16995 * doc/invoke.texi: Add -menqcmd.
16996
16997 2019-01-23 Bin Cheng <bin.cheng@arm.com>
16998 Steve Ellcey <sellcey@marvell.com>
16999
17000 PR target/85711
17001 * recog.c (address_operand): Return false on wrong mode for address.
17002 (constrain_operands): Check for mode with 'p' constraint.
17003
17004 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
17005
17006 PR target/88998
17007 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
17008 Disparage MMX alternative.
17009 (sse2_cvtpd2pi): Ditto.
17010 (sse2_cvttpd2pi): Ditto.
17011
17012 2019-01-23 David Malcolm <dmalcolm@redhat.com>
17013
17014 PR driver/89014
17015 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
17016 use-after-free of the result of
17017 aarch64_get_extension_string_for_isa_flags.
17018
17019 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17020
17021 PR c/44715
17022 * doc/extend.texi: Document break and continue behavior in
17023 statement expressions.
17024
17025 2019-01-23 Richard Biener <rguenther@suse.de>
17026
17027 PR tree-optimization/89008
17028 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
17029 not leave another stray operand.
17030
17031 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17032
17033 * BASE-VER: Bump to 9.0.1.
17034
17035 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
17036
17037 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
17038 thunk that returns by reference, use the type of the return object
17039 of the thunk instead of that of the alias to build the dereference.
17040
17041 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
17042
17043 * config/arc/atomic.md: Add operand to DMB instruction.
17044
17045 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17046
17047 PR tree-optimization/88964
17048 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
17049 build_zero_cst instead of build_int_cst. Return false for loop
17050 invariants which honor signed zeros.
17051
17052 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
17053
17054 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
17055
17056 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17057
17058 PR target/88965
17059 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
17060 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
17061 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
17062
17063 PR middle-end/88968
17064 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
17065 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
17066
17067 PR target/87064
17068 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
17069 Disable for little endian.
17070
17071 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17072
17073 PR target/88469
17074 * config/arm/arm.c (arm_needs_double_word_align): Check
17075 DECL_BIT_FIELD_TYPE.
17076
17077 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
17078 H.J. Lu <hongjiu.lu@intel.com>
17079
17080 PR target/88909
17081 * config/i386/i386-builtin.def: Add mask2 to all builtin
17082 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
17083 SPECIAL_ARGS.
17084 * config/i386/i386.c (BDESC): Add mask2 to the definition.
17085 (BDESC_FIRST): Likewise.
17086 (define_builtin): Add an argument for mask2. Updated to handle
17087 both ix86_isa_flags and ix86_isa_flags2.
17088 (define_builtin_const): Likewise.
17089 (define_builtin_pure): Likewise.
17090 (define_builtin2): Deleted.
17091 (define_builtin_const2): Likewise.
17092 (builtin_description): Add a member, mask2.
17093 (bdesc_*): Add mask2 to builtin initializations.
17094 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
17095 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
17096 support.
17097 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
17098
17099 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
17100
17101 PR target/88954
17102 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
17103 noplt attribute.
17104
17105 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17106
17107 PR target/88469
17108 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
17109 alignment is dominated by a bitfield with 64-bit aligned base type.
17110 (arm_function_arg): Emit a warning if the alignment has changed since
17111 earlier GCC releases.
17112 (arm_function_arg_boundary): Likewise.
17113 (arm_setup_incoming_varargs): Likewise.
17114
17115 2019-01-22 Richard Biener <rguenther@suse.de>
17116
17117 PR tree-optimization/88862
17118 * graphite-scop-detection.c
17119 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
17120
17121 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
17122
17123 * doc/extend.tex (AMD GCN Function Attributes): New section.
17124 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
17125 * doc/invoke.texi (AMD GCN Options): New section.
17126 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
17127
17128 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
17129
17130 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
17131 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
17132
17133 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17134
17135 PR tree-optimization/88044
17136 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
17137 is false in the first iteration, but !every_iteration, return false
17138 instead of true with niter->niter zero.
17139
17140 PR rtl-optimization/88904
17141 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
17142 any nonequal registers before processing BB_END (b).
17143
17144 PR target/88905
17145 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
17146 GET_MODE (op0).
17147 (expand_binop_directly, expand_doubleword_clz,
17148 expand_doubleword_popcount, expand_ctz, expand_ffs,
17149 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
17150
17151 PR rtl-optimization/49429
17152 PR target/49454
17153 PR rtl-optimization/86334
17154 PR target/88906
17155 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
17156 addressable from here...
17157 (emit_block_op_via_libcall): ... to here.
17158
17159 2019-01-22 Richard Biener <rguenther@suse.de>
17160
17161 * tree-vect-loop.c (vect_analyze_loop_operations): Use
17162 auto_vec for cost vector to fix memleak.
17163 (vectorize_fold_left_reduction): Properly gather SLP defs.
17164 (vectorizable_comparison): Do not swap operands to properly
17165 gather SLP defs.
17166
17167 2019-01-22 Alan Modra <amodra@gmail.com>
17168
17169 PR target/88614
17170 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
17171 stays a reg. Allow a const_int.
17172 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
17173 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
17174 (IS_NOMARK_TLSGETADDR): Define.
17175 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
17176 (rs6000_output_tlsargs): New function.
17177 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
17178 __tls_get_addr call takes an arg.
17179 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
17180 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
17181 delete split..
17182 (call_value_nonlocal_sysv): ..or here, delete split.
17183 (tls_gdld_nomark): Delete.
17184 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
17185 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
17186 (call_value_nonlocal_sysv): Likewise.
17187 (call_value_nonlocal_sysv_secure): Likewise.
17188 (call_value_nonlocal_aix): Likewise.
17189 (call_value_indirect_aix): Likewise.
17190 (call_value_indirect_elfv2): Likewise.
17191 (call_value_local32, call_value_local64): Disable for no-mark tls.
17192 (call_value_local_aix): Likewise.
17193
17194 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
17195
17196 PR target/88938
17197 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
17198 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
17199
17200 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
17201
17202 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
17203 string contents as hash_map keys.
17204
17205 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17206
17207 PR c/88928
17208 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
17209 for rvalue context. Handle rvalues correctly. Use min_align_of_type
17210 instead of TYPE_ALIGN.
17211 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
17212 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
17213 pointer from TYPE_STUB_DECL.
17214
17215 2019-01-21 Richard Biener <rguenther@suse.de>
17216
17217 PR tree-optimization/88934
17218 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
17219 at the possibly non-constant operand.
17220 (vect_get_constant_vectors): Adjust.
17221
17222 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
17223
17224 PR target/71659
17225 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
17226 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
17227 instead of _X86INTRIN_H_INCLUDED.
17228 * onfig/i386/clwbintrin.h: Likewise.
17229 * config/i386/pkuintrin.h: Likewise.
17230 * config/i386/prfchwintrin.h: Likewise.
17231 * config/i386/rdseedintrin.h: Likewise.
17232 * config/i386/wbnoinvdintrin.h: Likewise.
17233 * config/i386/xsavecintrin.h: Likewise.
17234 * config/i386/xsavesintrin.h: Likewise.
17235 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
17236 * config/i386/xsaveintrin.h: Likewise.
17237 * config/i386/xsaveoptintrin.h: Likewise.
17238 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
17239 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
17240 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
17241 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
17242 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
17243 * config/i386/immintrin.h: Here.
17244
17245 2019-01-20 Martin Jambor <mjambor@suse.cz>
17246
17247 PR ipa/87615
17248 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
17249 with aa_walk_budget.
17250 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
17251 aa_walk_budget_p parameter.
17252 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
17253 walk. Updated all callers.
17254 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
17255 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
17256 unmodified_parm.
17257 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
17258 parameter info. Extract info from fbi. Pass fbi to recursive calls
17259 and to unmodified_parm.
17260 (phi_result_unknown_predicate): New parameter fbi, removed parameter
17261 info, updated call to will_be_nonconstant_expr_predicate.
17262 (param_change_prob): New parameter fbi, limit AA walking.
17263 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
17264 calls to various above functions.
17265 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
17266 parameter. Use it to limit AA walking.
17267 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
17268 fbi, limit AA walk.
17269 (detect_type_change): New parameter fbi, pass it on to
17270 detect_type_change_from_memory_writes.
17271 (detect_type_change_ssa): Likewise.
17272 (aa_overwalked): Removed.
17273 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
17274 accordingly, adjust to the neew AA limiting scheme.
17275 (parm_ref_data_preserved_p): Likewise.
17276 (ipa_compute_jump_functions_for_edge): Adjust call to
17277 get_dynamic_type.
17278 (ipa_analyze_call_uses): Likewise.
17279 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
17280 (ipa_analyze_node): Initialize aa_walk_budget.
17281 (ipcp_transform_function): Likewise.
17282 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
17283 to get_dynamic_type.
17284
17285 2019-01-19 Jakub Jelinek <jakub@redhat.com>
17286
17287 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
17288 outside of #if CHECKING_P code.
17289
17290 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
17291
17292 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
17293 New function, split out from...
17294 (loop_versioning::analyze_stride): ...here.
17295 (loop_versioning::find_per_loop_multiplication): Use gassign.
17296 (loop_versioning::analyze_term_using_scevs): Return a success code.
17297 (loop_versioning::analyze_arbitrary_term): New function.
17298 (loop_versioning::analyze_address_fragment): Use
17299 analyze_arbitrary_term if all else fails.
17300
17301 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
17302
17303 PR target/88892
17304 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
17305 operands.
17306
17307 2019-01-18 Richard Biener <rguenther@suse.de>
17308
17309 PR tree-optimization/88903
17310 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
17311 scalar stmts a SLP shift amount is composed of when detecting
17312 shifts by scalars.
17313
17314 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
17315
17316 PR target/88799
17317 * config/arm/arm-cpus.in (mp): New feature.
17318 (sec): New feature.
17319 (fgroup ARMv7ve): Add mp and sec features.
17320 (arch armv7-a): Add options to allow mp and sec extensions.
17321 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
17322 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
17323 extenstions to the base architecture.
17324 (cpu cortex-a8): Add sec extension to the base architecture.
17325 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
17326 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
17327 variants down to the base v7-a varaint.
17328 * config/arm/t-multilib (v7_a_arch_variants): New variable.
17329 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
17330 of permitted extensions for -march=armv7-a and for
17331 -mcpu=generic-armv7-a.
17332
17333 2019-01-18 Martin Liska <mliska@suse.cz>
17334
17335 * params.def: Fix comment.
17336 * tree-profile.c (gimple_init_gcov_profiler): Bump function
17337 name.
17338 (gimple_gen_ic_func_profiler): Likewise.
17339
17340 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17341
17342 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
17343 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
17344 and put in error checks for stack protector guard options.
17345 (aarch64_stack_protect_guard): New.
17346 (TARGET_STACK_PROTECT_GUARD): Define.
17347 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
17348 (reg_stack_protect_address<mode>): New.
17349 (stack_protect_set): Adjust for SSP_GLOBAL.
17350 (stack_protect_test): Likewise.
17351 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
17352 (-mstack-protector-guard): Likewise.
17353 (-mstack-protector-guard-offset): Likewise.
17354
17355 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17356
17357 PR tree-optimization/86214
17358 * tree-inline.h (struct copy_body_data): Add
17359 add_clobbers_to_eh_landing_pads member.
17360 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
17361 (copy_edges_for_bb): Call it if EH edge destination is <
17362 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
17363 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
17364 if flag_stack_reuse != SR_NONE and clear it afterwards.
17365
17366 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
17367
17368 PR target/85596
17369 * doc/install.texi (with-multilib-list): Document for aarch64.
17370
17371 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17372
17373 PR target/88734
17374 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
17375 (("..."))) with ("...").
17376
17377 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17378
17379 * doc/extend.texi (Built-in Functions for Memory Model Aware
17380 Atomic Operations): Document atomic fetch and nand.
17381
17382 2019-01-18 Martin Liska <mliska@suse.cz>
17383 Richard Biener <rguenther@suse.de>
17384
17385 PR middle-end/88587
17386 * cgraph.h (create_version_clone_with_body): Add new argument
17387 with attributes.
17388 * cgraphclones.c (cgraph_node::create_version_clone): Add
17389 DECL_ATTRIBUTES to a newly created decl. And call
17390 valid_attribute_p so that proper cl_target_optimization_node
17391 is set for the newly created declaration.
17392 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
17393 for declaration.
17394 (expand_target_clones): Do not call valid_attribute_p, it must
17395 be already done.
17396 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
17397 vector types.
17398
17399 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17400
17401 PR target/88734
17402 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
17403 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
17404 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
17405
17406 2019-01-17 Martin Sebor <msebor@redhat.com>
17407
17408 PR middle-end/88273
17409 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
17410 Handle anti-ranges the same as no range at all.
17411
17412 2018-01-17 Steve Ellcey <sellcey@cavium.com>
17413
17414 * config/aarch64/aarch64.c (cgraph.h): New include.
17415 (intl.h): New include.
17416 (supported_simd_type): New function.
17417 (currently_supported_simd_type): Ditto.
17418 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
17419 (aarch64_simd_clone_adjust): Ditto.
17420 (aarch64_simd_clone_usable): Ditto.
17421 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
17422 (TARGET_SIMD_CLONE_ADJUST): Ditto.
17423 (TARGET_SIMD_CLONE_USABLE): Ditto.
17424 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
17425 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
17426 call.
17427
17428 2019-01-17 Martin Sebor <msebor@redhat.com>
17429
17430 PR tree-optimization/88800
17431 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
17432 NO_WARNING bit here. Avoid folding out-of-bounds calls.
17433 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
17434 redundant argument. Add new argument and issue diagnostics under
17435 its control. Detect out-of-bounds access even with warnings
17436 disabled.
17437 (check_bounds_or_overlap): Change return type. Add argument.
17438 (wrestrict_dom_walker::check_call): Adjust.
17439 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
17440 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
17441 check_bounds_or_overlap's return value.
17442 (handle_builtin_stxncpy): Same.
17443 (handle_builtin_strcat): Same.
17444
17445 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17446 Kwok Cheung Yeung <kcy@codesourcery.com>
17447 Julian Brown <julian@codesourcery.com>
17448 Tom de Vries <tom@codesourcery.com>
17449
17450 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
17451
17452 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17453
17454 * doc/sourcebuild.texi: Document dg-require-effective-target
17455 llvm_binutils and offload_gcn.
17456
17457 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17458 Kwok Cheung Yeung <kcy@codesourcery.com>
17459 Julian Brown <julian@codesourcery.com>
17460 Tom de Vries <tom@codesourcery.com>
17461
17462 * doc/sourcebuild.texi: Document dg-required-effective-target
17463 exceptions.
17464
17465 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17466 Kwok Cheung Yeung <kcy@codesourcery.com>
17467 Julian Brown <julian@codesourcery.com>
17468 Tom de Vries <tom@codesourcery.com>
17469 Jan Hubicka <hubicka@ucw.cz>
17470 Martin Jambor <mjambor@suse.cz>
17471
17472 * config.gcc: Add amdgcn*-*-amdhsa configuration.
17473 * configure.ac: Check for dlopen.
17474 * configure: Regenerate.
17475
17476 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17477 Kwok Cheung Yeung <kcy@codesourcery.com>
17478 Julian Brown <julian@codesourcery.com>
17479 Tom de Vries <tom@codesourcery.com>
17480 Jan Hubicka <hubicka@ucw.cz>
17481 Martin Jambor <mjambor@suse.cz>
17482
17483 * common/config/gcn/gcn-common.c: New file.
17484 * config/gcn/driver-gcn.c: New file.
17485 * config/gcn/gcn-builtins.def: New file.
17486 * config/gcn/gcn-hsa.h: New file.
17487 * config/gcn/gcn-modes.def: New file.
17488 * config/gcn/gcn-opts.h: New file.
17489 * config/gcn/gcn-passes.def: New file.
17490 * config/gcn/gcn-protos.h: New file.
17491 * config/gcn/gcn-run.c: New file.
17492 * config/gcn/gcn-tree.c: New file.
17493 * config/gcn/gcn.c: New file.
17494 * config/gcn/gcn.h: New file.
17495 * config/gcn/gcn.opt: New file.
17496 * config/gcn/t-gcn-hsa: New file.
17497
17498 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17499 Kwok Cheung Yeung <kcy@codesourcery.com>
17500 Julian Brown <julian@codesourcery.com>
17501 Tom de Vries <tom@codesourcery.com>
17502 Jan Hubicka <hubicka@ucw.cz>
17503 Martin Jambor <mjambor@suse.cz>
17504
17505 * config/gcn/constraints.md: New file.
17506 * config/gcn/gcn-valu.md: New file.
17507 * config/gcn/gcn.md: New file.
17508 * config/gcn/predicates.md: New file.
17509
17510 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
17511
17512 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
17513 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
17514 (stmt_uses_0_or_null_in_undefined_way): Likewise.
17515 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
17516
17517 2019-01-17 Tamar Christina <tamar.christina@arm.com>
17518
17519 PR target/88851
17520 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
17521 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
17522 it and document registers.
17523
17524 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17525
17526 * config/aarch64/aarch64.c (ares_tunings): Define.
17527 * config/aarch64/aarch64-cores.def (ares): Use the above.
17528
17529 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17530
17531 PR target/88794
17532 Revert:
17533 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
17534
17535 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
17536 (_mm512_fixupimm_round_pd): Update parameters and builtin.
17537 (_mm512_maskz_fixupimm_round_pd): Ditto.
17538 (_mm512_fixupimm_round_ps): Ditto.
17539 (_mm512_maskz_fixupimm_round_ps): Ditto.
17540 (_mm_fixupimm_round_sd): Ditto.
17541 (_mm_maskz_fixupimm_round_sd): Ditto.
17542 (_mm_fixupimm_round_ss): Ditto.
17543 (_mm_maskz_fixupimm_round_ss): Ditto.
17544 (_mm512_fixupimm_pd): Ditto.
17545 (_mm512_maskz_fixupimm_pd): Ditto.
17546 (_mm512_fixupimm_ps): Ditto.
17547 (_mm512_maskz_fixupimm_ps): Ditto.
17548 (_mm_fixupimm_sd): Ditto.
17549 (_mm_maskz_fixupimm_sd): Ditto.
17550 (_mm_fixupimm_ss): Ditto.
17551 (_mm_maskz_fixupimm_ss): Ditto.
17552 (_mm512_mask_fixupimm_round_pd): Update builtin.
17553 (_mm512_mask_fixupimm_round_ps): Ditto.
17554 (_mm_mask_fixupimm_round_sd): Ditto.
17555 (_mm_mask_fixupimm_round_ss): Ditto.
17556 (_mm512_mask_fixupimm_pd): Ditto.
17557 (_mm512_mask_fixupimm_ps): Ditto.
17558 (_mm_mask_fixupimm_sd): Ditto.
17559 (_mm_mask_fixupimm_ss): Ditto.
17560 * config/i386/avx512vlintrin.h:
17561 (_mm256_fixupimm_pd): Update parameters and builtin.
17562 (_mm256_maskz_fixupimm_pd): Ditto.
17563 (_mm256_fixupimm_ps): Ditto.
17564 (_mm256_maskz_fixupimm_ps): Ditto.
17565 (_mm_fixupimm_pd): Ditto.
17566 (_mm_maskz_fixupimm_pd): Ditto.
17567 (_mm_fixupimm_ps): Ditto.
17568 (_mm_maskz_fixupimm_ps): Ditto.
17569 (_mm256_mask_fixupimm_pd): Update builtin.
17570 (_mm256_mask_fixupimm_ps): Ditto.
17571 (_mm_mask_fixupimm_pd): Ditto.
17572 (_mm_mask_fixupimm_ps): Ditto.
17573 * config/i386/i386-builtin-types.def: Add new types and remove
17574 useless ones.
17575 * config/i386/i386-builtin.def: Update builtin definitions.
17576 * config/i386/i386.c: Handle new builtin types and remove useless ones.
17577 * config/i386/sse.md: Update VFIXUPIMM* patterns.
17578 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17579 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17580 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
17581 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17582 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17583 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
17584 * config/i386/subst.md:
17585 (round_saeonly_sd_mask_operand4): Add new subst_attr.
17586 (round_saeonly_sd_mask_op4): Ditto.
17587 (round_saeonly_expand_operand5): Ditto.
17588 (round_saeonly_expand): Update.
17589
17590 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17591
17592 PR target/88794
17593 Revert:
17594 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
17595
17596 * config/i386/sse.md: Combine VFIXUPIMM* patterns
17597 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17598 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17599 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
17600 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17601 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17602 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
17603
17604 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17605
17606 PR target/88794
17607 Revert:
17608 2018-12-15 Jakub Jelinek <jakub@redhat.com>
17609
17610 PR target/88489
17611 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
17612 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
17613 instead of UNSPEC_FIXUPIMM.
17614
17615 2019-01-17 Richard Biener <rguenther@suse.de>
17616
17617 PR lto/86736
17618 * dwarf2out.c (want_pubnames): Never generate pubnames sections
17619 and friends for the LTO part of debug info.
17620
17621 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17622
17623 PR tree-optimization/86214
17624 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
17625 if x == y.
17626
17627 PR rtl-optimization/88870
17628 * dce.c (deletable_insn_p): Never delete const/pure calls that can
17629 throw if we can't alter the cfg or delete dead exceptions.
17630 (mark_insn): Don't call find_call_stack_args for such calls.
17631
17632 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
17633
17634 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
17635 prototypes for vec_st.
17636 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
17637 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
17638 mainly on signed/unsigned long long and double.
17639
17640 2019-01-16 David Malcolm <dmalcolm@redhat.com>
17641
17642 PR target/88861
17643 * combine.c (delete_noop_moves): Convert to "bool" return,
17644 returning true if any edges are eliminated.
17645 (combine_instructions): Also return true if delete_noop_moves
17646 returns true.
17647
17648 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17649
17650 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
17651 correct max nunits for endian swap.
17652 (aarch64_expand_fcmla_builtin): Correct subreg code.
17653 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
17654 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
17655 lane endianness.
17656
17657 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
17658
17659 * config/alpha/alpha.c (alpha_gimplify_va_arg):
17660 Handle split indirect COMPLEX_TYPE arguments.
17661
17662 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
17663
17664 PR target/86891
17665 * config/aarch64/aarch64-modes.def: Add comment about how the carry
17666 bit is set by add and compare.
17667 (CC_ADC): New CC_MODE.
17668 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
17669 to cache the code and mode of X. Adjust the shape of a CC_Cmode
17670 comparison. Add detection for CC_ADCmode.
17671 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
17672 CC_ADCmode.
17673 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
17674 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
17675 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
17676 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
17677 to eliminate the need for zero-extending the operands.
17678 (add<mode>3_compareC_imm): Delete. Merge into ...
17679 (add<mode>3_compareC): ... this. Restructure the comparison to
17680 eliminate the need for zero-extending the operands.
17681 (add<mode>3_carryin): Use LTU for the overflow detection.
17682 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
17683 Reexpress comparison for overflow.
17684 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
17685 (add<mode>3_carryinC): Likewise.
17686 (add<mode>3_carryinV): Use LTU for carry between partials.
17687 * config/aarch64/predicates.md (aarch64_carry_operation): Update
17688 handling of CC_Cmode and add CC_ADCmode.
17689 (aarch64_borrow_operation): Likewise.
17690
17691 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17692
17693 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
17694 Remove patternmode.
17695 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
17696 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
17697 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
17698 Remove endianness conversion.
17699
17700 2019-01-16 Martin Liska <mliska@suse.cz>
17701
17702 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
17703 for GCC driver.
17704 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
17705 a new argument.
17706 * gcc.c (add_sysrooted_hdrs_prefix): New function.
17707 (path_prefix_reset): Move up in the source file.
17708 (find_fortran_preinclude_file): Make complex search for the
17709 fortran header files.
17710
17711 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
17712
17713 * godump.c (go_output_typedef): When outputting a typedef, refer
17714 to the underlying type by its name and not its structure.
17715
17716 2019-01-15 David Malcolm <dmalcolm@redhat.com>
17717
17718 PR c++/88795
17719 * tree.c (build_function_type): Assert that arg_types is not
17720 error_mark_node.
17721
17722 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
17723
17724 PR inline-asm/52813
17725 * doc/extend.texi: Document that listing the stack pointer in the
17726 clobber list of an asm is a deprecated feature.
17727 * common.opt (Wdeprecated): Moved from c-family/c.opt.
17728 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
17729 warning instead of an error for clobbers of the stack pointer.
17730 Add a note explaining why.
17731
17732 2019-01-15 Richard Biener <rguenther@suse.de>
17733
17734 PR debug/88046
17735 * dwarf2out.c (gen_member_die): Do not generate inheritance
17736 DIEs late.
17737
17738 2019-01-15 Richard Biener <rguenther@suse.de>
17739
17740 PR tree-optimization/88855
17741 * tree-if-conv.c (combine_blocks): Collect
17742 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
17743
17744 2019-01-15 Tom de Vries <tdevries@suse.de>
17745
17746 PR target/80547
17747 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
17748 lhs == NULL_TREE for gang-level reduction.
17749
17750 2019-01-15 Richard Biener <rguenther@suse.de>
17751 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17752
17753 PR ipa/88788
17754 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
17755 return true if SSA_NAME is already marked in visited bitmap.
17756 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
17757
17758 2019-01-15 Jakub Jelinek <jakub@redhat.com>
17759
17760 PR tree-optimization/88775
17761 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
17762 equal == 0 equality pointer comparisons some more if compared in
17763 integral types and either one points to an automatic var and the
17764 other to a global, or we can prove at least one points to the middle
17765 or both point to start or both point to end.
17766
17767 2019-01-14 Andi Kleen <ak@linux.intel.com>
17768
17769 * Makefile.in: Lower autofdo sampling rate by 10x.
17770 * Makefile.tpl: Dito.
17771
17772 2019-01-14 Tom Honermann <tom@honermann.net>
17773
17774 * defaults.h: Define CHAR8_TYPE.
17775
17776 2019-01-14 Martin Sebor <msebor@redhat.com>
17777
17778 PR target/88638
17779 * doc/extend.texi (Darwin Format Checks): Clarify.
17780
17781 2019-01-14 Richard Biener <rguenther@suse.de>
17782
17783 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
17784 whether we are in (simplify ...) or (match ...) context.
17785
17786 2019-01-14 Jakub Jelinek <jakub@redhat.com>
17787
17788 PR rtl-optimization/88796
17789 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
17790 * cfgexpand.c (stack_protect_prologue): Initialize
17791 crtl->stack_protect_guard_decl.
17792 * function.c (stack_protect_epilogue): Use it instead of calling
17793 targetm.stack_protect_guard again.
17794 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
17795 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
17796 crtl->stack_protect_guard_decl.
17797 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
17798 on the returned MEM_EXPR.
17799
17800 2019-01-12 Tom de Vries <tdevries@suse.de>
17801
17802 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
17803 vector length using -fopenacc-dim.
17804
17805 2019-01-12 Tom de Vries <tdevries@suse.de>
17806
17807 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
17808 lengths into account.
17809
17810 2019-01-12 Svante Signell <svante.signell@gmail.com>
17811
17812 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
17813 (TARGET_CAN_SPLIT_STACK): Define.
17814 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
17815
17816 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17817
17818 * params.def (inline-unit-growth): Set to 40.
17819
17820 2019-01-12 Jakub Jelinek <jakub@redhat.com>
17821
17822 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
17823
17824 2019-01-12 Tom de Vries <tdevries@suse.de>
17825
17826 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
17827 region calling vector-partitionable routine, set default_vector_length
17828 to WARP_SIZE.
17829
17830 2019-01-12 Tom de Vries <tdevries@suse.de>
17831
17832 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
17833 variable default_vector_length.
17834
17835 2019-01-12 Tom de Vries <tdevries@suse.de>
17836
17837 PR middle-end/88703
17838 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
17839 from oacc_default_dims, as oacc_validate_dims would do it, and apply
17840 dimensions limits.
17841
17842 2019-01-12 Tom de Vries <tdevries@suse.de>
17843
17844 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
17845 (nvptx_goacc_validate_dims): Add used parameter.
17846 * doc/tm.texi: Regenerate.
17847 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
17848 argument to call to targetm.goacc.validate_dims.
17849 (default_goacc_validate_dims): Add used
17850 parameter.
17851 * target.def (validate_dims): Add used parameter in DEFHOOK.
17852 * targhooks.h (default_goacc_validate_dims): Add used parameter.
17853
17854 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17855
17856 PR middle-end/85956
17857 PR lto/88733
17858 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
17859 field.
17860 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
17861 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
17862 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
17863 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
17864
17865 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
17866
17867 PR rtl-optimization/87305
17868 * lra-assigns.c
17869 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
17870 for little endian pseudos used as paradoxical subreg.
17871
17872 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17873
17874 PR tree-optimization/88693
17875 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
17876 for STRING_CSTs that don't contain any NUL characters in the first
17877 TREE_STRING_LENGTH bytes.
17878
17879 2019-01-11 Alan Modra <amodra@gmail.com>
17880
17881 PR 88777
17882 PR 88614
17883 * genattrtab.c (min_fn): Don't translate values.
17884 (min_attr_value): Return INT_MAX when the value can't be calculated.
17885 Return minimum among any values that can be calculated.
17886 (max_attr_value): Adjust.
17887
17888 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17889
17890 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
17891
17892 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17893
17894 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17895 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
17896 (aarch64_return_call_with_max_clobbers): New function.
17897 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
17898 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
17899 argument.
17900 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
17901 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
17902 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
17903 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
17904 * cselib.c (cselib_process_insn): Add argument to
17905 targetm.hard_regno_call_part_clobbered call.
17906 * ira-conflicts.c (ira_build_conflicts): Ditto.
17907 * ira-costs.c (ira_tune_allocno_costs): Ditto.
17908 * lra-constraints.c (inherit_reload_reg): Ditto.
17909 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
17910 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
17911 argument. Call targetm.return_call_with_max_clobbers.
17912 Add argument to targetm.hard_regno_call_part_clobbered call.
17913 (calls_have_same_clobbers_p): New function.
17914 (process_bb_lives): Add call_insn and last_call_insn variables.
17915 Pass call_insn to check_pseudos_live_through_calls.
17916 Modify if stmt to check targetm.return_call_with_max_clobbers.
17917 Update setting of flush variable.
17918 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
17919 to false.
17920 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
17921 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
17922 targetm.hard_regno_call_part_clobbered call.
17923 * reginfo.c (choose_hard_reg_mode): Ditto.
17924 * regrename.c (check_new_reg_p): Ditto.
17925 * reload.c (find_equiv_reg): Ditto.
17926 * reload1.c (emit_reload_insns): Ditto.
17927 * sched-deps.c (deps_analyze_insn): Ditto.
17928 * sel-sched.c (init_regs_for_mode): Ditto.
17929 (mark_unavailable_hard_regs): Ditto.
17930 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
17931 * target.def (hard_regno_call_part_clobbered): Add insn argument.
17932 (return_call_with_max_clobbers): New target function.
17933 * doc/tm.texi: Regenerate.
17934 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
17935 * hooks.c (hook_bool_uint_mode_false): Change to
17936 hook_bool_insn_uint_mode_false.
17937 * hooks.h (hook_bool_uint_mode_false): Ditto.
17938
17939 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17940
17941 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17942 (aarch64_remove_extra_call_preserved_regs): New function.
17943 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
17944 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
17945 * doc/tm.texi: Regenerate.
17946 * final.c (get_call_reg_set_usage): Call new hook.
17947 * target.def (remove_extra_call_preserved_regs): New hook.
17948 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
17949 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
17950
17951 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17952
17953 PR bootstrap/88714
17954 * passes.c (finish_optimization_passes): Call print_combine_total_stats
17955 inside of pass_combine_1 dump rather than pass_profile_1.
17956
17957 2019-01-11 Tom de Vries <tdevries@suse.de>
17958
17959 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
17960 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
17961 (PTX_NUM_PER_WORKER_BARRIERS): Define.
17962 (nvptx_apply_dim_limits): Prevent vector_length 64 and
17963 num_workers 16.
17964
17965 2019-01-11 Tom de Vries <tdevries@suse.de>
17966
17967 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
17968
17969 2019-01-11 Jan Beulich <jbeulich@suse.com>
17970
17971 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
17972 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
17973 sse2_cvtsi2sd): Add {l}.
17974 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
17975 syntax.
17976
17977 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17978
17979 PR target/88785
17980 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
17981 define_expand.
17982 (*float<floatunssuffix>v2div2sf2): New define_insn.
17983 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
17984 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
17985 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
17986 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
17987 match_operands with "const0_operand" "C".
17988
17989 2019-01-10 Tamar Christina <tamar.christina@arm.com>
17990
17991 * config/aarch64/aarch64-builtins.c
17992 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
17993 (aarch64_init_simd_builtins): ...Here
17994
17995 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
17996
17997 PR rtl-optimization/87305
17998 * lra-assigns.c
17999 (setup_live_pseudos_and_spill_after_risky_transforms): Check
18000 allocation for big endian pseudos used as paradoxical subregs and
18001 spill them if it is wrong.
18002 * lra-constraints.c (lra_constraints): Add a comment.
18003
18004 2019-01-10 Richard Biener <rguenther@suse.de>
18005
18006 PR tree-optimization/88792
18007 * tree-ssa-pre.c (get_representative_for): Do not return a
18008 value-number here.
18009
18010 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18011
18012 PR middle-end/84877
18013 PR bootstrap/88450
18014 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
18015 (assign_parm_setup_block): Do the argument slot realignment here
18016 instead.
18017
18018 2019-01-10 Stefan Agner <stefan@agner.ch>
18019
18020 PR target/88648
18021 * config/arm/arm.c (arm_option_override_internal): Force
18022 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
18023
18024 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18025
18026 PR c/88568
18027 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
18028 DECL_EXTERNAL.
18029
18030 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18031
18032 * config/arm/arm-builtins.c
18033 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
18034 (MAC_LANE_PAIR_QUALIFIERS): New.
18035 (arm_expand_builtin_args): Use it.
18036 (arm_expand_builtin_1): Likewise.
18037 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
18038 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
18039 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
18040 * config/arm/arm_neon.h:
18041 (vcadd_rot90_f16): New.
18042 (vcaddq_rot90_f16): New.
18043 (vcadd_rot270_f16): New.
18044 (vcaddq_rot270_f16): New.
18045 (vcmla_f16): New.
18046 (vcmlaq_f16): New.
18047 (vcmla_lane_f16): New.
18048 (vcmla_laneq_f16): New.
18049 (vcmlaq_lane_f16): New.
18050 (vcmlaq_laneq_f16): New.
18051 (vcmla_rot90_f16): New.
18052 (vcmlaq_rot90_f16): New.
18053 (vcmla_rot90_lane_f16): New.
18054 (vcmla_rot90_laneq_f16): New.
18055 (vcmlaq_rot90_lane_f16): New.
18056 (vcmlaq_rot90_laneq_f16): New.
18057 (vcmla_rot180_f16): New.
18058 (vcmlaq_rot180_f16): New.
18059 (vcmla_rot180_lane_f16): New.
18060 (vcmla_rot180_laneq_f16): New.
18061 (vcmlaq_rot180_lane_f16): New.
18062 (vcmlaq_rot180_laneq_f16): New.
18063 (vcmla_rot270_f16): New.
18064 (vcmlaq_rot270_f16): New.
18065 (vcmla_rot270_lane_f16): New.
18066 (vcmla_rot270_laneq_f16): New.
18067 (vcmlaq_rot270_lane_f16): New.
18068 (vcmlaq_rot270_laneq_f16): New.
18069 (vcadd_rot90_f32): New.
18070 (vcaddq_rot90_f32): New.
18071 (vcadd_rot270_f32): New.
18072 (vcaddq_rot270_f32): New.
18073 (vcmla_f32): New.
18074 (vcmlaq_f32): New.
18075 (vcmla_lane_f32): New.
18076 (vcmla_laneq_f32): New.
18077 (vcmlaq_lane_f32): New.
18078 (vcmlaq_laneq_f32): New.
18079 (vcmla_rot90_f32): New.
18080 (vcmlaq_rot90_f32): New.
18081 (vcmla_rot90_lane_f32): New.
18082 (vcmla_rot90_laneq_f32): New.
18083 (vcmlaq_rot90_lane_f32): New.
18084 (vcmlaq_rot90_laneq_f32): New.
18085 (vcmla_rot180_f32): New.
18086 (vcmlaq_rot180_f32): New.
18087 (vcmla_rot180_lane_f32): New.
18088 (vcmla_rot180_laneq_f32): New.
18089 (vcmlaq_rot180_lane_f32): New.
18090 (vcmlaq_rot180_laneq_f32): New.
18091 (vcmla_rot270_f32): New.
18092 (vcmlaq_rot270_f32): New.
18093 (vcmla_rot270_lane_f32): New.
18094 (vcmla_rot270_laneq_f32): New.
18095 (vcmlaq_rot270_lane_f32): New.
18096 (vcmlaq_rot270_laneq_f32): New.
18097 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
18098 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
18099 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
18100 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
18101 vcmlaq_lane270): New.
18102 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18103 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
18104 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
18105 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
18106 (arm_option_reconfigure_globals): Use them.
18107 * config/arm/iterators.md (VDF, VQ_HSF): New.
18108 (VCADD, VCMLA): New.
18109 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
18110 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
18111 New.
18112 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
18113 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
18114
18115 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18116
18117 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18118 Add qualifier_lane_pair_index.
18119 (emit-rtl.h): Include.
18120 (TYPES_QUADOP_LANE_PAIR): New.
18121 (aarch64_simd_expand_args): Use it.
18122 (aarch64_simd_expand_builtin): Likewise.
18123 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
18124 New.
18125 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
18126 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
18127 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
18128 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
18129 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
18130 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
18131 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
18132 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
18133 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
18134 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
18135 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
18136 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
18137 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
18138 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18139 Add __ARM_FEATURE_COMPLEX.
18140 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
18141 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
18142 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
18143 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
18144 fcmlaq_lane270): New.
18145 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18146 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
18147 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
18148 * config/aarch64/arm_neon.h:
18149 (vcadd_rot90_f16): New.
18150 (vcaddq_rot90_f16): New.
18151 (vcadd_rot270_f16): New.
18152 (vcaddq_rot270_f16): New.
18153 (vcmla_f16): New.
18154 (vcmlaq_f16): New.
18155 (vcmla_lane_f16): New.
18156 (vcmla_laneq_f16): New.
18157 (vcmlaq_lane_f16): New.
18158 (vcmlaq_rot90_lane_f16): New.
18159 (vcmla_rot90_laneq_f16): New.
18160 (vcmla_rot90_lane_f16): New.
18161 (vcmlaq_rot90_f16): New.
18162 (vcmla_rot90_f16): New.
18163 (vcmlaq_laneq_f16): New.
18164 (vcmla_rot180_laneq_f16): New.
18165 (vcmla_rot180_lane_f16): New.
18166 (vcmlaq_rot180_f16): New.
18167 (vcmla_rot180_f16): New.
18168 (vcmlaq_rot90_laneq_f16): New.
18169 (vcmlaq_rot270_laneq_f16): New.
18170 (vcmlaq_rot270_lane_f16): New.
18171 (vcmla_rot270_laneq_f16): New.
18172 (vcmlaq_rot270_f16): New.
18173 (vcmla_rot270_f16): New.
18174 (vcmlaq_rot180_laneq_f16): New.
18175 (vcmlaq_rot180_lane_f16): New.
18176 (vcmla_rot270_lane_f16): New.
18177 (vcadd_rot90_f32): New.
18178 (vcaddq_rot90_f32): New.
18179 (vcaddq_rot90_f64): New.
18180 (vcadd_rot270_f32): New.
18181 (vcaddq_rot270_f32): New.
18182 (vcaddq_rot270_f64): New.
18183 (vcmla_f32): New.
18184 (vcmlaq_f32): New.
18185 (vcmlaq_f64): New.
18186 (vcmla_lane_f32): New.
18187 (vcmla_laneq_f32): New.
18188 (vcmlaq_lane_f32): New.
18189 (vcmlaq_laneq_f32): New.
18190 (vcmla_rot90_f32): New.
18191 (vcmlaq_rot90_f32): New.
18192 (vcmlaq_rot90_f64): New.
18193 (vcmla_rot90_lane_f32): New.
18194 (vcmla_rot90_laneq_f32): New.
18195 (vcmlaq_rot90_lane_f32): New.
18196 (vcmlaq_rot90_laneq_f32): New.
18197 (vcmla_rot180_f32): New.
18198 (vcmlaq_rot180_f32): New.
18199 (vcmlaq_rot180_f64): New.
18200 (vcmla_rot180_lane_f32): New.
18201 (vcmla_rot180_laneq_f32): New.
18202 (vcmlaq_rot180_lane_f32): New.
18203 (vcmlaq_rot180_laneq_f32): New.
18204 (vcmla_rot270_f32): New.
18205 (vcmlaq_rot270_f32): New.
18206 (vcmlaq_rot270_f64): New.
18207 (vcmla_rot270_lane_f32): New.
18208 (vcmla_rot270_laneq_f32): New.
18209 (vcmlaq_rot270_lane_f32): New.
18210 (vcmlaq_rot270_laneq_f32): New.
18211 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
18212 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
18213 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
18214 (FCADD, FCMLA): New.
18215 (rot): New.
18216 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
18217
18218 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18219
18220 PR other/16615
18221
18222 * config/pa/pa.c: Change "can not" to "cannot".
18223 * gimple-ssa-evrp-analyze.c: Likewise.
18224 * ipa-icf.c: Likewise.
18225 * ipa-polymorphic-call.c: Likewise.
18226 * ipa-pure-const.c: Likewise.
18227 * lra-constraints.c: Likewise.
18228 * lra-remat.c: Likewise.
18229 * reload1.c: Likewise.
18230 * reorg.c: Likewise.
18231 * tree-ssa-uninit.c: Likewise.
18232
18233 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18234
18235 PR other/16615
18236
18237 * Makefile.in: Mechanically replace "can not" with "cannot".
18238 * alias.c: Likewise.
18239 * builtins.c: Likewise.
18240 * calls.c: Likewise.
18241 * cgraph.c: Likewise.
18242 * cgraph.h: Likewise.
18243 * cgraphclones.c: Likewise.
18244 * cgraphunit.c: Likewise.
18245 * combine-stack-adj.c: Likewise.
18246 * combine.c: Likewise.
18247 * common/config/i386/i386-common.c: Likewise.
18248 * config/aarch64/aarch64.c: Likewise.
18249 * config/alpha/sync.md: Likewise.
18250 * config/arc/arc.c: Likewise.
18251 * config/arc/predicates.md: Likewise.
18252 * config/arm/arm-c.c: Likewise.
18253 * config/arm/arm.c: Likewise.
18254 * config/arm/arm.h: Likewise.
18255 * config/arm/arm.md: Likewise.
18256 * config/arm/cortex-r4f.md: Likewise.
18257 * config/csky/csky.c: Likewise.
18258 * config/csky/csky.h: Likewise.
18259 * config/darwin-f.c: Likewise.
18260 * config/epiphany/epiphany.md: Likewise.
18261 * config/i386/i386.c: Likewise.
18262 * config/i386/sol2.h: Likewise.
18263 * config/m68k/m68k.c: Likewise.
18264 * config/mcore/mcore.h: Likewise.
18265 * config/microblaze/microblaze.md: Likewise.
18266 * config/mips/20kc.md: Likewise.
18267 * config/mips/sb1.md: Likewise.
18268 * config/nds32/nds32.c: Likewise.
18269 * config/nds32/predicates.md: Likewise.
18270 * config/pa/pa.c: Likewise.
18271 * config/rs6000/e300c2c3.md: Likewise.
18272 * config/rs6000/rs6000.c: Likewise.
18273 * config/s390/s390.h: Likewise.
18274 * config/sh/sh.c: Likewise.
18275 * config/sh/sh.md: Likewise.
18276 * config/spu/vmx2spu.h: Likewise.
18277 * cprop.c: Likewise.
18278 * dbxout.c: Likewise.
18279 * df-scan.c: Likewise.
18280 * doc/cfg.texi: Likewise.
18281 * doc/extend.texi: Likewise.
18282 * doc/fragments.texi: Likewise.
18283 * doc/gty.texi: Likewise.
18284 * doc/invoke.texi: Likewise.
18285 * doc/lto.texi: Likewise.
18286 * doc/md.texi: Likewise.
18287 * doc/objc.texi: Likewise.
18288 * doc/rtl.texi: Likewise.
18289 * doc/tm.texi: Likewise.
18290 * dse.c: Likewise.
18291 * emit-rtl.c: Likewise.
18292 * emit-rtl.h: Likewise.
18293 * except.c: Likewise.
18294 * expmed.c: Likewise.
18295 * expr.c: Likewise.
18296 * fold-const.c: Likewise.
18297 * genautomata.c: Likewise.
18298 * gimple-fold.c: Likewise.
18299 * hard-reg-set.h: Likewise.
18300 * ifcvt.c: Likewise.
18301 * ipa-comdats.c: Likewise.
18302 * ipa-cp.c: Likewise.
18303 * ipa-devirt.c: Likewise.
18304 * ipa-fnsummary.c: Likewise.
18305 * ipa-icf.c: Likewise.
18306 * ipa-inline-transform.c: Likewise.
18307 * ipa-inline.c: Likewise.
18308 * ipa-polymorphic-call.c: Likewise.
18309 * ipa-profile.c: Likewise.
18310 * ipa-prop.c: Likewise.
18311 * ipa-pure-const.c: Likewise.
18312 * ipa-reference.c: Likewise.
18313 * ipa-split.c: Likewise.
18314 * ipa-visibility.c: Likewise.
18315 * ipa.c: Likewise.
18316 * ira-build.c: Likewise.
18317 * ira-color.c: Likewise.
18318 * ira-conflicts.c: Likewise.
18319 * ira-costs.c: Likewise.
18320 * ira-int.h: Likewise.
18321 * ira-lives.c: Likewise.
18322 * ira.c: Likewise.
18323 * ira.h: Likewise.
18324 * loop-invariant.c: Likewise.
18325 * loop-unroll.c: Likewise.
18326 * lower-subreg.c: Likewise.
18327 * lra-assigns.c: Likewise.
18328 * lra-constraints.c: Likewise.
18329 * lra-eliminations.c: Likewise.
18330 * lra-lives.c: Likewise.
18331 * lra-remat.c: Likewise.
18332 * lra-spills.c: Likewise.
18333 * lra.c: Likewise.
18334 * lto-cgraph.c: Likewise.
18335 * lto-streamer-out.c: Likewise.
18336 * postreload-gcse.c: Likewise.
18337 * predict.c: Likewise.
18338 * profile-count.h: Likewise.
18339 * profile.c: Likewise.
18340 * recog.c: Likewise.
18341 * ree.c: Likewise.
18342 * reload.c: Likewise.
18343 * reload1.c: Likewise.
18344 * reorg.c: Likewise.
18345 * resource.c: Likewise.
18346 * rtl.def: Likewise.
18347 * rtl.h: Likewise.
18348 * rtlanal.c: Likewise.
18349 * sched-deps.c: Likewise.
18350 * sched-ebb.c: Likewise.
18351 * sched-rgn.c: Likewise.
18352 * sel-sched-ir.c: Likewise.
18353 * sel-sched.c: Likewise.
18354 * shrink-wrap.c: Likewise.
18355 * simplify-rtx.c: Likewise.
18356 * symtab.c: Likewise.
18357 * target.def: Likewise.
18358 * toplev.c: Likewise.
18359 * tree-call-cdce.c: Likewise.
18360 * tree-cfg.c: Likewise.
18361 * tree-complex.c: Likewise.
18362 * tree-core.h: Likewise.
18363 * tree-eh.c: Likewise.
18364 * tree-inline.c: Likewise.
18365 * tree-loop-distribution.c: Likewise.
18366 * tree-nrv.c: Likewise.
18367 * tree-profile.c: Likewise.
18368 * tree-sra.c: Likewise.
18369 * tree-ssa-alias.c: Likewise.
18370 * tree-ssa-dce.c: Likewise.
18371 * tree-ssa-dom.c: Likewise.
18372 * tree-ssa-forwprop.c: Likewise.
18373 * tree-ssa-loop-im.c: Likewise.
18374 * tree-ssa-loop-ivcanon.c: Likewise.
18375 * tree-ssa-loop-ivopts.c: Likewise.
18376 * tree-ssa-loop-niter.c: Likewise.
18377 * tree-ssa-phionlycprop.c: Likewise.
18378 * tree-ssa-phiopt.c: Likewise.
18379 * tree-ssa-propagate.c: Likewise.
18380 * tree-ssa-threadedge.c: Likewise.
18381 * tree-ssa-threadupdate.c: Likewise.
18382 * tree-ssa-uninit.c: Likewise.
18383 * tree-ssanames.c: Likewise.
18384 * tree-streamer-out.c: Likewise.
18385 * tree.c: Likewise.
18386 * tree.h: Likewise.
18387 * vr-values.c: Likewise.
18388
18389 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
18390
18391 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
18392 (ix86_split_xorsign): Ditto.
18393 * config/i386/i386.c (ix86_expand_xorsign): New function.
18394 (ix86_split_xorsign): Ditto.
18395 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
18396 (xorsign<mode>3): New expander.
18397 (xorsign<mode>3_1): New insn_and_split pattern.
18398 * config/i386/sse.md (xorsign<mode>3): New expander.
18399
18400 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18401
18402 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
18403 (*tablejump_sp64): Likewise.
18404 (*tablejump<P:mode>): ...this.
18405 (*call_address_sp32): Merge into...
18406 (*call_address_sp64): Likewise.
18407 (*call_address<P:mode>): ...this.
18408 (*call_symbolic_sp32): Merge into...
18409 (*call_symbolic_sp64): Likewise.
18410 (*call_symbolic<P:mode>): ...this.
18411 (call_value): Remove constraint and add predicate.
18412 (*call_value_address_sp32): Merge into...
18413 (*call_value_address_sp64): Likewise.
18414 (*call_value_address<P:mode>): ...this.
18415 (*call_value_symbolic_sp32): Merge into...
18416 (*call_value_symbolic_sp64): Likewise.
18417 (*call_value_symbolic<P:mode>): ...this.
18418 (*sibcall_symbolic_sp32): Merge into...
18419 (*sibcall_symbolic_sp64): Likewise.
18420 (*sibcall_symbolic<P:mode>): ...this.
18421 (sibcall_value): Remove constraint and add predicate.
18422 (*sibcall_value_symbolic_sp32): Merge into...
18423 (*sibcall_value_symbolic_sp64): Likewise.
18424 (*sibcall_value_symbolic<P:mode>): ...this.
18425 (window_save): Minor tweak.
18426 (*branch_sp32): Merge into...
18427 (*branch_sp64): Likewise.
18428 (*branch<P:mode>): ...this.
18429
18430 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18431 James Clarke <jrtc27@jrtc27.com>
18432
18433 PR target/84010
18434 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
18435 consistently in TLS address generation and adjust code to the renaming
18436 of patterns. Mark calls to __tls_get_addr as const.
18437 * config/sparc/sparc.md (tgd_hi22): Turn into...
18438 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
18439 (tgd_lo10): Turn into...
18440 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
18441 (tgd_add32): Merge into...
18442 (tgd_add64): Likewise.
18443 (tgd_add<P:mode>): ...this and use Pmode throughout.
18444 (tldm_hi22): Turn into...
18445 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
18446 (tldm_lo10): Turn into...
18447 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
18448 (tldm_add32): Merge into...
18449 (tldm_add64): Likewise.
18450 (tldm_add<P:mode>): ...this and use Pmode throughout.
18451 (tldm_call32): Merge into...
18452 (tldm_call64): Likewise.
18453 (tldm_call<P:mode>): ...this and use Pmode throughout.
18454 (tldo_hix22): Turn into...
18455 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
18456 (tldo_lox10): Turn into...
18457 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
18458 (tldo_add32): Merge into...
18459 (tldo_add64): Likewise.
18460 (tldo_add<P:mode>): ...this and use Pmode throughout.
18461 (tie_hi22): Turn into...
18462 (tie_hi22<P:mode>): ...this and use Pmode throughout.
18463 (tie_lo10): Turn into...
18464 (tie_lo10<P:mode>): ...this and use Pmode throughout.
18465 (tie_ld64): Use DImode throughout.
18466 (tie_add32): Merge into...
18467 (tie_add64): Likewise.
18468 (tie_add<P:mode>): ...this and use Pmode throughout.
18469 (tle_hix22_sp32): Merge into...
18470 (tle_hix22_sp64): Likewise.
18471 (tle_hix22<P:mode>): ...this and use Pmode throughout.
18472 (tle_lox22_sp32): Merge into...
18473 (tle_lox22_sp64): Likewise.
18474 (tle_lox22<P:mode>): ...this and use Pmode throughout.
18475 (*tldo_ldub_sp32): Merge into...
18476 (*tldo_ldub_sp64): Likewise.
18477 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
18478 (*tldo_ldub1_sp32): Merge into...
18479 (*tldo_ldub1_sp64): Likewise.
18480 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
18481 (*tldo_ldub2_sp32): Merge into...
18482 (*tldo_ldub2_sp64): Likewise.
18483 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
18484 (*tldo_ldsb1_sp32): Merge into...
18485 (*tldo_ldsb1_sp64): Likewise.
18486 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
18487 (*tldo_ldsb2_sp32): Merge into...
18488 (*tldo_ldsb2_sp64): Likewise.
18489 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
18490 (*tldo_ldub3_sp64): Use DImode throughout.
18491 (*tldo_ldsb3_sp64): Likewise.
18492 (*tldo_lduh_sp32): Merge into...
18493 (*tldo_lduh_sp64): Likewise.
18494 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
18495 (*tldo_lduh1_sp32): Merge into...
18496 (*tldo_lduh1_sp64): Likewise.
18497 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
18498 (*tldo_ldsh1_sp32): Merge into...
18499 (*tldo_ldsh1_sp64): Likewise.
18500 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
18501 (*tldo_lduh2_sp64): Use DImode throughout.
18502 (*tldo_ldsh2_sp64): Likewise.
18503 (*tldo_lduw_sp32): Merge into...
18504 (*tldo_lduw_sp64): Likewise.
18505 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
18506 (*tldo_lduw1_sp64): Use DImode throughout.
18507 (*tldo_ldsw1_sp64): Likewise.
18508 (*tldo_ldx_sp64): Likewise.
18509 (*tldo_stb_sp32): Merge into...
18510 (*tldo_stb_sp64): Likewise.
18511 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
18512 (*tldo_sth_sp32): Merge into...
18513 (*tldo_sth_sp64): Likewise.
18514 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
18515 (*tldo_stw_sp32): Merge into...
18516 (*tldo_stw_sp64): Likewise.
18517 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
18518 (*tldo_stx_sp64): Use DImode throughout.
18519
18520 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18521
18522 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
18523 check configure option to set BTI and Return Address Signing.
18524 * configure.ac: Add --enable-standard-branch-protection and
18525 --disable-standard-branch-protection.
18526 * configure: Regenerated.
18527 * doc/install.texi: Document the same.
18528
18529 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18530 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18531
18532 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
18533 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
18534 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
18535 if bti is enabled.
18536 * config/aarch64/aarch64-bti-insert.c: New file.
18537 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
18538 pass.
18539 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
18540 new bti pass.
18541 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
18542 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
18543 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
18544 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
18545
18546 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18547
18548 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
18549 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
18550 Disable bti for -mbranch-protection=none.
18551 (aarch64_handle_standard_branch_protection): Enable bti for
18552 -mbranch-protection=standard.
18553 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
18554 -mbranch-protection.
18555 (aarch64_bti_enabled): Check if bti is enabled.
18556 * config/aarch64/aarch64.opt: Declare target variable.
18557 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
18558
18559 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18560
18561 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
18562 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
18563 (aarch64_expand_epilogue): Likewise.
18564 (aarch64_output_mi_thunk): Likewise.
18565 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
18566 TAILCALL_ADDR_REGS to x16 and x17.
18567 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
18568
18569 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18570
18571 * config/aarch64/aarch64-option-extensions.def: Define
18572 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
18573 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
18574 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
18575 (AARCH64_FL_PREDRES): New.
18576 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
18577 AARCH64_FL_PREDRES by default.
18578 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
18579
18580 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18581
18582 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
18583 ARMv8.5-A.
18584 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
18585 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
18586 * doc/invoke.texi: Document ARMv8.5-A.
18587
18588 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18589
18590 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
18591 (xorsign<mode>3): Likewise.
18592
18593 2019-01-09 Jelinek <jakub@redhat.com>
18594
18595 PR middle-end/88758
18596 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
18597 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
18598
18599 PR rtl-optimization/88331
18600 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
18601 not currently_expanding_to_rtl.
18602
18603 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18604
18605 * doc/invoke.texi (-Os): Remove trailing spaces.
18606 (-finline-functions): Remove reference to -O2.
18607
18608 2019-01-08 Jakub Jelinek <jakub@redhat.com>
18609
18610 PR rtl-optimization/79593
18611 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
18612
18613 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
18614 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
18615
18616 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
18617
18618 PR bootstrap/88721
18619 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
18620 to -1 on entry.
18621
18622 PR debug/88723
18623 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
18624 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
18625
18626 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
18627
18628 PR target/88717
18629 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
18630 ix86_avx_u128_mode_entry.
18631
18632 2019-01-08 Martin Liska <mliska@suse.cz>
18633
18634 PR tree-optimization/88753
18635 * tree-switch-conversion.c (switch_conversion::build_one_array):
18636 Come up with local variable constructor. Convert first to
18637 type of constructor values.
18638
18639 2019-01-08 Richard Biener <rguenther@suse.de>
18640
18641 PR tree-optimization/86554
18642 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
18643 rpo_avail): Move earlier.
18644 (visit_nary_op): When value-numbering to expressions
18645 with different overflow behavior make sure there's an
18646 available expression on the path.
18647
18648 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
18649
18650 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
18651 aarch64_parse_branch_protection,
18652 struct aarch64_branch_protect_type,
18653 aarch64_handle_no_branch_protection,
18654 aarch64_handle_standard_branch_protection,
18655 aarch64_validate_mbranch_protection,
18656 aarch64_handle_pac_ret_protection,
18657 aarch64_handle_attr_branch_protection,
18658 accepted_branch_protection_string,
18659 aarch64_pac_ret_subtypes,
18660 aarch64_branch_protect_types,
18661 aarch64_handle_pac_ret_leaf): Define.
18662 (aarch64_override_options_after_change_1, aarch64_override_options):
18663 Add check for accepted_branch_protection_string.
18664 (aarch64_option_save): Save accepted_branch_protection_string.
18665 (aarch64_option_restore): Save accepted_branch_protection_string.
18666 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
18667 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
18668 msign-return-address.
18669 * doc/invoke.texi: Add mbranch-protection.
18670
18671 2019-01-08 Alan Modra <amodra@gmail.com>
18672
18673 PR target/88614
18674 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
18675 Delete "unknownp" parameter. Adjust callers. Handle
18676 CONST_INT, PLUS, MINUS, and MULT.
18677 (attr_value_aligned): Renamed from or_attr_value.
18678 (min_attr_value): Return INT_MIN for unhandled rtl case..
18679 (min_fn): ..and translate to INT_MAX here.
18680 (write_length_unit_log): Modify to cope without "unknown".
18681 (write_attr_value): Handle IF_THEN_ELSE.
18682
18683 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18684
18685 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
18686 optimization for masked stores.
18687
18688 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18689
18690 PR middle-end/88567
18691 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
18692 output vector directly to duplicate_and_interleave instead of
18693 going through a temporary. Postpone insertion of ctor_seq to
18694 the end of the loop.
18695
18696 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
18697
18698 PR target/86891
18699 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
18700 unsigned_p. Handle signed and unsigned overflow correction as
18701 required.
18702 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
18703 prototype.
18704 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
18705 for operand 2.
18706 (add<mode>3_compareV_imm): Make this callable for expanding.
18707 (subv<GPI:mode>4): Use register_operand for operand 1. Use
18708 aarch64_plus_operand for operand 2.
18709 (subv<GPI:mode>_insn): New insn pattern.
18710 (subv<GPI:mode>_imm): Likewise.
18711 (negv<GPI:mode>3): New expand pattern.
18712 (negv<GPI:mode>_insn): New insn pattern.
18713 (negv<GPI:mode>_cmp_only): Likewise.
18714 (cmpv<GPI:mode>_insn): Likewise.
18715 (subvti4): Use register_operand for operand 1. Update call to
18716 aarch64_expand_subvti.
18717 (usubvti4): Likewise.
18718 (negvti3): New expand pattern.
18719 (negdi_carryout): New insn pattern.
18720 (negvdi_carryinV): New insn pattern.
18721 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
18722 version the named version.
18723 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
18724 operands.
18725 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
18726 patterns.
18727 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
18728 patterns.
18729 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
18730 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
18731 (sub<mode>3_carryinCV): Delete.
18732 (sub<GPI:mode>3_carryinV): New expand pattern.
18733 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
18734
18735 2019-01-07 Richard Biener <rguenther@suse.de>
18736
18737 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
18738 of tree_operand_hash.
18739
18740 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18741
18742 PR tree-optimization/88598
18743 * tree.h (single_nonzero_element): Declare.
18744 * tree.c (single_nonzero_element): New function.
18745 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
18746 if I is the only nonzero element of CST.
18747
18748 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18749
18750 PR tree-optimization/88598
18751 * tree.h (initializer_each_zero_or_onep): Declare.
18752 * tree.c (initializer_each_zero_or_onep): New function.
18753 (signed_or_unsigned_type_for): Handle float types too.
18754 (unsigned_type_for, signed_type_for): Update comments accordingly.
18755 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
18756 x & { 0 or -1, 0 or -1, ... }.
18757
18758 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
18759
18760 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
18761 with x86_64-pc-linux-gnu.
18762
18763 2019-01-07 Tom de Vries <tdevries@suse.de>
18764
18765 PR target/85486
18766 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
18767 function.
18768 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
18769 routines.
18770
18771 2019-01-07 Jakub Jelinek <jakub@redhat.com>
18772
18773 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
18774 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
18775 TARGET_AVX512F as condition.
18776
18777 PR debug/88723
18778 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
18779 const_not_ok_for_debug_p target hook.
18780 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
18781 on UNSPEC and subexpressions thereof if all subexpressions of the
18782 UNSPEC are CONSTANT_P.
18783
18784 PR tree-optimization/88676
18785 * tree-ssa-phiopt.c (two_value_replacement): New function.
18786 (tree_ssa_phiopt_worker): Call it.
18787
18788 PR sanitizer/88619
18789 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
18790 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
18791
18792 PR c++/85052
18793 * tree-vect-generic.c: Include insn-config.h and recog.h.
18794 (expand_vector_piecewise): Add defaulted ret_type argument,
18795 if non-NULL, use that in preference to type for the result type.
18796 (expand_vector_parallel): Formatting fix.
18797 (do_vec_conversion, do_vec_narrowing_conversion,
18798 expand_vector_conversion): New functions.
18799 (expand_vector_operations_1): Call expand_vector_conversion
18800 for VEC_CONVERT ifn calls.
18801 * internal-fn.def (VEC_CONVERT): New internal function.
18802 * internal-fn.c (expand_VEC_CONVERT): New function.
18803 * fold-const-call.c (fold_const_vec_convert): New function.
18804 (fold_const_call): Use it for CFN_VEC_CONVERT.
18805 * doc/extend.texi (__builtin_convertvector): Document.
18806
18807 2019-01-07 Tom de Vries <tdevries@suse.de>
18808
18809 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
18810 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
18811 vector_red_partition, vector_red_sym): New global variables.
18812 (nvptx_option_override): Initialize vector_red_sym.
18813 (nvptx_declare_function_name): Restore red_partition register.
18814 (nvptx_file_end): Emit code to declare the vector reduction variables.
18815 (nvptx_output_red_partition): New function.
18816 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
18817 large vector reductions.
18818 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
18819 (nvptx_init_builtins): Add VECTOR_ADDR.
18820 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
18821 Handle nvptx_expand_shared_addr.
18822 (nvptx_get_shared_red_addr): Add vector argument and handle large
18823 vectors.
18824 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
18825 large vectors.
18826 (nvptx_goacc_reduction_init): Likewise.
18827 (nvptx_goacc_reduction_fini): Likewise.
18828 (nvptx_goacc_reduction_teardown): Likewise.
18829 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
18830 init,fini,teardown}.
18831 (nvptx_init_axis_predicate): Initialize vector_red_partition.
18832 (nvptx_set_current_function): Init vector_red_partition.
18833 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
18834 (nvptx_red_partition): New insn.
18835 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
18836
18837 2019-01-07 Tom de Vries <tdevries@suse.de>
18838
18839 PR target/85381
18840 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
18841 empty loops.
18842
18843 2019-01-07 Tom de Vries <tdevries@suse.de>
18844
18845 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
18846 (nvptx_option_override): Init oacc_bcast_partition.
18847 (nvptx_init_oacc_workers): New function.
18848 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
18849 (nvptx_needs_shared_bcast): New function.
18850 (nvptx_find_par): Generalize to enable vectors to use shared-memory
18851 to propagate state.
18852 (nvptx_shared_propagate): Initialize vector bcast partition and
18853 synchronization state.
18854 (nvptx_single): Generalize to enable vectors to use shared-memory
18855 to propagate state.
18856 (nvptx_process_pars): Likewise.
18857 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
18858 * config/nvptx/nvptx.h (struct machine_function): Add
18859 bcast_partition and sync_bar members.
18860
18861 2019-01-07 Tom de Vries <tdevries@suse.de>
18862
18863 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
18864 (nvptx_apply_dim_limits): New function.
18865 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
18866 PTX_WARP_SIZE.
18867
18868 2019-01-07 Tom de Vries <tdevries@suse.de>
18869
18870 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
18871 as late as possible.
18872
18873 2019-01-07 Tom de Vries <tdevries@suse.de>
18874
18875 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
18876 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
18877 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
18878 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
18879 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
18880
18881 2019-01-07 Tom de Vries <tdevries@suse.de>
18882
18883 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
18884
18885 2019-01-07 Tom de Vries <tdevries@suse.de>
18886
18887 * omp-offload.c (oacc_get_min_dim): New function.
18888 * omp-offload.h (oacc_get_min_dim): Declare.
18889
18890 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
18891
18892 PR target/88521
18893 * config/i386/i386.c (function_value_ms_64): Return small sturct in
18894 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
18895
18896 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18897
18898 PR tree-opt/86020
18899 Revert:
18900 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
18901
18902 * ipa-inline.c (edge_badness): Use inlined_time instead of
18903 inline_summaries->get.
18904
18905 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18906
18907 * opts.c (enable_fdo_optimizations): Enable
18908 version-loops-for-strides, loop-interchange, unrol-and-jam
18909 and tree-loop-distribution.
18910 * invoke.texi: Document newly enabled options.
18911
18912 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18913
18914 * doc/invoke.texi (max-inline-insns-small): New parameters.
18915 * ipa-inline.c (want_early_inline_function_p): simplify.
18916 (want_inline_small_function_p): Fix pasto from previous patch;
18917 use max-inline-insns-small bound.
18918 * params.def (max-inline-insns-small): New param.
18919 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
18920 variables correctly.
18921
18922 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18923
18924 * doc/invoke.texi: Document max-inline-insns-size,
18925 uninlined-function-insns, uninlined-function-time,
18926 uninlined-thunk-insns and uninlined-thunk-time.
18927 * params.def: Add max-inline-insns-size,
18928 uninlined-function-insns, uninlined-function-time,
18929 uninlined-thunk-insns and uninlined-thunk-time.
18930 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
18931 new parameters.
18932 * ipa-inline.c (can_inline_edge_by_limits_p,
18933 want_inline_small_function_p): Use new parameters.
18934
18935 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18936
18937 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
18938
18939 2019-01-05 Jakub Jelinek <jakub@redhat.com>
18940
18941 PR middle-end/82564
18942 PR target/88620
18943 * expr.c (expand_assignment): For calls returning VLA structures
18944 if to_rtx is not a MEM, force it into a stack temporary.
18945
18946 PR debug/88635
18947 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
18948 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
18949 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
18950 subexpressions of both operands.
18951 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
18952 subrtxes are CONSTANT_P.
18953 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
18954 2018-11-09 changes.
18955
18956 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
18957
18958 * params.def (hot-bb-count-ws-permille): Set to 990.
18959
18960 2019-01-04 Martin Sebor <msebor@redhat.com>
18961
18962 PR c/88546
18963 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
18964 leaf.
18965
18966 2019-01-04 Martin Sebor <msebor@redhat.com>
18967
18968 PR c/88363
18969 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
18970
18971 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18972
18973 * gdbinit.in: Turn off pagination for the skip commands, restore
18974 it to previous state afterwards.
18975
18976 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18977
18978 PR target/88594
18979 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
18980 of GET_MODE (opN) as modes of the libcall arguments.
18981
18982 2019-01-04 Jan Beulich <jbeulich@suse.com>
18983
18984 * config/i386/sse.md
18985 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
18986 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
18987 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18988 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18989 avx512f_vmcmp<mode>3<round_saeonly_name>,
18990 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
18991 avx512f_maskcmp<mode>3,
18992 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18993 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18994 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18995 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18996 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18997 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18998 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18999 <avx512>_gt<mode>3<mask_scalar_merge_name>,
19000 <avx512>_testm<mode>3<mask_scalar_merge_name>,
19001 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
19002 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
19003 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
19004 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
19005 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
19006 avx512cd_maskb_vec_dup<mode>,
19007 avx512cd_maskw_vec_dup<mode>,
19008 avx512dq_fpclass<mode><mask_scalar_merge_name>,
19009 avx512dq_vmfpclass<mode>,
19010 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
19011 instead of =Yk.
19012
19013 2019-01-03 Martin Sebor <msebor@redhat.com>
19014
19015 PR tree-optimization/88659
19016 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
19017
19018 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19019
19020 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
19021 unaligned vsx and avoid lxvd2x/stxvd2x.
19022 (gen_lvx_v4si_move): New function.
19023
19024 2019-01-03 Tom de Vries <tdevries@suse.de>
19025
19026 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
19027 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
19028 function.
19029 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
19030
19031 2019-01-03 Tom de Vries <tdevries@suse.de>
19032
19033 * config/nvptx/nvptx.c (struct offload_attrs): New.
19034 (populate_offload_attrs): New function. Factor mask extraction out of
19035 nvptx_reorg. Add extraction of dimensions.
19036 (nvptx_reorg): Use populate_offload_attrs.
19037
19038 2019-01-03 Tom de Vries <tdevries@suse.de>
19039
19040 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
19041 cases for oacc_min_dims_p and routine_p. Add asserts for
19042 oacc_default_dims_p and offload_region_p.
19043
19044 2019-01-03 Tom de Vries <tdevries@suse.de>
19045
19046 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
19047 factored out of ...
19048 (nvptx_goacc_validate_dims): ... here.
19049
19050 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19051
19052 PR tree-optimization/85574
19053 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
19054 structure.
19055 (struct ssa_equip_hash_traits): Declare.
19056 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
19057
19058 2019-01-03 Jakub Jelinek <jakub@redhat.com>
19059
19060 PR debug/88644
19061 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
19062 change it to qualified_type.
19063
19064 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19065
19066 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
19067 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
19068
19069 2019-01-02 Martin Sebor <msebor@redhat.com>
19070 Jeff Law <law@redhat.com>
19071
19072 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
19073 (get_range_strlen_tree): Update appropriately.
19074 (get_range_strlen)
19075 * gimple-fold.h (get_range_strlen): Drop unused last argument.
19076
19077 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
19078 rather than set_range_info.
19079 * tree-ssa-strlen.c (set_strlen_range): Extracted from
19080 maybe_set_strlen_range. Handle potentially boundary crossing
19081 cases more conservatively.
19082 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
19083 Call set_strlen_range.
19084 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
19085
19086 PR middle-end/88663
19087 * gimple-fold.c (get_range_strlen): Update prototype to no longer
19088 need the flexp argument.
19089 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
19090 from calls to get_range_strlen. Update comments. Just update
19091 VAL for an unterminated const char array and let the reset of the
19092 code handle it normally. No longer try to set *flexp. Adjust
19093 return value.
19094 (get_range_strlen): Update for the new get_range_strlen API.
19095 (get_maxval_strlen): Similarly.
19096 (gimple_fold_builtin_strlen): Handle update meaning of return value
19097 from get_range_strlen.
19098 * gimple-ssa-sprintf.c (get_string_length): Update for the new
19099 get_range_strlen API.
19100
19101 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
19102
19103 PR lto/88130
19104 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
19105 false at WPA time when body was removed.
19106
19107 2019-01-02 Martin Liska <mliska@suse.cz>
19108
19109 PR tree-optimization/88650
19110 * predict.c (set_even_probabilities): Calculate probability
19111 remainer only when really used.
19112
19113 2019-01-02 Richard Biener <rguenther@suse.de>
19114
19115 PR middle-end/88651
19116 * tree-data-ref.c (analyze_subscript_affine_affine): Use
19117 widest_ints when mangling max_stmt_execution results.
19118
19119 2019-01-02 Richard Biener <rguenther@suse.de>
19120
19121 PR tree-optimization/88621
19122 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
19123 bitfields when canoncalizing.
19124
19125 2019-01-02 Richard Biener <rguenther@suse.de>
19126
19127 PR target/87545
19128 * config/i386/x86-tune-costs.h (intel_cost): Adjust
19129 cost of cheap SSE instruction.
19130
19131 2019-01-02 Richard Biener <rguenther@suse.de>
19132
19133 PR ipa/85574
19134 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
19135 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
19136 function.
19137 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
19138 set after UIDs before splitting them.
19139
19140 2019-01-01 Martin Sebor <msebor@redhat.com>
19141 Jeff Law <law@redhat.com>
19142
19143 * gimple-fold.c (get_range_strlen_tree): Record if the computed
19144 length is optimistic. If it is, then arrange to compute the
19145 conservative length as well.
19146
19147 * gimple-fold.h (get_range_strlen): Update prototype.
19148 * builtins.c (check_access): Update call to get_range_strlen to use
19149 c_strlen_data pointer. Change various variable accesses to instead
19150 pull data from the c_strlen_data structure.
19151 (check_strncat_sizes, expand_builtin_strncat): Likewise.
19152 * calls.c (maybe_warn_nonstring_arg): Likewise.
19153 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
19154 minimum length if maximum lengh is unknown.
19155 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
19156 that used c_strlen, it's no longer needed. Restructure slightly.
19157 (format_string): Set unlikely range appropriately.
19158 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
19159 formatting issues.
19160 (get_range_strlen): Accept c_strlen_data pointer for external
19161 call sites as well. Pass through to call to internal get_range_strlen.
19162 Adjust minlen, maxlen and maxbound as needed.
19163 (get_maxval_strlen): Update comments.
19164 (gimple_fold_builtin_strlen): Update call to get_range_strlen
19165 to use c_strlen_data pointer. Change variable accesses to instead
19166 use c_strlen_data data members.
19167
19168 * gimple-fold.c (get_range_strlen): Update prototype.
19169 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
19170 local variables. Use pdata to return information to caller.
19171 Update calls to get_range_strlen. Update pdata->maxbound.
19172 (get_range_strlen -- static version): Similarly.
19173 (get_range_strlen -- extern version): Update for internal
19174 get_range_strlen API change. Convert to external data format.
19175 (get_maxval_strlen): Similarly.
19176
19177 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
19178
19179 * coverage.c (get_coverage_counts): Use current_function_decl.
19180 * profile.c (read_thunk_profile): New function.
19181 (branch_prob): Add THUNK parameter.
19182 * tree-profile.c (tree_profiling): Handle thunks.
19183 * value-prof.c (init_node_map): Handle thunks.
19184 * value-prof.h (branch_prob): Upate prototype.
19185 (read_thunk_profile): Declare.
19186
19187 2019-01-01 Jakub Jelinek <jakub@redhat.com>
19188
19189 Update copyright years.
19190
19191 * gcc.c (process_command): Update copyright notice dates.
19192 * gcov-dump.c (print_version): Ditto.
19193 * gcov.c (print_version): Ditto.
19194 * gcov-tool.c (print_version): Ditto.
19195 * gengtype.c (create_file): Ditto.
19196 * doc/cpp.texi: Bump @copying's copyright year.
19197 * doc/cppinternals.texi: Ditto.
19198 * doc/gcc.texi: Ditto.
19199 * doc/gccint.texi: Ditto.
19200 * doc/gcov.texi: Ditto.
19201 * doc/install.texi: Ditto.
19202 * doc/invoke.texi: Ditto.
19203 \f
19204 Copyright (C) 2019 Free Software Foundation, Inc.
19205
19206 Copying and distribution of this file, with or without modification,
19207 are permitted in any medium without royalty provided the copyright
19208 notice and this notice are preserved.