]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Clean next_nested properly.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-15 Martin Liska <mliska@suse.cz>
2
3 PR ipa/91438
4 * cgraph.c (cgraph_node::remove): When setting
5 n->origin = NULL for all nested functions, reset
6 also next_nested.
7
8 2019-08-15 Martin Liska <mliska@suse.cz>
9
10 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
11 and next_nested.
12
13 2019-08-15 Martin Liska <mliska@suse.cz>
14
15 PR ipa/91404
16 * passes.c (order): Remove.
17 (uid_hash_t): Likewise).
18 (remove_cgraph_node_from_order): Remove from set
19 of pointers (cgraph_node *).
20 (insert_cgraph_node_to_order): New.
21 (duplicate_cgraph_node_to_order): New.
22 (do_per_function_toporder): Register all 3 cgraph hooks.
23 Skip removed_nodes now as we know about all of them.
24
25 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
26
27 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
28 <case E_V8QImode>: Use vector_set path for
29 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
30 (ix86_expand_vector_init_one_nonzero) <case E_V8QImode>:
31 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
32
33 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
34
35 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
36
37 2019-08-14 Martin Sebor <msebor@redhat.com>
38
39 PR tree-optimization/91294
40 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
41 source length as exact.
42
43 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
44
45 * doc/extend.texi: Add "noinit" attribute documentation.
46 * doc/sourcebuild.texi: Add noinit effective target documentation.
47 * varasm.c (default_section_type_flags): Add support for "noinit"
48 section.
49 (default_elf_select_section): Add support for "noinit" attribute.
50 * config/msp430/msp430.c (msp430_attribute_table): Remove
51 "noinit" entry.
52
53 2019-08-14 Richard Biener <rguenther@suse.de>
54 Uroš Bizjak <ubizjak@gmail.com>
55
56 PR target/91154
57 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
58 mode arguments.
59 (scalar_chain::smode): New member.
60 (scalar_chain::vmode): Likewise.
61 (dimode_scalar_chain): Rename to...
62 (general_scalar_chain): ... this.
63 (general_scalar_chain::general_scalar_chain): Take mode arguments.
64 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
65 base with TImode and V1TImode.
66 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
67 (general_scalar_chain::vector_const_cost): Adjust for SImode
68 chains.
69 (general_scalar_chain::compute_convert_gain): Likewise. Add
70 {S,U}{MIN,MAX} support.
71 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
72 (general_scalar_chain::make_vector_copies): Likewise. Handle
73 non-DImode chains appropriately.
74 (general_scalar_chain::convert_reg): Likewise.
75 (general_scalar_chain::convert_op): Likewise.
76 (general_scalar_chain::convert_insn): Likewise. Add
77 fatal_insn_not_found if the result is not recognized.
78 (convertible_comparison_p): Pass in the scalar mode and use that.
79 (general_scalar_to_vector_candidate_p): Likewise. Rename from
80 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
81 (scalar_to_vector_candidate_p): Remove by inlining into single
82 caller.
83 (general_remove_non_convertible_regs): Rename from
84 dimode_remove_non_convertible_regs.
85 (remove_non_convertible_regs): Remove by inlining into single caller.
86 (convert_scalars_to_vector): Handle SImode and DImode chains
87 in addition to TImode chains.
88 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
89 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
90 (*<maxmin>di3_doubleword): Likewise.
91
92 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
93 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
94
95 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
96 (*cond_bic<mode>_any): New patterns.
97
98 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
99
100 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
101 take the equivalent mask, as well as a bit count.
102 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
103 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
104 (aarch64_sve_pred_and_operand): New predicates.
105 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
106 code attribute.
107 * config/aarch64/aarch64-sve.md
108 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
109 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
110
111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
112
113 * config/aarch64/aarch64-sve.md
114 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
115 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
116 New patterns.
117
118 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
119 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
120
121 * config/aarch64/aarch64-sve.md
122 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
123 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
124
125 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
126 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
127
128 * config/aarch64/aarch64-sve.md
129 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
130 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
131
132 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
133
134 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
135 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
136 New pattern.
137
138 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
139 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
140
141 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
142
143 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
144 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
145
146 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
147 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
148 (aarch64_print_operand): Add support for %I.
149 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
150 Bitcast floating-point constants to the corresponding integer constant.
151 (aarch64_float_const_representable_p): Handle vectors as well
152 as scalars.
153 (aarch64_expand_sve_vcond): Make sure that the operands are valid
154 for the new vcond_mask_<mode><vpred> expander.
155 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
156 test aarch64_float_const_representable_p.
157 (aarch64_sve_reg_or_dup_imm): New predicate.
158 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
159 gen_vcond_mask_<mode><vpred> instead of
160 gen_aarch64_sve_dup<mode>_const.
161 (vcond_mask_<mode><vpred>): Turn into a define_expand that
162 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
163 for operands 1 and 2 respectively. Force operand 2 into a
164 register if operand 1 is a register. Fold old define_insn...
165 (aarch64_sve_dup<mode>_const): ...and this define_insn...
166 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
167 floating-point constants that can be moved as integers. Add
168 alternatives for MOV /M and FMOV /M.
169 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
170 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
171 1 and 2 respectively.
172 * config/aarch64/constraints.md (Ufc): Handle vectors as well
173 as scalars.
174 (vss): New constraint.
175
176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
177
178 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
179 (aarch64_sve_float_maxmin_operand): New predicates.
180 * config/aarch64/constraints.md (vsB): New constraint.
181 (vsM): Fix typo.
182 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
183 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
184 UNSPEC_COND_FMINNM.
185 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
186 Use aarch64_sve_float_maxmin_operand for operand 2.
187 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
188 Add alternatives for the constant forms.
189
190 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
191
192 * config/aarch64/constraints.md (vsb): New constraint.
193 (vsm): Generalize description.
194 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
195 iterator.
196 (sve_imm_con): Handle smax, smin, umax and umin.
197 (sve_imm_prefix): New code attribute.
198 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
199 (aarch64_sve_vsb_operand): New predicates.
200 (aarch64_sve_mul_immediate): Rename to...
201 (aarch64_sve_vsm_immediate): ...this.
202 (aarch64_sve_mul_operand): Rename to...
203 (aarch64_sve_vsm_operand): ...this.
204 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
205 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
206 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
207 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
208 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
209 add movprfx support for the immediate alternatives.
210 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
211 of the above.
212 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
213 for operand 3.
214
215 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
216
217 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
218 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
219 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
220
221 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
222
223 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
224 (optab, sve_int_op): Handle them.
225 * config/aarch64/aarch64-sve.md: Expand comment.
226
227 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
228
229 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
230 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
231 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
232
233 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
234
235 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
236 (aarch64_expand_sve_const_pred_trn): New functions.
237 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
238 use the above functions when the parameter is true.
239 (aarch64_expand_sve_const_pred): Update call accordingly.
240 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
241 Rename to...
242 (@aarch64_sve_<perm_insn><mode>): ...this.
243
244 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
245
246 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
247 Declare.
248 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
249 (aarch64_sve_emit_int_cmp): New functions.
250 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
251 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
252 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
253 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
254 (UNSPEC_PRED_Z): New unspec.
255 (set_clobber_cc_nzc): Delete.
256 * config/aarch64/aarch64-sve.md: Add a block comment about
257 UNSPEC_PRED_Z.
258 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
259 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
260 the old pattern with that name. Use UNSPEC_PRED_Z instead of
261 UNSPEC_MERGE_PTRUE.
262 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
263 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
264 check for compatible predicates.
265 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
266 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
267 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
268 comparisons above.
269
270 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
271
272 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
273 * config/aarch64/aarch64-sve.md: Add a section describing it.
274 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
275 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
276 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
277 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
278 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
279 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
280 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
281 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
282 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
283 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
284 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
285 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
286 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
287 (aarch64_evpc_rev_local): Update accordingly.
288
289 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
290
291 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
292 iterators.
293 (SVE_BHSI, SVE_SDI): Tweak comment.
294 (SVE_HSDI): Likewise. Fix definition.
295 (SVE_SDF): New mode iterator.
296 (elem_bits): New mode attribute.
297 (SVE_COND_FCVT): New int iterator.
298 * config/aarch64/aarch64-sve.md
299 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
300 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
301 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
302 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
303 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
304 ...these new patterns.
305 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
306 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
307 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
308 Merge into...
309 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
310 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
311 ...these new patterns.
312 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
313 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
314 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
315 ...this new pattern.
316 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
317 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
318 ...this new pattern.
319 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
320
321 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
322
323 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
324 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
325 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
326 unspecs.
327 (optab, su): Handle them.
328 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
329 * config/aarch64/aarch64-sve.md
330 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
331 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
332 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
333 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
334 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
335 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
336 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
337 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
338 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
339 FIXUORS.
340 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
341 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
342 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
343 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
344 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
345 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
346 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
347 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
348 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
349 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
350 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
351 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
352 of UNSPEC_FLOAT_CONVERT.
353 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
354 aarch64_sve_extend<mode><Vwide>2.
355
356 2019-08-14 Richard Biener <rguenther@suse.de>
357
358 PR target/91154
359 * config/i386/i386-features.c
360 (dimode_scalar_chain::compute_convert_gain): Compute and dump
361 individual instruction gain. Fix reg-reg copy GRP cost. Use
362 ix86_cost->sse_op for vector instruction costs.
363
364 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
365
366 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
367 (cmp_op): Handle it.
368 (SVE_COND_FP_CMP): Rename to...
369 (SVE_COND_FP_CMP_I0): ...this.
370 (SVE_FP_CMP): Remove.
371 * config/aarch64/aarch64-sve.md
372 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
373 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
374 using unspecs to represent the comparison.
375 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
376 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
377 accordingly.
378 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
379 (aarch64_unspec_cond_code): Move after integer code. Handle
380 UNORDERED.
381 (aarch64_emit_sve_predicated_cond): Replace with...
382 (aarch64_emit_sve_fp_cond): ...this new function.
383 (aarch64_emit_sve_or_conds): Replace with...
384 (aarch64_emit_sve_or_fp_conds): ...this new function.
385 (aarch64_emit_sve_inverted_cond): Replace with...
386 (aarch64_emit_sve_invert_fp_cond): ...this new function.
387 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
388
389 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
390
391 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
392 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
393 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
394 SVE_HSD instead of SVE_SD.
395
396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
398
399 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
400 iterator.
401 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
402 attributes.
403 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
404 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
405 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
406 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
407 (*div<SVE_F:mode>3): Generalize to...
408 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
409
410 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
411 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
412
413 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
414 constants.
415 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
416 predicate.
417 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
418 Declare.
419 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
420 function.
421 * config/aarch64/aarch64-sve.md: Add a block comment about the
422 handling of predicated FP operations.
423 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
424 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
425 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
426 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
427 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
428 operand.
429 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
430 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
431 operand.
432 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
433 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
434 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
435 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
436 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
437 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
438 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
439 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
440 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
441 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
442 strictness operands. Use aarch64_sve_pred_dominates_p to check
443 whether the predicate on the conditional operation is suitable
444 for merging. Split patterns into the canonical equal-predicate form.
445 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
446 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
447
448 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
449 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
450
451 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
452 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
453 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
454 rtx codes.
455 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
456 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
457 unspecs.
458
459 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
460 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
461
462 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
463 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
464 actually has, rather than relying on REG_EQUAL notes.
465 Make the insn operand order match the SVE operand order.
466 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
467 the SVE operand order.
468
469 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
470
471 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
472 (aarch64_emit_set_immediate): Likewise.
473 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
474 (aarch64_pfalse_reg): Likewise.
475 (aarch64_convert_sve_data_to_pred): New function.
476 (aarch64_sve_move_pred_via_while): Take an optional target register
477 and the required register mode.
478 (aarch64_expand_sve_const_pred_1): New function.
479 (aarch64_expand_sve_const_pred): Likewise.
480 (aarch64_expand_mov_immediate): Build an all-true predicate
481 if the significant bits of the immediate are all true. Use
482 aarch64_expand_sve_const_pred for all compile-time predicate constants.
483 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
484 before register allocation.
485 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
486 a VNx16BI PTRUE when splitting the memory alternative.
487 (vec_duplicate<mode>): Update accordingly.
488 (*pred_cmp<cmp_op><mode>): Rename to...
489 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
490
491 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
492
493 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
494 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
495 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
496 (UNSPEC_PTEST): New unspec.
497 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
498 * config/aarch64/iterators.md (data_bytes): New mode attribute.
499 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
500 * config/aarch64/aarch64-sve.md: Add a new section describing the
501 handling of UNSPEC_PTEST.
502 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
503 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
504 (ptest_ptrue<mode>): Replace with...
505 (aarch64_ptest<mode>): ...this new pattern.
506 (cbranch<mode>4): Update after above changes.
507 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
508 UNSPEC_PTEST_PTRUE.
509 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
510 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
511 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
512
513 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
514
515 PR lto/91287
516 * builtins.c (builtin_with_linkage_p): New function.
517 * builtins.h (builtin_with_linkage_p): New function.
518 * symtab.c (write_symbol): Remove redundant assert.
519 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
520 Remove FIXME and use builtin_with_linkage_p.
521
522 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
523
524 PR middle-end/91421
525 * tree-core.h (function_decl::function_code): Change type to
526 unsigned int.
527 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
528 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
529 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
530 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
531 is BUILT_IN_NORMAL.
532 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
533 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
534 (fndecl_built_in_p): Change the type of the "name" argument to
535 unsigned int.
536 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
537 after check for DECL_BUILT_IN_CLASS.
538 * cgraphclones.c (build_function_decl_skip_args): Use
539 set_decl_built_in_function.
540 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
541 * ipa-split.c (split_function): Likewise.
542 * langhooks.c (add_builtin_function_common): Likewise.
543 * omp-simd-clone.c (simd_clone_create): Likewise.
544 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
545 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
546 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
547 DECL_FUNCTION_CODE.
548 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
549 instead of DECL_FUNCTION_CODE.
550 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
551 instead of DECL_FUNCTION_CODE.
552 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
553 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
554 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
555 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
556 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
557 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
558 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
559 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
560 (alpha_gimple_fold_builtin): Likewise.
561 * config/arc/arc.c (arc_expand_builtin): Likewise.
562 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
563 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
564 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
565 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
566 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
567 * config/frv/frv.c (frv_expand_builtin): Likewise.
568 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
569 (gcn_expand_builtin): Likewise.
570 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
571 (fold_builtin_cpu): Likewise.
572 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
573 * config/i386/i386.c (ix86_fold_builtin): Likewise.
574 (ix86_gimple_fold_builtin): Likewise.
575 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
576 (ia64_expand_builtin): Likewise.
577 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
578 * config/mips/mips.c (mips_expand_builtin): Likewise.
579 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
580 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
581 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
582 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
583 * config/pa/pa.c (pa_expand_builtin): Likewise.
584 * config/pru/pru.c (pru_expand_builtin): Likewise.
585 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
586 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
587 Likewise.
588 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
589 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
590 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
591 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
592 (rs6000_builtin_reciprocal): Likewise.
593 * config/rx/rx.c (rx_expand_builtin): Likewise.
594 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
595 * config/s390/s390.c (s390_expand_builtin): Likewise.
596 * config/sh/sh.c (sh_expand_builtin): Likewise.
597 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
598 (sparc_fold_builtin): Likewise.
599 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
600 * config/spu/spu.c (spu_expand_builtin): Likewise.
601 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
602 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
603 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
604 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
605 (xtensa_expand_builtin): Likewise.
606
607 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
608
609 PR middle-end/91421
610 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
611 before the DECL_FUNCTION_CODE.
612 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
613 to check for a BUILT_IN_ALLOCA call.
614 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
615 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
616 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
617 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
618 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
619 for BUILT_IN_NORMAL functions.
620 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
621 test for BUILT_IN_TM_ABORT.
622 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
623 to check for a BUILT_IN_STACK_RESTORE call.
624 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
625 * tree-ssa-threadedge.c
626 (record_temporary_equivalences_from_stmts_at_dest): Check for a
627 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
628 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
629 test for a BUILT_IN_NORMAL call instead of a negative test for
630 an internal function call.
631
632 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
633
634 * tree.h (build_vector_a_then_b): Declare.
635 * tree.c (build_vector_a_then_b): New function.
636 * fold-const-call.c (fold_while_ult): Likewise.
637 (fold_const_call): Use it to handle IFN_WHILE_ULT.
638 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
639 (aarch64_svpattern): New enum.
640 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
641 constants through aarch64_expand_mov_immediate.
642 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
643 than general_operand as the predicate for operand 1.
644 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
645 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
646 insn_type.
647 (simd_immediate_info::simd_immediate_info): New overload that
648 takes a scalar_int_mode and an svpattern.
649 (simd_immediate_info::u): Add a "pattern" field.
650 (svpattern_token): New function.
651 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
652 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
653 (aarch64_sve_move_pred_via_while): New functions.
654 (aarch64_expand_mov_immediate): Try using
655 aarch64_sve_move_pred_via_while for predicates that contain N ones
656 followed by M zeros but that do not correspond to a VLnnn pattern.
657 (aarch64_sve_pred_valid_immediate): New function.
658 (aarch64_simd_valid_immediate): Use it instead of dealing directly
659 with PTRUE and PFALSE.
660 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
661 forms.
662
663 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
664
665 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
666 flag.
667 (darwin_override_options): Likewise.
668 * config/darwin.h: Likewise.
669 * config/darwin.opt: Likewise.
670 * config/i386/i386.c (output_pic_addr_const): Likewise.
671 * config/rs6000/darwin.h: Likewise.
672 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
673 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
674 ... this TARGET_MACHO_SYMBOL_STUBS.
675 (FUNCTION_PROFILER):Likewise.
676 * config/i386/i386.h: Likewise.
677
678 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
679
680 * config/i386/i386-expand.c (ix86_expand_vector_extract)
681 <case E_V2SImode>: Use vec_extr path for
682 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
683 <case E_V8QImode>: Ditto.
684 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
685 Use SWI48 mode iterator. Use %k to output operand 0.
686 (*mmx_pextrw): New insn pattern.
687 (*mmx_pextrb): Ditto.
688 (*mmx_pextrb_zext): Ditto.
689
690 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
691
692 * target.def (libc_has_function, libc_has_fast_function): Improve
693 documentation strings.
694 * doc/tm.texi: Regenerate.
695
696 2019-08-13 Caroline Tice <cmtice@google.com>
697
698 PR other/91396
699 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
700 vtv_end.o or vtv_end_preinit.o files if !static.
701
702 2019-08-13 Olivier Hainque <hainque@adacore.com>
703
704 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
705
706 2019-08-13 Olivier Hainque <hainque@adacore.com>
707
708 * rtlanal.c (tablejump_casesi_pattern): New function, to
709 determine if a tablejump insn is a casesi dispatcher. Extracted
710 from patch_jump_insn.
711 * rtl.h (tablejump_casesi_pattern): Declare.
712 * cfgrtl.c (patch_jump_insn): Use it.
713 * dwarf2cfi.c (create_trace_edges): Use it.
714
715 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
716
717 PR target/81800
718 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
719 operand is larger than a long int.
720
721 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
722
723 * machmode.h (opt_mode::else_mode): New function.
724 (opt_mode::else_blk): Use it.
725 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
726 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
727 (aarch64_gen_stepped_int_parallel): Likewise.
728 (aarch64_stepped_int_parallel_p): Likewise.
729 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
730 argument.
731 * config/aarch64/aarch64.c
732 (aarch64_expand_sve_widened_duplicate): Delete.
733 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
734 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
735 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
736 argument. Use early returns in the !CONST_INT_P handling.
737 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
738 than handling some inline.
739 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
740 from...
741 (aarch64_simd_container_mode): ...here.
742 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
743 (aarch64_sve_ld1rq_operand_p): New functions.
744 * config/aarch64/predicates.md (descending_int_parallel)
745 (aarch64_sve_ld1rq_operand): New predicates.
746 * config/aarch64/constraints.md (UtQ): New constraint.
747 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
748 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
749 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
750 (@aarch64_sve_reinterpret<mode>): New expander.
751 (*aarch64_sve_reinterpret<mode>): New pattern.
752 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
753 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
754 (*sve_ld1rq<Vesize>): Replace with...
755 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
756
757 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
758
759 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
760 16:12.
761
762 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
763
764 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
765 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
766 (msp430_check_path_for_devices): New.
767 (parse_devices_csv_1): New.
768 (parse_devices_csv): New.
769 (msp430_extract_mcu_data): Try to find devices.csv and search for the
770 MCU data in devices.csv before using the hard-coded data.
771 Warn if devices.csv isn't found and the MCU wasn't found in the
772 hard-coded data either.
773 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
774 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
775 Search for devices.csv on -I and -L paths.
776 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
777 msp430_set_driver_var.
778 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
779 -mdevices-csv-loc=.
780 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
781 searched for devices.csv.
782 (mwarn-devices-csv): Document option.
783
784 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
785
786 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
787 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
788 Use a single Dn alternative instead of separate Dz and Dm
789 alternatives. Use aarch64_output_sve_move_immediate.
790 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
791 function.
792 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
793 for predicates too.
794 (aarch64_output_sve_mov_immediate): Handle predicate modes.
795 (aarch64_output_ptrue): Delete.
796
797 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
798
799 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
800 INDEX.
801 (simd_immediate_info::value, simd_immediate_info::step)
802 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
803 with...
804 (simd_immediate_info::u): ...this new union.
805 (simd_immediate_info::simd_immediate_info): Update accordingly.
806 (aarch64_output_simd_mov_immediate): Likewise.
807 (aarch64_output_sve_mov_immediate): Likewise.
808
809 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
810
811 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
812 extra_gcc_objs.
813 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
814 (msp430_select_cpu): New spec function.
815 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
816 MCU data.
817 * config/msp430/msp430-devices.c: New file.
818 * config/msp430/msp430-devices.h: New file.
819 * config/msp430/msp430.c: Remove msp430_mcu_data.
820 (msp430_option_override): Use msp430_extract_mcu_data to extract
821 MCU data.
822 (msp430_use_f5_series_hwmult): Likewise.
823 (use_32bit_hwmult): Likewise.
824 (msp430_no_hwmult): Likewise.
825 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
826 assembler.
827 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
828 and -mcpu option.
829 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
830 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
831 Remove hard-coded MCU multilib data.
832
833 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
834
835 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
836 based on the mode instead of testing properties of it.
837
838 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
839
840 * doc/md.texi: Document the x and y constraints for AArch64.
841 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
842 (FP_LO8_REGS): New reg_class.
843 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
844 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
845 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
846 * config/aarch64/predicates.md (aarch64_simd_register): Use
847 FP_REGNUM_P instead of checking the classes manually.
848 * config/aarch64/constraints.md (y): New constraint.
849
850 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
851
852 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
853 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
854 * config/aarch64/aarch64-simd.md
855 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
856 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
857 from the asm template.
858 * config/aarch64/aarch64-sve.md
859 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
860 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
861 from the asm template.
862 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
863 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
864 from the asm template.
865 * config/aarch64/aarch64-simd-builtins.def: Update comment.
866
867 2019-08-13 Martin Liska <mliska@suse.cz>
868
869 * value-prof.c (gimple_ic_transform): Add new line.
870 Print details with MSG_NOTE.
871
872 2019-08-13 Martin Liska <mliska@suse.cz>
873
874 * doc/invoke.texi: Document automatic detection of jobserver.
875 * lto-wrapper.c (run_gcc): Detect jobserver always.
876
877 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
878
879 * config/i386/i386-expand.c (ix86_expand_vector_set)
880 <case E_V2SImode>: Use vec_merge path for
881 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
882 <case E_V8QImode>: Ditto.
883 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
884 (*mmx_pinsrb): Ditto.
885
886 2019-08-12 Jakub Jelinek <jakub@redhat.com>
887
888 PR target/83250
889 PR target/91340
890 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
891 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
892 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
893 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
894 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
895
896 2019-08-12 Richard Biener <rguenther@suse.de>
897
898 PR lto/91375
899 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
900 flag_devirtualize.
901
902 2019-08-12 Richard Biener <rguenther@suse.de>
903
904 PR driver/91130
905 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
906 lang_mask option, always use CL_DRIVER.
907 (get_options_from_collect_gcc_options): Adjust.
908 (find_and_merge_options): Likewise.
909 (run_gcc): Likewise.
910
911 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
912
913 * ipa-predicate.c (add_condition): Restore inverted test.
914
915 2019-08-10 Jakub Jelinek <jakub@redhat.com>
916
917 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
918 (enum omp_clause_device_type_kind): New enum.
919 (struct tree_omp_clause): Add subcode.device_type_kind.
920 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
921 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
922 for device_type clause.
923 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
924 * tree-pretty-print.c (dump_omp_clause): Likewise.
925
926 PR target/91408
927 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
928 vector_operand.
929
930 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
931
932 * reload1.c (finish_spills): Do not check ira_conflicts_p when
933 handling spilled pseudos.
934
935 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
936
937 PR target/91386
938 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
939 to preserve the contents of the original insns.
940
941 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
942
943 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
944 (addsi3_compare_op2): Likewise.
945
946 2019-08-09 Martin Liska <mliska@suse.cz>
947
948 * alias.c (alias_ptr_types_compatible_p): Strengten
949 type comparison in LTO mode.
950
951 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
952
953 PR middle-end/90313
954 * tree-tailcall.c (find_tail_calls): Reject calls that might
955 read from an escaped RESULT_DECL.
956
957 2019-08-09 Martin Liska <mliska@suse.cz>
958
959 * doc/invoke.texi: Document the option value.
960 * lto-wrapper.c (run_gcc): Set auto_parallel
961 only with -flto=auto.
962
963 2019-08-09 Martin Liska <mliska@suse.cz>
964
965 * opts.c (common_handle_option): Error for an invalid argument
966 to -flto=.
967
968 2019-08-09 Martin Liska <mliska@suse.cz>
969
970 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
971 use dump_printf to report optimization.
972 (sem_variable::merge): Likwise.
973 (sem_item_optimizer::merge_classes): Use dump_printf to report
974 ICF hits.
975
976 2019-08-09 Martin Liska <mliska@suse.cz>
977
978 * value-prof.c (gimple_divmod_fixed_value_transform):
979 Use dump_printf_loc.
980 (gimple_mod_pow2_value_transform): Likewise.
981 (gimple_mod_subtract_transform): Likewise.
982 (init_node_map): Likewise.
983 (gimple_ic_transform): Likewise.
984 (gimple_stringops_transform): Likewise.
985
986 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
987
988 * doc/extend.texi: Add const qualifier to ld intrinsics.
989
990 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
991
992 * config/rs6000/dfp.md (D64_D128): Rename to ...
993 (DDTD): ... this, throughout.
994 (dfp_suffix): Rename to ...
995 (q): ... this, throughout.
996
997 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
998
999 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
1000 (dfp_suffix): Ditto.
1001 (adddd3, addtd3): Merge to ...
1002 (add<mode>3 for D64_D128): ... this.
1003 (subdd3, subtd3): Merge to ...
1004 (sub<mode>3 for D64_D128): ... this.
1005 (muldd3, multd3): Merge to ...
1006 (mul<mode>3 for D64_D128): ... this.
1007 (divdd3, divtd3): Merge to ...
1008 (div<mode>3 for D64_D128): ... this.
1009 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
1010 (*cmp<mode>_internal1 for D64_D128): ... this.
1011 (ftruncdd2, ftrunctd2): Merge to ...
1012 (ftrunc<mode>2 for D64_D128): ... this.
1013 (fixdddi2, fixtddi2): Merge to ...
1014 (fix<mode>di2 for D64_D128): ... this.
1015
1016 2019-08-08 Jim Wilson <jimw@sifive.com>
1017
1018 PR target/91229
1019 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
1020 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
1021 Pass into recursive call.
1022 (riscv_flatten_aggregate_argument): New arg. Pass to
1023 riscv_flatten_aggregate_field.
1024 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
1025 riscv_flatten_aggregate_argument twice, with false and true as last
1026 arg. Process result twice. Compare results and warn if different.
1027 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
1028
1029 2019-08-08 Martin Liska <mliska@suse.cz>
1030
1031 PR bootstrap/91352
1032 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
1033 * lto-wrapper.c (jobserver_active_p): Likewise.
1034
1035 2019-08-08 Martin Liska <mliska@suse.cz>
1036
1037 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
1038 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
1039 (create_version_clone_with_body): Likewise.
1040
1041 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1042
1043 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
1044 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
1045 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
1046 GOVD_EXPLICIT flags.
1047 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
1048 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
1049 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
1050 call install_var_field with mask 11 instead of 3.
1051 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
1052 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
1053
1054 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1055
1056 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
1057 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
1058
1059 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1060
1061 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
1062 MOVPRFX alternatives. Make the GPR alternatives more expensive
1063 than the FPR ones.
1064
1065 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1066
1067 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
1068 Disparage the GPR alternative relative to the FPR one.
1069 Fix handling of 8-bit and 16-bit FPR values.
1070
1071 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1072
1073 * config/aarch64/iterators.md (BITWISEV): Delete.
1074 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
1075 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
1076 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1077 UNSPEC_FMINNMV, UNSPEC_FMINV.
1078 (bit_reduc_op): Delete.
1079 (sve_int_op): New int attribute.
1080 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1081 UNSPEC_FMINNMV, UNSPEC_FMINV.
1082 * config/aarch64/aarch64-sve.md
1083 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1084 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1085 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
1086 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
1087 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
1088 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
1089 new patterns.
1090 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
1091 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
1092 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
1093 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
1094 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
1095 new patterns.
1096
1097 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1098
1099 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
1100 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
1101 (fms<mode>4, *fms<mode>4): Replace with...
1102 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1103 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
1104 Use unspecs instead of rtx codes.
1105 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
1106 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
1107
1108 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1109
1110 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
1111 int iterator.
1112 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
1113 * config/aarch64/aarch64-sve.md
1114 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
1115 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
1116 use a single unspec for the rhs.
1117 (*<su><maxmin><mode>3): Delete.
1118 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
1119
1120 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1121
1122 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
1123 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
1124 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
1125 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
1126 (optab, sve_fp_op): Handle them.
1127 (SVE_FP_UNARY): Delete.
1128 (optab): Remove sqrt entry.
1129 (sve_fp_op): Remove neg, abs and sqrt entries.
1130 (SVE_COND_FP_UNARY): New int iterator.
1131 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
1132 (*<frint_pattern><mode>2): Delete.
1133 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1134 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1135 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1136 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1137
1138 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1139
1140 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
1141
1142 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1143
1144 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
1145 (UNSPEC_COND_FADD): ...this.
1146 (UNSPEC_COND_SUB): Rename to...
1147 (UNSPEC_COND_FSUB): ...this.
1148 (UNSPEC_COND_MUL): Rename to...
1149 (UNSPEC_COND_FMUL): ...this.
1150 (UNSPEC_COND_DIV): Rename to...
1151 (UNSPEC_COND_FDIV): ...this.
1152 (UNSPEC_COND_MAX): Rename to...
1153 (UNSPEC_COND_FMAXNM): ...this.
1154 (UNSPEC_COND_MIN): Rename to...
1155 (UNSPEC_COND_FMINNM): ...this.
1156 (UNSPEC_COND_LT): Rename to...
1157 (UNSPEC_COND_FCMLT): ...this.
1158 (UNSPEC_COND_LE): Rename to...
1159 (UNSPEC_COND_FCMLE): ...this.
1160 (UNSPEC_COND_EQ): Rename to...
1161 (UNSPEC_COND_FCMEQ): ...this.
1162 (UNSPEC_COND_NE): Rename to...
1163 (UNSPEC_COND_FCMNE): ...this.
1164 (UNSPEC_COND_GE): Rename to...
1165 (UNSPEC_COND_FCMGE): ...this.
1166 (UNSPEC_COND_GT): Rename to...
1167 (UNSPEC_COND_FCMGT): ...this.
1168 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
1169 (sve_fp_op_rev): Update accordingly.
1170 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
1171
1172 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1173
1174 * config/aarch64/aarch64-sve.md: Reorganize contents and add
1175 banner comments.
1176 * config/aarch64/check-sve-md.awk: New file.
1177 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
1178 (insn-conditions.md): Depend on it.
1179
1180 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
1181
1182 PR target/91385
1183 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
1184 (*negsi2_cmpz_zext): Ditto.
1185
1186 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1187
1188 * config/aarch64/iterators.md (commutative): Remove.
1189
1190 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
1191
1192 PR driver/91130
1193 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
1194 processing COLLECT_GCC_OPTIONS.
1195 (run_gcc): Likewise.
1196
1197 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1198
1199 PR tree-optimization/91109
1200 * lra-remat.c (update_scratch_ops): Remove assignment of the
1201 hard register.
1202
1203 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1204
1205 * data-streamer.h (streamer_write_poly_uint64): Declare.
1206 (streamer_read_poly_uint64): Likewise.
1207 * data-streamer-in.c (streamer_read_poly_uint64): New function.
1208 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
1209 * ipa-predicate.h (condition::size): Turn into a poly_int64.
1210 (add_condition): Take a poly_int64 size.
1211 * ipa-predicate.c (add_condition): Likewise.
1212 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
1213 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
1214 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
1215 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
1216 condition::size as a poly_int64.
1217 (unmodified_parm_1): Take a poly_int64 size pointer.
1218 (unmodified_parm): Likewise.
1219 (unmodified_parm_or_parm_agg_item): Likewise.
1220 (set_cond_stmt_execution_predicate): Update accordingly.
1221 (set_switch_stmt_execution_predicate): Likewise.
1222 (will_be_nonconstant_expr_predicate): Likewise.
1223 (will_be_nonconstant_predicate): Likewise.
1224 (inline_read_section): Stream condition::size as a poly_int.
1225 (ipa_fn_summary_write): Likewise.
1226
1227 2019-08-07 Martin Liska <mliska@suse.cz>
1228
1229 * fold-const.c (twoval_comparison_p): Replace int
1230 with bool as a return type.
1231 (simple_operand_p): Likewise.
1232 (operand_equal_p): Replace int with bool as a return type.
1233 * fold-const.h (operand_equal_p): Likewise.
1234
1235 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1236
1237 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
1238 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
1239 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1240 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
1241 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
1242 * tree-pretty-print.c (dump_omp_clause): Likewise.
1243 * tree-nested.c (convert_nonlocal_omp_clauses,
1244 convert_local_omp_clauses): Likewise.
1245 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1246 Likewise.
1247 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
1248 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
1249 clause with array or reference to array types, no matter what type
1250 except for reference it has.
1251
1252 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
1253
1254 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
1255
1256 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
1257
1258 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
1259 (arch_canonicalize): Support rv32g and rv64g and fix error
1260 handling.
1261
1262 2019-08-06 Martin Liska <mliska@suse.cz>
1263
1264 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
1265 and DECL_IS_OPERATOR_DELETE_P.
1266
1267 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1268
1269 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
1270 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
1271 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
1272 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
1273 (gimplify_omp_for): Don't do C++ random access iterator clause
1274 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
1275 don't predetermine the artificial iterator in case of C++ random
1276 access iterators as lastprivate, but private. For OMP_LOOP, force
1277 bind expr around simd body and force for_pre_body before the
1278 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
1279 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
1280 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
1281 diff var of C++ random access iterators. Handle
1282 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
1283 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
1284 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
1285 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
1286 * omp-low.c (lower_rec_input_clauses): For
1287 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
1288 variables instead of default constructing them.
1289 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
1290 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
1291 is_taskloop_ctx check from the assert to the guarding condition.
1292
1293 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
1294
1295 * config/riscv/multilib-generator: (canonical_order): New.
1296 (arch_canonicalize): Dito.
1297 Apply arch_canonicalize for alts.
1298
1299 2019-08-05 Martin Sebor <msebor@redhat.com>
1300
1301 * doc/extend.texi (Common Variable Attributes): Document alias
1302 attribute.
1303
1304 2019-08-05 Marek Polacek <polacek@redhat.com>
1305
1306 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1307 * doc/invoke.texi: Document -Wcomma-subscript.
1308
1309 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1310
1311 * tree-core.h (tree_function_decl): Make function_code an
1312 independent field. Group the remaining bitfields into bytes
1313 and move decl_type so that it contines to be at a byte boundary.
1314 Leave 12 bits for future expansion.
1315
1316 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1317
1318 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
1319 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
1320 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
1321 IFN_MASK_STORE.
1322
1323 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1324
1325 * gimple.h (gimple_move_vops): Declare.
1326 * gimple.c (gimple_move_vops): New function
1327 * gimple-fold.c (replace_call_with_call_and_fold)
1328 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
1329 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
1330 (gimple_fold_call): Use it.
1331 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
1332 * tree-call-cdce.c (use_internal_fn): Likewise.
1333 * tree-if-conv.c (predicate_load_or_store): Likewise.
1334 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1335 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1336 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
1337 (update_call_from_tree): Likewise.
1338 * tree-vect-stmts.c (vectorizable_load): Likewise.
1339 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
1340
1341 2019-08-05 Martin Liska <mliska@suse.cz>
1342
1343 PR c++/91334
1344 * tree-ssa-dce.c (propagate_necessity): Handle new operators
1345 with not arguments.
1346 (eliminate_unnecessary_stmts): Likewise.
1347
1348 2019-08-05 Richard Biener <rguenther@suse.de>
1349
1350 PR middle-end/91169
1351 * fold-const.c (get_array_ctor_element_at_index): Create
1352 offset_ints according to the sign of the index type and treat
1353 that as signed if it is obviously so.
1354
1355 2019-08-05 Jakub Jelinek <jakub@redhat.com>
1356
1357 PR target/91341
1358 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
1359 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
1360 _mm256_storeu2_m128i): New function.
1361
1362 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
1363
1364 * config/riscv/riscv.c (riscv_promote_function_mode): New.
1365 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
1366
1367 2019-08-05 Alan Modra <amodra@gmail.com>
1368
1369 PR target/91349
1370 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
1371 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
1372
1373 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1374
1375 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
1376 bug that was fixed in Tcl 8.6.1.
1377
1378 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
1379
1380 * config/rs6000/future.md: New file.
1381 * config/rs6000/rs6000.md: Include future.md.
1382 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
1383
1384 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1385
1386 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
1387 check to use targetm.slow_unaligned_access instead.
1388
1389 * function.c (assign_param_data_one): Remove unused data members.
1390
1391 2019-08-02 Steve Ellcey <sellcey@marvell.com>
1392
1393 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
1394 build_distinct_type_copy.
1395 (simd_clone_adjust_argument_types): Ditto.
1396 (simd_clone_adjust): Call build_distinct_type_copy here.
1397 (expand_simd_clones): Ditto.
1398
1399 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1400
1401 PR target/91201
1402 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
1403
1404 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
1405
1406 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
1407 from 'const void *'.
1408 (sort_locs_in_loop_postorder_cmp): Likewise.
1409
1410 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
1411
1412 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
1413 (hot-bb-count-ws-permille): Likewise.
1414 (hot-bb-frequency-fraction): Likewise.
1415 (unlikely-bb-count-fraction): Likewise.
1416 * params.def (hot-bb-count-fraction): Rework description.
1417 (hot-bb-count-ws-permille): Likewise.
1418 (hot-bb-frequency-fraction): Likewise.
1419 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
1420 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
1421
1422 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1423
1424 PR target/91323
1425 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
1426 Return false.
1427
1428 2019-08-02 Richard Biener <rguenther@suse.de>
1429
1430 * vec.h (vec::sort): Add gcc_qsort_r support.
1431 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
1432 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
1433 to gcc_qsort_r style callback.
1434 (sort_locs_in_loop_postorder_cmp): Likewise.
1435 (analyze_memory_references): Use gcc_sort_r interfaces.
1436 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
1437
1438 2019-08-02 Martin Liska <mliska@suse.cz>
1439
1440 PR lto/91313
1441 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
1442 to detect working job server.
1443 (driver::detect_jobserver): Test whether jobserver
1444 is active from GCC driver. That will prevent situation where
1445 GCC is invoked from a LD plugin and the linker already uses
1446 file descriptors suggested by make. That leads to a wrong
1447 detection.
1448 * gcc.h (driver): Add detect_jobserver.
1449 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
1450 not scanning for --jobserver-auth prefix.
1451
1452 2019-08-02 Jakub Jelinek <jakub@redhat.com>
1453
1454 PR tree-optimization/91201
1455 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
1456 V16QImode extraction without sse4.1 try to use V4SImode lowpart
1457 extraction.
1458
1459 2019-08-01 Martin Sebor <msebor@redhat.com>
1460
1461 PR c++/90947
1462 * tree.c (type_initializer_zero_p): Define.
1463 * tree.h (type_initializer_zero_p): New function.
1464
1465 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1466
1467 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
1468
1469 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1470
1471 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
1472 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
1473 * predict.c (maybe_hot_count_p): Likewise.
1474 (maybe_hot_bb_p): Tweak comment.
1475 (maybe_hot_edge_p): Likewise.
1476 (probably_never_executed): Likewise. Minor tweak.
1477 (probably_never_executed_bb_p): Likewise.
1478 (unlikely_executed_edge_p): Likewise.
1479 (probably_never_executed_edge_p): Likewise.
1480 (optimize_function_for_size_p): Likewise.
1481 (optimize_function_for_speed_p): Likewise.
1482 (function_optimization_type): Likewise.
1483 (optimize_bb_for_size_p): Likewise.
1484 (optimize_bb_for_speed_p): Likewise.
1485 (bb_optimization_type): Likewise.
1486 (optimize_edge_for_size_p): Likewise.
1487 (optimize_edge_for_speed_p): Likewise.
1488 (optimize_insn_for_size_p): Likewise.
1489 (optimize_insn_for_speed_p): Likewise.
1490 (optimize_loop_for_size_p): Likewise.
1491 (optimize_loop_for_speed_p): Likewise.
1492 (optimize_loop_nest_for_speed_p): Likewise.
1493 (optimize_loop_nest_for_size_p): Likewise.
1494 (predictable_edge_p): Likewise.
1495 (handle_missing_profiles): Minor tweak.
1496
1497 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
1498
1499 * config/rs6000/predicates.md (pcrel_external_address): Update
1500 comment.
1501
1502 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1503
1504 PR target/85693
1505 * config/i386/mmx.md (usadv8qi): New expander.
1506
1507 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
1508
1509 PR c++/90590
1510 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
1511 with reserved names that are in a system header.
1512
1513 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1514
1515 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
1516 (*vec_extractv2si_0_zext_sse4): New insn pattern.
1517 (*vec_extractv2si_0_zext): Ditto.
1518 (*vec_extractv2si_1): Add (rm,x) alternative.
1519 (*vec_extractv2si_1_zext): New insn pattern.
1520 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
1521 insn constraint.
1522
1523 2019-08-01 Richard Biener <rguenther@suse.de>
1524
1525 * domwalk.c (bb_postorder): Remove static variable.
1526 (cmp_bb_postorder): Adjust.
1527 (sort_bbs_postorder): Adjust and use gcc_sort_r.
1528 (dom_walker::walk): Adjust.
1529
1530 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
1531
1532 * sort.cc (sort_r_ctx): New struct.
1533 (reorder23): Make templated on context type.
1534 (reorder45): Ditto.
1535 (cmp1): Ditto. Adjust signature.
1536 (netsort): Ditto.
1537 (mergesort): Ditto.
1538 [CHECKING_P] (cmp2to3): New static function. Use it...
1539 (gcc_qsort) [CHECKING_P]: ...here.
1540 (gcc_sort_r): New function.
1541 * system.h (sort_r_cmp_fn): New function typedef.
1542 (qsort_chk): Adjust signature.
1543 (gcc_sort_r): Declare.
1544 * vec.c (qsort_chk_error): Adjust.
1545 (qsort_chk): Adjust.
1546
1547 2019-08-01 Richard Biener <rguenther@suse.de>
1548
1549 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
1550 (compute_antic): Localize it here.
1551
1552 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
1553
1554 * common/config/riscv/riscv-common.c: Check -march string ends
1555 with null.
1556
1557 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
1558
1559 * ipa-devirt.c (type_warning_cmp): Make static.
1560 (decl_warning_cmp): Ditto.
1561
1562 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
1563
1564 PR target/91050
1565 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
1566 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1567 use of deleted rs6000_dejagnu_cpu_index variable.
1568 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
1569 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1570 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
1571 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
1572 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
1573 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1574
1575 2019-07-31 Richard Biener <rguenther@suse.de>
1576
1577 PR tree-optimization/91280
1578 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1579 Decompose MEM_REF manually for offset handling.
1580
1581 2019-07-31 Richard Biener <rguenther@suse.de>
1582
1583 PR tree-optimization/91293
1584 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
1585 of reduction stmts.
1586
1587 2019-07-31 Matt Thomas <matt@3am-software.com>
1588 Nick Hudson <nick@nthcliff.demon.co.uk>
1589 Matthew Green <mrg@eterna.com.au>
1590 Maya Rashish <coypu@sdf.org>
1591
1592 * config.gcc (hppa*-*-netbsd*): New target.
1593 * config/pa/pa-netbsd.h: New file.
1594 * config/pa/pa32-netbsd.h: New file.
1595
1596 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1597
1598 PR tree-optimization/91201
1599 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
1600
1601 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
1602
1603 * config/gcn/gcn-valu.md
1604 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
1605 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
1606 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1607 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
1608 struct ilist. Add nops for delayeduse insns.
1609 * config/gcn/gcn.md (delayeduse): New attribute.
1610 (*movbi): Remove s_waitcnt from stores.
1611 (*mov<mode>_insn): Likewise.
1612 (*movti_insn): Likewise. Add delayeduse attribute.
1613 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
1614 (atomic_store<mode>): Remove or adjust s_waitcnt.
1615
1616 2019-07-31 Richard Biener <rguenther@suse.de>
1617
1618 * vr-values.h (vr_values::swap_vr_value): New.
1619 (vr_values::free_value_range): likewise.
1620 * vr-values.c (vr_values::swap_vr_value): Implement.
1621 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
1622 Do not return a range or take a var.
1623 (evrp_range_analyzer::stack): Change back to recording a non-const
1624 value_range *.
1625 * gimple-ssa-evrp-analyze.c
1626 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
1627 value-range.
1628 (evrp_range_analyzer::pop_to_marker): Adjust.
1629 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
1630 (evrp_range_analyzer::pop_value_range): Likewise. Free the
1631 no longer needed value-range.
1632
1633 2019-07-31 Martin Liska <mliska@suse.cz>
1634
1635 * tree-ssa-dce.c (propagate_necessity): Delete operator can
1636 have size and (or) alignment as 2nd and later arguments.
1637 Mark all of them as necessary.
1638
1639 2019-07-31 Richard Biener <rguenther@suse.de>
1640
1641 PR tree-optimization/91178
1642 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1643 Use tail-recursion.
1644
1645 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1646
1647 PR tree-optimization/91201
1648 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
1649 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
1650 TARGET_AVX512F.
1651 (reduc_plus_scal_<mode>): Improve formatting by introducing
1652 a temporary.
1653
1654 2019-07-31 Sudakshina Das <sudi.das@arm.com>
1655
1656 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1657 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
1658 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
1659 (aarch64_init_tme_builtins): New.
1660 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
1661 (aarch64_expand_builtin_tme): New.
1662 (aarch64_expand_builtin): Handle TME builtins.
1663 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1664 __ARM_FEATURE_TME when enabled.
1665 * config/aarch64/aarch64-option-extensions.def: Add "tme".
1666 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
1667 (TARGET_TME): New.
1668 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
1669 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
1670 UNSPECV_TCANCEL.
1671 (tstart, ttest, tcommit, tcancel): New instructions.
1672 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
1673 (__tcancel, __ttest): New.
1674 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
1675 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
1676 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
1677 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
1678 * config/arm/types.md: Add new tme type attr.
1679 * doc/invoke.texi: Document "tme".
1680
1681 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
1682
1683 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
1684 warn_unused_result attribute.
1685 (cmse_check_address_range): Add warn_unused_result attribute.
1686
1687 2019-07-31 Richard Biener <rguenther@suse.de>
1688
1689 PR tree-optimization/91257
1690 * tree-vrp.c (union_ranges): Unify equality and less tests
1691 by using compare_values. Re-order cheap tests first.
1692
1693 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1694
1695 PR middle-end/91301
1696 * gimplify.c (gimplify_omp_for): If for class iterator on
1697 distribute parallel for there is no data sharing clause
1698 on inner_for_stmt, look for private clause on combined
1699 parallel too and if found, move it to inner_for_stmt.
1700
1701 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
1702
1703 * lra-int.h (lra_operand_data): Remove early_clobber field.
1704 (lra_insn_reg): Likewise.
1705 * lra.c (debug_operand_data): Update accordingly.
1706 (setup_operand_alternative): Likewise.
1707 (new_insn_reg): Likewise. Remove early_clobber parameter.
1708 (collect_non_operand_hard_regs): Update call accordingly.
1709 Don't assign to lra_insn_reg::early_clobber.
1710 (add_regs_to_insn_regno_info): Remove early_clobber parameter
1711 and update calls to new_insn_reg.
1712 (lra_update_insn_regno_info): Update calls accordingly.
1713 * lra-constraints.c (update_and_check_small_class_inputs): Take the
1714 alternative number as a parameter and test whether the operand
1715 is earlyclobbered in that particular alternative.
1716 (process_alt_operands): Update call accordingly. Use per-alternative
1717 checks for earyclobber here too.
1718 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
1719 against zero for IRA_UNKNOWN_ALT.
1720
1721 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1722
1723 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
1724
1725 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
1726
1727 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
1728 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1729
1730 2019-07-30 Martin Liska <mliska@suse.cz>
1731
1732 PR ipa/89330
1733 * cgraph.c (cgraph_edge::make_direct): Use
1734 edge->indirect_unknown_callee as edge->resolve_speculation can
1735 deallocate edge which is this pointer.
1736
1737 2019-07-30 Richard Biener <rguenther@suse.de>
1738
1739 PR tree-optimization/91257
1740 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
1741
1742 2019-07-30 Martin Liska <mliska@suse.cz>
1743
1744 * doc/invoke.texi: Document new behavior.
1745 * lto-wrapper.c (cpuset_popcount): New function
1746 is a copy of libgomp/config/linux/proc.c.
1747 (init_num_threads): Likewise.
1748 (run_gcc): Automatically detect core count for -flto.
1749 (jobserver_active_p): New function.
1750
1751 2019-07-30 Richard Biener <rguenther@suse.de>
1752
1753 PR tree-optimization/91257
1754 * bitmap.h (bitmap_ior_into_and_free): Declare.
1755 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
1756 whether to add the unliked element to the freelist.
1757 (bitmap_list_insert_element_after): Add defaulted param for
1758 an already allocated element.
1759 (bitmap_ior_into_and_free): New function.
1760 * tree-ssa-structalias.c (condense_visit): Reduce the
1761 ponts-to and edge bitmaps of the SCC members in a
1762 logarithmic fashion rather than all to one.
1763
1764 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
1765
1766 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
1767 parameter. When nonnull, make sure that the addition or subtraction
1768 has the same condition.
1769 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
1770 for CFN_COND_MUL too.
1771
1772 2019-07-30 Richard Biener <rguenther@suse.de>
1773
1774 PR tree-optimization/91291
1775 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
1776 constant values.
1777
1778 2019-07-30 Jakub Jelinek <jakub@redhat.com>
1779
1780 PR middle-end/91216
1781 * omp-low.c (global_nonaddressable_vars): New variable.
1782 (use_pointer_for_field): For global decls, if they are non-addressable,
1783 remember it in the global_nonaddressable_vars bitmap, if they are
1784 addressable and in the global_nonaddressable_vars bitmap, ignore their
1785 TREE_ADDRESSABLE bit.
1786 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
1787 vars in global_nonaddressable_vars bitmap.
1788 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
1789
1790 PR target/91150
1791 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
1792 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
1793 comparison to unsigned HOST_WIDE_INT before shifting it left.
1794
1795 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1796
1797 * config/i386/i386.md (movstrict<mode>): Use register_operand
1798 predicate for operand 0. Add expander condition. Assert that
1799 operand 0 is a SUBREG RTX.
1800 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
1801 Update operand constraints and insn condition.
1802 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
1803 (zero_extendqihi2_and): Do not call gen_movstrictqi.
1804 (*setcc_qi_slp): Use register_operand predicate for operand 0.
1805 Update operand 0 constraints.
1806 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
1807
1808 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1809
1810 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
1811 when -m{code,data}-region are used without -mlarge.
1812 * config/msp430/msp430.c (msp430_option_override): Error when a
1813 non-default code or data region is used without -mlarge.
1814 (msp430_section_attr): Emit a warning and do not add upper/lower/either
1815 attributes when they are used without -mlarge.
1816
1817 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1818
1819 PR target/70320
1820 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
1821
1822 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1823
1824 PR middle-end/91242
1825 * wide-int.h (generic_wide_int::sext_elt): New function.
1826 * inchash.h (hash::add_wide_int): Use it instead of elt.
1827
1828 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1829
1830 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
1831 CODE_FOR_arm_##.
1832 * config/arm/arm.md (<crc_variant>): Rename to...
1833 (arm_<crc_variant>): ... This.
1834 (<cdp>): Rename to...
1835 (arm_<cdp>): ... This.
1836 (<ldc>): Rename to...
1837 (arm_<ldc>): ... This.
1838 (<stc>): Rename to...
1839 (arm_<stc>): ... This.
1840 (<mcr>): Rename to...
1841 (arm_<mcr>): ... This.
1842 (<mrc>): Rename to...
1843 (arm_<mrc>): ... This.
1844 (<mcrr>): Rename to...
1845 (arm_<mcrr>): ... This.
1846 (<mrrc>): Rename to...
1847 (arm_<mrrc>): ... This.
1848
1849 2019-07-29 Richard Biener <rguenther@suse.de>
1850
1851 PR tree-optimization/91257
1852 * tree-ssa-sccvn.h (struct vn_avail): New.
1853 (struct vn_ssa_aux): Add avail member.
1854 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
1855 member, add m_avail_freelist one.
1856 (rpo_elim::~rpo_elim): Remove.
1857 (rpo_elim::eliminate_avail): Adjust to new avail tracking
1858 data structure.
1859 (rpo_elim::eliminate_push_avail): Likewise.
1860 (do_unwind): Likewise.
1861 (do_rpo_vn): Likewise.
1862
1863 2019-07-29 Richard Biener <rguenther@suse.de>
1864
1865 PR tree-optimization/91257
1866 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
1867 most cases, instead call compare_values which handles the
1868 symbolic ranges we handle specially.
1869 (compare_values_warnv): Do not call operand_less_p but open-code
1870 the effective fold calls. Avoid converting so much.
1871
1872 2019-07-29 Martin Liska <mliska@suse.cz>
1873
1874 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
1875 remove LHS of operator new call. It's handled latter.
1876
1877 2019-07-29 Richard Biener <rguenther@suse.de>
1878
1879 PR tree-optimization/91267
1880 * vr-values.c (vr_values::update_value_range): Add early return
1881 for effectively VARYING lattice entry.
1882
1883 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1884
1885 PR debug/86638
1886 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
1887 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
1888 necessary if keep_all_vdefs_p is true.
1889 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
1890 that keep_all_vdefs_p is false.
1891 (mark_all_reaching_defs_necessary): Likewise.
1892 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
1893
1894 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1895
1896 * common.opt (Og): Change the initial value of flag_dse to 0.
1897 * opts.c (default_options_table): Move OPT_ftree_dse from
1898 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
1899 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
1900 entry before the OPT_ftree_sra entry.
1901 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
1902 of flags disabled by Og.
1903
1904 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1905
1906 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
1907 variables for -Og.
1908
1909 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1910
1911 * doc/sourcebuild.texi (check-function-bodies): Document.
1912
1913 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1914
1915 * simplify-rtx.c (simplify_const_unary_operation): Fold a
1916 VEC_DUPLICATE of a fixed-length vector even if the result
1917 is variable-length. Likewise fold a duplicate of a
1918 variable-length vector if the variable-length vector is
1919 itself a duplicate of a fixed-length sequence.
1920 (test_vector_ops_duplicate): Test more cases.
1921
1922 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1923
1924 * vector-builder.h (vector_builder): Add a shape template parameter.
1925 (vector_builder::new_unary_operation): New function, generalizing
1926 the old tree_vector_builder function.
1927 (vector_builder::new_binary_operation): Likewise.
1928 (vector_builder::binary_encoded_nelts): Likewise.
1929 * int-vector-builder.h (int_vector_builder): Update template
1930 parameters to vector_builder.
1931 (int_vector_builder::shape_nelts): New function.
1932 * rtx-vector-builder.h (rtx_vector_builder): Update template
1933 parameters to vector_builder.
1934 (rtx_vector_builder::shape_nelts): New function.
1935 (rtx_vector_builder::nelts_of): Likewise.
1936 (rtx_vector_builder::npatterns_of): Likewise.
1937 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
1938 * tree-vector-builder.h (tree_vector_builder): Update template
1939 parameters to vector_builder.
1940 (tree_vector_builder::shape_nelts): New function.
1941 (tree_vector_builder::nelts_of): Likewise.
1942 (tree_vector_builder::npatterns_of): Likewise.
1943 (tree_vector_builder::nelts_per_pattern_of): Likewise.
1944 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
1945 (tree_vector_builder::new_binary_operation): Delete.
1946 (tree_vector_builder::binary_encoded_nelts): Likewise.
1947 * simplify-rtx.c: Include rtx-vector-builder.h.
1948 (distributes_over_addition_p): New function.
1949 (simplify_const_unary_operation)
1950 (simplify_const_binary_operation): Generalize handling of vector
1951 constants to include variable-length vectors.
1952 (test_vector_ops_series): Add more tests.
1953
1954 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
1955
1956 PR lto/91222
1957 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
1958 than INDENTIFIER_POINTER.
1959
1960 2019-07-28 Martin Liska <mliska@suse.cz>
1961
1962 PR ipa/89330
1963 * cgraph.c (symbol_table::create_edge): Always allocate
1964 a cgraph_edge.
1965 (symbol_table::free_edge): Store summary_id to
1966 edge_released_summary_ids if != -1;
1967 * cgraph.h (NEXT_FREE_NODE): Remove.
1968 (SET_NEXT_FREE_NODE): Likewise.
1969 (NEXT_FREE_EDGE): Likewise.
1970 (symbol_table::release_symbol): Store summary_id to
1971 cgraph_released_summary_ids if != -1;
1972 (symbol_table::allocate_cgraph_symbol): Always allocate
1973 a cgraph_node.
1974
1975 2019-07-28 Alan Modra <amodra@gmail.com>
1976
1977 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
1978 gen_sibcall.
1979
1980 2019-07-28 Alan Modra <amodra@gmail.com>
1981
1982 PR target/91135
1983 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
1984 define.
1985 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
1986 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
1987 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
1988
1989 2019-07-28 Alan Modra <amodra@gmail.com>
1990
1991 PR target/91050
1992 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
1993 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
1994 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
1995 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
1996 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
1997 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
1998 in asm_default spec.
1999 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
2000 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
2001
2002 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
2003
2004 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
2005
2006 2019-07-26 Tamar Christina <tamar.christina@arm.com>
2007
2008 PR target/89517
2009 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
2010 * config/aarch64/aarch64-option-extensions.def: Add new comments
2011 and restore easier to read options.
2012
2013 2019-07-26 Tamar Christina <tamar.christina@arm.com>
2014
2015 * convert.c (convert_to_real_1): Move part of conversion code...
2016 * match.pd: ...To here.
2017
2018 2019-07-26 Martin Jambor <mjambor@suse.cz>
2019
2020 PR ipa/89330
2021 * ipa-inline-transform.c (check_speculations_1): New function.
2022 (push_all_edges_in_set_to_vec): Likewise.
2023 (check_speculations): Use check_speculations_1, new parameter
2024 new_edges.
2025 (inline_call): Pass new_edges to check_speculations.
2026 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
2027 NULL.
2028 (speculation_useful_p): Early return true if edge is inlined, remove
2029 later checks for inline_failed.
2030
2031 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
2032
2033 PR rtl-optimization/91223
2034 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
2035 matching with INOUT operand.
2036
2037 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
2038
2039 * stmt.c (expand_case): Try to narrow the index type if it's larger
2040 than a word. Tidy up.
2041
2042 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
2043
2044 * cif-code.def (NEVER_CALL): New code.
2045 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
2046 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
2047
2048 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
2049
2050 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
2051 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2052
2053 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2054
2055 * ipa-devirt.c (add_type_duplicate): Fix return value.
2056
2057 2019-07-25 Richard Biener <rguenther@suse.de>
2058
2059 * tree-vrp.c (extract_range_from_multiplicative_op): Add
2060 type parameter and use it instead of guessing expression
2061 type from the first operand.
2062 (extract_range_from_binary_expr): Pass expr_type down.
2063
2064 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2065
2066 * config/arm/arm.md (SATrev): Change to code attribute.
2067 (*satsi_<SAT:code>): Adjust for the above.
2068 (*satsi_<SAT:code>_shift): Likewise.
2069
2070 2019-07-25 Richard Biener <rguenther@suse.de>
2071
2072 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
2073 Make value_range * temporary const.
2074 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
2075 Likewise.
2076 (evrp_range_analyzer::record_ranges_from_): Likewise.
2077 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
2078 deal with having recorded a const one.
2079 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
2080 Return a const value_range *.
2081 (evrp_range_analyzer::pop_value_range): Likewise.
2082 (evrp_range_analyzer::stack): Record const value_range *s.
2083 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2084 Adjust.
2085 * gimple-ssa-sprintf.c (get_int_range): Likewise.
2086 (format_integer): Likewise.
2087 (sprintf_dom_walker::handle_gimple_call): Likewise.
2088 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
2089 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
2090 (vrp_prop::get_value_range): Adjust.
2091 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
2092 modifying the lattice in-place.
2093 (vrp_prop::visit_stmt): Likewise.
2094 * vr-values.c (vr_values::get_lattice_entry): New private method.
2095 (vr_values::get_value_range): Wrap it and return a const
2096 value_range *.
2097 (vr_values::set_def_to_varying): New.
2098 (vr_values::set_defs_to_varying): Use it.
2099 (vr_values::update_value_range): Likewise.
2100 (vr_values::vrp_stmt_computes_nonzero): Adjust.
2101 (values::op_with_constant_singleton_va): Likewise.
2102 (vr_values::extract_range_for_var_from_co): Likewise.
2103 (vr_values::extract_range_from_ssa_name): Likewise.
2104 (vr_values::extract_range_from_cond_expr): Likewise.
2105 (vr_values::extract_range_basic): Likewise.
2106 (compare_ranges): Take const value_range *, adjust.
2107 (compare_range_with_value): Likewise.
2108 (vrp_valueize): Adjust.
2109 (vrp_valueize_1): Likewise.
2110 (vr_values::get_vr_for_comparison): Return a const value_range *.
2111 (vr_values::compare_name_with_value): Adjust.
2112 (vr_values::compare_names): Likewise.
2113 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2114 Likewise.
2115 (vr_values::vrp_evaluate_conditional): Likewise.
2116 (find_case_label_ranges): Take a const value_range *.
2117 (vr_values::vrp_visit_switch_stmt): Adjust.
2118 (vr_values::extract_range_from_phi_node): Likewise.
2119 (vr_values::simplify_div_or_mod_using_ran): Likewise.
2120 (vr_values::simplify_abs_using_ranges): Likewise.
2121 (test_for_singularity): Take a const value_range *.
2122 (range_fits_type_p): Likewise.
2123 (vr_values::simplify_cond_using_ranges_1): Adjust.
2124 (vr_values::simplify_cond_using_ranges_2): Likewise.
2125 (vr_values::simplify_switch_using_ranges): Likewise.
2126 (vr_values::simplify_float_conversion_usi): Likewise.
2127 (vr_values::two_valued_val_range_p): Likewise.
2128 * vr-values.h (vr_values::get_value_range): Return a const
2129 value_range *.
2130 (vr_values::set_def_to_varying): New.
2131 (vr_values::get_lattice_entry): New private method.
2132 (vr_values::get_vr_for_comparison): Return a const value_range *.
2133
2134 2019-07-25 Martin Liska <mliska@suse.cz>
2135 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
2136
2137 PR c++/23383
2138 * common.opt: Add -fallocation-dce
2139 * gimple.c (gimple_call_operator_delete_p): New.
2140 * gimple.h (gimple_call_operator_delete_p): Likewise.
2141 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
2142 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
2143 DECL_IS_OPERATOR_DELETE_P.
2144 (mark_all_reaching_defs_necessary_1): Likewise.
2145 (propagate_necessity): Likewise.
2146 (eliminate_unnecessary_stmts): Handle
2147 gimple_call_operator_delete_p.
2148 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
2149 Add packing of OPERATOR_DELETE.
2150 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
2151 Similarly here.
2152 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
2153 (DECL_SET_IS_OPERATOR_DELETE): New.
2154 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
2155
2156 2019-07-25 Martin Liska <mliska@suse.cz>
2157
2158 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
2159 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
2160 * coverage.c (coverage_begin_function): Likewise.
2161 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
2162 * gimple.c (gimple_call_nonnull_result_p): Likewise.
2163 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
2164 (sem_item::hash_referenced_symbol_properties): Likewise.
2165 * lto-streamer-out.c (hash_tree): Likewise.
2166 * predict.c (expr_expected_value_1): Likewise.
2167 * tree-inline.c (expand_call_inline): Likewise.
2168 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2169 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2170 * tree-core.h (enum function_decl_type): New enum.
2171 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
2172 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
2173 (set_function_decl_type): Likewise.
2174 (DECL_IS_OPERATOR_NEW_P): New.
2175 (DECL_SET_IS_OPERATOR_NEW): Likewise.
2176 (DECL_LAMBDA_FUNCTION): Likewise.
2177 (DECL_LAMBDA_FUNCTION_P): Likewise.
2178 (DECL_IS_OPERATOR_NEW): Remove.
2179 (DECL_SET_LAMBDA_FUNCTION): Likewise.
2180
2181 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
2182
2183 * ipa-profile.c (get_most_common_single_value): Use
2184 get_nth_most_common_value.
2185 * profile.c (sort_hist_value): New function.
2186 (compute_value_histograms): Call sort_hist_value to sort the
2187 values after loading from disk.
2188 * value-prof.c (get_most_common_single_value): Rename to ...
2189 get_nth_most_common_value. Add input params n, return
2190 the n_th value and count.
2191 (gimple_divmod_fixed_value_transform): Use
2192 get_nth_most_common_value.
2193 (gimple_ic_transform): Likewise.
2194 (gimple_stringops_transform): Likewise.
2195 * value-prof.h (get_most_common_single_value): Add input params
2196 n, default to 0.
2197
2198 2019-07-25 Richard Biener <rguenther@suse.de>
2199
2200 PR tree-optimization/91236
2201 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2202 size of CONSTRUCTOR write. Fix buffer size we pass to
2203 native_encode_expr.
2204
2205 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2206
2207 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
2208 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
2209 r273773.
2210
2211 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2212
2213 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
2214 explicitly disabled with --disable-initfini-array.
2215
2216 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2217
2218 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
2219 if-exists.
2220
2221 2019-07-24 Martin Sebor <msebor@redhat.com>
2222
2223 PR tree-optimization/91183
2224 PR tree-optimization/86688
2225 * builtins.c (compute_objsize): Handle MEM_REF.
2226 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
2227 (get_min_string_length): Remove.
2228 (count_nonzero_bytes): New function.
2229 (handle_char_store): Rename...
2230 (handle_store): to this. Handle multibyte stores via integer types.
2231 (strlen_check_and_optimize_stmt): Adjust conditional and the called
2232 function name.
2233
2234 2019-07-24 Martin Sebor <msebor@redhat.com>
2235
2236 PR driver/80545
2237 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
2238 (diagnostic_report_diagnostic): Same.
2239 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
2240 (diagnostic_context::lang_mask): New data member.
2241 * ipa-pure-const.c (suggest_attribute): Use
2242 lang_hooks.option_lang_mask ().
2243 * opts-common.c (option_enabled): Handle new argument.
2244 (get_option_state): Pass an additional argument.
2245 * opts.c (print_filtered_help): Print supported languages for
2246 unsupported options. Adjust printing of current state.
2247 * opts.h (option_enabled): Add argument.
2248 * toplev.c (print_switch_values): Use lang_mask.
2249 (general_init): Set global_dc->lang_mask.
2250
2251 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2252
2253 PR bootstrap/87030
2254 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
2255
2256 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
2257
2258 * cgraphunit.c (symbol_table::compile): Start and stop
2259 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
2260 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
2261
2262 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
2263
2264 * gimplify.c (flag_instrument_functions_exclude_p): Include
2265 namespace/class information in the printable name.
2266 * opts.c (add_comma_separated_to_vector): Add NUL terminator
2267 to tokens entered into the vector.
2268
2269 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
2270
2271 * tree-nested.c (build_simple_mem_ref_notrap): New function.
2272 (get_static_chain): Call it instead of build_simple_mem_ref.
2273 (get_frame_field): Likewise.
2274 (get_nonlocal_debug_decl): Likewise.
2275 (convert_nonlocal_reference_op): Likewise.
2276
2277 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
2278
2279 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
2280 declaration.
2281 (arc_compute_frame_size): Millicode is disabled when compiling
2282 ISR.
2283 (arc_return_address_register): Likewise.
2284 (arc_compute_function_type): Likewise.
2285 (arc_compute_frame_size): Likewise.
2286 (secondary_reload_info): Likewise.
2287 (arc_get_unalign): Likewise.
2288 (arc_can_use_return_insn): Declare.
2289 * config/arc/arc.c (AUX_LP_START): Define
2290 (AUX_LP_END): Likewise.
2291 (arc_frame_info): Update gmask member to 64-bit datum.
2292 (GMASK_LEN): Update.
2293 (arc_compute_function_type): Make it static, move it forward.
2294 (arc_must_save_register): Update, consider the extra regs.
2295 (arc_compute_millicode_save_restore_regs): Update to use the 64
2296 bit gmask.
2297 (arc_compute_frame_size): Likewise.
2298 (arc_enter_leave_p): Likewise.
2299 (arc_save_callee_saves): Likewise.
2300 (arc_restore_callee_saves): Likewise.
2301 (arc_save_callee_enter): Likewise.
2302 (arc_restore_callee_leave): Likewise.
2303 (arc_save_callee_milli): Likewise.
2304 (arc_restore_callee_milli): Likewise.
2305 (arc_expand_prologue): Add new interrupt handling.
2306 (arc_return_address_register): Make it static, move it forward.
2307 (arc_expand_epilogue): Add new interrupt handling.
2308 (arc_get_unalign): Delete.
2309 (arc_epilogue_uses): Make sure we do not remove the extra
2310 saved/restored registers when interrupt.
2311 (arc_can_use_return_insn): New function.
2312 (push_reg): Likewise.
2313 (pop_reg): Likewise.
2314 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
2315 procedures.
2316 (arc_restore_callee_saves): Likewise, but restoring.
2317 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
2318 (R33_REG): Likewise.
2319 (R34_REG): Likewise.
2320 (R35_REG): Likewise.
2321 (R36_REG): Likewise.
2322 (R37_REG): Likewise.
2323 (R38_REG): Likewise.
2324 (R39_REG): Likewise.
2325 (R45_REG): Likewise.
2326 (R46_REG): Likewise.
2327 (R47_REG): Likewise.
2328 (R48_REG): Likewise.
2329 (R49_REG): Likewise.
2330 (R50_REG): Likewise.
2331 (R51_REG): Likewise.
2332 (R52_REG): Likewise.
2333 (R53_REG): Likewise.
2334 (R54_REG): Likewise.
2335 (R55_REG): Likewise.
2336 (R56_REG): Likewise.
2337 (R58_REG): Likewise.
2338 (type): Add rtie attribute.
2339 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
2340 (movsi_insn): Accept moves to lp_count.
2341 (rtie): Update pattern.
2342 (simple_return): Simplify it, don't use this pattern as a return
2343 from an interrupt.
2344 (arc600_rtie): New pattern.
2345 (p_return_i): Clean up.
2346 (return): Likewise.
2347 * config/arc/builtins.def (rtie): Only available for non ARC6xx
2348 family CPUs.
2349 * config/arc/predicates.md (move_src_operand): Consider lp_count
2350 as a register.
2351
2352 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
2353
2354 * config/s390/predicates.md (addv_const_operand): New predicate.
2355 * config/s390/s390-modes.def (CCO): New condition code mode.
2356 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
2357 (s390_branch_condition_mask): Likewise.
2358 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
2359 ("mulv<mode>4"): New expanders.
2360 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
2361 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
2362 pattern definitions.
2363
2364 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2365
2366 PR middle-end/91166
2367 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
2368 (define_predicates): Add entry for uniform_vector_p.
2369 (vec_same_elem_p): New match pattern.
2370
2371 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2372
2373 PR bootstrap/87030
2374 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
2375 * config/i386/darwin32-biarch.h .. to here.
2376 * config/i386/darwin64-biarch.h: Adjust comments.
2377 * config/rs6000/darwin32-biarch.h: Likewise.
2378 * config/rs6000/darwin64-biarch.h: Likewise.
2379 * config.gcc: Missed commit from r273746
2380 (*-*-darwin*): Don't include CPU t-darwin here.
2381 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2382 an error message if i686-darwin configuration is attempted for
2383 Darwin >= 18.
2384
2385 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
2386
2387 PR bootstrap/87030
2388 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
2389 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2390 an error message if i686-darwin configuration is attempted for
2391 Darwin >= 18.
2392 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
2393 (powerpc-*-darwin*): Use biarch files where needed.
2394 (powerpc64-*-darwin*): Likewise.
2395 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
2396 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2397 arch case.
2398 * config/i386/darwin32-biarch.h: New.
2399 * config/i386/darwin64.h: Rename.
2400 * config/i386/darwin64-biarch.h: To this.
2401 * config/i386/t-darwin: Rename.
2402 * config/i386/t-darwin32-biarch: To this.
2403 * config/i386/t-darwin64: Rename.
2404 * config/i386/t-darwin64-biarch: To this.
2405 * config/rs6000/darwin32-biarch.h: New.
2406 * config/rs6000/darwin64.h: Rename.
2407 * config/rs6000/darwin64-biarch.h: To this.
2408 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2409 arch case.
2410 * config/rs6000/t-darwin8: Rename.
2411 * config/rs6000/t-darwin32-biarch: To this.
2412 * config/rs6000/t-darwin64 Rename.
2413 * config/rs6000/t-darwin64-biarch: To this.
2414
2415 2019-07-23 Martin Sebor <msebor@redhat.com>
2416
2417 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
2418
2419 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2420
2421 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
2422 (rh): New alias for it.
2423
2424 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2425
2426 * gdbhooks.py: Pass replace=True to
2427 gdb.printing.register_pretty_printer.
2428
2429 2019-07-23 Richard Biener <rguenther@suse.de>
2430
2431 PR debug/91231
2432 * lto-streamer-in.c (input_function): Drop inline-entry markers
2433 that ended up with an unknown location block.
2434
2435 2019-07-23 Richard Biener <rguenther@suse.de>
2436
2437 PR tree-optimization/83518
2438 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
2439 init from a constant even when partial defs are already recorded.
2440
2441 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2442
2443 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
2444 * config/i386/znver1.md: Enable patterns for znver2 and add store
2445 variants which use extra AGU unit.
2446
2447 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2448
2449 * config/i386/i386-options.c (ix86_option_override_internal): Default
2450 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
2451 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
2452 for ZNVER2.
2453
2454 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2455
2456 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
2457 (znver2_costs): Update 256 bit SSE costs and multiplication.
2458
2459 2019-07-23 Jan Beulich <jbeulich@suse.com>
2460
2461 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
2462 Require only AVX512F.
2463 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
2464 alternative expanding to vpternlog.
2465
2466 2019-07-23 Martin Liska <mliska@suse.cz>
2467
2468 * dwarf2out.c (gen_producer_string): Canonize -flto=N
2469 to -flto in dwarf producer string.
2470
2471 2019-07-23 Richard Biener <rguenther@suse.de>
2472
2473 * tree-cfg.c (label_for_bb): Remove global var.
2474 (main_block_label): Take label_for_bb as argument.
2475 (cleanup_dead_labels_eh): Likewise, adjust.
2476 (cleanup_dead_labels): Adjust.
2477
2478 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2479
2480 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
2481 Configurations): Add documentation for __builtin_mtfsf.
2482
2483 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
2484
2485 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
2486 * config/riscv/riscv.c (riscv_constant_alignment): Use
2487 riscv_align_data_type.
2488 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
2489 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2490 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2491 * config/riscv/riscv.opt (malign-data): New.
2492 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
2493
2494 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
2495
2496 * cgraph.c (dump_graphviz): New function.
2497 * cgraph.h (dump_graphviz): New function.
2498 * symtab.c (dump_graphviz): New function.
2499
2500 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
2501
2502 * config/aarch64/aarch64-simd.md
2503 (*aarch64_simd_sra<mode>): New.
2504 * config/aarch64/iterators.md
2505 (SHIFTRT): New iterator.
2506 (sra_op): New attribute.
2507
2508 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2509
2510 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
2511 callee-saved regs R4->R10 in an interrupt function that calls another
2512 function.
2513
2514 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2515
2516 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
2517 (_mm_blendv_epi8): New.
2518
2519 2019-07-22 Richard Biener <rguenther@suse.de>
2520
2521 PR tree-optimization/91221
2522 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
2523 restrict partial-def handling of empty constructors and
2524 memset to refs with known offset.
2525
2526 2019-07-22 Jan Beulich <jbeulich@suse.com>
2527
2528 * config/i386/sse.md (ternlogsuffix): New.
2529 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
2530 AVX512F is in use.
2531 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
2532
2533 2019-07-22 Martin Liska <mliska@suse.cz>
2534
2535 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
2536 comment.
2537 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
2538
2539 2019-07-22 Martin Liska <mliska@suse.cz>
2540
2541 * lto-section-in.c (lto_get_section_data):
2542 Use new function get_compression.
2543 * lto-streamer-out.c (produce_lto_section): Use
2544 set_compression to encode compression algorithm.
2545 * lto-streamer.h (struct lto_section): Do not
2546 use bitfields in the format.
2547
2548 2019-07-22 Martin Liska <mliska@suse.cz>
2549
2550 PR driver/91172
2551 * opts-common.c (decode_cmdline_option): Decode
2552 argument of -Werror and check it for a wrong language.
2553 * opts-global.c (complain_wrong_lang): Remove such case.
2554
2555 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
2556
2557 * config/arc/arc.c (prepare_move_operands): Always use an
2558 intermediate register when storing a TLS symbols.
2559
2560 2019-07-22 Stafford Horne <shorne@gmail.com>
2561
2562 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
2563 force_reg.
2564
2565 2019-07-22 Stafford Horne <shorne@gmail.com>
2566
2567 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
2568 and munordered-float validations.
2569 * config/or1k/constraints.md (d): New register constraint.
2570 * config/or1k/predicates.md (fp_comparison_operator): New.
2571 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
2572 operands.
2573 (or1k_expand_compare): Normalize unordered comparisons.
2574 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
2575 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
2576 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
2577 * config/or1k/or1k.md (type): Add fpu.
2578 (fpu): New instruction reservation.
2579 (F, f, fr, fi, FI, FOP, fop): New.
2580 (<fop><F:mode>3): New ALU instruction definition.
2581 (float<fi><F:mode>2): New conversion instruction definition.
2582 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
2583 (fpcmpcc): New code iterator.
2584 (*sf_fp_insn): New instruction definition.
2585 (cstore<F:mode>4): New expand definition.
2586 (cbranch<F:mode>4): New expand definition.
2587 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
2588 munordered-float): New options.
2589 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
2590 munordered-float.
2591
2592 2019-07-22 Stafford Horne <shorne@gmail.com>
2593
2594 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
2595 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
2596 documenation to be more clear.
2597 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
2598 more clear.
2599 * config/or1k/or1k.opt (mrori): New option.
2600 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
2601 msfimm, mshftimm): Rewrite documentation to be more clear.
2602 * config/or1k/or1k.md (insn_support): Add ror and rori.
2603 (enabled): Add conditions for ror and rori.
2604 (rotrsi3): Replace condition for shftimm with ror and rori.
2605
2606 2019-07-22 Stafford Horne <shorne@gmail.com>
2607
2608 PR target/90363
2609 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
2610 (extend<mode>si2): Update predicate.
2611 * config/or1k/predicates.md (volatile_mem_operand): New.
2612 (reg_or_mem_operand): New.
2613
2614 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
2615
2616 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
2617 * config/rs6000/rs6000-call.c: ... to here.
2618
2619 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2620
2621 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
2622 memory.
2623
2624 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2625
2626 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
2627
2628 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2629
2630 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
2631
2632 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2633
2634 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
2635 (any_memory_operand): New predicate.
2636 (reg_or_mem_operand): Use it.
2637
2638 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2639
2640 PR target/91204
2641 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
2642
2643 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
2644
2645 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
2646 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
2647
2648 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2649
2650 * tree.def (OMP_LOOP): New tree code.
2651 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
2652 (enum omp_clause_bind_kind): New enum.
2653 (struct tree_omp_clause): Add subcode.bind_kind.
2654 * tree.h (OMP_LOOP_CHECK): Rename to ...
2655 (OMP_LOOPING_CHECK): ... this.
2656 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
2657 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
2658 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
2659 (OMP_CLAUSE_BIND_KIND): Define.
2660 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2661 bind clause entries.
2662 (walk_tree_1): Handle OMP_CLAUSE_BIND.
2663 * tree-pretty-print.c (dump_omp_clause): Likewise.
2664 (dump_generic_node): Handle OMP_LOOP.
2665 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
2666 (in_omp_construct): New variable.
2667 (is_gimple_stmt): Handle OMP_LOOP.
2668 (gimplify_scan_omp_clauses): For lastprivate don't set
2669 check_non_private if code == OMP_LOOP. For reduction clause
2670 on OMP_LOOP combined with parallel or teams propagate as shared
2671 on the combined construct. Handle OMP_CLAUSE_BIND.
2672 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
2673 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
2674 for constructs from a loop construct to gimplify_scan_omp_clauses.
2675 Don't predetermine iterator linear on OMP_SIMD from loop construct.
2676 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
2677 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
2678 to match the implicit ORT_TARGET construct around whole body.
2679 Temporarily clear in_omp_construct when processing body.
2680 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
2681 etc. temporarily set in_omp_construct when processing body.
2682 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
2683 * omp-low.c (struct omp_context): Add loop_p.
2684 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
2685 in that the original var might be private.
2686 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
2687 (check_omp_nesting_restrictions): Adjust nesting restrictions for
2688 addition of loop construct.
2689 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
2690
2691 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
2692 lastprivate non-addressable iterator of a collapse(1) simd.
2693
2694 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
2695
2696 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
2697 as in rs6000.c.
2698
2699 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
2700
2701 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
2702 refer to default conditions. Warn for the 'y' spec which is ignored
2703 by current linkers.
2704
2705 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
2706
2707 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
2708 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2709 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2710 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2711 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2712 init_cumulative_args, rs6000_promote_function_mode,
2713 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2714 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2715 rs6000_function_arg_boundary, rs6000_parm_offset,
2716 rs6000_parm_start, rs6000_arg_size,
2717 rs6000_darwin64_record_arg_advance_flush,
2718 rs6000_darwin64_record_arg_advance_recurse,
2719 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2720 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2721 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2722 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2723 rs6000_finish_function_arg, rs6000_function_arg,
2724 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2725 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2726 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2727 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2728 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2729 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2730 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2731 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2732 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2733 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2734 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2735 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2736 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2737 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2738 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2739 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2740 get_element_number, altivec_expand_vec_set_builtin,
2741 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2742 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2743 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2744 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2745 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2746 rs6000_expand_builtin, rs6000_vector_type,
2747 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2748 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2749 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
2750 to rs6000-call.c.
2751 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
2752 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2753 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2754 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2755 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2756 init_cumulative_args, rs6000_promote_function_mode,
2757 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2758 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2759 rs6000_function_arg_boundary, rs6000_parm_offset,
2760 rs6000_parm_start, rs6000_arg_size,
2761 rs6000_darwin64_record_arg_advance_flush,
2762 rs6000_darwin64_record_arg_advance_recurse,
2763 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2764 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2765 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2766 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2767 rs6000_finish_function_arg, rs6000_function_arg,
2768 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2769 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2770 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2771 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2772 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2773 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2774 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2775 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2776 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2777 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2778 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2779 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2780 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2781 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2782 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2783 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2784 get_element_number, altivec_expand_vec_set_builtin,
2785 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2786 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2787 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2788 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2789 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2790 rs6000_expand_builtin, rs6000_vector_type,
2791 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2792 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2793 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
2794 to here from rs6000.c.
2795 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
2796 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
2797 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
2798 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
2799 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
2800 rs6000_return_in_memory, rs6000_return_in_msb,
2801 rs6000_pass_by_reference, setup_incoming_varargs,
2802 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
2803 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
2804 rs6000_function_arg_padding, rs6000_function_arg,
2805 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
2806 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
2807 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
2808 rs6000_passes_long_double, rs6000_passes_vector,
2809 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
2810 altivec_builtin_mask_for_load) Add declarations.
2811 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
2812 * config/config.gcc: Add new source file rs6000-call.c to garbage
2813 collector and extra_objs.
2814
2815 2019-07-19 Jeff Law <law@redhat.com>
2816
2817 PR tree-optimization/86061
2818 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2819 strncpy. Drop some trivial dead code.
2820 (maybe_trim_memstar_call): Handle strncpy.
2821
2822 2019-07-19 Richard Biener <rguenther@suse.de>
2823
2824 PR tree-optimization/91211
2825 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2826 memset encoding size.
2827
2828 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
2829
2830 PR target/91204
2831 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
2832
2833 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
2834
2835 PR ipa/91194
2836 * ipa-inline.c (recursive_inlining): Fix limits check.
2837
2838 2019-07-19 Richard Biener <rguenther@suse.de>
2839
2840 PR tree-optimization/91200
2841 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
2842 no PHI nodes in middle-bb.
2843
2844 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
2845
2846 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
2847 to +sve-bitperm.
2848 * config/aarch64/aarch64-option-extensions.def: Likewise.
2849
2850 2019-07-19 Jakub Jelinek <jakub@redhat.com>
2851
2852 PR middle-end/91190
2853 * function.c (insert_temp_slot_address): Store into the hash table
2854 a copy of address to avoid RTL sharing issues.
2855
2856 2019-07-19 Richard Biener <rguenther@suse.de>
2857
2858 PR tree-optimization/91207
2859 Revert
2860 2019-07-17 Richard Biener <rguenther@suse.de>
2861
2862 PR tree-optimization/91178
2863 * tree-vect-stmts.c (get_group_load_store_type): For SLP
2864 loads with a gap larger than the vector size always use
2865 VMAT_STRIDED_SLP.
2866 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
2867 avoid loading vectors that are only contained in the gap
2868 and thus are not needed.
2869
2870 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2871
2872 * config/i386/i386.md (*addqi_2_slp): Remove.
2873 (*<code>qi_2_slp): Ditto.
2874
2875 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
2876
2877 * config/rs6000/predicates.md (prefixed_mem_operand): Call
2878 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
2879 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
2880 Rename function from rs6000_prefixed_address.
2881 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2882 TARGET_HAS_TOC.
2883 (TARGET_TOC): Likewise.
2884 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2885 rs6000.h.
2886 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2887 TARGET_HAS_TOC.
2888 (TARGET_TOC): Likewise.
2889 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2890 rs6000.h.
2891 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2892 TARGET_HAS_TOC.
2893 (TARGET_TOC): Likewise.
2894 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2895 check to require -mcmodel=medium for pc-relative addressing.
2896 (create_TOC_reference): Add assertion for TARGET_TOC.
2897 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
2898 TARGET_NO_TOC.
2899 (rs6000_emit_move): Likewise.
2900 (TOC_alias_set): Rename TOC alias set static variable from 'set'
2901 to 'TOC_alias_set'.
2902 (get_TOC_alias_set): Likewise.
2903 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
2904 TARGET_NO_TOC.
2905 (rs6000_can_eliminate): Likewise.
2906 (rs6000_prefixed_address_mode_p): Rename function from
2907 rs6000_prefixed_address.
2908 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
2909 TARGET_HAS_TOC and not pc-relative.
2910 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
2911 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2912 TARGET_HAS_TOC.
2913 (TARGET_TOC): Likewise.
2914 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2915 rs6000.h.
2916
2917 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2918
2919 PR target/91188
2920 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
2921 for operand 0. Do not use (match_dup) to match operand 1 with
2922 operand 0. Add check in insn constraint that either input operand
2923 matches operand 0. Use SWI12 mode iterator to also handle
2924 HImode operands.
2925 (*and<mode>_1_slp): Ditto.
2926 (*<code>qi_1_slp): Ditto.
2927 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
2928 Do not use (match_dup) to match operand 1 with operand 0. Add
2929 check in insn constraint that operand 1 matches operand 0.
2930 Use SWI12 mode iterator to also handle HImode operands.
2931 (*ashl<mode>3_1_slp): Ditto.
2932 (*<shift_insn><mode>3_1_slp): Ditto.
2933 (*<rotate_insn><mode>3_1_slp): Ditto.
2934
2935 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2936
2937 * config/arm/arm-builtins.c
2938 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
2939 (arm_expand_unop_builtin): Likewise.
2940 * config/arm/crypto.md
2941 (crypto_sha1h): Convert from define_insn to define_expand.
2942 (crypto_<crypto_pattern>): Likewise.
2943 (crypto_sha1h_lb): New define_insn.
2944 (crypto_<crypto_pattern>_lb): Likewise.
2945
2946 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2947
2948 PR target/90317
2949 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
2950 (vsha1cq_u32): Likewise.
2951 (vsha1pq_u32): Likewise.
2952 (vsha1mq_u32): Likewise.
2953 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
2954 vec select.
2955 (crypto_sha1c): Correct vec select.
2956 (crypto_sha1m): Likewise.
2957 (crypto_sha1p): Likewise.
2958
2959 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
2960
2961 * config/arm/predicates.md (arm_borrow_operation): New predicate.
2962 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
2963 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
2964 (subdi_zesidi_zesidi): Likewise.
2965 (negdi2_compare, negdi2_insn): Likewise.
2966 (negdi_extensidi): Likewise.
2967 (negdi_zero_extendsidi): Likewise.
2968 (arm_cmpdi_insn): Likewise.
2969 (subsi3_carryin): Use arm_borrow_operation.
2970 (subsi3_carryin_const): Likewise.
2971 (subsi3_carryin_const0): Likewise.
2972 (subsi3_carryin_compare): Likewise.
2973 (subsi3_carryin_compare_const): Likewise.
2974 (subsi3_carryin_compare_const0): Likewise.
2975 (subsi3_carryin_shift): Likewise.
2976 (rsbsi3_carryin_shift): Likewise.
2977 (negsi2_carryin_compare): Likewise.
2978
2979 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
2980
2981 PR tree-optimization/91137
2982 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
2983 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
2984 Init, use and fini the above new field.
2985 (determine_base_object_1): New function.
2986 (determine_base_object): Reimplement using walk_tree.
2987
2988 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
2989
2990 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
2991 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
2992 CLEANUP_FORCE_FAST_DCE is set.
2993 * ifcvt.c (rest_of_handle_if_conversion): Pass
2994 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
2995 if-conversion succeeded.
2996
2997 2019-07-18 Richard Biener <rguenther@suse.de>
2998
2999 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
3000 branches to make code less indented.
3001
3002 2019-07-17 Alexandre Oliva <oliva@adacore.com>
3003
3004 PR middle-end/81824
3005 * attribs.c (decls_mismatched_attributes): Simplify the logic
3006 that avoids duplicates and false positives.
3007
3008 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
3009
3010 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
3011 data into data section when generating PIC code.
3012 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
3013 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
3014 generating code for SOM targets earlier than HP-UX 11. Otherwise,
3015 return 2 for SOM and 0 for other targets.
3016
3017 2019-07-17 Jeff Law <law@redhat.com>
3018
3019 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
3020 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
3021 avoid unexpected switch statement fallthru.
3022
3023 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3024
3025 * config/i386/i386.md (*add<dwi>3_doubleword):
3026 Remove redundant constraints.
3027 (*add<mode>_1): Ditto.
3028 (*addhi_1): Ditto.
3029 (*addqi_1): Ditto.
3030 (*addqi_1_slp): Ditto.
3031 (*add<mode>_2): Ditto.
3032 (*addv<mode>4): Ditto.
3033 (*sub<dwi>3_doubleword): Ditto.
3034 (*sub<mode>_1): Ditto.
3035 (*subqi_1_slp): Ditto.
3036 (*sub<mode>_2): Ditto.
3037 (*subv<mode>4): Ditto.
3038 (*sub<mode>_3): Ditto.
3039 (@add<mode>3_carry): Ditto.
3040 (@sub<mode>3_carry): Ditto.
3041 (*add<mode>3_cc_overflow_1): Ditto.
3042 (*add<mode>3_zext_cc_overflow_2): Ditto.
3043 (*anddi_1): Ditto.
3044 (*and<mode>_1): Ditto.
3045 (*andqi_1): Ditto.
3046 (*andqi_1_slp): Ditto.
3047 (*anddi_2): Ditto.
3048 (*andqi_2_maybe_si): Ditto.
3049 (*and<mode>_2): Ditto.
3050 (*andqi_2_slp): Ditto.
3051 (*<code><mode>_1): Ditto.
3052 (*<code>qi_1): Ditto.
3053 (*<code>qi_1_slp): Ditto.
3054 (*<code><mode>_2): Ditto.
3055 (*<code>qi_2_slp): Ditto.
3056
3057 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
3058
3059 * alias.c (record_component_aliases): Do not simplify pointed-to
3060 types of ODR types.
3061
3062 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3063
3064 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
3065 partial reg stall on alternative 2.
3066
3067 2019-07-17 Richard Biener <rguenther@suse.de>
3068
3069 PR tree-optimization/91178
3070 * tree-ssa.c (release_defs_bitset): Iterate from higher to
3071 lower SSA names to avoid quadratic behavior in the common case.
3072 * tree-data-ref.c (split_constant_offset): Add limit argument
3073 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3074 (split_constant_offset_1): Add limit argument and use it to
3075 limit SSA def walking. Optimize the common plus/minus case.
3076
3077 2019-07-17 Richard Biener <rguenther@suse.de>
3078
3079 PR tree-optimization/91178
3080 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3081 loads with a gap larger than the vector size always use
3082 VMAT_STRIDED_SLP.
3083 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3084 avoid loading vectors that are only contained in the gap
3085 and thus are not needed.
3086
3087 2019-07-17 Richard Biener <rguenther@suse.de>
3088
3089 PR tree-optimization/91180
3090 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
3091 computation for memset partial defs.
3092
3093 2019-07-17 Jakub Jelinek <jakub@redhat.com>
3094
3095 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
3096 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
3097 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
3098 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
3099 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
3100 * omp-grid.c (grid_process_grid_body,
3101 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
3102 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
3103 == GF_OMP_FOR_KIND_SIMD.
3104 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
3105 check_omp_nesting_restrictions, scan_omp_1_stmt,
3106 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
3107 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
3108 omp_find_scan): Likewise.
3109 * omp-expand.c (expand_omp_for): Likewise.
3110 * omp-general.c (omp_extract_for_data): Likewise.
3111
3112 PR tree-optimization/91157
3113 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
3114 a vector boolean with scalar mode.
3115 (expand_vector_condition): Handle first operand being a vector boolean
3116 with scalar mode.
3117 (expand_vector_operations_1): For comparisons, don't bail out early
3118 if the return type is vector boolean with scalar mode, but comparison
3119 operand type is not.
3120
3121 2019-07-17 Richard Biener <rguenther@suse.de>
3122
3123 PR tree-optimization/91181
3124 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
3125 IFN_LOADs as calls.
3126
3127 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
3128
3129 * config/i386/i386.md (*testdi_1): Match CCZmode for
3130 constants that might have the SImode sign bit set.
3131 (*testqi_1_maybe_si): Remove "!" constraint modifier.
3132 Use correct constraints for pentium pairing.
3133 (*test<mode>_1): Ditto.
3134
3135 2019-07-16 Jeff Law <law@redhat.com>
3136
3137 PR rtl-optimization/91173
3138 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
3139 SSA_NAME with a constant value, fold its value into the offset
3140 and clear the base before calling gen_addr_rtx.
3141
3142 2019-07-16 Jakub Jelinek <jakub@redhat.com>
3143
3144 PR rtl-optimization/91164
3145 * dse.c (rest_of_handle_dse): If dead edges have been purged,
3146 invalidate dominance info.
3147
3148 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3149
3150 * read-md.h (md_reader::record_potential_iterator_use): Add a
3151 file_location parameter.
3152 * read-rtl.c (attribute_use::loc): New field.
3153 (map_attr_string): Take a file_location parameter. Report cases
3154 in which attributes map to multiple distinct values.
3155 (apply_attribute_uses): Update call accordingly.
3156 (md_reader::handle_overloaded_name): Likewise.
3157 (md_reader::apply_iterator_to_string): Likewise. Skip empty
3158 nonnull strings.
3159 (record_attribute_use): Take a file_location parameter.
3160 Initialize attribute_use::loc.
3161 (md_reader::record_potential_iterator_use): Take a file_location
3162 parameter. Update call to record_attribute_use.
3163 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
3164 (rtx_reader::read_rtx_code): Likewise.
3165 (rtx_reader::read_rtx_operand): Likewise. Record a location
3166 for implicitly-expanded empty strings.
3167
3168 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3169
3170 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
3171 Use file_location instead of separate fields.
3172 (md_reader::set_md_ptr_loc): Take a file_location instead of a
3173 separate filename and line number.
3174 * read-md.c (ptr_loc): As above.
3175 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
3176 (md_reader::fprint_md_ptr_loc): Likewise.
3177 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
3178 instead of a separate filename and line number.
3179 (md_reader::read_string): Update call accordingly.
3180
3181 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3182
3183 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
3184 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
3185 leaving the choice between SFDF and P implicit.
3186 (*mov<mode>_update2): Likewise.
3187 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
3188 rather than leaving the choice betweem IBM128 and GPR implicit.
3189 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
3190 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
3191 QHSI implicit.
3192 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
3193 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
3194 * config/rs6000/vsx.md
3195 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
3196 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
3197 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
3198 and VSX_EXTRACT_I implicit.
3199
3200 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3201
3202 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
3203 Explicitly use <MOVEP1:MODE> for the mode attribute.
3204
3205 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
3206
3207 PR bootstrap/91176
3208 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
3209
3210 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
3211
3212 PR target/91050
3213 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
3214 .machine directive.
3215
3216 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
3217
3218 * config/i386/i386.md (@test<mode>_ccno_1):
3219 Rename from test<mode>_ccno_1.
3220 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
3221 (*testqi_1_maybe_si): Remove modrm attribute.
3222 (*test<mode>_1): Ditto.
3223 * config/i386/i386-expand.c (ix86_split_idivmod): Use
3224 gen_test_ccno_1 and gen_extend_insn.
3225
3226 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
3227
3228 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
3229 to 0.
3230
3231 2019-07-15 Richard Biener <rguenther@suse.de>
3232
3233 PR middle-end/91162
3234 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
3235 node make sure to replace all uses with something valid.
3236
3237 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
3238
3239 PR tree-optimization/88497
3240 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
3241 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
3242 function undistribute_bitref_for_vector.
3243 (undistribute_bitref_for_vector): New function.
3244 (cleanup_vinfo_map): Likewise.
3245 (sort_by_mach_mode): Likewise.
3246
3247 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
3248
3249 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
3250 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
3251 and testdi_ccno_1 using SWI48 mode attribute.
3252 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
3253 x86_64_szext_general_operand.
3254 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
3255 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
3256 instead of genera_operand mode attribute.
3257
3258 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
3259
3260 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
3261 fopen and fclose to their respective types.
3262 (DotFn.invoke): Ditto.
3263
3264 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
3265
3266 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
3267 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
3268 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
3269 (array_index_predicate): Remove.
3270 (analyze_function_body): Account cost for variable ofsetted array
3271 indexing.
3272 (estimate_node_size_and_time): Do not compute array index hint.
3273 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
3274 (inline_read_section): Do not read array index hint.
3275 (ipa_fn_summary_write): Do not write array index hint.
3276 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
3277 * ipa-cp.c (hint_time_bonus): Remove.
3278 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
3279 (ipa_fnsummary): Remove array_index.
3280 * ipa-inline.c (want_inline_small_function_p): Do not use
3281 array_index.
3282 (edge_badness): Likewise.
3283 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
3284
3285 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
3286
3287 PR target/91148
3288 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
3289 superfluous "builtin function" phrasing.
3290
3291 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
3292
3293 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
3294 Break out from ...
3295 (aliasing_component_refs_walk): Break out from ...
3296 (aliasing_component_refs_p): ... here.
3297
3298 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
3299
3300 PR target/91148
3301 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
3302 "builtin function" phrasing.
3303
3304 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3305
3306 PR target/90723
3307 * recog.h (temporary_volatile_ok): New class.
3308 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
3309 volatile_ok temporarily to true using temporary_volatile_ok.
3310 * expr.c (emit_block_move_via_cpymem): Likewise.
3311 * optabs.c (maybe_legitimize_operand): Likewise.
3312
3313 2019-07-13 Jakub Jelinek <jakub@redhat.com>
3314
3315 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
3316 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
3317 uses inside of order(concurrent) constructs.
3318 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
3319 OMP_CLAUSE_ORDER is seen.
3320 * omp-low.c (struct omp_context): Add order_concurrent member.
3321 (scan_sharing_clauses): Set ctx->order_concurrent if
3322 OMP_CLAUSE_ORDER is seen.
3323 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
3324 of simd order(concurrent). Diagnose constructs not allowed inside of
3325 for order(concurrent).
3326 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
3327 complaining about static double setjmp (double); or class static
3328 methods or non-global namespace setjmps.
3329 (omp_runtime_api_call): New function.
3330 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
3331 order(concurrent) loops.
3332
3333 2019-07-12 Martin Sebor <msebor@redhat.com>
3334
3335 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
3336 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
3337 * tree-vrp.c (vrp_prop::check_mem_ref): Use
3338 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3339
3340 2019-07-12 Jan Hubicka <jh@suse.cz>
3341
3342 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
3343 (indirect_refs_may_alias_p): ... here.
3344 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
3345 mem refs in the access paths.
3346
3347 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
3348
3349 PR tree-optimization/89430
3350 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
3351 store elimination for local variable without address escape.
3352
3353 2019-07-12 Jeff Law <law@redhat.com>
3354
3355 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
3356 for the ".far" section.
3357
3358 2019-07-12 Richard Biener <rguenther@suse.de>
3359
3360 PR tree-optimization/91145
3361 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
3362 chain check.
3363
3364 2019-07-12 Alexandre Oliva <oliva@adacore.com>
3365
3366 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
3367 rather than this_state as the lowering context for the ELSE
3368 seq in a GIMPLE_EH_ELSE.
3369
3370 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3371
3372 * vector-builder.h (vector_builder::elt): Allow already-supplied
3373 elements to be read back before building is complete.
3374
3375 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3376
3377 PR rtl-optimization/91136
3378 * df-core.c (ACCESSING REFS): Fix typos in comment.
3379 * resource.c (mark_target_live_reg): Add artificial defs that occur at
3380 the beginning of the block to the initial set of live registers.
3381
3382 2019-07-12 Richard Biener <rguenther@suse.de>
3383
3384 * fold-const.h (get_array_ctor_element_at_index): Adjust.
3385 * fold-const.c (get_array_ctor_element_at_index): Add
3386 ctor_idx output parameter informing the caller where in
3387 the constructor the element was (not) found. Add early exit
3388 for when the ctor is sorted.
3389 * gimple-fold.c (fold_array_ctor_reference): Support constant
3390 folding across multiple array elements.
3391
3392 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3393
3394 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
3395 doesn't have location, set the current location to the function's end.
3396
3397 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3398
3399 * config/aarch64/aarch64.md (*compare_condjump<mode>)
3400 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
3401 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
3402 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
3403 * config/aarch64/aarch64-simd.md
3404 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3405 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
3406 * config/aarch64/aarch64-sve.md
3407 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
3408 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
3409
3410 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3411
3412 * doc/md.texi: Document that @ patterns can have different
3413 numbers of operands.
3414 * genemit.c (handle_overloaded_gen): Handle this case.
3415 * genopinit.c (handle_overloaded_gen): Likewise.
3416 * gensupport.c (replace_operands_with_dups): Iterate over
3417 the new rtx's format rather than the old one's.
3418
3419 2019-07-12 Jakub Jelinek <jakub@redhat.com>
3420
3421 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
3422 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3423 order clause entries.
3424 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
3425 * tree-pretty-print.c (dump_omp_clause): Likewise.
3426 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3427 Likewise.
3428 * omp-low.c (scan_sharing_clauses): Likewise.
3429 * tree-nested.c (convert_nonlocal_omp_clauses,
3430 convert_local_omp_clauses): Likewise.
3431
3432 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
3433
3434 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
3435 fallthrough target of current basic block isn't the placed
3436 right next.
3437
3438 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
3439
3440 PR target/90980
3441 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
3442 (_mm512_storeu_epi64): Likewise.
3443 (_mm512_loadu_epi32): Likewise.
3444 (_mm512_storeu_epi32): Likewise.
3445 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
3446 (_mm_storeu_epi64): Likewise.
3447 (_mm256_storeu_epi32): Likewise.
3448 (_mm_storeu_epi32): Likewise.
3449
3450 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3451
3452 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
3453
3454 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3455
3456 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
3457 Handle Modula-2.
3458
3459 2019-07-11 Jakub Jelinek <jakub@redhat.com>
3460
3461 PR target/91124
3462 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
3463 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3464 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
3465 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
3466 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
3467 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
3468 define_insns.
3469 (ufix_truncv2dfv2si2<mask_name>): Change into ...
3470 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
3471 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
3472 define_insns.
3473 (sse2_cvttpd2dq<mask_name>): Change into ...
3474 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
3475 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
3476 (*sse2_cvtpd2dq<mask_name>): Change into ...
3477 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3478 Add "C" constraint to const0_operand.
3479 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
3480 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
3481 changes.
3482
3483 PR target/91124
3484 * config/i386/i386-builtin-types.def
3485 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
3486 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
3487 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
3488 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
3489 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
3490 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
3491 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
3492 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
3493 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
3494 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
3495 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
3496 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
3497 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
3498 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
3499 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
3500 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
3501 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
3502 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
3503 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
3504 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
3505 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
3506 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
3507 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
3508 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
3509 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
3510 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
3511 __builtin_ia32_vpdpbusd_v4si_maskz,
3512 __builtin_ia32_vpdpbusds_v16si_mask,
3513 __builtin_ia32_vpdpbusds_v16si_maskz,
3514 __builtin_ia32_vpdpbusds_v8si_mask,
3515 __builtin_ia32_vpdpbusds_v8si_maskz,
3516 __builtin_ia32_vpdpbusds_v4si_mask,
3517 __builtin_ia32_vpdpbusds_v4si_maskz,
3518 __builtin_ia32_vpdpwssd_v16si_mask,
3519 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
3520 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
3521 __builtin_ia32_vpdpwssd_v4si_maskz,
3522 __builtin_ia32_vpdpwssds_v16si_mask,
3523 __builtin_ia32_vpdpwssds_v16si_maskz,
3524 __builtin_ia32_vpdpwssds_v8si_mask,
3525 __builtin_ia32_vpdpwssds_v8si_maskz,
3526 __builtin_ia32_vpdpwssds_v4si_mask,
3527 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
3528 suffixed types rather than *_INT.
3529 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
3530 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
3531 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
3532 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
3533 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
3534 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
3535
3536 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
3537
3538 * tree-vrp.c (intersect_ranges): If we know the intersection is
3539 empty, there is no need to conservatively add anything else to
3540 the set.
3541
3542 2019-07-11 Richard Biener <rguenther@suse.de>
3543
3544 PR middle-end/91131
3545 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
3546 when the object is volatile and we have not cleared it even though
3547 there are no nonzero elements.
3548
3549 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
3550
3551 * config/rs6000/predicates.md (cint34_operand): Update
3552 SIGNED_34BIT_OFFSET_P call.
3553 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
3554 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
3555 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
3556 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
3557 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
3558 argument.
3559 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
3560 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
3561 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
3562 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
3563 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
3564
3565 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
3566
3567 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
3568 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
3569 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
3570 (DEF_MIN_OSX_VERSION): New.
3571
3572 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3573
3574 * fold-const.c (fold_relational_const): Fix folding of
3575 vector-to-scalar NE_EXPRs.
3576 (test_vector_folding): Add more tests.
3577
3578 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3579
3580 PR target/91060
3581 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
3582 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
3583 (vec_setv2di_internal): Reexpress as...
3584 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
3585 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
3586 rather than gen_neon_vset_lane<mode>.
3587
3588 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
3589
3590 PR target/91102
3591 * lra-constraints.c (process_alt_operands): Don't match user
3592 defined regs only if they are early clobbers.
3593
3594 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
3595
3596 * wide-int.h (wi::lshift): Reject negative values for the fast path.
3597
3598 2019-07-10 Richard Biener <rguenther@suse.de>
3599
3600 PR tree-optimization/91126
3601 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
3602 native encoding offset for BYTES_BIG_ENDIAN.
3603 (vn_reference_lookup_3): Likewise.
3604
3605 2019-07-10 Richard Biener <rguenther@suse.de>
3606
3607 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
3608 LHS whenever possible.
3609
3610 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
3611
3612 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
3613 from ...; work also on duplicated types.
3614 (nonoverlapping_component_refs_since_match): ... here
3615 (ncr_type_uid): Break out from ...
3616 (ncr_compar): ... here; look for TYPE_UID of canonical type if
3617 available.
3618 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
3619 the types and nonoverlapping_component_refs_p_1 to disambiguate.
3620
3621 2019-07-09 Martin Sebor <msebor@redhat.com>
3622
3623 PR tree-optimization/90989
3624 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
3625 optimization to just single character stores.
3626
3627 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
3628
3629 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
3630 Swap operands only once.
3631
3632 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3633
3634 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
3635 for both call instructions.
3636
3637 2019-07-09 John Darrington <john@darrington.wattle.id.au>
3638
3639 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
3640 rather than GET_MODE_BITSIZE to better handle partial integer modes.
3641
3642 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
3643
3644 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
3645 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
3646 function from rs6000-logue.c back to rs6000.c.
3647 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
3648
3649 2019-07-09 Martin Sebor <msebor@redhat.com>
3650
3651 PR c++/61339
3652 * auto-profile.c: Change class-key of PODs to struct and others
3653 to class.
3654 * basic-block.h: Same.
3655 * bitmap.c (bitmap_alloc): Same.
3656 * bitmap.h: Same.
3657 * builtins.c (expand_builtin_prefetch): Same.
3658 (expand_builtin_interclass_mathfn): Same.
3659 (expand_builtin_strlen): Same.
3660 (expand_builtin_mempcpy_args): Same.
3661 (expand_cmpstr): Same.
3662 (expand_builtin___clear_cache): Same.
3663 (expand_ifn_atomic_bit_test_and): Same.
3664 (expand_builtin_thread_pointer): Same.
3665 (expand_builtin_set_thread_pointer): Same.
3666 * caller-save.c (setup_save_areas): Same.
3667 (replace_reg_with_saved_mem): Same.
3668 (insert_restore): Same.
3669 (insert_save): Same.
3670 (add_used_regs): Same.
3671 * cfg.c (get_bb_copy): Same.
3672 (set_loop_copy): Same.
3673 * cfg.h: Same.
3674 * cfganal.h: Same.
3675 * cfgexpand.c (alloc_stack_frame_space): Same.
3676 (add_stack_var): Same.
3677 (add_stack_var_conflict): Same.
3678 (add_scope_conflicts_1): Same.
3679 (update_alias_info_with_stack_vars): Same.
3680 (expand_used_vars): Same.
3681 * cfghooks.c (redirect_edge_and_branch_force): Same.
3682 (delete_basic_block): Same.
3683 (split_edge): Same.
3684 (make_forwarder_block): Same.
3685 (force_nonfallthru): Same.
3686 (duplicate_block): Same.
3687 (lv_flush_pending_stmts): Same.
3688 * cfghooks.h: Same.
3689 * cfgloop.c (flow_loops_cfg_dump): Same.
3690 (flow_loop_nested_p): Same.
3691 (superloop_at_depth): Same.
3692 (get_loop_latch_edges): Same.
3693 (flow_loop_dump): Same.
3694 (flow_loops_dump): Same.
3695 (flow_loops_free): Same.
3696 (flow_loop_nodes_find): Same.
3697 (establish_preds): Same.
3698 (flow_loop_tree_node_add): Same.
3699 (flow_loop_tree_node_remove): Same.
3700 (flow_loops_find): Same.
3701 (find_subloop_latch_edge_by_profile): Same.
3702 (find_subloop_latch_edge_by_ivs): Same.
3703 (mfb_redirect_edges_in_set): Same.
3704 (form_subloop): Same.
3705 (merge_latch_edges): Same.
3706 (disambiguate_multiple_latches): Same.
3707 (disambiguate_loops_with_multiple_latches): Same.
3708 (flow_bb_inside_loop_p): Same.
3709 (glb_enum_p): Same.
3710 (get_loop_body_with_size): Same.
3711 (get_loop_body): Same.
3712 (fill_sons_in_loop): Same.
3713 (get_loop_body_in_dom_order): Same.
3714 (get_loop_body_in_custom_order): Same.
3715 (release_recorded_exits): Same.
3716 (get_loop_exit_edges): Same.
3717 (num_loop_branches): Same.
3718 (remove_bb_from_loops): Same.
3719 (find_common_loop): Same.
3720 (delete_loop): Same.
3721 (cancel_loop): Same.
3722 (verify_loop_structure): Same.
3723 (loop_preheader_edge): Same.
3724 (loop_exit_edge_p): Same.
3725 (single_exit): Same.
3726 (loop_exits_to_bb_p): Same.
3727 (loop_exits_from_bb_p): Same.
3728 (get_loop_location): Same.
3729 (record_niter_bound): Same.
3730 (get_estimated_loop_iterations_int): Same.
3731 (max_stmt_executions_int): Same.
3732 (likely_max_stmt_executions_int): Same.
3733 (get_estimated_loop_iterations): Same.
3734 (get_max_loop_iterations): Same.
3735 (get_max_loop_iterations_int): Same.
3736 (get_likely_max_loop_iterations): Same.
3737 * cfgloop.h (simple_loop_desc): Same.
3738 (get_loop): Same.
3739 (loop_depth): Same.
3740 (loop_outer): Same.
3741 (loop_iterator::next): Same.
3742 (loop_outermost): Same.
3743 * cfgloopanal.c (mark_irreducible_loops): Same.
3744 (num_loop_insns): Same.
3745 (average_num_loop_insns): Same.
3746 (expected_loop_iterations_unbounded): Same.
3747 (expected_loop_iterations): Same.
3748 (mark_loop_exit_edges): Same.
3749 (single_likely_exit): Same.
3750 * cfgloopmanip.c (fix_bb_placement): Same.
3751 (fix_bb_placements): Same.
3752 (remove_path): Same.
3753 (place_new_loop): Same.
3754 (add_loop): Same.
3755 (scale_loop_frequencies): Same.
3756 (scale_loop_profile): Same.
3757 (create_empty_if_region_on_edge): Same.
3758 (create_empty_loop_on_edge): Same.
3759 (loopify): Same.
3760 (unloop): Same.
3761 (fix_loop_placements): Same.
3762 (copy_loop_info): Same.
3763 (duplicate_loop): Same.
3764 (duplicate_subloops): Same.
3765 (loop_redirect_edge): Same.
3766 (can_duplicate_loop_p): Same.
3767 (duplicate_loop_to_header_edge): Same.
3768 (mfb_keep_just): Same.
3769 (has_preds_from_loop): Same.
3770 (create_preheader): Same.
3771 (create_preheaders): Same.
3772 (lv_adjust_loop_entry_edge): Same.
3773 (loop_version): Same.
3774 * cfgloopmanip.h: Same.
3775 * cgraph.h: Same.
3776 * cgraphbuild.c: Same.
3777 * combine.c (make_extraction): Same.
3778 * config/i386/i386-features.c: Same.
3779 * config/i386/i386-features.h: Same.
3780 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
3781 (ix86_emit_outlined_ms2sysv_restore): Same.
3782 (ix86_noce_conversion_profitable_p): Same.
3783 (ix86_init_cost): Same.
3784 (ix86_simd_clone_usable): Same.
3785 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
3786 Wstruct-not-pod.
3787 * coretypes.h: Same.
3788 * data-streamer-in.c (string_for_index): Change class-key of PODs
3789 to struct and others to class.
3790 (streamer_read_indexed_string): Same.
3791 (streamer_read_string): Same.
3792 (bp_unpack_indexed_string): Same.
3793 (bp_unpack_string): Same.
3794 (streamer_read_uhwi): Same.
3795 (streamer_read_hwi): Same.
3796 (streamer_read_gcov_count): Same.
3797 (streamer_read_wide_int): Same.
3798 * data-streamer.h (streamer_write_bitpack): Same.
3799 (bp_unpack_value): Same.
3800 (streamer_write_char_stream): Same.
3801 (streamer_write_hwi_in_range): Same.
3802 (streamer_write_record_start): Same.
3803 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
3804 (add_cross_iteration_register_deps): Same.
3805 (build_intra_loop_deps): Same.
3806 * df-core.c (df_analyze): Same.
3807 (loop_post_order_compute): Same.
3808 (loop_inverted_post_order_compute): Same.
3809 * df-problems.c (df_rd_alloc): Same.
3810 (df_rd_simulate_one_insn): Same.
3811 (df_rd_local_compute): Same.
3812 (df_rd_init_solution): Same.
3813 (df_rd_confluence_n): Same.
3814 (df_rd_transfer_function): Same.
3815 (df_rd_free): Same.
3816 (df_rd_dump_defs_set): Same.
3817 (df_rd_top_dump): Same.
3818 (df_lr_alloc): Same.
3819 (df_lr_reset): Same.
3820 (df_lr_local_compute): Same.
3821 (df_lr_init): Same.
3822 (df_lr_confluence_n): Same.
3823 (df_lr_free): Same.
3824 (df_lr_top_dump): Same.
3825 (df_lr_verify_transfer_functions): Same.
3826 (df_live_alloc): Same.
3827 (df_live_reset): Same.
3828 (df_live_init): Same.
3829 (df_live_confluence_n): Same.
3830 (df_live_finalize): Same.
3831 (df_live_free): Same.
3832 (df_live_top_dump): Same.
3833 (df_live_verify_transfer_functions): Same.
3834 (df_mir_alloc): Same.
3835 (df_mir_reset): Same.
3836 (df_mir_init): Same.
3837 (df_mir_confluence_n): Same.
3838 (df_mir_free): Same.
3839 (df_mir_top_dump): Same.
3840 (df_word_lr_alloc): Same.
3841 (df_word_lr_reset): Same.
3842 (df_word_lr_init): Same.
3843 (df_word_lr_confluence_n): Same.
3844 (df_word_lr_free): Same.
3845 (df_word_lr_top_dump): Same.
3846 (df_md_alloc): Same.
3847 (df_md_simulate_one_insn): Same.
3848 (df_md_reset): Same.
3849 (df_md_init): Same.
3850 (df_md_free): Same.
3851 (df_md_top_dump): Same.
3852 * df-scan.c (df_insn_delete): Same.
3853 (df_insn_rescan): Same.
3854 (df_notes_rescan): Same.
3855 (df_sort_and_compress_mws): Same.
3856 (df_install_mws): Same.
3857 (df_refs_add_to_chains): Same.
3858 (df_ref_create_structure): Same.
3859 (df_ref_record): Same.
3860 (df_def_record_1): Same.
3861 (df_find_hard_reg_defs): Same.
3862 (df_uses_record): Same.
3863 (df_get_conditional_uses): Same.
3864 (df_get_call_refs): Same.
3865 (df_recompute_luids): Same.
3866 (df_get_entry_block_def_set): Same.
3867 (df_entry_block_defs_collect): Same.
3868 (df_get_exit_block_use_set): Same.
3869 (df_exit_block_uses_collect): Same.
3870 (df_mws_verify): Same.
3871 (df_bb_verify): Same.
3872 * df.h (df_scan_get_bb_info): Same.
3873 * doc/tm.texi: Same.
3874 * dse.c (record_store): Same.
3875 * dumpfile.h: Same.
3876 * emit-rtl.c (const_fixed_hasher::equal): Same.
3877 (set_mem_attributes_minus_bitpos): Same.
3878 (change_address): Same.
3879 (adjust_address_1): Same.
3880 (offset_address): Same.
3881 * emit-rtl.h: Same.
3882 * except.c (dw2_build_landing_pads): Same.
3883 (sjlj_emit_dispatch_table): Same.
3884 * explow.c (allocate_dynamic_stack_space): Same.
3885 (emit_stack_probe): Same.
3886 (probe_stack_range): Same.
3887 * expmed.c (store_bit_field_using_insv): Same.
3888 (store_bit_field_1): Same.
3889 (store_integral_bit_field): Same.
3890 (extract_bit_field_using_extv): Same.
3891 (extract_bit_field_1): Same.
3892 (emit_cstore): Same.
3893 * expr.c (emit_block_move_via_cpymem): Same.
3894 (expand_cmpstrn_or_cmpmem): Same.
3895 (set_storage_via_setmem): Same.
3896 (emit_single_push_insn_1): Same.
3897 (expand_assignment): Same.
3898 (store_constructor): Same.
3899 (expand_expr_real_2): Same.
3900 (expand_expr_real_1): Same.
3901 (try_casesi): Same.
3902 * flags.h: Same.
3903 * function.c (try_fit_stack_local): Same.
3904 (assign_stack_local_1): Same.
3905 (assign_stack_local): Same.
3906 (cut_slot_from_list): Same.
3907 (insert_slot_to_list): Same.
3908 (max_slot_level): Same.
3909 (move_slot_to_level): Same.
3910 (temp_address_hasher::equal): Same.
3911 (remove_unused_temp_slot_addresses): Same.
3912 (assign_temp): Same.
3913 (combine_temp_slots): Same.
3914 (update_temp_slot_address): Same.
3915 (preserve_temp_slots): Same.
3916 * function.h: Same.
3917 * fwprop.c: Same.
3918 * gcc-rich-location.h: Same.
3919 * gcov.c: Same.
3920 * genattrtab.c (check_attr_test): Same.
3921 (check_attr_value): Same.
3922 (convert_set_attr_alternative): Same.
3923 (convert_set_attr): Same.
3924 (check_defs): Same.
3925 (copy_boolean): Same.
3926 (get_attr_value): Same.
3927 (expand_delays): Same.
3928 (make_length_attrs): Same.
3929 (min_fn): Same.
3930 (make_alternative_compare): Same.
3931 (simplify_test_exp): Same.
3932 (tests_attr_p): Same.
3933 (get_attr_order): Same.
3934 (clear_struct_flag): Same.
3935 (gen_attr): Same.
3936 (compares_alternatives_p): Same.
3937 (gen_insn): Same.
3938 (gen_delay): Same.
3939 (find_attrs_to_cache): Same.
3940 (write_test_expr): Same.
3941 (walk_attr_value): Same.
3942 (write_attr_get): Same.
3943 (eliminate_known_true): Same.
3944 (write_insn_cases): Same.
3945 (write_attr_case): Same.
3946 (write_attr_valueq): Same.
3947 (write_attr_value): Same.
3948 (write_dummy_eligible_delay): Same.
3949 (next_comma_elt): Same.
3950 (find_attr): Same.
3951 (make_internal_attr): Same.
3952 (copy_rtx_unchanging): Same.
3953 (gen_insn_reserv): Same.
3954 (check_tune_attr): Same.
3955 (make_automaton_attrs): Same.
3956 (handle_arg): Same.
3957 * genextract.c (gen_insn): Same.
3958 (VEC_char_to_string): Same.
3959 * genmatch.c (print_operand): Same.
3960 (lower): Same.
3961 (parser::parse_operation): Same.
3962 (parser::parse_capture): Same.
3963 (parser::parse_c_expr): Same.
3964 (parser::parse_simplify): Same.
3965 (main): Same.
3966 * genoutput.c (output_operand_data): Same.
3967 (output_get_insn_name): Same.
3968 (compare_operands): Same.
3969 (place_operands): Same.
3970 (process_template): Same.
3971 (validate_insn_alternatives): Same.
3972 (validate_insn_operands): Same.
3973 (gen_expand): Same.
3974 (note_constraint): Same.
3975 * genpreds.c (write_one_predicate_function): Same.
3976 (add_constraint): Same.
3977 (process_define_register_constraint): Same.
3978 (write_lookup_constraint_1): Same.
3979 (write_lookup_constraint_array): Same.
3980 (write_insn_constraint_len): Same.
3981 (write_reg_class_for_constraint_1): Same.
3982 (write_constraint_satisfied_p_array): Same.
3983 * genrecog.c (optimize_subroutine_group): Same.
3984 * gensupport.c (process_define_predicate): Same.
3985 (queue_pattern): Same.
3986 (remove_from_queue): Same.
3987 (process_rtx): Same.
3988 (is_predicable): Same.
3989 (change_subst_attribute): Same.
3990 (subst_pattern_match): Same.
3991 (alter_constraints): Same.
3992 (alter_attrs_for_insn): Same.
3993 (shift_output_template): Same.
3994 (alter_output_for_subst_insn): Same.
3995 (process_one_cond_exec): Same.
3996 (subst_dup): Same.
3997 (process_define_cond_exec): Same.
3998 (mnemonic_htab_callback): Same.
3999 (gen_mnemonic_attr): Same.
4000 (read_md_rtx): Same.
4001 * ggc-page.c: Same.
4002 * gimple-loop-interchange.cc (dump_reduction): Same.
4003 (dump_induction): Same.
4004 (loop_cand::~loop_cand): Same.
4005 (free_data_refs_with_aux): Same.
4006 (tree_loop_interchange::interchange_loops): Same.
4007 (tree_loop_interchange::map_inductions_to_loop): Same.
4008 (tree_loop_interchange::move_code_to_inner_loop): Same.
4009 (compute_access_stride): Same.
4010 (compute_access_strides): Same.
4011 (proper_loop_form_for_interchange): Same.
4012 (tree_loop_interchange_compute_ddrs): Same.
4013 (prune_datarefs_not_in_loop): Same.
4014 (prepare_data_references): Same.
4015 (pass_linterchange::execute): Same.
4016 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
4017 (unroll_jam_possible_p): Same.
4018 (fuse_loops): Same.
4019 (adjust_unroll_factor): Same.
4020 (tree_loop_unroll_and_jam): Same.
4021 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
4022 (loop_versioning::expensive_stmt_p): Same.
4023 (loop_versioning::version_for_unity): Same.
4024 (loop_versioning::dump_inner_likelihood): Same.
4025 (loop_versioning::find_per_loop_multiplication): Same.
4026 (loop_versioning::analyze_term_using_scevs): Same.
4027 (loop_versioning::record_address_fragment): Same.
4028 (loop_versioning::analyze_expr): Same.
4029 (loop_versioning::analyze_blocks): Same.
4030 (loop_versioning::prune_conditions): Same.
4031 (loop_versioning::merge_loop_info): Same.
4032 (loop_versioning::add_loop_to_queue): Same.
4033 (loop_versioning::decide_whether_loop_is_versionable): Same.
4034 (loop_versioning::make_versioning_decisions): Same.
4035 (loop_versioning::implement_versioning_decisions): Same.
4036 * gimple-ssa-evrp-analyze.c
4037 (evrp_range_analyzer::record_ranges_from_phis): Same.
4038 * gimple-ssa-store-merging.c (split_store::split_store): Same.
4039 (count_multiple_uses): Same.
4040 (split_group): Same.
4041 (imm_store_chain_info::output_merged_store): Same.
4042 (pass_store_merging::process_store): Same.
4043 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
4044 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
4045 (is_max): Same.
4046 (alloca_call_type): Same.
4047 (pass_walloca::execute): Same.
4048 * gimple-streamer-in.c (input_phi): Same.
4049 (input_gimple_stmt): Same.
4050 * gimple-streamer.h: Same.
4051 * godump.c (go_force_record_alignment): Same.
4052 (go_format_type): Same.
4053 (go_output_type): Same.
4054 (go_output_fndecl): Same.
4055 (go_output_typedef): Same.
4056 (keyword_hash_init): Same.
4057 (find_dummy_types): Same.
4058 * graph.c (draw_cfg_nodes_no_loops): Same.
4059 (draw_cfg_nodes_for_loop): Same.
4060 * hard-reg-set.h (hard_reg_set_iter_next): Same.
4061 * hsa-brig.c: Same.
4062 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
4063 * hsa-dump.c (dump_hsa_cfun): Same.
4064 * hsa-gen.c (gen_function_def_parameters): Same.
4065 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
4066 * input.c (dump_line_table_statistics): Same.
4067 (test_lexer): Same.
4068 * input.h: Same.
4069 * internal-fn.c (get_multi_vector_move): Same.
4070 (expand_load_lanes_optab_fn): Same.
4071 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
4072 (expand_GOMP_SIMT_EXIT): Same.
4073 (expand_GOMP_SIMT_LAST_LANE): Same.
4074 (expand_GOMP_SIMT_ORDERED_PRED): Same.
4075 (expand_GOMP_SIMT_VOTE_ANY): Same.
4076 (expand_GOMP_SIMT_XCHG_BFLY): Same.
4077 (expand_GOMP_SIMT_XCHG_IDX): Same.
4078 (expand_addsub_overflow): Same.
4079 (expand_neg_overflow): Same.
4080 (expand_mul_overflow): Same.
4081 (expand_call_mem_ref): Same.
4082 (expand_mask_load_optab_fn): Same.
4083 (expand_scatter_store_optab_fn): Same.
4084 (expand_gather_load_optab_fn): Same.
4085 * ipa-cp.c (ipa_get_parm_lattices): Same.
4086 (print_all_lattices): Same.
4087 (ignore_edge_p): Same.
4088 (build_toporder_info): Same.
4089 (free_toporder_info): Same.
4090 (push_node_to_stack): Same.
4091 (ipcp_lattice<valtype>::set_contains_variable): Same.
4092 (set_agg_lats_to_bottom): Same.
4093 (ipcp_bits_lattice::meet_with): Same.
4094 (set_single_call_flag): Same.
4095 (initialize_node_lattices): Same.
4096 (ipa_get_jf_ancestor_result): Same.
4097 (ipcp_verify_propagated_values): Same.
4098 (propagate_scalar_across_jump_function): Same.
4099 (propagate_context_across_jump_function): Same.
4100 (propagate_bits_across_jump_function): Same.
4101 (ipa_vr_operation_and_type_effects): Same.
4102 (propagate_vr_across_jump_function): Same.
4103 (set_check_aggs_by_ref): Same.
4104 (set_chain_of_aglats_contains_variable): Same.
4105 (merge_aggregate_lattices): Same.
4106 (agg_pass_through_permissible_p): Same.
4107 (propagate_aggs_across_jump_function): Same.
4108 (call_passes_through_thunk_p): Same.
4109 (propagate_constants_across_call): Same.
4110 (devirtualization_time_bonus): Same.
4111 (good_cloning_opportunity_p): Same.
4112 (context_independent_aggregate_values): Same.
4113 (gather_context_independent_values): Same.
4114 (perform_estimation_of_a_value): Same.
4115 (estimate_local_effects): Same.
4116 (value_topo_info<valtype>::add_val): Same.
4117 (add_all_node_vals_to_toposort): Same.
4118 (value_topo_info<valtype>::propagate_effects): Same.
4119 (ipcp_propagate_stage): Same.
4120 (ipcp_discover_new_direct_edges): Same.
4121 (same_node_or_its_all_contexts_clone_p): Same.
4122 (cgraph_edge_brings_value_p): Same.
4123 (gather_edges_for_value): Same.
4124 (create_specialized_node): Same.
4125 (find_more_scalar_values_for_callers_subset): Same.
4126 (find_more_contexts_for_caller_subset): Same.
4127 (copy_plats_to_inter): Same.
4128 (intersect_aggregates_with_edge): Same.
4129 (find_aggregate_values_for_callers_subset): Same.
4130 (cgraph_edge_brings_all_agg_vals_for_node): Same.
4131 (decide_about_value): Same.
4132 (decide_whether_version_node): Same.
4133 (spread_undeadness): Same.
4134 (identify_dead_nodes): Same.
4135 (ipcp_store_vr_results): Same.
4136 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
4137 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
4138 (redirect_to_unreachable): Same.
4139 (edge_set_predicate): Same.
4140 (evaluate_conditions_for_known_args): Same.
4141 (evaluate_properties_for_edge): Same.
4142 (ipa_fn_summary_t::duplicate): Same.
4143 (ipa_call_summary_t::duplicate): Same.
4144 (dump_ipa_call_summary): Same.
4145 (ipa_dump_fn_summary): Same.
4146 (eliminated_by_inlining_prob): Same.
4147 (set_cond_stmt_execution_predicate): Same.
4148 (set_switch_stmt_execution_predicate): Same.
4149 (compute_bb_predicates): Same.
4150 (will_be_nonconstant_expr_predicate): Same.
4151 (phi_result_unknown_predicate): Same.
4152 (analyze_function_body): Same.
4153 (compute_fn_summary): Same.
4154 (estimate_edge_devirt_benefit): Same.
4155 (estimate_edge_size_and_time): Same.
4156 (estimate_calls_size_and_time): Same.
4157 (estimate_node_size_and_time): Same.
4158 (remap_edge_change_prob): Same.
4159 (remap_edge_summaries): Same.
4160 (ipa_merge_fn_summary_after_inlining): Same.
4161 (ipa_fn_summary_generate): Same.
4162 (inline_read_section): Same.
4163 (ipa_fn_summary_read): Same.
4164 (ipa_fn_summary_write): Same.
4165 * ipa-fnsummary.h: Same.
4166 * ipa-hsa.c (ipa_hsa_read_section): Same.
4167 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
4168 * ipa-icf.c (sem_function::param_used_p): Same.
4169 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
4170 * ipa-inline.c (edge_badness): Same.
4171 (inline_small_functions): Same.
4172 * ipa-polymorphic-call.c
4173 (ipa_polymorphic_call_context::stream_out): Same.
4174 * ipa-predicate.c (predicate::remap_after_duplication): Same.
4175 (predicate::remap_after_inlining): Same.
4176 (predicate::stream_out): Same.
4177 * ipa-predicate.h: Same.
4178 * ipa-profile.c (ipa_profile_read_summary): Same.
4179 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
4180 (count_formal_params): Same.
4181 (ipa_dump_param): Same.
4182 (ipa_alloc_node_params): Same.
4183 (ipa_print_node_jump_functions_for_edge): Same.
4184 (ipa_print_node_jump_functions): Same.
4185 (ipa_load_from_parm_agg): Same.
4186 (get_ancestor_addr_info): Same.
4187 (ipa_compute_jump_functions_for_edge): Same.
4188 (ipa_analyze_virtual_call_uses): Same.
4189 (ipa_analyze_stmt_uses): Same.
4190 (ipa_analyze_params_uses_in_bb): Same.
4191 (update_jump_functions_after_inlining): Same.
4192 (try_decrement_rdesc_refcount): Same.
4193 (ipa_impossible_devirt_target): Same.
4194 (update_indirect_edges_after_inlining): Same.
4195 (combine_controlled_uses_counters): Same.
4196 (ipa_edge_args_sum_t::duplicate): Same.
4197 (ipa_write_jump_function): Same.
4198 (ipa_write_indirect_edge_info): Same.
4199 (ipa_write_node_info): Same.
4200 (ipa_read_edge_info): Same.
4201 (ipa_prop_read_section): Same.
4202 (read_replacements_section): Same.
4203 * ipa-prop.h (ipa_get_param_count): Same.
4204 (ipa_get_param): Same.
4205 (ipa_get_type): Same.
4206 (ipa_get_param_move_cost): Same.
4207 (ipa_set_param_used): Same.
4208 (ipa_get_controlled_uses): Same.
4209 (ipa_set_controlled_uses): Same.
4210 (ipa_get_cs_argument_count): Same.
4211 * ipa-pure-const.c (analyze_function): Same.
4212 (pure_const_read_summary): Same.
4213 * ipa-ref.h: Same.
4214 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
4215 * ipa-split.c (test_nonssa_use): Same.
4216 (dump_split_point): Same.
4217 (dominated_by_forbidden): Same.
4218 (split_part_set_ssa_name_p): Same.
4219 (find_split_points): Same.
4220 * ira-build.c (finish_loop_tree_nodes): Same.
4221 (low_pressure_loop_node_p): Same.
4222 * ira-color.c (ira_reuse_stack_slot): Same.
4223 * ira-int.h: Same.
4224 * ira.c (setup_reg_equiv): Same.
4225 (print_insn_chain): Same.
4226 (ira): Same.
4227 * loop-doloop.c (doloop_condition_get): Same.
4228 (add_test): Same.
4229 (record_reg_sets): Same.
4230 (doloop_optimize): Same.
4231 * loop-init.c (loop_optimizer_init): Same.
4232 (fix_loop_structure): Same.
4233 * loop-invariant.c (merge_identical_invariants): Same.
4234 (compute_always_reached): Same.
4235 (find_exits): Same.
4236 (may_assign_reg_p): Same.
4237 (find_invariants_bb): Same.
4238 (find_invariants_body): Same.
4239 (replace_uses): Same.
4240 (can_move_invariant_reg): Same.
4241 (free_inv_motion_data): Same.
4242 (move_single_loop_invariants): Same.
4243 (change_pressure): Same.
4244 (mark_ref_regs): Same.
4245 (calculate_loop_reg_pressure): Same.
4246 * loop-iv.c (biv_entry_hasher::equal): Same.
4247 (iv_extend_to_rtx_code): Same.
4248 (check_iv_ref_table_size): Same.
4249 (clear_iv_info): Same.
4250 (latch_dominating_def): Same.
4251 (iv_get_reaching_def): Same.
4252 (iv_constant): Same.
4253 (iv_subreg): Same.
4254 (iv_extend): Same.
4255 (iv_neg): Same.
4256 (iv_add): Same.
4257 (iv_mult): Same.
4258 (get_biv_step): Same.
4259 (record_iv): Same.
4260 (analyzed_for_bivness_p): Same.
4261 (record_biv): Same.
4262 (iv_analyze_biv): Same.
4263 (iv_analyze_expr): Same.
4264 (iv_analyze_def): Same.
4265 (iv_analyze_op): Same.
4266 (iv_analyze): Same.
4267 (iv_analyze_result): Same.
4268 (biv_p): Same.
4269 (eliminate_implied_conditions): Same.
4270 (simplify_using_initial_values): Same.
4271 (shorten_into_mode): Same.
4272 (canonicalize_iv_subregs): Same.
4273 (determine_max_iter): Same.
4274 (check_simple_exit): Same.
4275 (find_simple_exit): Same.
4276 (get_simple_loop_desc): Same.
4277 * loop-unroll.c (report_unroll): Same.
4278 (decide_unrolling): Same.
4279 (unroll_loops): Same.
4280 (loop_exit_at_end_p): Same.
4281 (decide_unroll_constant_iterations): Same.
4282 (unroll_loop_constant_iterations): Same.
4283 (compare_and_jump_seq): Same.
4284 (unroll_loop_runtime_iterations): Same.
4285 (decide_unroll_stupid): Same.
4286 (unroll_loop_stupid): Same.
4287 (referenced_in_one_insn_in_loop_p): Same.
4288 (reset_debug_uses_in_loop): Same.
4289 (analyze_iv_to_split_insn): Same.
4290 * lra-eliminations.c (lra_debug_elim_table): Same.
4291 (setup_can_eliminate): Same.
4292 (form_sum): Same.
4293 (lra_get_elimination_hard_regno): Same.
4294 (lra_eliminate_regs_1): Same.
4295 (eliminate_regs_in_insn): Same.
4296 (update_reg_eliminate): Same.
4297 (init_elimination): Same.
4298 (lra_eliminate): Same.
4299 * lra-int.h: Same.
4300 * lra-lives.c (initiate_live_solver): Same.
4301 * lra-remat.c (create_remat_bb_data): Same.
4302 * lra-spills.c (lra_spill): Same.
4303 * lra.c (lra_set_insn_recog_data): Same.
4304 (lra_set_used_insn_alternative_by_uid): Same.
4305 (init_reg_info): Same.
4306 (expand_reg_info): Same.
4307 * lto-cgraph.c (output_symtab): Same.
4308 (read_identifier): Same.
4309 (get_alias_symbol): Same.
4310 (input_node): Same.
4311 (input_varpool_node): Same.
4312 (input_ref): Same.
4313 (input_edge): Same.
4314 (input_cgraph_1): Same.
4315 (input_refs): Same.
4316 (input_symtab): Same.
4317 (input_offload_tables): Same.
4318 (output_cgraph_opt_summary): Same.
4319 (input_edge_opt_summary): Same.
4320 (input_cgraph_opt_section): Same.
4321 * lto-section-in.c (lto_free_raw_section_data): Same.
4322 (lto_create_simple_input_block): Same.
4323 (lto_free_function_in_decl_state_for_node): Same.
4324 * lto-streamer-in.c (lto_tag_check_set): Same.
4325 (lto_location_cache::revert_location_cache): Same.
4326 (lto_location_cache::input_location): Same.
4327 (lto_input_location): Same.
4328 (stream_input_location_now): Same.
4329 (lto_input_tree_ref): Same.
4330 (lto_input_eh_catch_list): Same.
4331 (input_eh_region): Same.
4332 (lto_init_eh): Same.
4333 (make_new_block): Same.
4334 (input_cfg): Same.
4335 (fixup_call_stmt_edges): Same.
4336 (input_struct_function_base): Same.
4337 (input_function): Same.
4338 (lto_read_body_or_constructor): Same.
4339 (lto_read_tree_1): Same.
4340 (lto_read_tree): Same.
4341 (lto_input_scc): Same.
4342 (lto_input_tree_1): Same.
4343 (lto_input_toplevel_asms): Same.
4344 (lto_input_mode_table): Same.
4345 (lto_reader_init): Same.
4346 (lto_data_in_create): Same.
4347 * lto-streamer-out.c (output_cfg): Same.
4348 * lto-streamer.h: Same.
4349 * modulo-sched.c (duplicate_insns_of_cycles): Same.
4350 (generate_prolog_epilog): Same.
4351 (mark_loop_unsched): Same.
4352 (dump_insn_location): Same.
4353 (loop_canon_p): Same.
4354 (sms_schedule): Same.
4355 * omp-expand.c (expand_omp_for_ordered_loops): Same.
4356 (expand_omp_for_generic): Same.
4357 (expand_omp_for_static_nochunk): Same.
4358 (expand_omp_for_static_chunk): Same.
4359 (expand_omp_simd): Same.
4360 (expand_omp_taskloop_for_inner): Same.
4361 (expand_oacc_for): Same.
4362 (expand_omp_atomic_pipeline): Same.
4363 (mark_loops_in_oacc_kernels_region): Same.
4364 * omp-offload.c (oacc_xform_loop): Same.
4365 * omp-simd-clone.c (simd_clone_adjust): Same.
4366 * optabs-query.c (get_traditional_extraction_insn): Same.
4367 * optabs.c (expand_vector_broadcast): Same.
4368 (expand_binop_directly): Same.
4369 (expand_twoval_unop): Same.
4370 (expand_twoval_binop): Same.
4371 (expand_unop_direct): Same.
4372 (emit_indirect_jump): Same.
4373 (emit_conditional_move): Same.
4374 (emit_conditional_neg_or_complement): Same.
4375 (emit_conditional_add): Same.
4376 (vector_compare_rtx): Same.
4377 (expand_vec_perm_1): Same.
4378 (expand_vec_perm_const): Same.
4379 (expand_vec_cond_expr): Same.
4380 (expand_vec_series_expr): Same.
4381 (maybe_emit_atomic_exchange): Same.
4382 (maybe_emit_sync_lock_test_and_set): Same.
4383 (expand_atomic_compare_and_swap): Same.
4384 (expand_atomic_load): Same.
4385 (expand_atomic_store): Same.
4386 (maybe_emit_op): Same.
4387 (valid_multiword_target_p): Same.
4388 (create_integer_operand): Same.
4389 (maybe_legitimize_operand_same_code): Same.
4390 (maybe_legitimize_operand): Same.
4391 (create_convert_operand_from_type): Same.
4392 (can_reuse_operands_p): Same.
4393 (maybe_legitimize_operands): Same.
4394 (maybe_gen_insn): Same.
4395 (maybe_expand_insn): Same.
4396 (maybe_expand_jump_insn): Same.
4397 (expand_insn): Same.
4398 * optabs.h (create_expand_operand): Same.
4399 (create_fixed_operand): Same.
4400 (create_output_operand): Same.
4401 (create_input_operand): Same.
4402 (create_convert_operand_to): Same.
4403 (create_convert_operand_from): Same.
4404 * optinfo.h: Same.
4405 * poly-int.h: Same.
4406 * predict.c (optimize_insn_for_speed_p): Same.
4407 (optimize_loop_for_size_p): Same.
4408 (optimize_loop_for_speed_p): Same.
4409 (optimize_loop_nest_for_speed_p): Same.
4410 (get_base_value): Same.
4411 (predicted_by_loop_heuristics_p): Same.
4412 (predict_extra_loop_exits): Same.
4413 (predict_loops): Same.
4414 (predict_paths_for_bb): Same.
4415 (predict_paths_leading_to): Same.
4416 (propagate_freq): Same.
4417 (pass_profile::execute): Same.
4418 * predict.h: Same.
4419 * profile-count.c (profile_count::differs_from_p): Same.
4420 (profile_probability::differs_lot_from_p): Same.
4421 * profile-count.h: Same.
4422 * profile.c (branch_prob): Same.
4423 * regrename.c (free_chain_data): Same.
4424 (mark_conflict): Same.
4425 (create_new_chain): Same.
4426 (merge_overlapping_regs): Same.
4427 (init_rename_info): Same.
4428 (merge_chains): Same.
4429 (regrename_analyze): Same.
4430 (regrename_do_replace): Same.
4431 (scan_rtx_reg): Same.
4432 (record_out_operands): Same.
4433 (build_def_use): Same.
4434 * regrename.h: Same.
4435 * reload.h: Same.
4436 * reload1.c (init_reload): Same.
4437 (maybe_fix_stack_asms): Same.
4438 (copy_reloads): Same.
4439 (count_pseudo): Same.
4440 (count_spilled_pseudo): Same.
4441 (find_reg): Same.
4442 (find_reload_regs): Same.
4443 (select_reload_regs): Same.
4444 (spill_hard_reg): Same.
4445 (fixup_eh_region_note): Same.
4446 (set_reload_reg): Same.
4447 (allocate_reload_reg): Same.
4448 (compute_reload_subreg_offset): Same.
4449 (reload_adjust_reg_for_icode): Same.
4450 (emit_input_reload_insns): Same.
4451 (emit_output_reload_insns): Same.
4452 (do_input_reload): Same.
4453 (inherit_piecemeal_p): Same.
4454 * rtl.h: Same.
4455 * sanopt.c (maybe_get_dominating_check): Same.
4456 (maybe_optimize_ubsan_ptr_ifn): Same.
4457 (can_remove_asan_check): Same.
4458 (maybe_optimize_asan_check_ifn): Same.
4459 (sanopt_optimize_walker): Same.
4460 * sched-deps.c (add_dependence_list): Same.
4461 (chain_to_prev_insn): Same.
4462 (add_insn_mem_dependence): Same.
4463 (create_insn_reg_set): Same.
4464 (maybe_extend_reg_info_p): Same.
4465 (sched_analyze_reg): Same.
4466 (sched_analyze_1): Same.
4467 (get_implicit_reg_pending_clobbers): Same.
4468 (chain_to_prev_insn_p): Same.
4469 (deps_analyze_insn): Same.
4470 (deps_start_bb): Same.
4471 (sched_free_deps): Same.
4472 (init_deps): Same.
4473 (init_deps_reg_last): Same.
4474 (free_deps): Same.
4475 * sched-ebb.c: Same.
4476 * sched-int.h: Same.
4477 * sched-rgn.c (add_branch_dependences): Same.
4478 (concat_insn_mem_list): Same.
4479 (deps_join): Same.
4480 (sched_rgn_compute_dependencies): Same.
4481 * sel-sched-ir.c (reset_target_context): Same.
4482 (copy_deps_context): Same.
4483 (init_id_from_df): Same.
4484 (has_dependence_p): Same.
4485 (change_loops_latches): Same.
4486 (bb_top_order_comparator): Same.
4487 (make_region_from_loop_preheader): Same.
4488 (sel_init_pipelining): Same.
4489 (get_loop_nest_for_rgn): Same.
4490 (make_regions_from_the_rest): Same.
4491 (sel_is_loop_preheader_p): Same.
4492 * sel-sched-ir.h (inner_loop_header_p): Same.
4493 (get_all_loop_exits): Same.
4494 * selftest.h: Same.
4495 * sese.c (sese_build_liveouts): Same.
4496 (sese_insert_phis_for_liveouts): Same.
4497 * sese.h (defined_in_sese_p): Same.
4498 * sreal.c (sreal::stream_out): Same.
4499 * sreal.h: Same.
4500 * streamer-hooks.h: Same.
4501 * target-globals.c (save_target_globals): Same.
4502 * target-globals.h: Same.
4503 * target.def: Same.
4504 * target.h: Same.
4505 * targhooks.c (default_has_ifunc_p): Same.
4506 (default_empty_mask_is_expensive): Same.
4507 (default_init_cost): Same.
4508 * targhooks.h: Same.
4509 * toplev.c: Same.
4510 * tree-affine.c (aff_combination_mult): Same.
4511 (aff_combination_expand): Same.
4512 (aff_combination_constant_multiple_p): Same.
4513 * tree-affine.h: Same.
4514 * tree-cfg.c (build_gimple_cfg): Same.
4515 (replace_loop_annotate_in_block): Same.
4516 (replace_uses_by): Same.
4517 (remove_bb): Same.
4518 (dump_cfg_stats): Same.
4519 (gimple_duplicate_sese_region): Same.
4520 (gimple_duplicate_sese_tail): Same.
4521 (move_block_to_fn): Same.
4522 (replace_block_vars_by_duplicates): Same.
4523 (move_sese_region_to_fn): Same.
4524 (print_loops_bb): Same.
4525 (print_loop): Same.
4526 (print_loops): Same.
4527 (debug): Same.
4528 (debug_loops): Same.
4529 * tree-cfg.h: Same.
4530 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
4531 (chrec_fold_multiply_poly_poly): Same.
4532 (chrec_evaluate): Same.
4533 (chrec_component_in_loop_num): Same.
4534 (reset_evolution_in_loop): Same.
4535 (is_multivariate_chrec): Same.
4536 (chrec_contains_symbols): Same.
4537 (nb_vars_in_chrec): Same.
4538 (chrec_convert_1): Same.
4539 (chrec_convert_aggressive): Same.
4540 * tree-chrec.h: Same.
4541 * tree-core.h: Same.
4542 * tree-data-ref.c (dump_data_dependence_relation): Same.
4543 (canonicalize_base_object_address): Same.
4544 (data_ref_compare_tree): Same.
4545 (prune_runtime_alias_test_list): Same.
4546 (get_segment_min_max): Same.
4547 (create_intersect_range_checks): Same.
4548 (conflict_fn_no_dependence): Same.
4549 (object_address_invariant_in_loop_p): Same.
4550 (analyze_ziv_subscript): Same.
4551 (analyze_siv_subscript_cst_affine): Same.
4552 (analyze_miv_subscript): Same.
4553 (analyze_overlapping_iterations): Same.
4554 (build_classic_dist_vector_1): Same.
4555 (add_other_self_distances): Same.
4556 (same_access_functions): Same.
4557 (build_classic_dir_vector): Same.
4558 (subscript_dependence_tester_1): Same.
4559 (subscript_dependence_tester): Same.
4560 (access_functions_are_affine_or_constant_p): Same.
4561 (get_references_in_stmt): Same.
4562 (loop_nest_has_data_refs): Same.
4563 (graphite_find_data_references_in_stmt): Same.
4564 (find_data_references_in_bb): Same.
4565 (get_base_for_alignment): Same.
4566 (find_loop_nest_1): Same.
4567 (find_loop_nest): Same.
4568 * tree-data-ref.h (dr_alignment): Same.
4569 (ddr_dependence_level): Same.
4570 * tree-if-conv.c (fold_build_cond_expr): Same.
4571 (add_to_predicate_list): Same.
4572 (add_to_dst_predicate_list): Same.
4573 (phi_convertible_by_degenerating_args): Same.
4574 (idx_within_array_bound): Same.
4575 (all_preds_critical_p): Same.
4576 (pred_blocks_visited_p): Same.
4577 (predicate_bbs): Same.
4578 (build_region): Same.
4579 (if_convertible_loop_p_1): Same.
4580 (is_cond_scalar_reduction): Same.
4581 (predicate_scalar_phi): Same.
4582 (remove_conditions_and_labels): Same.
4583 (combine_blocks): Same.
4584 (version_loop_for_if_conversion): Same.
4585 (versionable_outer_loop_p): Same.
4586 (ifcvt_local_dce): Same.
4587 (tree_if_conversion): Same.
4588 (pass_if_conversion::gate): Same.
4589 * tree-if-conv.h: Same.
4590 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
4591 * tree-loop-distribution.c (bb_top_order_cmp): Same.
4592 (free_rdg): Same.
4593 (stmt_has_scalar_dependences_outside_loop): Same.
4594 (copy_loop_before): Same.
4595 (create_bb_after_loop): Same.
4596 (const_with_all_bytes_same): Same.
4597 (generate_memset_builtin): Same.
4598 (generate_memcpy_builtin): Same.
4599 (destroy_loop): Same.
4600 (build_rdg_partition_for_vertex): Same.
4601 (compute_access_range): Same.
4602 (data_ref_segment_size): Same.
4603 (latch_dominated_by_data_ref): Same.
4604 (compute_alias_check_pairs): Same.
4605 (fuse_memset_builtins): Same.
4606 (finalize_partitions): Same.
4607 (find_seed_stmts_for_distribution): Same.
4608 (prepare_perfect_loop_nest): Same.
4609 * tree-parloops.c (lambda_transform_legal_p): Same.
4610 (loop_parallel_p): Same.
4611 (reduc_stmt_res): Same.
4612 (add_field_for_name): Same.
4613 (create_call_for_reduction_1): Same.
4614 (replace_uses_in_bb_by): Same.
4615 (transform_to_exit_first_loop_alt): Same.
4616 (try_transform_to_exit_first_loop_alt): Same.
4617 (transform_to_exit_first_loop): Same.
4618 (num_phis): Same.
4619 (gen_parallel_loop): Same.
4620 (gather_scalar_reductions): Same.
4621 (get_omp_data_i_param): Same.
4622 (try_create_reduction_list): Same.
4623 (oacc_entry_exit_single_gang): Same.
4624 (parallelize_loops): Same.
4625 * tree-pass.h: Same.
4626 * tree-predcom.c (determine_offset): Same.
4627 (last_always_executed_block): Same.
4628 (split_data_refs_to_components): Same.
4629 (suitable_component_p): Same.
4630 (valid_initializer_p): Same.
4631 (find_looparound_phi): Same.
4632 (insert_looparound_copy): Same.
4633 (add_looparound_copies): Same.
4634 (determine_roots_comp): Same.
4635 (predcom_tmp_var): Same.
4636 (initialize_root_vars): Same.
4637 (initialize_root_vars_store_elim_1): Same.
4638 (initialize_root_vars_store_elim_2): Same.
4639 (finalize_eliminated_stores): Same.
4640 (initialize_root_vars_lm): Same.
4641 (remove_stmt): Same.
4642 (determine_unroll_factor): Same.
4643 (execute_pred_commoning_cbck): Same.
4644 (base_names_in_chain_on): Same.
4645 (combine_chains): Same.
4646 (pcom_stmt_dominates_stmt_p): Same.
4647 (try_combine_chains): Same.
4648 (prepare_initializers_chain_store_elim): Same.
4649 (prepare_initializers_chain): Same.
4650 (prepare_initializers): Same.
4651 (prepare_finalizers_chain): Same.
4652 (prepare_finalizers): Same.
4653 (insert_init_seqs): Same.
4654 * tree-scalar-evolution.c (loop_phi_node_p): Same.
4655 (compute_overall_effect_of_inner_loop): Same.
4656 (add_to_evolution_1): Same.
4657 (add_to_evolution): Same.
4658 (follow_ssa_edge_binary): Same.
4659 (follow_ssa_edge_expr): Same.
4660 (backedge_phi_arg_p): Same.
4661 (follow_ssa_edge_in_condition_phi_branch): Same.
4662 (follow_ssa_edge_in_condition_phi): Same.
4663 (follow_ssa_edge_inner_loop_phi): Same.
4664 (follow_ssa_edge): Same.
4665 (analyze_evolution_in_loop): Same.
4666 (analyze_initial_condition): Same.
4667 (interpret_loop_phi): Same.
4668 (interpret_condition_phi): Same.
4669 (interpret_rhs_expr): Same.
4670 (interpret_expr): Same.
4671 (interpret_gimple_assign): Same.
4672 (analyze_scalar_evolution_1): Same.
4673 (analyze_scalar_evolution): Same.
4674 (analyze_scalar_evolution_for_address_of): Same.
4675 (get_instantiated_value_entry): Same.
4676 (loop_closed_phi_def): Same.
4677 (instantiate_scev_name): Same.
4678 (instantiate_scev_poly): Same.
4679 (instantiate_scev_binary): Same.
4680 (instantiate_scev_convert): Same.
4681 (instantiate_scev_not): Same.
4682 (instantiate_scev_r): Same.
4683 (instantiate_scev): Same.
4684 (resolve_mixers): Same.
4685 (initialize_scalar_evolutions_analyzer): Same.
4686 (scev_reset_htab): Same.
4687 (scev_reset): Same.
4688 (derive_simple_iv_with_niters): Same.
4689 (simple_iv_with_niters): Same.
4690 (expression_expensive_p): Same.
4691 (final_value_replacement_loop): Same.
4692 * tree-scalar-evolution.h (block_before_loop): Same.
4693 * tree-ssa-address.h: Same.
4694 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
4695 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
4696 (record_edge_info): Same.
4697 * tree-ssa-live.c (var_map_base_fini): Same.
4698 (remove_unused_locals): Same.
4699 * tree-ssa-live.h: Same.
4700 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
4701 (pass_ch_vect::execute): Same.
4702 (pass_ch::process_loop_p): Same.
4703 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
4704 (movement_possibility): Same.
4705 (outermost_invariant_loop): Same.
4706 (stmt_cost): Same.
4707 (determine_max_movement): Same.
4708 (invariantness_dom_walker::before_dom_children): Same.
4709 (move_computations): Same.
4710 (may_move_till): Same.
4711 (force_move_till_op): Same.
4712 (force_move_till): Same.
4713 (memref_free): Same.
4714 (record_mem_ref_loc): Same.
4715 (set_ref_stored_in_loop): Same.
4716 (mark_ref_stored): Same.
4717 (sort_bbs_in_loop_postorder_cmp): Same.
4718 (sort_locs_in_loop_postorder_cmp): Same.
4719 (analyze_memory_references): Same.
4720 (mem_refs_may_alias_p): Same.
4721 (find_ref_loc_in_loop_cmp): Same.
4722 (rewrite_mem_ref_loc::operator): Same.
4723 (first_mem_ref_loc_1::operator): Same.
4724 (sm_set_flag_if_changed::operator): Same.
4725 (execute_sm_if_changed_flag_set): Same.
4726 (execute_sm): Same.
4727 (hoist_memory_references): Same.
4728 (ref_always_accessed::operator): Same.
4729 (refs_independent_p): Same.
4730 (record_dep_loop): Same.
4731 (ref_indep_loop_p_1): Same.
4732 (ref_indep_loop_p): Same.
4733 (can_sm_ref_p): Same.
4734 (find_refs_for_sm): Same.
4735 (loop_suitable_for_sm): Same.
4736 (store_motion_loop): Same.
4737 (store_motion): Same.
4738 (fill_always_executed_in): Same.
4739 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
4740 (estimated_unrolled_size): Same.
4741 (loop_edge_to_cancel): Same.
4742 (remove_exits_and_undefined_stmts): Same.
4743 (remove_redundant_iv_tests): Same.
4744 (unloop_loops): Same.
4745 (estimated_peeled_sequence_size): Same.
4746 (try_peel_loop): Same.
4747 (canonicalize_loop_induction_variables): Same.
4748 (canonicalize_induction_variables): Same.
4749 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
4750 (name_info): Same.
4751 (stmt_after_inc_pos): Same.
4752 (contains_abnormal_ssa_name_p): Same.
4753 (niter_for_exit): Same.
4754 (find_bivs): Same.
4755 (mark_bivs): Same.
4756 (find_givs_in_bb): Same.
4757 (find_induction_variables): Same.
4758 (find_interesting_uses_cond): Same.
4759 (outermost_invariant_loop_for_expr): Same.
4760 (idx_find_step): Same.
4761 (add_candidate_1): Same.
4762 (add_iv_candidate_derived_from_uses): Same.
4763 (alloc_use_cost_map): Same.
4764 (prepare_decl_rtl): Same.
4765 (generic_predict_doloop_p): Same.
4766 (computation_cost): Same.
4767 (determine_common_wider_type): Same.
4768 (get_computation_aff_1): Same.
4769 (get_use_type): Same.
4770 (determine_group_iv_cost_address): Same.
4771 (iv_period): Same.
4772 (difference_cannot_overflow_p): Same.
4773 (may_eliminate_iv): Same.
4774 (determine_set_costs): Same.
4775 (cheaper_cost_pair): Same.
4776 (compare_cost_pair): Same.
4777 (iv_ca_cand_for_group): Same.
4778 (iv_ca_recount_cost): Same.
4779 (iv_ca_set_remove_invs): Same.
4780 (iv_ca_set_no_cp): Same.
4781 (iv_ca_set_add_invs): Same.
4782 (iv_ca_set_cp): Same.
4783 (iv_ca_add_group): Same.
4784 (iv_ca_cost): Same.
4785 (iv_ca_compare_deps): Same.
4786 (iv_ca_delta_reverse): Same.
4787 (iv_ca_delta_commit): Same.
4788 (iv_ca_cand_used_p): Same.
4789 (iv_ca_delta_free): Same.
4790 (iv_ca_new): Same.
4791 (iv_ca_free): Same.
4792 (iv_ca_dump): Same.
4793 (iv_ca_extend): Same.
4794 (iv_ca_narrow): Same.
4795 (iv_ca_prune): Same.
4796 (cheaper_cost_with_cand): Same.
4797 (iv_ca_replace): Same.
4798 (try_add_cand_for): Same.
4799 (get_initial_solution): Same.
4800 (try_improve_iv_set): Same.
4801 (find_optimal_iv_set_1): Same.
4802 (create_new_iv): Same.
4803 (rewrite_use_compare): Same.
4804 (remove_unused_ivs): Same.
4805 (determine_scaling_factor): Same.
4806 * tree-ssa-loop-ivopts.h: Same.
4807 * tree-ssa-loop-manip.c (create_iv): Same.
4808 (compute_live_loop_exits): Same.
4809 (add_exit_phi): Same.
4810 (add_exit_phis): Same.
4811 (find_uses_to_rename_use): Same.
4812 (find_uses_to_rename_def): Same.
4813 (find_uses_to_rename_in_loop): Same.
4814 (rewrite_into_loop_closed_ssa): Same.
4815 (check_loop_closed_ssa_bb): Same.
4816 (split_loop_exit_edge): Same.
4817 (ip_end_pos): Same.
4818 (ip_normal_pos): Same.
4819 (copy_phi_node_args): Same.
4820 (gimple_duplicate_loop_to_header_edge): Same.
4821 (can_unroll_loop_p): Same.
4822 (determine_exit_conditions): Same.
4823 (scale_dominated_blocks_in_loop): Same.
4824 (niter_for_unrolled_loop): Same.
4825 (tree_transform_and_unroll_loop): Same.
4826 (rewrite_all_phi_nodes_with_iv): Same.
4827 * tree-ssa-loop-manip.h: Same.
4828 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
4829 (number_of_iterations_ne): Same.
4830 (assert_no_overflow_lt): Same.
4831 (assert_loop_rolls_lt): Same.
4832 (number_of_iterations_lt): Same.
4833 (adjust_cond_for_loop_until_wrap): Same.
4834 (tree_simplify_using_condition): Same.
4835 (simplify_using_initial_conditions): Same.
4836 (simplify_using_outer_evolutions): Same.
4837 (loop_only_exit_p): Same.
4838 (ssa_defined_by_minus_one_stmt_p): Same.
4839 (number_of_iterations_popcount): Same.
4840 (number_of_iterations_exit): Same.
4841 (find_loop_niter): Same.
4842 (finite_loop_p): Same.
4843 (chain_of_csts_start): Same.
4844 (get_val_for): Same.
4845 (loop_niter_by_eval): Same.
4846 (derive_constant_upper_bound_ops): Same.
4847 (do_warn_aggressive_loop_optimizations): Same.
4848 (record_estimate): Same.
4849 (get_cst_init_from_scev): Same.
4850 (record_nonwrapping_iv): Same.
4851 (idx_infer_loop_bounds): Same.
4852 (infer_loop_bounds_from_ref): Same.
4853 (infer_loop_bounds_from_array): Same.
4854 (infer_loop_bounds_from_pointer_arith): Same.
4855 (infer_loop_bounds_from_signedness): Same.
4856 (bound_index): Same.
4857 (discover_iteration_bound_by_body_walk): Same.
4858 (maybe_lower_iteration_bound): Same.
4859 (estimate_numbers_of_iterations): Same.
4860 (estimated_loop_iterations): Same.
4861 (estimated_loop_iterations_int): Same.
4862 (max_loop_iterations): Same.
4863 (max_loop_iterations_int): Same.
4864 (likely_max_loop_iterations): Same.
4865 (likely_max_loop_iterations_int): Same.
4866 (estimated_stmt_executions_int): Same.
4867 (max_stmt_executions): Same.
4868 (likely_max_stmt_executions): Same.
4869 (estimated_stmt_executions): Same.
4870 (stmt_dominates_stmt_p): Same.
4871 (nowrap_type_p): Same.
4872 (loop_exits_before_overflow): Same.
4873 (scev_var_range_cant_overflow): Same.
4874 (scev_probably_wraps_p): Same.
4875 (free_numbers_of_iterations_estimates): Same.
4876 * tree-ssa-loop-niter.h: Same.
4877 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
4878 (idx_analyze_ref): Same.
4879 (analyze_ref): Same.
4880 (gather_memory_references_ref): Same.
4881 (mark_nontemporal_store): Same.
4882 (emit_mfence_after_loop): Same.
4883 (may_use_storent_in_loop_p): Same.
4884 (mark_nontemporal_stores): Same.
4885 (should_unroll_loop_p): Same.
4886 (volume_of_dist_vector): Same.
4887 (add_subscript_strides): Same.
4888 (self_reuse_distance): Same.
4889 (insn_to_prefetch_ratio_too_small_p): Same.
4890 * tree-ssa-loop-split.c (split_at_bb_p): Same.
4891 (patch_loop_exit): Same.
4892 (find_or_create_guard_phi): Same.
4893 (easy_exit_values): Same.
4894 (connect_loop_phis): Same.
4895 (connect_loops): Same.
4896 (compute_new_first_bound): Same.
4897 (split_loop): Same.
4898 (tree_ssa_split_loops): Same.
4899 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
4900 (is_maybe_undefined): Same.
4901 (tree_may_unswitch_on): Same.
4902 (simplify_using_entry_checks): Same.
4903 (tree_unswitch_single_loop): Same.
4904 (tree_unswitch_loop): Same.
4905 (tree_unswitch_outer_loop): Same.
4906 (empty_bb_without_guard_p): Same.
4907 (used_outside_loop_p): Same.
4908 (get_vop_from_header): Same.
4909 (hoist_guard): Same.
4910 * tree-ssa-loop.c (gate_oacc_kernels): Same.
4911 (get_lsm_tmp_name): Same.
4912 * tree-ssa-loop.h: Same.
4913 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
4914 (build_and_add_sum): Same.
4915 (no_side_effect_bb): Same.
4916 (get_ops): Same.
4917 (linearize_expr): Same.
4918 (should_break_up_subtract): Same.
4919 (linearize_expr_tree): Same.
4920 * tree-ssa-scopedtables.c: Same.
4921 * tree-ssa-scopedtables.h: Same.
4922 * tree-ssa-structalias.c (condense_visit): Same.
4923 (label_visit): Same.
4924 (dump_pred_graph): Same.
4925 (perform_var_substitution): Same.
4926 (move_complex_constraints): Same.
4927 (remove_preds_and_fake_succs): Same.
4928 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
4929 (determine_bb_domination_status): Same.
4930 (duplicate_thread_path): Same.
4931 (thread_through_all_blocks): Same.
4932 * tree-ssa-threadupdate.h: Same.
4933 * tree-streamer-in.c (streamer_read_string_cst): Same.
4934 (input_identifier): Same.
4935 (unpack_ts_type_common_value_fields): Same.
4936 (unpack_ts_block_value_fields): Same.
4937 (unpack_ts_translation_unit_decl_value_fields): Same.
4938 (unpack_ts_omp_clause_value_fields): Same.
4939 (streamer_read_tree_bitfields): Same.
4940 (streamer_alloc_tree): Same.
4941 (lto_input_ts_common_tree_pointers): Same.
4942 (lto_input_ts_vector_tree_pointers): Same.
4943 (lto_input_ts_poly_tree_pointers): Same.
4944 (lto_input_ts_complex_tree_pointers): Same.
4945 (lto_input_ts_decl_minimal_tree_pointers): Same.
4946 (lto_input_ts_decl_common_tree_pointers): Same.
4947 (lto_input_ts_decl_non_common_tree_pointers): Same.
4948 (lto_input_ts_decl_with_vis_tree_pointers): Same.
4949 (lto_input_ts_field_decl_tree_pointers): Same.
4950 (lto_input_ts_function_decl_tree_pointers): Same.
4951 (lto_input_ts_type_common_tree_pointers): Same.
4952 (lto_input_ts_type_non_common_tree_pointers): Same.
4953 (lto_input_ts_list_tree_pointers): Same.
4954 (lto_input_ts_vec_tree_pointers): Same.
4955 (lto_input_ts_exp_tree_pointers): Same.
4956 (lto_input_ts_block_tree_pointers): Same.
4957 (lto_input_ts_binfo_tree_pointers): Same.
4958 (lto_input_ts_constructor_tree_pointers): Same.
4959 (lto_input_ts_omp_clause_tree_pointers): Same.
4960 (streamer_read_tree_body): Same.
4961 * tree-streamer.h: Same.
4962 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
4963 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
4964 (vect_analyze_possibly_independent_ddr): Same.
4965 (vect_analyze_data_ref_dependence): Same.
4966 (vect_compute_data_ref_alignment): Same.
4967 (vect_enhance_data_refs_alignment): Same.
4968 (vect_analyze_data_ref_access): Same.
4969 (vect_check_gather_scatter): Same.
4970 (vect_find_stmt_data_reference): Same.
4971 (vect_create_addr_base_for_vector_ref): Same.
4972 (vect_setup_realignment): Same.
4973 (vect_supportable_dr_alignment): Same.
4974 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
4975 (adjust_phi_and_debug_stmts): Same.
4976 (vect_set_loop_mask): Same.
4977 (add_preheader_seq): Same.
4978 (vect_maybe_permute_loop_masks): Same.
4979 (vect_set_loop_masks_directly): Same.
4980 (vect_set_loop_condition_masked): Same.
4981 (vect_set_loop_condition_unmasked): Same.
4982 (slpeel_duplicate_current_defs_from_edges): Same.
4983 (slpeel_add_loop_guard): Same.
4984 (slpeel_can_duplicate_loop_p): Same.
4985 (create_lcssa_for_virtual_phi): Same.
4986 (iv_phi_p): Same.
4987 (vect_update_ivs_after_vectorizer): Same.
4988 (vect_gen_vector_loop_niters_mult_vf): Same.
4989 (slpeel_update_phi_nodes_for_loops): Same.
4990 (slpeel_update_phi_nodes_for_guard1): Same.
4991 (find_guard_arg): Same.
4992 (slpeel_update_phi_nodes_for_guard2): Same.
4993 (slpeel_update_phi_nodes_for_lcssa): Same.
4994 (vect_do_peeling): Same.
4995 (vect_create_cond_for_alias_checks): Same.
4996 (vect_loop_versioning): Same.
4997 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
4998 (vect_inner_phi_in_double_reduction_p): Same.
4999 (vect_analyze_scalar_cycles_1): Same.
5000 (vect_fixup_scalar_cycles_with_patterns): Same.
5001 (vect_get_loop_niters): Same.
5002 (bb_in_loop_p): Same.
5003 (vect_get_max_nscalars_per_iter): Same.
5004 (vect_verify_full_masking): Same.
5005 (vect_compute_single_scalar_iteration_cost): Same.
5006 (vect_analyze_loop_form_1): Same.
5007 (vect_analyze_loop_form): Same.
5008 (vect_active_double_reduction_p): Same.
5009 (vect_analyze_loop_operations): Same.
5010 (neutral_op_for_slp_reduction): Same.
5011 (vect_is_simple_reduction): Same.
5012 (vect_model_reduction_cost): Same.
5013 (get_initial_def_for_reduction): Same.
5014 (get_initial_defs_for_reduction): Same.
5015 (vect_create_epilog_for_reduction): Same.
5016 (vectorize_fold_left_reduction): Same.
5017 (vectorizable_reduction): Same.
5018 (vectorizable_induction): Same.
5019 (vectorizable_live_operation): Same.
5020 (loop_niters_no_overflow): Same.
5021 (vect_get_loop_mask): Same.
5022 (vect_transform_loop_stmt): Same.
5023 (vect_transform_loop): Same.
5024 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
5025 (vect_determine_precisions): Same.
5026 (vect_pattern_recog_1): Same.
5027 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
5028 * tree-vect-stmts.c (stmt_vectype): Same.
5029 (process_use): Same.
5030 (vect_init_vector_1): Same.
5031 (vect_truncate_gather_scatter_offset): Same.
5032 (get_group_load_store_type): Same.
5033 (vect_build_gather_load_calls): Same.
5034 (vect_get_strided_load_store_ops): Same.
5035 (vectorizable_simd_clone_call): Same.
5036 (vectorizable_store): Same.
5037 (permute_vec_elements): Same.
5038 (vectorizable_load): Same.
5039 (vect_transform_stmt): Same.
5040 (supportable_widening_operation): Same.
5041 * tree-vectorizer.c (vec_info::replace_stmt): Same.
5042 (vec_info::free_stmt_vec_info): Same.
5043 (vect_free_loop_info_assumptions): Same.
5044 (vect_loop_vectorized_call): Same.
5045 (set_uid_loop_bbs): Same.
5046 (vectorize_loops): Same.
5047 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
5048 * tree.c (add_tree_to_fld_list): Same.
5049 (fld_type_variant_equal_p): Same.
5050 (fld_decl_context): Same.
5051 (fld_incomplete_type_of): Same.
5052 (free_lang_data_in_binfo): Same.
5053 (need_assembler_name_p): Same.
5054 (find_decls_types_r): Same.
5055 (get_eh_types_for_runtime): Same.
5056 (find_decls_types_in_eh_region): Same.
5057 (find_decls_types_in_node): Same.
5058 (assign_assembler_name_if_needed): Same.
5059 * value-prof.c (stream_out_histogram_value): Same.
5060 * value-prof.h: Same.
5061 * var-tracking.c (use_narrower_mode): Same.
5062 (prepare_call_arguments): Same.
5063 (vt_expand_loc_callback): Same.
5064 (resolve_expansions_pending_recursion): Same.
5065 (vt_expand_loc): Same.
5066 * varasm.c (const_hash_1): Same.
5067 (compare_constant): Same.
5068 (tree_output_constant_def): Same.
5069 (simplify_subtraction): Same.
5070 (get_pool_constant): Same.
5071 (output_constant_pool_2): Same.
5072 (output_constant_pool_1): Same.
5073 (mark_constants_in_pattern): Same.
5074 (mark_constant_pool): Same.
5075 (get_section_anchor): Same.
5076 * vr-values.c (compare_range_with_value): Same.
5077 (vr_values::extract_range_from_phi_node): Same.
5078 * vr-values.h: Same.
5079 * web.c (unionfind_union): Same.
5080 * wide-int.h: Same.
5081
5082 2019-07-09 Martin Sebor <msebor@redhat.com>
5083
5084 PR c++/61339
5085 * align.h: Change class-key from class to struct and vice versa
5086 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
5087 * alloc-pool.h: Same.
5088 * asan.c (shadow_mem_size): Same.
5089 * auto-profile.c: Same.
5090 * basic-block.h: Same.
5091 * bitmap.h: Same.
5092 * cfgexpand.c (set_rtl): Same.
5093 (expand_one_stack_var_at): Same.
5094 * cfghooks.h: Same.
5095 * cfgloop.h: Same.
5096 * cgraph.h: Same.
5097 * config/i386/i386.h: Same.
5098 * df-problems.c (df_print_bb_index): Same.
5099 * df-scan.c: Same.
5100 * df.h (df_single_use): Same.
5101 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
5102 (layout::annotation_line_showed_range_p): Same.
5103 (get_printed_columns): Same.
5104 (correction::ensure_terminated): Same.
5105 (line_corrections::~line_corrections): Same.
5106 * dojump.h: Same.
5107 * dse.c: Same.
5108 * dump-context.h: Same.
5109 * dumpfile.h: Same.
5110 * dwarf2out.c: Same.
5111 * edit-context.c: Same.
5112 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
5113 * flags.h: Same.
5114 * function.c (assign_stack_local): Same.
5115 * function.h: Same.
5116 * gcc.c: Same.
5117 * gcov.c (block_info::block_info): Same.
5118 * genattrtab.c: Same.
5119 * genextract.c: Same.
5120 * genmatch.c (comparison_code_p): Same.
5121 (id_base::id_base): Same.
5122 (decision_tree::print): Same.
5123 * genoutput.c: Same.
5124 * genpreds.c (write_one_predicate_function): Same.
5125 * genrecog.c (validate_pattern): Same.
5126 (find_operand_positions): Same.
5127 (optimize_subroutine_group): Same.
5128 (merge_pattern_transition::merge_pattern_transition): Same.
5129 (merge_pattern_info::merge_pattern_info): Same.
5130 (merge_state_result::merge_state_result): Same.
5131 (merge_into_state): Same.
5132 * gensupport.c: Same.
5133 * gensupport.h: Same.
5134 * ggc-common.c (init_ggc_heuristics): Same.
5135 * ggc-tests.c (test_union): Same.
5136 * gimple-loop-interchange.cc (dump_induction): Same.
5137 * gimple-loop-versioning.cc: Same.
5138 * gimple-match.h (gimple_match_cond::any_else): Same.
5139 * gimple-ssa-backprop.c: Same.
5140 * gimple-ssa-sprintf.c: Same.
5141 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
5142 Same.
5143 (store_immediate_info::store_immediate_info): Same.
5144 (merged_store_group::apply_stores): Same.
5145 (get_location_for_stmts): Same.
5146 * gimple-ssa-strength-reduction.c: Same.
5147 * gimple-ssa-warn-alloca.c: Same.
5148 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
5149 * godump.c (go_type_decl): Same.
5150 * hash-map-tests.c (test_map_of_strings_to_int): Same.
5151 * hash-map.h: Same.
5152 * hash-set-tests.c (test_set_of_strings): Same.
5153 * hsa-brig.c: Same.
5154 * hsa-common.h: Same.
5155 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
5156 * input.c (assert_loceq): Same.
5157 * input.h: Same.
5158 * ipa-cp.c: Same.
5159 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
5160 * ipa-fnsummary.h: Same.
5161 * ipa-inline.h: Same.
5162 * ipa-prop.h: Same.
5163 * ipa-split.c (visit_bb): Same.
5164 * ira-int.h (minmax_set_iter_next): Same.
5165 * loop-invariant.c: Same.
5166 * loop-iv.c: Same.
5167 * lra-eliminations.c: Same.
5168 * lra-int.h: Same.
5169 * lra-lives.c (mark_regno_dead): Same.
5170 * lra-remat.c: Same.
5171 * lra-spills.c: Same.
5172 * lto-streamer.h: Same.
5173 * mem-stats.h: Same.
5174 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
5175 * omp-low.c (omp_clause_aligned_alignment): Same.
5176 * optabs-query.h (get_vcond_eq_icode): Same.
5177 * optabs.h: Same.
5178 * opts.c (wrap_help): Same.
5179 * poly-int.h: Same.
5180 * predict.c (predict_paths_leading_to_edge): Same.
5181 * pretty-print.h: Same.
5182 * profile-count.h: Same.
5183 * read-md.h: Same.
5184 * read-rtl-function.c: Same.
5185 * ree.c: Same.
5186 * reginfo.c: Same.
5187 * regrename.c: Same.
5188 * regrename.h: Same.
5189 * reload.h: Same.
5190 * rtl-iter.h: Same.
5191 * rtl.h (costs_add_n_insns): Same.
5192 * sanopt.c: Same.
5193 * sched-int.h: Same.
5194 * sel-sched-ir.h: Same.
5195 * selftest.h: Same.
5196 * sese.h (vec_find): Same.
5197 * stmt.c: Same.
5198 * target-globals.h: Same.
5199 * tree-affine.c (aff_combination_find_elt): Same.
5200 * tree-affine.h: Same.
5201 * tree-data-ref.h: Same.
5202 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
5203 * tree-predcom.c: Same.
5204 * tree-scalar-evolution.c (find_var_scev_info): Same.
5205 * tree-ssa-alias.h: Same.
5206 * tree-ssa-ccp.c: Same.
5207 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
5208 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
5209 (rewrite_mem_refs): Same.
5210 (execute_sm_if_changed): Same.
5211 (hoist_memory_references): Same.
5212 * tree-ssa-loop-ivopts.c (operator<=): Same.
5213 * tree-ssa-loop.h: Same.
5214 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
5215 * tree-ssa-structalias.c: Same.
5216 * tree-switch-conversion.h (cluster::cluster): Same.
5217 (simple_cluster::simple_cluster): Same.
5218 * tree-vect-patterns.c (type_conversion_p): Same.
5219 * tree-vectorizer.c (dump_stmt_cost): Same.
5220 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
5221 * tree.c (protected_set_expr_location): Same.
5222 * tree.h (desired_pro_or_demotion_p): Same.
5223 (fndecl_built_in_p): Same.
5224 * unique-ptr-tests.cc: Same.
5225 * var-tracking.c (delete_variable_part): Same.
5226 * varasm.c (assemble_real): Same.
5227 (tree_output_constant_def): Same.
5228 * vec.c: Same.
5229 * wide-int-bitmask.h: Same.
5230 * wide-int.h (decompose): Same.
5231
5232 2019-07-09 Richard Biener <rguenther@suse.de>
5233
5234 PR tree-optimization/91114
5235 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
5236 find a vector type isn't fatal.
5237
5238 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5239
5240 * config/aarch64/aarch64-simd.md
5241 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
5242 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
5243 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
5244 (*aarch64_crypto_aese_fused,
5245 *aarch64_crypto_aesd_fused): Update to new definition.
5246 * config/aarch64/aarch64.c
5247 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
5248
5249 2019-07-09 Richard Biener <rguenther@suse.de>
5250
5251 * gimple-match.h (gimple_match_op::resimplify): New.
5252 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
5253 gimple_resimplify4, gimple_resimplify5): Remove.
5254 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
5255 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
5256 Make static.
5257 (gimple_match_op::resimplify): New.
5258 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
5259 according to availability. Use gimple_match_op::resimplify.
5260
5261 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
5262
5263 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
5264
5265 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5266
5267 * config/arm/crypto.md:
5268 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
5269 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
5270 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
5271 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
5272 * config/arm/arm.c
5273 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
5274 * config/arm/aarch-common-protos.h
5275 (aarch_crypto_can_dual_issue): Remove.
5276 * config/arm/aarch-common.c
5277 (aarch_crypto_can_dual_issue): Likewise.
5278 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
5279 * config/arm/cortex-a53.md: Likewise.
5280 * config/arm/cortex-a57.md: Likewise.
5281 * config/arm/iterators.md:
5282 (CRYPTO_BINARY): Redefine.
5283 (CRYPTO_UNARY): Removed.
5284 (CRYPTO_AES, CRYPTO_AESMC): New.
5285
5286 2019-07-09 Richard Biener <rguenther@suse.de>
5287
5288 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
5289 (vn_reference_lookup_3): If the main ref has no access path recorded
5290 but orig_ref has use it to do access-path based disambiguation.
5291 (vn_reference_lookup_pieces): Adjust.
5292 (vn_reference_lookup): Pass down original ref if we valueized.
5293
5294 2019-07-09 Martin Liska <mliska@suse.cz>
5295
5296 * doc/extend.texi: Document influence on loop
5297 optimizers.
5298
5299 2019-07-09 Martin Liska <mliska@suse.cz>
5300
5301 * lto-compress.c (lto_normalized_zstd_level): Do not use
5302 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
5303 of libzstd. One can use 0 as a default compression level.
5304
5305 2019-07-09 Martin Liska <mliska@suse.cz>
5306
5307 * doc/invoke.texi: Add link from -fprofile-dir option.
5308 Use better wording for 'gcno filename'.
5309
5310 2019-07-08 Martin Sebor <msebor@redhat.com>
5311
5312 PR middle-end/71924
5313 PR middle-end/90549
5314 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
5315 comment.
5316 (args_loc_t): New type.
5317 (args_loc_t, locmap_t): same.
5318 (diag_returned_locals): New function.
5319 (is_addr_local): Same.
5320 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
5321 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
5322 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
5323
5324 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5325
5326 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
5327 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
5328 and casts in offset when different, both through gimple stmts
5329 and through trees. Rewritten using loops to minimize code duplication
5330 for each operand.
5331
5332 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
5333
5334 * emit-rtl.c (set_insn_locations): New function moved from...
5335 * function.c (set_insn_locations): ...here.
5336 * ira-emit.c (emit_moves): Propagate location of the first instruction
5337 to the inserted move instructions.
5338 * reg-stack.c (compensate_edge): Set the location if the sequence is
5339 inserted on the edge.
5340 * rtl.h (set_insn_locations): Declare.
5341
5342 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5343
5344 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
5345 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
5346 .machine string.
5347
5348 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5349
5350 PR rtl-optimization/88233
5351 * common.opt (fsplit-wide-types-early): New option.
5352 * common/config/rs6000/rs6000-common.c
5353 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
5354 OPT_LEVELS_ALL.
5355 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
5356 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
5357 flag_split_wide_types_early.
5358 (pass_data_lower_subreg3): New.
5359 (pass_lower_subreg3): New.
5360 (make_pass_lower_subreg3): New.
5361 * passes.def (pass_lower_subreg2): Move after the loop passes.
5362 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
5363 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
5364 the pass pipeline; its previous place is taken by ...
5365 (make_pass_lower_subreg3): ... this.
5366
5367 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5368
5369 * config/s390/s390.c (s390_shift_truncation_mask): Define.
5370 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5371
5372 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5373
5374 * config/s390/constraints.md: Add new jsc constraint.
5375 * config/s390/predicates.md: New predicates.
5376 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
5377 * config/s390/s390.c (s390_valid_shift_count): New function.
5378 (print_shift_count_operand): Use s390_valid_shift_count.
5379 (print_operand): Likewise.
5380 * config/s390/s390.md: Use new predicate.
5381 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
5382 * config/s390/vector.md: Use new predicate.
5383
5384 2019-07-08 Andrew Waterman <andrew@sifive.com>
5385 Jim Wilson <jimw@sifive.com>
5386
5387 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
5388 bitsize instead of BITS_PER_WORD.
5389
5390 2019-07-08 Martin Liska <mliska@suse.cz>
5391
5392 * collect2.c (defined): Revert to before r254460.
5393 (scan_prog_file): Revert to before r254460.
5394
5395 2019-07-08 Richard Biener <rguenther@suse.de>
5396
5397 PR tree-optimization/83518
5398 * tree-ssa-sccvn.c: Include splay-tree.h.
5399 (struct pd_range, struct pd_data): New.
5400 (struct vn_walk_cb_data): Add data to track partial definitions.
5401 (vn_walk_cb_data::~vn_walk_cb_data): New.
5402 (vn_walk_cb_data::push_partial_def): New.
5403 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
5404 (vn_reference_lookup_2): When partial defs are registered give up.
5405 (vn_reference_lookup_3): Track partial defs for memset and
5406 constructor zeroing and for defs from constants.
5407
5408 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5409
5410 * doc/install.texi (bootstrap-Og): Document.
5411
5412 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5413
5414 * config/riscv/pic.md (*local_pic_load_s<mode>)
5415 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
5416 referenced by <mode>, giving...
5417 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
5418 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
5419 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
5420 use <X:MODE> for the mode attribute.
5421
5422 2019-07-07 Jeff Law <law@redhat.com>
5423
5424 PR tree-optimization/91090
5425 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
5426 in handling of ranges to simplify switch statements.
5427
5428 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5429
5430 * config/darwin.c (darwin_override_options): Make a final check on PIC
5431 options.
5432
5433 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5434
5435 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
5436 on for kernel code.
5437
5438 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5439
5440 PR target/91068
5441 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
5442 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
5443 instead of matching them to "l" output operands.
5444
5445 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5446
5447 * config/mips/mips.c (mips_split_move): Zero-initialize addr
5448 and check whether addr.reg is nonnull before using it.
5449
5450 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5451
5452 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
5453 ctx->for_simd_scan_phase simd copy the outer var to the privatized
5454 variable(s). For conditional lastprivate look through outer
5455 GIMPLE_OMP_SCAN context.
5456 (lower_omp_1): For conditional lastprivate look through outer
5457 GIMPLE_OMP_SCAN context.
5458
5459 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
5460 member to combined_into_simd_safelen1.
5461 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
5462 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
5463 clauses if ctx->combined_into_simd_safelen1 put statements after the
5464 predicate conditionalized block rather than into it.
5465
5466 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5467
5468 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
5469 operand 1.
5470 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
5471 Make the choice of <mode> explicit, giving...
5472 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
5473
5474 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5475
5476 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
5477 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
5478 of .md attributes.
5479 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
5480 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
5481 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
5482 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
5483 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
5484 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
5485 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
5486 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
5487 (*avx512f_scatterdi<mode>): Likewise.
5488 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
5489
5490 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5491
5492 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
5493 specify the mode iterator referenced by <mode>, giving...
5494 (*push1_h8300hs_<QHI:mode>): ...this.
5495
5496 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5497
5498 * config/gcn/gcn-valu.md
5499 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
5500 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
5501 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
5502 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
5503 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
5504 but using the _exec comparison patterns.
5505 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
5506 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
5507 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
5508 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
5509 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
5510 but using the _exec comparison patterns.
5511
5512 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5513
5514 * config/arm/sync.md
5515 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
5516 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
5517 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
5518 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
5519 <SIDI:cas_cmp_str>.
5520
5521 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5522
5523 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
5524 (maybe_lookup_ctx): Add forward declaration.
5525 (omp_find_scan): Likewise. Walk into body of simd if composited
5526 with worksharing loop.
5527 (scan_omp_simd_scan): New function.
5528 (scan_omp_1_stmt): Call it.
5529 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
5530 ctx->for_simd_scan_phase.
5531 (lower_rec_input_clauses): Do much less work for inscan reductions
5532 in ctx->for_simd_scan_phase is_simd regions.
5533 (lower_omp_scan): Set is_simd also on simd constructs composited
5534 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
5535 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
5536 emit their body after in simd constructs composited with worksharing
5537 loop.
5538 (lower_omp_for_scan): Handle worksharing loop composited with simd.
5539
5540 * omp-low.c (omp_find_scan): Make static.
5541 (lower_omp_for_scan): Fix order of merge arguments in input phase of
5542 the second loop, var2 represents the first partial sum and so needs
5543 to go before rprivb[ivar].
5544
5545 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
5546
5547 * config/rs6000/rs6000-logue.c: Remove unused code.
5548
5549 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5550
5551 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
5552
5553 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
5554
5555 PR target/90712
5556 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
5557 check with a frame laid out check.
5558
5559 2019-07-05 Richard Biener <rguenther@suse.de>
5560
5561 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
5562 when comparing against a store with possibly the same value.
5563
5564 2019-07-05 Richard Biener <rguenther@suse.de>
5565
5566 PR tree-optimization/91091
5567 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
5568 (walk_non_aliased_vuses): Likewise.
5569 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
5570 (get_continuation_for_phi): New tbaa_p parameter and pass
5571 it down.
5572 (walk_non_aliased_vuses): Likewise.
5573 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
5574 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5575 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5576 Likewise.
5577 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
5578 (adjust_offsets_for_equal_base_address): New function.
5579 (vn_reference_lookup_3): Use it to catch more base equivalences.
5580 Handle and pass down tbaa_p flag.
5581 (vn_reference_lookup_pieces): Adjust.
5582 (vn_reference_lookup): Remove alias-set altering, instead pass
5583 down false as tbaa_p.
5584
5585 2019-07-05 Richard Biener <rguenther@suse.de>
5586
5587 PR tree-optimization/91091
5588 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
5589 accesses can happen with -fno-strict-aliasing.
5590
5591 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
5592
5593 * tree-ssa-alias.c (alias_stats): Add
5594 nonoverlapping_component_refs_since_match_p_must_overlap.
5595 (dump_alias_stats): Print it.
5596 (nonoverlapping_component_refs_since_match_p): Add early exit.
5597 (nonoverlapping_component_refs_p): Do not account early exit.
5598
5599 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5600
5601 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
5602 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
5603 (emit_eh_dispatch): Delete.
5604 (lower_catch): Emit the eh_dispatch manually and set the location of
5605 the first catch statement onto it.
5606 (lower_eh_filter): Emit the eh_dispatch manually and set location.
5607 (lower_eh_dispatch): Propagate location.
5608 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
5609 (eliminate_build): Likewise.
5610
5611 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5612
5613 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
5614 phi nodes if possible.
5615 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
5616 location info on the newly created statement.
5617 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
5618 newly created increment if needed.
5619
5620 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5621
5622 PR middle-end/78884
5623 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
5624 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
5625 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
5626 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
5627 ctx->add_safelen1 is set.
5628
5629 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
5630 GOMP_loop_start at the start of second worksharing loop in a scan.
5631 For nowait, don't emit GOMP_loop_end_nowait at the end of first
5632 worksharing loop in a scan even if there are conditional lastprivates,
5633 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
5634
5635 2019-07-04 Jan Hubicka <jh@suse.cz>
5636
5637 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5638 Fix check for match in the ref walk.
5639
5640 2019-07-04 Martin Liska <mliska@suse.cz>
5641
5642 * tree-ssa-loop-niter.c
5643 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
5644 (estimate_numbers_of_iterations):
5645 Support __builtin_expect_with_probability for analysis
5646 of # of loop iterations.
5647
5648 2019-07-04 Alexandre Oliva <oliva@adacore.com>
5649
5650 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
5651 * except.c: Likewise.
5652 * expr.c (expand_expr_real_1): Reject it.
5653 * gimplify.c (gimplify_expr): Gimplify it, within
5654 TRY_FINALLY_EXPR.
5655 * tree-dump.c (dequeue_and_dump): Dump it.
5656 * tree-pretty-print.c (dump_generic_node): Likewise.
5657 * tree.c (block_may_fallthru): Handle it.
5658 * tree.def (EH_ELSE_EXPR): Introduce it.
5659 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
5660 with GIMPLE_EH_ELSE as try/finally/else.
5661
5662 2019-07-04 Richard Biener <rguenther@suse.de>
5663
5664 PR ipa/91062
5665 * tree-pass.h (execute_all_ipa_transforms): Add a flag
5666 parameter whether to disable GC collection.
5667 * passes.c (execute_one_ipa_transform_pass): Likewise, and
5668 honor it.
5669 (execute_all_ipa_transforms): Likewise and pass it down.
5670 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
5671 collection from applying IPA transforms.
5672 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
5673 from applying IPA transforms.
5674
5675 2019-07-04 Richard Biener <rguenther@suse.de>
5676
5677 PR tree-optimization/90911
5678 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
5679 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
5680 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5681 scalar_loop_scaling.
5682 (vect_transform_loop): Scale scalar loop profile if needed.
5683 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
5684 the loop copy from if-conversion adjust edge probabilities
5685 and scale the vectorized loop body profile, queue the scalar
5686 profile for updating after peeling.
5687
5688 2019-07-04 Jan Hubicka <jh@suse.cz>
5689
5690 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
5691 parameters; return early for must-alias.
5692 (indirect_ref_may_alias_decl_p): Likewise; when establishing
5693 outer types match, try nonoverlapping_component_refs
5694 if must-alias is not obvious.
5695 (indirect_refs_may_alias_p): Likewise.
5696 (refs_may_alias_p_2): Likewise.
5697
5698 2019-07-04 Richard Biener <rguenther@suse.de>
5699
5700 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
5701 argument.
5702 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
5703 globals into...
5704 (struct vn_walk_cb_data): New callback data struct.
5705 (vn_reference_lookup_2): Adjust.
5706 (vn_reference_lookup_3): Likewise.
5707 (vn_reference_lookup_pieces): Likewise.
5708 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
5709 (visit_reference_op_load): Adjust.
5710
5711 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5712
5713 PR tree-optimization/91063
5714 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
5715 stmt from stmts sequence before calling vect_init_vector_1.
5716 Formatting fix.
5717
5718 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5719
5720 PR target/88833
5721 * fwprop.c (reg_single_def_p): New function.
5722 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
5723 (forward_propagate_into): New parameter reg_prop_only
5724 with default value false.
5725 Propagate def's src into loop only if SET_SRC and SET_DEST
5726 of def_set have single definitions.
5727 Likewise if reg_prop_only is set to true.
5728 (fwprop): New param fwprop_addr_p.
5729 Integrate fwprop_addr into fwprop.
5730 (fwprop_addr): Remove.
5731 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
5732 to true.
5733 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
5734 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
5735 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
5736
5737 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5738
5739 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
5740 in worksharing loop scans.
5741
5742 PR tree-optimization/91074
5743 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
5744 temporary.
5745
5746 PR rtl-optimization/90756
5747 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
5748 for VECTOR_TYPE_P.
5749
5750 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
5751
5752 * config/aarch64/aarch64.md: Remove redundant constraints from
5753 define_expand but keep some patterns untouched if they are
5754 specially selected by TARGET_SECONDARY_RELOAD hook.
5755 * config/aarch64/aarch64-sve.md: Likewise.
5756 * config/aarch64/atomics.md: Remove redundant constraints from
5757 define_expand.
5758 * config/aarch64/aarch64-simd.md: Likewise.
5759
5760 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5761
5762 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
5763 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
5764 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
5765 clauses.
5766 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
5767 DARWIN_NOPIE_SPEC.
5768
5769 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5770
5771 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
5772 (STARTFILE_SPEC): Split crt3 into a separate spec.
5773 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
5774 (DARWIN_CRT2_SPEC): New.
5775 (DARWIN_CRT3_SPEC): New.
5776 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
5777 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
5778 (DARWIN_CRT3_SPEC): New.
5779
5780 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
5781
5782 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
5783 Change the RTL attribute "length" from "4" to "*" to allow the
5784 length attribute to be adjusted automatically for prefixed load,
5785 store, and add immediate instructions.
5786 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
5787 Likewise.
5788 (extendsi<mode>2, EXTSI iterator): Likewise.
5789 (movsi_internal1): Likewise.
5790 (movsi_from_sf): Likewise.
5791 (movdi_from_sf_zero_ext): Likewise.
5792 (mov<mode>_internal): Likewise.
5793 (movcc_internal1, QHI iterator): Likewise.
5794 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
5795 (movsf_from_si): Likewise.
5796 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
5797 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
5798 (mov<mode>, FMOVE128 iterator): Likewise.
5799 (movdi_internal64): Likewise.
5800 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
5801 Likewise.
5802 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
5803 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
5804 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
5805 (vsx_splat_v4sf): Likewise.
5806
5807 2019-07-03 Mark Wielaard <mark@klomp.org>
5808
5809 PR debug/90981
5810 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
5811 DW_AT_addr_base if there is actually a .debug_addr section with
5812 addresses.
5813 (output_addr_table): Add DWARF5 table header generation here after
5814 checking there are actually any addresses from...
5815 (dwarf2out_finish): ...here.
5816
5817 2019-07-03 Richard Biener <rguenther@suse.de>
5818
5819 PR middle-end/91069
5820 * match.pd (vec_perm -> bit_insert): Fix element read from
5821 first vector.
5822
5823 2019-07-03 Martin Liska <mliska@suse.cz>
5824
5825 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
5826 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
5827 condition.
5828 * generic-match-head.c: Include dbgcnt.h.
5829 * gimple-match-head.c: Likewise.
5830
5831 2019-07-03 Martin Liska <mliska@suse.cz>
5832
5833 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
5834 (GCOV_COUNTER_V_TOPN): New.
5835 (GCOV_COUNTER_V_INDIR): Use _topn.
5836 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
5837 (GCOV_TOPN_VALUES): New.
5838 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
5839 (GCOV_TOPN_VALUES_COUNTERS): New.
5840 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
5841 * tree-profile.c:
5842 (gimple_init_gcov_profiler): Rename variables from one_value
5843 to topn_values.
5844 (gimple_gen_one_value_profiler): Remove.
5845 (gimple_gen_topn_values_profiler): New function.
5846 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
5847 names instead of SINGLE_VALUE.
5848 (stream_out_histogram_value): Likewise.
5849 (stream_in_histogram_value): Likewise.
5850 (get_most_common_single_value): Likewise.
5851 (gimple_divmod_fixed_value_transform): Likewise.
5852 (gimple_stringops_transform): Likewise.
5853 (gimple_divmod_values_to_profile): Likewise.
5854 (gimple_stringops_values_to_profile): Likewise.
5855 (gimple_find_values_to_profile): Likewise.
5856 * value-prof.h (enum hist_type): Rename to TOPN.
5857 (gimple_gen_one_value_profiler): Remove.
5858 (gimple_gen_topn_values_profiler): New.
5859
5860 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
5861
5862 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
5863 if it has the DW_AT_data_member_location attribute.
5864
5865 2019-07-03 Richard Biener <rguenther@suse.de>
5866
5867 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
5868 dumping.
5869
5870 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
5871
5872 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
5873 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
5874 (tlsdesc_small_sve_<mode>): Likewise.
5875
5876 2019-07-03 Martin Liska <mliska@suse.cz>
5877
5878 * Makefile.in: Define ZSTD_LIB.
5879 * common.opt: Adjust compression level
5880 to support also zstd levels.
5881 * config.in: Regenerate.
5882 * configure: Likewise.
5883 * configure.ac: Add --with-zstd and --with-zstd-include options
5884 and detect ZSTD.
5885 * doc/install.texi: Mention zstd dependency.
5886 * gcc.c: Print supported LTO compression algorithms.
5887 * lto-compress.c (lto_normalized_zstd_level): Likewise.
5888 (lto_compression_zstd): Likewise.
5889 (lto_uncompression_zstd): Likewise.
5890 (lto_end_compression): Dispatch in between zlib and zstd.
5891 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
5892 (lto_uncompression_zlib): Make it static.
5893 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
5894 * lto-section-in.c (lto_get_section_data): Pass info
5895 about used compression.
5896 * lto-streamer-out.c: By default use zstd when possible.
5897 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
5898 (TV_IPA_LTO_COMPRESS): Likewise for compression.
5899
5900 2019-07-03 Martin Liska <mliska@suse.cz>
5901
5902 * lto-section-in.c (lto_get_section_data): Add "lto" section.
5903 * lto-section-out.c (lto_destroy_simple_output_block): Never
5904 compress LTO_section_lto section.
5905 * lto-streamer-out.c (produce_asm): Do not set major_version
5906 and minor_version.
5907 (lto_output_toplevel_asms): Likewise.
5908 (produce_lto_section): New function.
5909 (lto_output): Call produce_lto_section.
5910 (lto_write_mode_table): Do not set major_version and
5911 minor_version.
5912 (produce_asm_for_decls): Likewise.
5913 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
5914 type.
5915 (struct lto_header): Remove.
5916 (struct lto_section): New struct.
5917 (struct lto_simple_header): Do not inherit from lto_header.
5918 (struct lto_file_decl_data): Add lto_section_header field.
5919
5920 2019-07-03 Martin Liska <mliska@suse.cz>
5921
5922 * lra-eliminations.c (eliminate_regs_in_insn): Remove
5923 dead assignemts.
5924 * reg-stack.c (check_asm_stack_operands): Likewise.
5925 * tree-ssa-structalias.c (create_function_info_for): Likewise.
5926 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5927 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
5928 force_expand_binop.
5929
5930 2019-07-03 Martin Liska <mliska@suse.cz>
5931
5932 PR tree-optimization/90892
5933 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
5934 in string constants.
5935
5936 2019-07-03 Martin Liska <mliska@suse.cz>
5937
5938 PR middle-end/90899
5939 * multiple_target.c (create_dispatcher_calls): Add to comdat
5940 group only if set for ifunc.
5941
5942 2019-07-03 Martin Liska <mliska@suse.cz>
5943
5944 PR target/88056
5945 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5946 Define local_object_name in outer scope in order to handle
5947 use-after-scope issue.
5948
5949 2019-07-03 Martin Liska <mliska@suse.cz>
5950
5951 * common.opt: Add fprofile-note.
5952 * coverage.c (coverage_init): Append the option
5953 to bbg_file_name.
5954 * doc/invoke.texi: Document -fprofile-note.
5955
5956 2019-07-03 Jakub Jelinek <jakub@redhat.com>
5957
5958 PR tree-optimization/91033
5959 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
5960 vect_analyze_data_refs): Add bool * arguments.
5961 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
5962 if failure is due to scatter/gather, set *fatal to false if non-NULL.
5963 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5964 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
5965 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
5966 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
5967 vect_analyze_data_refs caller.
5968
5969 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
5970 clause.
5971 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
5972 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
5973 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
5974 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5975 OMP_CLAUSE__SCANTEMP_ entry.
5976 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
5977 * tree-pretty-print.c (dump_omp_clause): Likewise.
5978 * tree-nested.c (convert_nonlocal_omp_clauses,
5979 convert_local_omp_clauses): Likewise.
5980 * omp-general.h (struct omp_for_data): Add have_scantemp and
5981 have_nonctrl_scantemp members.
5982 * omp-general.c (omp_extract_for_data): Initialize them.
5983 * omp-low.c (struct omp_context): Add scan_exclusive member.
5984 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
5985 result again with GF_OMP_FOR_KIND_MASK. Initialize also
5986 ctx->scan_exclusive.
5987 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
5988 of !ctx->scan_inclusive.
5989 (lower_rec_input_clauses): Simplify gimplification of dtors using
5990 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
5991 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
5992 loops. Don't add barrier for reduction_omp_orig_ref if
5993 ctx->scan_??xclusive.
5994 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
5995 (lower_omp_scan): Use ctx->scan_exclusive instead
5996 of !ctx->scan_inclusive. Handle worksharing loops with inscan
5997 reductions. Use new_vard != new_var instead of repeated
5998 omp_is_reference calls.
5999 (omp_find_scan, lower_omp_for_scan): New functions.
6000 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
6001 inscan reductions.
6002 * omp-expand.c (expand_omp_scantemp_alloc): New function.
6003 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
6004 and fd->have_scantemp.
6005
6006 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
6007 on worksharing loop propagate it as shared clause to containing
6008 combined parallel.
6009
6010 * omp-expand.c (expand_omp_for_static_nochunk,
6011 expand_omp_for_static_chunk): For nowait worksharing loop with
6012 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
6013 at the end.
6014
6015 2019-07-02 qing zhao <qing.zhao@oracle.com>
6016
6017 PR preprocessor/90581
6018 * doc/cppopts.texi: Add document for -fmax-include-depth.
6019 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
6020
6021 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
6022
6023 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
6024 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
6025 (mmx_packssdw): Ditto.
6026 (mmx_punpckhbw): Ditto.
6027 (mmx_punpcklbw): Ditto.
6028 (mmx_punpckhwd): Ditto.
6029 (mmx_punpcklwd): Ditto.
6030 (mmx_punpckhdq): Ditto.
6031 (mmx_punpckldq): Ditto.
6032 (*vec_dupv4hi): Ditto.
6033 (*vec_dupv2si): Ditto.
6034 (mmx_pmovmskb): Ditto.
6035 * config/i386/sse.md (sse_cvtpi2ps): Use
6036 TARGET_SSE2 && SSE_REG_P in split condition.
6037 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
6038 TARGET_SSSE3 && SSE_REGNO_P in split condition.
6039 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
6040 (ssse3_pshufbv8qi3): Ditto.
6041 (ssse3_palignrdi): Ditto.
6042
6043 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
6044
6045 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
6046 with inlined save and restore.
6047
6048 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
6049
6050 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
6051 to be inserted on single successor edge of the entry block. Then call
6052 commit_edge_insertions instead of inserting the instructions manually.
6053 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
6054 RTL expansion and rebuild jump labels chain.
6055
6056 2019-07-02 Richard Biener <rguenther@suse.de>
6057
6058 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
6059 TI_CHREC_KNOWN.
6060 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6061 Define here.
6062 * tree.c (build_common_tree_nodes): Initialize them.
6063 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6064 Make declarations comments.
6065 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
6066 chrec_known): Remove definitions.
6067 (initialize_scalar_evolutions_analyzer): Remove.
6068 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
6069 * tree-streamer.c (preload_common_nodes): Do not preload
6070 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
6071
6072 2019-07-02 Jan Hubicka <jh@suse.cz>
6073
6074 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
6075 sanity check.
6076
6077 2019-07-02 Jan Hubicka <jh@suse.cz>
6078
6079 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
6080 to ..
6081 (nonoverlapping_component_refs_since_match_p): ... this one;
6082 handle also non-decl bases; return -1 if search gave up.
6083 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
6084 nonoverlapping_component_refs_of_decl_p_no_alias to
6085 nonoverlapping_component_refs_since_match_p_may_alias,
6086 nonoverlapping_component_refs_since_match_p_no_alias.
6087 (dump_alias_stats): Update dumping.
6088 (aliasing_matching_component_refs_p): Break out from ...;
6089 dispatch to nonoverlapping_component_refs_for_decl_p
6090 and nonoverlapping_component_refs_since_match_p.
6091 (aliasing_component_refs_p): ... here; call
6092 nonoverlapping_component_refs_p in scenarios where we can not
6093 precisely determine base match.
6094 (decl_refs_may_alias_p): Use
6095 nonoverlapping_component_refs_since_match_p.
6096 (indirect_ref_may_alias_decl_p): Do not call
6097 nonoverlapping_component_refs_p.
6098 (indirect_refs_may_alias_p): Likewise.
6099
6100 2019-07-02 Jan Hubicka <jh@suse.cz>
6101
6102 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
6103 to clobber of return value.
6104
6105 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6106
6107 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
6108 for is_neon_type instructions that have not already been categorized.
6109
6110 2019-07-02 Richard Biener <rguenther@suse.de>
6111
6112 PR tree-optimization/58483
6113 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
6114 for MEM_REF base hashing.
6115 (equal_mem_array_ref_p): Likewise for base comparison.
6116
6117 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6118
6119 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
6120 parameterized name.
6121 (signbit<mode>2): Use that name. Simplify.
6122
6123 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
6124
6125 PR middle-end/66726
6126 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
6127 Tune heuristic from PR71016 to allow MIN / MAX.
6128
6129 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6130
6131 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
6132 parameterized name.
6133 (abs<mode>2): Use that name. Simplify.
6134
6135 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6136
6137 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
6138 parameterized name.
6139 (neg<mode>2): Use that name. Simplify.
6140
6141 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6142
6143 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
6144 name.
6145 (abs<mode>2): Use that name. Simplify.
6146
6147 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6148
6149 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
6150 name.
6151 (neg<mode>2): Use that name. Simplify.
6152
6153 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
6154
6155 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
6156 ("enabled" attribute): Handle sse_noavx isa attribute.
6157 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
6158 Use TARGET_SSE && SSE_REGNO_P in split condition.
6159 (*vec_dupv2sf): Ditto.
6160
6161 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6162
6163 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
6164 name.
6165 (floatsi<mode>2): Use that name. Simplify.
6166
6167 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6168
6169 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
6170 parameterized name.
6171 (extenddf<mode>2_vsx): Make this a parameterized name.
6172 (extenddf<mode>2): Use those names. Simplify.
6173
6174 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6175
6176 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
6177 name.
6178 (eh_return): Use that name. Simplify.
6179
6180 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6181
6182 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
6183 (doloop_end): Use that name. Simplify.
6184
6185 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6186
6187 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
6188 parameterized name.
6189 (indirect_jump): Use that name. Simplify.
6190
6191 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6192
6193 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
6194 parameterized name.
6195 (abs<mode>2): Use that name. Simplify.
6196
6197 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6198
6199 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
6200 parameterized name.
6201 (fix_trunc<mode>si2): Use that name. Simplify.
6202
6203 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6204
6205 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
6206 (allocate_stack): Use that name. Simplify.
6207
6208 2019-07-01 Martin Sebor <msebor@redhat.com>
6209
6210 PR middle-end/90923
6211 * hash-map.h (hash_map::put): On insertion invoke element ctor.
6212 (hash_map::get_or_insert): Same. Reformat comment.
6213 * hash-set.h (hash_set::add): On insertion invoke element ctor.
6214 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6215 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6216 * hash-table.h (hash_table::operator=): Prevent copy assignment.
6217 (hash_table::hash_table (const hash_table&)): Use copy ctor
6218 instead of assignment to copy elements.
6219
6220 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
6221 John David Anglin <danglin@gcc.gnu.org>
6222
6223 PR target/90963
6224 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
6225 using saved frame pointer.
6226
6227 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
6228
6229 PR middle-end/64242
6230 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
6231 Add frame clobber and schedule blockage.
6232
6233 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
6234
6235 * doc/invoke.texi (Link Options): Further editorial changes to
6236 -flinker-output docs.
6237
6238 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6239
6240 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
6241 Load both operands of a PLUS into registers separately.
6242
6243 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
6244
6245 * config/s390/vector.md: Fix shift count operand printing.
6246
6247 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6248
6249 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
6250
6251 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6252
6253 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
6254 Use recog_data to test for an output operand.
6255
6256 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6257
6258 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
6259 exclude any others that are disparaged or that are bound to need
6260 a reload or spill.
6261 (ira_get_dup_out_num): Expand comment.
6262
6263 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6264
6265 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
6266 constraint string for each operand/alternative combo. Only handle
6267 '%' at the start of constraint strings, and look for it outside
6268 the main loop.
6269
6270 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6271
6272 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
6273 alternative_mask instead of HARD_REG_SET to represent a
6274 bitmask of alternatives.
6275 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
6276 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
6277
6278 2019-07-01 Martin Liska <mliska@suse.cz>
6279
6280 * edit-context.c (test_applying_fixits_unreadable_file): Do not
6281 use () for a constructor call.
6282 (test_applying_fixits_line_out_of_range): Likewise.
6283 * ggc-page.c (alloc_page): Use (void *) for %p printf format
6284 argument.
6285 (free_page): Likewise.
6286
6287 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
6288
6289 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
6290 parameter names to match usage (no functional change).
6291 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
6292
6293 2019-07-01 Richard Biener <rguenther@suse.de>
6294
6295 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
6296 pass parameter.
6297 (pass_fre::execute): Honor it.
6298 * passes.def: Adjust pass_fre invocations to allow iterating,
6299 add non-iterating pass_fre before late threading/dom.
6300
6301 2019-07-01 Richard Biener <rguenther@suse.de>
6302
6303 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
6304 TARGET_MEM_REF handling to also handle address-taken ones.
6305
6306 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
6307
6308 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6309 hardware attributes): Document avx512vp2intersect.
6310
6311 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6312
6313 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
6314 (abs<mode>2): New expander.
6315 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
6316 Use CODE_FOR_ssse3_absv8qi2.
6317 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
6318 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
6319
6320 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6321
6322 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
6323 to sse, sse_noavx and avx. Update all uses.
6324
6325 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6326
6327 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
6328 (*mmx_<plusminus_insn><mode>3): Ditto.
6329 (*mmx_mulv4hi3"): Ditto.
6330 (*mmx_smulv4hi3_highpart): Ditto.
6331 (*mmx_umulv4hi3_highpart): Ditto.
6332 (*mmx_pmaddwd): Ditto.
6333 (*sse2_umulv1siv1di3): Ditto.
6334 (*mmx_<code>v4hi3): Ditto.
6335 (*mmx_<code>v8qi3): Ditto.
6336 (mmx_ashr<mode>3): Ditto.
6337 ("mmx_<shift_insn><mode>3): Ditto.
6338 (*mmx_eq<mode>3): Ditto.
6339 (mmx_gt<mode>3): Ditto.
6340 (mmx_andnot<mode>3): Ditto.
6341 (*mmx_<code><mode>3): Ditto.
6342 (*mmx_pinsrw): Ditto.
6343 (*mmx_pextrw): Ditto.
6344 (mmx_pshufw_1): Ditto.
6345 (*mmx_uavgv8qi3): Ditto.
6346 (*mmx_uavgv4hi3): Ditto.
6347 ("mmx_psadbw): Ditto.
6348 * config/i386/sse.md (sse_cvtps2pi): Ditto.
6349 (sse_cvttps2pi): Ditto.
6350 (ssse3_pmaddubsw): Ditto.
6351 (*ssse3_pmulhrswv4hi3): Ditto.
6352 (ssse3_psign<mode>3): Ditto.
6353
6354 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
6355
6356 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
6357 adjustment for bit-fields to all aggregate types.
6358
6359 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
6360
6361 * config/rs6000/predicates.md (pcrel_address): Use
6362 SYMBOL_REF_LOCAL_P to determine if a label is local.
6363 (pcrel_external_address): New predicate.
6364 (non_prefixed_mem_operand): Delete, predicate not used.
6365 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
6366 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
6367 addressing.
6368 (SYMBOL_REF_PCREL_P): Likewise.
6369
6370 PR target/91009
6371 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
6372 alternative.
6373 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
6374 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
6375 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
6376
6377 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6378
6379 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
6380 override on extra_headers.
6381
6382 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6383
6384 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
6385 * config/darwin-driver.c (darwin_default_min_version): Remove newline
6386 from warning.
6387 (darwin_driver_init): Likewise.
6388
6389 2019-06-28 Jan Beulich <jbeulich@suse.com>
6390
6391 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6392 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
6393 Eliminate redundant alternative.
6394
6395 2019-06-28 Jan Beulich <jbeulich@suse.com>
6396
6397 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6398 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
6399 Use vector_operand.
6400
6401 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
6402
6403 * config/arc/arc.c (arc_rtx_costs): All short instructions are
6404 having a lower cost regardless of the speed option.
6405
6406 2019-06-28 Jan Beulich <jbeulich@suse.com>
6407
6408 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
6409 vector_operand plus, on both alternatives, "Bm" constraint.
6410
6411 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
6412
6413 * config/arm/arm.md: Remove redundant constraints from
6414 define_expand but leave reload_inm and reload_outm patterns
6415 untouched since they need special constraints to work.
6416 * config/arm/arm-fixed.md: Remove redundant constraints from
6417 define_expand.
6418 * config/arm/iwmmxt.md: Likewise.
6419 * config/arm/neon.md: Likewise.
6420 * config/arm/sync.md: Likewise.
6421 * config/arm/thumb1.md: Likewise.
6422 * config/arm/vec-common.md: Likewise.
6423
6424 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
6425
6426 * doc/install.texi: Document --disable-tm-clone-registry.
6427
6428 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6429
6430 PR c++/91024
6431 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
6432 statements.
6433
6434 PR tree-optimization/91010
6435 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
6436 return true. Otherwise, don't call operand_equal_p if offset1 or
6437 offset2 is NULL and just return false.
6438
6439 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6440
6441 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
6442 user-specified float mode choice for kernel mode code.
6443
6444 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6445
6446 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
6447 spec.
6448
6449 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6450
6451 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
6452 use longcall for 64b code.
6453
6454 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
6455
6456 * builtins.c (get_memory_rtx): Fix comment.
6457 * optabs.def (movmem_optab): Change to cpymem_optab.
6458 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
6459 (emit_block_move_hints): Change movmem to cpymem.
6460 * defaults.h: Change movmem to cpymem.
6461 * targhooks.c (get_move_ratio): Change movmem to cpymem.
6462 (default_use_by_pieces_infrastructure_p): Ditto.
6463 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
6464 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
6465 to cpymem.
6466 * config/aarch64/aarch64.h: Change movmem to cpymem.
6467 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
6468 * config/alpha/alpha.h: Change movmem to cpymem in comment.
6469 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
6470 movmem to cpymem.
6471 * config/arc/arc-protos.h: Change movmem to cpymem.
6472 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
6473 * config/arc/arc.h: Change movmem to cpymem in comment.
6474 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
6475 * config/arm/arm-protos.h: Change movmem to cpymem in names.
6476 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
6477 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
6478 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
6479 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
6480 * config/avr/avr-protos.h: Change movmem to cpymem.
6481 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
6482 avr_out_movmem): Change movmem to cpymem.
6483 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
6484 Change movmem to cpymem.
6485 * config/bfin/bfin-protos.h: Change movmem to cpymem.
6486 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
6487 Change movmem to cpymem.
6488 * config/bfin/bfin.h: Change movmem to cpymem in comment.
6489 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
6490 * config/c6x/c6x-protos.h: Change movmem to cpymem.
6491 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
6492 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
6493 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
6494 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
6495 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
6496 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
6497 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
6498 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
6499 expand_small_cpymem_or_setmem,
6500 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
6501 expand_set_or_cpymem_constant_prologue,
6502 ix86_expand_set_or_cpymem): Change movmem to cpymem.
6503 * config/i386/i386-protos.h: Change movmem to cpymem.
6504 * config/i386/i386.h: Change movmem to cpymem in comment.
6505 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
6506 (setmem<mode>): Change expansion function name.
6507 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
6508 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
6509 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
6510 * config/m32c/m32c-protos.h: Change movmem to cpymem.
6511 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
6512 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
6513 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
6514 to cpymem.
6515 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
6516 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
6517 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
6518 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
6519 Change movmem to cpymem.
6520 * config/mips/mips.h: Change movmem to cpymem.
6521 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
6522 * config/nds32/nds32-memory-manipulation.c
6523 (nds32_expand_movmemsi_loop_unknown_size,
6524 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
6525 nds32_expand_movmemsi_unroll,
6526 nds32_expand_movmemsi): Change movmem to cpymem.
6527 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
6528 * config/nds32/nds32-protos.h: Change movmem to cpymem.
6529 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
6530 (pa_adjust_insn_length): Change call to compute_movmem_length.
6531 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
6532 movmemdi, movmemdi_prereload,
6533 movmemdi_postreload): Change movmem to cpymem.
6534 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
6535 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
6536 * config/riscv/riscv.c: Change movmem to cpymem in comment.
6537 * config/riscv/riscv.h: Change movmem to cpymem.
6538 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
6539 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
6540 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
6541 movmem to cpymem.
6542 * config/s390/s390-protos.h: Change movmem to cpymem.
6543 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
6544 s390_expand_insv): Change movmem to cpymem.
6545 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
6546 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
6547 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
6548 * config/sparc/sparc.h: Change movmem to cpymem in comment.
6549 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
6550 for nonexistent function.
6551 * config/vax/vax.h: Change movmem to cpymem in comment.
6552 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
6553 * config/visium/visium.h: Change movmem to cpymem in comment.
6554 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
6555 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
6556 * doc/md.texi: Change movmem to cpymem and update description to match.
6557 * doc/rtl.texi: Change movmem to cpymem.
6558 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
6559 * doc/tm.texi: Regenerate.
6560
6561 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
6562
6563 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6564 -fvariable-expansion-in-unroller by default.
6565 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
6566 default for Power.
6567
6568 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
6569
6570 Revert
6571 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6572 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6573
6574 * config.gcc(rs6000-*-*): Define target_gtfiles.
6575
6576 2019-06-27 Jan Hubicka <jh@suse.cz>
6577
6578 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
6579 (add_type_duplicate): When odr hash is not allocated, to nothing.
6580 (odr_based_tbaa_p): New function.
6581 (set_type_canonical_for_odr_type): New function.
6582 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
6583 set_type_canonical_for_odr_type): New.
6584 * tree.c (gimple_canonical_types_compatible_p): ODR types with
6585 ODR based TBAA are not equivalent to non-ODR types.
6586
6587 2019-06-27 Martin Liska <mliska@suse.cz>
6588
6589 PR tree-optimization/90974
6590 PR rtl-optimization/90975
6591 PR rtl-optimization/90976
6592 PR target/91016
6593 PR tree-optimization/91017
6594 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
6595 unused tmp.
6596 * lra.c (lra_set_insn_recog_data): Remove a leftover from
6597 initial commit of IRA.
6598 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
6599 of op0 and op1.
6600 * tree-vect-loop.c (vect_create_epilog_for_reduction):
6601 Remove unused mode1.
6602 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
6603 to new_stmt_info.
6604
6605 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6606
6607 PR target/90991
6608 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
6609 instead of register_operand for operands[1], add m to its constraints
6610 if operands[2] uses "C" constraint. Ensure in condition that if
6611 operands[2] is not 0, then operands[1] is not a MEM. For last two
6612 alternatives, use unaligned loads instead of aligned if operands[1] is
6613 misaligned_operand.
6614
6615 2019-06-27 Martin Liska <mliska@suse.cz>
6616
6617 * asan.c (asan_emit_allocas_unpoison): Remove obviously
6618 dead assignments.
6619 * bt-load.c (move_btr_def): Likewise.
6620 * builtins.c (expand_builtin_apply_args_1): Likewise.
6621 (expand_builtin_apply): Likewise.
6622 * cfgexpand.c (expand_asm_stmt): Likewise.
6623 (construct_init_block): Likewise.
6624 * cfghooks.c (verify_flow_info): Likewise.
6625 * cfgloopmanip.c (remove_path): Likewise.
6626 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
6627 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
6628 * combine.c (simplify_if_then_else): Likewise.
6629 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6630 (choose_basereg): Likewise.
6631 (ix86_expand_prologue): Likewise.
6632 (ix86_preferred_output_reload_class): Likewise.
6633 * cselib.c (cselib_record_sets): Likewise.
6634 * df-scan.c (df_scan_alloc): Likewise.
6635 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
6636 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
6637 * emit-rtl.c (try_split): Likewise.
6638 * graphite-scop-detection.c (assign_parameter_index_in_region):
6639 Likewise.
6640 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
6641 * ira-color.c (setup_profitable_hard_regs): Likewise.
6642 * ira.c (rtx_moveable_p): Likewise.
6643 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6644 * read-rtl.c (read_subst_mapping): Likewise.
6645 * regrename.c (scan_rtx): Likewise.
6646 * reorg.c (fill_slots_from_thread): Likewise.
6647 * tree-inline.c (tree_function_versioning): Likewise.
6648 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
6649 * tree-ssa-sink.c (statement_sink_location): Likewise.
6650 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6651 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
6652 (vect_create_epilog_for_reduction): Likewise.
6653 * tree.c (build_nonstandard_integer_type): Likewise.
6654
6655 2019-06-27 Richard Biener <rguenther@suse.de>
6656
6657 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
6658
6659 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
6660
6661 PR tree-optimization/89772
6662 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
6663 out-of-bound accesses checking.
6664
6665 2019-06-27 Martin Liska <mliska@suse.cz>
6666
6667 PR tree-optimization/91014
6668 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
6669 when LHS is NULL_TREE.
6670
6671 2019-06-27 Martin Liska <mliska@suse.cz>
6672
6673 * symbol-summary.h (traverse): Pass
6674 argument a to the call of callback.
6675 (gt_ggc_mx): Mark arguments as unused.
6676 (gt_pch_nx): Likewise.
6677
6678 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
6679
6680 PR target/62147
6681 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
6682 finiteness.
6683
6684 2019-06-26 Jeff Law <law@redhat.com>
6685
6686 PR tree-optimization/90883
6687 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
6688 (delete_dead_or_redundant_assignment): Likewise.
6689
6690 PR tree-optimization/90883
6691 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
6692 * tree-ssa-dse.c: Update various comments to distinguish between
6693 dead and redundant stores.
6694 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
6695 (dse_optimize_redundant_stores): New function.
6696 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
6697 Distinguish between dead and redundant calls in dump output. All
6698 callers updated.
6699 (delete_dead_or_redundant_assignment): Similarly for assignments.
6700 (dse_optimize_stmt): Handle _CHK variants. For statements which
6701 store 0 into multiple memory locations, try to prove a subsequent
6702 store is redundant.
6703
6704 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
6705
6706 PR target/89021
6707 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
6708 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
6709
6710 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6711
6712 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
6713 (branch_islands): New extern.
6714 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
6715 * config/rs6000/rs6000.c: .. here.
6716
6717 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6718
6719 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
6720 (powerpc*-*-*) ... to here.
6721
6722 2019-06-26 Jeff Law <law@redhat.com>
6723
6724 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
6725 memcpy, memmove and memset builtins.
6726 (maybe_trim_memstar_call): Likewise.
6727
6728 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6729
6730 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
6731
6732 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6733
6734 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6735
6736 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6737
6738 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
6739 declaration.
6740 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
6741 "static".
6742 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
6743 declaration.
6744
6745 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6746
6747 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
6748
6749 2019-06-26 Richard Biener <rguenther@suse.de>
6750
6751 PR ipa/90982
6752 * tree-inline.c (remap_ssa_name): Copy SSA range info.
6753
6754 2019-06-26 Richard Biener <rguenther@suse.de>
6755
6756 * lto-streamer.h (lto_bitmap_alloc): Remove.
6757 (lto_bitmap_free): Likewise.
6758 * lto-streamer.c (lto_bitmap_alloc): Remove.
6759 (lto_bitmap_free): Likewise.
6760 (lto_obstack): Likewise.
6761 (lto_obstack_initialized): Likewise.
6762 * lto-streamer-out.c (lto_output): Use own obstack for local
6763 bitmap, free it consistently.
6764
6765 2019-06-26 Jakub Jelinek <jakub@redhat.com>
6766
6767 PR target/90991
6768 * config/i386/sse.md
6769 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
6770 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
6771 insns if operands[2] is misaligned_operand.
6772
6773 2019-06-26 Li Jia He <helijia@linux.ibm.com>
6774
6775 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
6776 TARGET_POWERPC64.
6777 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
6778 to GPR.
6779
6780 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6781
6782 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
6783
6784 2019-06-26 Martin Liska <mliska@suse.cz>
6785
6786 PR tree-optimization/90973
6787 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
6788 epilogue_cost_vec instead of prologue_cost_vec for
6789 a epilogue cost.
6790
6791 2019-06-26 Martin Liska <mliska@suse.cz>
6792
6793 * bb-reorder.c (connect_better_edge_p): Add missing else
6794 statement in the middle of if-else statements.
6795
6796 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
6797 H.J. Lu <hongjiu.lu@intel.com>
6798 Olga Makhotina <olga.makhotina@intel.com>
6799
6800 * common/config/i386/i386-common.c
6801 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
6802 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
6803 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
6804 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
6805 (ix86_handle_option): Handle -mavx512vp2intersect.
6806 * config/i386/avx512vp2intersectintrin.h: New.
6807 * config/i386/avx512vp2intersectvlintrin.h: New.
6808 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
6809 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6810 AVX512VP2INTERSECT.
6811 * config/i386/i386-builtin-types.def: Add new types.
6812 * config/i386/i386-builtin.def: Add new builtins.
6813 * config/i386/i386-builtins.c: (enum processor_features): Add
6814 F_AVX512VP2INTERSECT.
6815 (static const _isa_names_table isa_names_table): Ditto.
6816 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6817 __AVX512VP2INTERSECT__.
6818 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
6819 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
6820 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
6821 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
6822 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
6823 * config/i386/i386-options.c (ix86_target_string): Add
6824 -mavx512vp2intersect.
6825 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
6826 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
6827 P2HImode and P2QImode.
6828 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
6829 number for P2QImode and P2HImode.
6830 (ix86_regmode_natural_size): New function.
6831 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
6832 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
6833 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
6834 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
6835 * config/i386/i386.opt: Add -mavx512vp2intersect.
6836 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
6837 avx512vp2intersectvlintrin.h.
6838 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
6839 (define_mode_iterator VI48_AVX512VP2VL): New.
6840 (avx512vp2intersect_2intersect<mode>,
6841 avx512vp2intersect_2intersectv16si): New define_insn patterns.
6842 * config.gcc: Add avx512vp2intersectvlintrin.h and
6843 avx512vp2intersectintrin.h to extra_headers.
6844 * doc/invoke.texi: Document -mavx512vp2intersect.
6845
6846 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
6847
6848 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
6849
6850 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6851
6852 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
6853 savres_routine_syms, savres_routine_name, morestack_ref,
6854 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6855 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6856 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6857 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6858 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6859 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6860 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6861 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6862 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6863 get_stack_clash_protection_probe_interval,
6864 get_stack_clash_protection_guard_size,
6865 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6866 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6867 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6868 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6869 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6870 gen_frame_mem_offset, rs6000_savres_routine_name,
6871 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6872 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6873 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6874 rs6000_global_entry_point_prologue_needed_p,
6875 rs6000_get_separate_components, rs6000_components_for_bb,
6876 rs6000_disqualify_components, rs6000_emit_prologue_components,
6877 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6878 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6879 rs6000_output_savres_externs, rs6000_output_function_prologue,
6880 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6881 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6882 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6883 rs6000_output_function_epilogue, gen_add3_const,
6884 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6885 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6886 to rs6000-logue.c.
6887 (machine_function): Moved to rs6000.h.
6888 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
6889 rs6000-internal.h.
6890 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
6891 savres_routine_syms, savres_routine_name, morestack_ref,
6892 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6893 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6894 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6895 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6896 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6897 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6898 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6899 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6900 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6901 get_stack_clash_protection_probe_interval,
6902 get_stack_clash_protection_guard_size,
6903 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6904 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6905 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6906 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6907 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6908 gen_frame_mem_offset, rs6000_savres_routine_name,
6909 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6910 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6911 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6912 rs6000_global_entry_point_prologue_needed_p,
6913 rs6000_get_separate_components, rs6000_components_for_bb,
6914 rs6000_disqualify_components, rs6000_emit_prologue_components,
6915 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6916 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6917 rs6000_output_savres_externs, rs6000_output_function_prologue,
6918 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6919 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6920 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6921 rs6000_output_function_epilogue, gen_add3_const,
6922 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6923 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6924 to here from rs6000.c.
6925 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
6926 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
6927 quad_address_offset_p) Moved to here from rs6000.c.
6928 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
6929 * config/config.gcc: Add new source file rs6000-logue.c to garbage
6930 collector.
6931
6932 2019-06-25 Martin Liska <mliska@suse.cz>
6933
6934 * hash-table.c (hashtab_chk_error): Move here from ...
6935 * hash-table.h (hashtab_chk_error): ... here.
6936
6937 2019-06-25 Martin Liska <mliska@suse.cz>
6938
6939 PR tree-optimization/90978
6940 * df-scan.c (df_update_entry_block_defs): Remove dead else
6941 branch.
6942 (df_update_exit_block_uses): Likewise.
6943
6944 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6945 Andrew Stubbs <ams@codesourcery.com>
6946
6947 * config.gcc (thread_file): Set to gcn for AMD GCN.
6948 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
6949 (TARGET_EMUTLS_VAR_INIT): New hook.
6950
6951 2019-06-25 Martin Jambor <mjambor@suse.cz>
6952
6953 PR ipa/90939
6954 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
6955
6956 2019-06-25 Richard Biener <rguenther@suse.de>
6957
6958 PR tree-optimization/90930
6959 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
6960 into parallel form in the last pass instance.
6961
6962 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
6963
6964 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
6965 (arc_legitimize_pic_address): Simplify and cleanup the function.
6966 (SYMBOLIC_CONST): Remove.
6967 (prepare_pic_move): Likewise.
6968 (prepare_move_operands): Handle complex mov cases here.
6969 (arc_legitimize_address_0): Remove call to
6970 arc_legitimize_pic_address.
6971 (arc_legitimize_address): Remove call to
6972 arc_legitimize_tls_address.
6973 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
6974 (movhi_insn): Likewise.
6975
6976 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6977
6978 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
6979 PTRDIFF_TYPE.
6980 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
6981 format of "__intN" types for UINTMAX_TYPE.
6982 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
6983 format of "__intN" types for SIZETYPE.
6984 * tree.c (build_common_tree_nodes): Accept "__intN__"
6985 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
6986 * doc/invoke.texi: Document that __intN__ disables pedantic
6987 warnings.
6988
6989 2019-06-25 Jan Hubicka <jh@suse.cz>
6990
6991 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
6992 base2_alias_set is non-zero before doing TBAA based disambiguation.
6993
6994 2019-06-25 Martin Liska <mliska@suse.cz>
6995
6996 PR tree-optimization/90973
6997 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
6998 of prologue and epilogue.
6999
7000 2019-06-24 Jan Hubicka <jh@suse.cz>
7001
7002 * ipa-utils.h (type_with_linkage_p): Verify that type is
7003 CXX_ODR_P.
7004 (odr_type_p): Remove extra return.
7005 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
7006 hash STRING_FLAG only for arrays and integers.
7007 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
7008 Update analogously.
7009 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7010 Likewise.
7011 * print-tree.c (print_node): Print cxx-odr-p
7012 and string-flag.
7013 * tree.c (need_assembler_name_p): Also check that type
7014 is CXX_ODR_TYPE_P
7015 (verify_type_variant): Update verification of SRING_FLAG;
7016 also check CXX_ODR_P.
7017 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
7018 (TYPE_STRING_FLAG): Use it.
7019 (TYPE_CXX_ODR_P): New macro.
7020 * dwarf2out.c (gen_array_type_die): First check that type
7021 is an array and then test string flag.
7022
7023 2019-06-24 Richard Biener <rguenther@suse.de>
7024
7025 PR tree-optimization/90972
7026 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
7027 in common code, dealing with STRING_CST properly.
7028
7029 2019-06-24 Richard Biener <rguenther@suse.de>
7030
7031 PR tree-optimization/90930
7032 PR tree-optimization/90316
7033 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
7034 decrement of limit.
7035
7036 2019-06-24 Martin Sebor <msebor@redhat.com>
7037
7038 * tree-pretty-print.h: Remove unnecessary punctuation characters
7039 from a diagnostic.
7040 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
7041
7042 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
7043
7044 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
7045 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
7046 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
7047
7048 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7049
7050 * config/rs6000/darwin.h: Handle GCC target pragma.
7051
7052 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7053
7054 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
7055
7056 2019-06-22 Jeff Law <law@redhat.com>
7057
7058 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7059
7060 2019-06-22 Jan Hubicka <jh@suse.cz>
7061
7062 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
7063 give up on bitfields; continue searching for different refs
7064 appearing later.
7065
7066 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7067
7068 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7069 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
7070 containing the offset as possible simd lane access. Look through
7071 widening conversion. Move the
7072 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
7073
7074 2019-06-21 Richard Biener <rguenther@suse.de>
7075
7076 PR tree-optimization/90930
7077 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
7078 flag on new stmts to avoid re-processing them.
7079
7080 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
7081
7082 PR c++/90875 - added -Wswitch-outside-range option
7083 * doc/invoke.texi (Wswitch-outside-range): Document.
7084
7085 2019-06-21 Jeff Law <law@redhat.com>
7086
7087 PR tree-optimization/90949
7088 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
7089 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
7090
7091 2019-06-21 Richard Biener <rguenther@suse.de>
7092
7093 PR debug/90914
7094 * dwarf2out.c (prune_unused_types_walk): Always consider
7095 function-local extern declarations as used.
7096
7097 2019-06-21 Richard Biener <rguenther@suse.de>
7098
7099 PR tree-optimization/90913
7100 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
7101 the scalar variant of if-conversion versioning.
7102
7103 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7104
7105 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
7106 create another "omp scan inscan exclusive" array if
7107 !ctx->scan_inclusive.
7108 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
7109 (lower_omp_scan): Likewise.
7110 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
7111 2-bit bitfield for simd_lane_access_p member.
7112 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
7113 aux == (void *)-4 as simd lane access.
7114 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
7115 comment with permutations to show the canonical permutation order.
7116 (vectorizable_scan_store): Handle exclusive scan.
7117 (vectorizable_store): Call vectorizable_scan_store even for
7118 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
7119
7120 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7121 "omp simd array" arrays with one byte elements.
7122
7123 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
7124
7125 * config/alpha/alpha.md (@unaligned_store<mode>):
7126 Rename from unaligned_store<mode>.
7127 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
7128 * config/alpha/sync.md (@load_locked_<mode>): Rename
7129 from load_locked_<mode>.
7130 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
7131 (@atomic_compare_and_swap<mode>_1): Rename
7132 from atomic_compare_and_swap<mode>_1.
7133 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
7134 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
7135 Use gen_reload_in_aligned and gen_unaligned_store.
7136 (emit_load_locked): Remove.
7137 (emit_store_conditional): Ditto.
7138 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
7139 (alpha_split_compare_and_swap): Ditto.
7140 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
7141 (alpha_split_compare_and_swap_12): Use gen_load_locked
7142 and gen_store_conditional.
7143 (alpha_split_atomic_exchange): Ditto.
7144 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
7145 (alpha_split_atomic_exchange_12): Use gen_load_locked
7146 and gen_store_conditional.
7147
7148 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
7149
7150 * config/aarch64/aarch64-errata.h: New file.
7151 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
7152 (CA53_ERR_843419_SPEC): Delete.
7153 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
7154 * config/aarch64/aarch64-linux.h: Likewise.
7155 * config/aarch64/aarch64-netbsd.h: Likewise.
7156 * config/aarch64/aarch64-freebsd.h: Likewise.
7157
7158 2019-06-20 Marek Polacek <polacek@redhat.com>
7159
7160 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
7161
7162 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
7163
7164 * config/rs6000/rs6000.md (isa attribute): Add support for
7165 for a future processor.
7166
7167 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
7168
7169 PR target/54855
7170 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
7171 standard scalar operation pattern for V2DF.
7172 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
7173 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
7174 (*ieee_<ieee_maxmin><mode>3): Likewise.
7175 (vec_setv2df_0): Likewise.
7176
7177 2019-06-20 Jan Hubicka <jh@suse.cz>
7178
7179 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
7180 parameter; it has no use in gimple memory model.
7181 (indirect_ref_may_alias_decl_p): Update.
7182
7183 2019-06-20 Martin Liska <mliska@suse.cz>
7184
7185 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
7186 to 10.
7187
7188 2019-06-20 Jakub Jelinek <jakub@redhat.com>
7189
7190 * tree-vect-stmts.c (enum scan_store_kind): New type.
7191 (scan_store_can_perm_p): Change last argument from int * to
7192 vec<enum scan_store_kind> *, record precisely which permutations
7193 need whole vector left shift or that plus VEC_COND_EXPR.
7194 (vectorizable_scan_store): Adjust caller, use whole vector left shift
7195 and additional VEC_COND_EXPR only for those iterations that need it.
7196
7197 2019-06-20 Alexandre Oliva <oliva@adacore.com>
7198
7199 * config.gcc: Fix ARM --with-fpu checking and error message.
7200
7201 2019-06-19 Marek Polacek <polacek@redhat.com>
7202
7203 PR c++/60364 - noreturn after first decl not diagnosed.
7204 * attribs.c (get_attribute_namespace): No longer static.
7205 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
7206 attributes.
7207 (attr_noreturn_exclusions): Make it extern.
7208 * attribs.h (get_attribute_namespace): Declare.
7209 * tree-inline.c (function_attribute_inlinable_p): Use
7210 get_attribute_name.
7211
7212 2019-06-19 Martin Sebor <msebor@redhat.com>
7213
7214 PR tree-optimization/90626
7215 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
7216
7217 PR tree-optimization/90626
7218 * tree-ssa-strlen.c (strxcmp_unequal): New function.
7219 (handle_builtin_string_cmp): Call it.
7220
7221 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7222
7223 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
7224 and DARWIN_NOPIE_SPEC.
7225 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
7226 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
7227 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
7228 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
7229 (DARWIN_EXPORT_DYNAMIC): Delete.
7230 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
7231 and pie options processing to darwin.h.
7232 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
7233
7234 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7235
7236 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
7237 in computing the number of options to be moved.
7238
7239 2019-06-19 Maya Rashish <coypu@sdf.org>
7240
7241 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
7242 (CLEAR_INSN_CACHE) Use it.
7243
7244 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
7245
7246 * config/i386/i386.md (cmpstrnsi): Remove dead code.
7247
7248 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
7249
7250 PR middle-end/84521
7251 * builtins.c (expand_builtin_setjmp_setup): Save
7252 hard_frame_pointer_rtx.
7253 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
7254 restore fp.
7255 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
7256 non-local goto.
7257 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
7258 elimination code.
7259 (remove_reg_equal_offset_note): Remove unused function.
7260 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
7261 code.
7262 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7263 (arc_builtin_setjmp_frame_value): Remove function.
7264 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7265 (avr_builtin_setjmp_frame_value): Remove function.
7266 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7267 (ix86_builtin_setjmp_frame_value): Remove function.
7268 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
7269 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7270 (sparc_builtin_setjmp_frame_value): Remove function.
7271 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7272 (vax_builtin_setjmp_frame_value): Remove function.
7273 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
7274 pointer if has_nonlocal_label.
7275
7276 2019-06-19 Jakub Jelinek <jakub@redhat.com>
7277
7278 * doc/md.texi: Document vec_shl_<mode> pattern.
7279 * optabs.def (vec_shl_optab): New optab.
7280 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
7281 argument, if == vec_shl_optab, check for left whole vector shift
7282 pattern rather than right shift.
7283 (expand_vec_perm_const): Add vec_shl_optab support.
7284 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
7285 in the comment.
7286 * tree-vect-generic.c (lower_vec_perm): Support permutations which
7287 can be handled by vec_shl_optab.
7288 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
7289 (check_scan_store): Use it.
7290 (vectorizable_scan_store): If target can't do normal permutations,
7291 try to use whole vector left shifts and if needed a VEC_COND_EXPR
7292 after it.
7293 * config/i386/sse.md (vec_shl_<mode>): New expander.
7294
7295 * omp-low.c (lower_rec_input_clauses): Handle references properly
7296 in inscan clauses.
7297 (lower_omp_scan): Likewise.
7298
7299 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7300
7301 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
7302 mem_mode is BLKmode.
7303
7304 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
7305
7306 PR target/90922
7307 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
7308 pointer adjustment for the case of no callee-saved registers and
7309 stack frame bigger than 128 bytes.
7310
7311 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7312
7313 PR middle-end/90862
7314 * omp-low.c (check_omp_nesting_restrictions): Handle
7315 GF_OMP_TARGET_KIND_OACC_DECLARE.
7316
7317 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
7318
7319 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
7320 (@add<mode>3_carry): Rename from add<mode>3_carry.
7321 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
7322 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
7323 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
7324 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
7325 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
7326 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
7327 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
7328 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
7329 (cmpstrnsi): Use gen_cmp_1.
7330 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
7331 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
7332 (@umonitor_<mode>): Rename from umonitor_<mode>.
7333 * config/i386/i386-expand.c (ix86_expand_copysign):
7334 Use gen_copysign3_const and gen_copysign3_var.
7335 (ix86_expand_xorsign): Use gen_xorsign3_1.
7336 (ix86_expand_branch): Use gen_sub3_carry_ccc,
7337 gen_sub3_carry_ccgz and gen_cmp1.
7338 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
7339 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
7340 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
7341 (ix86_split_lshr): Ditto.
7342 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
7343
7344 2019-06-18 Jason Merrill <jason@redhat.com>
7345
7346 * tree.c (build_constructor): Add MEM_STAT_DECL.
7347
7348 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7349
7350 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
7351 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
7352 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
7353 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
7354 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
7355 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
7356 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
7357 Use CC_NZC instead of CC.
7358 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
7359 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
7360 (aarch64_print_operand): Handle E_CC_NZCmode.
7361 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
7362 of gen_set_clobber_cc.
7363
7364 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7365
7366 * config/aarch64/aarch64-sve.md: Tabify file.
7367
7368 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7369
7370 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
7371 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
7372 * config/aarch64/aarch64-sve.md: Use it.
7373
7374 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7375
7376 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
7377 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
7378 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
7379 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
7380 (aarch64_expand_sve_vec_cmp_int): Use it.
7381 (aarch64_expand_sve_vec_cmp_float): Likewise.
7382 * config/aarch64/aarch64-sve.md: Likewise throughout.
7383
7384 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7385 Kugan Vivekanandarajah <kuganv@linaro.org>
7386
7387 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
7388 (*cond_<optab><mode>_z): Fold into...
7389 (*cond_<optab><mode>_any): ...here. Also handle cases in which
7390 operand 4 can be tied to operand 0 (either inherently or via RA).
7391
7392 2019-06-18 Richard Biener <rguenther@suse.de>
7393
7394 PR debug/90900
7395 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
7396 as if optimized away.
7397
7398 2019-06-18 Tom de Vries <tdevries@suse.de>
7399
7400 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
7401 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
7402 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
7403 Rename to ...
7404 (define_insn "@set_softstack_<mode>"): ... this.
7405 (define_insn "omp_simt_enter_<mode>"): Rename to ...
7406 (define_insn "@omp_simt_enter_<mode>"): ... this.
7407 (define_insn "omp_simt_exit_<mode>"): Rename to ...
7408 (define_insn "@omp_simt_exit_<mode>"): ... this.
7409
7410 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7411
7412 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
7413 vf parameter. Restore the previous iv step of nscalars_step,
7414 but give it iv_type rather than compare_type. Tweak code order
7415 to match the comments.
7416 (vect_set_loop_condition_masked): Update accordingly.
7417 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
7418 for iv_precision. Tweak comment formatting.
7419
7420 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7421
7422 * config/darwin.c: Strip trailing whitespace.
7423
7424 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7425
7426 * config/darwin.c (darwin_emit_unwind_label): New default to false.
7427 (darwin_override_options): Set darwin_emit_unwind_label as needed.
7428
7429 2019-06-18 Martin Jambor <mjambor@suse.cz>
7430
7431 PR ipa/90889
7432 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
7433 caller does not have flag_ipa_cp set.
7434
7435 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7436
7437 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
7438 from "*fold_left_plus_<mode>", updated operands order.
7439 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
7440 * internal-fn.c (mask_fold_left_direct): New define.
7441 (expand_mask_fold_left_optab_fn): Likewise.
7442 (direct_mask_fold_left_optab_supported_p): Likewise.
7443 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
7444 * optabs.def (mask_fold_left_plus_optab): New optab.
7445 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
7446 masked internal_fn for a reduction ifn.
7447 (vectorize_fold_left_reduction): Add support for masking reductions.
7448
7449 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
7450
7451 PR middle-end/80791
7452 * target.def (predict_doloop_p): New hook.
7453 * targhooks.h (default_predict_doloop_p): New declaration.
7454 * targhooks.c (default_predict_doloop_p): New function.
7455 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
7456 * doc/tm.texi: Regenerate.
7457 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
7458 (TARGET_PREDICT_DOLOOP_P): New macro.
7459 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
7460
7461 2019-06-17 Jakub Jelinek <jakub@redhat.com>
7462
7463 * omp-low.c (struct omp_context): Add scan_inclusive field.
7464 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
7465 if inclusive scan.
7466 (struct omplow_simd_context): Add lastlane member.
7467 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
7468 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
7469 1 or 2 argument.
7470 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
7471 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
7472 (lower_omp_scan): New function.
7473 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
7474 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
7475 check 3rd argument if present rather than 2nd.
7476 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
7477 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
7478 2-bit bitfield.
7479 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7480 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
7481 than 2nd.
7482 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
7483 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
7484 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
7485 init.
7486 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
7487 IFN_GOMP_SIMD_LANE argument.
7488 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
7489 encoded ->aux value.
7490 * tree-vect-stmts.c: Include attribs.h.
7491 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
7492 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
7493 functions.
7494 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
7495 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
7496
7497 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
7498
7499 PR target/62055
7500 * config/i386/i386.md (*nabstf2_1): New insn pattern.
7501 (*nabs<mode>2_1): Ditto.
7502 (nabs sse-reg splitter): New splitter.
7503 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
7504
7505 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7506
7507 PR bootstrap/90873.
7508 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7509 TMR index check.
7510
7511 2019-06-17 Tom de Vries <tdevries@suse.de>
7512
7513 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
7514 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
7515 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
7516 ...
7517 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
7518 match_operand 0.
7519 (define_insn "omp_simt_enter_insn"): Rename to ...
7520 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
7521 match_operand 0, 1 and 2, as well as the unspec_volatile result.
7522 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
7523 gen_omp_simt_enter_si.
7524 (define_expand "omp_simt_exit"): New.
7525 (define_insn "omp_simt_exit"): Rename to ...
7526 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
7527 match_operand 0.
7528
7529 2019-06-17 Matthew Green <mrg@eterna.com.au>
7530 Maya Rashish <coypu@sdf.org>
7531
7532 * config.gcc (aarch64*-*-netbsd*): New target.
7533 * config/aarch64/aarch64-netbsd.h: New file.
7534 * config/aarch64/t-aarch64-netbsd: Likewise.
7535
7536 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7537
7538 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
7539 the access path from base to first VIEW_CONVERT_EXPR or
7540 BIT_FIELD_REF.
7541
7542 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7543
7544 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
7545 access path on BIT_FIELD_REFs.
7546
7547 2019-06-17 Martin Liska <mliska@suse.cz>
7548
7549 PR ipa/90874
7550 * ipa-utils.h (odr_type_p): Remove dead code.
7551
7552 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7553
7554 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
7555 alternative Solaris 11.4 format.
7556 * configure: Regenerate.
7557
7558 2019-06-17 Tom de Vries <tdevries@suse.de>
7559
7560 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
7561 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
7562 match_operand 0.
7563 (define_insn "call_value_insn"): Rename to ...
7564 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
7565 match_operand 0.
7566 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
7567 DI.
7568
7569 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
7570
7571 PR middle-end/64242
7572 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
7573 frame clobbers and schedule block.
7574 (builtin_longjmp): Likewise.
7575
7576 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7577
7578 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
7579 describe how to perform MSPABI compliant 64-bit shift.
7580 * config/msp430/msp430.md (ashldi3): New define_expand.
7581 (ashrdi3): New define_expand.
7582 (lshrdi3): New define_expand.
7583
7584 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7585
7586 * doc/sourcebuild.texi: Document new effective target keyword
7587 longlong64.
7588
7589 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7590
7591 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
7592 indirect_refs_may_alias_p): Revert accidental commits.
7593
7594 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
7595 at the end of structures.
7596
7597 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7598
7599 * config/darwin.c (machopic_indirect_call_target): Use renamed
7600 darwin_picsymbol_stubs to decide on output.
7601 (darwin_override_options): Handle darwin_picsymbol_stubs.
7602 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
7603 (LD64_VERSION): Revise default.
7604 * config/darwin.opt: (mpic-symbol-stubs): New option.
7605 (darwin_picsymbol_stubs): New variable.
7606 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
7607 rename to TARGET_MACHO_PICSYM_STUBS.
7608 * config/i386/i386.c (output_pic_addr_const): Likewise.
7609 * config/i386/i386.h Likewise.
7610 * config/rs6000/darwin.h: Likewise.
7611 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
7612 darwin_picsymbol_stubs.
7613
7614 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7615
7616 * config/darwin.opt (prebind, noprebind, seglinkedit,
7617 noseglinkedit): Add RejectNegative.
7618
7619 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7620
7621 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
7622 in my previous patch.
7623
7624 2019-06-16 Tom de Vries <tdevries@suse.de>
7625
7626 PR tree-optimization/89376
7627 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
7628
7629 2019-06-15 Maya Rashish <coypu@sdf.org>
7630
7631 * doc/invoke.texi (Spec Files): Update location of the
7632 Fortran spec file.
7633
7634 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
7635
7636 * doc/extend.texi (Common Function Attributes): Clarify
7637 no_sanitize. Fix grammar.
7638
7639 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
7640
7641 * tree-ssa-alias.c (alias_stats): Add
7642 nonoverlapping_component_refs_p_may_alias,
7643 nonoverlapping_component_refs_p_no_alias,
7644 nonoverlapping_component_refs_of_decl_p_may_alias,
7645 nonoverlapping_component_refs_of_decl_p_no_alias.
7646 (dump_alias_stats): Dump them.
7647 (nonoverlapping_component_refs_of_decl_p): Add stats.
7648 (nonoverlapping_component_refs_p): Add stats; do not stop on first
7649 ARRAY_REF.
7650
7651 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
7652
7653 * config/i386/i386.md (and<mode>3): Generate zero-extends for
7654 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
7655 only.
7656 (*anddi3_doubleword): Split before reload. Merge with
7657 anddi->zext pre-reload splitter.
7658 (*andndi3_doubleword): Split before reload.
7659 (*<code>di3_doubleword): Ditto.
7660 (*one_cmpldi2_doubleword): Ditto.
7661
7662 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7663
7664 PR middle-end/90779
7665 * gimplify.c: Include omp-offload.h and context.h.
7666 (gimplify_bind_expr): Add "omp declare target" attributes
7667 to static block scope variables inside of target region or target
7668 functions.
7669
7670 2019-06-15 Tom de Vries <tdevries@suse.de>
7671
7672 PR tree-optimization/90009
7673 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
7674 Return NULL if bb contains IFN_UNIQUE.
7675
7676 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
7677
7678 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
7679 (un): New define_mode_attr.
7680 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
7681 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
7682 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
7683 merge into ...
7684 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
7685
7686 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
7687
7688 * config/darwin.opt: Add RejectNegative where needed, reorder
7689 and add minimal functional descriptions.
7690
7691 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7692
7693 PR rtl-optimization/90765
7694 * calls.c (update_stack_alignment_for_call): New function.
7695 (expand_call): Call update_stack_alignment_for_call when
7696 outgoing parameter is passed in the stack.
7697 (emit_library_call_value_1): Likewise.
7698 * function.c (locate_and_pad_parm): Don't update
7699 stack_alignment_needed and preferred_stack_boundary.
7700
7701 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7702
7703 PR target/90877
7704 * config/i386/i386-features.c
7705 (dimode_scalar_chain::compute_convert_gain): Replace
7706 mmxsse_to_integer with sse_to_integer.
7707 * config/i386/i386.c (ix86_register_move_cost): Verify that
7708 moves between MMX and non-MMX units require secondary memory.
7709 Correct costs of moves between SSE and integer units.
7710 * config/i386/i386.h (processor_costs): Rename cost of moving
7711 SSE register to integer to sse_to_integer. Rename cost of
7712
7713 2019-06-14 Matt Thomas <matt@3am-software.com>
7714 Matthew Green <mrg@eterna.com.au>
7715 Nick Hudson <skrll@netbsd.org>
7716 Maya Rashish <coypu@sdf.org>
7717 Richard Earnshaw <rearnsha@arm.com>
7718
7719 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
7720 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
7721 * config/arm/netbsd-eabi.h: New file.
7722 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
7723 redefining.
7724 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
7725 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
7726 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
7727 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
7728
7729 2019-06-14 Richard Biener <rguenther@suse.de>
7730
7731 * tree-loop-distribution.c (classify_partition): Return
7732 whether a reduction appeared in all partitions and do not
7733 stop builtin detection because of this.
7734 (distribute_loop): Sort a non-builtin partition last if
7735 there's a reduction in all partitions and make sure the
7736 partition prevailing as last is not a builtin.
7737
7738 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
7739
7740 PR ipa/90401
7741 * ipa-prop.c (add_to_agg_contents_list): New function.
7742 (clobber_by_agg_contents_list_p): Likewise.
7743 (extract_mem_content): Likewise.
7744 (get_place_in_agg_contents_list): Delete.
7745 (determine_known_aggregate_parts): Renamed from
7746 determine_locally_known_aggregate_parts. New parameter
7747 aa_walk_budget_p.
7748
7749 2019-06-13 Martin Sebor <msebor@redhat.com>
7750
7751 PR tree-optimization/90662
7752 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
7753 to the same type.
7754
7755 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7756
7757 PR bootstrap/90873
7758 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
7759 dbase is not TARGET_MEM_REF.
7760
7761 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7762
7763 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
7764 Update all uses.
7765 (and<mode>3): Use gen_extend_insn instead of indirect functions.
7766 Do not generate DImode extends for 32bit targets.
7767 (and->zext post-reload splitter): Use gen_extend_insn
7768 instead of indirect functions.
7769 (anddi->zext pre-reload splitter): New.
7770 (*zext<mode>_doubleword_and): Remove.
7771 (*zext<mode>_doubleword): Ditto.
7772 (*zextsi_doubleword): Dittto.
7773
7774 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7775
7776 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7777 Use gen_sub3_insn instead of indirect function.
7778 (ix86_expand_ashl_const): Use gen_add2_insn instead of
7779 indirect function.
7780 (ix86_adjust_counter): Ditto.
7781
7782 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
7783 Lijia He <helijia@linux.ibm.com>
7784
7785 PR tree-optimization/77820
7786 * tree-ssa-threadedge.c
7787 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
7788 function.
7789 (thread_across_edge): Add call to
7790 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
7791
7792 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
7793
7794 * config/darwin-driver.c (validate_macosx_version_min): New.
7795 (darwin_default_min_version): Cleanup and validate supplied version.
7796 (darwin_driver_init): Likewise and push cleaned version into opts.
7797
7798 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7799
7800 PR tree-optimization/90869
7801 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
7802 converts in MEM_REF referencing decl rather than view converts
7803 from decl type to MEM_REF type.
7804
7805 2019-06-13 Richard Biener <rguenther@suse.de>
7806
7807 PR tree-optimization/90856
7808 * tree-sra.c (build_ref_for_model): Only use
7809 build_reconstructed_reference when address-spaces are the same.
7810
7811 2019-06-13 Jakub Jelinek <jakub@redhat.com>
7812
7813 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
7814 wrap ei variable name in the declaration in ()s.
7815 (nvptx_single): Actually use mode_label variable. Formatting fix.
7816
7817 2019-06-13 Richard Biener <rguenther@suse.de>
7818
7819 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
7820 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
7821 also return the condition stmt.
7822 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
7823 loop we can version and version that, reusing the loop version
7824 created by if-conversion instead of versioning again.
7825
7826 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
7827
7828 * gimple-loop-versioning.cc (prune_loop_conditions): Use
7829 may_contain_p.
7830 * tree-vrp (value_range_base::may_contain_p): Call into
7831 value_inside_range.
7832 (value_inside_range): Make private inside value_range_base class.
7833 Take min/max from *this.
7834 (range_includes_p): Remove.
7835 * tree-vrp.h (value_range_base): Add value_inside_range.
7836 (range_includes_p): Remove.
7837 (range_includes_zero_p): Call may_contain_p.
7838 * vr-values.c (compare_range_with_value): Same.
7839
7840 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
7841
7842 * doc/extend.texi (ARC Function Attributes): Update info.
7843
7844 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7845
7846 PR tree-optimization/89713
7847 * doc/invoke.texi (-ffinite-loops): Document new option.
7848 * common.opt (-ffinite-loops): New option.
7849 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
7850 IFN_GOACC_LOOP calls as necessary.
7851 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
7852 is finite.
7853 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
7854 IFN_GOACC_LOOP call is not used.
7855 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
7856
7857 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7858
7859 PR target/88838
7860 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
7861 compare_type is not with Pmode size, we will create an IV with
7862 Pmode size with truncated use (i.e. converted to the correct type).
7863 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
7864 (vect_iv_limit_for_full_masking): New. Factored out of
7865 vect_set_loop_condition_masked.
7866 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
7867 (vect_iv_limit_for_full_masking): Declare.
7868
7869 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7870
7871 PR target/88834
7872 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
7873 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
7874 (get_alias_ptr_type_for_ptr_address): Likewise.
7875 (add_iv_candidate_for_use): Add scaled index candidate if useful.
7876 * tree-ssa-address.c (preferred_mem_scale_factor): New.
7877 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
7878 allow_reg_index_p.
7879
7880 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7881
7882 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
7883
7884 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
7885
7886 * common/config/pru/pru-common.c: New file.
7887 * config.gcc: Add PRU target.
7888 * config/pru/alu-zext.md: New file.
7889 * config/pru/constraints.md: New file.
7890 * config/pru/predicates.md: New file.
7891 * config/pru/pru-opts.h: New file.
7892 * config/pru/pru-passes.c: New file.
7893 * config/pru/pru-pragma.c: New file.
7894 * config/pru/pru-protos.h: New file.
7895 * config/pru/pru.c: New file.
7896 * config/pru/pru.h: New file.
7897 * config/pru/pru.md: New file.
7898 * config/pru/pru.opt: New file.
7899 * config/pru/t-pru: New file.
7900 * doc/extend.texi: Document PRU pragmas.
7901 * doc/invoke.texi: Document PRU-specific options.
7902 * doc/md.texi: Document PRU asm constraints.
7903
7904 2019-06-12 Martin Sebor <msebor@redhat.com>
7905
7906 PR middle-end/90676
7907 * tree-pretty-print.c (dump_mem_ref): New function. Include
7908 MEM_REF type in output when different size than operand.
7909 (dump_generic_node): Move code to dump_mem_ref and call it.
7910
7911 2019-06-12 Martin Sebor <msebor@redhat.com>
7912
7913 PR tree-optimization/90662
7914 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
7915 to arrays.
7916
7917 2019-06-12 Tom de Vries <tdevries@suse.de>
7918
7919 PR tree-optimization/90009
7920 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
7921
7922 2019-06-12 Martin Liska <mliska@suse.cz>
7923
7924 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
7925 the created map.
7926 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
7927 * mem-stats.h (mem_alloc_description::mem_alloc_description):
7928 Do not sanitize created maps.
7929
7930 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
7931
7932 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
7933 value_range::singleton_p.
7934 * tree-vrp.c (value_range_constant_singleton): Remove.
7935 * tree-vrp.h (value_range_constant_singleton): Remove.
7936 * vr-values.c (vr_values::singleton): Use
7937 value_range::singleton_p.
7938
7939 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7940
7941 PR target/90811
7942 * cfgexpand.c (align_local_variable): Add really_expand argument,
7943 don't SET_DECL_ALIGN if it is false.
7944 (add_stack_var): Add really_expand argument, pass it through to
7945 align_local_variable.
7946 (expand_one_stack_var_1): Pass true as really_expand to
7947 align_local_variable.
7948 (expand_one_ssa_partition): Pass true as really_expand to
7949 add_stack_var.
7950 (expand_one_var): Pass really_expand through to add_stack_var.
7951
7952 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7953
7954 * config/arm/iterators.md (VABAL): New int iterator.
7955 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
7956 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
7957 UNSPEC_VABAL_U values.
7958
7959 2019-06-12 Martin Liska <mliska@suse.cz>
7960
7961 * value-prof.c (stream_out_histogram_value): Only first value
7962 can't be negative.
7963
7964 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7965
7966 PR c/90760
7967 * symtab.c (symtab_node::set_section): Allow being called on aliases
7968 as long as they aren't analyzed yet.
7969
7970 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
7971
7972 * config/mips/mips.c (mips_final_postscan_insn): Modify call
7973 to `mips_set_text_contents_type' to indicate whether a
7974 non-debug insn follows.
7975
7976 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
7977
7978 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
7979 enabling -mpcrel by default.
7980 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
7981 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
7982 that the test against -mcpu=future is done first. Then test if
7983 -mprefixed-addr is on for -mpcrel.
7984 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
7985
7986 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7987
7988 PR target/90811
7989 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
7990 instead of and.u%d.
7991
7992 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7993
7994 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
7995
7996 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
7997
7998 PR c++/90449 - add -Winaccessible-base option.
7999 * doc/invoke.texi (Winaccessible-base): Document.
8000
8001 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
8002
8003 PR tree-optimization/62041
8004 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
8005
8006 2019-06-11 Jason Merrill <jason@redhat.com>
8007
8008 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
8009 * tree.c (get_tree_code_name): Likewise.
8010 * print-tree.c (print_node): Only briefly print a node with an
8011 invalid code.
8012
8013 2019-06-11 Jakub Jelinek <jakub@redhat.com>
8014
8015 PR bootstrap/90819
8016 * trans-mem.c (tm_memopt_compute_available): Add assertion
8017 that blocks is not empty. Formatting fix.
8018
8019 2019-06-11 Martin Liska <mliska@suse.cz>
8020
8021 PR c++/87847
8022 * hash-table.h: Extend create_gcc, add one parameter
8023 that is passed into hash_table::hash_table.
8024
8025 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
8026
8027 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
8028 New prototype.
8029 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
8030 Emit clobber also for non-sse operations.
8031 (ix86_split_fp_absneg_operator): New function.
8032 * config/i386/i386.md (SSEMODEF): New mode iterator.
8033 (ssevecmodef): New mode attribute.
8034 (<code>tf2): Use absneg code iterator.
8035 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
8036 Add three-operand AVX alternatives.
8037 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
8038 Use absneg code iterator and X87MODEF mode iterator.
8039 (absneg fp_reg non-sse splitter): Call absneg code iterator
8040 and X87MODEF mode iterator.
8041 (absneg general_reg non-sse splitter): Use absneg code iterator
8042 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
8043 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
8044 code iterator. Add three-operand AVX alternative.
8045 (absneg sse_reg splitter): Use absneg code iterator
8046 and SSEMODEF mode iterator. Handle AVX operands.
8047 (absneg fp_reg splitter): Use absneg code iterator
8048 and MODEF mode iterator.
8049 (absneg general_reg splitter): Merge splitters using MODEF mode
8050 iterator. Use absneg code iterator. Call
8051 ix86_split_fp_absneg_operator.
8052 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
8053 Do not enable for non-sse modes before reload.
8054 (CSGNMODE): Remove.
8055 (CSGNVMODE): Ditto.
8056 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
8057 ssevecmodef mode attribute instaed of CSGNVMODE.
8058 (copysign<mode>3_const): Ditto.
8059 (copysign<mode>3_var): Ditto.
8060 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
8061 Use absneg code iterator. Simplify code using std::swap.
8062 * config/i386/predicates.md (absneg_operator): Remove.
8063
8064 2019-06-10 Martin Sebor <msebor@redhat.com>
8065
8066 * gimple-fold.c (get_range_strlen): Update comment that didn't
8067 make it into r267503 or related commits.
8068
8069 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
8070
8071 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
8072 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
8073
8074 2019-06-10 Jakub Jelinek <jakub@redhat.com>
8075
8076 * tree.def (OMP_SCAN): New tree code.
8077 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
8078 OMP_CLAUSE_EXCLUSIVE.
8079 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
8080 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
8081 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
8082 OMP_CLAUSE_{IN,EX}CLUSIVE.
8083 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8084 * tree-nested.c (convert_nonlocal_reference_stmt,
8085 convert_local_reference_stmt, convert_gimple_call): Handle
8086 GIMPLE_OMP_SCAN.
8087 * tree-pretty-print.c (dump_omp_clause): Handle
8088 OMP_CLAUSE_{IN,EX}CLUSIVE.
8089 (dump_generic_node): Handle OMP_SCAN.
8090 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
8091 * gimple.h (gomp_scan): New type.
8092 (is_a_helper <gomp_scan *>::test,
8093 is_a_helper <const gomp_scan *>::test): New templates.
8094 (gimple_build_omp_scan): Declare.
8095 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
8096 gimple_omp_scan_set_clauses): New inline functions.
8097 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
8098 * gimple.c (gimple_build_omp_scan): New function.
8099 (gimple_copy): Handle GIMPLE_OMP_SCAN.
8100 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
8101 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
8102 GIMPLE_OMP_TASKGROUP.
8103 (dump_gimple_omp_scan): New function.
8104 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
8105 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
8106 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
8107 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
8108 (is_gimple_stmt): Handle OMP_SCAN.
8109 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
8110 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8111 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
8112 mentioned in nested #pragma omp scan. Handle
8113 OMP_CLAUSE_{IN,EX}CLUSIVE.
8114 (gimplify_expr): Handle OMP_SCAN.
8115 * omp-low.c (check_omp_nesting_restrictions): For parent context,
8116 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
8117 simd constructs.
8118 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
8119 GIMPLE_OMP_SCAN.
8120
8121 2019-06-10 Martin Liska <mliska@suse.cz>
8122
8123 * ipa-cp.c (ignore_edge_p): New function.
8124 (build_toporder_info): Use it.
8125 * ipa-inline.c (ignore_edge_p): New function.
8126 (inline_small_functions): Use it.
8127 * ipa-pure-const.c (ignore_edge_for_nothrow):
8128 Verify opt_for_fn for caller and callee.
8129 (ignore_edge_for_pure_const): Likewise.
8130 * ipa-reference.c (ignore_edge_p): Extend to check
8131 for opt_for_fn.
8132 * ipa-utils.c (searchc): Refactor.
8133 * ipa-utils.h: Fix coding style.
8134
8135 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8136
8137 * config/arc/arc.c (arc_rtx_costs): Update costs.
8138
8139 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8140
8141 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
8142 (arc_split_ior): Likewise.
8143 (arc_check_mov_const): Likewise.
8144 (arc_split_mov_const): Likewise.
8145 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
8146 (arc_rtx_costs): Replace check Crr with Cax constraint.
8147 (prepare_move_operands): Cleanup, remove unused code.
8148 (arc_split_ior): New function.
8149 (arc_check_ior_const): Likewise.
8150 (arc_split_mov_const): Likewise.
8151 (arc_check_mov_const): Likewise.
8152 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
8153 in define_insn_and_split pattern.
8154 (iorsi3): Likewise.
8155 (mulsi3_v2): Add new matching variant.
8156 (andsi3_i): Cleanup pattern.
8157 (rotrsi3_cnt1): Update pattern.
8158 (rotrsi3_cnt8): New pattern.
8159 (ashlsi2_cnt8): Likewise.
8160 (ashlsi2_cnt16): Likewise.
8161 * config/arc/constraints.md (C0p): Update constraint.
8162 (Crr): Remove it.
8163 (C0x): New pattern.
8164 (Cax): New pattern.
8165
8166 2019-06-10 Martin Liska <mliska@suse.cz>
8167
8168 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
8169 Update coding style.
8170 (sem_item_optimizer::dump_cong_classes):
8171 Print how many items are in a non-singular class. Improve
8172 coding style.
8173
8174 2019-06-10 Martin Liska <mliska@suse.cz>
8175
8176 * value-prof.c (dump_histogram_value): Change dump format.
8177 (gimple_mod_subtract_transform): Remove legacy comment.
8178
8179 2019-06-10 Martin Liska <mliska@suse.cz>
8180
8181 * value-prof.c (dump_histogram_value): Print histogram values
8182 only if present.
8183
8184 2019-06-10 Martin Liska <mliska@suse.cz>
8185
8186 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
8187 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
8188 * ipa-profile.c (ipa_profile_generate_summary):
8189 Use get_most_common_single_value.
8190 * tree-profile.c (gimple_init_gcov_profiler):
8191 Instrument with __gcov_one_value_profiler_v2
8192 and __gcov_indirect_call_profiler_v4.
8193 * value-prof.c (dump_histogram_value):
8194 Print all values for HIST_TYPE_SINGLE_VALUE.
8195 (stream_out_histogram_value): Update assert for
8196 N values.
8197 (stream_in_histogram_value): Set number of
8198 counters for HIST_TYPE_SINGLE_VALUE.
8199 (get_most_common_single_value): New.
8200 (gimple_divmod_fixed_value_transform):
8201 Use get_most_common_single_value.
8202 (gimple_ic_transform): Likewise.
8203 (gimple_stringops_transform): Likewise.
8204 (gimple_find_values_to_profile): Set number
8205 of counters for HIST_TYPE_SINGLE_VALUE.
8206 * value-prof.h (get_most_common_single_value): New.
8207
8208 2019-06-10 Martin Liska <mliska@suse.cz>
8209
8210 * hash-map.h: Pass default value to hash_table ctor.
8211 * hash-table.h: Add default value to call of a ctor.
8212
8213 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
8214
8215 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
8216 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
8217
8218 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
8219
8220 PR target/90751
8221 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
8222 Call pa_output_function_label.
8223 (TARGET_ASM_FUNCTION_PROLOGUE): define.
8224 * config/pa/pa-protos.h (pa_output_function_label): Declare.
8225 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
8226 to declaration.
8227 (pa_linux_output_function_prologue): Declare.
8228 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
8229 (pa_output_function_label): New.
8230 (pa_output_function_prologue): Revise to use pa_output_function_label.
8231 (pa_linux_output_function_prologue): New.
8232 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
8233
8234 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
8235
8236 * tree-vrp.h (value_range_base::intersect): New.
8237 (value_range::intersect_helper): Move from here...
8238 (value_range_base::intersect_helper): ...to here.
8239 * tree-vrp.c (value_range::intersect_helper): Rename to...
8240 (value_range_base::intersect_helper): ...this, and rewrite to
8241 return a value instead of modifying THIS in place.
8242 Also, move equivalence handling...
8243 (value_range::intersect): ...here, while calling intersect_helper.
8244 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
8245 calling intersect.
8246 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
8247 Same.
8248 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
8249
8250 2019-06-07 Jakub Jelinek <jakub@redhat.com>
8251
8252 * Makefile.in (genprogerr): Add condmd.
8253 (genprog): Remove it here.
8254
8255 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
8256
8257 * doc/invoke.texi (AMD GCN Options): Add gfx906.
8258
8259 2019-06-07 Richard Biener <rguenther@suse.de>
8260
8261 PR debug/90574
8262 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
8263 that appear after user labels.
8264
8265 2019-06-07 Martin Liska <mliska@suse.cz>
8266
8267 * cselib.c (cselib_init): Disable hash table
8268 sanitization.
8269 * hash-set.h: Pass new default argument to m_table.
8270 * hash-table.c: Add global variable with hash table
8271 sanitization limit.
8272 * hash-table.h (Allocator>::hash_table): Add new argument
8273 to ctor.
8274 (hashtab_chk_error): New.
8275 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
8276 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
8277 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
8278
8279 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8280
8281 * common.opt (flto-odr-type-merging): Ignore.
8282 * invoke.texi (-flto-odr-type-merging): Remove.
8283 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
8284 (can_be_vtable_hashed_p): Remove.
8285 (hash_odr_vtable): Remove.
8286 (odr_vtable_hasher::hash): Remove.
8287 (types_same_for_odr): Remove.
8288 (types_odr_comparable): Remove.
8289 (odr_vtable_hasher::equal): Remove.
8290 (odr_vtable_hash_type, odr_vtable_hash): Remove.
8291 (add_type_duplicate): Do not synchronize vtable and name hashtables.
8292 (get_odr_type): Do not use vtable hash.
8293 (dump_odr_type): Remove commented out code.
8294 (build_type_inheritance_graph): Do not allocate vtable hash.
8295 (rebuild_type_inheritance_graph): Do not delete vtable hash.
8296 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
8297 (odr_type_p): Likewise.
8298 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
8299 test.
8300
8301 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8302
8303 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
8304 immediately after same_types_for_tbaa_p returns -1 and continue
8305 looking for possible exact match; if matching types are arrays
8306 watch for partial overlaps.
8307 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
8308 (indirect_refs_may_alias_p): Do type based disambiguation first;
8309 update comment.
8310
8311 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
8312
8313 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
8314
8315 2019-06-07 Martin Liska <mliska@suse.cz>
8316
8317 * doc/invoke.texi: Remove param.
8318 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
8319 Remove.
8320 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
8321 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
8322 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
8323 * profile.c (instrument_values): Remove
8324 HIST_TYPE_INDIR_CALL_TOPN.
8325 * tree-profile.c (init_ic_make_global_vars):
8326 Always build __gcov_indirect_call only.
8327 (gimple_init_gcov_profiler): Remove usage
8328 of PARAM_INDIR_CALL_TOPN_PROFILE.
8329 (gimple_gen_ic_profiler): Likewise.
8330 * value-prof.c (dump_histogram_value): Likewise.
8331 (stream_in_histogram_value): Likewise.
8332 (gimple_indirect_call_to_profile): Likewise.
8333 (gimple_find_values_to_profile): Likewise.
8334 * value-prof.h (enum hist_type): Likewise.
8335
8336 2019-06-07 Martin Liska <mliska@suse.cz>
8337
8338 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
8339 function.
8340
8341 2019-06-07 Martin Liska <mliska@suse.cz>
8342
8343 PR tree-optimization/78902
8344 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
8345 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
8346 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8347 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8348 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
8349 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8350 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
8351 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
8352 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8353 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8354 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8355 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
8356 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
8357 New.
8358 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
8359 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
8360 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
8361 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8362 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8363 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
8364 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8365 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8366 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
8367 warn_unused_result attribute.
8368 (BUILT_IN_STRDUP): Likewise.
8369 (BUILT_IN_STRNDUP): Likewise.
8370 (BUILT_IN_ALLOCA): Likewise.
8371 (BUILT_IN_CALLOC): Likewise.
8372 (BUILT_IN_MALLOC): Likewise.
8373 (BUILT_IN_REALLOC): Likewise.
8374
8375 2019-06-06 Jim Wilson <jimw@sifive.com>
8376
8377 PR target/89955
8378 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
8379 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
8380 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8381
8382 2019-06-06 Martin Sebor <msebor@redhat.com>
8383
8384 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
8385 (handle_builtin_malloc): Remove trailing spaces.
8386 (handle_builtin_memset): Same.
8387 (handle_builtin_memcmp): Same.
8388 (compute_string_length): Same.
8389 (determine_min_objsize): Same.
8390 (handle_builtin_string_cmp): Same.
8391 (handle_char_store): Same. Break up excessively long line.
8392
8393 2019-06-06 Martin Jambor <mjambor@suse.cz>
8394
8395 * tree-sra.c (build_reconstructed_reference): Drop the alignment
8396 check.
8397
8398 2019-06-06 Martin Jambor <mjambor@suse.cz>
8399
8400 * tree-sra.c (struct access): New field grp_same_access_path.
8401 (dump_access): Dump it.
8402 (build_reconstructed_reference): New function.
8403 (build_ref_for_model): Use it if possible.
8404 (path_comparable_for_same_access): New function.
8405 (same_access_path_p): Likewise.
8406 (sort_and_splice_var_accesses): Set the new flag.
8407 (analyze_access_subtree): Likewise.
8408 (propagate_subaccesses_across_link): Propagate zero value of the new
8409 flag down the access tree.
8410
8411 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
8412
8413 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
8414 * config/gcn/gcn.opt (gpu_type): Add gfx906.
8415 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
8416 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
8417 Add gfx906.
8418
8419 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8420
8421 PR tree-optimization/90332
8422 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8423 Handle VALS containing two vectors.
8424 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
8425 to...
8426 (@aarch64_combinez<mode>): ... This.
8427 (*aarch64_combinez_be<mode>): Rename to...
8428 (@aarch64_combinez_be<mode>): ... This.
8429 (vec_init<mode><Vhalf>): New define_expand.
8430 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
8431
8432 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8433
8434 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
8435 library functions only when not optimizing for size.
8436 (ashlsi3): Likewise.
8437 (ashrhi3): Likewise.
8438 (ashrsi3): Likewise.
8439 (lshrhi3): Likewise.
8440 (lshrsi3): Likewise.
8441
8442 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
8443
8444 PR rtl-optimization/88751
8445 * ira.c (ira): Use the number of the actually referenced registers
8446 when calculating the threshold.
8447
8448 2019-06-06 Jakub Jelinek <jakub@redhat.com>
8449
8450 * configure: Regenerate.
8451
8452 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8453
8454 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
8455 register if it is in memory, so the shift can be emulated with a rotate
8456 instruction.
8457 (ashrhi3): Likewise.
8458 (lshrhi3): Likewise.
8459
8460 2019-06-06 Martin Liska <mliska@suse.cz>
8461
8462 PR tree-optimization/87954
8463 * match.pd: Simplify mult where both arguments are 0 or 1.
8464
8465 2019-06-06 Richard Biener <rguenther@suse.de>
8466
8467 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
8468 put equivalences on UNDEFINED ranges.
8469 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8470 Make sure to drop defs of stmts added during simplification
8471 to VARYING.
8472
8473 2019-06-06 Richard Biener <rguenther@suse.de>
8474
8475 * tree-ssa-structalias.c: Include tree-cfg.h.
8476 (make_heapvar): Do not make heap vars artificial.
8477 (find_func_aliases_for_builtin_call): Handle stack allocation
8478 functions.
8479 (find_func_aliases): Delay processing of simple enough returns
8480 in non-IPA mode.
8481 (set_uids_in_ptset): Adjust.
8482 (find_what_var_points_to): Likewise.
8483 (solve_constraints): Do not dump points-to sets here.
8484 (compute_points_to_sets): Post-process return statements,
8485 amending the escaped solution. Dump points-to sets afterwards.
8486 (ipa_pta_execute): Dump points-to sets.
8487
8488 2019-06-06 Martin Liska <mliska@suse.cz>
8489
8490 PR web/87933
8491 * doc/install.texi: Fix HTML headers and
8492 titles for 'Installing GCC' pages.
8493
8494 2019-06-06 Martin Liska <mliska@suse.cz>
8495
8496 * ipa-icf-gimple.h (dump_message_1): Remove.
8497 (dump_message): Likewise.
8498 (return_false_with_message_1): Print also file.
8499 (return_false_with_msg): Likewise.
8500 (return_with_result): Likewise.
8501 (return_with_debug): Likewise.
8502 * ipa-icf.c (sem_function::equals_private): Remove call
8503 to dump_message.
8504
8505 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8506
8507 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
8508 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
8509 memory operand for it.
8510 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
8511
8512 2019-06-05 Martin Sebor <msebor@redhat.com>
8513
8514 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
8515 Adjust quoting and hyphenation.
8516 * convert.c (convert_to_real_1): Same.
8517 * gcc.c (driver_wrong_lang_callback): Same.
8518 (driver::handle_unrecognized_options): Same.
8519 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8520 * opts-common.c (cmdline_handle_error): Same.
8521 (read_cmdline_option): Same.
8522 * opts-global.c (complain_wrong_lang): Same.
8523 (print_ignored_options): Same.
8524 (handle_common_deferred_options): Same.
8525 * pretty-print.h: Same.
8526 * print-rtl.c (debug_bb_n_slim): Same.
8527 * sched-rgn.c (make_pass_sched_fusion): Same.
8528 * tree-cfg.c (verify_gimple_assign_unary): Same.
8529 (verify_gimple_label): Same.
8530 * tree-ssa-operands.c (verify_ssa_operands): Same.
8531 * varasm.c (do_assemble_alias): Same.
8532 (assemble_alias): Same.
8533
8534 2019-06-05 Richard Henderson <rth@twiddle.net>
8535
8536 * config/alpha/alpha.c (direct_return): Move down after
8537 struct machine_function definition; use saved frame_size;
8538 return bool.
8539 (struct machine_function): Add sa_mask, sa_size, frame_size.
8540 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
8541 (alpha_compute_frame_layout): ... new function.
8542 (TARGET_COMPUTE_FRAME_LAYOUT): New.
8543 (alpha_initial_elimination_offset): Use saved sa_size.
8544 (alpha_vms_initial_elimination_offset): Likewise.
8545 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
8546 (alpha_expand_prologue): Use saved frame data. Merge integer
8547 and fp register save loops.
8548 (alpha_expand_epilogue): Likewise.
8549 (alpha_start_function): Use saved frame data.
8550 * config/alpha/alpha-protos.h (direct_return): Update.
8551 (alpha_sa_size): Remove.
8552
8553 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
8554
8555 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
8556 multiplication by a power-of-two value.
8557 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
8558 and turn the modulo operation into a masking operation.
8559
8560 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8561
8562 PR debug/90733
8563 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
8564 with VOIDmode inner operands.
8565
8566 2019-06-05 Richard Biener <rguenther@suse.de>
8567
8568 PR middle-end/90726
8569 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8570 turn an expression graph into a tree.
8571
8572 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8573
8574 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
8575 member.
8576 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
8577 treat it like explicit monotonic schedule modifier.
8578 (expand_omp_for): Initialize has_lastprivate_conditional.
8579 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
8580 schedule modifier.
8581
8582 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
8583 references, lookup in in hash map MEM_REF operand instead of the
8584 MEM_REF itself.
8585 (lower_omp_1): When looking for lastprivate conditional assignments,
8586 handle MEM_REFs with REFERENCE_TYPE operands.
8587
8588 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
8589 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
8590 and references a VLA. Handle references to non-VLAs if is_simd
8591 all privatization clauses like reductions.
8592 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
8593 If omp_is_reference, use always omp simd arrays and set
8594 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
8595 fails, emit reference initialization.
8596
8597 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8598
8599 PR target/89803
8600 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
8601 _mm_mask_fpclass_sd_mask): New intrinsics.
8602 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
8603 * config/i386/i386-builtin.def
8604 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
8605 New builtins.
8606 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
8607 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
8608 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
8609 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
8610 case QI_FTYPE_V2SF_INT): Ditto.
8611 * config/i386/sse.md
8612 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
8613 Extended to insnstructions with mask operands.
8614
8615 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8616
8617 * config/rs6000/constraints.md (define_register_constraint "wp"):
8618 Delete.
8619 (define_register_constraint "wq"): Delete.
8620 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8621 (rs6000_init_hard_regno_mode_ok): Adjust.
8622 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8623 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
8624 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
8625 (define_mode_attr VSa): Delete.
8626 (define_mode_attr VSisa): New.
8627 (rest of file): Adjust.
8628 * doc/md.texi (Machine Constraints): Adjust.
8629
8630 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8631
8632 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
8633 (define_attr "enabled"): Handle those new isa values.
8634
8635 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8636
8637 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
8638 (define_mode_attr VSr5): Delete.
8639 (define_mode_attr VStype_sqrt): Delete.
8640 (define_mode_iterator VSX_SPDP): Delete.
8641 (define_mode_attr VS_spdp_res): Delete.
8642 (define_mode_attr VS_spdp_insn): Delete.
8643 (define_mode_attr VS_spdp_type): Delete.
8644 (*vsx_sqrt<mode>2): Adjust.
8645 (vsx_<VS_spdp_insn>): Delete, split to...
8646 (vsx_xscvdpsp): ... this. New. And...
8647 (vsx_xvcvspdp): ... this. New. And...
8648 (vsx_xvcvdpsp): ... this. New.
8649
8650 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8651
8652 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
8653 and V2DF.
8654 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
8655 (rest of file): Adjust.
8656
8657 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8658
8659 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
8660 (vsx_extract_<mode>_var): Ditto.
8661
8662 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8663
8664 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
8665 with just "wa".
8666
8667 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8668
8669 * config/rs6000/constraints.md (define_register_constraint "ww"):
8670 Delete.
8671 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8672 (rs6000_init_hard_regno_mode_ok): Adjust.
8673 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8674 RS6000_CONSTRAINT_ww.
8675 * config/rs6000/rs6000.md: Adjust.
8676 * config/rs6000/vsx.md: Adjust.
8677 * doc/md.texi (Machine Constraints): Adjust.
8678
8679 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8680
8681 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
8682 (define_mode_attr sd): New.
8683 (define_mode_attr s): New.
8684 (define_mode_attr Ftrad): Delete.
8685 (define_mode_attr Fvsx): Delete.
8686 (define_mode_attr Fs): Delete.
8687 (rest of file): Use the new mode attributes.
8688 * config.rs6000/vsx.md: Use the new mode attributes.
8689
8690 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8691
8692 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
8693 with just "wa".
8694
8695 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8696
8697 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
8698 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
8699 used with VSX_B, VSX_D, or VSX_F, with just "wa".
8700
8701 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
8702
8703 PR target/78263
8704 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
8705 C++ with strict ANSI requirements.
8706
8707 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
8708
8709 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
8710 computations when step is 1.
8711
8712 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8713
8714 * config/rs6000/constraints.md (define_register_constraint "wf"):
8715 Delete.
8716 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8717 (rs6000_init_hard_regno_mode_ok): Adjust.
8718 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8719 RS6000_CONSTRAINT_wf.
8720 * config/rs6000/rs6000.md: Adjust.
8721 * config/rs6000/vsx.md: Adjust.
8722 * doc/md.texi (Machine Constraints): Adjust.
8723
8724 2019-06-04 Andrew Pinski <apinski@marvell.com>
8725
8726 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
8727 Fix ILP32 value.
8728
8729 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8730
8731 * config/rs6000/constraints.md (define_register_constraint "wd"):
8732 Delete.
8733 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8734 (rs6000_init_hard_regno_mode_ok): Adjust.
8735 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8736 RS6000_CONSTRAINT_wd.
8737 * config/rs6000/rs6000.md: Adjust.
8738 * config/rs6000/vsx.md: Adjust.
8739 * doc/md.texi (Machine Constraints): Adjust.
8740
8741 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8742
8743 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
8744 (rest of file): Adjust.
8745
8746 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8747
8748 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
8749 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
8750 (vsx_splat_<mode>_reg): Adjust.
8751
8752 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8753
8754 * config/rs6000/constraints.md (define_register_constraint "ws"):
8755 Delete.
8756 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8757 (rs6000_init_hard_regno_mode_ok): Adjust.
8758 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8759 RS6000_CONSTRAINT_ws.
8760 * config/rs6000/rs6000.md: Adjust.
8761 * config/rs6000/vsx.md: Adjust.
8762 * doc/md.texi (Machine Constraints): Adjust.
8763
8764 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8765
8766 * config/rs6000/constraints.md (define_register_constraint "wv"):
8767 Delete.
8768 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8769 (rs6000_init_hard_regno_mode_ok): Adjust.
8770 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8771 RS6000_CONSTRAINT_wv.
8772 * config/rs6000/rs6000.md: Adjust.
8773 * config/rs6000/vsx.md: Adjust.
8774 * doc/md.texi (Machine Constraints): Adjust.
8775
8776 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8777
8778 * config/rs6000/constraints.md (define_register_constraint "wi"):
8779 Delete.
8780 (define_register_constraint "wt"): Delete.
8781 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8782 (rs6000_init_hard_regno_mode_ok): Adjust.
8783 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8784 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
8785 * config/rs6000/rs6000.md: Adjust.
8786 * config/rs6000/vsx.md: Adjust.
8787 * doc/md.texi (Machine Constraints): Adjust.
8788
8789 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8790
8791 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
8792 const.
8793 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
8794 default_elf_asm_output_external.
8795
8796 2019-06-04 Martin Liska <mliska@suse.cz>
8797
8798 * ipa-icf.c (INCLUDE_LIST): Remove.
8799 (sem_item_optimizer::execute): Remove call to init_wpa.
8800 * ipa-icf.h (init_wpa): Remove.
8801
8802 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8803
8804 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
8805 conditional on combined for simd.
8806 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
8807 member.
8808 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
8809 constructs, don't remove lastprivate_conditional_map, but instead set
8810 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
8811 to parent construct temporaries.
8812 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
8813 like !ctx->lastprivate_conditional_map.
8814 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
8815 use up->outer context instead of up.
8816 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
8817 gimple_omp_for_combined_p.
8818 (expand_omp_for_static_nochunk): Likewise.
8819 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
8820 probably moved over into expand_omp_for_generic rather than being copied
8821 there.
8822
8823 2019-06-04 Martin Liska <mliska@suse.cz>
8824
8825 * value-prof.c (dump_histogram_value): Fix typo.
8826 (gimple_mod_subtract_transform): Likewise.
8827
8828 2019-06-04 Richard Biener <rguenther@suse.de>
8829
8830 PR middle-end/90726
8831 * tree-chrec.c (chrec_contains_symbols): Add to visited.
8832 (tree_contains_chrecs): Likewise.
8833 (chrec_contains_symbols_defined_in_loop): Move here and avoid
8834 exponential behaivor from ...
8835 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8836 ... here.
8837 (expression_expensive_p): Avoid exponential behavior and compute
8838 expanded size, rejecting any expansion.
8839 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
8840 (idx_contains_abnormal_ssa_name_p): Likewise.
8841 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
8842 (contains_abnormal_ssa_name_p): Simplify and use
8843 walk_tree_without_duplicates.
8844
8845 2019-06-04 Richard Biener <rguenther@suse.de>
8846
8847 PR tree-optimization/90738
8848 Revert
8849 2019-06-03 Richard Biener <rguenther@suse.de>
8850
8851 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8852 full reference tree and record in ref->ref.
8853 (vn_reference_lookup_3): Pass in original ref to
8854 ao_ref_init_from_vn_reference.
8855 (vn_reference_lookup): Likewise.
8856 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8857 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8858 Handle non-decl bases in the original reference.
8859
8860 2019-06-04 Martin Liska <mliska@suse.cz>
8861
8862 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
8863 number of references.
8864 (sem_item_optimizer::do_congruence_step):
8865 (sem_item_optimizer::worklist_push): Dump how references
8866 a class has.
8867 (sem_item_optimizer::worklist_pop): Use heap.
8868 (sem_item_optimizer::process_cong_reduction): Likewise.
8869 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
8870
8871 2019-06-04 Martin Liska <mliska@suse.cz>
8872
8873 * ipa-icf.h (struct sem_usage_pair_hash): New.
8874 (sem_usage_pair_hash::hash): Likewise.
8875 (sem_usage_pair_hash::equal): Likewise.
8876 (struct sem_usage_hash): Likewise.
8877 * ipa-icf.c (sem_item::sem_item): Initialize
8878 referenced_by_count.
8879 (sem_item::add_reference): Register a reference
8880 in ref_map and not in target->usages.
8881 (sem_item::setup): Remove initialization of
8882 dead vectors.
8883 (sem_item::~sem_item): Remove usage of dead vectors.
8884 (sem_item::dump): Remove dump of references.
8885 (sem_item_optimizer::sem_item_optimizer): Initialize
8886 m_references.
8887 (sem_item_optimizer::read_section): Remove useless
8888 dump.
8889 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
8890 (sem_item_optimizer::build_graph): Pass m_references
8891 to ::add_reference.
8892 (sem_item_optimizer::verify_classes): Remove usage of dead
8893 vectors.
8894 (sem_item_optimizer::traverse_congruence_split): Return true
8895 when a class is split.
8896 (sem_item_optimizer::do_congruence_step_for_index): Use
8897 hash_map for look up of (sem_item *, index). That brings
8898 significant speed up.
8899 (sem_item_optimizer::do_congruence_step): Return true
8900 when a split is done.
8901 (congruence_class::is_class_used): Use referenced_by_count.
8902
8903 2019-06-04 Alan Modra <amodra@gmail.com>
8904
8905 PR target/90689
8906 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
8907 error.
8908
8909 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8910
8911 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
8912 * config/rs6000/rs6000.c (direct_move_p): Adjust.
8913 (rs6000_secondary_reload_simple_move): Adjust.
8914 (rs6000_opt_masks): Neuter the "mfpgpr" option.
8915 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
8916 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
8917 comment.
8918 (power6x): Adjust.
8919 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
8920 (floatunssi<mode>2_lfiwzx): Adjust.
8921 (fix_trunc<mode>si2_stfiwx): Adjust.
8922 (fixuns_trunc<mode>si2_stfiwx): Adjust.
8923 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
8924 (mfpgpr): Mark as deprecated.
8925 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
8926 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
8927 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
8928
8929 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8930
8931 * config/rs6000/constraints.md (define_register_constraint "wg"):
8932 Delete.
8933 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8934 RS6000_CONSTRAINT_wg.
8935 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8936 (rs6000_init_hard_regno_mode_ok): Adjust.
8937 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
8938 Delete "wg" alternatives.
8939 * doc/md.texi (Machine Constraints): Adjust.
8940
8941 2019-06-03 Alan Modra <amodra@gmail.com>
8942
8943 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
8944 (get_uncond_jump_length): Assert length less than INT_MAX and
8945 non-negative.
8946
8947 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8948
8949 PR middle-end/64242
8950 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
8951 block.
8952 (expand_builtin_nonlocal_goto): Likewise.
8953
8954 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8955
8956 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
8957 (aarch64_asm_output_external): Declare.
8958 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
8959 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
8960 (aarch64_asm_output_alias): New.
8961 (aarch64_asm_output_external): New.
8962 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8963 (ASM_OUTPUT_EXTERNAL): Define.
8964
8965 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
8966 * tree-vrp.h (value_range_base::nonzero_p): New.
8967 (value_range_base::set_nonnull): Rename to...
8968 (value_range_base::set_nonzero): ...this.
8969 (value_range_base::set_null): Rename to...
8970 (value_range_base::set_zero): ...this.
8971 (value_range::set_nonnull): Remove.
8972 (value_range::set_null): Remove.
8973 * tree-vrp.c (range_is_null): Remove.
8974 (range_is_nonnull): Remove.
8975 (extract_range_from_binary_expr): Use value_range_base::*zero_p
8976 instead of range_is_*null.
8977 (extract_range_from_unary_expr): Same.
8978 (value_range_base::set_nonnull): Rename to...
8979 (value_range_base::set_nonzero): ...this.
8980 (value_range::set_nonnull): Remove.
8981 (value_range_base::set_null): Rename to...
8982 (value_range_base::set_zero): ...this.
8983 (value_range::set_null): Remove.
8984 (extract_range_from_binary_expr): Rename set_*null uses to
8985 set_*zero.
8986 (extract_range_from_unary_expr): Same.
8987 (union_helper): Same.
8988 * vr-values.c (get_value_range): Use set_*zero instead of
8989 set_*null.
8990 (vr_values::extract_range_from_binary_expr): Same.
8991 (vr_values::extract_range_basic): Same.
8992
8993 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8994
8995 PR driver/90684
8996 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
8997
8998 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8999
9000 * config/aarch64/iterators.md (MAX_OPP): New code attr.
9001 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
9002 Rename to...
9003 (aarch64_<su>abd<mode>_3): ... This.
9004 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
9005
9006 2019-06-03 Richard Biener <rguenther@suse.de>
9007
9008 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
9009 full reference tree and record in ref->ref.
9010 (vn_reference_lookup_3): Pass in original ref to
9011 ao_ref_init_from_vn_reference.
9012 (vn_reference_lookup): Likewise.
9013 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
9014 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9015 Handle non-decl bases in the original reference.
9016
9017 2019-06-03 Martin Liska <mliska@suse.cz>
9018
9019 * doc/generic.texi: Remove Java Trees.
9020
9021 2019-06-03 Martin Liska <mliska@suse.cz>
9022
9023 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
9024 returns 0 when operands are equal.
9025
9026 2019-06-03 Richard Biener <rguenther@suse.de>
9027
9028 PR tree-optimization/90716
9029 * tree-loop-distribution.c (destroy_loop): Process blocks in
9030 correct order.
9031
9032 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9033
9034 PR target/88837
9035 * vector-builder.h (vector_builder::count_dups): New method.
9036 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
9037 Declare prototype.
9038 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
9039 (vec_init<mode><Vel>): New pattern.
9040 * config/aarch64/aarch64.c (emit_insr): New function.
9041 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
9042 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
9043 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
9044 (aarch64_sve_expand_vector_init): Define two overloaded functions.
9045
9046 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9047
9048 PR tree-optimization/90681
9049 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
9050 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
9051 special case for SLP, but fail on non-groupped loads.
9052
9053 2019-06-03 Martin Liska <mliska@suse.cz>
9054
9055 * cfg.c (debug): Use TDF_DETAILS for debug and
9056 print edge info only once.
9057
9058 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
9059
9060 PR fortran/90539
9061 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
9062
9063 2019-06-01 Martin Sebor <msebor@redhat.com>
9064
9065 PR middle-end/90694
9066 * tree-pretty-print.c (dump_generic_node): Add parentheses.
9067
9068 2019-05-31 Jan Hubicka <jh@suse.cz>
9069
9070 * alias.c: Include ipa-utils.h.
9071 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
9072 * ipa-devirt.c (prevailing_odr_type): New.
9073 * ipa-utils.h (previaling_odr_type): Declare.
9074
9075 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
9076 Hongtao Liu <hongtao.liu@intel.com>
9077
9078 PR target/89355
9079 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
9080 NOTE_INSN_DELETED_LABEL check.
9081
9082 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
9083 Robert Suchanek <robert.suchanek@mips.com>
9084
9085 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
9086 and 3rd operands of the fmadd/fmsub/maddv builtin.
9087
9088 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9089
9090 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
9091 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9092 on OMP_SIMD if not nested inside of worksharing loop that also has
9093 lastprivate conditional clause for the same decl.
9094 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
9095 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
9096 on simd.
9097 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
9098 on simd construct.
9099 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
9100 on simd construct.
9101 (lower_lastprivate_clauses): Likewise.
9102 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
9103 calling lower_rec_input_clauses.
9104 (lower_omp_for): Likewise.
9105 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
9106 clause on simd construct.
9107 * omp-expand.c (expand_omp_simd): Initialize cond_var if
9108 OMP_CLAUSE__CONDTEMP_ clause is present.
9109
9110 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
9111 ivar and lvar.
9112
9113 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
9114
9115 PR c/43673
9116 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
9117 TEX_D32, TEX_D64 or TEX_D128.
9118
9119 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9120
9121 * match.pd (~(vec?cst1:cst2)): New transformation.
9122
9123 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9124
9125 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
9126 ((size_t)(A /[ex] B) CMP C): New transformation.
9127
9128 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
9129
9130 * doc/md.texi: Document define_insn_and_rewrite.
9131 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
9132 * gensupport.c (queue_elem): Update comment.
9133 (replace_operands_with_dups): New function.
9134 (gen_rewrite_sequence): Likewise.
9135 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
9136 * read-rtl.c (apply_subst_iterator): Likewise.
9137 (add_condition_to_rtx, named_rtx_p): Likewise.
9138 (rtx_reader::read_rtx_operand): Likewise.
9139 * config/aarch64/aarch64-sve.md
9140 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
9141 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
9142 define_insn_and_rewrite.
9143 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
9144 Remove separate define_split.
9145
9146 2019-05-31 Jan Hubicka <jh@suse.cz>
9147
9148 * tree-ssa-alias.c (type_has_components_p): New function.
9149 (aliasing_component_refs_p): Use it.
9150
9151 2019-05-31 Martin Liska <mliska@suse.cz>
9152
9153 * gdbhooks.py: Add const_tree to TreePrinter.
9154
9155 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
9156
9157 PR debug/86964
9158 * common.opt (feliminate-unused-debug-symbols): Enable by default.
9159 * doc/invoke.texi (Debugging Options): Document new default of
9160 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
9161
9162 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9163
9164 PR tree-optimization/90671
9165 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
9166 template_block used to be empty on the first call, don't use
9167 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
9168 seq with bb_seq and set it with set_bb_seq.
9169
9170 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
9171
9172 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
9173
9174 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9175 Michael Meissner <meissner@linux.ibm.com>
9176
9177 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
9178 (prefixed_mem_operand): Likewise.
9179 (non_prefixed_mem_operand): Likewise.
9180 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
9181 prototype.
9182 * config/rs6000/rs6000.c (print_operand_address): Handle
9183 PC-relative addresses.
9184 (mode_supports_prefixed_address_p): New function.
9185 (rs6000_prefixed_address): New function.
9186 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
9187 (SYMBOL_REF_PCREL_P): Likewise.
9188
9189 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9190
9191 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
9192 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
9193 (gimplify_omp_for): If worksharing loop with lastprivate conditional
9194 is nested inside of parallel region, add _condtemp_ clause to both.
9195 * tree-nested.c (convert_nonlocal_omp_clauses,
9196 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
9197 assertion failure.
9198 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
9199 member.
9200 * omp-general.c (omp_extract_for_data): Compute it.
9201 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
9202 (lower_rec_input_clauses): Likewise.
9203 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
9204 clause is already present, just add one further one after it.
9205 (lower_lastprivate_clauses): Handle cond_ptr with array type.
9206 (lower_send_shared_vars): Clear _condtemp_ vars.
9207 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
9208 or section or taskgroup.
9209 * omp-expand.c (determine_parallel_type): Disallow combining only if
9210 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
9211 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
9212 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9213 expand_omp_for_static_chunk, expand_omp_for): Use
9214 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
9215 determine if a special set of API routines are needed and if condtemp
9216 needs to be initialized, while always initialize cond_var if
9217 fd->lastprivate_conditional is non-zero.
9218
9219 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9220 Michael Meissner <meissner@linux.ibm.com>
9221
9222 * config/rs6000/constraints.md (eI): New constraint.
9223 * config/rs6000/predicates.md (cint34_operand): New predicate.
9224 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
9225 (SIGNED_34BIT_OFFSET_P): Likewise.
9226 * doc/md.texi (eI): Document constraint.
9227
9228 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
9229
9230 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
9231
9232 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9233 Michael Meissner <meissner@linux.ibm.com>
9234
9235 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
9236 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
9237 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
9238 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
9239 (OTHER_FUTURE_MASKS): Likewise.
9240 (POWERPC_MASKS): Likewise.
9241 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
9242 specified without -mprefixed-addr or -mcpu=future. Error if
9243 -mprefixed-addr is specified without -mcpu=future.
9244 (rs6000_opt_masks): Add entry for prefixed-addr.
9245 * rs6000.opt (mprefixed-addr): New option.
9246
9247 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
9248
9249 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
9250 cfun->is_thunk check.
9251
9252 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9253
9254 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
9255 to length.
9256
9257 2019-05-30 Martin Liska <mliska@suse.cz>
9258
9259 * gdbinit.in: Fix 'ptc' command. Add trt
9260 that prints TREE_TYPE($).
9261
9262 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
9263 Alan Modra <amodra@gmail.com>
9264
9265 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
9266 calls here...
9267 (rs6000_indirect_call_template_1): ...and here.
9268 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
9269 plt16_ha, plt16_lo, mtctr indirect calls. Use
9270 rs6000_pltseq_enum.
9271 (rs6000_decl_ok_for_sibcall): New function.
9272 (rs6000_function_ok_for_sibcall): Refactor.
9273 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
9274 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
9275 when pcrel. Reorganize.
9276 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
9277 * rs6000.h (rs6000_pltseq_enum): New enum.
9278 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
9279 (*pltseq_tocsave): Use rs6000_pltseq_enum.
9280 (*pltseq_plt16_ha): Likewise.
9281 (*pltseq_plt16_lo): Likewise.
9282 (*pltseq_mtctr): Likewise.
9283 (*pltseq_plt_pcrel): New insn.
9284 (*call_local_aix): Handle @notoc calls.
9285 (*call_value_local_aix): Likewise.
9286 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
9287 (*call_value_nonlocal_aix): Likewise.
9288 (*call_indirect_pcrel): New insn.
9289 (*call_value_indirect_pcrel): Likewise.
9290
9291 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
9292
9293 * config/i386/sse.md (*save_multiple<mode>): Rename from
9294 save_multiple<mode>.
9295 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
9296 (*restore_multiple_and_return<mode>): Rename from
9297 restore_multiple_and_return<mode>.
9298 (*restore_multiple_leave_return<mode>): Rename from
9299 restore_multiple_leave_return<mode>.
9300
9301 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
9302
9303 * config.gcc (rx-*-linux*): New target.
9304 * config/rx/elf.opt: New file.
9305 * config/rx/linux.h: Likewise.
9306 * config/rx/t-linux: Likewise.
9307 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
9308 make it zero.
9309 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
9310 (ASM_APP_OFF): Likewise.
9311 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
9312 moved elsewhere.
9313
9314 2019-05-29 Jan Hubicka <jh@suse.cz>
9315
9316 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
9317 variants are pointer equivalent.
9318
9319 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9320
9321 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
9322 * config/aarch64/aarch64-sve2.md: New file.
9323 (<u>avg<mode>3_floor): New pattern.
9324 (<u>avg<mode>3_ceil): Likewise.
9325 (*<sur>h<addsub><mode>): Likewise.
9326 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
9327 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
9328
9329 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9330
9331 PR bootstrap/90543
9332 * optc-save-gen.awk: In cl_optimization_print, use correct condition
9333 for var_opt_string printing. In cl_optimization_print_diff, print
9334 (null) instead of invoking undefined behavior if one of the
9335 var_opt_string pointers is NULL and use && instead of first || in the
9336 guarding condition. For var_target_other options, handle const char *
9337 target variables similarly to const char * optimize node variables.
9338
9339 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
9340
9341 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
9342 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
9343 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
9344 Add autib1716 and pacib1716 initialisation.
9345 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
9346 for autib1716 and pacib1716.
9347 * config/aarch64/aarch64-protos.h (aarch64_key_type,
9348 aarch64_post_cfi_startproc): Define.
9349 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
9350 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
9351 aarch64_handle_pac_ret_protection): Set default sign key to A.
9352 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
9353 aarch64_expand_prologue): Add check for b-key.
9354 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
9355 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
9356 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
9357 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
9358 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
9359 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
9360 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9361 * config/aarch64/aarch64.md (do_return): Add check for b-key.
9362 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
9363 pauth_hint_num_a with pauth_hint_num.
9364 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
9365 pauth_hint_num_a with pauth_hint_num.
9366 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
9367 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
9368 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9369 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
9370 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
9371 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
9372 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
9373 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9374 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
9375 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
9376 UNSPEC_AUTIA1716 respectively.
9377 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
9378 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
9379 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
9380 * doc/invoke.texi (-mbranch-protection): Add b-key type.
9381 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
9382 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
9383
9384 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9385
9386 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
9387 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
9388 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
9389 explicit clause on combined parallel into implicit shared clause.
9390 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
9391 and firstprivate if the decl has one too from combined parallel to
9392 the worksharing construct.
9393
9394 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
9395 Michael Meissner <meissner@linux.ibm.com>
9396
9397 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
9398
9399 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
9400
9401 * rtl.h (LABEL_REF_P): New #define.
9402
9403 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
9404
9405 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
9406
9407 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9408
9409 * internal-fn.c: Marked mask_load_direct as vectorizable.
9410 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
9411 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
9412 combined even if masks different with allow_slp_p param.
9413 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
9414 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
9415 dissolve SLP-only vectorizable groups when SLP has been discarded.
9416 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
9417 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
9418 masks.
9419 (vect_build_slp_tree_1): Fixed comment typo.
9420 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
9421 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
9422 loads for SLP only.
9423 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
9424 vectorizable.
9425 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
9426
9427 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9428
9429 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
9430 Remove obsolete use_thunk reference.
9431 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9432 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9433 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9434 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9435 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9436 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9437 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9438 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9439 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9440
9441 2019-05-28 Nathan Sidwell <nathan@acm.org>
9442
9443 * tree.h (IDENTIFIER_ANON_P): New.
9444 (anon_aggrname_format, anon_aggname_p): Don't declare.
9445 (make_anon_name): Declare.
9446 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
9447 (hash_tree): Likewise.
9448 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
9449 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
9450 (anon_cnt, make_anon_name): New.
9451
9452 2019-05-28 Martin Liska <mliska@suse.cz>
9453
9454 PR other/90315
9455 * opts-global.c (decode_options): Print help for all
9456 help_option_arguments.
9457 * opts.c (print_help): Add new argument.
9458 (common_handle_option): Remember all values into
9459 help_option_arguments.
9460 * opts.h (print_help): Add new argument.
9461
9462 2019-05-28 Martin Liska <mliska@suse.cz>
9463
9464 PR ipa/90555
9465 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
9466 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
9467 (func_checker::compare_bb): Call compare_loops.
9468
9469 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9470
9471 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9472 on sections construct.
9473 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
9474 construct.
9475 (lower_omp_sections): Handle lastprivate conditional.
9476 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
9477 lastprivate_conditional_map.
9478 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
9479
9480 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
9481 critical, taskgroup and section regions when looking for a region
9482 with non-NULL lastprivate_conditional_map.
9483
9484 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9485
9486 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
9487 (*ix86_gen_sub3): Ditto.
9488 (*ix86_gen_sub3_carry): Ditto.
9489 (*ix86_gen_one_cmpl2): Ditto.
9490 (*ix86_gen_andsp): Ditto.
9491 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
9492 (gen_and2_insn): New static function.
9493 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
9494 Use gen_add3_insn instead of ix86_gen_add3.
9495 (ix86_expand_split_stack_prologue): Use gen_add2_insn
9496 instead of ix86_gen_add3.
9497 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
9498 Use gen_sub3_insn instead of ix86_gen_sub3.
9499 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
9500 instead of ix86_gen_add3.
9501 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
9502 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
9503 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
9504 * config/i386/i386-options.c (ix86_option_override_internal):
9505 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
9506 ix86_gen_one_cmpl2 and ix86_gen_andsp.
9507
9508 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
9509
9510 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
9511 and DW_OP_GNU_const_index opcodes.
9512
9513 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9514
9515 * config/i386/i386.h (STACK_SIZE_MODE): Define.
9516
9517 2019-05-27 Richard Biener <rguenther@suse.de>
9518
9519 PR tree-optimization/90637
9520 * tree-ssa-sink.c (statement_sink_location): Honor the
9521 computed sink location for single-uses.
9522
9523 2019-05-27 Richard Biener <rguenther@suse.de>
9524
9525 PR middle-end/90610
9526 * match.pd (vec_perm): Avoid clobbering op0 when not generating
9527 a bit-insert.
9528
9529 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9530
9531 * config/i386/i386.md (@sub<mode>3_carry): Rename
9532 from sub<mode>3_carry.
9533 (@leave_<mode>): New expander.
9534 (*leave): Rename from leave.
9535 (*leave_rex64): Rename from leave_rex64.
9536 (@monitorx_<mode>): Rename from monitorx_<mode>.
9537 (@clzero_<mode>): Rename from clzero_<mode>.
9538 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
9539 from sse3_monitor_<mode>.
9540 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
9541 (*ix86_gen_leave): Ditto.
9542 (*ix86_gen_monitor): Ditto.
9543 (*ix86_gen_monitorx): Ditto.
9544 (*ix86_gen_clzero): Ditto.
9545 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
9546 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
9547 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
9548 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
9549 Use gen_sse3_monitor instead of ix86_gen_monitor.
9550 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
9551 instead of ix86_gen_monitorx.
9552 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
9553 instead of ix86_gen_clzero.
9554 * config/i386/i386-options.c (ix86_option_override_internal):
9555 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
9556 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
9557
9558 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9559
9560 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
9561 Rename from tls_global_dynamic_64_<mode>.
9562 (@tls_local_dynamic_base_64_<mode>): Rename from
9563 tls_local_dynamic_base_64_<mode>.
9564 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
9565 Remove indirect function.
9566 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
9567 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
9568 instead of ix86_gen_tls_global_dynamic_64.
9569 Use gen_tls_local_dynamic_base_64 instead of
9570 ix86_gen_tls_local_dynamic_base_64.
9571 * config/i386/i386-options.c (ix86_option_override_internal):
9572 Do not initialize ix86_gen_tls_global_dynamic_64 and
9573 ix86_gen_tls_local_dynamic_base_64.
9574
9575 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9576
9577 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
9578 Rename from pro_epilogue_adjust_stack_<mode>_add.
9579 (@pro_epilogue_adjust_stack_sub_<mode>)
9580 Rename from pro_epilogue_adjust_stack_<mode>_sub.
9581 (@allocate_stack_worker_probe_<mode>):
9582 Rename from allocate_stack_worker_probe_<mode>.
9583 (allocate_stack): Use gen_allocate_stack_worker_probe.
9584 (probe_stack): Use gen_probe_stack_1.
9585 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
9586 (@adjust_stack_and_probe_<mode>): Rename from
9587 adjust_stack_and_probe<mode>.
9588 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
9589 (stack_protect_set): Use gen_stack_protect_set_1.
9590 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
9591 (stack_protect_test): Use gen_stack_protect_test_1.
9592 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
9593 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
9594 Remove indirect function.
9595 (*ix86_gen_adjust_stack_and_probe): Ditto.
9596 (*ix86_gen_probe_stack_range): Ditto.
9597 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
9598 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
9599 (ix86_adjust_stack_and_probe_stack_clash): Use
9600 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
9601 (ix86_adjust_stack_and_probe): Ditto.
9602 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
9603 of ix86_gen_probe_stack_range.
9604 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
9605 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
9606 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
9607 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
9608 CODE_FOR_stack_protect_test_{si,di}.
9609 * config/i386/i386-options.c (ix86_option_override_internal):
9610 Do not initialize ix86_gen_allocate_stack_worker,
9611 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
9612
9613 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
9614
9615 * doc/invoke.texi (Link Options): Many editorial changes around
9616 -flinker-output.
9617
9618 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9619
9620 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
9621 pre-Solaris 11 referene and most Studio compiler details.
9622
9623 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
9624
9625 PR target/90530
9626 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
9627 DImode to SImode in floating-point registers on 64-bit target.
9628 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
9629 register_operand in xmpyu patterns.
9630
9631 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9632
9633 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
9634 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
9635 OMP_CLAUSE__REDUCTEMP_.
9636 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9637 OMP_CLAUSE__CONDTEMP_.
9638 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
9639 * tree-pretty-print.c (dump_omp_clause): Likewise.
9640 * tree-nested.c (convert_nonlocal_omp_clauses,
9641 convert_local_omp_clauses): Likewise.
9642 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
9643 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
9644 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
9645 on OMP_FOR.
9646 (gimplify_omp_for): Warn and disable conditional modifier from
9647 lastprivate on loop iterators.
9648 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
9649 member.
9650 * omp-general.c (omp_extract_for_data): Initialize it.
9651 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
9652 member.
9653 (delete_omp_context): Delete it.
9654 (lower_lastprivate_conditional_clauses): New function.
9655 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
9656 handle lastprivate conditional clauses.
9657 (lower_reduction_clauses): Add CLIST argument, emit it into
9658 the critical section if any.
9659 (lower_omp_sections): Adjust lower_lastprivate_clauses and
9660 lower_reduction_clauses callers.
9661 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
9662 to lower_lastprivate_clauses.
9663 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
9664 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
9665 clist into a critical section if not emitted there already by
9666 lower_reduction_clauses.
9667 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
9668 callers.
9669 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
9670 conditional variables.
9671 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
9672 clause is present.
9673 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9674 expand_omp_for_static_chunk): Handle lastprivate conditional.
9675 (expand_omp_for): Handle fd.lastprivate_conditional like
9676 fd.have_reductemp.
9677
9678 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9679
9680 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
9681 kernel does not exit cleanly.
9682 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
9683
9684 2019-05-24 Jason Merrill <jason@redhat.com>
9685
9686 Revert:
9687 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9688
9689 2019-05-24 Richard Biener <rguenther@suse.de>
9690
9691 PR testsuite/90607
9692 * tree-loop-distribution.c (struct partition): Add location
9693 member.
9694 (partition_alloc): Initialize all fields.
9695 (generate_memset_builtin): Use the location recorded in the
9696 partition for the generated call.
9697 (generate_memcpy_builtin): Likewise.
9698 (classify_partition): Record the location of a single store
9699 as location for the partition.
9700
9701 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9702
9703 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
9704 for lo-part.
9705
9706 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
9707
9708 PR target/90588
9709 * common/config/aarch64/aarch64-common.c
9710 (aarch64_rewrite_selected_cpu): Change local temporary variable
9711 type from unsigned long to uint64_t.
9712 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
9713 aarch64_get_extension_string_for_isa_flags): Change declaration to
9714 match new definition by replacing unsigned long with uint64_t.
9715
9716 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9717
9718 PR target/90568
9719 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
9720 gen_attr_type just once instead of 4-7 times. Formatting fixes.
9721 Handle stack_protect_test_<mode> codegen similarly to corresponding
9722 sub instruction.
9723
9724 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
9725
9726 * config/i386/darwin.h: Reject -mfentry*.
9727 * doc/sourcebuild.texi: Document mfentry target support.
9728
9729 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9730
9731 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
9732 Rename to rs6000_global_entry_point_prologue_needed_p. Return
9733 false for PC-relative functions.
9734 (rs6000_output_function_prologue): Change called function name to
9735 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
9736 name,1" for PC-relative functions.
9737 (rs6000_elf_declare_function_name): Change called function name to
9738 rs6000_global_entry_point_prologue_needed_p.
9739
9740 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
9741
9742 PR target/90552
9743 * config/i386/i386.c (gen_rtx_cost):
9744 Use ix86_tune_cost instead of ix86_cost.
9745
9746 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9747 Michael Meissner <meissner@linux.ibm.com>
9748 Segher Boessenkool <segher@kernel.crashing.org>
9749
9750 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
9751 OPTION_MASK_PCREL.
9752 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
9753 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
9754 (rs6000_fndecl_pcrel_p): Likewise.
9755 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
9756 error if -mpcrel is requested without -mcpu=future.
9757 (rs6000_opt_masks): Add entry for pcrel.
9758 (rs6000_fndecl_pcrel_p): New function.
9759 (rs6000_pcrel_p): Likewise.
9760 * config/rs6000/rs6000.opt (mpcrel): New option.
9761 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
9762
9763 2019-05-23 Jan Hubicka <jh@suse.cz>
9764 Martin Liska <mliska@suse.cz>
9765
9766 PR tree-optimization/90576
9767 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
9768 poly_int_tree_p.
9769 (aliasing_component_refs_p): Fix three way size compare conditional;
9770 give up earlier in case we can not decide on equivalence.
9771
9772 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9773 Michael Meissner <meissner@linux.ibm.com>
9774 Segher Boessenkool <segher@kernel.crashing.org>
9775
9776 * config.gcc: Add future cpu.
9777 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
9778 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
9779 #define.
9780 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
9781 (RS6000_CPU): New instantiation for future cpu.
9782 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9783 PROCESSOR_FUTURE.
9784 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
9785 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
9786 * config/rs6000/rs6000-tables.opt: Regenerate.
9787 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
9788 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
9789 (rs6000_machine_from_flags): Handle future cpu.
9790 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
9791 PROCESSOR_POWER9 for now.
9792 (rs6000_adjust_cost): Likewise.
9793 (rs6000_issue_rate): Likewise.
9794 (rs6000_register_move_cost): Likewise.
9795 (rs6000_opt_masks): Add entry for future.
9796 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
9797 (MASK_FUTURE): New #define.
9798 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
9799 * config/rs6000/rs6000.opt (mfuture): New target option.
9800 * doc/invoke.texi (mcpu): Add future cpu.
9801
9802 2019-05-23 Martin Liska <mliska@suse.cz>
9803
9804 PR c++/90587
9805 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
9806 operation points to a temporary (pointed via tree_to_wide_ref)
9807 that is out of scope after the &.
9808
9809 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
9810
9811 PR c++/90592
9812 * doc/extend.texi (Function Names): Add missing word.
9813
9814 2019-05-23 Richard Biener <rguenther@suse.de>
9815
9816 PR tree-optimization/88440
9817 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
9818 at -O[2s]+.
9819 * tree-loop-distribution.c (generate_memset_builtin): Fold the
9820 generated call.
9821 (generate_memcpy_builtin): Likewise.
9822 (distribute_loop): Pass in whether to only distribute patterns.
9823 (prepare_perfect_loop_nest): Also allow size optimization.
9824 (pass_loop_distribution::execute): When optimizing a loop
9825 nest for size allow pattern replacement.
9826
9827 2019-05-23 Jakub Jelinek <jakub@redhat.com>
9828
9829 PR target/90568
9830 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
9831 of xor.
9832
9833 2019-05-23 Martin Liska <mliska@suse.cz>
9834
9835 PR sanitizer/90570
9836 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
9837 expression similarly to gimplify_decl_expr.
9838
9839 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9840
9841 * cse.c (cse_dump_path): s/dump_file/f.
9842
9843 2019-05-22 David Malcolm <dmalcolm@redhat.com>
9844
9845 PR c++/90462
9846 * diagnostic-format-json.cc: Include "selftest.h".
9847 (json_from_expanded_location): Only add "file" key for non-NULL
9848 file strings.
9849 (json_from_location_range): Don't add "start" and "finish"
9850 children if they are UNKNOWN_LOCATION.
9851 (selftest::test_unknown_location): New selftest.
9852 (selftest::test_bad_endpoints): New selftest.
9853 (selftest::diagnostic_format_json_cc_tests): New function.
9854 * json.cc (json::object::get): New function.
9855 (selftest::test_object_get): New selftest.
9856 (selftest::json_cc_tests): Call it.
9857 * json.h (json::object::get): New decl.
9858 * selftest-run-tests.c (selftest::run_tests): Call
9859 selftest::diagnostic_format_json_cc_tests.
9860 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
9861 decl.
9862
9863 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
9864 Andrew Stubbs <amd@codesourcery.com>
9865
9866 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
9867 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
9868 (kernel): Rename to...
9869 (main_kernel): ... this.
9870 (load_image): Load _init_array and _fini_array kernels.
9871 (run): Add argument for kernel to run.
9872 (main): Run init_array_kernel before main_kernel, and
9873 fini_array_kernel after.
9874 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
9875 amdgpu_hsa_kernel attribute on functions.
9876 (gcn_disable_constructors): Delete.
9877 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
9878 * config/gcn/crt0.c (size_t): Define.
9879 (_init_array, _fini_array): New.
9880 (__preinit_array_start, __preinit_array_end,
9881 __init_array_start, __init_array_end,
9882 __fini_array_start, __fini_array_end): Declare weak references.
9883
9884 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
9885
9886 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
9887
9888 2019-05-22 Jason Merrill <jason@redhat.com>
9889
9890 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9891
9892 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
9893
9894 PR target/88483
9895 * config/i386/i386-options.c (ix86_init_machine_status): Set
9896 stack_frame_required to true.
9897 * config/i386/i386.c (ix86_get_frame_size): New function.
9898 (ix86_frame_pointer_required): Replace get_frame_size with
9899 ix86_get_frame_size.
9900 (ix86_compute_frame_layout): Likewise.
9901 (ix86_find_max_used_stack_alignment): Changed to void. Set
9902 stack_frame_required.
9903 (ix86_finalize_stack_frame_flags): Always call
9904 ix86_find_max_used_stack_alignment. Replace get_frame_size with
9905 ix86_get_frame_size.
9906 * config/i386/i386.h (machine_function): Add stack_frame_required.
9907
9908 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
9909
9910 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
9911
9912 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
9913
9914 * common/config/aarch64/aarch64-common.c
9915 (struct aarch64_option_extension, struct processor_name_to_arch,
9916 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
9917 aarch64_contains_opt,
9918 aarch64_get_extension_string_for_isa_flags): Change type of
9919 variables storing flags to uint64_t.
9920 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
9921 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
9922 * config/aarch64/aarch64.c (struct processor,
9923 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
9924 aarch64_validate_march, aarch64_override_options,
9925 aarch64_option_print, aarch64_handle_attr_isa_flags,
9926 aarch64_declare_function_name, aarch64_start_file): Make flag
9927 variables uint64_t.
9928 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
9929 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
9930 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
9931 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
9932 * config/aarch64/driver-aarch64.c
9933 (struct aarch64_arch_extension, struct aarch64_core_data,
9934 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
9935 flag variables uint64_t.
9936 * doc/invoke.texi: Add documentation for new arguments.
9937
9938 2019-05-22 Richard Biener <rguenther@suse.de>
9939
9940 * alias.c (ao_ref_from_mem): Move stack-slot sharing
9941 rewrite ...
9942 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
9943
9944 2019-05-22 Martin Liska <mliska@suse.cz>
9945
9946 PR lto/90500
9947 * doc/extend.texi: Document the change.
9948
9949 2019-05-22 Richard Biener <rguenther@suse.de>
9950
9951 PR tree-optimization/90450
9952 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
9953 (mem_ref_hasher::equal): Check it.
9954 (mem_ref_alloc): Initialize it.
9955 (gather_mem_refs_stmt): Set it.
9956
9957 2019-05-22 Richard Biener <rguenther@suse.de>
9958
9959 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
9960 Add ABS_EXPR.
9961 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
9962 as ABSU_EXPR.
9963
9964 2019-05-22 Alan Modra <amodra@gmail.com>
9965
9966 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
9967 (ASM_CPU_SPEC): Conditionally add -many.
9968 * config/rs6000/rs6000.c (rs6000_machine): New static var.
9969 (rs6000_machine_from_flags, emit_asm_machine): New functions..
9970 (rs6000_file_start): ..extracted from here, and modified to
9971 test all ISA bits.
9972 (rs6000_output_function_prologue): Emit .machine as necessary.
9973
9974 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
9975
9976 PR middle-end/90553
9977 * ira-lives.c (process_bb_node_lives): Consider defs
9978 for a call insn to be die before the call, not after.
9979
9980 * function.c (assign_parm_setup_block): Raise alignment of
9981 stacked parameter only for STRICT_ALIGNMENT targets.
9982
9983 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9984
9985 * config/rs6000/constraints.md (define_register_constraint "wz"):
9986 Delete.
9987 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9988 RS6000_CONSTRAINT_wz.
9989 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9990 (rs6000_init_hard_regno_mode_ok): Adjust.
9991 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
9992 * doc/md.texi (Machine Constraints): Adjust.
9993
9994 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9995
9996 * config/rs6000/constraints.md (define_register_constraint "wl"):
9997 Delete.
9998 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9999 RS6000_CONSTRAINT_wl.
10000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10001 (rs6000_init_hard_regno_mode_ok): Adjust.
10002 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
10003 * doc/md.texi (Machine Constraints): Adjust.
10004
10005 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10006
10007 * config/rs6000/constraints.md (define_register_constraint "wm"):
10008 Delete.
10009 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10010 RS6000_CONSTRAINT_wm.
10011 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10012 (rs6000_init_hard_regno_mode_ok): Adjust.
10013 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
10014 * doc/md.texi (Machine Constraints): Adjust.
10015
10016 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10017
10018 * config/rs6000/constraints.md (define_register_constraint "wk"):
10019 Delete.
10020 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10021 RS6000_CONSTRAINT_wk.
10022 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10023 (rs6000_init_hard_regno_mode_ok): Adjust.
10024 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
10025 * doc/md.texi (Machine Constraints): Adjust.
10026
10027 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10028
10029 * config/rs6000/constraints.md (define_register_constraint "wj"):
10030 Delete.
10031 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10032 RS6000_CONSTRAINT_wj.
10033 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10034 (rs6000_init_hard_regno_mode_ok): Adjust.
10035 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
10036 (VS_64dm): Delete.
10037 * config/rs6000/vsx.md: Ditto.
10038 * doc/md.texi (Machine Constraints): Adjust.
10039
10040 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10041
10042 * config/rs6000/constraints.md (define_register_constraint "wh"):
10043 Delete.
10044 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10045 RS6000_CONSTRAINT_wh.
10046 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10047 (rs6000_init_hard_regno_mode_ok): Adjust.
10048 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
10049 * doc/md.texi (Machine Constraints): Adjust.
10050
10051 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10052
10053 PR target/90547
10054 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10055 Avoid calling gen_lowpart with CONST operand.
10056
10057 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
10058
10059 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
10060 field template_last_to_copy.
10061 (ssa_create_duplicates): Set it, and use it. Attempt to
10062 preserve more debug stmts.
10063
10064 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10065
10066 * config/i386/sse.md (VF1_AVX2): New mode iterator.
10067 (signbit<mode>2): New expander
10068
10069 2019-05-21 James Clarke <jrtc27@jrtc27.com>
10070
10071 PR bootstrap/87338
10072 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
10073 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
10074
10075 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10076
10077 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
10078 %ebx and %ecx bafore calling cpuid with leaf 1 or
10079 non-constant leaf argument.
10080
10081 2019-05-21 Alan Modra <amodra@gmail.com>
10082
10083 PR target/90545
10084 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
10085 power9 direct move cost.
10086
10087 2019-05-21 Richard Biener <rguenther@suse.de>
10088
10089 PR middle-end/90510
10090 * fold-const.c (fold_read_from_vector): New function.
10091 * fold-const.h (fold_read_from_vector): Declare.
10092 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
10093 single-element insert permutations. Canonicalize selector
10094 further and fix issue with last commit.
10095
10096 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10097
10098 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
10099 parameter with default value false to declaration.
10100 (split_edges_for_insertion): New inline function. Wrapper for
10101 split_critical_edges with for_edge_insertion_p = true.
10102 * tree-cfg.c (split_critical_edges): Don't split non-critical
10103 edges if for_edge_insertion_p is false. Fix whitespace.
10104 * tree-ssa-pre.c (pass_pre::execute): Call
10105 split_edges_for_insertion instead of split_critical_edges.
10106 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
10107 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
10108 (pass_data_sink_code): Update function name in the comment.
10109
10110 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10111
10112 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
10113 around is_value_included_in that knows how to handle BIT_AND_EXPR.
10114 (is_pred_expr_subset_of): Use the new function. Handle more cases where
10115 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
10116 positives.
10117
10118 2019-05-21 Martin Liska <mliska@suse.cz>
10119
10120 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
10121 an extra newline.
10122 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
10123 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
10124 vec_lvsr.
10125 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10126 Quote a C type.
10127 (rs6000_function_arg): Likewise.
10128 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
10129 (rs6000_expand_ternop_builtin): Use interval syntax.
10130 (get_element_number): Likewise.
10131 (altivec_expand_builtin): Likewise.
10132 (rs6000_get_function_versions_dispatcher): Quote target_clones.
10133
10134 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10135
10136 PR c++/59813
10137 PR target/90418
10138 * function.h (struct function): Add calls_eh_return member.
10139 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
10140 gimplifying __builtin_eh_return call.
10141 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
10142 to cfun.
10143 (expand_call_inline): Or in src_cfun->calls_eh_return into
10144 dst_cfun->calls_eh_return.
10145 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
10146 cfun->calls_eh_return.
10147 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
10148 * lto-streamer-out.c (output_struct_function_base): Write
10149 calls_eh_return.
10150
10151 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
10152
10153 PR rtl-optimization/43147
10154 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
10155 IX86_BUILTIN_SHUFPD.
10156
10157 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10158
10159 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
10160 (refs_may_alias_p_1): ... here; update stats.
10161 (refs_may_alias_p): Do not update stats here.
10162
10163 2019-05-20 Richard Biener <rguenther@suse.de>
10164
10165 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
10166 doesn't produce pointers.
10167 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
10168 the first operand points to.
10169
10170 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10171
10172 * tree-ssa-alias.c (compare_sizes): New function.
10173 (sompare_type_sizes): New function
10174 (aliasing_component_refs_p): Use it.
10175 (indirect_ref_may_alias_decl_p): Likewise.
10176
10177 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10178
10179 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
10180
10181 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10182
10183 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
10184 (LIBLSAN_EARLY_SPEC): Likewise.
10185 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
10186
10187 2019-05-20 Martin Liska <mliska@suse.cz>
10188
10189 * config/i386/i386.c (ix86_libc_has_fast_function):
10190 Add ATTRIBUTE_UNUSED for the argument.
10191
10192 2019-05-20 Richard Biener <rguenther@suse.de>
10193
10194 * gimple-match-head.c: Include vec-perm-indices.h.
10195 * generic-match-head.c: Likewise.
10196 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
10197 is included.
10198 * fold-const.c (fold_vec_perm): Export.
10199 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
10200 (match.pd): ...here.
10201
10202 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10203
10204 * cfgloop.h (struct loop): Add simdlen member.
10205 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
10206 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
10207 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
10208 as new argument to autovectorize_vector_sizes target hook. If
10209 loop->simdlen, pick up vector size where the vectorization factor
10210 is equal to loop->simd, and if there is none, fall back to the first
10211 successful one.
10212 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
10213 caller.
10214 * omp-low.c (omp_clause_aligned_alignment): Likewise.
10215 * omp-general.c (omp_max_vf): Likewise.
10216 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
10217 * tree-vect-slp.c (vect_slp_bb): Likewise.
10218 * target.def (autovectorize_vector_sizes): Add ALL argument and
10219 document it.
10220 * doc/tm.texi: Adjust documentation.
10221 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
10222 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
10223 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
10224 bool argument.
10225 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
10226 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
10227 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
10228 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
10229 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
10230 preferred vector size is not 512-bit or 256-bit, just put those
10231 unpreferred ones last.
10232
10233 2019-05-20 Martin Liska <mliska@suse.cz>
10234
10235 * targhooks.c (default_libc_has_fast_function): New function.
10236 * targhooks.h (default_libc_has_fast_function): Likewise.
10237
10238 2019-05-20 Martin Liska <mliska@suse.cz>
10239
10240 PR middle-end/90263
10241 * builtins.c (expand_builtin_memory_copy_args): When having a
10242 target with fast mempcpy implementation do now use memcpy.
10243 * config/i386/i386.c (ix86_libc_has_fast_function): New.
10244 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
10245 * doc/tm.texi: Likewise.
10246 * doc/tm.texi.in: Likewise.
10247 * target.def:
10248 * expr.c (emit_block_move_hints): Add 2 new arguments.
10249 * expr.h (emit_block_move_hints): Bail out when libcall
10250 to memcpy would be used.
10251
10252 2019-05-20 Martin Liska <mliska@suse.cz>
10253
10254 * profile-count.c: Add vertical spacing in order
10255 to separate functions.
10256 * profile-count.h: Likewise.
10257
10258 2019-05-20 Martin Liska <mliska@suse.cz>
10259
10260 * profile-count.h: Do not use full qualified
10261 names if possible.
10262 * profile-count.c (profile_count::to_frequency): Likewise.
10263
10264 2019-05-20 Martin Liska <mliska@suse.cz>
10265
10266 * profile-count.h (enum profile_quality): Use capital letters
10267 for enum value names. Use the adjusted names.
10268 * profile-count.c: Use the adjusted names.
10269
10270 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10271
10272 * config/rs6000/constraints.md (define_register_constraint "wH"):
10273 Delete.
10274 (define_register_constraint "wI"): Delete.
10275 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10276 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
10277 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10278 (rs6000_init_hard_regno_mode_ok): Adjust.
10279 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
10280 resp. "d", or with "wa" as appropriate, all with "p8v".
10281 * config/rs6000/vsx.md: Ditto.
10282 * doc/md.texi (Machine Constraints): Adjust.
10283
10284 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10285
10286 * config/rs6000/constraints.md (define_register_constraint "wy"):
10287 Delete.
10288 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10289 RS6000_CONSTRAINT_wy.
10290 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10291 (rs6000_init_hard_regno_mode_ok): Adjust.
10292 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
10293 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
10294 (define_mode_attr Fisa): New.
10295 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
10296 * doc/md.texi (Machine Constraints): Adjust.
10297
10298 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10299
10300 * config/rs6000/constraints.md (define_register_constraint "wu"):
10301 Delete.
10302 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10303 RS6000_CONSTRAINT_wu.
10304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10305 (rs6000_init_hard_regno_mode_ok): Adjust.
10306 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
10307 both with "p8v".
10308 (define_mode_attr Fa): Delete.
10309 * config/rs6000/vsx.md: Ditto.
10310 * doc/md.texi (Machine Constraints): Adjust.
10311
10312 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10313
10314 * config/rs6000/constraints.md (define_register_constraint "wJ"):
10315 Delete.
10316 (define_register_constraint "wK"): Delete.
10317 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10318 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
10319 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10320 (rs6000_init_hard_regno_mode_ok): Adjust.
10321 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
10322 Replace "wK" constraint by "wH" with "p9v".
10323 * config/rs6000/vsx.md: Ditto.
10324 * doc/md.texi (Machine Constraints): Adjust.
10325
10326 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10327
10328 * config/rs6000/constraints.md (define_register_constraint "wb"):
10329 Delete.
10330 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10331 RS6000_CONSTRAINT_wb.
10332 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10333 (rs6000_init_hard_regno_mode_ok): Adjust.
10334 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
10335 * config/rs6000/vsx.md: Ditto.
10336 * doc/md.texi (Machine Constraints): Adjust.
10337
10338 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10339
10340 * config/rs6000/constraints.md (define_register_constraint "wo"):
10341 Delete.
10342 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10343 RS6000_CONSTRAINT_wo.
10344 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10345 (rs6000_init_hard_regno_mode_ok): Adjust.
10346 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
10347 * config/rs6000/altivec.md: Ditto.
10348 * doc/md.texi (Machine Constraints): Adjust.
10349
10350 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10351
10352 * config/darwin-c.c (darwin_register_objc_includes): Do not
10353 prepend the sysroot when building gnu-runtime header search
10354 paths.
10355
10356 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10357
10358 * config/darwin.c (darwin_file_end): Use switch_to_section ()
10359 instead of direct output of the asm.
10360
10361 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10362
10363 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
10364 argument to be type bool (was int before).
10365 (rs6000_emit_epilogue): Simplify some code. Declare some variables
10366 at first use. Use type bool for some variables. Fix a theoretical
10367 eh_return bug for svr4.
10368
10369 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10370
10371 * config/rs6000/rs6000.md (isa): New attribute.
10372 (enabled): New attribute.
10373
10374 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
10375
10376 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
10377 assemble_start_function and assemble_end_function.
10378
10379 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
10380
10381 PR middle-end/89433
10382 * omp-general.c (oacc_verify_routine_clauses): Change formal
10383 parameters. Add checking if already marked with an OpenACC
10384 'routine' directive. Adjust all users.
10385
10386 PR middle-end/89433
10387 * omp-general.c (oacc_build_routine_dims): Move some of its
10388 processing into...
10389 (oacc_verify_routine_clauses): ... this new function.
10390 * omp-general.h (oacc_verify_routine_clauses): New prototype.
10391
10392 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10393
10394 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
10395 formating of picbase labels to match other ports.
10396
10397 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10398
10399 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
10400 in the generated code.
10401
10402 2019-05-16 Martin Sebor <msebor@redhat.com>
10403
10404 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
10405 identifiers, keywords, operators, and types in diagnostics. Correct
10406 quoting, spelling, and sentence capitalization issues.
10407 (expand_builtin_atomic_is_lock_free): Same.
10408 (fold_builtin_next_arg): Same.
10409 * cfgexpand.c (expand_one_var): Same.
10410 (tree_conflicts_with_clobbers_p): Same.
10411 (expand_asm_stmt): Same.
10412 (verify_loop_structure): Same.
10413 * cgraphunit.c (process_function_and_variable_attributes): Same.
10414 * collect-utils.c (collect_execute): Same.
10415 * collect2.c (maybe_run_lto_and_relink): Same.
10416 (is_lto_object_file): Same.
10417 (scan_prog_file): Same.
10418 * convert.c (convert_to_real_1): Same.
10419 * dwarf2out.c (dwarf2out_begin_prologue): Same.
10420 * except.c (verify_eh_tree): Same.
10421 * gcc.c (execute): Same.
10422 (eval_spec_function): Same.
10423 (run_attempt): Same.
10424 (driver::set_up_specs): Same.
10425 (compare_debug_auxbase_opt_spec_function): Same.
10426 * gcov-tool.c (unlink_gcda_file): Same.
10427 (do_merge): Same.
10428 (do_rewrite): Same.
10429 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
10430 * gimplify.c (gimplify_asm_expr): Same.
10431 (gimplify_adjust_omp_clauses): Same.
10432 * hsa-gen.c (gen_hsa_addr_insns): Same.
10433 (gen_hsa_insns_for_load): Same.
10434 (gen_hsa_cmp_insn_from_gimple): Same.
10435 (gen_hsa_insns_for_operation_assignment): Same.
10436 (gen_get_level): Same.
10437 (gen_hsa_alloca): Same.
10438 (omp_simple_builtin::generate): Same.
10439 (gen_hsa_atomic_for_builtin): Same.
10440 (gen_hsa_insns_for_call): Same.
10441 * input.c (dump_location_info): Same.
10442 * ipa-devirt.c (compare_virtual_tables): Same.
10443 * ira.c (ira_setup_eliminable_regset): Same.
10444 * lra-assigns.c (lra_assign): Same.
10445 * lra-constraints.c (lra_constraints): Same.
10446 * lto-streamer-in.c (lto_input_mode_table): Same.
10447 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
10448 (merge_and_complain): Same.
10449 (compile_offload_image): Same.
10450 (compile_images_for_offload_targets): Same.
10451 (debug_objcopy): Same.
10452 (run_gcc): Same.
10453 (main): Same.
10454 * opts.c (print_specific_help): Same.
10455 (parse_no_sanitize_attribute): Same.
10456 (print_help): Same.
10457 (handle_param): Same.
10458 * plugin.c (add_new_plugin): Same.
10459 (parse_plugin_arg_opt): Same.
10460 (try_init_one_plugin): Same.
10461 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
10462 operators, and types in diagnostics. Correct quoting and spelling
10463 issues.
10464 * read-rtl-function.c (parse_edge_flag_token): Same.
10465 (function_reader::parse_enum_value): Same.
10466 * reg-stack.c (check_asm_stack_operands): Same.
10467 * regcprop.c (validate_value_data): Same.
10468 * sched-rgn.c (make_pass_sched_fusion): Same.
10469 * stmt.c (check_unique_operand_names): Same.
10470 * targhooks.c (default_target_option_pragma_parse): Same.
10471 * tlink.c (recompile_files): Same.
10472 * toplev.c (process_options): Same.
10473 (do_compile): Same.
10474 * trans-mem.c (diagnose_tm_1): Same.
10475 (ipa_tm_scan_irr_block): Same.
10476 (ipa_tm_diagnose_transaction): Same.
10477 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
10478 format a tree code name in a diagnostic.
10479 (verify_types_in_gimple_min_lval): Same.
10480 (verify_types_in_gimple_reference): Same.
10481 (verify_gimple_call): Same.
10482 (verify_gimple_assign_unary): Same.
10483 (verify_gimple_assign_binary): Same.
10484 (verify_gimple_assign_ternary): Same.
10485 (verify_gimple_assign_single): Same.
10486 (verify_gimple_switch): Same.
10487 (verify_gimple_label): Same.
10488 (verify_gimple_phi): Same.
10489 (verify_gimple_in_seq): Same.
10490 (verify_eh_throw_stmt_node): Same.
10491 (collect_subblocks): Same.
10492 (gimple_verify_flow_info): Same.
10493 (do_warn_unused_result): Same.
10494 * tree-inline.c (expand_call_inline): Same.
10495 * tree-into-ssa.c (update_ssa): Same.
10496 * tree.c (tree_int_cst_elt_check_failed): Same.
10497 (tree_vec_elt_check_failed): Same.
10498 (omp_clause_operand_check_failed): Same.
10499 (verify_type_variant): Same.
10500 (verify_type): Same.
10501 * value-prof.c (verify_histograms): Same.
10502 * varasm.c (assemble_start_function): Same.
10503
10504 2019-05-16 Martin Sebor <msebor@redhat.com>
10505
10506 * config/i386/i386-expand.c (get_element_number): Quote keywords
10507 and other internal names in diagnostics. Adjust other diagnostic
10508 formatting issues noted by -Wformat-diag.
10509 * config/i386/i386-features.c
10510 (ix86_mangle_function_version_assembler_name): Same.
10511 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
10512 * config/i386/i386.c (ix86_function_type_abi): Same.
10513 (ix86_function_ms_hook_prologue): Same.
10514 (classify_argument): Same.
10515 (ix86_expand_prologue): Same.
10516 (ix86_md_asm_adjust): Same.
10517 (ix86_memmodel_check): Same.
10518
10519 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10520
10521 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
10522 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
10523 and fpxx modes.
10524
10525 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
10526
10527 PR target/90497
10528 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
10529 intrinsics without SSE/SSE2/SSSE3.
10530 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
10531 check.
10532 (*mmx_uavgv8qi3): Likewise.
10533
10534 2019-05-17 Richard Biener <rguenther@suse.de>
10535
10536 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
10537 VEC_PERM_EXPR as __VEC_PERM with -gimple.
10538
10539 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
10540
10541 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
10542 vec_sldw insn pattern.
10543
10544 2019-05-17 Richard Biener <rguenther@suse.de>
10545
10546 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
10547
10548 2019-05-17 Martin Liska <mliska@suse.cz>
10549
10550 PR driver/90496
10551 * toplev.c (output_stack_usage): With LTO and sanitizer it
10552 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
10553 has no file location.
10554
10555 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10556
10557 PR c++/90484
10558 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
10559 sz0 is equal to sz1, instead return false in that case.
10560
10561 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
10562 has non-constant expression, force sctx.lane and use two
10563 argument IFN_GOMP_SIMD_LANE instead of single argument.
10564 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
10565 two argument IFN_GOMP_SIMD_LANE without lhs.
10566 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
10567 member.
10568 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
10569 Define.
10570 (LOOP_REQUIRES_VERSIONING): Or in
10571 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
10572 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10573 simd_if_cond.
10574 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
10575 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
10576 from simd if clause if needed.
10577
10578 2019-05-16 Richard Biener <rguenther@suse.de>
10579
10580 * tree-affine.c (expr_to_aff_combination): New function split
10581 out from...
10582 (tree_to_aff_combination): ... here.
10583 (aff_combination_expand): Avoid building a GENERIC tree.
10584
10585 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
10586
10587 * cgraphunit.c (cgraph_node::expand_thunk): Remove
10588 assemble_start_function and assemble_end_function calls.
10589 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
10590 assemble_start_function and assemble_end_function.
10591 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
10592 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
10593 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
10594 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
10595 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
10596 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
10597 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
10598 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
10599 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10600 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10601 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10602 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
10603 Likewise.
10604 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10605 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
10606 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
10607 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
10608 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10609 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10610 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
10611 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
10612 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10613 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
10614 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10615 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10616 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
10617 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
10618 Likewise.
10619 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10620 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10621 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
10622
10623 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
10624
10625 * tree-ssa-alias.c (alias_stats): Add
10626 aliasing_component_refs_p_may_alias and
10627 aliasing_component_refs_p_no_alias.
10628 (dump_alias_stats): Print aliasing_component_refs_p stats.
10629 (aliasing_component_refs_p): Update stats.
10630
10631 2019-05-16 Martin Liska <mliska@suse.cz>
10632
10633 PR lto/90500
10634 * multiple_target.c (expand_target_clones): Do not allow
10635 target_clones being used with a symbol that is an alias.
10636
10637 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
10638
10639 PR tree-optimization/90394
10640 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
10641 positives rather than ICE for cases where (code2 == NE_EXPR
10642 && code1 == BIT_AND_EXPR).
10643
10644 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10645
10646 PR fortran/90329
10647 * tree-core.h (struct tree_decl_common): Document
10648 decl_nonshareable_flag for PARM_DECLs.
10649 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
10650 * calls.c (expand_call): Don't try tail call if caller
10651 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
10652 passed on the stack and callee needs to pass any arguments on the
10653 stack.
10654 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10655 else if instead of series of mutually exclusive ifs. Handle
10656 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
10657 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10658
10659 * lto-streamer.h (LTO_major_version): Bump to 9.
10660
10661 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
10662
10663 PR tree-optimization/90106
10664 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
10665 new parameter as new internal function call, also move it to new
10666 basic block.
10667 (use_internal_fn): Pass internal function call to
10668 shrink_wrap_one_built_in_call_with_conds.
10669
10670 2019-05-15 Jakub Jelinek <jakub@redhat.com>
10671
10672 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
10673 max_vf to 1.
10674 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
10675 safelen_int and set loop->dont_vectorize.
10676
10677 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10678
10679 PR target/89021
10680 * config/i386/i386-builtin.def: Enable MMX intrinsics with
10681 SSE/SSE2/SSSE3.
10682 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10683 Likewise.
10684 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
10685 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
10686 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
10687 is defined.
10688
10689 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10690
10691 PR target/89021
10692 * config/i386/mmx.md (*vec_dupv2sf): Changed to
10693 define_insn_and_split to support SSE emulation.
10694 (*vec_extractv2sf_0): Likewise.
10695 (*vec_extractv2sf_1): Likewise.
10696 (*vec_extractv2si_0): Likewise.
10697 (*vec_extractv2si_1): Likewise.
10698 (*vec_extractv2si_zext_mem): Likewise.
10699 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
10700 (vec_extractv2sf_1 splitter): Likewise.
10701 (vec_extractv2sfsf): Likewise.
10702 (vec_setv2si): Likewise.
10703 (vec_extractv2si_1 splitter): Likewise.
10704 (vec_extractv2sisi): Likewise.
10705 (vec_setv4hi): Likewise.
10706 (vec_extractv4hihi): Likewise.
10707 (vec_setv8qi): Likewise.
10708 (vec_extractv8qiqi): Likewise.
10709 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10710 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
10711 (vec_extractv2sisi): Likewise.
10712 (vec_extractv4hihi): Likewise.
10713 (vec_extractv8qiqi): Likewise.
10714 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10715 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
10716 (vec_initv2sisi): Likewise.
10717 (vec_initv4hihi): Likewise.
10718 (vec_initv8qiqi): Likewise.
10719 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
10720 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
10721 (vec_setv4hi): Likewise.
10722 (vec_setv8qi): Likewise.
10723
10724 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10725
10726 PR target/89021
10727 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
10728 TARGET_MMX_WITH_SSE.
10729 (MMXMODE:*mov<mode>_internal): Likewise.
10730 (MMXMODE:movmisalign<mode>): Likewise.
10731
10732 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
10733
10734 PR target/89021
10735 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
10736 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
10737 (sse2_cvtpd2pi): Ditto.
10738 (sse2_cvttpd2pi): Ditto.
10739 (*vec_concatv2sf_sse4_1): Ditto.
10740 (*vec_concatv2sf_sse): Ditto.
10741 (*vec_concatv2si_sse4_1): Ditto.
10742 (*vec_concatv2si): Ditto.
10743 (*vec_concatv4si_0): Ditto.
10744 (*vec_concatv2di_0): Ditto.
10745
10746 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10747
10748 PR target/89021
10749 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
10750
10751 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10752
10753 PR target/89021
10754 * config/i386/sse.md (ssse3_palignrdi): Changed to
10755 define_insn_and_split to support SSE emulation.
10756
10757 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10758
10759 PR target/89021
10760 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
10761
10762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10763
10764 PR target/89021
10765 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
10766 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10767 SSE emulation.
10768
10769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10770
10771 PR target/89021
10772 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
10773 or TARGET_MMX_WITH_SSE.
10774 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
10775
10776 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10777
10778 PR target/89021
10779 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
10780
10781 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10782
10783 PR target/89021
10784 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
10785 Changed to define_insn_and_split to support SSE emulation.
10786
10787 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10788
10789 PR target/89021
10790 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
10791 Changed to define_insn_and_split to support SSE emulation.
10792
10793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10794
10795 PR target/89021
10796 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
10797 (*mmx_<emms>): This.
10798 (mmx_<emms>): New expander.
10799
10800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10801
10802 PR target/89021
10803 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
10804 support.
10805 (*sse2_umulv1siv1di3): Add SSE2 emulation.
10806
10807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10808
10809 PR target/89021
10810 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
10811
10812 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10813
10814 PR target/89021
10815 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
10816
10817 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10818
10819 PR target/89021
10820 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
10821 TARGET_MMX_WITH_SSE.
10822 (*mmx_uavgv4hi3): Add SSE emulation.
10823
10824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10825
10826 PR target/89021
10827 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
10828 and TARGET_MMX_WITH_SSE.
10829 (*mmx_uavgv8qi3): Add SSE emulation.
10830
10831 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10832
10833 PR target/89021
10834 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
10835 maskmovdqu for __MMX_WITH_SSE__.
10836
10837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10838
10839 PR target/89021
10840 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
10841 TARGET_MMX and TARGET_MMX_WITH_SSE.
10842 (*mmx_umulv4hi3_highpart): Add SSE emulation.
10843
10844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10845
10846 PR target/89021
10847 * config/i386/mmx.md (mmx_pmovmskb): Changed to
10848 define_insn_and_split to support SSE emulation.
10849
10850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10851
10852 PR target/89021
10853 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
10854 and TARGET_MMX_WITH_SSE.
10855 (mmx_<code>v8qi3): Likewise.
10856 (smaxmin:<code>v4hi3): New.
10857 (umaxmin:<code>v8qi3): Likewise.
10858 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
10859 (umaxmin:*mmx_<code>v8qi3): Likewise.
10860
10861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10862
10863 PR target/89021
10864 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
10865 TARGET_MMX_WITH_SSE.
10866 (*mmx_pinsrw): Add SSE emulation.
10867
10868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10869
10870 PR target/89021
10871 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
10872
10873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10874
10875 PR target/89021
10876 * config/i386/sse.md (sse_cvtpi2ps): Changed to
10877 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10878 SSE emulation.
10879
10880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10881
10882 PR target/89021
10883 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
10884 (sse_cvttps2pi): Likewise.
10885
10886 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10887
10888 PR target/89021
10889 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
10890 TARGET_MMX_WITH_SSE.
10891 (mmx_pshufw_1): Add SSE emulation.
10892 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
10893 TARGET_MMX_WITH_SSE to support SSE emulation.
10894
10895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10896
10897 PR target/89021
10898 * config/i386/constraints.md (Yw): New constraint.
10899 * config/i386/mmx.md (*vec_dupv2si): Changed to
10900 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
10901 support SSE emulation.
10902
10903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10904
10905 PR target/89021
10906 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
10907 TARGET_MMX_WITH_SSE.
10908 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10909 support.
10910 (mmx_gt<mode>3): Likewise.
10911
10912 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10913
10914 PR target/89021
10915 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
10916 TARGET_MMX_WITH_SSE. Add SSE support.
10917
10918 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10919
10920 PR target/89021
10921 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
10922 TARGET_MMX_WITH_SSE.
10923 (any_logic:<code><mode>3): New.
10924 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
10925 Add SSE support.
10926
10927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10928
10929 PR target/89021
10930 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
10931 TARGET_MMX_WITH_SSE. Add SSE emulation.
10932 (mmx_<shift_insn><mode>3): Likewise.
10933 (ashr<mode>3): New.
10934 (<shift_insn><mode>3): Likewise.
10935
10936 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10937
10938 PR target/89021
10939 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
10940 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
10941
10942 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10943
10944 PR target/89021
10945 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
10946 TARGET_MMX_WITH_SSE.
10947 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
10948 SSE support.
10949
10950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10951
10952 PR target/89021
10953 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
10954 TARGET_MMX_WITH_SSE.
10955 (mulv4hi3): New.
10956 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10957 support.
10958
10959 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10960
10961 PR target/89021
10962 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
10963 (plusminus:mmx_<plusminus_insn><mode>3): Check
10964 TARGET_MMX_WITH_SSE.
10965 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
10966 (<plusminus_insn><mode>3): New.
10967 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
10968 (*mmx_<plusminus_insn><mode>3): Likewise.
10969
10970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10971
10972 PR target/89021
10973 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
10974 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
10975 prototype.
10976 * config/i386/mmx.m (mmx_punpckhbw): Changed to
10977 define_insn_and_split to support SSE emulation.
10978 (mmx_punpcklbw): Likewise.
10979 (mmx_punpckhwd): Likewise.
10980 (mmx_punpcklwd): Likewise.
10981 (mmx_punpckhdq): Likewise.
10982 (mmx_punpckldq): Likewise.
10983
10984 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10985 Uros Bizjak <ubizjak@gmail.com>
10986
10987 PR target/89021
10988 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
10989 New function.
10990 (ix86_split_mmx_pack): Likewise.
10991 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
10992 New prototype.
10993 (ix86_split_mmx_pack): Likewise.
10994 * config/i386/i386.md (mmx_isa): New.
10995 (enabled): Also check mmx_isa.
10996 * config/i386/mmx.md (any_s_truncate): New code iterator.
10997 (s_trunsuffix): New code attr.
10998 (mmx_packsswb): Removed.
10999 (mmx_packssdw): Likewise.
11000 (mmx_packuswb): Likewise.
11001 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
11002 MMX packsswb/packuswb with SSE2.
11003 (mmx_packssdw): Likewise.
11004 * config/i386/predicates.md (register_mmxmem_operand): New.
11005
11006 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11007
11008 PR target/89021
11009 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11010 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
11011 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
11012 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
11013 (ix86_vector_mode_supported_p): Likewise.
11014 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
11015
11016 2019-05-15 Martin Liska <mliska@suse.cz>
11017
11018 PR middle-end/90478
11019 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11020 Check for overflow.
11021
11022 2019-05-15 Richard Biener <rguenther@suse.de>
11023
11024 * tree-into-ssa.c (pass_build_ssa::execute): Run
11025 update_address_taken before going into SSA.
11026
11027 2019-05-15 Richard Biener <rguenther@suse.de>
11028
11029 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
11030 as __BIT_FIELD_REF with type with -gimple.
11031
11032 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
11033
11034 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
11035 semantically equivalent branches (left over after prior refactorings).
11036
11037 2019-05-15 Richard Biener <rguenther@suse.de>
11038
11039 PR tree-optimization/88828
11040 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
11041 bogus check.
11042
11043 2019-05-14 Richard Biener <rguenther@suse.de>
11044
11045 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
11046 as __VIEW_CONVERT with -gimple.
11047
11048 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11049
11050 PR target/82920
11051 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
11052 Darwin.
11053
11054 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11055
11056 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
11057 define_split to become a define_insn_and_split.
11058
11059 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11060
11061 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
11062 arguments.
11063 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
11064 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
11065 (sibcall_epilogue): Adjust.
11066 (epilogue): Adjust.
11067
11068 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11069
11070 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
11071 to unsupported ones.
11072 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
11073 * config.host: Likewise.
11074 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
11075 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
11076 __svr4__]: Remove "brand" fallback.
11077 [!KSTAT_DATA_STRING]: Remove.
11078 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
11079 to *-*-solaris2*.
11080 (comdat_group): Likewise.
11081 (set_have_as_tls): Likewise.
11082 (gcc_cv_target_dl_iterate_phdr): Likewise.
11083 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
11084 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
11085 * configure: Regenerate.
11086 * doc/install.texi: Simplify Solaris target triplets.
11087 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
11088 (Specific, *-*-solaris2*): Document Solaris 10 removal.
11089 Remove Solaris 10 references.
11090 Remove obsolete Solaris bug reference.
11091 (Specific, sparc-sun-solaris2.10): Remove.
11092
11093 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
11094
11095 * config/i386/i386.md (any_div): New code iterator.
11096 (paired_mod): New code attribute.
11097 (sgnprefix): Handle DIV and UDIV RTXes.
11098 (u): Ditto.
11099 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
11100 and udivmod<mode>4 patterns using any_div code iterator.
11101 (divmod splitters): Macroize splitters using any_div code iterator.
11102 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
11103 (*udivmodsi4_pow2_zext_2): Ditto.
11104 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
11105 and *udivmod<mode>4_noext patterns using any_div code iterator.
11106 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
11107 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
11108 patterns using any_div code iterator.
11109 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
11110 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
11111 patterns using any_div code iterator.
11112 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
11113 udivmodhiqi3 patterns using any_extend code iterator.
11114
11115 2019-05-14 Richard Biener <rguenther@suse.de>
11116 H.J. Lu <hongjiu.lu@intel.com>
11117
11118 PR tree-optimization/88828
11119 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11120 permuting in a single non-constant element not extracted
11121 from a vector.
11122
11123 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11124
11125 * internal-fn.def (SIGNBIT): New.
11126 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
11127 defined.
11128 (signbitv4sf2): Likewise.
11129
11130 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
11131
11132 PR target/90357
11133 * config/mips/mips.c (mips_split_move): Skip forward SRC into
11134 next insn when the SRC reg is dead.
11135
11136 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
11137
11138 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
11139 (alloc_cand_and_find_basis): Ditto.
11140 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
11141 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
11142 (create_add_imm_cand, slsr_process_cast): Ditto.
11143 (slsr_process_copy, replace_mult_candidate): Ditto.
11144 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
11145 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
11146 (pass_strength_reduction::execute): Init the first NULL element.
11147
11148 2019-05-13 Nathan Sidwell <nathan@acm.org>
11149
11150 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
11151 (run_attempt): Reformat line break.
11152
11153 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
11154
11155 PR target/90418
11156 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
11157 data registers in sibcall epilogues.
11158 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11159
11160 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
11161
11162 PR target/89221
11163 * configure.ac (--enable-frame-pointer):
11164 Disable by default for cygwin and mingw.
11165 * configure: Regenerate.
11166
11167 2019-05-13 Nathan Sidwell <nathan@acm.org>
11168
11169 * dwarf2out.c (breakout_comdat_types): Move comment to correct
11170 piece of code.
11171 (const_ok_for_output_1): Balance parens around #if/#else/#endif
11172 (gen_member_die): Move abstract origin check earlier. Only VARs
11173 can be static_inline_p. Simplify splicing control flow.
11174
11175 2019-05-13 Richard Biener <rguenther@suse.de>
11176
11177 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
11178 VIEW_CONVERT_EXPR.
11179 (vect_build_slp_tree_1): Likewise.
11180
11181 2019-05-13 Richard Biener <rguenther@suse.de>
11182
11183 PR tree-optimization/90402
11184 * tree-if-conv.c (tree_if_conversion): Value number only
11185 the loop body by making the latch an exit of the region
11186 as well.
11187 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
11188 processing PHIs.
11189 (do_rpo_vn): Deal with multiple edges into the entry block
11190 that are not backedges inside the region by skipping PHIs
11191 of the entry block.
11192
11193 2019-05-13 Richard Biener <rguenther@suse.de>
11194
11195 PR tree-optimization/90316
11196 * tree-ssa-pre.c (insert_aux): Fold into ...
11197 (insert): ... this function. Use a RPO walk to reduce the
11198 number of required iterations.
11199
11200 2019-05-13 Martin Liska <mliska@suse.cz>
11201
11202 PR tree-optimization/90416
11203 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
11204 string instead of passing the second part as va_arg argument.
11205
11206 2019-05-13 Martin Liska <mliska@suse.cz>
11207
11208 PR gcov-profile/90380
11209 * gcov.c (handle_cycle): Do not support zero cycle count,
11210 it should not be possible.
11211 (path_contains_zero_cycle_arc): New function.
11212 (circuit): Ignore zero cycle arc counts.
11213
11214 2019-05-13 Martin Liska <mliska@suse.cz>
11215
11216 PR gcov-profile/90380
11217 * gcov.c (enum loop_type): Remove the enum and
11218 the operator.
11219 (handle_cycle): Assert that we should not reach
11220 a negative count.
11221 (circuit): Use loop_found instead of a tri-state loop_type.
11222 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
11223 happen.
11224
11225 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11226
11227 PR target/82920
11228 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
11229 (ix86_output_indirect_branch_via_reg): Use output mechanism
11230 accounting for __USER_LABEL_PREFIX__.
11231 (ix86_output_indirect_branch_via_push): Likewise.
11232 (ix86_output_function_return): Likewise.
11233 (ix86_output_indirect_function_return): Likewise.
11234
11235 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
11236
11237 * doc/md.texi: Document use of code attributes in rtx patterns.
11238 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
11239 * read-rtl.c (find_code): Split out search loops into...
11240 (maybe_find_code): ...this new function.
11241 (check_code_iterator): Make the error message more informative.
11242 (check_code_attribute): New function.
11243 (rtx_reader::rtx_alloc_for_name): Likewise.
11244 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
11245 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
11246 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
11247 <max_opp> directly as an rtx code instead of via a match_operator.
11248 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
11249 (<su>abd<mode>_3): Update accordingly.
11250
11251 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11252
11253 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
11254 is given, print the state of the EH "save world" computation for
11255 Darwin.
11256
11257 2019-05-11 Jakub Jelinek <jakub@redhat.com>
11258
11259 PR c++/59813
11260 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
11261 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11262
11263 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
11264
11265 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
11266 Use pinsrd for TARGET_SSE4_1.
11267 * config/i386/sse.md (movdi_to_sse): Ditto.
11268
11269 2019-05-10 Richard Biener <rguenther@suse.de>
11270
11271 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
11272 (do_rpo_vn): Initialize next_value_id.
11273
11274 2019-05-10 Martin Liska <mliska@suse.cz>
11275
11276 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11277 Fix plural form.
11278
11279 2019-05-10 Jakub Jelinek <jakub@redhat.com>
11280
11281 PR tree-optimization/90385
11282 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
11283 arguments of the exit phis.
11284
11285 PR c++/90383
11286 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
11287 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
11288 id->do_not_fold.
11289 (copy_tree_body_r): Likewise.
11290 (copy_fn): Set id.do_not_fold to true.
11291
11292 2019-05-10 Martin Liska <mliska@suse.cz>
11293
11294 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
11295 Reapply changes from r269790.
11296
11297 2019-05-10 Martin Liska <mliska@suse.cz>
11298
11299 PR middle-end/90340
11300 * doc/invoke.texi: New params.
11301 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
11302 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
11303 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11304 Use it.
11305 * tree-switch-conversion.h (struct jump_table_cluster):
11306 Likewise.
11307
11308 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
11309
11310 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
11311
11312 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
11313
11314 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
11315
11316 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
11317
11318 PR rtl-optimization/88879
11319 * sel-sched.c (sel_target_adjust_priority): Remove assert.
11320
11321 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
11322
11323 PR target/90405
11324 * config/arm/arm.c (callee_saved_reg_p): Move before
11325 thumb_find_work_register.
11326 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
11327 thumb_find_work_register. Only call df_get_live_out once.
11328 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
11329 (thumb_find_work_register): Use
11330 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
11331 algorithms to locate a spare call clobbered reg.
11332
11333 2019-05-09 Martin Liska <mliska@suse.cz>
11334
11335 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
11336 and MAX_EXPR in GIMPLE FE format.
11337
11338 2019-05-09 Martin Liska <mliska@suse.cz>
11339
11340 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
11341 * gimple-pretty-print.c (dump_gimple_bb_header):
11342 Dump BB count.
11343 (pp_cfg_jump): Dump edge probability.
11344 * profile-count.c (profile_quality_as_string): Simplify
11345 with a static array.
11346 (parse_profile_quality): New function.
11347 (profile_count::dump): Simplify with a static array.
11348 (profile_count::from_gcov_type): Add new argument.
11349 * profile-count.h (parse_profile_quality): Likewise.
11350 * predict.h (set_hot_bb_threshold): New.
11351 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11352 New param.
11353 * predict.c (get_hot_bb_threshold): Set from the new param.
11354 (set_hot_bb_threshold): New.
11355
11356 2019-05-09 Richard Biener <rguenther@suse.de>
11357
11358 PR tree-optimization/90395
11359 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
11360 rewrite vector stores that throw internally.
11361
11362 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
11363
11364 * cif-code.def (CHKP): Remove.
11365
11366 PR target/89221
11367 * configure.ac (--enable-frame-pointer): Disable by default for
11368 GNU systems.
11369 * configure: Regenerate.
11370
11371 2019-05-09 Alan Modra <amodra@gmail.com>
11372
11373 PR target/89271
11374 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
11375 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
11376 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
11377 cost for general <-> vsx when direct moves are available.
11378 Cost union classes at minimal cost for any reg in the class.
11379 Correct calculation for moves between vsx, float, and altivec.
11380 Don't return a low cost for moves between special regs. Don't
11381 use hard coded register numbers.
11382 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
11383 (rs6000_ira_change_pseudo_allocno_class): New function.
11384 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
11385 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
11386 alternatives.
11387 (movsi_internal1): Don't disparage vector alternatives.
11388 (mov<mode>_internal): Likewise, excepting alternative that
11389 will be split.
11390 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
11391 we <- b alternative.
11392
11393 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11394
11395 PR c++/59813
11396 PR tree-optimization/89060
11397 * tree-ssa-live.h (live_vars_map): New typedef.
11398 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
11399 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
11400 (struct compute_live_vars_data): New type.
11401 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
11402 live_vars_at_stmt, destroy_live_vars): New functions.
11403 * tree-tailcall.c: Include tree-ssa-live.h.
11404 (live_vars, live_vars_vec): New global variables.
11405 (find_tail_calls): Perform variable life analysis before punting.
11406 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
11407 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
11408 member.
11409 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
11410 Perform variable life analysis to select variables that really need
11411 clobbers added.
11412 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
11413 instead set id->eh_landing_pad_dest and assert it is the same.
11414 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
11415
11416 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
11417 Richard Earnshaw <rearnsha@arm.com>
11418
11419 PR target/88167
11420 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
11421 function.
11422 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
11423 (thumb1_compute_save_core_reg_mask): Don't force a spare work
11424 register if both the epilogue and prologue can use call-clobbered
11425 regs.
11426 (thumb1_unexpanded_epilogue): Use
11427 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
11428 picking temporaries for restoring high regs to match that of the
11429 prologue where possible.
11430 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
11431 the list of work registers. Detect if the return address is still live
11432 at the end of the prologue and avoid using it for a work register if so.
11433 If the return address is not live, add LR to the list of pushable regs
11434 after the first pass.
11435
11436 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11437
11438 PR tree-optimization/90078
11439 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
11440 (INFTY): Increase the value for infinite cost.
11441 (struct comp_cost): Promote type of members to int64_t.
11442 (infinite_cost): Don't set complexity in initialization.
11443 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
11444 overflows to infinite_cost.
11445 (adjust_setup_cost): Promote type of parameter and cost computation
11446 to int64_t.
11447 (struct ainc_cost_data, struct iv_ca): Promote type of member to
11448 int64_t.
11449 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
11450 cost computation to int64_t.
11451 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
11452 int64_t's format specifier in dump.
11453
11454 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11455
11456 PR tree-optimization/90240
11457 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
11458 with respect to scaling factor pre-computed for each basic block.
11459 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
11460 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
11461 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
11462 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
11463 live range for array of loop's basic blocks. Cleanup aux field of
11464 loop's basic blocks.
11465
11466 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11467
11468 PR tree-optimization/90356
11469 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
11470
11471 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
11472
11473 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
11474 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
11475 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
11476 (ix86_handle_option): Handle -mavx512bf16.
11477 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
11478 to extra_headers.
11479 * config/i386/avx512bf16vlintrin.h: New.
11480 * config/i386/avx512bf16intrin.h: New.
11481 * config/i386/cpuid.h (bit_AVX512BF16): New.
11482 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
11483 * config/i386/i386-builtin-types.def: Add new types.
11484 * config/i386/i386-builtin.def: Add new builtins.
11485 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11486 __AVX512BF16__.
11487 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
11488 (ix86_option_override_internal): Handle BF16.
11489 (ix86_valid_target_attribute_inner_p): Ditto.
11490 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
11491 * config/i386/i386-builtin.c (enum processor_features): Add
11492 F_AVX512BF16.
11493 (static const _isa_names_table isa_names_table): Ditto.
11494 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
11495 (PTA_AVX512BF16): Ditto.
11496 * config/i386/i386.opt: Add -mavx512bf16.
11497 * config/i386/immintrin.h: Include avx512bf16intrin.h
11498 and avx512bf16vlintrin.h.
11499 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
11500 avx512f_cvtneps2bf16_<mode><mask_name>,
11501 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
11502 * config/i386/subst.md (mask_half): Add new subst.
11503 * doc/invoke.texi: Document -mavx512bf16.
11504
11505 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11506
11507 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
11508 Delete declaration.
11509 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
11510 (rs6000_debug_legitimize_reload_address): Delete.
11511 (rs6000_legitimize_reload_address_ptr): Delete.
11512 (rs6000_option_override_internal): Adjust.
11513 (mem_operand_gpr): Adjust comment.
11514 (legitimate_lo_sum_address_p): Ditto.
11515 (rs6000_legitimize_reload_address): Delete.
11516 (rs6000_debug_legitimize_reload_address): Delete.
11517 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
11518
11519 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
11520
11521 PR target/89765
11522 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11523 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
11524 to compute vector element selector for both constant and variable
11525 operands.
11526
11527 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11528
11529 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
11530 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
11531 ashrdi3_cvt using SWI48 mode iterator.
11532
11533 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11534
11535 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
11536 (aarch64_<su>abd<mode>_3): Likewise.
11537 (*aarch64_<su>abd<mode>_3): New define_insn.
11538 (<sur>sad<vsi2qi>): New define_expand.
11539 * config/aarch64/iterators.md: Added MAX_OPP attribute.
11540 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
11541 (build_vect_cond_expr): Likewise.
11542
11543 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11544
11545 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
11546 clobbers outside of accessible_reg_set.
11547 * config/i386/i386.c (ix86_conditional_register_usage):
11548 Disable register sets by clearing corresponding bits in
11549 accessible_reg_set. Do not set corresponding bits in fixed_regs,
11550 call_used_regs and don't clear corresponding reg_names array members.
11551
11552 2019-05-07 Richard Biener <rguenther@suse.de>
11553
11554 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
11555 not specified still compute a comp_vectype for invariant
11556 compares.
11557
11558 2019-05-07 Richard Biener <rguenther@suse.de>
11559
11560 PR tree-optimization/90316
11561 * tree-ssa-pre.c (translate_vuse_through_block): When
11562 same_valid is NULL do not bother to search for a virtual
11563 PHI continuation.
11564 (phi_translate_1): When operands changed we cannot keep
11565 the same value-number so do not bother to ask whether
11566 that's possible from translate_vuse_through_block.
11567
11568 2019-05-07 Martin Liska <mliska@suse.cz>
11569
11570 * bitmap.c (bitmap_register): Come up with
11571 alloc_descriptor_max_uid and assign it for
11572 a new bitmap.
11573 (register_overhead): Use get_descriptor as
11574 a descriptor.
11575 (release_overhead): New.
11576 (bitmap_elem_to_freelist): Call it.
11577 (bitmap_elt_clear_from): Likewise.
11578 (bitmap_obstack_free): Likewise.
11579 (bitmap_move): Sensitively release memory.
11580 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
11581 (bitmap_initialize): Initialize alloc_descriptor to zero.
11582 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
11583
11584 2019-05-07 Richard Biener <rguenther@suse.de>
11585
11586 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
11587 we build a SLP node. Remove max_size and limiting.
11588 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
11589
11590 2019-05-07 Richard Biener <rguenther@suse.de>
11591
11592 PR tree-optimization/90316
11593 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
11594 limit by reference.
11595 (walk_non_aliased_vuses): Take walking limit argument.
11596 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
11597 walking if it is reached instead of just counting.
11598 (get_continuation_for_phi): Likewise.
11599 (walk_non_aliased_vuses): Likewise, instead of leaving counter
11600 limiting to the callback.
11601 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
11602 (vn_reference_lookup_3): Likewise.
11603 (vn_reference_lookup_pieces): Likewise.
11604 (vn_reference_lookup): Likewise.
11605 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
11606 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
11607 (avail_exprs_stack::lookup_avail_expr): Likewise.
11608
11609 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
11610
11611 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
11612 for comparaible types in the second direction even if first one
11613 hits incomparable type.
11614
11615 2019-05-07 Richard Biener <rguenther@suse.de>
11616
11617 PR lto/90369
11618 * lto-wrapper.c (debug_objcopy): Use the original filename
11619 including archive offset for the filename used for -save-temps.
11620
11621 2019-05-07 Li Jia He <helijia@linux.ibm.com>
11622
11623 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
11624 detection.
11625
11626 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
11627 Hongtao Liu <hongtao.liu@intel.com>
11628
11629 PR target/89750
11630 PR target/86444
11631 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
11632 Modified, original implementation isn't correct.
11633
11634 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11635
11636 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
11637 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
11638 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
11639 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
11640 (FRAME_POINTER_REGNUM): Change numbering.
11641 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
11642 (alt_reg_names): Adjust.
11643 (rs6000_conditional_register_usage): Don't mark hard register 64 as
11644 fixed.
11645 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11646 (DWARF_FRAME_REGISTERS): Delete.
11647 (DWARF2_FRAME_REG_OUT): Fix whitespace.
11648 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11649 Adjust.
11650 (REG_ALLOC_ORDER): Adjust.
11651 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
11652 (REG_CLASS_CONTENTS): Adjust.
11653 (RETURN_ADDR_RTX): Change comment.
11654 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
11655 instead of 67.
11656 (REGISTER_NAMES): Adjust.
11657 (ADDITIONAL_REGISTER_NAMES): Adjust.
11658 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11659
11660 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11661
11662 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
11663 Delete.
11664 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11665 (DWARF_FRAME_REGISTERS): Adjust.
11666 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11667 Adjust.
11668 (REG_ALLOC_ORDER): Adjust.
11669 (enum reg_class): Delete SPR_REGS.
11670 (REG_CLASS_NAMES): Delete SPR_REGS.
11671 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
11672 (REGISTER_NAMES): Adjust.
11673 (ADDITIONAL_REGISTER_NAMES): Adjust.
11674 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11675 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
11676 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
11677 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
11678 (htm_spr_regno): Delete.
11679 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
11680 argument.
11681 (rs6000_dbx_register_number): Adjust.
11682
11683 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11684
11685 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
11686
11687 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11688
11689 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
11690 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
11691
11692 2019-05-06 Jakub Jelinek <jakub@redhat.com>
11693
11694 PR tree-optimization/88709
11695 PR tree-optimization/90271
11696 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
11697 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
11698 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
11699 variable.
11700 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
11701 of the store merging group is larger than
11702 PARAM_STORE_MERGING_MAX_SIZE parameter.
11703 (split_group): Add bzero_first argument. If set, always emit first
11704 the first store which must be = {} of the whole area and then for the
11705 rest of the stores consider all zero bytes as paddings.
11706 (imm_store_chain_info::output_merged_store): Check if first store
11707 is = {} of the whole area and if yes, determine which setting of
11708 bzero_first for split_group gives smaller number of stores. Adjust
11709 split_group callers.
11710 (lhs_valid_for_store_merging_p): Allow decls.
11711 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
11712 no elts.
11713 (pass_store_merging::process_store): Likewise.
11714
11715 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
11716
11717 PR target/89424
11718 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11719 handling of V1TImode.
11720
11721 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
11722
11723 PR target/89221
11724 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
11725 and enable_frame_pointer ...
11726 * configure.ac: ... here. Update help strings for
11727 --enable-frame-pointer.
11728 * configure: Regenerate.
11729 * config/i386/i386-options.c (ix86_option_override_internal): Remove
11730 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
11731 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
11732 (USE_X86_64_FRAME_POINTER): Ditto.
11733
11734 2019-05-06 Martin Liska <mliska@suse.cz>
11735
11736 * config.gcc: Append to target_gtfiles and fix indentation.
11737
11738 2019-05-06 Richard Biener <rguenther@suse.de>
11739
11740 PR tree-optimization/90358
11741 * tree-vect-stmts.c (get_group_load_store_type): Properly
11742 detect unused upper half of load.
11743 (vectorizable_load): Likewise.
11744
11745 2019-05-06 Richard Biener <rguenther@suse.de>
11746
11747 PR tree-optimization/88828
11748 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
11749 (simplify_vector_constructor): ...here. Handle constants in
11750 the constructor.
11751
11752 2019-05-06 Richard Biener <rguenther@suse.de>
11753
11754 PR tree-optimization/90328
11755 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
11756 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
11757 is valid in the loop nest before using it.
11758 (initialize_data_dependence_relation): Adjust.
11759 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
11760 loop as loop-nest to dr_may_alias_p.
11761
11762 2019-05-06 Richard Biener <rguenther@suse.de>
11763
11764 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
11765
11766 2019-05-06 Richard Biener <rguenther@suse.de>
11767
11768 PR tree-optimization/90316
11769 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
11770 compute target on demand.
11771 (get_continuation_for_phi): Remove code walking stmts to
11772 get to a target virtual operand which could end up being
11773 quadratic.
11774
11775 2019-05-06 Martin Liska <mliska@suse.cz>
11776
11777 PR sanitizer/90312
11778 * config/i386/i386-options.c (ix86_option_override_internal): Error only
11779 when -mabi is selected to a non-default version.
11780
11781 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
11782 Martin Liska <mliska@suse.cz>
11783
11784 * Makefile.in: Add lto-dump.texi.
11785 * cgraph.h: Add new functions get_visibility_string and
11786 get_symtab_type_string.
11787 * doc/gcc.texi: Include lto-dump section.
11788 * doc/lto-dump.texi: New file.
11789 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
11790 (parse_dump_option): Factor out this function.
11791 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
11792 (parse_dump_option): Export the function.
11793 * symtab.c (symtab_node::get_visibility_string): New function.
11794 (symtab_node::get_symtab_type_string): Likewise.
11795
11796 2019-05-06 Martin Liska <mliska@suse.cz>
11797
11798 * config/i386/i386-builtins.c: New file.
11799 * config/i386/i386-builtins.h: New file.
11800 * config/i386/i386-expand.c: New file.
11801 * config/i386/i386-expand.h: New file.
11802 * config/i386/i386-features.c: New file.
11803 * config/i386/i386-features.h: New file.
11804 * config/i386/i386-options.c: New file.
11805 * config/i386/i386-options.h: New file.
11806 * config.gcc: Add new files into extra_objs and
11807 target_gtfiles.
11808 * config/i386/i386.c: Split content of the file
11809 into newly introduced files.
11810 * config/i386/i386.h: Declare common variables
11811 and macros.
11812 * config/i386/t-i386: Define dependencies for new files.
11813
11814 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
11815
11816 PR target/89400
11817 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
11818 Restrict 'all' variant to 32-bit configurations.
11819 (unaligned_loadhiu): Likewise.
11820 (unaligned_storehi): Likewise.
11821 (unaligned_storesi): Likewise.
11822 (unaligned_loadhis): Disable when compiling for thumb1.
11823
11824 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
11825
11826 PR tree-optimization/90269
11827 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11828 Ignore clobbers.
11829
11830 2019-05-03 Martin Liska <mliska@suse.cz>
11831
11832 * hash-map.h: Add is_empty function.
11833 * hash-set.h: Likewise.
11834 * hash-table.h: Likewise.
11835 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
11836 elements () == 0 (and similar usages).
11837 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
11838 * gimplify.c (gimplify_bind_expr): Likewise.
11839 (gimplify_switch_expr): Likewise.
11840 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
11841 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
11842 * postreload-gcse.c (dump_hash_table): Likewise.
11843 (gcse_after_reload_main): Likewise.
11844 * predict.c (combine_predictions_for_bb): Likewise.
11845 * tree-parloops.c (reduction_phi): Likewise.
11846 (separate_decls_in_region): Likewise.
11847 (transform_to_exit_first_loop): Likewise.
11848 (gen_parallel_loop): Likewise.
11849 (gather_scalar_reductions): Likewise.
11850 (try_create_reduction_list): Likewise.
11851 * var-tracking.c (dump_vars): Likewise.
11852 (emit_notes_for_changes): Likewise.
11853 (vt_emit_notes): Likewise.
11854
11855 2019-05-03 Richard Biener <rguenther@suse.de>
11856
11857 PR tree-optimization/90316
11858 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
11859 before running VN.
11860
11861 2019-05-03 Richard Biener <rguenther@suse.de>
11862
11863 * tree-vect-stmts.c (get_group_load_store_type): Avoid
11864 peeling for gaps by loading only lower halves of vectors
11865 if possible.
11866 (vectorizable_load): Likewise.
11867
11868 2019-05-03 Richard Biener <rguenther@suse.de>
11869
11870 PR middle-end/89518
11871 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
11872
11873 2019-05-03 Richard Biener <rguenther@suse.de>
11874
11875 PR middle-end/87314
11876 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
11877 Handle STRING_CST vs DECL or STRING_CST.
11878
11879 2019-05-03 Richard Biener <rguenther@suse.de>
11880
11881 PR tree-optimization/88963
11882 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
11883 vector loads feeding only BIT_FIELD_REFs to component
11884 loads. Rewrite stores fed by CONSTRUCTORs to component
11885 stores.
11886
11887 2019-05-03 Jakub Jelinek <jakub@redhat.com>
11888
11889 * opts.h (finish_options): Remove lang_mask argument.
11890 (print_help, help_option_argument): Declare.
11891 * opts.c (print_help): Remove forward declaration, no longer static.
11892 (finish_options): Remove lang_mask argument, don't call print_help
11893 here.
11894 * opts-global.c (decode_options): Adjust finish_option caller, call
11895 print_help here.
11896
11897 PR tree-optimization/90303
11898 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
11899 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
11900
11901 2019-05-03 Richard Biener <rguenther@suse.de>
11902
11903 PR tree-optimization/89698
11904 * gimple-fold.c (canonicalize_constructor_val): Early out
11905 for constants, handle unfolded INTEGER_CSTs as they appear in
11906 C++ virtual table ctors.
11907
11908 2019-05-03 Richard Biener <rguenther@suse.de>
11909
11910 * passes.c (execute_function_todo): Remove dead code.
11911
11912 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11913
11914 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
11915 the internal register number, for any "real" register.
11916
11917 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11918
11919 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
11920 correct numbers for TFHAR, TFIAR, TEXASR.
11921
11922 2019-05-02 Richard Biener <rguenther@suse.de>
11923
11924 PR tree-optimization/89653
11925 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
11926 update-address-taken before the pass.
11927 * passes.def (pass_tree_loop_init): Put comment before it.
11928
11929 2019-05-02 Richard Biener <rguenther@suse.de>
11930
11931 PR tree-optimization/89509
11932 * tree-ssa-structalias.c (compute_dependence_clique): Look
11933 at the first subvar when determining whether it is restrict.
11934
11935 2019-05-02 Richard Biener <rguenther@suse.de>
11936
11937 PR tree-optimization/90273
11938 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
11939 useless debug stmts.
11940
11941 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11942
11943 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
11944 ACLE branch.
11945 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
11946 SVE ACLE branch.
11947 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
11948 VEC_COND_EXPR be inserted to emulate a conditional internal function.
11949 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
11950 (vectorizable_reduction): Use the functions above to vectorize in a
11951 fully masked loop codes that don't have a conditional internal
11952 function.
11953
11954 2019-05-02 Martin Liska <mliska@suse.cz>
11955
11956 * cgraphclones.c: Call valid_attribute_p with 1 for
11957 target_clone.
11958 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
11959 it's for target attribute.
11960 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
11961 Add new boolean argument.
11962 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11963 Likewise.
11964 (ix86_valid_target_attribute_tree): Pass target_clone_attr
11965 to ix86_valid_target_attribute_inner_p.
11966 (ix86_valid_target_attribute_p): Pass flags argument to
11967 ix86_valid_target_attribute_inner_p.
11968 (get_builtin_code_for_version): Use 0 as it's target attribute.
11969
11970 2019-05-02 Martin Liska <mliska@suse.cz>
11971
11972 * gcc.c (process_command): Add dummy file only
11973 if n_infiles == 0.
11974 * opts-global.c (decode_options): Pass lang_mask.
11975 * opts.c (print_help): New function.
11976 (finish_options): Print --help if help_option_argument
11977 is set.
11978 (common_handle_option): Factor out content of OPT__help_
11979 into print_help.
11980 * opts.h (finish_options): Add new argument.
11981
11982 2019-05-02 Martin Liska <mliska@suse.cz>
11983
11984 PR target/88809
11985 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
11986 With -minline-all-stringops use inline expansion using 4B loop.
11987 * doc/invoke.texi: Document the change of
11988 -minline-all-stringops.
11989
11990 2019-05-01 Jeff Law <law@redhat.com>
11991
11992 PR tree-optimization/88797
11993 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
11994 PHI feeds a conditional on the RHS of an assignment.
11995
11996 2019-04-30 Andrew Waterman <andrew@sifive.com>
11997 Jim Wilson <jimw@sifive.com>
11998
11999 * config/riscv/constraints.md (L): New.
12000 * config/riscv/predicates.md (lui_operand): New.
12001 (sfb_alu_operand): New.
12002 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
12003 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
12004 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
12005 * config/riscv/risc.md (type): Add sfb_alu.
12006 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
12007 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
12008 (branch_zero<mode>): Delete.
12009 (mov<mode>cc): New.
12010 (mov<GPR:mode><X:mode>cc): Likewise.
12011 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
12012
12013 2019-04-30 Nathan Sidwell <nathan@acm.org>
12014
12015 * tree.h (MARK_TS_EXP): New.
12016
12017 2019-04-30 Martin Liska <mliska@suse.cz>
12018
12019 * opts.c (enable_warning_as_error): Provide hints
12020 for unknown options.
12021
12022 2019-04-30 Martin Liska <mliska@suse.cz>
12023
12024 PR debug/90288
12025 * doc/invoke.texi: Add missing dash for gas-locview-support
12026 and gno-as-locview-support.
12027
12028 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12029
12030 PR target/89093
12031 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
12032 whitespace at the start of target attribute string.
12033
12034 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12035
12036 PR target/86538
12037 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
12038 Define __ARM_FEATURE_ATOMICS.
12039
12040 2019-04-30 Martin Liska <mliska@suse.cz>
12041
12042 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
12043 into built_in_function enum. Remove code for endp == 2 and
12044 use BUILT_IN_* constants.
12045 (gimple_fold_builtin): Call the function with fcode.
12046
12047 2019-04-30 Martin Liska <mliska@suse.cz>
12048
12049 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
12050 DECL_FUNCTION_CODE into ix86_builtins enum before
12051 the switch statement.
12052
12053 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12054
12055 PR tree-optimization/89475
12056 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
12057 calls.
12058
12059 2019-04-30 Martin Liska <mliska@suse.cz>
12060
12061 PR translation/90274
12062 * opts.c (print_filtered_help): Wrap string in _(...).
12063
12064 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
12065
12066 PR tree-optimization/90240
12067 Revert:
12068 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12069
12070 PR tree-optimization/90078
12071 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12072 checks for infinite_cost overflow.
12073
12074 2019-04-29 Jeff Law <law@redhat.com>
12075
12076 * passes.def: Move -Wrestrict pass after copy propagation.
12077
12078 2019-04-29 Maya Rashish <coypu@sdf.org>
12079
12080 * config.gcc (default_gnu_indirect_function): Default to yes
12081 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
12082 sparc*-*-netbsd*, x86_64-*-netbsd*.
12083
12084 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
12085
12086 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
12087 where cond2 is NE_EXPR.
12088 (is_value_included_in): Update comment.
12089
12090 2019-04-29 Richard Biener <rguenther@suse.de>
12091
12092 PR tree-optimization/90278
12093 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
12094 EH on comparison simplification.
12095
12096 2019-04-29 Jason Merrill <jason@redhat.com>
12097
12098 PR c++/82081 - tail call optimization breaks noexcept
12099 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
12100 nothrow function to a might-throw function into a tail call.
12101
12102 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
12103
12104 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
12105 (DDR_INNER_LOOP): Likewise.
12106 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
12107 (initialize_data_dependence_relation): Likewise.
12108 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
12109
12110 2019-04-29 Jakub Jelinek <jakub@redhat.com>
12111
12112 PR rtl-optimization/90257
12113 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
12114 return value.
12115
12116 Revert the revert:
12117 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12118
12119 PR target/90178
12120 Revert:
12121 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12122
12123 Revert the revert:
12124 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12125
12126 Revert:
12127 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12128
12129 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12130
12131 2019-04-29 Richard Biener <rguenther@suse.de>
12132
12133 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
12134 rhs issue a reset.
12135
12136 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
12137
12138 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
12139 varasm.h, and netbsd-protos.h.
12140
12141 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
12142
12143 PR target/89261
12144 * config/i386/i386-protos.h (ix86_data_alignment): Change
12145 the second argument type to unsigned int.
12146 * config/i386/i386.c (ix86_data_alignment): Change "align"
12147 argument type to unsigned int.
12148
12149 2019-04-27 Martin Liska <mliska@suse.cz>
12150
12151 PR middle-end/90258
12152 * opt-suggestions.c (option_proposer::build_option_suggestions):
12153 When get_valid_option_values returns empty values, add the
12154 misspelling candidate.
12155
12156 2019-04-26 Jim Wilson <jimw@sifive.com>
12157
12158 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
12159 parameter.
12160 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
12161 Pass orig_mode to riscv_build_integer.
12162 (riscv_split_integer): Pass mode to riscv_move_integer.
12163 (riscv_legitimize_const_move): Likewise.
12164 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
12165 promoted_mode. Replace force_reg call with code to load constant into
12166 promoted reg and then subreg it for the store.
12167 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
12168 riscv_move_integer.
12169
12170 2018-04-26 Eugene Sharygin <eush@ispras.ru>
12171
12172 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
12173 corrupt codes.
12174
12175 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
12176
12177 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
12178 commentary about the encoding of precision.
12179
12180 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
12181
12182 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
12183 * config/i386/t-freebsd64: New file.
12184 * config.gcc: Add the t-freebsd64 for multilib support.
12185
12186 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
12187
12188 * doc/extend.texi (vector_size): Add missing comma after @xref.
12189
12190 2019-04-25 Jakub Jelinek <jakub@redhat.com>
12191
12192 * BASE-VER: Set to 10.0.0.
12193
12194 2019-04-25 Richard Biener <rguenther@suse.de>
12195
12196 PR middle-end/89765
12197 * gimplify.c (gimplify_expr): Avoid turning a lvalue
12198 VIEW_CONVERT_EXPR into one operating on an rvalue.
12199
12200 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
12201
12202 PR target/89929
12203 * config/i386/i386.c (feature_priority): Moved to file scope.
12204 (processor_features): Likewise.
12205 (processor_model): Likewise.
12206 (_arch_names_table): Likewise.
12207 (arch_names_table): Likewise.
12208 (_feature_list): Removed.
12209 (feature_list): Likewise.
12210 (_isa_names_table): Moved to file scope. Add priority.
12211 (isa_names_table): Likewise.
12212 (get_builtin_code_for_version): Replace feature_list with
12213 isa_names_table. Update error message for P_ZERO priority.
12214
12215 2019-04-25 Richard Biener <rguenther@suse.de>
12216
12217 * tree-pass.h (make_pass_phi_only_cprop): Remove.
12218 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
12219
12220 2019-04-24 Jeff Law <law@redhat.com>
12221
12222 PR tree-optimization/90037
12223 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
12224 * passes.def: Replace all instance of phi-only cprop with the
12225 lattice propagator. Move propagation pass from after erroneous
12226 path isolation to before erroneous path isolation.
12227 * tree-ssa-phionlycprop.c: Remove.
12228
12229 2019-04-24 Richard Biener <rguenther@suse.de>
12230
12231 PR middle-end/90213
12232 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
12233 by size and BITS_PER_UNIT on poly-wide-ints.
12234
12235 2019-04-25 Richard Biener <rguenther@suse.de>
12236
12237 PR middle-end/90194
12238 * match.pd: Add pattern to simplify view-conversion of an
12239 empty constructor.
12240
12241 2019-04-24 Clement Chigot <clement.chigot@atos.net>
12242
12243 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
12244 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
12245 for Go on 32 bit AIX.
12246 * config/rs6000/aix72.h: Likewise.
12247
12248 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12249
12250 PR target/90193
12251 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
12252 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
12253
12254 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
12255
12256 PR target/89952
12257 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
12258 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
12259 for restored hard frame pointer.
12260 (s390_sched_dependencies_evaluation): Implement new target hook.
12261 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
12262
12263 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
12264
12265 * config/arc/arc-options.def: Fix typos and spelling mistakes.
12266 * config/arc/arc.c (arc_init): Cleanup warning message.
12267 (arc_override_options): Likewise.
12268
12269 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12270
12271 PR target/90187
12272 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
12273 a register if both if_true and if_false are MEMs.
12274
12275 PR tree-optimization/90208
12276 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
12277 after labels of new_bb, not before them.
12278
12279 PR tree-optimization/90211
12280 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
12281 which are not SSA_NAMEs.
12282
12283 2018-04-23 Sudakshina Das <sudi.das@arm.com>
12284
12285 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
12286 AArch64.
12287 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
12288
12289 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12290
12291 PR rtl-optimization/87979
12292 * modulo-sched.c (sms_schedule): Start ii value "mii" should
12293 not equal zero.
12294
12295 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12296
12297 PR rtl-optimization/84032
12298 * modulo-sched.c (ps_insn_find_column): Change condition so that
12299 branch will always be the last insn in a row inside partial
12300 schedule.
12301
12302 2019-04-23 Richard Biener <rguenther@suse.de>
12303
12304 PR debug/90131
12305 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
12306 dest_single_pred_p argument.
12307 (remove_forwarder_block): Adjust.
12308 (remove_forwarder_block_with_phi): Likewise.
12309
12310 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12311 Bernd Edlinger <bernd.edlinger@hotmail.de>
12312 Jakub Jelinek <jakub@redhat.com>
12313
12314 PR target/89093
12315 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
12316 if used with general-regs-only.
12317 (arm_conditional_register_usage): Don't add non-general regs if
12318 general-regs-only.
12319 (arm_valid_target_attribute_rec): Handle general-regs-only.
12320 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
12321 general-regs-only.
12322 (TARGET_HARD_FLOAT_SUB): Define.
12323 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
12324 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
12325 (TARGET_REALLY_IWMMXT2): Likewise.
12326 * config/arm/arm.opt: Add -mgeneral-regs-only.
12327 * doc/extend.texi: Document ARM general-regs-only target.
12328 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
12329
12330 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12331
12332 PR tree-optimization/90078
12333 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12334 checks for infinite_cost overflow.
12335
12336 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12337
12338 PR tree-optimization/90021
12339 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
12340 and check univariate against it.
12341 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
12342 * tree-data-ref.c (add_other_self_distances): Pass new argument.
12343
12344 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12345
12346 PR target/90178
12347 Revert:
12348 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12349
12350 Revert the revert:
12351 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12352
12353 Revert:
12354 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12355
12356 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12357
12358 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
12359
12360 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
12361 names using operand format, rather than hard-wired.
12362 (speculation_barrier): Likewise.
12363
12364 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
12365
12366 PR tree-optimization/88055
12367 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
12368 (gen_one_condition): Use it if !HONOR_NANS.
12369
12370 2019-04-19 Jakub Jelinek <jakub@redhat.com>
12371
12372 PR middle-end/90139
12373 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
12374 assign_temp instead of gen_reg_rtx.
12375
12376 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
12377
12378 PR translation/90118
12379 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12380 Add missing space before %<.
12381
12382 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
12383
12384 PR rtl-optimization/87871
12385 * ira-lives.c (make_object_dead): Don't add conflicts to
12386 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
12387
12388 2019-04-18 Martin Sebor <msebor@redhat.com>
12389
12390 PR middle-end/89797
12391 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
12392 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
12393 assuming type size fits in SHWI.
12394
12395 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
12396
12397 PR ipa/85051
12398 * ipa-inline.c (flatten_function): New parameter UPDATE.
12399 (ipa_inline, early_inliner): Use it.
12400
12401 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12402
12403 * fold-const.c (int_const_binop): Return early on failure.
12404
12405 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12406
12407 PR middle-end/85164
12408 * combine.c (force_int_to_mode): Cast the argument rather than
12409 the result of known_alignment.
12410 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
12411
12412 2019-04-18 Richard Biener <rguenther@suse.de>
12413
12414 PR debug/90131
12415 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
12416 out from ...
12417 (remove_forwarder_block): ... here.
12418 (remove_forwarder_block_with_phi): Also move debug stmts here.
12419
12420 2019-04-18 Jakub Jelinek <jakub@redhat.com>
12421
12422 PR translation/79183
12423 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
12424 inform where appropriate.
12425
12426 2019-04-18 Richard Biener <rguenther@suse.de>
12427
12428 * tree.c (get_qualified_type): Put found type variants at the
12429 head of the variant list.
12430
12431 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12432
12433 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
12434
12435 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
12436
12437 PR target/90125
12438 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
12439 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
12440 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
12441 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
12442 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
12443
12444 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
12445
12446 * ira-conflicts.c (print_allocno_conflicts): Always print something,
12447 even for allocno's with no conflicts.
12448 (print_conflicts): Print an extra newline.
12449
12450 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12451
12452 * auto-inc-dec.c (attempt_change): Set the alignment of the
12453 temporary memory to that of the original.
12454
12455 2019-04-17 Joao Moreira <jmoreira@suse.de>
12456
12457 * targhooks.c (default_print_patchable_function_entry): Emit
12458 __patchable_function_entries section with writable flags to allow
12459 relocation resolution.
12460
12461 2019-04-17 Jonny Grant <jg@jguk.org>
12462
12463 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
12464
12465 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12466
12467 PR middle-end/90095
12468 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
12469 on lowpart SUBREGs.
12470
12471 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
12472
12473 * config/arc/arc.c (arc_init): Format diagnostic string.
12474 (arc_override_options): Likewise.
12475 (check_if_valid_regno_const): Likewise.
12476 (arc_reorg): Likewise.
12477
12478 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12479
12480 PR target/17108
12481 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
12482 name.
12483 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
12484 name.
12485 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
12486 (*movdi_update1): Use Pmode.
12487 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
12488 (movdi_<mode>_update_stack): Rename to ...
12489 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
12490 use Pmode.
12491 (*movsi_update1): Use Pmode.
12492 (*movsi_update2): Use Pmode.
12493 (movsi_update): Rename to ...
12494 (movsi_<mode>_update): ... this. Use Pmode.
12495 (movsi_update_stack): Fix condition.
12496 (*movhi_update1): Use Pmode. Fix argument to
12497 avoiding_indexed_address_p.
12498 (*movhi_update2): Ditto.
12499 (*movhi_update3): Ditto.
12500 (*movhi_update4): Ditto.
12501 (*movqi_update1): Ditto.
12502 (*movqi_update2): Ditto.
12503 (*movqi_update3): Ditto.
12504 (*movsf_update1, *movdf_update1): Merge, rename to...
12505 (*mov<mode>_update1): This. Use Pmode. Fix argument to
12506 avoiding_indexed_address_p. Add "size" attribute.
12507 (*movsf_update2, *movdf_update2): Merge, rename to...
12508 (*mov<mode>_update2): This. Ditto.
12509 (*movsf_update3): Use Pmode. Fix argument to
12510 avoiding_indexed_address_p.
12511 (*movsf_update4): Ditto.
12512 (allocate_stack): Simplify condition. Adjust pattern names.
12513
12514 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12515
12516 PR target/89093
12517 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
12518 whitespace at the start of target attribute string.
12519
12520 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
12521
12522 PR target/84369
12523 * config/rs6000/power9.md: Add store forwarding bypass.
12524
12525 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
12526
12527 PR debug/89528
12528 * valtrack.c (dead_debug_insert_temp): Reset debug references
12529 to the return value of a call being removed.
12530
12531 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12532
12533 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
12534 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
12535 implement target hook.
12536 (arc_memory_move_cost): New function.
12537 (TARGET_REGISTER_MOVE_COST): Define.
12538 (TARGET_MEMORY_MOVE_COST): Likewise.
12539 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
12540 (MEMORY_MOVE_COST): Likewise.
12541
12542 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12543
12544 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
12545 (sibcall_value_insn): Likewise.
12546 * config/arc/constraints.md (Rs5): Remove.
12547
12548 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12549
12550 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
12551 for last two fake registers.
12552 (arc_conditional_register_usage): Make sure fake frame and arg
12553 pointer regs are in general regs class.
12554 (FRAME_POINTER_MASK): Remove.
12555 (RETURN_ADDR_MASK): Remove.
12556 (arc_must_save_register): Use hard frame regnum.
12557 (frame_restore_reg): Use hard_frame_pointer_rtx.
12558 (arc_save_callee_saves): Likewise.
12559 (arc_restore_callee_saves): Likewise.
12560 (arc_save_callee_enter): Likewise.
12561 (arc_restore_callee_leave): Likewise.
12562 (arc_save_callee_milli): Likewise.
12563 (arc_eh_return_address_location): Likewise.
12564 (arc_check_multi): Use hard frame regnum.
12565 (arc_can_eliminate): Likewise.
12566 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
12567 for register allocator.
12568 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
12569 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
12570 (FRAME_POINTER_REGNUM): Change it to a fake register.
12571 (HARD_FRAME_POINTER_REGNUM): Defined.
12572 (ARG_POINTER_REGNUM): Change it to a new fake register.
12573 (ELIMINABLE_REGS): Update.
12574 (REGISTER_NAMES): Update names.
12575 * config/arc/arc.md (LP_START): Remove.
12576 (LP_END): Likewise.
12577 (shift_si3_loop): Update pattern.
12578
12579 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12580
12581 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
12582 to avoid delay slot scheduling.
12583 (arc_must_save_register): Don't save SP.
12584 * config/arc/arc.md (stack_tie): Remove.
12585 (UNSPEC_ARC_STKTIE): Likewise.
12586
12587 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
12588 Shiva Chen <shiva0217@gmail.com>
12589
12590 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
12591 code gen with large shift amount.
12592
12593 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
12594
12595 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
12596 subreg.
12597
12598 2019-04-16 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR target/90096
12601 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
12602 print -m64/-mx32/-m32 if it is true.
12603 (ix86_debug_options, ix86_function_specific_print): Pass true as
12604 ADD_ABI_P to ix86_target_string.
12605 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
12606 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
12607 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
12608
12609 PR rtl-optimization/90082
12610 * dce.c (can_delete_call): New function.
12611 (deletable_insn_p, mark_insn): Use it.
12612
12613 PR tree-optimization/90090
12614 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
12615 throw internally.
12616 (is_division_by_square): Likewise. Formatting fix.
12617
12618 2019-04-16 Richard Biener <rguenther@suse.de>
12619
12620 PR tree-optimization/56049
12621 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
12622 equality check if alias-set zero will prevail.
12623
12624 2019-04-15 Jeff Law <law@redhat.com>
12625
12626 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
12627 size and alignment as unsigned.
12628
12629 2019-04-15 Richard Biener <rguenther@suse.de>
12630
12631 PR debug/90074
12632 * tree-loop-distribution.c (destroy_loop): Preserve correct
12633 debug info.
12634
12635 2019-04-15 Richard Biener <rguenther@suse.de>
12636
12637 PR tree-optimization/90071
12638 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
12639 abnormal operands from def stmts.
12640
12641 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
12642
12643 PR rtl-optimization/89794
12644 * combine.c (count_auto_inc): New function.
12645 (try_combine): Count how many auto_inc expressions there were in the
12646 original instructions. Ensure we have the same number in the new
12647 instructions. Remove the code that tried to ensure auto_inc side
12648 effects on i1 and i0 are not lost.
12649
12650 2019-04-15 Richard Biener <rguenther@suse.de>
12651
12652 PR ipa/88936
12653 * tree.h (auto_var_p): Declare.
12654 * tree.c (auto_var_p): New function, split out from ...
12655 (auto_var_in_fn_p): ... here.
12656 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
12657 member.
12658 (new_var_info): Initialize it.
12659 (set_uids_in_ptset): Also set the shadow variable uid if required.
12660 (ipa_pta_execute): Postprocess points-to solutions assigning
12661 shadow variable uids for locals that may reach their containing
12662 function recursively.
12663 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
12664 assert but instead check whether the points-to solution is
12665 a singleton.
12666
12667 2019-04-15 Martin Jambor <mjambor@suse.cz>
12668
12669 PR ipa/pr89693
12670 * cgraph.c (clone_of_p): Loop over clone chain for each step in
12671 the thunk chain.
12672
12673 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12674
12675 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
12676
12677 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12678 Kito Cheng <kito.cheng@gmail.com>
12679 Shiva Chen <shiva0217@gmail.com>
12680
12681 * config/nds32/nds32-md-auxiliary.c
12682 (nds32_legitimize_pic_address): Use new PIC pattern.
12683 (nds32_legitimize_tls_address): Use new TLS pattern.
12684 (nds32_output_symrel): New.
12685 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
12686 (nds32_alloc_relax_group_id): Ditto.
12687 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
12688 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
12689 relax_group_id.
12690 (nds32_group_tls_insn): Ditto.
12691 (nds32_group_float_insns): Ditto.
12692 * config/nds32/nds32.md (tls_le): New.
12693 (sym_got): Ditto.
12694
12695 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
12696
12697 * configure: Add nds32 target for dwarf2 debug_line checking.
12698 * configure.ac: Regenerated.
12699
12700 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
12701
12702 PR lto/89358
12703 * ipa-devirt.c (skip_in_fields_list_p): New.
12704 (odr_types_equivalent_p): Use it.
12705
12706 2019-04-13 Jakub Jelinek <jakub@redhat.com>
12707
12708 PR target/89093
12709 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
12710 instead of strncmp when checking for thumb and arm. Formatting fixes.
12711
12712 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
12713
12714 * doc/install.texi: Document --with-target-system-zlib.
12715
12716 2019-04-12 Martin Sebor <msebor@redhat.com>
12717
12718 PR c/88383
12719 PR c/89288
12720 PR c/89798
12721 PR c/89797
12722 * targhooks.c (default_vector_alignment): Avoid assuming
12723 argument fits in SHWI.
12724 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
12725 a shift expression.
12726 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
12727
12728 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12729
12730 PR rtl-optimization/89965
12731 * dce.c: Include rtl-iter.h.
12732 (struct check_argument_load_data): New type.
12733 (check_argument_load): New function.
12734 (find_call_stack_args): Check for loads from stack slots still tracked
12735 in sp_bytes and punt if any is found.
12736
12737 * config/mips/loongson-mmiintrin.h: Fix up #error message.
12738
12739 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
12740
12741 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
12742 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
12743
12744 2019-04-12 Martin Liska <mliska@suse.cz>
12745
12746 PR middle-end/89970
12747 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
12748 in error message.
12749 (separate_attrs): Handle multiple 'default's.
12750 (expand_target_clones): Rework error handling code.
12751
12752 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
12753
12754 PR target/87532
12755 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
12756 mode of vector rather than mode of destination for move instruction.
12757 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
12758 Use QI inner mode with V16QI vector mode.
12759
12760 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12761
12762 PR target/52726
12763 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
12764 "invalid %%t operand" in output_operand_lossage message.
12765
12766 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
12767
12768 * config/s390/predicates.md (permute_pattern_operand): New
12769 predicate.
12770 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
12771 operand for the permute pattern.
12772 ("*vec_perm<mode>"): New insn definition.
12773 ("bswap<mode>"): Generate the permute pattern operand in the
12774 expander and perform the operand reloads for pre arch13 level
12775 already.
12776 ("*bswap<mode>_emu"): Rename to ...
12777 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
12778 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
12779 Add the USE operand for the permute pattern.
12780 ("*vec_set_bswap_vec<mode>"): Likewise.
12781
12782 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12783
12784 PR c/89946
12785 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
12786 and gcc_unreachable if it fails, just call tree_to_uhwi which
12787 verifies that too. Test TREE_CHAIN instead of list_length > 1.
12788 Start warning message with a lower-case letter. Formatting fixes.
12789
12790 PR rtl-optimization/90026
12791 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
12792 successors, look for BARRIERs inside of the whole BB_FOOTER chain
12793 rather than just at the start of it. If e->src BB_FOOTER is not NULL
12794 in cfglayout mode, use emit_barrier_after_bb.
12795
12796 2018-04-11 Steve Ellcey <sellcey@marvell.com>
12797
12798 PR rtl-optimization/87763
12799 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
12800 New Instruction.
12801
12802 2019-04-11 Tom de Vries <tdevries@suse.de>
12803
12804 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
12805 max macro using statement expression.
12806
12807 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
12808
12809 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
12810 * xcoffout.c (xcoff_private_rodata_section_name): Define.
12811 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
12812 read_only_private_data_section using xcoff_private_rodata_section_name.
12813 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
12814
12815 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
12816
12817 PR target/90016
12818 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
12819
12820 2019-04-11 Jakub Jelinek <jakub@redhat.com>
12821
12822 PR rtl-optimization/89965
12823 * dce.c (sp_based_mem_offset): New function.
12824 (find_call_stack_args): Use sp_based_mem_offset.
12825
12826 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
12827
12828 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
12829
12830 2019-04-11 Richard Biener <rguenther@suse.de>
12831
12832 PR tree-optimization/90020
12833 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
12834 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
12835 * tree-ssa-pre.c (compute_avail): Use it to not put
12836 possibly trapping references after a call that might not
12837 return into EXP_GEN.
12838 * gcse.c (compute_hash_table_work): Do not elide
12839 marking a block containing a call if the call might not
12840 return.
12841
12842 2019-04-11 Richard Biener <rguenther@suse.de>
12843
12844 PR tree-optimization/90018
12845 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
12846 Test both SLP and interleaving variants.
12847
12848 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
12849
12850 * config/s390/8561.md: New file.
12851 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12852 Add arch13 cpu model.
12853 * config/s390/s390-opts.h (enum processor_type): Likewise.
12854 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
12855 (s390_get_unit_mask): Likewise.
12856 (s390_is_fpd): Likewise.
12857 (s390_is_fxd): Likewise.
12858 * config/s390/s390.h (s390_tune_attr): Likewise.
12859 * config/s390/s390.md: Include arch13 pipeline description.
12860 * config/s390/s390.opt: Add arch13.
12861
12862 2018-04-10 Steve Ellcey <sellcey@marvell.com>
12863
12864 PR rtl-optimization/87763
12865 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
12866 New prototype.
12867 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
12868 New function.
12869 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
12870 New instruction.
12871 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
12872 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
12873 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
12874 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
12875
12876 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
12877
12878 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
12879 "Although" in -fipa-icf documentation.
12880
12881 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
12882 of using multiple -g options.
12883
12884 2019-04-10 Martin Liska <mliska@suse.cz>
12885
12886 PR gcov-profile/89959
12887 * doc/gcov.texi: Make documentation of -x option
12888 more precise.
12889
12890 2019-04-10 Richard Biener <rguenther@suse.de>
12891
12892 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
12893 member.
12894 (DR_GROUP_SAME_DR_STMT): Remove.
12895 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
12896 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
12897 replace with assert.
12898 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
12899 (vect_record_grouped_load_vectors): Remove unreachable code.
12900
12901 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
12902
12903 PR target/90016
12904 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
12905 obsolete reference to N.
12906
12907 2019-04-10 Jakub Jelinek <jakub@redhat.com>
12908
12909 PR middle-end/90025
12910 * expr.c (store_expr): Set properly size on the MEM passed to
12911 clear_storage.
12912
12913 PR c++/90010
12914 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
12915 with strlen in between hostsz-3 and hostsz-1 inclusive when no
12916 translation is needed, and when translation is needed, only append
12917 ... if the string length is hostsz or more bytes long. Avoid using
12918 strncpy or strcat.
12919
12920 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
12921
12922 PR target/90024
12923 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
12924 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
12925 into three.
12926 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
12927 differences directly.
12928 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
12929
12930 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12931
12932 PR translation/90011
12933 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12934 from diagnostics.
12935 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
12936 diagnostics.
12937 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12938 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
12939 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
12940 trailing space from -gsplit-dwarf diagnostics.
12941
12942 PR tree-optimization/89998
12943 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
12944 instead of integer_type_node if possible, don't add ranges if return
12945 type is not compatible with int.
12946 * gimple-fold.c (gimple_fold_builtin_sprintf,
12947 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
12948 integer_type_node.
12949
12950 2019-04-09 Martin Liska <mliska@suse.cz>
12951
12952 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
12953 * doc/install.texi: Document the new config.
12954
12955 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
12956
12957 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
12958 use gimple_expr_type for load and store calls. Skip over the
12959 condition argument in a conditional internal function.
12960 Protect use of TREE_INT_CST_LOW.
12961
12962 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12963
12964 PR target/90015
12965 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
12966 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
12967 trailing period from it too.
12968
12969 2019-04-08 wu yuan <wuyuan5@huawei.com>
12970
12971 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
12972 * config/aarch64/aarch64.md : Add "tsv110.md"
12973 * config/aarch64/tsv110.md: New file.
12974
12975 2019-04-08 Richard Biener <rguenther@suse.de>
12976
12977 PR tree-optimization/90006
12978 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
12979 calls like lrint.
12980
12981 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
12982
12983 PR target/83033
12984 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
12985 construction.
12986 (fma_root_node): Likewise.
12987 (func_fma_steering): Likewise.
12988
12989 2019-04-08 Jakub Jelinek <jakub@redhat.com>
12990
12991 PR rtl-optimization/89865
12992 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
12993
12994 PR rtl-optimization/89865
12995 * config/i386/i386.md
12996 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
12997 numbers not to clash with the additional operands[4].
12998 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
12999 with extra register copy in the middle.
13000
13001 2019-04-08 Martin Liska <mliska@suse.cz>
13002
13003 PR gcov-profile/89961
13004 * doc/gcov.texi: Document data_file.
13005 * gcov.c (generate_results): Add data_info into JSON output.
13006
13007 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
13008
13009 PR tree-optimization/89725
13010 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
13011 loop's chrec as invariant symbol.
13012 * tree-chrec.h (chrec_contains_symbols): New parameter.
13013 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
13014 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
13015 function of loops not in DDR's loop_nest.
13016 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
13017
13018 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
13019
13020 PR target/89623
13021 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
13022 Mask.
13023
13024 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
13025
13026 PR target/89945
13027 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
13028 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
13029
13030 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
13031
13032 * sched-deps.c (sched_macro_fuse_insns): Check return value of
13033 targetm.fixed_condition_code_regs.
13034
13035 2019-04-05 Richard Biener <rguenther@suse.de>
13036
13037 PR debug/89892
13038 PR debug/89905
13039 * tree-cfgcleanup.c (remove_forwarder_block): Always move
13040 debug bind stmts but reset them if they are not valid at the
13041 destination.
13042
13043 2019-04-05 Martin Liska <mliska@suse.cz>
13044
13045 PR translation/89936
13046 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
13047 order to wrap keywords or arguments.
13048 * collect2.c (main): Likewise.
13049 (scan_prog_file): Likewise.
13050 (scan_libraries): Likewise.
13051 * common/config/riscv/riscv-common.c
13052 (riscv_subset_list::parsing_subset_version): Likewise.
13053 (riscv_subset_list::parse_std_ext): Likewise.
13054 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13055 Likewise.
13056 * config/arm/arm.c (arm_option_override): Likewise.
13057 * config/cris/cris.c (cris_print_operand): Likewise.
13058 * config/darwin-c.c (darwin_pragma_options): Likewise.
13059 (darwin_pragma_unused): Likewise.
13060 (darwin_pragma_ms_struct): Likewise.
13061 * config/ft32/ft32.c (ft32_print_operand): Likewise.
13062 * config/i386/i386.c (print_reg): Likewise.
13063 (ix86_print_operand): Likewise.
13064 * config/i386/xm-djgpp.h: Likewise.
13065 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
13066 * config/m32c/m32c.c (m32c_option_override): Likewise.
13067 * config/msp430/msp430.c (msp430_option_override): Likewise.
13068 * config/nds32/nds32.c (nds32_option_override): Likewise.
13069 * config/nvptx/mkoffload.c (main): Likewise.
13070 * config/rx/rx.c (rx_print_operand): Likewise.
13071 (valid_psw_flag): Likewise.
13072 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
13073 (vms_pragma_nomember_alignment): Likewise.
13074 (vms_pragma_extern_model): Likewise.
13075 * lto-wrapper.c (compile_offload_image): Likewise.
13076 * omp-offload.c (oacc_parse_default_dims): Likewise.
13077 * symtab.c (symtab_node::verify_base): Likewise.
13078 * tlink.c (recompile_files): Likewise.
13079 (start_tweaking): Likewise.
13080 * tree-profile.c (parse_profile_filter): Likewise.
13081
13082 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
13083
13084 PR tree-optimization/89956
13085 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
13086 multiple negates of the same value.
13087
13088 2019-04-04 Martin Sebor <msebor@redhat.com>
13089
13090 PR middle-end/89957
13091 PR middle-end/89911
13092 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
13093 have the same precision since the function crashes otherwise.
13094 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
13095 has non-zero arguments.
13096
13097 2019-04-04 Martin Sebor <msebor@redhat.com>
13098
13099 PR middle-end/89934
13100 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
13101 out if the number of arguments is less than expected.
13102
13103 2019-04-04 Jeff Law <law@redhat.com>
13104
13105 PR rtl-optimization/89399
13106 * ree.c (combine_set_extension): Use single_set rather than
13107 digging into PATTERN for items on the candidate list.
13108 (combine_reaching_defs): Likewise.
13109
13110 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
13111
13112 PR rtl-optimization/46590
13113 * loop-invariant.c (find_defs): Move df_remove_problem and
13114 df_process_deferred_rescans to move_invariants.
13115 Move df_live_add_problem and df_live_set_all_dirty calls
13116 to move_invariants.
13117 (move_invariants): Likewise.
13118 (move_loop_invariants): Likewise, making the df_live calls
13119 conditional on -O. Remove the problem again if we added it
13120 locally.
13121
13122 2019-04-03 qing zhao <qing.zhao@oracle.com>
13123
13124 PR tree-optimization/89730
13125 * ipa-inline.c (can_inline_edge_p): Delete the checking for
13126 -flive-patching=inline-only-static.
13127 (can_inline_edge_by_limits_p): Add the checking for
13128 -flive-patching=inline-only-static and grant always_inline
13129 even when -flive-patching=inline-only-static is specified.
13130
13131 2019-04-03 Jeff Law <law@redhat.com>
13132
13133 PR rtl-optimization/81025
13134 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
13135
13136 2019-04-03 Richard Biener <rguenther@suse.de>
13137
13138 PR tree-optimization/84101
13139 * tree-vect-stmts.c: Include explow.h for hard_function_value,
13140 regs.h for hard_regno_nregs.
13141 (cfun_returns): New helper.
13142 (vect_model_store_cost): When vectorizing a store to a decl
13143 we return and the function ABI returns in a multi-reg location
13144 account for the possible spilling that will happen.
13145
13146 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
13147
13148 * config/s390/s390.c (s390_legitimate_address_p): Reject long
13149 displacement addresses for vector mode operands.
13150
13151 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
13152
13153 * config/arc/arc.c (GMASK_LEN): Define.
13154 (arc_restore_callee_saves): Restore first blink when
13155 !optimize_size.
13156
13157 2019-04-03 Sudakshina Das <sudi.das@arm.com>
13158
13159 * doc/extend.texi: Add deprecated comment on sign-return-address
13160 function attribute and add mbranch-protection.
13161 * doc/invoke.texi: Add bti to the options for mbranch-protection.
13162
13163 2019-04-03 Richard Biener <rguenther@suse.de>
13164
13165 PR lto/89896
13166 * lto-wrapper.c (run_gcc): Avoid implicit rules making
13167 the all target phony.
13168
13169 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
13170
13171 PR target/89902
13172 PR target/89903
13173 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
13174 Return false for variable DImode shifts.
13175 (dimode_scalar_chain::compute_convert_gain): Do not handle
13176 register count operand in variable DImode shifts.
13177 (dimode_scalar_chain::make_vector_copies): Remove support to copy
13178 count argument of a variable shift instruction to a vector register.
13179 (dimode_scalar_chain::convert_reg): Remove support to convert
13180 count argument of a variable shift instruction.
13181
13182 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13183
13184 PR rtl-optimization/84206
13185 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
13186 iterating over loop headers.
13187
13188 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13189
13190 PR rtl-optimization/85876
13191 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
13192 beyond the original fence.
13193
13194 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
13195
13196 * config.gcc: Mark spu* targets as deprecated/obsolete.
13197
13198 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13199
13200 * config/s390/s390-builtin-types.def: New builtin function type
13201 definitions. Remove unused types.
13202 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
13203 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
13204 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
13205 overloaded builtins.
13206 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
13207 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
13208 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
13209 (vec_double, vec_signed, vec_unsigned): Define to use the new
13210 overloaded builtins.
13211 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
13212 Remove expanders.
13213
13214 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13215
13216 * config/s390/s390-builtin-types.def: New builtin function type
13217 definitions.
13218 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
13219 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
13220 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
13221 (s390_vstrszh, s390_vstrszf): New low-level builtins.
13222 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
13223 constant definitions.
13224 * config/s390/vecintrin.h (vec_search_string_cc)
13225 (vec_search_string_until_zero_cc): New builtin name definitions.
13226 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
13227 expanders.
13228 ("vec_vstrs<mode>"): New insn definition.
13229
13230 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13231
13232 * config/s390/s390-builtin-types.def: Add new builtin function
13233 types.
13234 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
13235 New overloaded builtins.
13236 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
13237 s390_vsrd.
13238 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
13239 (UNSPEC_VEC_SLDBYTE): ... this.
13240 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
13241 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
13242 definitions.
13243 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
13244 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
13245 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
13246
13247 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13248
13249 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
13250 New insn definition.
13251 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
13252 * config/s390/vector.md (V_HW_HSD): ... here.
13253
13254 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13255
13256 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
13257 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
13258 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
13259 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
13260 New insn definitions.
13261
13262 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13263
13264 * config/s390/s390-builtin-types.def: Add new builtin function type.
13265 * config/s390/s390-builtins.def: Add overloaded builtin
13266 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
13267 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
13268 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
13269 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
13270 ("eltswap<mode>"): New expander.
13271 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
13272 insn definitions.
13273
13274 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13275
13276 * config/s390/s390-builtin-types.def: Add new builtin function types.
13277 * config/s390/s390-builtins.def: Add overloaded builtin
13278 s390_vec_revb. Add low-level builtins for vlbr and vstbr
13279 instructions.
13280 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
13281 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
13282 ("bswap<mode>"): New expander.
13283 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
13284
13285 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13286
13287 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
13288 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
13289 vector builtin version number in __VEC__.
13290
13291 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13292
13293 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
13294 iterators.
13295 (SFSI): New mode attribute.
13296 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
13297 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
13298 rename to ...
13299 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
13300 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
13301 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
13302 ("floatsi<mode>2"): Add wcefb instruction.
13303
13304 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13305
13306 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
13307 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
13308 mode iterators.
13309 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
13310 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
13311 support 32 bit fp-int conversions. Rename to ...
13312 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13313 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13314 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
13315 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
13316 ... to these.
13317
13318 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13319
13320 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
13321 if-then-else constructs if we can use the select instruction.
13322 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
13323
13324 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13325
13326 * config/s390/s390.md ("*popcountdi_arch13_cc")
13327 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
13328 definition.
13329 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
13330 Append _z196 to make it ...
13331 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
13332 ("popcounthi2_z196"): ... this.
13333 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
13334 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
13335
13336 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13337
13338 * config/s390/s390.c (s390_canonicalize_comparison): Convert
13339 certain compares for arch13 in order to make use of the condition
13340 code result produced by the new instructions.
13341 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
13342 nxrk, and nxgrk instruction patterns.
13343 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
13344 (inv_no): Add new code iterator together with some attributes.
13345 ("*andc_split_<mode>"): Disable splitter for arch13.
13346 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
13347 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
13348 ("*<ANDOR:bitops_name>c<GPR:mode>")
13349 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
13350 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
13351 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
13352 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
13353
13354 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13355
13356 * common/config/s390/s390-common.c (processor_flags_table): New
13357 entry for arch13.
13358 * config.gcc: Support arch13 with the --with-arch= configure flag.
13359 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13360 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
13361 * config/s390/s390.c (s390_get_sched_attrmask)
13362 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
13363 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
13364 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
13365 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
13366 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
13367 definitions.
13368 * config/s390/s390.opt: Support arch13 as processor type in
13369 command line options.
13370
13371 2019-04-02 Martin Liska <mliska@suse.cz>
13372
13373 PR translation/89912
13374 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
13375 Fix param description of graphite-max-arrays-per-scop.
13376
13377 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
13378
13379 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
13380 (ASAN_CC1_SPEC): Use it in 64-bit mode.
13381 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
13382
13383 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13384
13385 PR rtl-optimization/85412
13386 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
13387 sel_sched_region_1, not after.
13388
13389 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13390
13391 PR rtl-optimization/86928
13392 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
13393 compute_live if necessary.
13394 (sel_redirect_edge_and_branch): Likewise.
13395
13396 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
13397
13398 PR rtl-optimization/89865
13399 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
13400 register if it is a part of small class.
13401
13402 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13403
13404 PR rtl-optimization/87273
13405 * sel-sched-ir.c (merge_fences): Remove assert.
13406
13407 2019-04-01 Richard Biener <rguenther@suse.de>
13408
13409 PR tree-optimization/46590
13410 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
13411 (dom_walker::m_reachability): Add in place of...
13412 (dom_walker::m_skip_unreachable_blocks): ...this.
13413 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
13414 Move complex initialization ...
13415 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
13416 lazily and initialize edge flags on each invocation.
13417 (dom_walker::bb_reachable): Use m_reachability.
13418
13419 2019-04-01 Martin Liska <mliska@suse.cz>
13420
13421 PR driver/89861
13422 * opt-suggestions.c (option_proposer::build_option_suggestions):
13423 Add variant without any argument in order to provide better
13424 hints.
13425
13426 2019-04-01 Richard Biener <rguenther@suse.de>
13427
13428 PR c/71598
13429 * gimple.c: Include langhooks.h.
13430 (gimple_get_alias_set): Treat enumeral types as the underlying
13431 integer type.
13432
13433 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13434 Eric Botcazou <ebotcazou@adacore.com>
13435
13436 PR rtl-optimization/89862
13437 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
13438 that operates on the full registers for WORD_REGISTER_OPERATIONS
13439 architectures.
13440
13441 2019-03-29 Jim Wilson <jimw@sifive.com>
13442
13443 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
13444 Clear MASK_RVC and then set if C subset supported.
13445
13446 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13447
13448 PR c/89872
13449 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
13450 non-addressable complit into its initializer if it is volatile.
13451
13452 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
13453
13454 * opts-common.c (integral_argument): Set errno properly in one case.
13455
13456 2019-03-29 Martin Liska <mliska@suse.cz>
13457
13458 * doc/invoke.texi: Remove -Wchkp from documentation.
13459
13460 2019-03-29 Martin Liska <mliska@suse.cz>
13461
13462 * dbgcnt.c (print_limit_reach): New function.
13463 (dbg_cnt): Use it.
13464
13465 2019-03-29 Martin Liska <mliska@suse.cz>
13466
13467 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
13468 (dbg_cnt_process_opt): Parse first tokens aas
13469 dbg_cnt_process_single_pair is also using strtok.
13470
13471 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13472
13473 PR rtl-optimization/87485
13474 * function.c (expand_function_end): Move stack_protect_epilogue
13475 before loading of return value into hard register(s).
13476
13477 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13478
13479 PR middle-end/89621
13480 * tree-inline.h (struct copy_body_data): Add
13481 dont_remap_vla_if_no_change flag.
13482 * tree-inline.c (remap_type_3, remap_type_2): New functions.
13483 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
13484 and remap_type_2 returns false.
13485 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
13486 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
13487 only from where it is copied to nested contexts.
13488
13489 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13490
13491 PR target/89865
13492 * config/i386/i386.md (RMW operation with LEA peephole):
13493 Use LEAMODE mode attribute instead of SWI mode iterator for
13494 LEA pattern.
13495
13496 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13497
13498 PR target/89848
13499 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13500 Also process XEXP (src, 0) of a shift insn.
13501
13502 2019-03-28 David Malcolm <dmalcolm@redhat.com>
13503
13504 PR middle-end/89725
13505 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
13506 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
13507
13508 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13509
13510 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
13511 test.
13512 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
13513 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
13514 immediately after first one with df_analyze in between, but rather
13515 process all bbs, queueing ones that need second pass in a worklist,
13516 df_analyze, process queued debug insn changes and if second pass is
13517 needed, process bbs from worklist, df_analyze, process queued debug
13518 insns again.
13519
13520 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
13521 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
13522 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
13523
13524 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
13525
13526 PR c/79022
13527 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
13528 definition.
13529
13530 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
13531
13532 PR target/85667
13533 * config/i386/i386.c (ix86_function_value_1): Call the newly added
13534 function for 32-bit MS_ABI.
13535 (function_value_ms_32): New function.
13536
13537 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
13538
13539 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
13540 (movdi): Call gen_movdi_symbol_save_scc.
13541 (gen_movdi_symbol_save_scc): New insn and split.
13542
13543 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
13544
13545 PR rtl-optimization/89313
13546 * function.c (matching_constraint_num): New static function.
13547 (match_asm_constraints_1): Use it. Fixup white space and comment.
13548 Don't replace inputs with non-matching constraints which conflict
13549 with early clobber outputs.
13550
13551 2019-03-27 Jeff Law <law@redhat.com>
13552
13553 PR rtl-optimization/87761
13554 PR rtl-optimization/89826
13555 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
13556 slightly later.
13557 (pass_cprop_hardreg::execute): Call df_analyze after adding the
13558 note problem to get REG_DEAD/REG_UNUSED notes updated.
13559
13560 2019-03-27 Richard Biener <rguenther@suse.de>
13561
13562 PR tree-optimization/89463
13563 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
13564 queue edges to remove.
13565 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
13566 dead stmts. Delay edge removal until PHIs are removed to
13567 make debug-stmt creation not confused by seemingly degenerate
13568 PHIs.
13569
13570 2019-03-27 Alan Modra <amodra@gmail.com>
13571
13572 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
13573 throughout file.
13574 * config/rs6000/darwin.h: Likewise.
13575 * config/rs6000/rs6000.c: Likewise.
13576
13577 2019-03-27 Alan Modra <amodra@gmail.com>
13578
13579 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
13580 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
13581
13582 2019-03-26 Andrew Waterman <andrew@sifive.com>
13583 Jim Wilson <jimw@sifive.com>
13584
13585 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
13586 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
13587 (generic_idivdi, generic_fmul_single, generic_fmul_double)
13588 (generic_fdiv, generic_fsqrt): Add check for generic tune.
13589 (generic_alu): Add auipc to type list.
13590 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
13591 (riscv_microarchitecture): Declare.
13592 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
13593 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
13594 field.
13595 (riscv_microarchitecture): New.
13596 (sifive_7_tune_info): New.
13597 (riscv_cpu_info_table): Add microarchitecture value for rocket and
13598 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
13599 entries.
13600 (riscv_store_data_bypass_p): New.
13601 (riscv_option_override): Set riscv_microarchitecture from
13602 cpu->microarchitecture.
13603 * config/riscv/riscv.md: Include sifive-7.md.
13604 (type): Add auipc.
13605 (tune): New.
13606 (auipc<mode>): Change type to auipc.
13607 (restore_stack_nonlocal): New.
13608 * config/riscv/sifive-7.md: New.
13609 * doc/invoke.texi (RISC-V Options): Update mtune docs.
13610
13611 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
13612
13613 PR target/89827
13614 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13615 Also process XEXP (src, 0) of a shift insn.
13616
13617 2019-03-26 Richard Biener <rguenther@suse.de>
13618
13619 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
13620 (copy_debug_stmt): Likewise.
13621 (expand_call_inline): Likewise.
13622 (copy_bb): Avoid redundant lookup & set of gimple_block.
13623 * gimple-low.c (lower_gimple_return): Likewise.
13624 (lower_builtin_setjmp): Likewise.
13625
13626 2019-03-26 Jakub Jelinek <jakub@redhat.com>
13627
13628 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
13629 is constant 0, turn into static const data member initialized to false.
13630 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
13631 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
13632
13633 2019-03-26 Jason Merrill <jason@redhat.com>
13634 Jakub Jelinek <jakub@redhat.com>
13635
13636 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
13637 method.
13638 (mem_alloc_description::release_object_overhead): Fix comment typos.
13639 * hash-table.h (hash_table::~hash_table): Call
13640 release_instance_overhead only if m_entries is non-NULL, otherwise
13641 call unregister_descriptor.
13642
13643 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
13644
13645 PR tree-optimization/81740
13646 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13647 In case of outer loop vectorization, check for backward dependence
13648 at the inner loop if outer loop dependence is reversed.
13649
13650 2019-03-26 Alan Modra <amodra@gmail.com>
13651
13652 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
13653 rs6000_vector_mem init. Correct wI and wJ comment.
13654
13655 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
13656
13657 PR rtl-optimization/88347
13658 PR rtl-optimization/88423
13659 * sched-deps.c (sched_analyze_insn): Take into account that for
13660 tablejumps the barrier appears after a label and a jump_table_data.
13661
13662 2019-03-25 Martin Sebor <msebor@redhat.com>
13663
13664 PR c/89812
13665 * c-common.c (check_user_alignment): Rename local. Correct maximum
13666 alignment in diagnostic. Avoid assuming argument fits in SHWI,
13667 convert it to UHWI when it fits.
13668
13669 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
13670
13671 PR debug/86964
13672 * dwarf2out.c (premark_used_variables): New function.
13673 (prune_unused_types_walk): Do not mark not premarked external
13674 variables.
13675 (prune_unused_types): Call premark_used_variables.
13676
13677 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
13678
13679 PR rtl-optimization/89676
13680 * lra-constraints.c (curr_insn_transform): Do match reload for
13681 early clobbers when the match was successful only for different
13682 registers.
13683
13684 2019-03-25 Martin Sebor <msebor@redhat.com>
13685
13686 * doc/extend.texi (Common Type Attributes): Document vector_size.
13687 (Common Variable Attributes): Mention size constraint. Correct
13688 quoting and typos.
13689 (Vector Extensions): Use @dfn when defining bas type. Clarify
13690 base type and size constraints.
13691
13692 2019-03-25 Richard Biener <rguenther@suse.de>
13693
13694 PR tree-optimization/89789
13695 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
13696 changes from non-undefined back to undefined.
13697
13698 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
13699
13700 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
13701 heap string and a gc string, but since this variable is unknown to
13702 ggc the gc string might get reused and corrupted. Fixed by always
13703 using a heap string.
13704
13705 2019-03-25 Richard Biener <rguenther@suse.de>
13706
13707 PR tree-optimization/89779
13708 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
13709 to remove IV defs, delay actual removal.
13710 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
13711 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
13712 very end, properly also reset loop control IV information.
13713
13714 2019-03-25 Richard Biener <rguenther@suse.de>
13715
13716 PR tree-optimization/89802
13717 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
13718 move EH data to folded stmt.
13719
13720 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13721
13722 * config/s390/s390-builtin-types.def: Remove few unused types and
13723 fix sort order for others.
13724
13725 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13726
13727 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
13728 expected and found types with -mdebug during builtin matching.
13729
13730 2019-03-25 Richard Biener <rguenther@suse.de>
13731
13732 PR middle-end/89790
13733 * fold-const.c (operand_equal_p): Revert last change with
13734 updated comment.
13735
13736 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
13737
13738 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
13739 notes for the result of the __tls_get_addr calls.
13740 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
13741
13742 2019-03-24 Jeff Law <law@redhat.com>
13743
13744 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
13745
13746 PR rtl-optimization/87761
13747 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
13748 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
13749 as needed.
13750 (pass_cprop_hardreg::execute): Add df note problem and defer insn
13751 rescans. Reprocess blocks as needed, calling df_analyze before
13752 reprocessing. Always call df_analyze before fixing up debug bind
13753 insns.
13754
13755 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
13756
13757 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
13758 big endian.
13759
13760 2019-03-22 Andrew Pinski <apinski@marvell.com>
13761
13762 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
13763 attrribute for uxtw.
13764
13765 2019-03-26 Jeff Law <law@redhat.com>
13766
13767 PR rtl-optimization/87761
13768 * config/mips/mips-protos.h (mips_split_move): Add new argument.
13769 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
13770 (mips_split_move): Accept new INSN argument. Try to forward SRC
13771 into the next instruction.
13772 (mips_split_move_insn): Pass INSN through to mips_split_move.
13773
13774 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
13775
13776 PR rtl-optimization/89676
13777 * lra-constraints.c (curr_insn_transform): Do match reload for
13778 early clobbers even if the match was successful.
13779
13780 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13781
13782 PR c++/87481
13783 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
13784
13785 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
13786
13787 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
13788
13789 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13790
13791 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
13792 <avx512>_fmsub_<mode>_mask3<round_name>,
13793 <avx512>_fnmadd_<mode>_mask3<round_name>,
13794 <avx512>_fnmsub_<mode>_mask3<round_name>,
13795 avx512f_vmfmadd_<mode>_mask3<round_name>,
13796 avx512f_vmfmsub_<mode>_mask3<round_name>,
13797 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
13798 instead of register_operand and %v instead of v for match_operand 1.
13799 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
13800 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
13801 <round_nimm_predicate> instead of register_operand and %v instead of v
13802 for match_operand 1.
13803
13804 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
13805 <avx512>_fmadd_<mode>_mask3<round_name>,
13806 <avx512>_fmsub_<mode>_mask<round_name>,
13807 <avx512>_fmsub_<mode>_mask3<round_name>,
13808 <avx512>_fnmadd_<mode>_mask<round_name>,
13809 <avx512>_fnmadd_<mode>_mask3<round_name>,
13810 <avx512>_fnmsub_<mode>_mask<round_name>,
13811 <avx512>_fnmsub_<mode>_mask3<round_name>,
13812 <avx512>_fmaddsub_<mode>_mask<round_name>,
13813 <avx512>_fmaddsub_<mode>_mask3<round_name>,
13814 <avx512>_fmsubadd_<mode>_mask<round_name>,
13815 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
13816 <round_nimm_predicate> instead of nonimmediate_operand.
13817 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
13818 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
13819 Use register_operand instead of <round_nimm_predicate> for the
13820 operand that needs to match output.
13821 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
13822 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
13823 Likewise. Formatting fixes.
13824
13825 PR target/89784
13826 * config/i386/i386.c (enum ix86_builtins): Remove
13827 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
13828 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
13829 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
13830 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
13831 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
13832 __builtin_ia32_vfmsubss3_mask3): New builtins.
13833 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
13834 avx512f_vmfmadd_<mode>_mask3<round_name>,
13835 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
13836 *avx512f_vmfmsub_<mode>_mask<round_name>,
13837 avx512f_vmfmsub_<mode>_mask3<round_name>,
13838 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
13839 *avx512f_vmfnmadd_<mode>_mask<round_name>,
13840 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
13841 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
13842 *avx512f_vmfnmsub_<mode>_mask<round_name>,
13843 avx512f_vmfnmsub_<mode>_mask3<round_name>,
13844 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
13845 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
13846 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
13847 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
13848 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
13849 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
13850 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
13851 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
13852 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
13853 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
13854 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
13855 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
13856 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
13857 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
13858 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
13859 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
13860 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
13861 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
13862 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
13863 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
13864 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
13865 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
13866
13867 2019-03-21 Martin Sebor <msebor@redhat.com>
13868
13869 PR tree-optimization/89350
13870 * builtins.c (compute_objsize): Also ignore offsets whose upper
13871 bound is negative.
13872 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
13873 (builtin_memref::builtin_memref): Initialize new member.
13874 Allow EXPR to be null.
13875 (builtin_memref::extend_offset_range): Replace local with a member.
13876 Avoid assuming pointer offsets are unsigned.
13877 (builtin_memref::set_base_and_offset): Determine base object
13878 before computing offset range.
13879 (builtin_access::builtin_access): Handle memset.
13880 (builtin_access::generic_overlap): Replace local with a member.
13881 (builtin_access::strcat_overlap): Same.
13882 (builtin_access::overlap): Same.
13883 (maybe_diag_overlap): Same.
13884 (maybe_diag_access_bounds): Same.
13885 (wrestrict_dom_walker::check_call): Handle memset.
13886 (check_bounds_or_overlap): Same.
13887
13888 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
13889 Jakub Jelinek <jakub@redhat.com>
13890
13891 PR lto/89692
13892 * tree.c (fld_type_variant, fld_incomplete_type_of,
13893 fld_process_array_type): Call fld->pset.add and don't call
13894 add_tree_to_fld_list if it returns true.
13895 (free_lang_data_in_type): Similarly with self-recursive call. Purge
13896 non-marked types from TYPE_NEXT_VARIANT list.
13897 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
13898
13899 2019-03-21 Jakub Jelinek <jakub@redhat.com>
13900
13901 * hash-table.h (hash_table): Add Lazy template parameter defaulted
13902 to false, if true, don't alloc_entries during construction, but defer
13903 it to the first method that needs m_entries allocated.
13904 (hash_table::hash_table, hash_table::~hash_table,
13905 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
13906 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
13907 hash_table::clear_slot, hash_table::traverse_noresize,
13908 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
13909 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
13910 false.
13911 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
13912 NO_INSERT instead of find_with_hash.
13913 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
13914 hash_set::m_table): Add Lazy to template params of hash_table.
13915 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
13916 * attribs.c (test_attribute_exclusions): Likewise.
13917 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
13918 hash_set. Add tests for hash_set with Lazy = true.
13919
13920 2019-03-21 Richard Biener <rguenther@suse.de>
13921
13922 PR tree-optimization/89779
13923 * tree.c (tree_nop_conversion): Consolidate and fix defensive
13924 checks with respect to released SSA names now having error_mark_node
13925 type.
13926 * fold-const.c (operand_equal_p): Likewise.
13927
13928 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
13929
13930 PR target/89775
13931 * config/s390/s390.c (global_not_special_regno_p): Move to make it
13932 available to ...
13933 (s390_optimize_register_info): Use global_not_special_regno_p to
13934 check for global regs.
13935
13936 2019-03-20 Jakub Jelinek <jakub@redhat.com>
13937
13938 PR target/89752
13939 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
13940 update this_alternative nor this_alternative_set.
13941
13942 2019-03-19 Jim Wilson <jimw@sifive.com>
13943
13944 PR target/89411
13945 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
13946 align, size, offset. Use them to handle a BLKmode reference. Update
13947 comment.
13948 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
13949
13950 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13951
13952 PR rtl-optimization/89768
13953 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
13954 instead of GEN_INT.
13955 (unroll_loop_runtime_iterations): Likewise.
13956
13957 2019-03-19 Martin Sebor <msebor@redhat.com>
13958
13959 PR tree-optimization/89644
13960 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
13961 rather than endptr as an indicator of nul-termination.
13962
13963 PR tree-optimization/89644
13964 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
13965 arrays in determining sequence sizes in strncpy and stpncpy.
13966
13967 2019-03-19 Martin Liska <mliska@suse.cz>
13968
13969 PR middle-end/89737
13970 * predict.c (combine_predictions_for_bb): Empty likely_edges and
13971 unlikely_edges if there's an edge that belongs to both these sets.
13972
13973 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
13974
13975 PR target/89746
13976 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
13977 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
13978 go via a stack temporary.
13979
13980 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13981
13982 PR target/89378
13983 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
13984 instead of gen_rtx_SUBREG.
13985 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
13986
13987 2019-03-19 Richard Biener <rguenther@suse.de>
13988
13989 PR debug/88389
13990 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
13991
13992 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
13993
13994 PR lto/87809
13995 PR lto/89335
13996 * tree.c (free_lang_data_in_decl): Do not free context of C++
13997 destrutors.
13998
13999 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14000
14001 PR target/89506
14002 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
14003 subs for the first alternative except when operands[3] is 1.
14004
14005 PR target/89752
14006 * gimplify.c (gimplify_asm_expr): For output argument with
14007 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
14008 diagnose error.
14009
14010 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
14011
14012 PR rtl-optimization/89753
14013 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14014 explicit unrolling factor even more robust.
14015
14016 2019-03-19 Jakub Jelinek <jakub@redhat.com>
14017
14018 PR target/89726
14019 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
14020 compensation use x2 += 1 instead of x2 -= -1 and when honoring
14021 signed zeros, do another copysign after the compensation.
14022
14023 2019-03-18 Martin Sebor <msebor@redhat.com>
14024
14025 PR tree-optimization/89720
14026 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
14027 more conservatively, the same as anti-range.
14028
14029 2019-03-18 Richard Biener <rguenther@suse.de>
14030
14031 PR middle-end/88945
14032 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
14033 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
14034 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
14035 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
14036
14037 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
14038
14039 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
14040 Extend queue to 1024 entries.
14041 Add "consumed" field.
14042 (gomp_print_output): Remove print_index parameter.
14043 Add final parameter.
14044 Change limit to unsigned.
14045 Use consumed field to implement circular buffer.
14046 Detect interrupted print in final pass.
14047 Flush output at the end.
14048 (run): Update gomp_print_output usage.
14049 (main): Initialize kernargs->output_data.consumed.
14050
14051 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
14052
14053 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
14054 calculation of the minimum number of scalar iterations for
14055 fully-predicated loops.
14056
14057 2019-03-18 Martin Jambor <mjambor@suse.cz>
14058
14059 PR tree-optimization/89546
14060 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
14061 any propagation to its children took place.
14062
14063 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
14064
14065 PR target/89627
14066 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
14067 parameter, and make use of it.
14068 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
14069
14070 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14071
14072 * config/arc/arc.opt (mcode-density-frame): Get the inital value
14073 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
14074 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14075 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14076 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
14077 match what the ops is doing.
14078 (push_multi_fp_blink): Likewise.
14079 * config/arc/arc.c (arc_override_options): Enable enter/leave when
14080 compiling for size and elf target.
14081 (arc_save_callee_enter): Adjust note to match what enter/leave
14082 operation does.
14083
14084 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14085
14086 * config/arc/arc.md (tst_movb): Fix constraint.
14087
14088 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14089
14090 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
14091
14092 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14093
14094 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
14095 * config/arc/arc.c (arc_conditional_register_usage): Remove all
14096 reg_alloc_order references.
14097 (size_alloc_order): Define.
14098 (arc_adjust_reg_alloc_order): New function.
14099 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
14100 order.
14101 (ADJUST_REG_ALLOC_ORDER): Define.
14102 (HONOR_REG_ALLOC_ORDER): Likewise.
14103
14104 2019-03-18 Richard Biener <rguenther@suse.de>
14105
14106 PR target/87561
14107 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
14108 loads and stores a bit more.
14109
14110 2019-03-18 Richard Biener <rguenther@suse.de>
14111
14112 PR target/87561
14113 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
14114 load pessimization to stores as well.
14115
14116 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
14117
14118 PR middle-end/86979
14119 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
14120 successor, use NULL as its av set.
14121
14122 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
14123
14124 PR rtl-optimization/89721
14125 * lra-constraints (invariant_p): Return false if side_effects_p holds.
14126
14127 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
14128
14129 PR target/87532
14130 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14131 When handling vec_extract, use modular arithmetic to allow
14132 constant selectors greater than vector length.
14133 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
14134 V1TImode vectors to have constant selector values greater than 0.
14135 Use modular arithmetic to compute vector index.
14136 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
14137 index for in-memory vectors. Correct code generation for
14138 in-register vectors.
14139 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
14140 compute index.
14141
14142 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
14143
14144 PR c++/88534
14145 PR c++/88537
14146 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
14147 VAR_DECL args.
14148
14149 2019-03-15 Jakub Jelinek <jakub@redhat.com>
14150
14151 PR c++/89709
14152 * tree.c (inchash::add_expr): Strip any location wrappers.
14153 * fold-const.c (operand_equal_p): Move stripping of location wrapper
14154 after hash verification.
14155
14156 PR debug/89704
14157 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
14158 SIGN_EXTEND and ZERO_EXTEND.
14159
14160 2019-03-14 Jason Merrill <jason@redhat.com>
14161 Jakub Jelinek <jakub@redhat.com>
14162
14163 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
14164 than if is_empty (*slot).
14165 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
14166 existing elt and for elt removal.
14167 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
14168 of already removed elt.
14169
14170 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
14171
14172 PR target/89650
14173 * config/i386/i386.c (remove_partial_avx_dependency): Handle
14174 REG_EH_REGION note.
14175
14176 2019-03-14 Martin Liska <mliska@suse.cz>
14177
14178 PR other/89712
14179 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
14180
14181 2019-03-14 Richard Biener <rguenther@suse.de>
14182
14183 PR target/89711
14184 * config/i386/i386.c (make_resolver_func): Properly set
14185 DECL_CONTEXT on the RESULT_DECL.
14186 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
14187
14188 2019-03-14 Richard Biener <rguenther@suse.de>
14189
14190 * gimple-pretty-print.c: Include cfgloop.h.
14191 (dump_gimple_phi): Adjust.
14192 (dump_gimple_bb_header): Dump loop header for GIMPLE.
14193 (pp_cfg_jump): Adjust.
14194 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
14195 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
14196 (lower_phi_internal_fn): Remove.
14197 (verify_gimple_call): Remove IFN_PHI special-casing.
14198 (dump_function_to_file): Dump IL state.
14199 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
14200 done to deal with PHI nodes being present in non-SSA state.
14201
14202 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14203
14204 PR ipa/89684
14205 * multiple_target.c (create_dispatcher_calls): Change
14206 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
14207 In the node->iterate_referring loop, push *ref rather than ref, call
14208 ref->remove_reference () and always pass 0 to iterate_referring.
14209
14210 PR rtl-optimization/89679
14211 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
14212 would contain a paradoxical SUBREG.
14213
14214 2019-03-14 Richard Biener <rguenther@suse.de>
14215
14216 PR tree-optimization/89710
14217 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
14218 safe_dyn_cast.
14219
14220 2019-03-14 Martin Liska <mliska@suse.cz>
14221
14222 * coverage.c (coverage_begin_function): Stream also
14223 end_column.
14224 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
14225 documentation about function declaration location.
14226 * gcov-dump.c (tag_function): Print whole range
14227 of function declaration.
14228 * gcov.c (struct function_info): Add end_column field.
14229 (function_info::function_info): Initialize it.
14230 (output_json_intermediate_file): Output {start,end}_column
14231 fields.
14232 (read_graph_file): Read end_column.
14233
14234 2019-03-14 Richard Biener <rguenther@suse.de>
14235
14236 PR middle-end/89698
14237 * fold-const.c (operand_equal_p): For INDIRECT_REF check
14238 that the access types are similar.
14239
14240 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14241
14242 PR tree-optimization/89703
14243 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
14244 aren't compatible also with builtin_decl_explicit. Check pure
14245 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
14246 and BUILT_IN_STPNCPY{,_CHK}.
14247
14248 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
14249
14250 PR target/89523
14251 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
14252 addr32 prefix to VSIB address for X32.
14253 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
14254 "%M2" to opcode.
14255 (*avx512pf_gatherpf<mode>df_mask): Likewise.
14256 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
14257 (*avx512pf_scatterpf<mode>df_mask): Likewise.
14258 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
14259 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
14260 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
14261 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
14262 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
14263 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
14264 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
14265 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
14266 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
14267 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
14268 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
14269 (*avx512f_scatterdi<mode>): Likewise.
14270
14271 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
14272
14273 PR target/85860
14274 * lra-constraints.c (inherit_in_ebb): Update
14275 potential_reload_hard_regs along with live_hard_regs.
14276
14277 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14278
14279 PR debug/89498
14280 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
14281 DWARF_OFFSET_SIZE.
14282 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
14283
14284 2019-03-13 Martin Sebor <msebor@redhat.com>
14285
14286 PR tree-optimization/89662
14287 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
14288 has a size.
14289
14290 2019-03-13 Richard Biener <rguenther@suse.de>
14291
14292 PR middle-end/89677
14293 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
14294 throw FP expressions at tree-affine.
14295
14296 2019-03-14 Richard Biener <rguenther@suse.de>
14297
14298 * tree-pretty-print.c (dump_generic_node): For -gimple properly
14299 dump negative integer constants using _Literal (type) -num.
14300
14301 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14302
14303 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
14304 nonlocal_value member.
14305
14306 PR middle-end/88588
14307 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
14308 (ipa_simd_modify_function_body): Handle PHIs.
14309
14310 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14311
14312 * config/s390/s390.c (s390_option_override_internal): Use more
14313 aggressive inlining parameters.
14314
14315 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14316
14317 * config/s390/3906.md: New file.
14318 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14319 (LONGRUNNING_THRESHOLD): Remove.
14320 (MAX_SCHED_MIX_SCORE): Decrease.
14321 (MAX_SCHED_MIX_DISTANCE): Decrease.
14322 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
14323 (struct s390_sched_state): New struct to hold scheduling state.
14324 (S390_SCHED_STATE_NORMAL): Remove.
14325 (S390_SCHED_STATE_CRACKED): Remove.
14326 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
14327 (s390_get_sched_attrmask): Use new attribute.
14328 (s390_get_unit_mask): Use new units.
14329 (s390_is_fpd): New function.
14330 (s390_is_fxd): New function.
14331 (s390_is_longrunning): New function.
14332 (s390_sched_score): Use new functions.
14333 (s390_sched_reorder): Likewise.
14334 (s390_sched_variable_issue): Rework and use new functions.
14335 (s390_sched_init): Use new functions.
14336 * config/s390/s390.h (s390_tune_attr): Add z14.
14337 * config/s390/s390.md: Add z14.
14338
14339 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14340
14341 * config/s390/2964.md: Update pipeline description.
14342 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14343 (LONGRUNNING_THRESHOLD): Remove.
14344 (LATENCY_FACTOR): Remove.
14345 (s390_get_unit_mask): Add unit.
14346 (s390_sched_score): Use fxd/fpd.
14347 (s390_sched_variable_issue): Use fxd/fpd.
14348
14349 2019-03-12 Martin Liska <mliska@suse.cz>
14350
14351 * config/i386/i386.c: Reword an error message.
14352
14353 2019-03-12 Martin Jambor <mjambor@suse.cz>
14354
14355 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
14356 terminate with newline.
14357
14358 2019-03-12 Jakub Jelinek <jakub@redhat.com>
14359
14360 PR target/52726
14361 * config/s390/s390.md (tabort): Use %wd instead of
14362 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
14363 letters and periods.
14364 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
14365 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
14366 's with %< and %>.
14367
14368 PR middle-end/89663
14369 * builtins.c (expand_builtin_int_roundingfn,
14370 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
14371 gcc_unreachable if validate_arglist fails.
14372
14373 2019-03-12 Richard Biener <rguenther@suse.de>
14374
14375 PR tree-optimization/89664
14376 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
14377 free the occurance tree after the early out.
14378
14379 2019-03-11 Jakub Jelinek <jakub@redhat.com>
14380
14381 PR middle-end/89655
14382 PR bootstrap/89656
14383 * vr-values.c (vr_values::update_value_range): If
14384 old_vr->varying_p (), don't update it, make new_vr also VARYING
14385 and return false.
14386
14387 2019-03-11 Martin Liska <mliska@suse.cz>
14388
14389 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14390 Fix double string quoting.
14391
14392 2019-03-11 Martin Liska <mliska@suse.cz>
14393
14394 * collect-utils.c (collect_wait): Wrap apostrophes
14395 in gcc internal format with %'.
14396 * collect2.c (main): Likewise.
14397 (scan_prog_file): Likewise.
14398 (scan_libraries): Likewise.
14399 * config/i386/i386.c (ix86_expand_call): Likewise.
14400 (ix86_handle_interrupt_attribute): Likewise.
14401 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14402 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14403 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
14404 * lto-wrapper.c (find_crtoffloadtable): Likewise.
14405 * symtab.c (symtab_node::verify_base): Likewise.
14406 * tree-cfg.c (verify_gimple_label): Likewise.
14407 * tree.c (verify_type_variant): Likewise.
14408
14409 2019-03-11 Martin Liska <mliska@suse.cz>
14410
14411 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
14412 in a string format message and fix GNU coding style.
14413 (expand_builtin_set_thread_pointer): Likewise.
14414 * common/config/aarch64/aarch64-common.c
14415 (aarch64_rewrite_selected_cpu): Likewise.
14416 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
14417 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
14418 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
14419 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
14420 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
14421 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
14422 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
14423 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
14424 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
14425 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
14426 Likewise.
14427 * common/config/riscv/riscv-common.c
14428 (riscv_subset_list::parsing_subset_version): Likewise.
14429 (riscv_subset_list::parse_std_ext): Likewise.
14430 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14431 (riscv_subset_list::parse): Likewise.
14432 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
14433 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
14434 (aarch64_override_options_internal): Likewise.
14435 (aarch64_validate_mcpu): Likewise.
14436 (aarch64_validate_march): Likewise.
14437 (aarch64_validate_mtune): Likewise.
14438 (aarch64_override_options): Likewise.
14439 * config/alpha/alpha.c (alpha_option_override): Likewise.
14440 * config/arc/arc.c (arc_init): Likewise.
14441 (parse_mrgf_banked_regs_option): Likewise.
14442 (arc_override_options): Likewise.
14443 (arc_expand_builtin_aligned): Likewise.
14444 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
14445 (arm_expand_builtin): Likewise.
14446 * config/arm/arm.c (arm_option_check_internal): Likewise.
14447 (arm_configure_build_target): Likewise.
14448 (arm_option_override): Likewise.
14449 (arm_options_perform_arch_sanity_checks): Likewise.
14450 (arm_handle_cmse_nonsecure_entry): Likewise.
14451 (arm_handle_cmse_nonsecure_call): Likewise.
14452 (arm_tls_referenced_p): Likewise.
14453 (thumb1_expand_prologue): Likewise.
14454 * config/avr/avr.c (avr_option_override): Likewise.
14455 * config/bfin/bfin.c (bfin_option_override): Likewise.
14456 * config/c6x/c6x.c (c6x_option_override): Likewise.
14457 * config/cr16/cr16.c (cr16_override_options): Likewise.
14458 * config/cris/cris.c (cris_option_override): Likewise.
14459 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
14460 * config/darwin-c.c (macosx_version_as_macro): Likewise.
14461 * config/darwin.c (darwin_override_options): Likewise.
14462 * config/frv/frv.c (frv_expand_builtin): Likewise.
14463 * config/h8300/h8300.c (h8300_option_override): Likewise.
14464 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
14465 (ix86_option_override_internal): Likewise.
14466 (warn_once_call_ms2sysv_xlogues): Likewise.
14467 (ix86_expand_prologue): Likewise.
14468 (split_stack_prologue_scratch_regno): Likewise.
14469 (ix86_warn_parameter_passing_abi): Likewise.
14470 * config/ia64/ia64.c (fix_range): Likewise.
14471 * config/m68k/m68k.c (m68k_option_override): Likewise.
14472 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
14473 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
14474 (mips_set_compression_mode): Likewise.
14475 * config/mmix/mmix.c (mmix_option_override): Likewise.
14476 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
14477 * config/msp430/msp430.c (msp430_option_override): Likewise.
14478 * config/nds32/nds32.c (nds32_option_override): Likewise.
14479 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
14480 (nios2_option_override): Likewise.
14481 (nios2_expand_custom_builtin): Likewise.
14482 * config/nvptx/mkoffload.c (main): Likewise.
14483 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
14484 * config/pa/pa.c (fix_range): Likewise.
14485 (pa_option_override): Likewise.
14486 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
14487 (riscv_option_override): Likewise.
14488 * config/rl78/rl78.c (rl78_option_override): Likewise.
14489 * config/rs6000/aix61.h: Likewise.
14490 * config/rs6000/aix71.h: Likewise.
14491 * config/rs6000/aix72.h: Likewise.
14492 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
14493 * config/rs6000/freebsd64.h: Likewise.
14494 * config/rs6000/linux64.h: Likewise.
14495 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
14496 (rs6000_expand_zeroop_builtin): Likewise.
14497 (rs6000_expand_mtfsb_builtin): Likewise.
14498 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
14499 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
14500 (rs6000_invalid_builtin): Likewise.
14501 (rs6000_expand_split_stack_prologue): Likewise.
14502 * config/rs6000/rtems.h: Likewise.
14503 * config/rx/rx.c (valid_psw_flag): Likewise.
14504 (rx_expand_builtin): Likewise.
14505 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14506 * config/s390/s390.c (s390_expand_builtin): Likewise.
14507 (s390_function_profiler): Likewise.
14508 (s390_option_override_internal): Likewise.
14509 (s390_option_override): Likewise.
14510 * config/sh/sh.c (sh_option_override): Likewise.
14511 (sh_builtin_saveregs): Likewise.
14512 (sh_fix_range): Likewise.
14513 * config/sh/vxworks.h: Likewise.
14514 * config/sparc/sparc.c (sparc_option_override): Likewise.
14515 * config/spu/spu.c (spu_option_override): Likewise.
14516 (fix_range): Likewise.
14517 * config/visium/visium.c (visium_option_override): Likewise.
14518 (visium_handle_interrupt_attr): Likewise.
14519 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
14520 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
14521 (dbg_cnt_process_opt): Likewise.
14522 * dwarf2out.c (output_dwarf_version): Likewise.
14523 * except.c (expand_eh_return): Likewise.
14524 * gcc.c (defined): Likewise.
14525 (driver_handle_option): Likewise.
14526 (process_command): Likewise.
14527 (compare_files): Likewise.
14528 (driver::prepare_infiles): Likewise.
14529 (driver::do_spec_on_infiles): Likewise.
14530 (driver::maybe_run_linker): Likewise.
14531 * omp-offload.c (oacc_parse_default_dims): Likewise.
14532 * opts-global.c (handle_common_deferred_options): Likewise.
14533 * opts.c (parse_sanitizer_options): Likewise.
14534 (common_handle_option): Likewise.
14535 (enable_warning_as_error): Likewise.
14536 * passes.c (enable_disable_pass): Likewise.
14537 * plugin.c (parse_plugin_arg_opt): Likewise.
14538 (default_plugin_dir_name): Likewise.
14539 * targhooks.c (default_expand_builtin_saveregs): Likewise.
14540 (default_pch_valid_p): Likewise.
14541 * toplev.c (init_asm_output): Likewise.
14542 (process_options): Likewise.
14543 (toplev::run_self_tests): Likewise.
14544 * tree-cfg.c (verify_gimple_call): Likewise.
14545 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
14546 (tree_inlinable_function_p): Likewise.
14547 * var-tracking.c (vt_find_locations): Likewise.
14548
14549 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
14550
14551 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
14552 only on the else branch.
14553
14554 2019-03-11 Martin Liska <mliska@suse.cz>
14555
14556 * gcov.c (output_intermediate_json_line): Print function
14557 name of each line.
14558 (output_json_intermediate_file): Add new argument.
14559 * doc/gcov.texi: Document the change.
14560
14561 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
14562
14563 PR rtl-optimization/89588
14564 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14565 explicit unrolling factor more robust.
14566
14567 2019-03-11 Richard Biener <rguenther@suse.de>
14568
14569 PR tree-optimization/89649
14570 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14571 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
14572 on the prolog and epilog loops.
14573 (vect_loop_versioning): Return copy of loop.
14574 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
14575 on the non-vectorized version of the loop.
14576
14577 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
14578
14579 PR target/68924
14580 * config/i386/sse.md (*vec_extractv2di_0_sse):
14581 Add (=r,x) alternative and corresponding splitter.
14582
14583 2019-03-10 Martin Jambor <mjambor@suse.cz>
14584
14585 PR tree-optimization/85762
14586 PR tree-optimization/87008
14587 PR tree-optimization/85459
14588 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
14589 it points to if there is a type changing MEM_REF. Adjust all callers.
14590 (build_accesses_from_assign): Disable total scalarization if
14591 contains_vce_or_bfcref_p returns true through the new parameter, for
14592 both rhs and lhs.
14593
14594 2019-03-09 Jakub Jelinek <jakub@redhat.com>
14595
14596 PR c/88568
14597 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
14598 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
14599
14600 PR target/79645
14601 * common.opt (fdiagnostics-show-labels,
14602 fdiagnostics-show-line-numbers, fdiagnostics-format=,
14603 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
14604 gas-locview-support, ginline-points, ginternal-reset-location-views):
14605 Terminate description text with a dot.
14606 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
14607 * config/mcore/mcore.opt (m210, m340): Likewise.
14608 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
14609 mnops=): Start description text with a capital letter.
14610 * config/arc/arc.opt (msize-level=): Likewise.
14611 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
14612 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
14613 mnewlib): Likewise.
14614 * config/ft32/ft32.opt (msim): Likewise.
14615 (mft32b, mcompress): Likewise. Terminate description text with a dot.
14616 (mnodiv, mnopm): Terminate description text with a dot.
14617 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
14618 a colon.
14619 * config/i386/i386.opt (prefer_vector_width, instrument_return):
14620 Likewise.
14621 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
14622 text.
14623
14624 PR rtl-optimization/89634
14625 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
14626 are modified in BB_END (e->src) instruction.
14627
14628 2019-03-08 David Malcolm <dmalcolm@redhat.com>
14629
14630 PR target/79926
14631 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
14632 messages more amenable to translation, and improve wording.
14633
14634 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
14635
14636 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
14637 ud- and du-chains between phases.
14638
14639 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
14640
14641 PR debug/89631
14642 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
14643 instead of POLY_INT_CST.
14644
14645 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
14646
14647 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
14648 requirement.
14649
14650 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
14651
14652 PR target/68924
14653 PR target/78782
14654 PR target/87558
14655 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
14656 (_mm_storeu_si64): Ditto.
14657
14658 2019-03-08 Martin Liska <mliska@suse.cz>
14659
14660 PR target/86952
14661 * config/i386/i386.c (ix86_option_override_internal): Disable
14662 jump tables when retpolines are used.
14663
14664 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
14665
14666 PR go/63560
14667 * ipa-split.c (execute_split_functions): Do not split
14668 'noinline' or 'section' function.
14669
14670 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14671
14672 PR target/79846
14673 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
14674 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
14675 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
14676
14677 PR ipa/80000
14678 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14679 from diagnostics. Formatting fixes.
14680
14681 PR target/85665
14682 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
14683 warn_odr diagnostics.
14684
14685 PR other/80058
14686 * lra-constraints.c (process_alt_operands): Avoid one space before
14687 " at the end of line and another after " on another line in a string
14688 literal.
14689 * attribs.c (handle_dll_attribute): Likewise.
14690 * config/avr/avr-devices.c (avr_texinfo): Likewise.
14691
14692 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
14693 warning_at or inform messages in G_() if there is no ?:.
14694
14695 PR tree-optimization/89550
14696 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
14697 returned true. Formatting fixes.
14698 (expand_builtin_strnlen): Formatting fixes.
14699 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
14700 if warning_at returned true.
14701 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
14702
14703 2019-03-08 Richard Biener <rguenther@suse.de>
14704
14705 PR middle-end/89578
14706 * cfgloop.h (struct loop): Add owned_clique field.
14707 * cfgloopmanip.c (copy_loop_info): Copy it.
14708 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
14709 cliques.
14710 * tree-inline.c (copy_loops): Remap owned_clique.
14711 * lto-streamer-in.c (input_cfg): Stream owned_clique.
14712 * lto-streamer-out.c (output_cfg): Likewise.
14713
14714 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14715
14716 PR target/80190
14717 * config/darwin.c: Include intl.h.
14718 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
14719 composing the message out of two separate parts.
14720
14721 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14722
14723 PR target/80003
14724 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
14725 doesn't start with a capital letter and doesn't end with a dot.
14726 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
14727 with a capital letter.
14728 (ix86_mangle_function_version_assembler_name): Likewise.
14729 (ix86_generate_version_dispatcher_body): Likewise.
14730 (fold_builtin_cpu): Likewise.
14731 (get_builtin_code_for_version): Likewise. Remove extraneous space.
14732 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
14733 translators, wrap full type name in %qs.
14734
14735 PR translation/79999
14736 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
14737 depend clause with source (or sink) modifier.
14738 * omp-expand.c (expand_omp_ordered_sink): Likewise.
14739
14740 PR target/89602
14741 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
14742 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
14743 (avx512f_load<mode>_mask): New define_expand.
14744 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
14745 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
14746 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
14747 __builtin_ia32_movess_mask): New builtins.
14748 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
14749 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
14750 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
14751 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
14752
14753 2019-03-07 Martin Jambor <mjambor@suse.cz>
14754
14755 PR lto/87525
14756 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
14757 for extern inline functions.
14758
14759 2019-03-07 Martin Jambor <mjambor@suse.cz>
14760
14761 PR ipa/88235
14762 * cgraph.h (cgraph_node): New inline method former_thunk_p.
14763 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
14764 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
14765 have multiple callees. At the end check if declarations match as
14766 opposed to cgraph_nodes.
14767
14768 2019-03-07 Martin Liska <mliska@suse.cz>
14769
14770 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
14771 which is equivalent to searching for this in clones chain.
14772 * symtab.c (symtab_node::verify_base): Similarly compare ASM
14773 names with a neighbour and special case first node in a chain.
14774
14775 2019-01-25 Jason Merrill <jason@redhat.com>
14776
14777 PR c++/80916 - spurious "static but not defined" warning.
14778 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
14779 for an internal symbol with DECL_EXTERNAL.
14780
14781 2019-04-07 Richard Biener <rguenther@suse.de>
14782
14783 PR middle-end/89618
14784 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
14785 * tree-inline.c (copy_loops): Simplify.
14786
14787 2019-03-07 Martin Liska <mliska@suse.cz>
14788
14789 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
14790
14791 2019-03-07 Richard Biener <rguenther@suse.de>
14792
14793 PR tree-optimization/89595
14794 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
14795 stmt iterator as reference, take boolean output parameter to
14796 indicate whether the stmt was removed and thus the iterator
14797 already advanced.
14798 (dom_opt_dom_walker::before_dom_children): Re-iterate over
14799 stmts created by folding.
14800
14801 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14802
14803 PR c++/89585
14804 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
14805 at toplevel.
14806
14807 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
14808
14809 PR rtl-optimization/88845
14810 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
14811 LRA.
14812 * lra.c (remove_scratches_1): New function.
14813 (remove_scratches): Use it.
14814 (lra_emit_move): Likewise.
14815
14816 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
14817
14818 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
14819 unaligned_access variable.
14820 * config/arc/arc.c (arc_override_options): Set unaligned access
14821 default on for HS CPUs.
14822 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
14823
14824 2019-03-06 Martin Liska <mliska@suse.cz>
14825
14826 PR gcov-profile/89577
14827 * doc/gcov.texi: Prefer to use --coverage.
14828 * doc/sourcebuild.texi: Likewise.
14829
14830 2019-03-02 Jason Merrill <jason@redhat.com>
14831
14832 PR c++/86485 - -Wmaybe-unused with empty class ?:
14833 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
14834
14835 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14836
14837 PR target/89587
14838 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
14839 if_multiarch.
14840
14841 PR middle-end/89590
14842 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
14843 exactly one argument.
14844
14845 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14846 Richard Sandiford <richard.sandiford@arm.com>
14847
14848 PR tree-optimization/89570
14849 * match.pd (vec_cond into cond_op simplification): Don't use
14850 get_conditional_internal_fn, use as_internal_fn (cond_op).
14851
14852 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
14853
14854 PR target/89222
14855 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
14856 to decide when to split off a non-zero offset from a symbol.
14857 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
14858 in function symbols.
14859
14860 2019-03-05 Richard Biener <rguenther@suse.de>
14861
14862 PR tree-optimization/89594
14863 * tree-if-conv.c (pass_if_conversion::execute): Handle
14864 case where .LOOP_VECTORIZED_FUNCTION was removed.
14865
14866 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14867
14868 PR bootstrap/89560
14869 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
14870 instead alloca it only when needed with the needed size.
14871
14872 PR tree-optimization/89570
14873 * match.pd (vec_cond into cond_op simplification): Guard with
14874 vectorized_internal_fn_supported_p test and #if GIMPLE.
14875
14876 PR tree-optimization/89566
14877 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
14878 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
14879 Punt if get_user_idx_format succeeds, but idx_format argument is
14880 not provided or doesn't have pointer type, or if idx_args is above
14881 number of provided arguments.
14882
14883 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
14884
14885 PR tree-optimization/89437
14886 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
14887
14888 2019-03-04 Richard Biener <rguenther@suse.de>
14889
14890 PR middle-end/89572
14891 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
14892 safe_dyn_cast.
14893
14894 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
14895
14896 PR tree-optimization/89487
14897 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
14898 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
14899 (distribute_loop): Don't do runtime alias check if there is non-
14900 addressable data reference.
14901 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
14902 is a register variable.
14903
14904 2019-03-02 Jakub Jelinek <jakub@redhat.com>
14905
14906 PR target/89506
14907 * config/arm/arm.md (cmpsi2_addneg): Use
14908 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
14909 If operands[2] is 0 or INT_MIN, force use of subs.
14910 (*compare_scc splitter): Use gen_int_mode.
14911 (*negscc): Likewise.
14912 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
14913
14914 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
14915 Monk Chiang <sh.chiang04@gmail.com>
14916
14917 * common/config/riscv/riscv-common.c: Include sstream.
14918 (riscv_subset_list::to_string): New.
14919 (riscv_arch_str): Likewise.
14920 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
14921 * config.in: Regen.
14922 * config/riscv/riscv-protos.h (riscv_arch_str): New.
14923 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
14924 (riscv_emit_attribute): New.
14925 (riscv_file_start): Emit attribute if needed.
14926 (riscv_option_override): Init riscv_emit_attribute_p.
14927 * config/riscv/riscv.opt (mriscv-attribute): New option.
14928 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
14929 * configure: Regen.
14930 * doc/install.texi: Document --with-riscv-attribute.
14931 * doc/invoke.texi: Document -mriscv-attribute.
14932
14933 * common/config/riscv/riscv-common.c:
14934 Include config/riscv/riscv-protos.h.
14935 (INCLUDE_STRING): Defined.
14936 (RISCV_DONT_CARE_VERSION): Defined.
14937 (riscv_subset_t): Declare.
14938 (riscv_subset_t::riscv_subset_t): New.
14939 (riscv_subset_list): Declare.
14940 (riscv_subset_list::riscv_subset_list): New.
14941 (riscv_subset_list::~riscv_subset_list): Likewise.
14942 (riscv_subset_list::parsing_subset_version): Likewise.
14943 (riscv_subset_list::parse_std_ext): Likewise.
14944 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14945 (riscv_subset_list::add): Likewise.
14946 (riscv_subset_list::lookup): Likewise.
14947 (riscv_subset_list::xlen): Likewise.
14948 (riscv_subset_list::parse): Likewise.
14949 (riscv_supported_std_ext): Likewise.
14950 (current_subset_list): Likewise.
14951 (riscv_parse_arch_string): Using riscv_subset_list::parse to
14952 parse.
14953
14954 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
14955
14956 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14957 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
14958 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
14959
14960 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
14961
14962 PR rtl-optimization/85899
14963 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
14964 fallthru edges leading to the exit block.
14965
14966 2019-03-01 Tamar Christina <tamar.christina@arm.com>
14967
14968 PR target/89517
14969 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
14970 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
14971
14972 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
14973
14974 PR tree-optimization/89535
14975 * tree-vect-stmts.c (vectorizable_call): Record the vector types
14976 for each operand. Calculate the fallback choice for mask operands
14977 and pass it to vect_get_vec_def_for_operand.
14978
14979 2019-03-01 Richard Biener <rguenther@suse.de>
14980
14981 PR middle-end/89541
14982 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
14983 get virtual operands.
14984 (get_expr_operands): Handle CONST_DECL like other decls.
14985
14986 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14987
14988 PR middle-end/89503
14989 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
14990 on DECL_P and EXPR_P.
14991
14992 2019-03-01 Richard Biener <rguenther@suse.de>
14993
14994 PR middle-end/89497
14995 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
14996 argument, defaulted to zero.
14997 * passes.c (execute_function_todo): Pass down SSA update flags
14998 to cleanup_tree_cfg.
14999 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
15000 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
15001 form if requested.
15002 (cleanup_tree_cfg): Get and pass down SSA update flags.
15003
15004 2019-03-01 Jakub Jelinek <jakub@redhat.com>
15005
15006 PR bootstrap/89539
15007 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
15008 early_lto_debug argument.
15009
15010 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
15011
15012 PR tree-optimization/89536
15013 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
15014 only whether bit #0 of the value is 0 instead of the entire value.
15015
15016 2019-02-28 Marek Polacek <polacek@redhat.com>
15017
15018 PR c++/87068 - missing diagnostic with fallthrough statement.
15019 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
15020 at the end of a seq, save its location to walk_stmt_info.
15021 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
15022 a switch.
15023
15024 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
15025
15026 PR lto/88585
15027 * tree.c (find_atomic_core_type): Move ahead in file.
15028 (check_base_type): Correctly compare alignments of atomic types.
15029
15030 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
15031
15032 PR target/89455
15033 * config/i386/i386.c (get_builtin_code_for_version): Identify
15034 Westmere from PCLMUL, instead of AES.
15035
15036 2019-02-28 Jakub Jelinek <jakub@redhat.com>
15037
15038 PR target/89434
15039 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
15040 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
15041 -UINTVAL (...).
15042
15043 2019-02-28 Tamar Christina <tamar.christina@arm.com>
15044
15045 PR target/88530
15046 * config/aarch64/aarch64-option-extensions.def: Document it.
15047 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
15048 if empty hwcaps.
15049
15050 2019-02-28 Jakub Jelinek <jakub@redhat.com>
15051
15052 PR c/89520
15053 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
15054 builtins if they don't have a single scalar floating point argument.
15055 Formatting fixes.
15056
15057 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15058
15059 PR rtl-optimization/89490
15060 * varasm.c (get_block_for_section): Bail out for mergeable sections.
15061 (default_use_anchors_for_symbol_p, output_object_block): Assert the
15062 block section is not mergeable.
15063
15064 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15065
15066 PR target/70341
15067 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
15068 old define_insn to ...
15069 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
15070 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
15071 Rename old define_insn to ...
15072 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
15073 (thumb2_casesi_internal_pic): New define_expand. Rename old
15074 define_insn to ...
15075 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
15076 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
15077 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
15078
15079 2019-02-27 Richard Biener <rguenther@suse.de>
15080
15081 PR debug/88878
15082 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
15083
15084 2019-02-27 Richard Biener <rguenther@suse.de>
15085
15086 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
15087 building.
15088
15089 2019-02-27 Richard Biener <rguenther@suse.de>
15090
15091 PR debug/88878
15092 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
15093 parameter, prefix section name with .gnu.debuglto_ if true.
15094 (dwarf2out_finish): Pass false to output_comdat_type_unit.
15095 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
15096
15097 2019-02-27 Richard Biener <rguenther@suse.de>
15098
15099 PR debug/89514
15100 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
15101 rather than on use_debug_types, doing what output_die does.
15102 (value_format): Likewise.
15103
15104 2019-02-27 Martin Jambor <mjambor@suse.cz>
15105 Martin Sebor <msebor@redhat.com>
15106
15107 * doc/invoke.texi (Warning Options): Reword description of
15108 -Wno-absolute-value.
15109
15110 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15111
15112 PR tree-optimization/89280
15113 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
15114 builtin_setjmp_setup_bb): New functions.
15115 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
15116 When visiting __builtin_setjmp_setup block, queue in special
15117 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
15118 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
15119 from visited after the loop if they don't have any visited successor
15120 blocks.
15121
15122 2018-02-26 Steve Ellcey <sellcey@marvell.com>
15123
15124 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
15125 New function.
15126 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
15127
15128 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15129
15130 PR c++/89507
15131 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
15132 with types other than sizetype/ssizetype.
15133
15134 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15135
15136 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
15137 (enum sparc_processor_type): ...this.
15138 (enum sparc_code_model_type): New enumeration type.
15139 (enum sparc_memory_model_type): Tweak comments.
15140 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
15141 (mtune): Likewise.
15142 (mcmodel): Use sparc_code_model enumeration and variable.
15143 (sparc_code_model): New enumeration.
15144 (mdebug): Add Undocumented marker.
15145 * config/sparc/sparc.h (enum cmodel): Delete.
15146 (sparc_cmodel): Likewise.
15147 (TARGET_CM_MEDLOW): Adjust to above renaming.
15148 (TARGET_CM_MEDMID): Likewise.
15149 (TARGET_CM_MEDANY): Likewise.
15150 (TARGET_CM_EMBMEDANY): Likewise.
15151 * config/sparc/sparc.c (sparc_cmodel): Delete.
15152 (sparc_option_override): Remove string/value mapping support for the
15153 code model. Move code and memory model support to after the handling
15154 of target flags. Do private machine setup last.
15155 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
15156 (sparc_legitimize_reload_address): Likewise.
15157 (sparc_output_mi_thunk): Likewise.
15158 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
15159
15160 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15161
15162 PR tree-optimization/89500
15163 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
15164 (handle_builtin_strlen): Remove noncst_bound variable. Always
15165 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
15166 cst if the first cst bytes starting at x are known to be non-zero,
15167 even if the string is not zero terminated. Don't try to modify
15168 *si for strnlen. Update strlen_to_stridx only for strlen or if
15169 we can prove strnlen returns the same value as strlen would.
15170
15171 2019-02-26 Martin Liska <mliska@suse.cz>
15172
15173 * alloc-pool.h (struct pool_usage): Remove extra
15174 print_dash_line.
15175 * bitmap.h (struct bitmap_usage): Likewise.
15176 * ggc-common.c (struct ggc_usage): Likewise.
15177 * mem-stats.h (struct mem_usage): Likewise.
15178 (mem_alloc_description::dump): Print dash lines
15179 here and repeat header at the end of a table report.
15180 It's then more readable.
15181 * tree-phinodes.c (phinodes_print_statistics): Make
15182 horizontal alignment.
15183 * tree-ssanames.c (ssanames_print_statistics): Likewise.
15184 * vec.c (struct vec_usage): Remove extra print_dash_line.
15185 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
15186
15187 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
15188
15189 * doc/extend.texi (__builtin_object_size):
15190 Use @pxref instead of @xref inside parenthesis.
15191 (__builtin_has_attribute): Add missing comma after @xref.
15192 (__builtin_object_size): Ditto.
15193 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
15194
15195 2019-02-26 Jeff Law <law@redhat.com>
15196
15197 PR rtl-optimization/87761
15198 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
15199 detect obviously dead insns and delete them.
15200
15201 2019-02-26 Richard Biener <rguenther@suse.de>
15202
15203 PR tree-optimization/89505
15204 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
15205 to handle restrict pointed-to vars with multiple subvars
15206 correctly.
15207
15208 2019-02-26 Richard Biener <rguenther@suse.de>
15209
15210 PR tree-optimization/89489
15211 * tree-parloops.c (create_loop_fn): Copy over last_clique.
15212
15213 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15214
15215 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
15216 and move around comment.
15217 <BIT_AND_EXPR>: Likewise.
15218 <BIT_NOT_EXPR>: Add specific handling for boolean types.
15219
15220 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15221
15222 PR target/89474
15223 * config/i386/i386.c (remove_partial_avx_dependency): Call
15224 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
15225 after changing possibly many instructions to use that pseudo. Fix up
15226 insertion of v4sf_const0 setter at the start of bb.
15227
15228 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15229
15230 PR c/80409
15231 * doc/extend.texi (Variadic Pointer Args): New section.
15232
15233 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15234 Martin Sebor <msebor@gmail.com>
15235
15236 * common.opt (Wattribute-alias): Likewise.
15237 * doc/invoke.texi (Option Summary): List general form of
15238 -Wattribute-alias=. List positive form of -Wmissing-attributes.
15239 (-Wmissing-attributes): Invert entry, rewrite and correct default.
15240 Add cross-references.
15241 (-Wattribute-alias): Rewrite and correct default. Mention
15242 considered attributes (same as for -Wmissing-attributes).
15243
15244 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
15245
15246 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
15247 (_mm_cvtpd_ps): Likewise.
15248 (_mm_cvttpd_epi32): Likewise.
15249
15250 PR target/89338
15251 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
15252 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
15253
15254 PR target/89339
15255 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
15256
15257 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15258
15259 PR target/88530
15260 * common/config/aarch64/aarch64-common.c
15261 (struct aarch64_option_extension): Add is_synthetic.
15262 (all_extensions): Use it.
15263 (TARGET_OPTION_INIT_STRUCT): Define hook.
15264 (struct gcc_targetm_common): Moved to end.
15265 (all_extensions_by_on): New.
15266 (opt_ext_cmp, typedef opt_ext): New.
15267 (aarch64_option_init_struct): New.
15268 (aarch64_contains_opt): New.
15269 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
15270 * config/aarch64/aarch64-option-extensions.def
15271 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
15272 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
15273 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
15274 Set is_synthetic to false.
15275 (crypto): Set is_synthetic to true.
15276 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
15277 SYNTHETIC.
15278
15279 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15280
15281 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15282 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
15283 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15284 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
15285 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
15286 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
15287 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
15288 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
15289 Rename ...
15290 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
15291 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15292 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
15293 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
15294 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
15295 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
15296 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
15297 vfmlsl_laneq_high_f16): ... To this.
15298 * config/arm/neon.md: Update comments.
15299
15300 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15301
15302 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15303 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
15304 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15305 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
15306 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
15307 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
15308 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
15309 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
15310 Rename ...
15311 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
15312 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15313 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
15314 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
15315 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
15316 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
15317 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
15318 vfmlslq_laneq_high_f16): ... To this.
15319
15320 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
15321
15322 PR rtl-optimization/86096
15323 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
15324 comparing mw_order values.
15325
15326 2019-02-25 Jakub Jelinek <jakub@redhat.com>
15327
15328 PR target/89434
15329 * config/arm/arm.md (*subsi3_carryin_const): Use
15330 arm_neg_immediate_operand predicate instead of
15331 arm_not_immediate_operand, "L" constraint instead of "K" and
15332 print it using %n2 instead of %B2.
15333 (*subsi3_carryin_const0): New define_insn.
15334 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
15335 instead of arm_not_operand and "I" constraint instead of "K" and
15336 print it using %n3 instead of %B2. Instead of using match_dup 2 add
15337 another match_operand and in the condition check that it is negation
15338 of operands[2].
15339 (*subsi3_carryin_compare_const0): New define_ins.
15340 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
15341 *subsi3_carryin_const.
15342 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
15343 split into *subsi3_carryin_compare_const0 if the highpart is zero.
15344
15345 PR target/89438
15346 * config/arm.vfp.md (*negdf2_vfp): Use
15347 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
15348 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
15349
15350 2019-02-24 Jakub Jelinek <jakub@redhat.com>
15351
15352 PR rtl-optimization/89445
15353 * simplify-rtx.c (simplify_ternary_operation): Don't use
15354 simplify_merge_mask on operands that may trap.
15355 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
15356 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
15357 second operand is CONST_VECTOR, check if any element could be zero.
15358 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
15359 their operands can trap.
15360
15361 2019-02-23 Martin Sebor <msebor@redhat.com>
15362
15363 * gimple-ssa-sprintf.c (target_strtol): Rename...
15364 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
15365 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
15366 check for range error.
15367
15368 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
15369
15370 PR driver/69471
15371 * opts-common.c (prune_options): Also prune joined switches
15372 with Negative and RejectNegative.
15373 * config/i386/i386.opt (march=): Add Negative(march=).
15374 (mtune=): Add Negative(mtune=).
15375 * doc/options.texi: Document Negative used together with Joined
15376 and RejectNegative.
15377
15378 2019-02-22 Martin Sebor <msebor@redhat.com>
15379
15380 * doc/extend.texi (Other Builtins): Add
15381 __builtin_is_constant_evaluated.
15382
15383 2019-02-22 Richard Biener <rguenther@suse.de>
15384
15385 PR tree-optimization/87609
15386 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
15387
15388 2019-02-22 Jeff Law <law@redhat.com>
15389
15390 PR rtl-optimization/87761
15391 * config/mips/mips.md: Add new combiner pattern to recognize
15392 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
15393
15394 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
15395
15396 PR target/89324
15397 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
15398 destination register in peepholes generating patterns for ADDS/SUBS.
15399 (add<mode>3_compare0,
15400 *addsi3_compare0_uxtw, add<mode>3_compareC,
15401 add<mode>3_compareV_imm, add<mode>3_compareV,
15402 *adds_<optab><ALLX:mode>_<GPI:mode>,
15403 *subs_<optab><ALLX:mode>_<GPI:mode>,
15404 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
15405 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
15406 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
15407 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
15408 sub<mode>3_compare1): Allow stack pointer for source register.
15409 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
15410
15411 2019-02-22 Martin Sebor <msebor@redhat.com>
15412
15413 PR tree-optimization/88993
15414 PR tree-optimization/88853
15415 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
15416 New helper.
15417 (sprintf_dom_walker::call_info::is_string_func): New helper.
15418 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
15419 for formatted string functions.
15420 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
15421
15422 2019-02-22 Martin Sebor <msebor@redhat.com>
15423
15424 PR c/89425
15425 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
15426 unreachable subexpressions.
15427
15428 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
15429 Hongtao Liu <hongtao.liu@intel.com>
15430 Sunil K Pandey <sunil.k.pandey@intel.com>
15431
15432 PR target/87007
15433 * config/i386/i386-passes.def: Add
15434 pass_remove_partial_avx_dependency.
15435 * config/i386/i386-protos.h
15436 (make_pass_remove_partial_avx_dependency): New.
15437 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
15438 New function.
15439 (pass_data_remove_partial_avx_dependency): New.
15440 (pass_remove_partial_avx_dependency): Likewise.
15441 (make_pass_remove_partial_avx_dependency): Likewise.
15442 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
15443 (*extendsfdf2): Add avx_partial_xmm_update.
15444 (truncdfsf2): Likewise.
15445 (*float<SWI48:mode><MODEF:mode>2): Likewise.
15446 (SF/DF conversion splitters): Disabled for TARGET_AVX.
15447
15448 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
15449
15450 PR middle-end/85598
15451 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
15452 analysis for pass.
15453
15454 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
15455
15456 PR target/89444
15457 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
15458 (PTA_SKYLAKE): Add PTA_AES.
15459 (PTA_GOLDMONT): Likewise.
15460
15461 2019-02-22 Sudakshina Das <sudi.das@arm.com>
15462
15463 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
15464 instruction if enabled.
15465 (aarch64_override_options): Remove reference to return address key.
15466
15467 2019-02-22 Richard Biener <rguenther@suse.de>
15468
15469 PR tree-optimization/89440
15470 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15471 not necessary assert.
15472
15473 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
15474
15475 PR fortran/72741
15476 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
15477 (oacc_replace_fn_attrib_attr): ... this new function.
15478 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
15479 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
15480
15481 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15482
15483 * config/arm/arm-cpus.in (ares): Rename to...
15484 (neoverse-n1): ... This. Add ares as alias.
15485 * config/arm/arm-tables.opt: Regenerate.
15486 * config/arm/arm-tune.md: Likewise.
15487 * doc/invoke.txt (ARM Options): Document neoverse-n1.
15488
15489 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15490
15491 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
15492 * config/aarch64/aarch64-tune.md: Regenerate.
15493 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
15494
15495 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15496
15497 * config/aarch64/aarch64.c (ares_tunings): Rename to...
15498 (neoversen1_tunings): ... This.
15499 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
15500 (neoverse-n1): New CPU.
15501 * config/aarch64/aarch64-tune.md: Regenerate.
15502 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
15503
15504 2019-02-22 Richard Biener <rguenther@suse.de>
15505
15506 PR middle-end/87609
15507 * cfghooks.h (dependence_hash): New typedef.
15508 (struct copy_bb_data): New type.
15509 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
15510 (duplicate_block): Likewise.
15511 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
15512 (copy_bbs): Create and pass down copy_bb_data.
15513 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
15514 (rtl_duplicate_bb): Likewise.
15515 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
15516 remap dependence info.
15517
15518 2019-02-22 Richard Biener <rguenther@suse.de>
15519
15520 PR tree-optimization/87609
15521 * tree-core.h (tree_base): Document special clique values.
15522 * tree-inline.c (remap_dependence_clique): Do not use the
15523 special clique value of one.
15524 (maybe_set_dependence_info): Use clique one.
15525 (clear_dependence_clique): New callback.
15526 (compute_dependence_clique): Clear clique one from all refs
15527 before assigning it (again).
15528
15529 2019-02-21 Martin Sebor <msebor@redhat.com>
15530
15531 * doc/extend.texi (__clear_cache): Correct signature.
15532
15533 2019-02-21 Ian Lance Taylor <iant@golang.org>
15534
15535 PR go/89170
15536 * varasm.c (decode_addr_const): Call lookup_constant_def rather
15537 than output_constant_def.
15538 (add_constant_to_table): New static function.
15539 (output_constant_def): Call add_constant_to_table.
15540 (tree_output_constant_def): Likewise.
15541
15542 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15543
15544 PR c++/89285
15545 * builtins.c (fold_builtin_arith_overflow): If first two args are
15546 INTEGER_CSTs, set intres and ovfres to constants rather than calls
15547 to ifn.
15548
15549 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
15550
15551 PR target/87412
15552 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
15553 error for -mindirect-branch/-mfunction-return with incompatible
15554 -fcf-protection.
15555
15556 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15557
15558 PR bootstrap/88714
15559 * constraints.md (q): Remove.
15560 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
15561 instead of q.
15562
15563 2019-02-21 Martin Jambor <mjambor@suse.cz>
15564
15565 PR hsa/89302
15566 * omp-general.c (omp_extract_for_data): Removed a duplicate call
15567 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
15568 (omp_adjust_for_condition): ...here. Added necessary parameters.
15569 * omp-general.h (omp_adjust_for_condition): Updated declaration.
15570 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
15571 proper values to new parameters of omp_adjust_for_condition.
15572
15573 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15574
15575 PR middle-end/89412
15576 * expr.c (expand_assignment): If result is a MEM, use change_address
15577 instead of simplify_gen_subreg.
15578
15579 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15580 David Malcolm <dmalcolm@redhat.com>
15581
15582 PR middle-end/89091
15583 * fold-const.c (decode_field_reference): Return NULL_TREE if
15584 lang_hooks.types.type_for_size returns NULL. Check it before
15585 overwriting *exp_. Use return NULL_TREE instead of return 0.
15586
15587 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15588
15589 PR middle-end/88074
15590 PR middle-end/89415
15591 * toplev.c (do_compile): Double the emin/emax exponents to workaround
15592 buggy mpc_norm.
15593
15594 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
15595
15596 PR target/89397
15597 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
15598 TARGET_SSE in addition to TARGET_SSE_MATH.
15599
15600 (ix86_excess_precision): Ditto.
15601 (ix86_float_exceptions_rounding_supported_p): Ditto.
15602 (use_rsqrt_p): Ditto.
15603 * config/i386/sse.md (rsqrt<mode>2): Ditto.
15604
15605 2019-02-20 David Malcolm <dmalcolm@redhat.com>
15606
15607 PR c/89410
15608 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
15609 linenum_arith_t when determining if two adjacent line spans are
15610 close enough to merge.
15611 (diagnostic_show_locus): Use linenum_arith_t when iterating over
15612 lines within each line_span.
15613
15614 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
15615
15616 PR target/86487
15617 * lra-constraints.c(uses_hard_regs_p): Fix handling of
15618 paradoxical SUBREGS.
15619
15620 2019-02-20 Li Jia He <helijia@linux.ibm.com>
15621
15622 PR target/88100
15623 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
15624 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
15625 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
15626 range checking it.
15627
15628 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
15629
15630 * config/gcn/gcn.c (print_operand): Fix typo.
15631
15632 2019-02-19 Richard Biener <rguenther@suse.de>
15633
15634 PR middle-end/88074
15635 * toplev.c (do_compile): Initialize mpfr's exponent range
15636 based on available float modes.
15637
15638 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
15639
15640 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
15641 as long as the epilogue isn't completed.
15642
15643 2019-02-18 Martin Sebor <msebor@redhat.com>
15644
15645 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
15646 __has_cpp_attribute, and __has_include.
15647
15648 2019-02-18 Martin Sebor <msebor@redhat.com>
15649
15650 * doc/invoke.texi (-Wreturn-type): Correct and expand.
15651
15652 2019-02-18 Martin Sebor <msebor@redhat.com>
15653
15654 PR middle-end/89294
15655 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
15656 expression.
15657 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
15658
15659 2019-02-18 Richard Biener <rguenther@suse.de>
15660
15661 PR tree-optimization/89296
15662 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
15663 of no-warning flag to cases that might emit the bogus warning.
15664
15665 2019-02-18 Jakub Jelinek <jakub@redhat.com>
15666
15667 PR bootstrap/88714
15668 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
15669 "q" constraint.
15670 * config/arm/vfp.md (*movdi_vfp): Likewise.
15671 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
15672 "q" constraint for operands[0].
15673
15674 PR target/89369
15675 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
15676 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
15677 pattern in a temporary buffer.
15678 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
15679 than 64-operands[2].
15680
15681 PR target/89361
15682 * config/s390/s390.c (s390_indirect_branch_attrvalue,
15683 s390_indirect_branch_settings): Define unconditionally.
15684 (s390_set_current_function): Likewise, but guard the whole body except
15685 the s390_indirect_branch_settings call with
15686 #if S390_USE_TARGET_ATTRIBUTE.
15687 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
15688
15689 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
15690 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
15691 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
15692 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
15693 HOST_WIDE_INT_1U instead of 1ULL.
15694 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
15695 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
15696 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
15697 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
15698 instead of 1UL.
15699 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
15700 instead of 1ul.
15701
15702 2019-02-18 Martin Jambor <mjambor@suse.cz>
15703
15704 PR tree-optimization/89209
15705 * tree-sra.c (create_access_replacement): New optional parameter
15706 reg_tree. Use it as a type if non-NULL and access type is not of
15707 a register type.
15708 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
15709 to create_access_replacement.
15710 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
15711 Check lacc is non-NULL before attempting to re-create it on the RHS.
15712
15713 2019-02-18 Martin Liska <mliska@suse.cz>
15714
15715 PR ipa/89306
15716 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
15717 by default.
15718 (symbol_table::free_edge): Recycle m_summary_id.
15719 * cgraph.h (get_summary_id): New.
15720 (symbol_table::release_symbol): Set m_summary_id to -1
15721 by default.
15722 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
15723 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
15724 function_summary to fast_function_summary.
15725 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
15726 * ipa-pure-const.c (class funct_state_summary_t):
15727 Switch from function_summary to fast_function_summary.
15728 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
15729 (class ipa_ref_opt_summary_t): Switch from function_summary
15730 to fast_function_summary.
15731 * symbol-summary.h (class function_summary_base): New class
15732 that is created from base of former function_summary.
15733 (function_summary_base::unregister_hooks): New.
15734 (class function_summary): Inherit from function_summary_base.
15735 (class call_summary_base): New class
15736 that is created from base of former call_summary.
15737 (class call_summary): Inherit from call_summary_base.
15738 (struct is_same): New.
15739 (class fast_function_summary): New summary class.
15740 (class fast_call_summary): New summary class.
15741 * vec.h (vec_safe_grow_cleared): New function.
15742
15743 2019-02-18 Martin Liska <mliska@suse.cz>
15744
15745 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
15746 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
15747 * doc/tm.texi: Document new target hook.
15748 * doc/tm.texi.in: Likewise.
15749 * target.def: Add new target macro.
15750 * gcc.c (find_fortran_preinclude_file): Do not search multilib
15751 suffixes.
15752
15753 2019-02-17 Alan Modra <amodra@gmail.com>
15754
15755 PR target/89271
15756 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
15757 output reg on add insn.
15758 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
15759
15760 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15761
15762 PR target/89372
15763 * config/i386/sse.md (ssedoublemode): Remove V4HI.
15764 (PMULHRSW): Likewise.
15765 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
15766 TARGET_AVX2.
15767 (ssse3_pmulhrswv4hi3): New expander.
15768
15769 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15770
15771 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
15772 MMX. Add isa attribute.
15773
15774 2019-02-16 Jakub Jelinek <jakub@redhat.com>
15775
15776 PR rtl-optimization/66152
15777 * builtins.h (c_readstr): Declare.
15778 * builtins.c (c_readstr): Remove forward declaration. Add
15779 null_terminated_p argument, if false, read all bytes from the
15780 string instead of stopping after '\0'.
15781 * expr.c (string_cst_read_str): New function.
15782 (store_expr): Use string_cst_read_str instead of
15783 builtin_strncpy_read_str. Try to store by pieces the whole
15784 exp_len first, and only if that fails, split it up into
15785 store by pieces followed by clear_storage. Formatting fix.
15786
15787 * config/i386/i386.md (*movqi_internal): Remove static from
15788 buf variable. Use output_asm_insn (buf, operands); return "";
15789 instead of return buf;.
15790 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
15791 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
15792 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
15793
15794 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15795
15796 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
15797 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
15798 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
15799 (CC1_SPEC): Likewise.
15800 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
15801
15802 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15803
15804 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
15805 the base address on 64-bit strict-alignment platforms.
15806
15807 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
15808
15809 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
15810
15811 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15812
15813 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
15814
15815 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
15816
15817 PR rtl-optimization/88308
15818 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
15819 on copied instruction.
15820
15821 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15822
15823 * final.c (insn_current_reference_address): Replace test on JUMP_P
15824 with test on jump_to_label_p.
15825 * config/visium/visium-passes.def: New file.
15826 * config/visium/t-visium (PASSES_EXTRA): Define.
15827 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
15828 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
15829 (TRAMPOLINE_ALIGNMENT): Define.
15830 * config/visium/visium.c (visium_option_override): Do not register
15831 the machine-specific reorg pass here.
15832 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
15833 for the GR6.
15834 (output_branch): Adjust threshold for long branch instruction.
15835 * config/visium/visium.md (cpu): Move around.
15836 (length): Adjust for the GR6.
15837
15838 2019-02-15 Richard Biener <rguenther@suse.de>
15839 Jakub Jelinek <jakub@redhat.com>
15840
15841 PR tree-optimization/89278
15842 * tree-loop-distribution.c: Include tree-eh.h.
15843 (generate_memset_builtin, generate_memcpy_builtin): Call
15844 rewrite_to_non_trapping_overflow on builtin->size before passing it
15845 to force_gimple_operand_gsi.
15846
15847 2019-02-15 Jakub Jelinek <jakub@redhat.com>
15848
15849 PR other/89342
15850 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
15851 optimize_debug.
15852 * opth-gen.awk: Likewise.
15853
15854 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15855
15856 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
15857 Enable MMX, SSE and SSE2 by default.
15858 * config/i386/i386.c (ix86_option_override_internal): Do not
15859 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
15860
15861 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15862
15863 PR rtl-optimization/89354
15864 * combine.c (make_extraction): Punt if extraction_mode is narrower
15865 than len bits.
15866
15867 2019-02-14 Maya Rashish <coypu@sdf.org>
15868
15869 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
15870 * config/netbsd-d.c: New file.
15871 * config/t-netbsd: Add netbsd-d.o
15872
15873 2018-02-14 Steve Ellcey <sellcey@marvell.com>
15874
15875 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
15876 affects_type_identity to true for aarch64_vector_pcs.
15877 (aarch64_comp_type_attributes): New function.
15878 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
15879
15880 2019-02-14 Tamar Christina <tamar.christina@arm.com>
15881
15882 PR target/88850
15883 * config/arm/iterators.md (ANY64): Add V4HF.
15884
15885 2019-02-14 Martin Liska <mliska@suse.cz>
15886
15887 PR rtl-optimization/89242
15888 * dce.c (delete_unmarked_insns): Call free_dominance_info we
15889 process a transformation.
15890
15891 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15892
15893 PR tree-optimization/89314
15894 * fold-const.c (fold_binary_loc): Cast strlen argument to
15895 const char * before dereferencing it. Formatting fixes.
15896
15897 PR middle-end/89284
15898 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
15899
15900 2019-02-13 Ian Lance Taylor <iant@golang.org>
15901
15902 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
15903 and set current index for other optimizations.
15904
15905 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
15906
15907 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
15908 nonimmediate_operand as operand 2 predicate.
15909 (vec_set<VF2_512_256:mode>_0): Ditto.
15910 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
15911 (*vec_concatv2si): Remove alternative 2.
15912 (*vec_concatv4si_0): Use vm constraint for alternative 0.
15913 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
15914 (vec_concatv2di): Split alternatives 4,5,6 to ...
15915 (*vec_concatv2di_0) ... new pattern.
15916
15917 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
15918
15919 PR target/89190
15920 * config/arm/arm.c (ldm_stm_operation_p) Set
15921 addr_reg_in_reglist correctly for first register.
15922 (load_multiple_sequence): Remove dead base check.
15923 (gen_ldm_seq): Correctly set write_back for Thumb-1.
15924
15925 2019-02-13 Tamar Christina <tamar.christina@arm.com>
15926
15927 PR target/88847
15928 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
15929 Expose as @aarch64_pred_mov.
15930 * config/aarch64/aarch64.c (aarch64_classify_address):
15931 Use expand_insn which legitimizes operands.
15932
15933 2019-02-13 Martin Liska <mliska@suse.cz>
15934
15935 * builtins.h (expand_builtin_with_bounds): Remove declaration.
15936 * calls.c (struct arg_data): Remove special_slot, pointer_arg
15937 and pointer_offset fields.
15938 (initialize_argument_information): Remove usage of dead
15939 fields.
15940 * cgraph.h (struct cgraph_thunk_info): Remove
15941 add_pointer_bounds_args.
15942 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
15943 fields.
15944 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
15945 fields.
15946 * config/i386/i386.c (ix86_function_arg_advance): Remove
15947 unrelated comment.
15948 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
15949 (def_builtin): Remove usage of dead fields.
15950 (ix86_add_new_builtins): Likewise.
15951 * ipa-fnsummary.c (compute_fn_summary): Likewise.
15952 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15953 (sem_function::init): Likewise.
15954 (sem_variable::merge): Likewise.
15955 * ipa-visibility.c (function_and_variable_visibility): Likewise.
15956 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
15957 * lto-cgraph.c (lto_output_node): Likewise.
15958 (lto_output_varpool_node): Likewise.
15959 (input_node): Likewise.
15960 (input_varpool_node): Likewise.
15961 * lto-streamer-out.c (lto_output): Likewise.
15962 * tree-inline.c (expand_call_inline): Remove usage of
15963 assign_stmts.
15964 * tree-inline.h (struct copy_body_data): Likewise.
15965 * varpool.c (varpool_node::dump): Likewise.
15966
15967 2019-02-13 Jakub Jelinek <jakub@redhat.com>
15968
15969 PR middle-end/89303
15970 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
15971 into pt->vars_contains_escaped_heap instead of setting
15972 pt->vars_contains_escaped_heap to it.
15973
15974 PR middle-end/89281
15975 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
15976 INTVAL (size), compare it to GET_MODE_MASK instead of
15977 1 << GET_MODE_BITSIZE.
15978
15979 PR target/89290
15980 * config/i386/predicates.md (x86_64_immediate_operand): Allow
15981 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
15982 -mcmodel=large.
15983
15984 2019-02-13 Martin Liska <mliska@suse.cz>
15985
15986 PR lto/88858
15987 * cfgrtl.c (remove_barriers_from_footer): New function.
15988 (try_redirect_by_replacing_jump): Use it.
15989 (cfg_layout_redirect_edge_and_branch): Likewise.
15990
15991 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15992
15993 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
15994 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
15995 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
15996 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
15997 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
15998 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
15999 New BU_CRYPTO_2.
16000 * config/rs6000/rs6000.c (builtin_function_type)
16001 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
16002 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
16003 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
16004 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
16005 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
16006
16007 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
16008
16009 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
16010 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
16011
16012 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
16013
16014 PR target/89229
16015 * config/i386/i386.md (*movoi_internal_avx): Revert revision
16016 268678 and revision 268657.
16017 (*movti_internal): Likewise.
16018
16019 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
16020
16021 PR target/89233
16022 * config/s390/s390.c (s390_decompose_address): Update comment.
16023 (s390_check_qrst_address): Reject invalid address forms after
16024 LRA.
16025
16026 2019-02-12 Martin Liska <mliska@suse.cz>
16027
16028 PR lto/88876
16029 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
16030 we need default values of funct_state for a function that
16031 is not optimized.
16032
16033 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
16034
16035 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
16036 the object to pick the size of stores on strict-alignment platforms.
16037
16038 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
16039 (*movdi_insn_sp32): Likewise.
16040 (*movdi_insn_sp64): Likewise.
16041
16042 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
16043
16044 PR lto/88677
16045 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
16046 types that needs constructiong.
16047 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
16048
16049 2019-02-12 Richard Biener <rguenther@suse.de>
16050
16051 PR tree-optimization/89253
16052 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
16053 duplicate the loop.
16054
16055 2019-02-11 David Malcolm <dmalcolm@redhat.com>
16056
16057 PR lto/88147
16058 * input.c (selftest::test_line_offset_overflow): New selftest.
16059 (selftest::input_c_tests): Call it.
16060
16061 2019-02-11 Martin Sebor <msebor@redhat.com>
16062
16063 PR tree-optimization/88771
16064 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
16065 when -Wstringop-overflow is set.
16066 (builtin_memref::builtin_memref): Adjust excessive upper bound
16067 only when lower bound is not excessive.
16068 (maybe_diag_overlap): Detect and diagnose excessive bounds via
16069 -Wstringop-ovefflow.
16070 (maybe_diag_offset_bounds): Rename...
16071 (maybe_diag_access_bounds): ...to this.
16072 (check_bounds_or_overlap): Adjust for name change above.
16073
16074 2019-02-11 Martin Sebor <msebor@redhat.com>
16075
16076 PR c++/87996
16077 * builtins.c (max_object_size): Move from here...
16078 * builtins.h (max_object_size): ...and here...
16079 * tree.c (max_object_size): ...to here...
16080 * tree.h (max_object_size): ...and here.
16081
16082 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
16083
16084 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
16085 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
16086 for correct semantics.
16087
16088 2019-02-11 Alan Modra <amodra@gmail.com>
16089
16090 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
16091 -mlongcall and -mpltseq.
16092 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
16093 (RS/6000 and PowerPC Options <-mpltseq>): Document.
16094 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
16095 * config/rs6000/sysv4.opt (mpltseq): New option.
16096 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
16097 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
16098 support is lacking. Don't allow -mpltseq with -mbss-plt.
16099 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
16100 -mpltseq given for ELFv1.
16101 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
16102 Only use UNSPEC_PLTSEQ for inline PLT calls.
16103 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
16104 use UNSPEC_PLTSEQ for inline PLT calls.
16105 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
16106 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
16107 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
16108 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16109 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16110 (pltseq_mtctr_<mode>): Likewise.
16111
16112 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16113
16114 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
16115 Solaris ld.
16116 * configure: Regenerate.
16117
16118 2019-02-11 Jakub Jelinek <jakub@redhat.com>
16119
16120 PR bootstrap/88714
16121 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
16122 instead of r.
16123
16124 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16125
16126 * function.c (assign_parm_setup_block): Use the stored
16127 size, not the passed size, when allocating stack-space,
16128 also for a parameter with alignment larger than
16129 MAX_SUPPORTED_STACK_ALIGNMENT.
16130
16131 2019-02-11 Martin Liska <mliska@suse.cz>
16132
16133 PR ipa/89009
16134 * ipa-cp.c (build_toporder_info): Remove usage of a param.
16135 * ipa-inline.c (inline_small_functions): Likewise.
16136 * ipa-pure-const.c (propagate_pure_const): Likewise.
16137 (propagate_nothrow): Likewise.
16138 * ipa-reference.c (propagate): Likewise.
16139 * ipa-utils.c (struct searchc_env): Remove unused field.
16140 (searchc): Always search across AVAIL_INTERPOSABLE.
16141 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
16142 the only called IPA pure const can properly not propagate
16143 across interposable boundary.
16144 * ipa-utils.h (ipa_reduced_postorder): Remove param.
16145
16146 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
16147
16148 * config/nds32/nds32.md (call_internal, call_value_internal,
16149 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
16150
16151 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16152
16153 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
16154 typo.
16155
16156 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
16157
16158 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
16159 in comments
16160
16161 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16162
16163 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
16164
16165 2019-02-10 Jakub Jelinek <jakub@redhat.com>
16166
16167 PR tree-optimization/89268
16168 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
16169 if preds is non-NULL.
16170
16171 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16172
16173 PR lto/89272
16174 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
16175 polymorphic types.
16176
16177 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16178
16179 * config/nds32/nds32.md (trap): New pattern.
16180
16181 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16182
16183 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
16184 dwarf span.
16185
16186 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16187
16188 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
16189 to split POST_INC.
16190
16191 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16192
16193 * ipa-visibility.c (localize_node): Also do not localize
16194 LDPR_PREVAILING_DEF_IRONLY_EXP.
16195
16196 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16197
16198 PR lto/87957
16199 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
16200 instead of type_with_linkage.
16201
16202 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16203
16204 PR ipa/88755
16205 * params.def (uninlined-function-insns, uninlined-function-time,
16206 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
16207 bound so we don't get overflows.
16208
16209 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16210
16211 * config/rs6000/rs6000-string.c (expand_compare_loop,
16212 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
16213 memcmp/strncmp.
16214
16215 2019-02-09 Jakub Jelinek <jakub@redhat.com>
16216
16217 PR middle-end/89246
16218 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16219 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
16220 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
16221
16222 2019-02-09 Alan Modra <amodra@gmail.com>
16223
16224 PR target/88343
16225 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
16226 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
16227 setup.
16228
16229 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
16230
16231 PR middle-end/88560
16232 * lra-constraints.c (process_alt_operands): Don't increase reject
16233 for memory when offset memory is required.
16234
16235 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
16236
16237 * config/s390/vector.md: Implement vector copysign.
16238
16239 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16240
16241 * expr.c (expand_constructor): Correct indentations.
16242
16243 2019-02-08 Richard Biener <rguenther@suse.de>
16244
16245 PR tree-optimization/89247
16246 * tree-if-conv.c: Include tree-cfgcleanup.h.
16247 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
16248 (tree_if_conversion): Pass through predicate vector.
16249 (pass_if_conversion::execute): Do CFG cleanup and SSA update
16250 inline, see if any if-converted loops we refrece in
16251 LOOP_VECTORIZED calls vanished and fixup.
16252 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
16253
16254 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
16255
16256 * config/s390/constraints.md (jdd): New constraint.
16257
16258 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16259
16260 PR target/89229
16261 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
16262 upper 16 vector registers without TARGET_AVX512VL.
16263 (*movti_internal): Likewise.
16264
16265 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16266
16267 PR rtl-optimization/89234
16268 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
16269 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
16270 (copy_reg_eh_region_note_backward): Likewise.
16271
16272 2019-02-08 Richard Biener <rguenther@suse.de>
16273
16274 PR middle-end/89223
16275 * tree-data-ref.c (initialize_matrix_A): Fail if constant
16276 doesn't fit in HWI.
16277 (analyze_subscript_affine_affine): Handle failure from
16278 initialize_matrix_A.
16279
16280 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16281
16282 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
16283 cfun everywhere.
16284
16285 2019-02-07 David Malcolm <dmalcolm@redhat.com>
16286
16287 PR tree-optimization/86637
16288 PR tree-optimization/89235
16289 * tree-vect-loop.c (optimize_mask_stores): Add an
16290 auto_purge_vect_location sentinel to ensure that vect_location is
16291 purged on exit.
16292 * tree-vectorizer.c
16293 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
16294 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
16295 to ensure that vect_location is purged on exit.
16296 (pass_slp_vectorize::execute): Likewise, replacing the manual
16297 reset.
16298 * tree-vectorizer.h (class auto_purge_vect_location): New class.
16299
16300 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16301
16302 * config/aarch64/iterators.md (max_opp): New code_attr.
16303 (USMAX): New code iterator.
16304 * config/aarch64/predicates.md (aarch64_smin): New predicate.
16305 (aarch64_smax): Likewise.
16306 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
16307 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
16308 MINUS (MAX MIN).
16309
16310 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
16311
16312 PR target/89229
16313 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
16314 for TARGET_AVX512VL.
16315 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
16316
16317 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
16318
16319 * config/s390/s390-builtin-types.def: Add new types.
16320 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
16321 (s390_vec_xlw4): Make the memory operand into a const pointer.
16322 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
16323 float.
16324 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
16325 a new vector type with the alignment of the scalar memory operand.
16326
16327 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
16328 Jakub Jelinek <jakub@redhat.com>
16329
16330 PR bootstrap/88714
16331 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
16332 arm_count_ldrdstrd_insns): New declarations.
16333 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
16334 MINUS.
16335 (valid_operands_ldrd_strd): New function.
16336 (arm_count_ldrdstrd_insns): New function.
16337 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
16338 sets instead of single DImode set and define new insns to match this.
16339
16340 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16341
16342 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
16343 Make it a C initializer.
16344
16345 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16346
16347 PR/target 88850
16348 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
16349
16350 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16351
16352 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
16353 Use neon_dot<q> for type.
16354 (neon_<sup>dot_lane<vsi2qi>): Likewise.
16355
16356 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16357
16358 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
16359 Use neon_dot<q> for type.
16360 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
16361 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
16362
16363 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
16364
16365 PR rtl-optimization/89225
16366 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
16367 sizes check.
16368
16369 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
16370
16371 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
16372 after restoring registers saved to allocate the frame on Windows.
16373
16374 2019-02-06 Richard Biener <rguenther@suse.de>
16375
16376 PR tree-optimization/89182
16377 * graphite.h (cached_scalar_evolution_in_region): Declare.
16378 * graphite.c (struct seir_cache_key): New.
16379 (struct sese_scev_hash): Likewise.
16380 (seir_cache): New global.
16381 (cached_scalar_evolution_in_region): New function.
16382 (graphite_transform_loops): Allocate and release seir_cache.
16383 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
16384 cached_scalar_evolution_in_region.
16385 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16386 Simplify.
16387 (scop_detection::graphite_can_represent_expr: Use
16388 cached_scalar_evolution_in_region.
16389 (scop_detection::stmt_simple_for_scop_p): Likewise.
16390 (find_params_in_bb): Likewise.
16391 (gather_bbs::before_dom_children): Likewise.
16392 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
16393 (add_loop_constraints): Likewise.
16394
16395 2019-02-06 Jakub Jelinek <jakub@redhat.com>
16396
16397 PR middle-end/89210
16398 * fold-const-call.c (fold_const_vec_convert): Pass true as last
16399 operand to new_unary_operation only if both element types are integral
16400 and it isn't a widening conversion. Return NULL_TREE if
16401 new_unary_operation failed.
16402
16403 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
16404
16405 PR target/88856
16406 * config/s390/s390.md: Remove load and test FP splitter.
16407
16408 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16409
16410 PR target/89112
16411 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
16412 expand_compare_loop, expand_block_compare_gpr,
16413 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
16414 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
16415 #include "profile-count.h" and "predict.h" for types and functions
16416 needed to work with REG_BR_PROB notes.
16417
16418 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16419
16420 PR target/89112
16421 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
16422 for the long branch case.
16423
16424 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16425
16426 PR target/89188
16427 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
16428 can throw, non-call exceptions are enabled and we can't delete
16429 dead exceptions or alter cfg. Set must_clean if
16430 delete_insn_and_edges returns true, don't set it blindly for calls.
16431 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
16432
16433 PR rtl-optimization/89195
16434 * combine.c (make_extraction): For MEMs, don't extract bytes outside
16435 of the original MEM.
16436
16437 2019-02-05 Martin Liska <mliska@suse.cz>
16438
16439 PR gcov-profile/89000
16440 * gcov.c (function_summary): Remove argument.
16441 (file_summary): New function.
16442 (print_usage): Replace tabs with spaces.
16443 (generate_results): Use new function file_summary.
16444
16445 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16446
16447 PR target/89186
16448 * optabs.c (prepare_cmp_insn): Pass x and y to
16449 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
16450
16451 2019-02-05 Richard Biener <rguenther@suse.de>
16452
16453 PR middle-end/89150
16454 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
16455 (struct bitmap_element): Drop chain_prev so we properly recurse on
16456 the prev member, supporting tree views.
16457 (struct bitmap_head): GTY skip the obstack member.
16458
16459 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
16460
16461 PR c/88698
16462 * doc/extend.texi (Vector Extensions): Add an example of using vector
16463 types together with x86 intrinsics.
16464
16465 2019-02-04 Alan Modra <amodra@gmail.com>
16466
16467 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
16468 str[] size to 160, and comment.
16469
16470 2019-02-04 Alan Modra <amodra@gmail.com>
16471
16472 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
16473 (rs6000_pltseq_template): Guard output of TLS markers with
16474 TARGET_TLS_MARKERS.
16475 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
16476 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
16477 to use inline PLT sequences.
16478 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16479 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16480 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
16481
16482 2019-02-04 Martin Liska <mliska@suse.cz>
16483
16484 PR ipa/88985
16485 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
16486 out when ipa_fn_summaries does not contain entry for callee.
16487
16488 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
16489
16490 * config/sparc/sparc.h: Remove superfluous blank lines.
16491 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
16492 (got_register_rtx): ...this.
16493 (sparc_got): Adjust to above renaming.
16494 (sparc_tls_got): Likewise.
16495 (sparc_delegitimize_address): Likewise.
16496 (sparc_output_mi_thunk): Likewise.
16497 (sparc_init_pic_reg): Likewise.
16498 (save_local_or_in_reg_p): Fix test on the GOT register.
16499 (USE_HIDDEN_LINKONCE): Move around.
16500 (get_pc_thunk_name): Likewise.
16501 (gen_load_pcrel_sym): Likewise.
16502 (load_got_register): Likewise.
16503
16504 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
16505
16506 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
16507 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
16508
16509 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16510
16511 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
16512 into consideration.
16513
16514 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16515
16516 * config.gcc (with_nds32_lib, glibc):
16517 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
16518 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
16519 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
16520
16521 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
16522
16523 PR target/89071
16524 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
16525 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
16526 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
16527 (*rcpsf2_sse): Ditto.
16528 (*rsqrtsf2_sse): Ditto.
16529 (sse4_1_round<mode<2): Ditto.
16530
16531 2019-02-03 Richard Biener <rguenther@suse.de>
16532
16533 PR debug/87295
16534 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
16535 orig.
16536
16537 2019-02-02 Jakub Jelinek <jakub@redhat.com>
16538
16539 PR middle-end/87887
16540 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16541 Punt with warning on aggregate return or argument types. Ignore
16542 type/mode checking for uniform arguments.
16543
16544 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
16545
16546 * combine.c (try_combine): Do not print "Can't combine" messages unless
16547 printing failed combination attempts.
16548
16549 2019-02-01 Martin Jambor <mjambor@suse.cz>
16550
16551 PR hsa/87863
16552 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
16553 segment and global segment variables before making them static.
16554
16555 2019-02-01 Martin Jambor <mjambor@suse.cz>
16556
16557 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
16558 missed optimization dump with dump_enabled_p.
16559
16560 2019-02-01 Richard Biener <rguenther@suse.de>
16561
16562 PR middle-end/88597
16563 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
16564 the instantiate cache.
16565 (instantiate_scev_binary): Elide second operand procesing
16566 if equal to the first.
16567 * tree-chrec.c (chrec_contains_symbols): Add visited set.
16568 (chrec_contains_undetermined): Likewise.
16569 (tree_contains_chrecs): Likewise.
16570
16571 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
16572
16573 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
16574
16575 2019-02-01 Jakub Jelinek <jakub@redhat.com>
16576
16577 PR tree-optimization/89143
16578 * wide-int-range.h (wide_int_range_absu): Declare.
16579 * wide-int-range.cc (wide_int_range_absu): New function.
16580 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
16581
16582 PR tree-optimization/88107
16583 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
16584 instead of assertion that eh_region_outermost is non-NULL, if it
16585 is NULL, set *ALL to true and return NULL.
16586 (move_sese_region_to_fn): Adjust caller, if all is set, call
16587 duplicate_eh_regions with NULL region.
16588
16589 2019-02-01 Richard Biener <rguenth@suse.de>
16590
16591 PR rtl-optimization/88593
16592 * mode-switching.c (optimize_mode_switching): Free dominators before
16593 calling cleanup_cfg.
16594
16595 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16596
16597 PR tree-optimization/88932
16598 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
16599
16600 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16601
16602 PR middle-end/89137
16603 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
16604 bogus clang warning.
16605
16606 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
16607
16608 PR target/89071
16609 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
16610 alternative to avoid partial SSE register stall for TARGET_AVX.
16611 (truncdfsf2): Ditto.
16612 (sse4_1_round<mode>2): Ditto.
16613
16614 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
16615
16616 PR tree-optimization/89008
16617 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
16618 process anything of the form X * 0.
16619
16620 2019-01-31 Richard Biener <rguenther@suse.de>
16621
16622 PR tree-optimization/89135
16623 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
16624 with abnormal preds.
16625
16626 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16627
16628 PR sanitizer/89124
16629 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
16630 always_inline callees into no_sanitize_address callers.
16631
16632 2019-01-31 Richard Biener <rguenther@suse.de>
16633
16634 PR rtl-optimization/89115
16635 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
16636
16637 2019-01-30 Martin Sebor <msebor@redhat.com>
16638
16639 PR other/89106
16640 * doc/extend.texi (cast to a union): Correct and expand.
16641
16642 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
16643
16644 PR rtl-optimization/87246
16645 * lra-constraints.c (simplify_operand_subreg): Reload memory
16646 in subreg if the address became invalid.
16647
16648 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
16649
16650 PR target/87064
16651 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
16652 Disable for little-endian.
16653
16654 2019-01-30 Richard Biener <rguenther@suse.de>
16655
16656 PR rtl-optimization/89115
16657 * opts.c (default_options_optimization): Reduce
16658 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
16659 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
16660 to the default.
16661
16662 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
16663
16664 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
16665 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
16666 type of vector element when vec_extract is implemented by direct
16667 move.
16668
16669 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
16670
16671 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
16672
16673 2019-01-30 Richard Biener <rguenther@suse.de>
16674
16675 PR tree-optimization/89111
16676 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
16677 canonicalization to appropriately sized access types.
16678
16679 2019-01-30 Jakub Jelinek <jakub@redhat.com>
16680
16681 PR c++/89105
16682 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
16683 for arguments to functions that are TU-local and shouldn't be
16684 referenced by assembly.
16685
16686 2019-01-30 Ulrich Drepper <drepper@redhat.com>
16687
16688 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
16689 after '='.
16690
16691 2019-01-29 Martin Sebor <msebor@redhat.com>
16692
16693 PR c/88956
16694 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
16695
16696 2019-01-29 Jakub Jelinek <jakub@redhat.com>
16697
16698 PR c++/66676
16699 PR ipa/89104
16700 * omp-simd-clone.c (simd_clone_clauses_extract)
16701 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
16702 OMP_CLAUSE_ALIGNED_ALIGNMENT.
16703
16704 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
16705
16706 * config.gcc: Force .init_array for ARC.
16707
16708 2019-01-29 Richard Biener <rguenther@suse.de>
16709
16710 PR debug/87295
16711 * dwarf2out.c (collect_skeleton_dies): New helper.
16712 (copy_decls_for_unworthy_types): Call it.
16713 (build_abbrev_table): Assert we do not try to replace
16714 DW_AT_signature refs with local refs.
16715
16716 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16717
16718 PR middle-end/89002
16719 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
16720 for lastprivate/linear IV, push gimplify context around gimplify_assign
16721 and, if it needed any temporaries, pop it into a gimple bind around the
16722 sequence.
16723
16724 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16725
16726 * common.opt (-Wattribute-alias): Remove "no-" from name.
16727 Make -Wattribute-alias command line option and
16728 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
16729
16730 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16731
16732 PR target/89073
16733 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
16734 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
16735 x86 ISA options.
16736 (bmi2): Add missing @opindex.
16737 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
16738 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
16739 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
16740 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
16741 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
16742 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
16743 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
16744 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
16745 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
16746 xsavec, xsaveopt and xsaves options.
16747
16748 2019-01-28 Richard Biener <rguenther@suse.de>
16749
16750 PR debug/89076
16751 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
16752 support removal.
16753
16754 2019-01-28 Richard Biener <rguenther@suse.de>
16755
16756 PR tree-optimization/88739
16757 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16758 BIT_FIELD_REFs only are applied to mode-precision operands
16759 when they are integral.
16760 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
16761 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
16762 BIT_FIELD_REFs of non-mode-precision integral operands.
16763
16764 2019-01-27 Jakub Jelinek <jakub@redhat.com>
16765
16766 PR target/87214
16767 * config/i386/sse.md
16768 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
16769 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
16770 first constants in pairs are multiples of 2. Formatting fixes.
16771 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
16772 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
16773 first constants in each quadruple are multiples of 4. Formatting fixes.
16774
16775 2019-01-26 Martin Jambor <mjambor@suse.cz>
16776
16777 PR ipa/88933
16778 * tree-inline.c: Include tree-cfgcleanup.h.
16779 (delete_unreachable_blocks_update_callgraph): Move...
16780 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
16781 ...here, make externally visible, make second argument bool, adjust
16782 all callers.
16783 * tree-cfgcleanup.c: Include cgraph.h.
16784 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
16785 Declare.
16786 * ipa-prop.c: Include tree-cfgcleanup.h.
16787 (ipcp_transform_function): Call
16788 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
16789
16790 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
16791
16792 PR rtl-optimization/88846
16793 * ira.c (process_set_for_memref_referenced_p): New.
16794 (memref_referenced_p): Add new param. Use
16795 process_set_for_memref_referenced_p. Add new switch cases.
16796 (memref_used_between_p): Pass new arg to memref_referenced_p.
16797
16798 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
16799
16800 PR target/88469
16801 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
16802 argument ABI_BREAK. Set to true if the calculated alignment has
16803 changed in gcc-9. Check bit-fields for their base type alignment.
16804 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
16805 (aarch64_function_arg_boundary): Likewise.
16806 (aarch64_gimplify_va_arg_expr): Likewise.
16807
16808 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16809
16810 PR middle-end/89037
16811 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
16812 instead of accessing TREE_INT_CST_ELT directly.
16813
16814 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
16815
16816 * doc/sourcebuild.texi (Environment attributes): Add fenv and
16817 fenv_exceptions description.
16818
16819 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
16820
16821 PR rtl-optimization/87763
16822 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
16823 Allow SUBREG when matching CC_NZmode compare.
16824
16825 2019-01-25 Richard Biener <rguenther@suse.de>
16826
16827 PR tree-optimization/89049
16828 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16829 Look at the pattern stmt to determine if the stmt is vectorized.
16830
16831 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16832
16833 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
16834 (pred_mov<mode>): Handle all-register forms using both a new
16835 alternative and a split.
16836
16837 2019-01-25 Richard Biener <rguenther@suse.de>
16838
16839 PR tree-optimization/86865
16840 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16841 Reject non-do-while loops.
16842
16843 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
16844
16845 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
16846 * config/rs6000/constraints.md (Q constraint): Use REG_P.
16847 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
16848 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16849 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
16850 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16851 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
16852 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
16853 vlogical_operand, gpc_reg_operand, int_reg_operand,
16854 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
16855 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
16856 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
16857 (save_world_operation, restore_world_operation, lmw_operation,
16858 stmw_operation): Use MEM_P and REG_P.
16859 (tie_operand): Use MEM_P.
16860 (vrsave_operation, crsave_operation): Use REG_P.
16861 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
16862 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
16863 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
16864 (call_operand): Use HARD_REGISTER_P.
16865 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
16866 Use CONST_INT_P.
16867 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
16868 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
16869 quad_aligned_load_p, replace_swapped_aligned_store,
16870 recombine_lvx_pattern, replace_swapped_aligned_load,
16871 recombine_stvx_pattern): Use MEM_P.
16872 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
16873 Use MEM_P and SYMBOL_REF_P.
16874 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
16875 (insn_is_swappable_p): Use REG_P and MEM_P.
16876 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
16877 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
16878 Use CONST_INT_P.
16879 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
16880 Use CONST_DOUBLE_P.
16881 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
16882 CONST_WIDE_INT_P.
16883 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
16884 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
16885 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
16886 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
16887 reg_or_subregno:
16888 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16889 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
16890 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
16891 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
16892 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
16893 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
16894 rs6000_split_logical_di): Use CONST_INT_P.
16895 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
16896 REG_P and SYMBOL_REF_P.
16897 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
16898 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
16899 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
16900 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
16901 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
16902 (small_data_operand, print_operand_address): Use CONST_INT_P and
16903 SYMBOL_REF_P.
16904 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
16905 (rs6000_init_hard_regno_mode_ok, direct_move_p):
16906 Use HARD_REGISTER_NUM_P.
16907 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
16908 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
16909 SUBREG_P and SYMBOL_REF_P.
16910 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
16911 and HARD_REGISTER_NUM_P.
16912 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
16913 reg_or_subregno.
16914 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
16915 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
16916 MEM_P and REG_P.
16917 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
16918 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
16919 find_addr_reg): Use REG_P.
16920 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
16921 (rs6000_emit_le_vsx_move): Use SUBREG_P.
16922 (offsettable_ok_by_alignment, constant_pool_expr_p,
16923 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
16924 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
16925 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
16926 rs6000_assemble_integer, create_TOC_reference,
16927 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
16928 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
16929 (rs6000_split_vec_extract_var): Use reg_or_subregno.
16930 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16931 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16932 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16933 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16934 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
16935 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
16936 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
16937 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
16938 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
16939 and cbranch<mode>4): Use CONST_INT_P.
16940 (multiple define_splits): Use REG_P and SUBREG_P.
16941 (define_expands call, call_value): Use MEM_P.
16942 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
16943 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
16944 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
16945 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
16946 and HARD_REGISTER_NUM_P.
16947 (multiple define_splits): Use HARD_REGISTER_NUM_P.
16948
16949 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
16950
16951 PR rtl-optimization/88948
16952 * rtl.h (prepare_copy_insn): New prototype.
16953 * gcse.c (prepare_copy_insn): New function, split out from
16954 process_insert_insn.
16955 (process_insert_insn): Use prepare_copy_insn.
16956 * store-motion.c (replace_store_insn): Use prepare_copy_insn
16957 instead of gen_move_insn.
16958
16959 2019-01-24 Jakub Jelinek <jakub@redhat.com>
16960
16961 PR debug/89006
16962 * config/i386/i386.c (ix86_pic_register_p): Return true for
16963 UNSPEC_SET_GOT too.
16964
16965 PR tree-optimization/88964
16966 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
16967 punt if HONOR_SNANS (chrec).
16968
16969 PR middle-end/89015
16970 * tree-nested.c (convert_nonlocal_reference_stmt,
16971 convert_local_reference_stmt, convert_tramp_reference_stmt,
16972 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
16973 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
16974 or GIMPLE_OMP_TASK.
16975
16976 PR tree-optimization/89027
16977 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
16978 for "omp simd array" variables.
16979
16980 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
16981
16982 PR target/88469
16983 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
16984 force the alignment of m_val.
16985
16986 2019-01-24 Richard Biener <rguenther@suse.de>
16987
16988 PR lto/87187
16989 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
16990 When in "legacy" debug mode make sure to reset self-origins.
16991
16992 2019-01-24 Martin Liska <mliska@suse.cz>
16993
16994 PR gcov-profile/88994
16995 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
16996 result will be always smaller or equal to the original.
16997 * gcov.c (mangle_name): Fix else branch where we should
16998 also copy to PTR and shift the pointer.
16999
17000 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17001
17002 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
17003 * vr-values.c (find_case_label_ranges): Fix a comment typo.
17004
17005 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
17006
17007 * common/config/i386/i386-common.c
17008 (OPTION_MASK_ISA_ENQCMD_SET,
17009 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
17010 (ix86_handle_option): Handle -menqcmd.
17011 * config.gcc (enqcmdintrin.h): New header file.
17012 * config/i386/cpuid.h (bit_ENQCMD): New bit.
17013 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17014 -menqcmd.
17015 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
17016 function type.
17017 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
17018 __builtin_ia32_enqcmds): New builtins.
17019 * config/i386/i386-c.c (__ENQCMD__): New macro.
17020 * config/i386/i386-option.c (ix86_target_string): Add
17021 -menqcmd.
17022 (ix86_valid_target_attribute_inner_p): Likewise.
17023 * config/i386/i386-expand.c
17024 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
17025 IX86_BUILTIN_ENQCMDS.
17026 * config/i386/i386.h (TARGET_ENQCMD): New.
17027 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
17028 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
17029 (movdir64b_<mode>): Parameterize to enable share expansion code
17030 with ENQCMD in function ix86_expand_builtin.
17031 * config/i386/i386.opt: Add -menqcmd.
17032 * config/i386/immintrin.h: Include enqcmdintrin.h.
17033 * config/i386/enqcmdintrin.h: New intrinsic file.
17034 * doc/invoke.texi: Add -menqcmd.
17035
17036 2019-01-23 Bin Cheng <bin.cheng@arm.com>
17037 Steve Ellcey <sellcey@marvell.com>
17038
17039 PR target/85711
17040 * recog.c (address_operand): Return false on wrong mode for address.
17041 (constrain_operands): Check for mode with 'p' constraint.
17042
17043 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
17044
17045 PR target/88998
17046 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
17047 Disparage MMX alternative.
17048 (sse2_cvtpd2pi): Ditto.
17049 (sse2_cvttpd2pi): Ditto.
17050
17051 2019-01-23 David Malcolm <dmalcolm@redhat.com>
17052
17053 PR driver/89014
17054 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
17055 use-after-free of the result of
17056 aarch64_get_extension_string_for_isa_flags.
17057
17058 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17059
17060 PR c/44715
17061 * doc/extend.texi: Document break and continue behavior in
17062 statement expressions.
17063
17064 2019-01-23 Richard Biener <rguenther@suse.de>
17065
17066 PR tree-optimization/89008
17067 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
17068 not leave another stray operand.
17069
17070 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17071
17072 * BASE-VER: Bump to 9.0.1.
17073
17074 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
17075
17076 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
17077 thunk that returns by reference, use the type of the return object
17078 of the thunk instead of that of the alias to build the dereference.
17079
17080 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
17081
17082 * config/arc/atomic.md: Add operand to DMB instruction.
17083
17084 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17085
17086 PR tree-optimization/88964
17087 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
17088 build_zero_cst instead of build_int_cst. Return false for loop
17089 invariants which honor signed zeros.
17090
17091 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
17092
17093 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
17094
17095 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17096
17097 PR target/88965
17098 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
17099 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
17100 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
17101
17102 PR middle-end/88968
17103 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
17104 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
17105
17106 PR target/87064
17107 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
17108 Disable for little endian.
17109
17110 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17111
17112 PR target/88469
17113 * config/arm/arm.c (arm_needs_double_word_align): Check
17114 DECL_BIT_FIELD_TYPE.
17115
17116 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
17117 H.J. Lu <hongjiu.lu@intel.com>
17118
17119 PR target/88909
17120 * config/i386/i386-builtin.def: Add mask2 to all builtin
17121 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
17122 SPECIAL_ARGS.
17123 * config/i386/i386.c (BDESC): Add mask2 to the definition.
17124 (BDESC_FIRST): Likewise.
17125 (define_builtin): Add an argument for mask2. Updated to handle
17126 both ix86_isa_flags and ix86_isa_flags2.
17127 (define_builtin_const): Likewise.
17128 (define_builtin_pure): Likewise.
17129 (define_builtin2): Deleted.
17130 (define_builtin_const2): Likewise.
17131 (builtin_description): Add a member, mask2.
17132 (bdesc_*): Add mask2 to builtin initializations.
17133 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
17134 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
17135 support.
17136 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
17137
17138 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
17139
17140 PR target/88954
17141 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
17142 noplt attribute.
17143
17144 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17145
17146 PR target/88469
17147 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
17148 alignment is dominated by a bitfield with 64-bit aligned base type.
17149 (arm_function_arg): Emit a warning if the alignment has changed since
17150 earlier GCC releases.
17151 (arm_function_arg_boundary): Likewise.
17152 (arm_setup_incoming_varargs): Likewise.
17153
17154 2019-01-22 Richard Biener <rguenther@suse.de>
17155
17156 PR tree-optimization/88862
17157 * graphite-scop-detection.c
17158 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
17159
17160 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
17161
17162 * doc/extend.tex (AMD GCN Function Attributes): New section.
17163 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
17164 * doc/invoke.texi (AMD GCN Options): New section.
17165 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
17166
17167 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
17168
17169 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
17170 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
17171
17172 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17173
17174 PR tree-optimization/88044
17175 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
17176 is false in the first iteration, but !every_iteration, return false
17177 instead of true with niter->niter zero.
17178
17179 PR rtl-optimization/88904
17180 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
17181 any nonequal registers before processing BB_END (b).
17182
17183 PR target/88905
17184 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
17185 GET_MODE (op0).
17186 (expand_binop_directly, expand_doubleword_clz,
17187 expand_doubleword_popcount, expand_ctz, expand_ffs,
17188 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
17189
17190 PR rtl-optimization/49429
17191 PR target/49454
17192 PR rtl-optimization/86334
17193 PR target/88906
17194 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
17195 addressable from here...
17196 (emit_block_op_via_libcall): ... to here.
17197
17198 2019-01-22 Richard Biener <rguenther@suse.de>
17199
17200 * tree-vect-loop.c (vect_analyze_loop_operations): Use
17201 auto_vec for cost vector to fix memleak.
17202 (vectorize_fold_left_reduction): Properly gather SLP defs.
17203 (vectorizable_comparison): Do not swap operands to properly
17204 gather SLP defs.
17205
17206 2019-01-22 Alan Modra <amodra@gmail.com>
17207
17208 PR target/88614
17209 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
17210 stays a reg. Allow a const_int.
17211 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
17212 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
17213 (IS_NOMARK_TLSGETADDR): Define.
17214 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
17215 (rs6000_output_tlsargs): New function.
17216 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
17217 __tls_get_addr call takes an arg.
17218 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
17219 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
17220 delete split..
17221 (call_value_nonlocal_sysv): ..or here, delete split.
17222 (tls_gdld_nomark): Delete.
17223 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
17224 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
17225 (call_value_nonlocal_sysv): Likewise.
17226 (call_value_nonlocal_sysv_secure): Likewise.
17227 (call_value_nonlocal_aix): Likewise.
17228 (call_value_indirect_aix): Likewise.
17229 (call_value_indirect_elfv2): Likewise.
17230 (call_value_local32, call_value_local64): Disable for no-mark tls.
17231 (call_value_local_aix): Likewise.
17232
17233 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
17234
17235 PR target/88938
17236 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
17237 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
17238
17239 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
17240
17241 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
17242 string contents as hash_map keys.
17243
17244 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17245
17246 PR c/88928
17247 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
17248 for rvalue context. Handle rvalues correctly. Use min_align_of_type
17249 instead of TYPE_ALIGN.
17250 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
17251 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
17252 pointer from TYPE_STUB_DECL.
17253
17254 2019-01-21 Richard Biener <rguenther@suse.de>
17255
17256 PR tree-optimization/88934
17257 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
17258 at the possibly non-constant operand.
17259 (vect_get_constant_vectors): Adjust.
17260
17261 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
17262
17263 PR target/71659
17264 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
17265 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
17266 instead of _X86INTRIN_H_INCLUDED.
17267 * onfig/i386/clwbintrin.h: Likewise.
17268 * config/i386/pkuintrin.h: Likewise.
17269 * config/i386/prfchwintrin.h: Likewise.
17270 * config/i386/rdseedintrin.h: Likewise.
17271 * config/i386/wbnoinvdintrin.h: Likewise.
17272 * config/i386/xsavecintrin.h: Likewise.
17273 * config/i386/xsavesintrin.h: Likewise.
17274 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
17275 * config/i386/xsaveintrin.h: Likewise.
17276 * config/i386/xsaveoptintrin.h: Likewise.
17277 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
17278 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
17279 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
17280 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
17281 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
17282 * config/i386/immintrin.h: Here.
17283
17284 2019-01-20 Martin Jambor <mjambor@suse.cz>
17285
17286 PR ipa/87615
17287 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
17288 with aa_walk_budget.
17289 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
17290 aa_walk_budget_p parameter.
17291 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
17292 walk. Updated all callers.
17293 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
17294 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
17295 unmodified_parm.
17296 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
17297 parameter info. Extract info from fbi. Pass fbi to recursive calls
17298 and to unmodified_parm.
17299 (phi_result_unknown_predicate): New parameter fbi, removed parameter
17300 info, updated call to will_be_nonconstant_expr_predicate.
17301 (param_change_prob): New parameter fbi, limit AA walking.
17302 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
17303 calls to various above functions.
17304 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
17305 parameter. Use it to limit AA walking.
17306 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
17307 fbi, limit AA walk.
17308 (detect_type_change): New parameter fbi, pass it on to
17309 detect_type_change_from_memory_writes.
17310 (detect_type_change_ssa): Likewise.
17311 (aa_overwalked): Removed.
17312 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
17313 accordingly, adjust to the neew AA limiting scheme.
17314 (parm_ref_data_preserved_p): Likewise.
17315 (ipa_compute_jump_functions_for_edge): Adjust call to
17316 get_dynamic_type.
17317 (ipa_analyze_call_uses): Likewise.
17318 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
17319 (ipa_analyze_node): Initialize aa_walk_budget.
17320 (ipcp_transform_function): Likewise.
17321 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
17322 to get_dynamic_type.
17323
17324 2019-01-19 Jakub Jelinek <jakub@redhat.com>
17325
17326 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
17327 outside of #if CHECKING_P code.
17328
17329 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
17330
17331 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
17332 New function, split out from...
17333 (loop_versioning::analyze_stride): ...here.
17334 (loop_versioning::find_per_loop_multiplication): Use gassign.
17335 (loop_versioning::analyze_term_using_scevs): Return a success code.
17336 (loop_versioning::analyze_arbitrary_term): New function.
17337 (loop_versioning::analyze_address_fragment): Use
17338 analyze_arbitrary_term if all else fails.
17339
17340 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
17341
17342 PR target/88892
17343 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
17344 operands.
17345
17346 2019-01-18 Richard Biener <rguenther@suse.de>
17347
17348 PR tree-optimization/88903
17349 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
17350 scalar stmts a SLP shift amount is composed of when detecting
17351 shifts by scalars.
17352
17353 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
17354
17355 PR target/88799
17356 * config/arm/arm-cpus.in (mp): New feature.
17357 (sec): New feature.
17358 (fgroup ARMv7ve): Add mp and sec features.
17359 (arch armv7-a): Add options to allow mp and sec extensions.
17360 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
17361 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
17362 extenstions to the base architecture.
17363 (cpu cortex-a8): Add sec extension to the base architecture.
17364 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
17365 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
17366 variants down to the base v7-a varaint.
17367 * config/arm/t-multilib (v7_a_arch_variants): New variable.
17368 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
17369 of permitted extensions for -march=armv7-a and for
17370 -mcpu=generic-armv7-a.
17371
17372 2019-01-18 Martin Liska <mliska@suse.cz>
17373
17374 * params.def: Fix comment.
17375 * tree-profile.c (gimple_init_gcov_profiler): Bump function
17376 name.
17377 (gimple_gen_ic_func_profiler): Likewise.
17378
17379 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17380
17381 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
17382 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
17383 and put in error checks for stack protector guard options.
17384 (aarch64_stack_protect_guard): New.
17385 (TARGET_STACK_PROTECT_GUARD): Define.
17386 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
17387 (reg_stack_protect_address<mode>): New.
17388 (stack_protect_set): Adjust for SSP_GLOBAL.
17389 (stack_protect_test): Likewise.
17390 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
17391 (-mstack-protector-guard): Likewise.
17392 (-mstack-protector-guard-offset): Likewise.
17393
17394 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17395
17396 PR tree-optimization/86214
17397 * tree-inline.h (struct copy_body_data): Add
17398 add_clobbers_to_eh_landing_pads member.
17399 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
17400 (copy_edges_for_bb): Call it if EH edge destination is <
17401 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
17402 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
17403 if flag_stack_reuse != SR_NONE and clear it afterwards.
17404
17405 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
17406
17407 PR target/85596
17408 * doc/install.texi (with-multilib-list): Document for aarch64.
17409
17410 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17411
17412 PR target/88734
17413 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
17414 (("..."))) with ("...").
17415
17416 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17417
17418 * doc/extend.texi (Built-in Functions for Memory Model Aware
17419 Atomic Operations): Document atomic fetch and nand.
17420
17421 2019-01-18 Martin Liska <mliska@suse.cz>
17422 Richard Biener <rguenther@suse.de>
17423
17424 PR middle-end/88587
17425 * cgraph.h (create_version_clone_with_body): Add new argument
17426 with attributes.
17427 * cgraphclones.c (cgraph_node::create_version_clone): Add
17428 DECL_ATTRIBUTES to a newly created decl. And call
17429 valid_attribute_p so that proper cl_target_optimization_node
17430 is set for the newly created declaration.
17431 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
17432 for declaration.
17433 (expand_target_clones): Do not call valid_attribute_p, it must
17434 be already done.
17435 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
17436 vector types.
17437
17438 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17439
17440 PR target/88734
17441 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
17442 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
17443 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
17444
17445 2019-01-17 Martin Sebor <msebor@redhat.com>
17446
17447 PR middle-end/88273
17448 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
17449 Handle anti-ranges the same as no range at all.
17450
17451 2018-01-17 Steve Ellcey <sellcey@cavium.com>
17452
17453 * config/aarch64/aarch64.c (cgraph.h): New include.
17454 (intl.h): New include.
17455 (supported_simd_type): New function.
17456 (currently_supported_simd_type): Ditto.
17457 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
17458 (aarch64_simd_clone_adjust): Ditto.
17459 (aarch64_simd_clone_usable): Ditto.
17460 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
17461 (TARGET_SIMD_CLONE_ADJUST): Ditto.
17462 (TARGET_SIMD_CLONE_USABLE): Ditto.
17463 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
17464 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
17465 call.
17466
17467 2019-01-17 Martin Sebor <msebor@redhat.com>
17468
17469 PR tree-optimization/88800
17470 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
17471 NO_WARNING bit here. Avoid folding out-of-bounds calls.
17472 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
17473 redundant argument. Add new argument and issue diagnostics under
17474 its control. Detect out-of-bounds access even with warnings
17475 disabled.
17476 (check_bounds_or_overlap): Change return type. Add argument.
17477 (wrestrict_dom_walker::check_call): Adjust.
17478 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
17479 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
17480 check_bounds_or_overlap's return value.
17481 (handle_builtin_stxncpy): Same.
17482 (handle_builtin_strcat): Same.
17483
17484 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17485 Kwok Cheung Yeung <kcy@codesourcery.com>
17486 Julian Brown <julian@codesourcery.com>
17487 Tom de Vries <tom@codesourcery.com>
17488
17489 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
17490
17491 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17492
17493 * doc/sourcebuild.texi: Document dg-require-effective-target
17494 llvm_binutils and offload_gcn.
17495
17496 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17497 Kwok Cheung Yeung <kcy@codesourcery.com>
17498 Julian Brown <julian@codesourcery.com>
17499 Tom de Vries <tom@codesourcery.com>
17500
17501 * doc/sourcebuild.texi: Document dg-required-effective-target
17502 exceptions.
17503
17504 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17505 Kwok Cheung Yeung <kcy@codesourcery.com>
17506 Julian Brown <julian@codesourcery.com>
17507 Tom de Vries <tom@codesourcery.com>
17508 Jan Hubicka <hubicka@ucw.cz>
17509 Martin Jambor <mjambor@suse.cz>
17510
17511 * config.gcc: Add amdgcn*-*-amdhsa configuration.
17512 * configure.ac: Check for dlopen.
17513 * configure: Regenerate.
17514
17515 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17516 Kwok Cheung Yeung <kcy@codesourcery.com>
17517 Julian Brown <julian@codesourcery.com>
17518 Tom de Vries <tom@codesourcery.com>
17519 Jan Hubicka <hubicka@ucw.cz>
17520 Martin Jambor <mjambor@suse.cz>
17521
17522 * common/config/gcn/gcn-common.c: New file.
17523 * config/gcn/driver-gcn.c: New file.
17524 * config/gcn/gcn-builtins.def: New file.
17525 * config/gcn/gcn-hsa.h: New file.
17526 * config/gcn/gcn-modes.def: New file.
17527 * config/gcn/gcn-opts.h: New file.
17528 * config/gcn/gcn-passes.def: New file.
17529 * config/gcn/gcn-protos.h: New file.
17530 * config/gcn/gcn-run.c: New file.
17531 * config/gcn/gcn-tree.c: New file.
17532 * config/gcn/gcn.c: New file.
17533 * config/gcn/gcn.h: New file.
17534 * config/gcn/gcn.opt: New file.
17535 * config/gcn/t-gcn-hsa: New file.
17536
17537 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17538 Kwok Cheung Yeung <kcy@codesourcery.com>
17539 Julian Brown <julian@codesourcery.com>
17540 Tom de Vries <tom@codesourcery.com>
17541 Jan Hubicka <hubicka@ucw.cz>
17542 Martin Jambor <mjambor@suse.cz>
17543
17544 * config/gcn/constraints.md: New file.
17545 * config/gcn/gcn-valu.md: New file.
17546 * config/gcn/gcn.md: New file.
17547 * config/gcn/predicates.md: New file.
17548
17549 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
17550
17551 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
17552 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
17553 (stmt_uses_0_or_null_in_undefined_way): Likewise.
17554 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
17555
17556 2019-01-17 Tamar Christina <tamar.christina@arm.com>
17557
17558 PR target/88851
17559 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
17560 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
17561 it and document registers.
17562
17563 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17564
17565 * config/aarch64/aarch64.c (ares_tunings): Define.
17566 * config/aarch64/aarch64-cores.def (ares): Use the above.
17567
17568 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17569
17570 PR target/88794
17571 Revert:
17572 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
17573
17574 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
17575 (_mm512_fixupimm_round_pd): Update parameters and builtin.
17576 (_mm512_maskz_fixupimm_round_pd): Ditto.
17577 (_mm512_fixupimm_round_ps): Ditto.
17578 (_mm512_maskz_fixupimm_round_ps): Ditto.
17579 (_mm_fixupimm_round_sd): Ditto.
17580 (_mm_maskz_fixupimm_round_sd): Ditto.
17581 (_mm_fixupimm_round_ss): Ditto.
17582 (_mm_maskz_fixupimm_round_ss): Ditto.
17583 (_mm512_fixupimm_pd): Ditto.
17584 (_mm512_maskz_fixupimm_pd): Ditto.
17585 (_mm512_fixupimm_ps): Ditto.
17586 (_mm512_maskz_fixupimm_ps): Ditto.
17587 (_mm_fixupimm_sd): Ditto.
17588 (_mm_maskz_fixupimm_sd): Ditto.
17589 (_mm_fixupimm_ss): Ditto.
17590 (_mm_maskz_fixupimm_ss): Ditto.
17591 (_mm512_mask_fixupimm_round_pd): Update builtin.
17592 (_mm512_mask_fixupimm_round_ps): Ditto.
17593 (_mm_mask_fixupimm_round_sd): Ditto.
17594 (_mm_mask_fixupimm_round_ss): Ditto.
17595 (_mm512_mask_fixupimm_pd): Ditto.
17596 (_mm512_mask_fixupimm_ps): Ditto.
17597 (_mm_mask_fixupimm_sd): Ditto.
17598 (_mm_mask_fixupimm_ss): Ditto.
17599 * config/i386/avx512vlintrin.h:
17600 (_mm256_fixupimm_pd): Update parameters and builtin.
17601 (_mm256_maskz_fixupimm_pd): Ditto.
17602 (_mm256_fixupimm_ps): Ditto.
17603 (_mm256_maskz_fixupimm_ps): Ditto.
17604 (_mm_fixupimm_pd): Ditto.
17605 (_mm_maskz_fixupimm_pd): Ditto.
17606 (_mm_fixupimm_ps): Ditto.
17607 (_mm_maskz_fixupimm_ps): Ditto.
17608 (_mm256_mask_fixupimm_pd): Update builtin.
17609 (_mm256_mask_fixupimm_ps): Ditto.
17610 (_mm_mask_fixupimm_pd): Ditto.
17611 (_mm_mask_fixupimm_ps): Ditto.
17612 * config/i386/i386-builtin-types.def: Add new types and remove
17613 useless ones.
17614 * config/i386/i386-builtin.def: Update builtin definitions.
17615 * config/i386/i386.c: Handle new builtin types and remove useless ones.
17616 * config/i386/sse.md: Update VFIXUPIMM* patterns.
17617 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17618 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17619 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
17620 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17621 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17622 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
17623 * config/i386/subst.md:
17624 (round_saeonly_sd_mask_operand4): Add new subst_attr.
17625 (round_saeonly_sd_mask_op4): Ditto.
17626 (round_saeonly_expand_operand5): Ditto.
17627 (round_saeonly_expand): Update.
17628
17629 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17630
17631 PR target/88794
17632 Revert:
17633 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
17634
17635 * config/i386/sse.md: Combine VFIXUPIMM* patterns
17636 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17637 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17638 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
17639 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17640 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17641 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
17642
17643 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17644
17645 PR target/88794
17646 Revert:
17647 2018-12-15 Jakub Jelinek <jakub@redhat.com>
17648
17649 PR target/88489
17650 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
17651 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
17652 instead of UNSPEC_FIXUPIMM.
17653
17654 2019-01-17 Richard Biener <rguenther@suse.de>
17655
17656 PR lto/86736
17657 * dwarf2out.c (want_pubnames): Never generate pubnames sections
17658 and friends for the LTO part of debug info.
17659
17660 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17661
17662 PR tree-optimization/86214
17663 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
17664 if x == y.
17665
17666 PR rtl-optimization/88870
17667 * dce.c (deletable_insn_p): Never delete const/pure calls that can
17668 throw if we can't alter the cfg or delete dead exceptions.
17669 (mark_insn): Don't call find_call_stack_args for such calls.
17670
17671 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
17672
17673 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
17674 prototypes for vec_st.
17675 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
17676 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
17677 mainly on signed/unsigned long long and double.
17678
17679 2019-01-16 David Malcolm <dmalcolm@redhat.com>
17680
17681 PR target/88861
17682 * combine.c (delete_noop_moves): Convert to "bool" return,
17683 returning true if any edges are eliminated.
17684 (combine_instructions): Also return true if delete_noop_moves
17685 returns true.
17686
17687 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17688
17689 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
17690 correct max nunits for endian swap.
17691 (aarch64_expand_fcmla_builtin): Correct subreg code.
17692 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
17693 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
17694 lane endianness.
17695
17696 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
17697
17698 * config/alpha/alpha.c (alpha_gimplify_va_arg):
17699 Handle split indirect COMPLEX_TYPE arguments.
17700
17701 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
17702
17703 PR target/86891
17704 * config/aarch64/aarch64-modes.def: Add comment about how the carry
17705 bit is set by add and compare.
17706 (CC_ADC): New CC_MODE.
17707 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
17708 to cache the code and mode of X. Adjust the shape of a CC_Cmode
17709 comparison. Add detection for CC_ADCmode.
17710 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
17711 CC_ADCmode.
17712 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
17713 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
17714 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
17715 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
17716 to eliminate the need for zero-extending the operands.
17717 (add<mode>3_compareC_imm): Delete. Merge into ...
17718 (add<mode>3_compareC): ... this. Restructure the comparison to
17719 eliminate the need for zero-extending the operands.
17720 (add<mode>3_carryin): Use LTU for the overflow detection.
17721 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
17722 Reexpress comparison for overflow.
17723 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
17724 (add<mode>3_carryinC): Likewise.
17725 (add<mode>3_carryinV): Use LTU for carry between partials.
17726 * config/aarch64/predicates.md (aarch64_carry_operation): Update
17727 handling of CC_Cmode and add CC_ADCmode.
17728 (aarch64_borrow_operation): Likewise.
17729
17730 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17731
17732 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
17733 Remove patternmode.
17734 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
17735 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
17736 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
17737 Remove endianness conversion.
17738
17739 2019-01-16 Martin Liska <mliska@suse.cz>
17740
17741 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
17742 for GCC driver.
17743 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
17744 a new argument.
17745 * gcc.c (add_sysrooted_hdrs_prefix): New function.
17746 (path_prefix_reset): Move up in the source file.
17747 (find_fortran_preinclude_file): Make complex search for the
17748 fortran header files.
17749
17750 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
17751
17752 * godump.c (go_output_typedef): When outputting a typedef, refer
17753 to the underlying type by its name and not its structure.
17754
17755 2019-01-15 David Malcolm <dmalcolm@redhat.com>
17756
17757 PR c++/88795
17758 * tree.c (build_function_type): Assert that arg_types is not
17759 error_mark_node.
17760
17761 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
17762
17763 PR inline-asm/52813
17764 * doc/extend.texi: Document that listing the stack pointer in the
17765 clobber list of an asm is a deprecated feature.
17766 * common.opt (Wdeprecated): Moved from c-family/c.opt.
17767 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
17768 warning instead of an error for clobbers of the stack pointer.
17769 Add a note explaining why.
17770
17771 2019-01-15 Richard Biener <rguenther@suse.de>
17772
17773 PR debug/88046
17774 * dwarf2out.c (gen_member_die): Do not generate inheritance
17775 DIEs late.
17776
17777 2019-01-15 Richard Biener <rguenther@suse.de>
17778
17779 PR tree-optimization/88855
17780 * tree-if-conv.c (combine_blocks): Collect
17781 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
17782
17783 2019-01-15 Tom de Vries <tdevries@suse.de>
17784
17785 PR target/80547
17786 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
17787 lhs == NULL_TREE for gang-level reduction.
17788
17789 2019-01-15 Richard Biener <rguenther@suse.de>
17790 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17791
17792 PR ipa/88788
17793 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
17794 return true if SSA_NAME is already marked in visited bitmap.
17795 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
17796
17797 2019-01-15 Jakub Jelinek <jakub@redhat.com>
17798
17799 PR tree-optimization/88775
17800 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
17801 equal == 0 equality pointer comparisons some more if compared in
17802 integral types and either one points to an automatic var and the
17803 other to a global, or we can prove at least one points to the middle
17804 or both point to start or both point to end.
17805
17806 2019-01-14 Andi Kleen <ak@linux.intel.com>
17807
17808 * Makefile.in: Lower autofdo sampling rate by 10x.
17809 * Makefile.tpl: Dito.
17810
17811 2019-01-14 Tom Honermann <tom@honermann.net>
17812
17813 * defaults.h: Define CHAR8_TYPE.
17814
17815 2019-01-14 Martin Sebor <msebor@redhat.com>
17816
17817 PR target/88638
17818 * doc/extend.texi (Darwin Format Checks): Clarify.
17819
17820 2019-01-14 Richard Biener <rguenther@suse.de>
17821
17822 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
17823 whether we are in (simplify ...) or (match ...) context.
17824
17825 2019-01-14 Jakub Jelinek <jakub@redhat.com>
17826
17827 PR rtl-optimization/88796
17828 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
17829 * cfgexpand.c (stack_protect_prologue): Initialize
17830 crtl->stack_protect_guard_decl.
17831 * function.c (stack_protect_epilogue): Use it instead of calling
17832 targetm.stack_protect_guard again.
17833 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
17834 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
17835 crtl->stack_protect_guard_decl.
17836 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
17837 on the returned MEM_EXPR.
17838
17839 2019-01-12 Tom de Vries <tdevries@suse.de>
17840
17841 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
17842 vector length using -fopenacc-dim.
17843
17844 2019-01-12 Tom de Vries <tdevries@suse.de>
17845
17846 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
17847 lengths into account.
17848
17849 2019-01-12 Svante Signell <svante.signell@gmail.com>
17850
17851 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
17852 (TARGET_CAN_SPLIT_STACK): Define.
17853 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
17854
17855 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17856
17857 * params.def (inline-unit-growth): Set to 40.
17858
17859 2019-01-12 Jakub Jelinek <jakub@redhat.com>
17860
17861 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
17862
17863 2019-01-12 Tom de Vries <tdevries@suse.de>
17864
17865 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
17866 region calling vector-partitionable routine, set default_vector_length
17867 to WARP_SIZE.
17868
17869 2019-01-12 Tom de Vries <tdevries@suse.de>
17870
17871 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
17872 variable default_vector_length.
17873
17874 2019-01-12 Tom de Vries <tdevries@suse.de>
17875
17876 PR middle-end/88703
17877 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
17878 from oacc_default_dims, as oacc_validate_dims would do it, and apply
17879 dimensions limits.
17880
17881 2019-01-12 Tom de Vries <tdevries@suse.de>
17882
17883 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
17884 (nvptx_goacc_validate_dims): Add used parameter.
17885 * doc/tm.texi: Regenerate.
17886 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
17887 argument to call to targetm.goacc.validate_dims.
17888 (default_goacc_validate_dims): Add used
17889 parameter.
17890 * target.def (validate_dims): Add used parameter in DEFHOOK.
17891 * targhooks.h (default_goacc_validate_dims): Add used parameter.
17892
17893 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17894
17895 PR middle-end/85956
17896 PR lto/88733
17897 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
17898 field.
17899 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
17900 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
17901 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
17902 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
17903
17904 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
17905
17906 PR rtl-optimization/87305
17907 * lra-assigns.c
17908 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
17909 for little endian pseudos used as paradoxical subreg.
17910
17911 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17912
17913 PR tree-optimization/88693
17914 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
17915 for STRING_CSTs that don't contain any NUL characters in the first
17916 TREE_STRING_LENGTH bytes.
17917
17918 2019-01-11 Alan Modra <amodra@gmail.com>
17919
17920 PR 88777
17921 PR 88614
17922 * genattrtab.c (min_fn): Don't translate values.
17923 (min_attr_value): Return INT_MAX when the value can't be calculated.
17924 Return minimum among any values that can be calculated.
17925 (max_attr_value): Adjust.
17926
17927 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17928
17929 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
17930
17931 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17932
17933 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17934 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
17935 (aarch64_return_call_with_max_clobbers): New function.
17936 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
17937 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
17938 argument.
17939 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
17940 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
17941 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
17942 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
17943 * cselib.c (cselib_process_insn): Add argument to
17944 targetm.hard_regno_call_part_clobbered call.
17945 * ira-conflicts.c (ira_build_conflicts): Ditto.
17946 * ira-costs.c (ira_tune_allocno_costs): Ditto.
17947 * lra-constraints.c (inherit_reload_reg): Ditto.
17948 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
17949 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
17950 argument. Call targetm.return_call_with_max_clobbers.
17951 Add argument to targetm.hard_regno_call_part_clobbered call.
17952 (calls_have_same_clobbers_p): New function.
17953 (process_bb_lives): Add call_insn and last_call_insn variables.
17954 Pass call_insn to check_pseudos_live_through_calls.
17955 Modify if stmt to check targetm.return_call_with_max_clobbers.
17956 Update setting of flush variable.
17957 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
17958 to false.
17959 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
17960 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
17961 targetm.hard_regno_call_part_clobbered call.
17962 * reginfo.c (choose_hard_reg_mode): Ditto.
17963 * regrename.c (check_new_reg_p): Ditto.
17964 * reload.c (find_equiv_reg): Ditto.
17965 * reload1.c (emit_reload_insns): Ditto.
17966 * sched-deps.c (deps_analyze_insn): Ditto.
17967 * sel-sched.c (init_regs_for_mode): Ditto.
17968 (mark_unavailable_hard_regs): Ditto.
17969 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
17970 * target.def (hard_regno_call_part_clobbered): Add insn argument.
17971 (return_call_with_max_clobbers): New target function.
17972 * doc/tm.texi: Regenerate.
17973 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
17974 * hooks.c (hook_bool_uint_mode_false): Change to
17975 hook_bool_insn_uint_mode_false.
17976 * hooks.h (hook_bool_uint_mode_false): Ditto.
17977
17978 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17979
17980 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17981 (aarch64_remove_extra_call_preserved_regs): New function.
17982 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
17983 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
17984 * doc/tm.texi: Regenerate.
17985 * final.c (get_call_reg_set_usage): Call new hook.
17986 * target.def (remove_extra_call_preserved_regs): New hook.
17987 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
17988 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
17989
17990 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17991
17992 PR bootstrap/88714
17993 * passes.c (finish_optimization_passes): Call print_combine_total_stats
17994 inside of pass_combine_1 dump rather than pass_profile_1.
17995
17996 2019-01-11 Tom de Vries <tdevries@suse.de>
17997
17998 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
17999 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
18000 (PTX_NUM_PER_WORKER_BARRIERS): Define.
18001 (nvptx_apply_dim_limits): Prevent vector_length 64 and
18002 num_workers 16.
18003
18004 2019-01-11 Tom de Vries <tdevries@suse.de>
18005
18006 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
18007
18008 2019-01-11 Jan Beulich <jbeulich@suse.com>
18009
18010 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
18011 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
18012 sse2_cvtsi2sd): Add {l}.
18013 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
18014 syntax.
18015
18016 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18017
18018 PR target/88785
18019 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
18020 define_expand.
18021 (*float<floatunssuffix>v2div2sf2): New define_insn.
18022 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
18023 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
18024 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
18025 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
18026 match_operands with "const0_operand" "C".
18027
18028 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18029
18030 * config/aarch64/aarch64-builtins.c
18031 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
18032 (aarch64_init_simd_builtins): ...Here
18033
18034 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
18035
18036 PR rtl-optimization/87305
18037 * lra-assigns.c
18038 (setup_live_pseudos_and_spill_after_risky_transforms): Check
18039 allocation for big endian pseudos used as paradoxical subregs and
18040 spill them if it is wrong.
18041 * lra-constraints.c (lra_constraints): Add a comment.
18042
18043 2019-01-10 Richard Biener <rguenther@suse.de>
18044
18045 PR tree-optimization/88792
18046 * tree-ssa-pre.c (get_representative_for): Do not return a
18047 value-number here.
18048
18049 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18050
18051 PR middle-end/84877
18052 PR bootstrap/88450
18053 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
18054 (assign_parm_setup_block): Do the argument slot realignment here
18055 instead.
18056
18057 2019-01-10 Stefan Agner <stefan@agner.ch>
18058
18059 PR target/88648
18060 * config/arm/arm.c (arm_option_override_internal): Force
18061 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
18062
18063 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18064
18065 PR c/88568
18066 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
18067 DECL_EXTERNAL.
18068
18069 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18070
18071 * config/arm/arm-builtins.c
18072 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
18073 (MAC_LANE_PAIR_QUALIFIERS): New.
18074 (arm_expand_builtin_args): Use it.
18075 (arm_expand_builtin_1): Likewise.
18076 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
18077 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
18078 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
18079 * config/arm/arm_neon.h:
18080 (vcadd_rot90_f16): New.
18081 (vcaddq_rot90_f16): New.
18082 (vcadd_rot270_f16): New.
18083 (vcaddq_rot270_f16): New.
18084 (vcmla_f16): New.
18085 (vcmlaq_f16): New.
18086 (vcmla_lane_f16): New.
18087 (vcmla_laneq_f16): New.
18088 (vcmlaq_lane_f16): New.
18089 (vcmlaq_laneq_f16): New.
18090 (vcmla_rot90_f16): New.
18091 (vcmlaq_rot90_f16): New.
18092 (vcmla_rot90_lane_f16): New.
18093 (vcmla_rot90_laneq_f16): New.
18094 (vcmlaq_rot90_lane_f16): New.
18095 (vcmlaq_rot90_laneq_f16): New.
18096 (vcmla_rot180_f16): New.
18097 (vcmlaq_rot180_f16): New.
18098 (vcmla_rot180_lane_f16): New.
18099 (vcmla_rot180_laneq_f16): New.
18100 (vcmlaq_rot180_lane_f16): New.
18101 (vcmlaq_rot180_laneq_f16): New.
18102 (vcmla_rot270_f16): New.
18103 (vcmlaq_rot270_f16): New.
18104 (vcmla_rot270_lane_f16): New.
18105 (vcmla_rot270_laneq_f16): New.
18106 (vcmlaq_rot270_lane_f16): New.
18107 (vcmlaq_rot270_laneq_f16): New.
18108 (vcadd_rot90_f32): New.
18109 (vcaddq_rot90_f32): New.
18110 (vcadd_rot270_f32): New.
18111 (vcaddq_rot270_f32): New.
18112 (vcmla_f32): New.
18113 (vcmlaq_f32): New.
18114 (vcmla_lane_f32): New.
18115 (vcmla_laneq_f32): New.
18116 (vcmlaq_lane_f32): New.
18117 (vcmlaq_laneq_f32): New.
18118 (vcmla_rot90_f32): New.
18119 (vcmlaq_rot90_f32): New.
18120 (vcmla_rot90_lane_f32): New.
18121 (vcmla_rot90_laneq_f32): New.
18122 (vcmlaq_rot90_lane_f32): New.
18123 (vcmlaq_rot90_laneq_f32): New.
18124 (vcmla_rot180_f32): New.
18125 (vcmlaq_rot180_f32): New.
18126 (vcmla_rot180_lane_f32): New.
18127 (vcmla_rot180_laneq_f32): New.
18128 (vcmlaq_rot180_lane_f32): New.
18129 (vcmlaq_rot180_laneq_f32): New.
18130 (vcmla_rot270_f32): New.
18131 (vcmlaq_rot270_f32): New.
18132 (vcmla_rot270_lane_f32): New.
18133 (vcmla_rot270_laneq_f32): New.
18134 (vcmlaq_rot270_lane_f32): New.
18135 (vcmlaq_rot270_laneq_f32): New.
18136 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
18137 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
18138 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
18139 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
18140 vcmlaq_lane270): New.
18141 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18142 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
18143 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
18144 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
18145 (arm_option_reconfigure_globals): Use them.
18146 * config/arm/iterators.md (VDF, VQ_HSF): New.
18147 (VCADD, VCMLA): New.
18148 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
18149 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
18150 New.
18151 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
18152 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
18153
18154 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18155
18156 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18157 Add qualifier_lane_pair_index.
18158 (emit-rtl.h): Include.
18159 (TYPES_QUADOP_LANE_PAIR): New.
18160 (aarch64_simd_expand_args): Use it.
18161 (aarch64_simd_expand_builtin): Likewise.
18162 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
18163 New.
18164 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
18165 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
18166 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
18167 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
18168 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
18169 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
18170 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
18171 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
18172 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
18173 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
18174 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
18175 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
18176 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
18177 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18178 Add __ARM_FEATURE_COMPLEX.
18179 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
18180 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
18181 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
18182 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
18183 fcmlaq_lane270): New.
18184 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18185 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
18186 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
18187 * config/aarch64/arm_neon.h:
18188 (vcadd_rot90_f16): New.
18189 (vcaddq_rot90_f16): New.
18190 (vcadd_rot270_f16): New.
18191 (vcaddq_rot270_f16): New.
18192 (vcmla_f16): New.
18193 (vcmlaq_f16): New.
18194 (vcmla_lane_f16): New.
18195 (vcmla_laneq_f16): New.
18196 (vcmlaq_lane_f16): New.
18197 (vcmlaq_rot90_lane_f16): New.
18198 (vcmla_rot90_laneq_f16): New.
18199 (vcmla_rot90_lane_f16): New.
18200 (vcmlaq_rot90_f16): New.
18201 (vcmla_rot90_f16): New.
18202 (vcmlaq_laneq_f16): New.
18203 (vcmla_rot180_laneq_f16): New.
18204 (vcmla_rot180_lane_f16): New.
18205 (vcmlaq_rot180_f16): New.
18206 (vcmla_rot180_f16): New.
18207 (vcmlaq_rot90_laneq_f16): New.
18208 (vcmlaq_rot270_laneq_f16): New.
18209 (vcmlaq_rot270_lane_f16): New.
18210 (vcmla_rot270_laneq_f16): New.
18211 (vcmlaq_rot270_f16): New.
18212 (vcmla_rot270_f16): New.
18213 (vcmlaq_rot180_laneq_f16): New.
18214 (vcmlaq_rot180_lane_f16): New.
18215 (vcmla_rot270_lane_f16): New.
18216 (vcadd_rot90_f32): New.
18217 (vcaddq_rot90_f32): New.
18218 (vcaddq_rot90_f64): New.
18219 (vcadd_rot270_f32): New.
18220 (vcaddq_rot270_f32): New.
18221 (vcaddq_rot270_f64): New.
18222 (vcmla_f32): New.
18223 (vcmlaq_f32): New.
18224 (vcmlaq_f64): New.
18225 (vcmla_lane_f32): New.
18226 (vcmla_laneq_f32): New.
18227 (vcmlaq_lane_f32): New.
18228 (vcmlaq_laneq_f32): New.
18229 (vcmla_rot90_f32): New.
18230 (vcmlaq_rot90_f32): New.
18231 (vcmlaq_rot90_f64): New.
18232 (vcmla_rot90_lane_f32): New.
18233 (vcmla_rot90_laneq_f32): New.
18234 (vcmlaq_rot90_lane_f32): New.
18235 (vcmlaq_rot90_laneq_f32): New.
18236 (vcmla_rot180_f32): New.
18237 (vcmlaq_rot180_f32): New.
18238 (vcmlaq_rot180_f64): New.
18239 (vcmla_rot180_lane_f32): New.
18240 (vcmla_rot180_laneq_f32): New.
18241 (vcmlaq_rot180_lane_f32): New.
18242 (vcmlaq_rot180_laneq_f32): New.
18243 (vcmla_rot270_f32): New.
18244 (vcmlaq_rot270_f32): New.
18245 (vcmlaq_rot270_f64): New.
18246 (vcmla_rot270_lane_f32): New.
18247 (vcmla_rot270_laneq_f32): New.
18248 (vcmlaq_rot270_lane_f32): New.
18249 (vcmlaq_rot270_laneq_f32): New.
18250 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
18251 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
18252 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
18253 (FCADD, FCMLA): New.
18254 (rot): New.
18255 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
18256
18257 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18258
18259 PR other/16615
18260
18261 * config/pa/pa.c: Change "can not" to "cannot".
18262 * gimple-ssa-evrp-analyze.c: Likewise.
18263 * ipa-icf.c: Likewise.
18264 * ipa-polymorphic-call.c: Likewise.
18265 * ipa-pure-const.c: Likewise.
18266 * lra-constraints.c: Likewise.
18267 * lra-remat.c: Likewise.
18268 * reload1.c: Likewise.
18269 * reorg.c: Likewise.
18270 * tree-ssa-uninit.c: Likewise.
18271
18272 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18273
18274 PR other/16615
18275
18276 * Makefile.in: Mechanically replace "can not" with "cannot".
18277 * alias.c: Likewise.
18278 * builtins.c: Likewise.
18279 * calls.c: Likewise.
18280 * cgraph.c: Likewise.
18281 * cgraph.h: Likewise.
18282 * cgraphclones.c: Likewise.
18283 * cgraphunit.c: Likewise.
18284 * combine-stack-adj.c: Likewise.
18285 * combine.c: Likewise.
18286 * common/config/i386/i386-common.c: Likewise.
18287 * config/aarch64/aarch64.c: Likewise.
18288 * config/alpha/sync.md: Likewise.
18289 * config/arc/arc.c: Likewise.
18290 * config/arc/predicates.md: Likewise.
18291 * config/arm/arm-c.c: Likewise.
18292 * config/arm/arm.c: Likewise.
18293 * config/arm/arm.h: Likewise.
18294 * config/arm/arm.md: Likewise.
18295 * config/arm/cortex-r4f.md: Likewise.
18296 * config/csky/csky.c: Likewise.
18297 * config/csky/csky.h: Likewise.
18298 * config/darwin-f.c: Likewise.
18299 * config/epiphany/epiphany.md: Likewise.
18300 * config/i386/i386.c: Likewise.
18301 * config/i386/sol2.h: Likewise.
18302 * config/m68k/m68k.c: Likewise.
18303 * config/mcore/mcore.h: Likewise.
18304 * config/microblaze/microblaze.md: Likewise.
18305 * config/mips/20kc.md: Likewise.
18306 * config/mips/sb1.md: Likewise.
18307 * config/nds32/nds32.c: Likewise.
18308 * config/nds32/predicates.md: Likewise.
18309 * config/pa/pa.c: Likewise.
18310 * config/rs6000/e300c2c3.md: Likewise.
18311 * config/rs6000/rs6000.c: Likewise.
18312 * config/s390/s390.h: Likewise.
18313 * config/sh/sh.c: Likewise.
18314 * config/sh/sh.md: Likewise.
18315 * config/spu/vmx2spu.h: Likewise.
18316 * cprop.c: Likewise.
18317 * dbxout.c: Likewise.
18318 * df-scan.c: Likewise.
18319 * doc/cfg.texi: Likewise.
18320 * doc/extend.texi: Likewise.
18321 * doc/fragments.texi: Likewise.
18322 * doc/gty.texi: Likewise.
18323 * doc/invoke.texi: Likewise.
18324 * doc/lto.texi: Likewise.
18325 * doc/md.texi: Likewise.
18326 * doc/objc.texi: Likewise.
18327 * doc/rtl.texi: Likewise.
18328 * doc/tm.texi: Likewise.
18329 * dse.c: Likewise.
18330 * emit-rtl.c: Likewise.
18331 * emit-rtl.h: Likewise.
18332 * except.c: Likewise.
18333 * expmed.c: Likewise.
18334 * expr.c: Likewise.
18335 * fold-const.c: Likewise.
18336 * genautomata.c: Likewise.
18337 * gimple-fold.c: Likewise.
18338 * hard-reg-set.h: Likewise.
18339 * ifcvt.c: Likewise.
18340 * ipa-comdats.c: Likewise.
18341 * ipa-cp.c: Likewise.
18342 * ipa-devirt.c: Likewise.
18343 * ipa-fnsummary.c: Likewise.
18344 * ipa-icf.c: Likewise.
18345 * ipa-inline-transform.c: Likewise.
18346 * ipa-inline.c: Likewise.
18347 * ipa-polymorphic-call.c: Likewise.
18348 * ipa-profile.c: Likewise.
18349 * ipa-prop.c: Likewise.
18350 * ipa-pure-const.c: Likewise.
18351 * ipa-reference.c: Likewise.
18352 * ipa-split.c: Likewise.
18353 * ipa-visibility.c: Likewise.
18354 * ipa.c: Likewise.
18355 * ira-build.c: Likewise.
18356 * ira-color.c: Likewise.
18357 * ira-conflicts.c: Likewise.
18358 * ira-costs.c: Likewise.
18359 * ira-int.h: Likewise.
18360 * ira-lives.c: Likewise.
18361 * ira.c: Likewise.
18362 * ira.h: Likewise.
18363 * loop-invariant.c: Likewise.
18364 * loop-unroll.c: Likewise.
18365 * lower-subreg.c: Likewise.
18366 * lra-assigns.c: Likewise.
18367 * lra-constraints.c: Likewise.
18368 * lra-eliminations.c: Likewise.
18369 * lra-lives.c: Likewise.
18370 * lra-remat.c: Likewise.
18371 * lra-spills.c: Likewise.
18372 * lra.c: Likewise.
18373 * lto-cgraph.c: Likewise.
18374 * lto-streamer-out.c: Likewise.
18375 * postreload-gcse.c: Likewise.
18376 * predict.c: Likewise.
18377 * profile-count.h: Likewise.
18378 * profile.c: Likewise.
18379 * recog.c: Likewise.
18380 * ree.c: Likewise.
18381 * reload.c: Likewise.
18382 * reload1.c: Likewise.
18383 * reorg.c: Likewise.
18384 * resource.c: Likewise.
18385 * rtl.def: Likewise.
18386 * rtl.h: Likewise.
18387 * rtlanal.c: Likewise.
18388 * sched-deps.c: Likewise.
18389 * sched-ebb.c: Likewise.
18390 * sched-rgn.c: Likewise.
18391 * sel-sched-ir.c: Likewise.
18392 * sel-sched.c: Likewise.
18393 * shrink-wrap.c: Likewise.
18394 * simplify-rtx.c: Likewise.
18395 * symtab.c: Likewise.
18396 * target.def: Likewise.
18397 * toplev.c: Likewise.
18398 * tree-call-cdce.c: Likewise.
18399 * tree-cfg.c: Likewise.
18400 * tree-complex.c: Likewise.
18401 * tree-core.h: Likewise.
18402 * tree-eh.c: Likewise.
18403 * tree-inline.c: Likewise.
18404 * tree-loop-distribution.c: Likewise.
18405 * tree-nrv.c: Likewise.
18406 * tree-profile.c: Likewise.
18407 * tree-sra.c: Likewise.
18408 * tree-ssa-alias.c: Likewise.
18409 * tree-ssa-dce.c: Likewise.
18410 * tree-ssa-dom.c: Likewise.
18411 * tree-ssa-forwprop.c: Likewise.
18412 * tree-ssa-loop-im.c: Likewise.
18413 * tree-ssa-loop-ivcanon.c: Likewise.
18414 * tree-ssa-loop-ivopts.c: Likewise.
18415 * tree-ssa-loop-niter.c: Likewise.
18416 * tree-ssa-phionlycprop.c: Likewise.
18417 * tree-ssa-phiopt.c: Likewise.
18418 * tree-ssa-propagate.c: Likewise.
18419 * tree-ssa-threadedge.c: Likewise.
18420 * tree-ssa-threadupdate.c: Likewise.
18421 * tree-ssa-uninit.c: Likewise.
18422 * tree-ssanames.c: Likewise.
18423 * tree-streamer-out.c: Likewise.
18424 * tree.c: Likewise.
18425 * tree.h: Likewise.
18426 * vr-values.c: Likewise.
18427
18428 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
18429
18430 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
18431 (ix86_split_xorsign): Ditto.
18432 * config/i386/i386.c (ix86_expand_xorsign): New function.
18433 (ix86_split_xorsign): Ditto.
18434 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
18435 (xorsign<mode>3): New expander.
18436 (xorsign<mode>3_1): New insn_and_split pattern.
18437 * config/i386/sse.md (xorsign<mode>3): New expander.
18438
18439 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18440
18441 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
18442 (*tablejump_sp64): Likewise.
18443 (*tablejump<P:mode>): ...this.
18444 (*call_address_sp32): Merge into...
18445 (*call_address_sp64): Likewise.
18446 (*call_address<P:mode>): ...this.
18447 (*call_symbolic_sp32): Merge into...
18448 (*call_symbolic_sp64): Likewise.
18449 (*call_symbolic<P:mode>): ...this.
18450 (call_value): Remove constraint and add predicate.
18451 (*call_value_address_sp32): Merge into...
18452 (*call_value_address_sp64): Likewise.
18453 (*call_value_address<P:mode>): ...this.
18454 (*call_value_symbolic_sp32): Merge into...
18455 (*call_value_symbolic_sp64): Likewise.
18456 (*call_value_symbolic<P:mode>): ...this.
18457 (*sibcall_symbolic_sp32): Merge into...
18458 (*sibcall_symbolic_sp64): Likewise.
18459 (*sibcall_symbolic<P:mode>): ...this.
18460 (sibcall_value): Remove constraint and add predicate.
18461 (*sibcall_value_symbolic_sp32): Merge into...
18462 (*sibcall_value_symbolic_sp64): Likewise.
18463 (*sibcall_value_symbolic<P:mode>): ...this.
18464 (window_save): Minor tweak.
18465 (*branch_sp32): Merge into...
18466 (*branch_sp64): Likewise.
18467 (*branch<P:mode>): ...this.
18468
18469 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18470 James Clarke <jrtc27@jrtc27.com>
18471
18472 PR target/84010
18473 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
18474 consistently in TLS address generation and adjust code to the renaming
18475 of patterns. Mark calls to __tls_get_addr as const.
18476 * config/sparc/sparc.md (tgd_hi22): Turn into...
18477 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
18478 (tgd_lo10): Turn into...
18479 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
18480 (tgd_add32): Merge into...
18481 (tgd_add64): Likewise.
18482 (tgd_add<P:mode>): ...this and use Pmode throughout.
18483 (tldm_hi22): Turn into...
18484 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
18485 (tldm_lo10): Turn into...
18486 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
18487 (tldm_add32): Merge into...
18488 (tldm_add64): Likewise.
18489 (tldm_add<P:mode>): ...this and use Pmode throughout.
18490 (tldm_call32): Merge into...
18491 (tldm_call64): Likewise.
18492 (tldm_call<P:mode>): ...this and use Pmode throughout.
18493 (tldo_hix22): Turn into...
18494 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
18495 (tldo_lox10): Turn into...
18496 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
18497 (tldo_add32): Merge into...
18498 (tldo_add64): Likewise.
18499 (tldo_add<P:mode>): ...this and use Pmode throughout.
18500 (tie_hi22): Turn into...
18501 (tie_hi22<P:mode>): ...this and use Pmode throughout.
18502 (tie_lo10): Turn into...
18503 (tie_lo10<P:mode>): ...this and use Pmode throughout.
18504 (tie_ld64): Use DImode throughout.
18505 (tie_add32): Merge into...
18506 (tie_add64): Likewise.
18507 (tie_add<P:mode>): ...this and use Pmode throughout.
18508 (tle_hix22_sp32): Merge into...
18509 (tle_hix22_sp64): Likewise.
18510 (tle_hix22<P:mode>): ...this and use Pmode throughout.
18511 (tle_lox22_sp32): Merge into...
18512 (tle_lox22_sp64): Likewise.
18513 (tle_lox22<P:mode>): ...this and use Pmode throughout.
18514 (*tldo_ldub_sp32): Merge into...
18515 (*tldo_ldub_sp64): Likewise.
18516 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
18517 (*tldo_ldub1_sp32): Merge into...
18518 (*tldo_ldub1_sp64): Likewise.
18519 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
18520 (*tldo_ldub2_sp32): Merge into...
18521 (*tldo_ldub2_sp64): Likewise.
18522 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
18523 (*tldo_ldsb1_sp32): Merge into...
18524 (*tldo_ldsb1_sp64): Likewise.
18525 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
18526 (*tldo_ldsb2_sp32): Merge into...
18527 (*tldo_ldsb2_sp64): Likewise.
18528 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
18529 (*tldo_ldub3_sp64): Use DImode throughout.
18530 (*tldo_ldsb3_sp64): Likewise.
18531 (*tldo_lduh_sp32): Merge into...
18532 (*tldo_lduh_sp64): Likewise.
18533 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
18534 (*tldo_lduh1_sp32): Merge into...
18535 (*tldo_lduh1_sp64): Likewise.
18536 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
18537 (*tldo_ldsh1_sp32): Merge into...
18538 (*tldo_ldsh1_sp64): Likewise.
18539 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
18540 (*tldo_lduh2_sp64): Use DImode throughout.
18541 (*tldo_ldsh2_sp64): Likewise.
18542 (*tldo_lduw_sp32): Merge into...
18543 (*tldo_lduw_sp64): Likewise.
18544 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
18545 (*tldo_lduw1_sp64): Use DImode throughout.
18546 (*tldo_ldsw1_sp64): Likewise.
18547 (*tldo_ldx_sp64): Likewise.
18548 (*tldo_stb_sp32): Merge into...
18549 (*tldo_stb_sp64): Likewise.
18550 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
18551 (*tldo_sth_sp32): Merge into...
18552 (*tldo_sth_sp64): Likewise.
18553 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
18554 (*tldo_stw_sp32): Merge into...
18555 (*tldo_stw_sp64): Likewise.
18556 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
18557 (*tldo_stx_sp64): Use DImode throughout.
18558
18559 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18560
18561 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
18562 check configure option to set BTI and Return Address Signing.
18563 * configure.ac: Add --enable-standard-branch-protection and
18564 --disable-standard-branch-protection.
18565 * configure: Regenerated.
18566 * doc/install.texi: Document the same.
18567
18568 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18569 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18570
18571 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
18572 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
18573 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
18574 if bti is enabled.
18575 * config/aarch64/aarch64-bti-insert.c: New file.
18576 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
18577 pass.
18578 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
18579 new bti pass.
18580 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
18581 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
18582 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
18583 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
18584
18585 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18586
18587 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
18588 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
18589 Disable bti for -mbranch-protection=none.
18590 (aarch64_handle_standard_branch_protection): Enable bti for
18591 -mbranch-protection=standard.
18592 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
18593 -mbranch-protection.
18594 (aarch64_bti_enabled): Check if bti is enabled.
18595 * config/aarch64/aarch64.opt: Declare target variable.
18596 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
18597
18598 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18599
18600 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
18601 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
18602 (aarch64_expand_epilogue): Likewise.
18603 (aarch64_output_mi_thunk): Likewise.
18604 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
18605 TAILCALL_ADDR_REGS to x16 and x17.
18606 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
18607
18608 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18609
18610 * config/aarch64/aarch64-option-extensions.def: Define
18611 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
18612 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
18613 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
18614 (AARCH64_FL_PREDRES): New.
18615 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
18616 AARCH64_FL_PREDRES by default.
18617 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
18618
18619 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18620
18621 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
18622 ARMv8.5-A.
18623 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
18624 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
18625 * doc/invoke.texi: Document ARMv8.5-A.
18626
18627 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18628
18629 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
18630 (xorsign<mode>3): Likewise.
18631
18632 2019-01-09 Jelinek <jakub@redhat.com>
18633
18634 PR middle-end/88758
18635 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
18636 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
18637
18638 PR rtl-optimization/88331
18639 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
18640 not currently_expanding_to_rtl.
18641
18642 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18643
18644 * doc/invoke.texi (-Os): Remove trailing spaces.
18645 (-finline-functions): Remove reference to -O2.
18646
18647 2019-01-08 Jakub Jelinek <jakub@redhat.com>
18648
18649 PR rtl-optimization/79593
18650 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
18651
18652 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
18653 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
18654
18655 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
18656
18657 PR bootstrap/88721
18658 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
18659 to -1 on entry.
18660
18661 PR debug/88723
18662 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
18663 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
18664
18665 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
18666
18667 PR target/88717
18668 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
18669 ix86_avx_u128_mode_entry.
18670
18671 2019-01-08 Martin Liska <mliska@suse.cz>
18672
18673 PR tree-optimization/88753
18674 * tree-switch-conversion.c (switch_conversion::build_one_array):
18675 Come up with local variable constructor. Convert first to
18676 type of constructor values.
18677
18678 2019-01-08 Richard Biener <rguenther@suse.de>
18679
18680 PR tree-optimization/86554
18681 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
18682 rpo_avail): Move earlier.
18683 (visit_nary_op): When value-numbering to expressions
18684 with different overflow behavior make sure there's an
18685 available expression on the path.
18686
18687 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
18688
18689 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
18690 aarch64_parse_branch_protection,
18691 struct aarch64_branch_protect_type,
18692 aarch64_handle_no_branch_protection,
18693 aarch64_handle_standard_branch_protection,
18694 aarch64_validate_mbranch_protection,
18695 aarch64_handle_pac_ret_protection,
18696 aarch64_handle_attr_branch_protection,
18697 accepted_branch_protection_string,
18698 aarch64_pac_ret_subtypes,
18699 aarch64_branch_protect_types,
18700 aarch64_handle_pac_ret_leaf): Define.
18701 (aarch64_override_options_after_change_1, aarch64_override_options):
18702 Add check for accepted_branch_protection_string.
18703 (aarch64_option_save): Save accepted_branch_protection_string.
18704 (aarch64_option_restore): Save accepted_branch_protection_string.
18705 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
18706 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
18707 msign-return-address.
18708 * doc/invoke.texi: Add mbranch-protection.
18709
18710 2019-01-08 Alan Modra <amodra@gmail.com>
18711
18712 PR target/88614
18713 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
18714 Delete "unknownp" parameter. Adjust callers. Handle
18715 CONST_INT, PLUS, MINUS, and MULT.
18716 (attr_value_aligned): Renamed from or_attr_value.
18717 (min_attr_value): Return INT_MIN for unhandled rtl case..
18718 (min_fn): ..and translate to INT_MAX here.
18719 (write_length_unit_log): Modify to cope without "unknown".
18720 (write_attr_value): Handle IF_THEN_ELSE.
18721
18722 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18723
18724 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
18725 optimization for masked stores.
18726
18727 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18728
18729 PR middle-end/88567
18730 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
18731 output vector directly to duplicate_and_interleave instead of
18732 going through a temporary. Postpone insertion of ctor_seq to
18733 the end of the loop.
18734
18735 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
18736
18737 PR target/86891
18738 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
18739 unsigned_p. Handle signed and unsigned overflow correction as
18740 required.
18741 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
18742 prototype.
18743 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
18744 for operand 2.
18745 (add<mode>3_compareV_imm): Make this callable for expanding.
18746 (subv<GPI:mode>4): Use register_operand for operand 1. Use
18747 aarch64_plus_operand for operand 2.
18748 (subv<GPI:mode>_insn): New insn pattern.
18749 (subv<GPI:mode>_imm): Likewise.
18750 (negv<GPI:mode>3): New expand pattern.
18751 (negv<GPI:mode>_insn): New insn pattern.
18752 (negv<GPI:mode>_cmp_only): Likewise.
18753 (cmpv<GPI:mode>_insn): Likewise.
18754 (subvti4): Use register_operand for operand 1. Update call to
18755 aarch64_expand_subvti.
18756 (usubvti4): Likewise.
18757 (negvti3): New expand pattern.
18758 (negdi_carryout): New insn pattern.
18759 (negvdi_carryinV): New insn pattern.
18760 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
18761 version the named version.
18762 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
18763 operands.
18764 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
18765 patterns.
18766 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
18767 patterns.
18768 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
18769 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
18770 (sub<mode>3_carryinCV): Delete.
18771 (sub<GPI:mode>3_carryinV): New expand pattern.
18772 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
18773
18774 2019-01-07 Richard Biener <rguenther@suse.de>
18775
18776 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
18777 of tree_operand_hash.
18778
18779 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18780
18781 PR tree-optimization/88598
18782 * tree.h (single_nonzero_element): Declare.
18783 * tree.c (single_nonzero_element): New function.
18784 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
18785 if I is the only nonzero element of CST.
18786
18787 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18788
18789 PR tree-optimization/88598
18790 * tree.h (initializer_each_zero_or_onep): Declare.
18791 * tree.c (initializer_each_zero_or_onep): New function.
18792 (signed_or_unsigned_type_for): Handle float types too.
18793 (unsigned_type_for, signed_type_for): Update comments accordingly.
18794 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
18795 x & { 0 or -1, 0 or -1, ... }.
18796
18797 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
18798
18799 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
18800 with x86_64-pc-linux-gnu.
18801
18802 2019-01-07 Tom de Vries <tdevries@suse.de>
18803
18804 PR target/85486
18805 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
18806 function.
18807 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
18808 routines.
18809
18810 2019-01-07 Jakub Jelinek <jakub@redhat.com>
18811
18812 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
18813 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
18814 TARGET_AVX512F as condition.
18815
18816 PR debug/88723
18817 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
18818 const_not_ok_for_debug_p target hook.
18819 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
18820 on UNSPEC and subexpressions thereof if all subexpressions of the
18821 UNSPEC are CONSTANT_P.
18822
18823 PR tree-optimization/88676
18824 * tree-ssa-phiopt.c (two_value_replacement): New function.
18825 (tree_ssa_phiopt_worker): Call it.
18826
18827 PR sanitizer/88619
18828 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
18829 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
18830
18831 PR c++/85052
18832 * tree-vect-generic.c: Include insn-config.h and recog.h.
18833 (expand_vector_piecewise): Add defaulted ret_type argument,
18834 if non-NULL, use that in preference to type for the result type.
18835 (expand_vector_parallel): Formatting fix.
18836 (do_vec_conversion, do_vec_narrowing_conversion,
18837 expand_vector_conversion): New functions.
18838 (expand_vector_operations_1): Call expand_vector_conversion
18839 for VEC_CONVERT ifn calls.
18840 * internal-fn.def (VEC_CONVERT): New internal function.
18841 * internal-fn.c (expand_VEC_CONVERT): New function.
18842 * fold-const-call.c (fold_const_vec_convert): New function.
18843 (fold_const_call): Use it for CFN_VEC_CONVERT.
18844 * doc/extend.texi (__builtin_convertvector): Document.
18845
18846 2019-01-07 Tom de Vries <tdevries@suse.de>
18847
18848 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
18849 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
18850 vector_red_partition, vector_red_sym): New global variables.
18851 (nvptx_option_override): Initialize vector_red_sym.
18852 (nvptx_declare_function_name): Restore red_partition register.
18853 (nvptx_file_end): Emit code to declare the vector reduction variables.
18854 (nvptx_output_red_partition): New function.
18855 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
18856 large vector reductions.
18857 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
18858 (nvptx_init_builtins): Add VECTOR_ADDR.
18859 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
18860 Handle nvptx_expand_shared_addr.
18861 (nvptx_get_shared_red_addr): Add vector argument and handle large
18862 vectors.
18863 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
18864 large vectors.
18865 (nvptx_goacc_reduction_init): Likewise.
18866 (nvptx_goacc_reduction_fini): Likewise.
18867 (nvptx_goacc_reduction_teardown): Likewise.
18868 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
18869 init,fini,teardown}.
18870 (nvptx_init_axis_predicate): Initialize vector_red_partition.
18871 (nvptx_set_current_function): Init vector_red_partition.
18872 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
18873 (nvptx_red_partition): New insn.
18874 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
18875
18876 2019-01-07 Tom de Vries <tdevries@suse.de>
18877
18878 PR target/85381
18879 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
18880 empty loops.
18881
18882 2019-01-07 Tom de Vries <tdevries@suse.de>
18883
18884 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
18885 (nvptx_option_override): Init oacc_bcast_partition.
18886 (nvptx_init_oacc_workers): New function.
18887 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
18888 (nvptx_needs_shared_bcast): New function.
18889 (nvptx_find_par): Generalize to enable vectors to use shared-memory
18890 to propagate state.
18891 (nvptx_shared_propagate): Initialize vector bcast partition and
18892 synchronization state.
18893 (nvptx_single): Generalize to enable vectors to use shared-memory
18894 to propagate state.
18895 (nvptx_process_pars): Likewise.
18896 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
18897 * config/nvptx/nvptx.h (struct machine_function): Add
18898 bcast_partition and sync_bar members.
18899
18900 2019-01-07 Tom de Vries <tdevries@suse.de>
18901
18902 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
18903 (nvptx_apply_dim_limits): New function.
18904 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
18905 PTX_WARP_SIZE.
18906
18907 2019-01-07 Tom de Vries <tdevries@suse.de>
18908
18909 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
18910 as late as possible.
18911
18912 2019-01-07 Tom de Vries <tdevries@suse.de>
18913
18914 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
18915 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
18916 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
18917 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
18918 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
18919
18920 2019-01-07 Tom de Vries <tdevries@suse.de>
18921
18922 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
18923
18924 2019-01-07 Tom de Vries <tdevries@suse.de>
18925
18926 * omp-offload.c (oacc_get_min_dim): New function.
18927 * omp-offload.h (oacc_get_min_dim): Declare.
18928
18929 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
18930
18931 PR target/88521
18932 * config/i386/i386.c (function_value_ms_64): Return small sturct in
18933 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
18934
18935 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18936
18937 PR tree-opt/86020
18938 Revert:
18939 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
18940
18941 * ipa-inline.c (edge_badness): Use inlined_time instead of
18942 inline_summaries->get.
18943
18944 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18945
18946 * opts.c (enable_fdo_optimizations): Enable
18947 version-loops-for-strides, loop-interchange, unrol-and-jam
18948 and tree-loop-distribution.
18949 * invoke.texi: Document newly enabled options.
18950
18951 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18952
18953 * doc/invoke.texi (max-inline-insns-small): New parameters.
18954 * ipa-inline.c (want_early_inline_function_p): simplify.
18955 (want_inline_small_function_p): Fix pasto from previous patch;
18956 use max-inline-insns-small bound.
18957 * params.def (max-inline-insns-small): New param.
18958 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
18959 variables correctly.
18960
18961 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18962
18963 * doc/invoke.texi: Document max-inline-insns-size,
18964 uninlined-function-insns, uninlined-function-time,
18965 uninlined-thunk-insns and uninlined-thunk-time.
18966 * params.def: Add max-inline-insns-size,
18967 uninlined-function-insns, uninlined-function-time,
18968 uninlined-thunk-insns and uninlined-thunk-time.
18969 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
18970 new parameters.
18971 * ipa-inline.c (can_inline_edge_by_limits_p,
18972 want_inline_small_function_p): Use new parameters.
18973
18974 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18975
18976 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
18977
18978 2019-01-05 Jakub Jelinek <jakub@redhat.com>
18979
18980 PR middle-end/82564
18981 PR target/88620
18982 * expr.c (expand_assignment): For calls returning VLA structures
18983 if to_rtx is not a MEM, force it into a stack temporary.
18984
18985 PR debug/88635
18986 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
18987 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
18988 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
18989 subexpressions of both operands.
18990 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
18991 subrtxes are CONSTANT_P.
18992 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
18993 2018-11-09 changes.
18994
18995 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
18996
18997 * params.def (hot-bb-count-ws-permille): Set to 990.
18998
18999 2019-01-04 Martin Sebor <msebor@redhat.com>
19000
19001 PR c/88546
19002 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
19003 leaf.
19004
19005 2019-01-04 Martin Sebor <msebor@redhat.com>
19006
19007 PR c/88363
19008 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
19009
19010 2019-01-04 Jakub Jelinek <jakub@redhat.com>
19011
19012 * gdbinit.in: Turn off pagination for the skip commands, restore
19013 it to previous state afterwards.
19014
19015 2019-01-04 Jakub Jelinek <jakub@redhat.com>
19016
19017 PR target/88594
19018 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
19019 of GET_MODE (opN) as modes of the libcall arguments.
19020
19021 2019-01-04 Jan Beulich <jbeulich@suse.com>
19022
19023 * config/i386/sse.md
19024 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
19025 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
19026 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
19027 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
19028 avx512f_vmcmp<mode>3<round_saeonly_name>,
19029 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
19030 avx512f_maskcmp<mode>3,
19031 <avx512>_cvt<ssemodesuffix>2mask<mode>,
19032 <avx512>_cvt<ssemodesuffix>2mask<mode>,
19033 *<avx512>_cvtmask2<ssemodesuffix><mode>,
19034 *<avx512>_cvtmask2<ssemodesuffix><mode>,
19035 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
19036 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
19037 <avx512>_gt<mode>3<mask_scalar_merge_name>,
19038 <avx512>_gt<mode>3<mask_scalar_merge_name>,
19039 <avx512>_testm<mode>3<mask_scalar_merge_name>,
19040 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
19041 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
19042 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
19043 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
19044 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
19045 avx512cd_maskb_vec_dup<mode>,
19046 avx512cd_maskw_vec_dup<mode>,
19047 avx512dq_fpclass<mode><mask_scalar_merge_name>,
19048 avx512dq_vmfpclass<mode>,
19049 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
19050 instead of =Yk.
19051
19052 2019-01-03 Martin Sebor <msebor@redhat.com>
19053
19054 PR tree-optimization/88659
19055 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
19056
19057 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19058
19059 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
19060 unaligned vsx and avoid lxvd2x/stxvd2x.
19061 (gen_lvx_v4si_move): New function.
19062
19063 2019-01-03 Tom de Vries <tdevries@suse.de>
19064
19065 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
19066 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
19067 function.
19068 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
19069
19070 2019-01-03 Tom de Vries <tdevries@suse.de>
19071
19072 * config/nvptx/nvptx.c (struct offload_attrs): New.
19073 (populate_offload_attrs): New function. Factor mask extraction out of
19074 nvptx_reorg. Add extraction of dimensions.
19075 (nvptx_reorg): Use populate_offload_attrs.
19076
19077 2019-01-03 Tom de Vries <tdevries@suse.de>
19078
19079 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
19080 cases for oacc_min_dims_p and routine_p. Add asserts for
19081 oacc_default_dims_p and offload_region_p.
19082
19083 2019-01-03 Tom de Vries <tdevries@suse.de>
19084
19085 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
19086 factored out of ...
19087 (nvptx_goacc_validate_dims): ... here.
19088
19089 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19090
19091 PR tree-optimization/85574
19092 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
19093 structure.
19094 (struct ssa_equip_hash_traits): Declare.
19095 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
19096
19097 2019-01-03 Jakub Jelinek <jakub@redhat.com>
19098
19099 PR debug/88644
19100 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
19101 change it to qualified_type.
19102
19103 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19104
19105 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
19106 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
19107
19108 2019-01-02 Martin Sebor <msebor@redhat.com>
19109 Jeff Law <law@redhat.com>
19110
19111 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
19112 (get_range_strlen_tree): Update appropriately.
19113 (get_range_strlen)
19114 * gimple-fold.h (get_range_strlen): Drop unused last argument.
19115
19116 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
19117 rather than set_range_info.
19118 * tree-ssa-strlen.c (set_strlen_range): Extracted from
19119 maybe_set_strlen_range. Handle potentially boundary crossing
19120 cases more conservatively.
19121 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
19122 Call set_strlen_range.
19123 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
19124
19125 PR middle-end/88663
19126 * gimple-fold.c (get_range_strlen): Update prototype to no longer
19127 need the flexp argument.
19128 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
19129 from calls to get_range_strlen. Update comments. Just update
19130 VAL for an unterminated const char array and let the reset of the
19131 code handle it normally. No longer try to set *flexp. Adjust
19132 return value.
19133 (get_range_strlen): Update for the new get_range_strlen API.
19134 (get_maxval_strlen): Similarly.
19135 (gimple_fold_builtin_strlen): Handle update meaning of return value
19136 from get_range_strlen.
19137 * gimple-ssa-sprintf.c (get_string_length): Update for the new
19138 get_range_strlen API.
19139
19140 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
19141
19142 PR lto/88130
19143 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
19144 false at WPA time when body was removed.
19145
19146 2019-01-02 Martin Liska <mliska@suse.cz>
19147
19148 PR tree-optimization/88650
19149 * predict.c (set_even_probabilities): Calculate probability
19150 remainer only when really used.
19151
19152 2019-01-02 Richard Biener <rguenther@suse.de>
19153
19154 PR middle-end/88651
19155 * tree-data-ref.c (analyze_subscript_affine_affine): Use
19156 widest_ints when mangling max_stmt_execution results.
19157
19158 2019-01-02 Richard Biener <rguenther@suse.de>
19159
19160 PR tree-optimization/88621
19161 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
19162 bitfields when canoncalizing.
19163
19164 2019-01-02 Richard Biener <rguenther@suse.de>
19165
19166 PR target/87545
19167 * config/i386/x86-tune-costs.h (intel_cost): Adjust
19168 cost of cheap SSE instruction.
19169
19170 2019-01-02 Richard Biener <rguenther@suse.de>
19171
19172 PR ipa/85574
19173 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
19174 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
19175 function.
19176 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
19177 set after UIDs before splitting them.
19178
19179 2019-01-01 Martin Sebor <msebor@redhat.com>
19180 Jeff Law <law@redhat.com>
19181
19182 * gimple-fold.c (get_range_strlen_tree): Record if the computed
19183 length is optimistic. If it is, then arrange to compute the
19184 conservative length as well.
19185
19186 * gimple-fold.h (get_range_strlen): Update prototype.
19187 * builtins.c (check_access): Update call to get_range_strlen to use
19188 c_strlen_data pointer. Change various variable accesses to instead
19189 pull data from the c_strlen_data structure.
19190 (check_strncat_sizes, expand_builtin_strncat): Likewise.
19191 * calls.c (maybe_warn_nonstring_arg): Likewise.
19192 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
19193 minimum length if maximum lengh is unknown.
19194 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
19195 that used c_strlen, it's no longer needed. Restructure slightly.
19196 (format_string): Set unlikely range appropriately.
19197 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
19198 formatting issues.
19199 (get_range_strlen): Accept c_strlen_data pointer for external
19200 call sites as well. Pass through to call to internal get_range_strlen.
19201 Adjust minlen, maxlen and maxbound as needed.
19202 (get_maxval_strlen): Update comments.
19203 (gimple_fold_builtin_strlen): Update call to get_range_strlen
19204 to use c_strlen_data pointer. Change variable accesses to instead
19205 use c_strlen_data data members.
19206
19207 * gimple-fold.c (get_range_strlen): Update prototype.
19208 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
19209 local variables. Use pdata to return information to caller.
19210 Update calls to get_range_strlen. Update pdata->maxbound.
19211 (get_range_strlen -- static version): Similarly.
19212 (get_range_strlen -- extern version): Update for internal
19213 get_range_strlen API change. Convert to external data format.
19214 (get_maxval_strlen): Similarly.
19215
19216 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
19217
19218 * coverage.c (get_coverage_counts): Use current_function_decl.
19219 * profile.c (read_thunk_profile): New function.
19220 (branch_prob): Add THUNK parameter.
19221 * tree-profile.c (tree_profiling): Handle thunks.
19222 * value-prof.c (init_node_map): Handle thunks.
19223 * value-prof.h (branch_prob): Upate prototype.
19224 (read_thunk_profile): Declare.
19225
19226 2019-01-01 Jakub Jelinek <jakub@redhat.com>
19227
19228 Update copyright years.
19229
19230 * gcc.c (process_command): Update copyright notice dates.
19231 * gcov-dump.c (print_version): Ditto.
19232 * gcov.c (print_version): Ditto.
19233 * gcov-tool.c (print_version): Ditto.
19234 * gengtype.c (create_file): Ditto.
19235 * doc/cpp.texi: Bump @copying's copyright year.
19236 * doc/cppinternals.texi: Ditto.
19237 * doc/gcc.texi: Ditto.
19238 * doc/gccint.texi: Ditto.
19239 * doc/gcov.texi: Ditto.
19240 * doc/install.texi: Ditto.
19241 * doc/invoke.texi: Ditto.
19242 \f
19243 Copyright (C) 2019 Free Software Foundation, Inc.
19244
19245 Copying and distribution of this file, with or without modification,
19246 are permitted in any medium without royalty provided the copyright
19247 notice and this notice are preserved.