]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[AArch64] Use "x" predication for SVE integer arithmetic patterns
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2
3 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
4 * config/aarch64/aarch64-sve.md: Add a section describing it.
5 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
6 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
9 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
10 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
11 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
12 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
14 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
18 (aarch64_evpc_rev_local): Update accordingly.
19
20 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
21
22 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
23 iterators.
24 (SVE_BHSI, SVE_SDI): Tweak comment.
25 (SVE_HSDI): Likewise. Fix definition.
26 (SVE_SDF): New mode iterator.
27 (elem_bits): New mode attribute.
28 (SVE_COND_FCVT): New int iterator.
29 * config/aarch64/aarch64-sve.md
30 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
31 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
32 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
33 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
34 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
35 ...these new patterns.
36 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
37 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
38 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
39 Merge into...
40 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
41 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
42 ...these new patterns.
43 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
44 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
45 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
46 ...this new pattern.
47 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
48 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
49 ...this new pattern.
50 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
51
52 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
53
54 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
55 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
56 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
57 unspecs.
58 (optab, su): Handle them.
59 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
60 * config/aarch64/aarch64-sve.md
61 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
62 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
63 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
64 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
65 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
66 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
67 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
68 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
69 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
70 FIXUORS.
71 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
72 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
73 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
74 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
75 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
76 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
77 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
78 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
79 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
80 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
81 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
82 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
83 of UNSPEC_FLOAT_CONVERT.
84 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
85 aarch64_sve_extend<mode><Vwide>2.
86
87 2019-08-14 Richard Biener <rguenther@suse.de>
88
89 PR target/91154
90 * config/i386/i386-features.c
91 (dimode_scalar_chain::compute_convert_gain): Compute and dump
92 individual instruction gain. Fix reg-reg copy GRP cost. Use
93 ix86_cost->sse_op for vector instruction costs.
94
95 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
96
97 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
98 (cmp_op): Handle it.
99 (SVE_COND_FP_CMP): Rename to...
100 (SVE_COND_FP_CMP_I0): ...this.
101 (SVE_FP_CMP): Remove.
102 * config/aarch64/aarch64-sve.md
103 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
104 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
105 using unspecs to represent the comparison.
106 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
107 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
108 accordingly.
109 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
110 (aarch64_unspec_cond_code): Move after integer code. Handle
111 UNORDERED.
112 (aarch64_emit_sve_predicated_cond): Replace with...
113 (aarch64_emit_sve_fp_cond): ...this new function.
114 (aarch64_emit_sve_or_conds): Replace with...
115 (aarch64_emit_sve_or_fp_conds): ...this new function.
116 (aarch64_emit_sve_inverted_cond): Replace with...
117 (aarch64_emit_sve_invert_fp_cond): ...this new function.
118 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
119
120 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
121
122 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
123 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
124 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
125 SVE_HSD instead of SVE_SD.
126
127 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
128 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
129
130 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
131 iterator.
132 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
133 attributes.
134 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
135 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
136 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
137 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
138 (*div<SVE_F:mode>3): Generalize to...
139 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
140
141 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
142 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
143
144 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
145 constants.
146 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
147 predicate.
148 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
149 Declare.
150 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
151 function.
152 * config/aarch64/aarch64-sve.md: Add a block comment about the
153 handling of predicated FP operations.
154 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
155 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
156 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
157 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
158 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
159 operand.
160 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
161 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
162 operand.
163 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
164 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
165 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
166 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
167 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
168 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
169 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
170 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
171 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
172 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
173 strictness operands. Use aarch64_sve_pred_dominates_p to check
174 whether the predicate on the conditional operation is suitable
175 for merging. Split patterns into the canonical equal-predicate form.
176 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
177 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
178
179 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
180 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
181
182 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
183 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
184 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
185 rtx codes.
186 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
187 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
188 unspecs.
189
190 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
191 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
192
193 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
194 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
195 actually has, rather than relying on REG_EQUAL notes.
196 Make the insn operand order match the SVE operand order.
197 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
198 the SVE operand order.
199
200 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
201
202 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
203 (aarch64_emit_set_immediate): Likewise.
204 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
205 (aarch64_pfalse_reg): Likewise.
206 (aarch64_convert_sve_data_to_pred): New function.
207 (aarch64_sve_move_pred_via_while): Take an optional target register
208 and the required register mode.
209 (aarch64_expand_sve_const_pred_1): New function.
210 (aarch64_expand_sve_const_pred): Likewise.
211 (aarch64_expand_mov_immediate): Build an all-true predicate
212 if the significant bits of the immediate are all true. Use
213 aarch64_expand_sve_const_pred for all compile-time predicate constants.
214 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
215 before register allocation.
216 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
217 a VNx16BI PTRUE when splitting the memory alternative.
218 (vec_duplicate<mode>): Update accordingly.
219 (*pred_cmp<cmp_op><mode>): Rename to...
220 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
221
222 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
223
224 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
225 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
226 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
227 (UNSPEC_PTEST): New unspec.
228 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
229 * config/aarch64/iterators.md (data_bytes): New mode attribute.
230 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
231 * config/aarch64/aarch64-sve.md: Add a new section describing the
232 handling of UNSPEC_PTEST.
233 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
234 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
235 (ptest_ptrue<mode>): Replace with...
236 (aarch64_ptest<mode>): ...this new pattern.
237 (cbranch<mode>4): Update after above changes.
238 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
239 UNSPEC_PTEST_PTRUE.
240 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
241 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
242 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
243
244 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
245
246 PR lto/91287
247 * builtins.c (builtin_with_linkage_p): New function.
248 * builtins.h (builtin_with_linkage_p): New function.
249 * symtab.c (write_symbol): Remove redundant assert.
250 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
251 Remove FIXME and use builtin_with_linkage_p.
252
253 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
254
255 PR middle-end/91421
256 * tree-core.h (function_decl::function_code): Change type to
257 unsigned int.
258 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
259 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
260 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
261 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
262 is BUILT_IN_NORMAL.
263 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
264 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
265 (fndecl_built_in_p): Change the type of the "name" argument to
266 unsigned int.
267 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
268 after check for DECL_BUILT_IN_CLASS.
269 * cgraphclones.c (build_function_decl_skip_args): Use
270 set_decl_built_in_function.
271 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
272 * ipa-split.c (split_function): Likewise.
273 * langhooks.c (add_builtin_function_common): Likewise.
274 * omp-simd-clone.c (simd_clone_create): Likewise.
275 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
276 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
277 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
278 DECL_FUNCTION_CODE.
279 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
280 instead of DECL_FUNCTION_CODE.
281 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
282 instead of DECL_FUNCTION_CODE.
283 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
284 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
285 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
286 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
287 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
288 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
289 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
290 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
291 (alpha_gimple_fold_builtin): Likewise.
292 * config/arc/arc.c (arc_expand_builtin): Likewise.
293 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
294 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
295 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
296 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
297 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
298 * config/frv/frv.c (frv_expand_builtin): Likewise.
299 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
300 (gcn_expand_builtin): Likewise.
301 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
302 (fold_builtin_cpu): Likewise.
303 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
304 * config/i386/i386.c (ix86_fold_builtin): Likewise.
305 (ix86_gimple_fold_builtin): Likewise.
306 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
307 (ia64_expand_builtin): Likewise.
308 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
309 * config/mips/mips.c (mips_expand_builtin): Likewise.
310 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
311 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
312 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
313 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
314 * config/pa/pa.c (pa_expand_builtin): Likewise.
315 * config/pru/pru.c (pru_expand_builtin): Likewise.
316 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
317 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
318 Likewise.
319 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
320 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
321 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
322 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
323 (rs6000_builtin_reciprocal): Likewise.
324 * config/rx/rx.c (rx_expand_builtin): Likewise.
325 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
326 * config/s390/s390.c (s390_expand_builtin): Likewise.
327 * config/sh/sh.c (sh_expand_builtin): Likewise.
328 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
329 (sparc_fold_builtin): Likewise.
330 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
331 * config/spu/spu.c (spu_expand_builtin): Likewise.
332 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
333 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
334 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
335 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
336 (xtensa_expand_builtin): Likewise.
337
338 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
339
340 PR middle-end/91421
341 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
342 before the DECL_FUNCTION_CODE.
343 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
344 to check for a BUILT_IN_ALLOCA call.
345 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
346 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
347 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
348 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
349 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
350 for BUILT_IN_NORMAL functions.
351 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
352 test for BUILT_IN_TM_ABORT.
353 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
354 to check for a BUILT_IN_STACK_RESTORE call.
355 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
356 * tree-ssa-threadedge.c
357 (record_temporary_equivalences_from_stmts_at_dest): Check for a
358 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
359 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
360 test for a BUILT_IN_NORMAL call instead of a negative test for
361 an internal function call.
362
363 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
364
365 * tree.h (build_vector_a_then_b): Declare.
366 * tree.c (build_vector_a_then_b): New function.
367 * fold-const-call.c (fold_while_ult): Likewise.
368 (fold_const_call): Use it to handle IFN_WHILE_ULT.
369 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
370 (aarch64_svpattern): New enum.
371 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
372 constants through aarch64_expand_mov_immediate.
373 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
374 than general_operand as the predicate for operand 1.
375 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
376 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
377 insn_type.
378 (simd_immediate_info::simd_immediate_info): New overload that
379 takes a scalar_int_mode and an svpattern.
380 (simd_immediate_info::u): Add a "pattern" field.
381 (svpattern_token): New function.
382 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
383 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
384 (aarch64_sve_move_pred_via_while): New functions.
385 (aarch64_expand_mov_immediate): Try using
386 aarch64_sve_move_pred_via_while for predicates that contain N ones
387 followed by M zeros but that do not correspond to a VLnnn pattern.
388 (aarch64_sve_pred_valid_immediate): New function.
389 (aarch64_simd_valid_immediate): Use it instead of dealing directly
390 with PTRUE and PFALSE.
391 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
392 forms.
393
394 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
395
396 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
397 flag.
398 (darwin_override_options): Likewise.
399 * config/darwin.h: Likewise.
400 * config/darwin.opt: Likewise.
401 * config/i386/i386.c (output_pic_addr_const): Likewise.
402 * config/rs6000/darwin.h: Likewise.
403 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
404 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
405 ... this TARGET_MACHO_SYMBOL_STUBS.
406 (FUNCTION_PROFILER):Likewise.
407 * config/i386/i386.h: Likewise.
408
409 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
410
411 * config/i386/i386.md (ix86_expand_vector_extract) <case E_V2SImode>:
412 Use vec_extr path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
413 <case E_V8QImode>: Ditto.
414 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
415 Use SWI48 mode iterator. Use %k to output operand 0.
416 (*mmx_pextrw): New insn pattern.
417 (*mmx_pextrb): Ditto.
418 (*mmx_pextrb_zext): Ditto.
419
420 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
421
422 * target.def (libc_has_function, libc_has_fast_function): Improve
423 documentation strings.
424 * doc/tm.texi: Regenerate.
425
426 2019-08-13 Caroline Tice <cmtice@google.com>
427
428 PR other/91396
429 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
430 vtv_end.o or vtv_end_preinit.o files if !static.
431
432 2019-08-13 Olivier Hainque <hainque@adacore.com>
433
434 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
435
436 2019-08-13 Olivier Hainque <hainque@adacore.com>
437
438 * rtlanal.c (tablejump_casesi_pattern): New function, to
439 determine if a tablejump insn is a casesi dispatcher. Extracted
440 from patch_jump_insn.
441 * rtl.h (tablejump_casesi_pattern): Declare.
442 * cfgrtl.c (patch_jump_insn): Use it.
443 * dwarf2cfi.c (create_trace_edges): Use it.
444
445 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
446
447 PR target/81800
448 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
449 operand is larger than a long int.
450
451 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
452
453 * machmode.h (opt_mode::else_mode): New function.
454 (opt_mode::else_blk): Use it.
455 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
456 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
457 (aarch64_gen_stepped_int_parallel): Likewise.
458 (aarch64_stepped_int_parallel_p): Likewise.
459 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
460 argument.
461 * config/aarch64/aarch64.c
462 (aarch64_expand_sve_widened_duplicate): Delete.
463 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
464 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
465 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
466 argument. Use early returns in the !CONST_INT_P handling.
467 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
468 than handling some inline.
469 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
470 from...
471 (aarch64_simd_container_mode): ...here.
472 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
473 (aarch64_sve_ld1rq_operand_p): New functions.
474 * config/aarch64/predicates.md (descending_int_parallel)
475 (aarch64_sve_ld1rq_operand): New predicates.
476 * config/aarch64/constraints.md (UtQ): New constraint.
477 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
478 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
479 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
480 (@aarch64_sve_reinterpret<mode>): New expander.
481 (*aarch64_sve_reinterpret<mode>): New pattern.
482 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
483 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
484 (*sve_ld1rq<Vesize>): Replace with...
485 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
486
487 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
488
489 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
490 16:12.
491
492 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
493
494 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
495 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
496 (msp430_check_path_for_devices): New.
497 (parse_devices_csv_1): New.
498 (parse_devices_csv): New.
499 (msp430_extract_mcu_data): Try to find devices.csv and search for the
500 MCU data in devices.csv before using the hard-coded data.
501 Warn if devices.csv isn't found and the MCU wasn't found in the
502 hard-coded data either.
503 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
504 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
505 Search for devices.csv on -I and -L paths.
506 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
507 msp430_set_driver_var.
508 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
509 -mdevices-csv-loc=.
510 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
511 searched for devices.csv.
512 (mwarn-devices-csv): Document option.
513
514 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
515
516 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
517 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
518 Use a single Dn alternative instead of separate Dz and Dm
519 alternatives. Use aarch64_output_sve_move_immediate.
520 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
521 function.
522 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
523 for predicates too.
524 (aarch64_output_sve_mov_immediate): Handle predicate modes.
525 (aarch64_output_ptrue): Delete.
526
527 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
528
529 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
530 INDEX.
531 (simd_immediate_info::value, simd_immediate_info::step)
532 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
533 with...
534 (simd_immediate_info::u): ...this new union.
535 (simd_immediate_info::simd_immediate_info): Update accordingly.
536 (aarch64_output_simd_mov_immediate): Likewise.
537 (aarch64_output_sve_mov_immediate): Likewise.
538
539 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
540
541 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
542 extra_gcc_objs.
543 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
544 (msp430_select_cpu): New spec function.
545 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
546 MCU data.
547 * config/msp430/msp430-devices.c: New file.
548 * config/msp430/msp430-devices.h: New file.
549 * config/msp430/msp430.c: Remove msp430_mcu_data.
550 (msp430_option_override): Use msp430_extract_mcu_data to extract
551 MCU data.
552 (msp430_use_f5_series_hwmult): Likewise.
553 (use_32bit_hwmult): Likewise.
554 (msp430_no_hwmult): Likewise.
555 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
556 assembler.
557 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
558 and -mcpu option.
559 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
560 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
561 Remove hard-coded MCU multilib data.
562
563 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
564
565 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
566 based on the mode instead of testing properties of it.
567
568 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
569
570 * doc/md.texi: Document the x and y constraints for AArch64.
571 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
572 (FP_LO8_REGS): New reg_class.
573 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
574 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
575 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
576 * config/aarch64/predicates.md (aarch64_simd_register): Use
577 FP_REGNUM_P instead of checking the classes manually.
578 * config/aarch64/constraints.md (y): New constraint.
579
580 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
581
582 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
583 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
584 * config/aarch64/aarch64-simd.md
585 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
586 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
587 from the asm template.
588 * config/aarch64/aarch64-sve.md
589 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
590 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
591 from the asm template.
592 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
593 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
594 from the asm template.
595 * config/aarch64/aarch64-simd-builtins.def: Update comment.
596
597 2019-08-13 Martin Liska <mliska@suse.cz>
598
599 * value-prof.c (gimple_ic_transform): Add new line.
600 Print details with MSG_NOTE.
601
602 2019-08-13 Martin Liska <mliska@suse.cz>
603
604 * doc/invoke.texi: Document automatic detection of jobserver.
605 * lto-wrapper.c (run_gcc): Detect jobserver always.
606
607 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
608
609 * config/i386/i386.md (ix86_expand_vector_set) <case E_V2SImode>:
610 Use vec_merge path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
611 <case E_V8QImode>: Ditto.
612 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
613 (*mmx_pinsrb): Ditto.
614
615 2019-08-12 Jakub Jelinek <jakub@redhat.com>
616
617 PR target/83250
618 PR target/91340
619 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
620 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
621 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
622 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
623 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
624
625 2019-08-12 Richard Biener <rguenther@suse.de>
626
627 PR lto/91375
628 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
629 flag_devirtualize.
630
631 2019-08-12 Richard Biener <rguenther@suse.de>
632
633 PR driver/91130
634 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
635 lang_mask option, always use CL_DRIVER.
636 (get_options_from_collect_gcc_options): Adjust.
637 (find_and_merge_options): Likewise.
638 (run_gcc): Likewise.
639
640 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
641
642 * ipa-predicate.c (add_condition): Restore inverted test.
643
644 2019-08-10 Jakub Jelinek <jakub@redhat.com>
645
646 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
647 (enum omp_clause_device_type_kind): New enum.
648 (struct tree_omp_clause): Add subcode.device_type_kind.
649 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
650 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
651 for device_type clause.
652 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
653 * tree-pretty-print.c (dump_omp_clause): Likewise.
654
655 PR target/91408
656 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
657 vector_operand.
658
659 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
660
661 * reload1.c (finish_spills): Do not check ira_conflicts_p when
662 handling spilled pseudos.
663
664 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
665
666 PR target/91386
667 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
668 to preserve the contents of the original insns.
669
670 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
671
672 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
673 (addsi3_compare_op2): Likewise.
674
675 2019-08-09 Martin Liska <mliska@suse.cz>
676
677 * alias.c (alias_ptr_types_compatible_p): Strengten
678 type comparison in LTO mode.
679
680 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
681
682 PR middle-end/90313
683 * tree-tailcall.c (find_tail_calls): Reject calls that might
684 read from an escaped RESULT_DECL.
685
686 2019-08-09 Martin Liska <mliska@suse.cz>
687
688 * doc/invoke.texi: Document the option value.
689 * lto-wrapper.c (run_gcc): Set auto_parallel
690 only with -flto=auto.
691
692 2019-08-09 Martin Liska <mliska@suse.cz>
693
694 * opts.c (common_handle_option): Error for an invalid argument
695 to -flto=.
696
697 2019-08-09 Martin Liska <mliska@suse.cz>
698
699 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
700 use dump_printf to report optimization.
701 (sem_variable::merge): Likwise.
702 (sem_item_optimizer::merge_classes): Use dump_printf to report
703 ICF hits.
704
705 2019-08-09 Martin Liska <mliska@suse.cz>
706
707 * value-prof.c (gimple_divmod_fixed_value_transform):
708 Use dump_printf_loc.
709 (gimple_mod_pow2_value_transform): Likewise.
710 (gimple_mod_subtract_transform): Likewise.
711 (init_node_map): Likewise.
712 (gimple_ic_transform): Likewise.
713 (gimple_stringops_transform): Likewise.
714
715 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
716
717 * doc/extend.texi: Add const qualifier to ld intrinsics.
718
719 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
720
721 * config/rs6000/dfp.md (D64_D128): Rename to ...
722 (DDTD): ... this, throughout.
723 (dfp_suffix): Rename to ...
724 (q): ... this, throughout.
725
726 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
727
728 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
729 (dfp_suffix): Ditto.
730 (adddd3, addtd3): Merge to ...
731 (add<mode>3 for D64_D128): ... this.
732 (subdd3, subtd3): Merge to ...
733 (sub<mode>3 for D64_D128): ... this.
734 (muldd3, multd3): Merge to ...
735 (mul<mode>3 for D64_D128): ... this.
736 (divdd3, divtd3): Merge to ...
737 (div<mode>3 for D64_D128): ... this.
738 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
739 (*cmp<mode>_internal1 for D64_D128): ... this.
740 (ftruncdd2, ftrunctd2): Merge to ...
741 (ftrunc<mode>2 for D64_D128): ... this.
742 (fixdddi2, fixtddi2): Merge to ...
743 (fix<mode>di2 for D64_D128): ... this.
744
745 2019-08-08 Jim Wilson <jimw@sifive.com>
746
747 PR target/91229
748 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
749 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
750 Pass into recursive call.
751 (riscv_flatten_aggregate_argument): New arg. Pass to
752 riscv_flatten_aggregate_field.
753 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
754 riscv_flatten_aggregate_argument twice, with false and true as last
755 arg. Process result twice. Compare results and warn if different.
756 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
757
758 2019-08-08 Martin Liska <mliska@suse.cz>
759
760 PR bootstrap/91352
761 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
762 * lto-wrapper.c (jobserver_active_p): Likewise.
763
764 2019-08-08 Martin Liska <mliska@suse.cz>
765
766 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
767 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
768 (create_version_clone_with_body): Likewise.
769
770 2019-08-08 Jakub Jelinek <jakub@redhat.com>
771
772 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
773 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
774 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
775 GOVD_EXPLICIT flags.
776 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
777 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
778 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
779 call install_var_field with mask 11 instead of 3.
780 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
781 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
782
783 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
784
785 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
786 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
787
788 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
789
790 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
791 MOVPRFX alternatives. Make the GPR alternatives more expensive
792 than the FPR ones.
793
794 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
795
796 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
797 Disparage the GPR alternative relative to the FPR one.
798 Fix handling of 8-bit and 16-bit FPR values.
799
800 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
801
802 * config/aarch64/iterators.md (BITWISEV): Delete.
803 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
804 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
805 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
806 UNSPEC_FMINNMV, UNSPEC_FMINV.
807 (bit_reduc_op): Delete.
808 (sve_int_op): New int attribute.
809 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
810 UNSPEC_FMINNMV, UNSPEC_FMINV.
811 * config/aarch64/aarch64-sve.md
812 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
813 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
814 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
815 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
816 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
817 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
818 new patterns.
819 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
820 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
821 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
822 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
823 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
824 new patterns.
825
826 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
827
828 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
829 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
830 (fms<mode>4, *fms<mode>4): Replace with...
831 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
832 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
833 Use unspecs instead of rtx codes.
834 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
835 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
836
837 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
838
839 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
840 int iterator.
841 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
842 * config/aarch64/aarch64-sve.md
843 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
844 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
845 use a single unspec for the rhs.
846 (*<su><maxmin><mode>3): Delete.
847 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
848
849 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
850
851 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
852 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
853 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
854 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
855 (optab, sve_fp_op): Handle them.
856 (SVE_FP_UNARY): Delete.
857 (optab): Remove sqrt entry.
858 (sve_fp_op): Remove neg, abs and sqrt entries.
859 (SVE_COND_FP_UNARY): New int iterator.
860 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
861 (*<frint_pattern><mode>2): Delete.
862 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
863 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
864 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
865 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
866
867 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
868
869 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
870
871 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
872
873 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
874 (UNSPEC_COND_FADD): ...this.
875 (UNSPEC_COND_SUB): Rename to...
876 (UNSPEC_COND_FSUB): ...this.
877 (UNSPEC_COND_MUL): Rename to...
878 (UNSPEC_COND_FMUL): ...this.
879 (UNSPEC_COND_DIV): Rename to...
880 (UNSPEC_COND_FDIV): ...this.
881 (UNSPEC_COND_MAX): Rename to...
882 (UNSPEC_COND_FMAXNM): ...this.
883 (UNSPEC_COND_MIN): Rename to...
884 (UNSPEC_COND_FMINNM): ...this.
885 (UNSPEC_COND_LT): Rename to...
886 (UNSPEC_COND_FCMLT): ...this.
887 (UNSPEC_COND_LE): Rename to...
888 (UNSPEC_COND_FCMLE): ...this.
889 (UNSPEC_COND_EQ): Rename to...
890 (UNSPEC_COND_FCMEQ): ...this.
891 (UNSPEC_COND_NE): Rename to...
892 (UNSPEC_COND_FCMNE): ...this.
893 (UNSPEC_COND_GE): Rename to...
894 (UNSPEC_COND_FCMGE): ...this.
895 (UNSPEC_COND_GT): Rename to...
896 (UNSPEC_COND_FCMGT): ...this.
897 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
898 (sve_fp_op_rev): Update accordingly.
899 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
900
901 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
902
903 * config/aarch64/aarch64-sve.md: Reorganize contents and add
904 banner comments.
905 * config/aarch64/check-sve-md.awk: New file.
906 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
907 (insn-conditions.md): Depend on it.
908
909 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
910
911 PR target/91385
912 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
913 (*negsi2_cmpz_zext): Ditto.
914
915 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
916
917 * config/aarch64/iterators.md (commutative): Remove.
918
919 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
920
921 PR driver/91130
922 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
923 processing COLLECT_GCC_OPTIONS.
924 (run_gcc): Likewise.
925
926 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
927
928 PR tree-optimization/91109
929 * lra-remat.c (update_scratch_ops): Remove assignment of the
930 hard register.
931
932 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
933
934 * data-streamer.h (streamer_write_poly_uint64): Declare.
935 (streamer_read_poly_uint64): Likewise.
936 * data-streamer-in.c (streamer_read_poly_uint64): New function.
937 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
938 * ipa-predicate.h (condition::size): Turn into a poly_int64.
939 (add_condition): Take a poly_int64 size.
940 * ipa-predicate.c (add_condition): Likewise.
941 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
942 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
943 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
944 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
945 condition::size as a poly_int64.
946 (unmodified_parm_1): Take a poly_int64 size pointer.
947 (unmodified_parm): Likewise.
948 (unmodified_parm_or_parm_agg_item): Likewise.
949 (set_cond_stmt_execution_predicate): Update accordingly.
950 (set_switch_stmt_execution_predicate): Likewise.
951 (will_be_nonconstant_expr_predicate): Likewise.
952 (will_be_nonconstant_predicate): Likewise.
953 (inline_read_section): Stream condition::size as a poly_int.
954 (ipa_fn_summary_write): Likewise.
955
956 2019-08-07 Martin Liska <mliska@suse.cz>
957
958 * fold-const.c (twoval_comparison_p): Replace int
959 with bool as a return type.
960 (simple_operand_p): Likewise.
961 (operand_equal_p): Replace int with bool as a return type.
962 * fold-const.h (operand_equal_p): Likewise.
963
964 2019-08-07 Jakub Jelinek <jakub@redhat.com>
965
966 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
967 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
968 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
969 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
970 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
971 * tree-pretty-print.c (dump_omp_clause): Likewise.
972 * tree-nested.c (convert_nonlocal_omp_clauses,
973 convert_local_omp_clauses): Likewise.
974 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
975 Likewise.
976 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
977 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
978 clause with array or reference to array types, no matter what type
979 except for reference it has.
980
981 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
982
983 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
984
985 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
986
987 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
988 (arch_canonicalize): Support rv32g and rv64g and fix error
989 handling.
990
991 2019-08-06 Martin Liska <mliska@suse.cz>
992
993 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
994 and DECL_IS_OPERATOR_DELETE_P.
995
996 2019-08-06 Jakub Jelinek <jakub@redhat.com>
997
998 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
999 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
1000 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
1001 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
1002 (gimplify_omp_for): Don't do C++ random access iterator clause
1003 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
1004 don't predetermine the artificial iterator in case of C++ random
1005 access iterators as lastprivate, but private. For OMP_LOOP, force
1006 bind expr around simd body and force for_pre_body before the
1007 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
1008 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
1009 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
1010 diff var of C++ random access iterators. Handle
1011 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
1012 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
1013 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
1014 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
1015 * omp-low.c (lower_rec_input_clauses): For
1016 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
1017 variables instead of default constructing them.
1018 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
1019 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
1020 is_taskloop_ctx check from the assert to the guarding condition.
1021
1022 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
1023
1024 * config/riscv/multilib-generator: (canonical_order): New.
1025 (arch_canonicalize): Dito.
1026 Apply arch_canonicalize for alts.
1027
1028 2019-08-05 Martin Sebor <msebor@redhat.com>
1029
1030 * doc/extend.texi (Common Variable Attributes): Document alias
1031 attribute.
1032
1033 2019-08-05 Marek Polacek <polacek@redhat.com>
1034
1035 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1036 * doc/invoke.texi: Document -Wcomma-subscript.
1037
1038 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1039
1040 * tree-core.h (tree_function_decl): Make function_code an
1041 independent field. Group the remaining bitfields into bytes
1042 and move decl_type so that it contines to be at a byte boundary.
1043 Leave 12 bits for future expansion.
1044
1045 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1046
1047 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
1048 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
1049 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
1050 IFN_MASK_STORE.
1051
1052 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1053
1054 * gimple.h (gimple_move_vops): Declare.
1055 * gimple.c (gimple_move_vops): New function
1056 * gimple-fold.c (replace_call_with_call_and_fold)
1057 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
1058 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
1059 (gimple_fold_call): Use it.
1060 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
1061 * tree-call-cdce.c (use_internal_fn): Likewise.
1062 * tree-if-conv.c (predicate_load_or_store): Likewise.
1063 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1064 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1065 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
1066 (update_call_from_tree): Likewise.
1067 * tree-vect-stmts.c (vectorizable_load): Likewise.
1068 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
1069
1070 2019-08-05 Martin Liska <mliska@suse.cz>
1071
1072 PR c++/91334
1073 * tree-ssa-dce.c (propagate_necessity): Handle new operators
1074 with not arguments.
1075 (eliminate_unnecessary_stmts): Likewise.
1076
1077 2019-08-05 Richard Biener <rguenther@suse.de>
1078
1079 PR middle-end/91169
1080 * fold-const.c (get_array_ctor_element_at_index): Create
1081 offset_ints according to the sign of the index type and treat
1082 that as signed if it is obviously so.
1083
1084 2019-08-05 Jakub Jelinek <jakub@redhat.com>
1085
1086 PR target/91341
1087 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
1088 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
1089 _mm256_storeu2_m128i): New function.
1090
1091 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
1092
1093 * config/riscv/riscv.c (riscv_promote_function_mode): New.
1094 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
1095
1096 2019-08-05 Alan Modra <amodra@gmail.com>
1097
1098 PR target/91349
1099 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
1100 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
1101
1102 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1103
1104 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
1105 bug that was fixed in Tcl 8.6.1.
1106
1107 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
1108
1109 * config/rs6000/future.md: New file.
1110 * config/rs6000/rs6000.md: Include future.md.
1111 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
1112
1113 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1114
1115 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
1116 check to use targetm.slow_unaligned_access instead.
1117
1118 * function.c (assign_param_data_one): Remove unused data members.
1119
1120 2019-08-02 Steve Ellcey <sellcey@marvell.com>
1121
1122 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
1123 build_distinct_type_copy.
1124 (simd_clone_adjust_argument_types): Ditto.
1125 (simd_clone_adjust): Call build_distinct_type_copy here.
1126 (expand_simd_clones): Ditto.
1127
1128 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1129
1130 PR target/91201
1131 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
1132
1133 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
1134
1135 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
1136 from 'const void *'.
1137 (sort_locs_in_loop_postorder_cmp): Likewise.
1138
1139 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
1140
1141 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
1142 (hot-bb-count-ws-permille): Likewise.
1143 (hot-bb-frequency-fraction): Likewise.
1144 (unlikely-bb-count-fraction): Likewise.
1145 * params.def (hot-bb-count-fraction): Rework description.
1146 (hot-bb-count-ws-permille): Likewise.
1147 (hot-bb-frequency-fraction): Likewise.
1148 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
1149 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
1150
1151 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1152
1153 PR target/91323
1154 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
1155 Return false.
1156
1157 2019-08-02 Richard Biener <rguenther@suse.de>
1158
1159 * vec.h (vec::sort): Add gcc_qsort_r support.
1160 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
1161 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
1162 to gcc_qsort_r style callback.
1163 (sort_locs_in_loop_postorder_cmp): Likewise.
1164 (analyze_memory_references): Use gcc_sort_r interfaces.
1165 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
1166
1167 2019-08-02 Martin Liska <mliska@suse.cz>
1168
1169 PR lto/91313
1170 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
1171 to detect working job server.
1172 (driver::detect_jobserver): Test whether jobserver
1173 is active from GCC driver. That will prevent situation where
1174 GCC is invoked from a LD plugin and the linker already uses
1175 file descriptors suggested by make. That leads to a wrong
1176 detection.
1177 * gcc.h (driver): Add detect_jobserver.
1178 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
1179 not scanning for --jobserver-auth prefix.
1180
1181 2019-08-02 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR tree-optimization/91201
1184 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
1185 V16QImode extraction without sse4.1 try to use V4SImode lowpart
1186 extraction.
1187
1188 2019-08-01 Martin Sebor <msebor@redhat.com>
1189
1190 PR c++/90947
1191 * tree.c (type_initializer_zero_p): Define.
1192 * tree.h (type_initializer_zero_p): New function.
1193
1194 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1195
1196 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
1197
1198 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
1201 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
1202 * predict.c (maybe_hot_count_p): Likewise.
1203 (maybe_hot_bb_p): Tweak comment.
1204 (maybe_hot_edge_p): Likewise.
1205 (probably_never_executed): Likewise. Minor tweak.
1206 (probably_never_executed_bb_p): Likewise.
1207 (unlikely_executed_edge_p): Likewise.
1208 (probably_never_executed_edge_p): Likewise.
1209 (optimize_function_for_size_p): Likewise.
1210 (optimize_function_for_speed_p): Likewise.
1211 (function_optimization_type): Likewise.
1212 (optimize_bb_for_size_p): Likewise.
1213 (optimize_bb_for_speed_p): Likewise.
1214 (bb_optimization_type): Likewise.
1215 (optimize_edge_for_size_p): Likewise.
1216 (optimize_edge_for_speed_p): Likewise.
1217 (optimize_insn_for_size_p): Likewise.
1218 (optimize_insn_for_speed_p): Likewise.
1219 (optimize_loop_for_size_p): Likewise.
1220 (optimize_loop_for_speed_p): Likewise.
1221 (optimize_loop_nest_for_speed_p): Likewise.
1222 (optimize_loop_nest_for_size_p): Likewise.
1223 (predictable_edge_p): Likewise.
1224 (handle_missing_profiles): Minor tweak.
1225
1226 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
1227
1228 * config/rs6000/predicates.md (pcrel_external_address): Update
1229 comment.
1230
1231 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1232
1233 PR target/85693
1234 * config/i386/mmx.md (usadv8qi): New expander.
1235
1236 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
1237
1238 PR c++/90590
1239 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
1240 with reserved names that are in a system header.
1241
1242 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1243
1244 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
1245 (*vec_extractv2si_0_zext_sse4): New insn pattern.
1246 (*vec_extractv2si_0_zext): Ditto.
1247 (*vec_extractv2si_1): Add (rm,x) alternative.
1248 (*vec_extractv2si_1_zext): New insn pattern.
1249 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
1250 insn constraint.
1251
1252 2019-08-01 Richard Biener <rguenther@suse.de>
1253
1254 * domwalk.c (bb_postorder): Remove static variable.
1255 (cmp_bb_postorder): Adjust.
1256 (sort_bbs_postorder): Adjust and use gcc_sort_r.
1257 (dom_walker::walk): Adjust.
1258
1259 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
1260
1261 * sort.cc (sort_r_ctx): New struct.
1262 (reorder23): Make templated on context type.
1263 (reorder45): Ditto.
1264 (cmp1): Ditto. Adjust signature.
1265 (netsort): Ditto.
1266 (mergesort): Ditto.
1267 [CHECKING_P] (cmp2to3): New static function. Use it...
1268 (gcc_qsort) [CHECKING_P]: ...here.
1269 (gcc_sort_r): New function.
1270 * system.h (sort_r_cmp_fn): New function typedef.
1271 (qsort_chk): Adjust signature.
1272 (gcc_sort_r): Declare.
1273 * vec.c (qsort_chk_error): Adjust.
1274 (qsort_chk): Adjust.
1275
1276 2019-08-01 Richard Biener <rguenther@suse.de>
1277
1278 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
1279 (compute_antic): Localize it here.
1280
1281 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
1282
1283 * common/config/riscv/riscv-common.c: Check -march string ends
1284 with null.
1285
1286 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
1287
1288 * ipa-devirt.c (type_warning_cmp): Make static.
1289 (decl_warning_cmp): Ditto.
1290
1291 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
1292
1293 PR target/91050
1294 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
1295 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1296 use of deleted rs6000_dejagnu_cpu_index variable.
1297 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
1298 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1299 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
1300 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
1301 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
1302 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1303
1304 2019-07-31 Richard Biener <rguenther@suse.de>
1305
1306 PR tree-optimization/91280
1307 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1308 Decompose MEM_REF manually for offset handling.
1309
1310 2019-07-31 Richard Biener <rguenther@suse.de>
1311
1312 PR tree-optimization/91293
1313 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
1314 of reduction stmts.
1315
1316 2019-07-31 Matt Thomas <matt@3am-software.com>
1317 Nick Hudson <nick@nthcliff.demon.co.uk>
1318 Matthew Green <mrg@eterna.com.au>
1319 Maya Rashish <coypu@sdf.org>
1320
1321 * config.gcc (hppa*-*-netbsd*): New target.
1322 * config/pa/pa-netbsd.h: New file.
1323 * config/pa/pa32-netbsd.h: New file.
1324
1325 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1326
1327 PR tree-optimization/91201
1328 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
1329
1330 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
1331
1332 * config/gcn/gcn-valu.md
1333 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
1334 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
1335 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1336 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
1337 struct ilist. Add nops for delayeduse insns.
1338 * config/gcn/gcn.md (delayeduse): New attribute.
1339 (*movbi): Remove s_waitcnt from stores.
1340 (*mov<mode>_insn): Likewise.
1341 (*movti_insn): Likewise. Add delayeduse attribute.
1342 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
1343 (atomic_store<mode>): Remove or adjust s_waitcnt.
1344
1345 2019-07-31 Richard Biener <rguenther@suse.de>
1346
1347 * vr-values.h (vr_values::swap_vr_value): New.
1348 (vr_values::free_value_range): likewise.
1349 * vr-values.c (vr_values::swap_vr_value): Implement.
1350 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
1351 Do not return a range or take a var.
1352 (evrp_range_analyzer::stack): Change back to recording a non-const
1353 value_range *.
1354 * gimple-ssa-evrp-analyze.c
1355 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
1356 value-range.
1357 (evrp_range_analyzer::pop_to_marker): Adjust.
1358 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
1359 (evrp_range_analyzer::pop_value_range): Likewise. Free the
1360 no longer needed value-range.
1361
1362 2019-07-31 Martin Liska <mliska@suse.cz>
1363
1364 * tree-ssa-dce.c (propagate_necessity): Delete operator can
1365 have size and (or) alignment as 2nd and later arguments.
1366 Mark all of them as necessary.
1367
1368 2019-07-31 Richard Biener <rguenther@suse.de>
1369
1370 PR tree-optimization/91178
1371 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1372 Use tail-recursion.
1373
1374 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1375
1376 PR tree-optimization/91201
1377 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
1378 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
1379 TARGET_AVX512F.
1380 (reduc_plus_scal_<mode>): Improve formatting by introducing
1381 a temporary.
1382
1383 2019-07-31 Sudakshina Das <sudi.das@arm.com>
1384
1385 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1386 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
1387 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
1388 (aarch64_init_tme_builtins): New.
1389 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
1390 (aarch64_expand_builtin_tme): New.
1391 (aarch64_expand_builtin): Handle TME builtins.
1392 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1393 __ARM_FEATURE_TME when enabled.
1394 * config/aarch64/aarch64-option-extensions.def: Add "tme".
1395 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
1396 (TARGET_TME): New.
1397 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
1398 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
1399 UNSPECV_TCANCEL.
1400 (tstart, ttest, tcommit, tcancel): New instructions.
1401 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
1402 (__tcancel, __ttest): New.
1403 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
1404 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
1405 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
1406 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
1407 * config/arm/types.md: Add new tme type attr.
1408 * doc/invoke.texi: Document "tme".
1409
1410 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
1411
1412 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
1413 warn_unused_result attribute.
1414 (cmse_check_address_range): Add warn_unused_result attribute.
1415
1416 2019-07-31 Richard Biener <rguenther@suse.de>
1417
1418 PR tree-optimization/91257
1419 * tree-vrp.c (union_ranges): Unify equality and less tests
1420 by using compare_values. Re-order cheap tests first.
1421
1422 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1423
1424 PR middle-end/91301
1425 * gimplify.c (gimplify_omp_for): If for class iterator on
1426 distribute parallel for there is no data sharing clause
1427 on inner_for_stmt, look for private clause on combined
1428 parallel too and if found, move it to inner_for_stmt.
1429
1430 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
1431
1432 * lra-int.h (lra_operand_data): Remove early_clobber field.
1433 (lra_insn_reg): Likewise.
1434 * lra.c (debug_operand_data): Update accordingly.
1435 (setup_operand_alternative): Likewise.
1436 (new_insn_reg): Likewise. Remove early_clobber parameter.
1437 (collect_non_operand_hard_regs): Update call accordingly.
1438 Don't assign to lra_insn_reg::early_clobber.
1439 (add_regs_to_insn_regno_info): Remove early_clobber parameter
1440 and update calls to new_insn_reg.
1441 (lra_update_insn_regno_info): Update calls accordingly.
1442 * lra-constraints.c (update_and_check_small_class_inputs): Take the
1443 alternative number as a parameter and test whether the operand
1444 is earlyclobbered in that particular alternative.
1445 (process_alt_operands): Update call accordingly. Use per-alternative
1446 checks for earyclobber here too.
1447 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
1448 against zero for IRA_UNKNOWN_ALT.
1449
1450 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1451
1452 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
1453
1454 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
1455
1456 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
1457 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1458
1459 2019-07-30 Martin Liska <mliska@suse.cz>
1460
1461 PR ipa/89330
1462 * cgraph.c (cgraph_edge::make_direct): Use
1463 edge->indirect_unknown_callee as edge->resolve_speculation can
1464 deallocate edge which is this pointer.
1465
1466 2019-07-30 Richard Biener <rguenther@suse.de>
1467
1468 PR tree-optimization/91257
1469 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
1470
1471 2019-07-30 Martin Liska <mliska@suse.cz>
1472
1473 * doc/invoke.texi: Document new behavior.
1474 * lto-wrapper.c (cpuset_popcount): New function
1475 is a copy of libgomp/config/linux/proc.c.
1476 (init_num_threads): Likewise.
1477 (run_gcc): Automatically detect core count for -flto.
1478 (jobserver_active_p): New function.
1479
1480 2019-07-30 Richard Biener <rguenther@suse.de>
1481
1482 PR tree-optimization/91257
1483 * bitmap.h (bitmap_ior_into_and_free): Declare.
1484 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
1485 whether to add the unliked element to the freelist.
1486 (bitmap_list_insert_element_after): Add defaulted param for
1487 an already allocated element.
1488 (bitmap_ior_into_and_free): New function.
1489 * tree-ssa-structalias.c (condense_visit): Reduce the
1490 ponts-to and edge bitmaps of the SCC members in a
1491 logarithmic fashion rather than all to one.
1492
1493 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
1494
1495 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
1496 parameter. When nonnull, make sure that the addition or subtraction
1497 has the same condition.
1498 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
1499 for CFN_COND_MUL too.
1500
1501 2019-07-30 Richard Biener <rguenther@suse.de>
1502
1503 PR tree-optimization/91291
1504 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
1505 constant values.
1506
1507 2019-07-30 Jakub Jelinek <jakub@redhat.com>
1508
1509 PR middle-end/91216
1510 * omp-low.c (global_nonaddressable_vars): New variable.
1511 (use_pointer_for_field): For global decls, if they are non-addressable,
1512 remember it in the global_nonaddressable_vars bitmap, if they are
1513 addressable and in the global_nonaddressable_vars bitmap, ignore their
1514 TREE_ADDRESSABLE bit.
1515 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
1516 vars in global_nonaddressable_vars bitmap.
1517 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
1518
1519 PR target/91150
1520 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
1521 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
1522 comparison to unsigned HOST_WIDE_INT before shifting it left.
1523
1524 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1525
1526 * config/i386/i386.md (movstrict<mode>): Use register_operand
1527 predicate for operand 0. Add expander condition. Assert that
1528 operand 0 is a SUBREG RTX.
1529 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
1530 Update operand constraints and insn condition.
1531 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
1532 (zero_extendqihi2_and): Do not call gen_movstrictqi.
1533 (*setcc_qi_slp): Use register_operand predicate for operand 0.
1534 Update operand 0 constraints.
1535 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
1536
1537 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1538
1539 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
1540 when -m{code,data}-region are used without -mlarge.
1541 * config/msp430/msp430.c (msp430_option_override): Error when a
1542 non-default code or data region is used without -mlarge.
1543 (msp430_section_attr): Emit a warning and do not add upper/lower/either
1544 attributes when they are used without -mlarge.
1545
1546 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1547
1548 PR target/70320
1549 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
1550
1551 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1552
1553 PR middle-end/91242
1554 * wide-int.h (generic_wide_int::sext_elt): New function.
1555 * inchash.h (hash::add_wide_int): Use it instead of elt.
1556
1557 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1558
1559 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
1560 CODE_FOR_arm_##.
1561 * config/arm/arm.md (<crc_variant>): Rename to...
1562 (arm_<crc_variant>): ... This.
1563 (<cdp>): Rename to...
1564 (arm_<cdp>): ... This.
1565 (<ldc>): Rename to...
1566 (arm_<ldc>): ... This.
1567 (<stc>): Rename to...
1568 (arm_<stc>): ... This.
1569 (<mcr>): Rename to...
1570 (arm_<mcr>): ... This.
1571 (<mrc>): Rename to...
1572 (arm_<mrc>): ... This.
1573 (<mcrr>): Rename to...
1574 (arm_<mcrr>): ... This.
1575 (<mrrc>): Rename to...
1576 (arm_<mrrc>): ... This.
1577
1578 2019-07-29 Richard Biener <rguenther@suse.de>
1579
1580 PR tree-optimization/91257
1581 * tree-ssa-sccvn.h (struct vn_avail): New.
1582 (struct vn_ssa_aux): Add avail member.
1583 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
1584 member, add m_avail_freelist one.
1585 (rpo_elim::~rpo_elim): Remove.
1586 (rpo_elim::eliminate_avail): Adjust to new avail tracking
1587 data structure.
1588 (rpo_elim::eliminate_push_avail): Likewise.
1589 (do_unwind): Likewise.
1590 (do_rpo_vn): Likewise.
1591
1592 2019-07-29 Richard Biener <rguenther@suse.de>
1593
1594 PR tree-optimization/91257
1595 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
1596 most cases, instead call compare_values which handles the
1597 symbolic ranges we handle specially.
1598 (compare_values_warnv): Do not call operand_less_p but open-code
1599 the effective fold calls. Avoid converting so much.
1600
1601 2019-07-29 Martin Liska <mliska@suse.cz>
1602
1603 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
1604 remove LHS of operator new call. It's handled latter.
1605
1606 2019-07-29 Richard Biener <rguenther@suse.de>
1607
1608 PR tree-optimization/91267
1609 * vr-values.c (vr_values::update_value_range): Add early return
1610 for effectively VARYING lattice entry.
1611
1612 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1613
1614 PR debug/86638
1615 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
1616 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
1617 necessary if keep_all_vdefs_p is true.
1618 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
1619 that keep_all_vdefs_p is false.
1620 (mark_all_reaching_defs_necessary): Likewise.
1621 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
1622
1623 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1624
1625 * common.opt (Og): Change the initial value of flag_dse to 0.
1626 * opts.c (default_options_table): Move OPT_ftree_dse from
1627 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
1628 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
1629 entry before the OPT_ftree_sra entry.
1630 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
1631 of flags disabled by Og.
1632
1633 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1634
1635 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
1636 variables for -Og.
1637
1638 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1639
1640 * doc/sourcebuild.texi (check-function-bodies): Document.
1641
1642 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1643
1644 * simplify-rtx.c (simplify_const_unary_operation): Fold a
1645 VEC_DUPLICATE of a fixed-length vector even if the result
1646 is variable-length. Likewise fold a duplicate of a
1647 variable-length vector if the variable-length vector is
1648 itself a duplicate of a fixed-length sequence.
1649 (test_vector_ops_duplicate): Test more cases.
1650
1651 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1652
1653 * vector-builder.h (vector_builder): Add a shape template parameter.
1654 (vector_builder::new_unary_operation): New function, generalizing
1655 the old tree_vector_builder function.
1656 (vector_builder::new_binary_operation): Likewise.
1657 (vector_builder::binary_encoded_nelts): Likewise.
1658 * int-vector-builder.h (int_vector_builder): Update template
1659 parameters to vector_builder.
1660 (int_vector_builder::shape_nelts): New function.
1661 * rtx-vector-builder.h (rtx_vector_builder): Update template
1662 parameters to vector_builder.
1663 (rtx_vector_builder::shape_nelts): New function.
1664 (rtx_vector_builder::nelts_of): Likewise.
1665 (rtx_vector_builder::npatterns_of): Likewise.
1666 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
1667 * tree-vector-builder.h (tree_vector_builder): Update template
1668 parameters to vector_builder.
1669 (tree_vector_builder::shape_nelts): New function.
1670 (tree_vector_builder::nelts_of): Likewise.
1671 (tree_vector_builder::npatterns_of): Likewise.
1672 (tree_vector_builder::nelts_per_pattern_of): Likewise.
1673 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
1674 (tree_vector_builder::new_binary_operation): Delete.
1675 (tree_vector_builder::binary_encoded_nelts): Likewise.
1676 * simplify-rtx.c: Include rtx-vector-builder.h.
1677 (distributes_over_addition_p): New function.
1678 (simplify_const_unary_operation)
1679 (simplify_const_binary_operation): Generalize handling of vector
1680 constants to include variable-length vectors.
1681 (test_vector_ops_series): Add more tests.
1682
1683 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
1684
1685 PR lto/91222
1686 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
1687 than INDENTIFIER_POINTER.
1688
1689 2019-07-28 Martin Liska <mliska@suse.cz>
1690
1691 PR ipa/89330
1692 * cgraph.c (symbol_table::create_edge): Always allocate
1693 a cgraph_edge.
1694 (symbol_table::free_edge): Store summary_id to
1695 edge_released_summary_ids if != -1;
1696 * cgraph.h (NEXT_FREE_NODE): Remove.
1697 (SET_NEXT_FREE_NODE): Likewise.
1698 (NEXT_FREE_EDGE): Likewise.
1699 (symbol_table::release_symbol): Store summary_id to
1700 cgraph_released_summary_ids if != -1;
1701 (symbol_table::allocate_cgraph_symbol): Always allocate
1702 a cgraph_node.
1703
1704 2019-07-28 Alan Modra <amodra@gmail.com>
1705
1706 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
1707 gen_sibcall.
1708
1709 2019-07-28 Alan Modra <amodra@gmail.com>
1710
1711 PR target/91135
1712 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
1713 define.
1714 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
1715 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
1716 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
1717
1718 2019-07-28 Alan Modra <amodra@gmail.com>
1719
1720 PR target/91050
1721 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
1722 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
1723 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
1724 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
1725 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
1726 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
1727 in asm_default spec.
1728 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
1729 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
1730
1731 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1732
1733 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
1734
1735 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1736
1737 PR target/89517
1738 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
1739 * config/aarch64/aarch64-option-extensions.def: Add new comments
1740 and restore easier to read options.
1741
1742 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1743
1744 * convert.c (convert_to_real_1): Move part of conversion code...
1745 * match.pd: ...To here.
1746
1747 2019-07-26 Martin Jambor <mjambor@suse.cz>
1748
1749 PR ipa/89330
1750 * ipa-inline-transform.c (check_speculations_1): New function.
1751 (push_all_edges_in_set_to_vec): Likewise.
1752 (check_speculations): Use check_speculations_1, new parameter
1753 new_edges.
1754 (inline_call): Pass new_edges to check_speculations.
1755 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
1756 NULL.
1757 (speculation_useful_p): Early return true if edge is inlined, remove
1758 later checks for inline_failed.
1759
1760 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
1761
1762 PR rtl-optimization/91223
1763 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
1764 matching with INOUT operand.
1765
1766 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1767
1768 * stmt.c (expand_case): Try to narrow the index type if it's larger
1769 than a word. Tidy up.
1770
1771 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1772
1773 * cif-code.def (NEVER_CALL): New code.
1774 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
1775 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
1776
1777 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
1778
1779 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
1780 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1781
1782 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
1783
1784 * ipa-devirt.c (add_type_duplicate): Fix return value.
1785
1786 2019-07-25 Richard Biener <rguenther@suse.de>
1787
1788 * tree-vrp.c (extract_range_from_multiplicative_op): Add
1789 type parameter and use it instead of guessing expression
1790 type from the first operand.
1791 (extract_range_from_binary_expr): Pass expr_type down.
1792
1793 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1794
1795 * config/arm/arm.md (SATrev): Change to code attribute.
1796 (*satsi_<SAT:code>): Adjust for the above.
1797 (*satsi_<SAT:code>_shift): Likewise.
1798
1799 2019-07-25 Richard Biener <rguenther@suse.de>
1800
1801 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
1802 Make value_range * temporary const.
1803 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
1804 Likewise.
1805 (evrp_range_analyzer::record_ranges_from_): Likewise.
1806 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
1807 deal with having recorded a const one.
1808 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
1809 Return a const value_range *.
1810 (evrp_range_analyzer::pop_value_range): Likewise.
1811 (evrp_range_analyzer::stack): Record const value_range *s.
1812 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
1813 Adjust.
1814 * gimple-ssa-sprintf.c (get_int_range): Likewise.
1815 (format_integer): Likewise.
1816 (sprintf_dom_walker::handle_gimple_call): Likewise.
1817 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
1818 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
1819 (vrp_prop::get_value_range): Adjust.
1820 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
1821 modifying the lattice in-place.
1822 (vrp_prop::visit_stmt): Likewise.
1823 * vr-values.c (vr_values::get_lattice_entry): New private method.
1824 (vr_values::get_value_range): Wrap it and return a const
1825 value_range *.
1826 (vr_values::set_def_to_varying): New.
1827 (vr_values::set_defs_to_varying): Use it.
1828 (vr_values::update_value_range): Likewise.
1829 (vr_values::vrp_stmt_computes_nonzero): Adjust.
1830 (values::op_with_constant_singleton_va): Likewise.
1831 (vr_values::extract_range_for_var_from_co): Likewise.
1832 (vr_values::extract_range_from_ssa_name): Likewise.
1833 (vr_values::extract_range_from_cond_expr): Likewise.
1834 (vr_values::extract_range_basic): Likewise.
1835 (compare_ranges): Take const value_range *, adjust.
1836 (compare_range_with_value): Likewise.
1837 (vrp_valueize): Adjust.
1838 (vrp_valueize_1): Likewise.
1839 (vr_values::get_vr_for_comparison): Return a const value_range *.
1840 (vr_values::compare_name_with_value): Adjust.
1841 (vr_values::compare_names): Likewise.
1842 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
1843 Likewise.
1844 (vr_values::vrp_evaluate_conditional): Likewise.
1845 (find_case_label_ranges): Take a const value_range *.
1846 (vr_values::vrp_visit_switch_stmt): Adjust.
1847 (vr_values::extract_range_from_phi_node): Likewise.
1848 (vr_values::simplify_div_or_mod_using_ran): Likewise.
1849 (vr_values::simplify_abs_using_ranges): Likewise.
1850 (test_for_singularity): Take a const value_range *.
1851 (range_fits_type_p): Likewise.
1852 (vr_values::simplify_cond_using_ranges_1): Adjust.
1853 (vr_values::simplify_cond_using_ranges_2): Likewise.
1854 (vr_values::simplify_switch_using_ranges): Likewise.
1855 (vr_values::simplify_float_conversion_usi): Likewise.
1856 (vr_values::two_valued_val_range_p): Likewise.
1857 * vr-values.h (vr_values::get_value_range): Return a const
1858 value_range *.
1859 (vr_values::set_def_to_varying): New.
1860 (vr_values::get_lattice_entry): New private method.
1861 (vr_values::get_vr_for_comparison): Return a const value_range *.
1862
1863 2019-07-25 Martin Liska <mliska@suse.cz>
1864 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
1865
1866 PR c++/23383
1867 * common.opt: Add -fallocation-dce
1868 * gimple.c (gimple_call_operator_delete_p): New.
1869 * gimple.h (gimple_call_operator_delete_p): Likewise.
1870 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
1871 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
1872 DECL_IS_OPERATOR_DELETE_P.
1873 (mark_all_reaching_defs_necessary_1): Likewise.
1874 (propagate_necessity): Likewise.
1875 (eliminate_unnecessary_stmts): Handle
1876 gimple_call_operator_delete_p.
1877 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
1878 Add packing of OPERATOR_DELETE.
1879 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
1880 Similarly here.
1881 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
1882 (DECL_SET_IS_OPERATOR_DELETE): New.
1883 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
1884
1885 2019-07-25 Martin Liska <mliska@suse.cz>
1886
1887 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
1888 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
1889 * coverage.c (coverage_begin_function): Likewise.
1890 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
1891 * gimple.c (gimple_call_nonnull_result_p): Likewise.
1892 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
1893 (sem_item::hash_referenced_symbol_properties): Likewise.
1894 * lto-streamer-out.c (hash_tree): Likewise.
1895 * predict.c (expr_expected_value_1): Likewise.
1896 * tree-inline.c (expand_call_inline): Likewise.
1897 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1898 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1899 * tree-core.h (enum function_decl_type): New enum.
1900 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
1901 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
1902 (set_function_decl_type): Likewise.
1903 (DECL_IS_OPERATOR_NEW_P): New.
1904 (DECL_SET_IS_OPERATOR_NEW): Likewise.
1905 (DECL_LAMBDA_FUNCTION): Likewise.
1906 (DECL_LAMBDA_FUNCTION_P): Likewise.
1907 (DECL_IS_OPERATOR_NEW): Remove.
1908 (DECL_SET_LAMBDA_FUNCTION): Likewise.
1909
1910 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
1911
1912 * ipa-profile.c (get_most_common_single_value): Use
1913 get_nth_most_common_value.
1914 * profile.c (sort_hist_value): New function.
1915 (compute_value_histograms): Call sort_hist_value to sort the
1916 values after loading from disk.
1917 * value-prof.c (get_most_common_single_value): Rename to ...
1918 get_nth_most_common_value. Add input params n, return
1919 the n_th value and count.
1920 (gimple_divmod_fixed_value_transform): Use
1921 get_nth_most_common_value.
1922 (gimple_ic_transform): Likewise.
1923 (gimple_stringops_transform): Likewise.
1924 * value-prof.h (get_most_common_single_value): Add input params
1925 n, default to 0.
1926
1927 2019-07-25 Richard Biener <rguenther@suse.de>
1928
1929 PR tree-optimization/91236
1930 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
1931 size of CONSTRUCTOR write. Fix buffer size we pass to
1932 native_encode_expr.
1933
1934 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1935
1936 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
1937 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
1938 r273773.
1939
1940 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1941
1942 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
1943 explicitly disabled with --disable-initfini-array.
1944
1945 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1946
1947 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
1948 if-exists.
1949
1950 2019-07-24 Martin Sebor <msebor@redhat.com>
1951
1952 PR tree-optimization/91183
1953 PR tree-optimization/86688
1954 * builtins.c (compute_objsize): Handle MEM_REF.
1955 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
1956 (get_min_string_length): Remove.
1957 (count_nonzero_bytes): New function.
1958 (handle_char_store): Rename...
1959 (handle_store): to this. Handle multibyte stores via integer types.
1960 (strlen_check_and_optimize_stmt): Adjust conditional and the called
1961 function name.
1962
1963 2019-07-24 Martin Sebor <msebor@redhat.com>
1964
1965 PR driver/80545
1966 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
1967 (diagnostic_report_diagnostic): Same.
1968 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
1969 (diagnostic_context::lang_mask): New data member.
1970 * ipa-pure-const.c (suggest_attribute): Use
1971 lang_hooks.option_lang_mask ().
1972 * opts-common.c (option_enabled): Handle new argument.
1973 (get_option_state): Pass an additional argument.
1974 * opts.c (print_filtered_help): Print supported languages for
1975 unsupported options. Adjust printing of current state.
1976 * opts.h (option_enabled): Add argument.
1977 * toplev.c (print_switch_values): Use lang_mask.
1978 (general_init): Set global_dc->lang_mask.
1979
1980 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
1981
1982 PR bootstrap/87030
1983 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
1984
1985 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
1986
1987 * cgraphunit.c (symbol_table::compile): Start and stop
1988 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
1989 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
1990
1991 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
1992
1993 * gimplify.c (flag_instrument_functions_exclude_p): Include
1994 namespace/class information in the printable name.
1995 * opts.c (add_comma_separated_to_vector): Add NUL terminator
1996 to tokens entered into the vector.
1997
1998 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
1999
2000 * tree-nested.c (build_simple_mem_ref_notrap): New function.
2001 (get_static_chain): Call it instead of build_simple_mem_ref.
2002 (get_frame_field): Likewise.
2003 (get_nonlocal_debug_decl): Likewise.
2004 (convert_nonlocal_reference_op): Likewise.
2005
2006 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
2007
2008 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
2009 declaration.
2010 (arc_compute_frame_size): Millicode is disabled when compiling
2011 ISR.
2012 (arc_return_address_register): Likewise.
2013 (arc_compute_function_type): Likewise.
2014 (arc_compute_frame_size): Likewise.
2015 (secondary_reload_info): Likewise.
2016 (arc_get_unalign): Likewise.
2017 (arc_can_use_return_insn): Declare.
2018 * config/arc/arc.c (AUX_LP_START): Define
2019 (AUX_LP_END): Likewise.
2020 (arc_frame_info): Update gmask member to 64-bit datum.
2021 (GMASK_LEN): Update.
2022 (arc_compute_function_type): Make it static, move it forward.
2023 (arc_must_save_register): Update, consider the extra regs.
2024 (arc_compute_millicode_save_restore_regs): Update to use the 64
2025 bit gmask.
2026 (arc_compute_frame_size): Likewise.
2027 (arc_enter_leave_p): Likewise.
2028 (arc_save_callee_saves): Likewise.
2029 (arc_restore_callee_saves): Likewise.
2030 (arc_save_callee_enter): Likewise.
2031 (arc_restore_callee_leave): Likewise.
2032 (arc_save_callee_milli): Likewise.
2033 (arc_restore_callee_milli): Likewise.
2034 (arc_expand_prologue): Add new interrupt handling.
2035 (arc_return_address_register): Make it static, move it forward.
2036 (arc_expand_epilogue): Add new interrupt handling.
2037 (arc_get_unalign): Delete.
2038 (arc_epilogue_uses): Make sure we do not remove the extra
2039 saved/restored registers when interrupt.
2040 (arc_can_use_return_insn): New function.
2041 (push_reg): Likewise.
2042 (pop_reg): Likewise.
2043 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
2044 procedures.
2045 (arc_restore_callee_saves): Likewise, but restoring.
2046 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
2047 (R33_REG): Likewise.
2048 (R34_REG): Likewise.
2049 (R35_REG): Likewise.
2050 (R36_REG): Likewise.
2051 (R37_REG): Likewise.
2052 (R38_REG): Likewise.
2053 (R39_REG): Likewise.
2054 (R45_REG): Likewise.
2055 (R46_REG): Likewise.
2056 (R47_REG): Likewise.
2057 (R48_REG): Likewise.
2058 (R49_REG): Likewise.
2059 (R50_REG): Likewise.
2060 (R51_REG): Likewise.
2061 (R52_REG): Likewise.
2062 (R53_REG): Likewise.
2063 (R54_REG): Likewise.
2064 (R55_REG): Likewise.
2065 (R56_REG): Likewise.
2066 (R58_REG): Likewise.
2067 (type): Add rtie attribute.
2068 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
2069 (movsi_insn): Accept moves to lp_count.
2070 (rtie): Update pattern.
2071 (simple_return): Simplify it, don't use this pattern as a return
2072 from an interrupt.
2073 (arc600_rtie): New pattern.
2074 (p_return_i): Clean up.
2075 (return): Likewise.
2076 * config/arc/builtins.def (rtie): Only available for non ARC6xx
2077 family CPUs.
2078 * config/arc/predicates.md (move_src_operand): Consider lp_count
2079 as a register.
2080
2081 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
2082
2083 * config/s390/predicates.md (addv_const_operand): New predicate.
2084 * config/s390/s390-modes.def (CCO): New condition code mode.
2085 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
2086 (s390_branch_condition_mask): Likewise.
2087 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
2088 ("mulv<mode>4"): New expanders.
2089 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
2090 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
2091 pattern definitions.
2092
2093 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2094
2095 PR middle-end/91166
2096 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
2097 (define_predicates): Add entry for uniform_vector_p.
2098 (vec_same_elem_p): New match pattern.
2099
2100 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2101
2102 PR bootstrap/87030
2103 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
2104 * config/i386/darwin32-biarch.h .. to here.
2105 * config/i386/darwin64-biarch.h: Adjust comments.
2106 * config/rs6000/darwin32-biarch.h: Likewise.
2107 * config/rs6000/darwin64-biarch.h: Likewise.
2108 * config.gcc: Missed commit from r273746
2109 (*-*-darwin*): Don't include CPU t-darwin here.
2110 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2111 an error message if i686-darwin configuration is attempted for
2112 Darwin >= 18.
2113
2114 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
2115
2116 PR bootstrap/87030
2117 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
2118 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2119 an error message if i686-darwin configuration is attempted for
2120 Darwin >= 18.
2121 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
2122 (powerpc-*-darwin*): Use biarch files where needed.
2123 (powerpc64-*-darwin*): Likewise.
2124 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
2125 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2126 arch case.
2127 * config/i386/darwin32-biarch.h: New.
2128 * config/i386/darwin64.h: Rename.
2129 * config/i386/darwin64-biarch.h: To this.
2130 * config/i386/t-darwin: Rename.
2131 * config/i386/t-darwin32-biarch: To this.
2132 * config/i386/t-darwin64: Rename.
2133 * config/i386/t-darwin64-biarch: To this.
2134 * config/rs6000/darwin32-biarch.h: New.
2135 * config/rs6000/darwin64.h: Rename.
2136 * config/rs6000/darwin64-biarch.h: To this.
2137 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2138 arch case.
2139 * config/rs6000/t-darwin8: Rename.
2140 * config/rs6000/t-darwin32-biarch: To this.
2141 * config/rs6000/t-darwin64 Rename.
2142 * config/rs6000/t-darwin64-biarch: To this.
2143
2144 2019-07-23 Martin Sebor <msebor@redhat.com>
2145
2146 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
2147
2148 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2149
2150 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
2151 (rh): New alias for it.
2152
2153 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2154
2155 * gdbhooks.py: Pass replace=True to
2156 gdb.printing.register_pretty_printer.
2157
2158 2019-07-23 Richard Biener <rguenther@suse.de>
2159
2160 PR debug/91231
2161 * lto-streamer-in.c (input_function): Drop inline-entry markers
2162 that ended up with an unknown location block.
2163
2164 2019-07-23 Richard Biener <rguenther@suse.de>
2165
2166 PR tree-optimization/83518
2167 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
2168 init from a constant even when partial defs are already recorded.
2169
2170 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2171
2172 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
2173 * config/i386/znver1.md: Enable patterns for znver2 and add store
2174 variants which use extra AGU unit.
2175
2176 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2177
2178 * config/i386/i386-options.c (ix86_option_override_internal): Default
2179 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
2180 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
2181 for ZNVER2.
2182
2183 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2184
2185 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
2186 (znver2_costs): Update 256 bit SSE costs and multiplication.
2187
2188 2019-07-23 Jan Beulich <jbeulich@suse.com>
2189
2190 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
2191 Require only AVX512F.
2192 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
2193 alternative expanding to vpternlog.
2194
2195 2019-07-23 Martin Liska <mliska@suse.cz>
2196
2197 * dwarf2out.c (gen_producer_string): Canonize -flto=N
2198 to -flto in dwarf producer string.
2199
2200 2019-07-23 Richard Biener <rguenther@suse.de>
2201
2202 * tree-cfg.c (label_for_bb): Remove global var.
2203 (main_block_label): Take label_for_bb as argument.
2204 (cleanup_dead_labels_eh): Likewise, adjust.
2205 (cleanup_dead_labels): Adjust.
2206
2207 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2208
2209 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
2210 Configurations): Add documentation for __builtin_mtfsf.
2211
2212 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
2213
2214 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
2215 * config/riscv/riscv.c (riscv_constant_alignment): Use
2216 riscv_align_data_type.
2217 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
2218 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2219 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2220 * config/riscv/riscv.opt (malign-data): New.
2221 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
2222
2223 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
2224
2225 * cgraph.c (dump_graphviz): New function.
2226 * cgraph.h (dump_graphviz): New function.
2227 * symtab.c (dump_graphviz): New function.
2228
2229 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
2230
2231 * config/aarch64/aarch64-simd.md
2232 (*aarch64_simd_sra<mode>): New.
2233 * config/aarch64/iterators.md
2234 (SHIFTRT): New iterator.
2235 (sra_op): New attribute.
2236
2237 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2238
2239 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
2240 callee-saved regs R4->R10 in an interrupt function that calls another
2241 function.
2242
2243 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2244
2245 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
2246 (_mm_blendv_epi8): New.
2247
2248 2019-07-22 Richard Biener <rguenther@suse.de>
2249
2250 PR tree-optimization/91221
2251 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
2252 restrict partial-def handling of empty constructors and
2253 memset to refs with known offset.
2254
2255 2019-07-22 Jan Beulich <jbeulich@suse.com>
2256
2257 * config/i386/sse.md (ternlogsuffix): New.
2258 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
2259 AVX512F is in use.
2260 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
2261
2262 2019-07-22 Martin Liska <mliska@suse.cz>
2263
2264 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
2265 comment.
2266 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
2267
2268 2019-07-22 Martin Liska <mliska@suse.cz>
2269
2270 * lto-section-in.c (lto_get_section_data):
2271 Use new function get_compression.
2272 * lto-streamer-out.c (produce_lto_section): Use
2273 set_compression to encode compression algorithm.
2274 * lto-streamer.h (struct lto_section): Do not
2275 use bitfields in the format.
2276
2277 2019-07-22 Martin Liska <mliska@suse.cz>
2278
2279 PR driver/91172
2280 * opts-common.c (decode_cmdline_option): Decode
2281 argument of -Werror and check it for a wrong language.
2282 * opts-global.c (complain_wrong_lang): Remove such case.
2283
2284 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
2285
2286 * config/arc/arc.c (prepare_move_operands): Always use an
2287 intermediate register when storing a TLS symbols.
2288
2289 2019-07-22 Stafford Horne <shorne@gmail.com>
2290
2291 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
2292 force_reg.
2293
2294 2019-07-22 Stafford Horne <shorne@gmail.com>
2295
2296 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
2297 and munordered-float validations.
2298 * config/or1k/constraints.md (d): New register constraint.
2299 * config/or1k/predicates.md (fp_comparison_operator): New.
2300 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
2301 operands.
2302 (or1k_expand_compare): Normalize unordered comparisons.
2303 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
2304 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
2305 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
2306 * config/or1k/or1k.md (type): Add fpu.
2307 (fpu): New instruction reservation.
2308 (F, f, fr, fi, FI, FOP, fop): New.
2309 (<fop><F:mode>3): New ALU instruction definition.
2310 (float<fi><F:mode>2): New conversion instruction definition.
2311 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
2312 (fpcmpcc): New code iterator.
2313 (*sf_fp_insn): New instruction definition.
2314 (cstore<F:mode>4): New expand definition.
2315 (cbranch<F:mode>4): New expand definition.
2316 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
2317 munordered-float): New options.
2318 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
2319 munordered-float.
2320
2321 2019-07-22 Stafford Horne <shorne@gmail.com>
2322
2323 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
2324 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
2325 documenation to be more clear.
2326 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
2327 more clear.
2328 * config/or1k/or1k.opt (mrori): New option.
2329 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
2330 msfimm, mshftimm): Rewrite documentation to be more clear.
2331 * config/or1k/or1k.md (insn_support): Add ror and rori.
2332 (enabled): Add conditions for ror and rori.
2333 (rotrsi3): Replace condition for shftimm with ror and rori.
2334
2335 2019-07-22 Stafford Horne <shorne@gmail.com>
2336
2337 PR target/90363
2338 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
2339 (extend<mode>si2): Update predicate.
2340 * config/or1k/predicates.md (volatile_mem_operand): New.
2341 (reg_or_mem_operand): New.
2342
2343 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
2344
2345 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
2346 * config/rs6000/rs6000-call.c: ... to here.
2347
2348 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2349
2350 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
2351 memory.
2352
2353 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2354
2355 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
2356
2357 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2358
2359 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
2360
2361 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2362
2363 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
2364 (any_memory_operand): New predicate.
2365 (reg_or_mem_operand): Use it.
2366
2367 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2368
2369 PR target/91204
2370 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
2371
2372 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
2373
2374 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
2375 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
2376
2377 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2378
2379 * tree.def (OMP_LOOP): New tree code.
2380 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
2381 (enum omp_clause_bind_kind): New enum.
2382 (struct tree_omp_clause): Add subcode.bind_kind.
2383 * tree.h (OMP_LOOP_CHECK): Rename to ...
2384 (OMP_LOOPING_CHECK): ... this.
2385 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
2386 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
2387 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
2388 (OMP_CLAUSE_BIND_KIND): Define.
2389 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2390 bind clause entries.
2391 (walk_tree_1): Handle OMP_CLAUSE_BIND.
2392 * tree-pretty-print.c (dump_omp_clause): Likewise.
2393 (dump_generic_node): Handle OMP_LOOP.
2394 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
2395 (in_omp_construct): New variable.
2396 (is_gimple_stmt): Handle OMP_LOOP.
2397 (gimplify_scan_omp_clauses): For lastprivate don't set
2398 check_non_private if code == OMP_LOOP. For reduction clause
2399 on OMP_LOOP combined with parallel or teams propagate as shared
2400 on the combined construct. Handle OMP_CLAUSE_BIND.
2401 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
2402 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
2403 for constructs from a loop construct to gimplify_scan_omp_clauses.
2404 Don't predetermine iterator linear on OMP_SIMD from loop construct.
2405 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
2406 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
2407 to match the implicit ORT_TARGET construct around whole body.
2408 Temporarily clear in_omp_construct when processing body.
2409 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
2410 etc. temporarily set in_omp_construct when processing body.
2411 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
2412 * omp-low.c (struct omp_context): Add loop_p.
2413 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
2414 in that the original var might be private.
2415 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
2416 (check_omp_nesting_restrictions): Adjust nesting restrictions for
2417 addition of loop construct.
2418 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
2419
2420 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
2421 lastprivate non-addressable iterator of a collapse(1) simd.
2422
2423 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
2424
2425 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
2426 as in rs6000.c.
2427
2428 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
2429
2430 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
2431 refer to default conditions. Warn for the 'y' spec which is ignored
2432 by current linkers.
2433
2434 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
2435
2436 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
2437 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2438 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2439 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2440 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2441 init_cumulative_args, rs6000_promote_function_mode,
2442 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2443 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2444 rs6000_function_arg_boundary, rs6000_parm_offset,
2445 rs6000_parm_start, rs6000_arg_size,
2446 rs6000_darwin64_record_arg_advance_flush,
2447 rs6000_darwin64_record_arg_advance_recurse,
2448 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2449 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2450 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2451 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2452 rs6000_finish_function_arg, rs6000_function_arg,
2453 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2454 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2455 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2456 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2457 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2458 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2459 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2460 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2461 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2462 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2463 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2464 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2465 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2466 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2467 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2468 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2469 get_element_number, altivec_expand_vec_set_builtin,
2470 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2471 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2472 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2473 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2474 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2475 rs6000_expand_builtin, rs6000_vector_type,
2476 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2477 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2478 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
2479 to rs6000-call.c.
2480 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
2481 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2482 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2483 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2484 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2485 init_cumulative_args, rs6000_promote_function_mode,
2486 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2487 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2488 rs6000_function_arg_boundary, rs6000_parm_offset,
2489 rs6000_parm_start, rs6000_arg_size,
2490 rs6000_darwin64_record_arg_advance_flush,
2491 rs6000_darwin64_record_arg_advance_recurse,
2492 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2493 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2494 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2495 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2496 rs6000_finish_function_arg, rs6000_function_arg,
2497 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2498 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2499 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2500 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2501 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2502 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2503 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2504 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2505 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2506 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2507 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2508 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2509 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2510 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2511 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2512 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2513 get_element_number, altivec_expand_vec_set_builtin,
2514 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2515 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2516 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2517 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2518 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2519 rs6000_expand_builtin, rs6000_vector_type,
2520 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2521 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2522 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
2523 to here from rs6000.c.
2524 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
2525 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
2526 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
2527 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
2528 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
2529 rs6000_return_in_memory, rs6000_return_in_msb,
2530 rs6000_pass_by_reference, setup_incoming_varargs,
2531 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
2532 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
2533 rs6000_function_arg_padding, rs6000_function_arg,
2534 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
2535 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
2536 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
2537 rs6000_passes_long_double, rs6000_passes_vector,
2538 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
2539 altivec_builtin_mask_for_load) Add declarations.
2540 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
2541 * config/config.gcc: Add new source file rs6000-call.c to garbage
2542 collector and extra_objs.
2543
2544 2019-07-19 Jeff Law <law@redhat.com>
2545
2546 PR tree-optimization/86061
2547 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2548 strncpy. Drop some trivial dead code.
2549 (maybe_trim_memstar_call): Handle strncpy.
2550
2551 2019-07-19 Richard Biener <rguenther@suse.de>
2552
2553 PR tree-optimization/91211
2554 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2555 memset encoding size.
2556
2557 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
2558
2559 PR target/91204
2560 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
2561
2562 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
2563
2564 PR ipa/91194
2565 * ipa-inline.c (recursive_inlining): Fix limits check.
2566
2567 2019-07-19 Richard Biener <rguenther@suse.de>
2568
2569 PR tree-optimization/91200
2570 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
2571 no PHI nodes in middle-bb.
2572
2573 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
2574
2575 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
2576 to +sve-bitperm.
2577 * config/aarch64/aarch64-option-extensions.def: Likewise.
2578
2579 2019-07-19 Jakub Jelinek <jakub@redhat.com>
2580
2581 PR middle-end/91190
2582 * function.c (insert_temp_slot_address): Store into the hash table
2583 a copy of address to avoid RTL sharing issues.
2584
2585 2019-07-19 Richard Biener <rguenther@suse.de>
2586
2587 PR tree-optimization/91207
2588 Revert
2589 2019-07-17 Richard Biener <rguenther@suse.de>
2590
2591 PR tree-optimization/91178
2592 * tree-vect-stmts.c (get_group_load_store_type): For SLP
2593 loads with a gap larger than the vector size always use
2594 VMAT_STRIDED_SLP.
2595 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
2596 avoid loading vectors that are only contained in the gap
2597 and thus are not needed.
2598
2599 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2600
2601 * config/i386/i386.md (*addqi_2_slp): Remove.
2602 (*<code>qi_2_slp): Ditto.
2603
2604 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
2605
2606 * config/rs6000/predicates.md (prefixed_mem_operand): Call
2607 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
2608 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
2609 Rename function from rs6000_prefixed_address.
2610 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2611 TARGET_HAS_TOC.
2612 (TARGET_TOC): Likewise.
2613 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2614 rs6000.h.
2615 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2616 TARGET_HAS_TOC.
2617 (TARGET_TOC): Likewise.
2618 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2619 rs6000.h.
2620 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2621 TARGET_HAS_TOC.
2622 (TARGET_TOC): Likewise.
2623 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2624 check to require -mcmodel=medium for pc-relative addressing.
2625 (create_TOC_reference): Add assertion for TARGET_TOC.
2626 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
2627 TARGET_NO_TOC.
2628 (rs6000_emit_move): Likewise.
2629 (TOC_alias_set): Rename TOC alias set static variable from 'set'
2630 to 'TOC_alias_set'.
2631 (get_TOC_alias_set): Likewise.
2632 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
2633 TARGET_NO_TOC.
2634 (rs6000_can_eliminate): Likewise.
2635 (rs6000_prefixed_address_mode_p): Rename function from
2636 rs6000_prefixed_address.
2637 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
2638 TARGET_HAS_TOC and not pc-relative.
2639 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
2640 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2641 TARGET_HAS_TOC.
2642 (TARGET_TOC): Likewise.
2643 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2644 rs6000.h.
2645
2646 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2647
2648 PR target/91188
2649 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
2650 for operand 0. Do not use (match_dup) to match operand 1 with
2651 operand 0. Add check in insn constraint that either input operand
2652 matches operand 0. Use SWI12 mode iterator to also handle
2653 HImode operands.
2654 (*and<mode>_1_slp): Ditto.
2655 (*<code>qi_1_slp): Ditto.
2656 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
2657 Do not use (match_dup) to match operand 1 with operand 0. Add
2658 check in insn constraint that operand 1 matches operand 0.
2659 Use SWI12 mode iterator to also handle HImode operands.
2660 (*ashl<mode>3_1_slp): Ditto.
2661 (*<shift_insn><mode>3_1_slp): Ditto.
2662 (*<rotate_insn><mode>3_1_slp): Ditto.
2663
2664 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2665
2666 * config/arm/arm-builtins.c
2667 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
2668 (arm_expand_unop_builtin): Likewise.
2669 * config/arm/crypto.md
2670 (crypto_sha1h): Convert from define_insn to define_expand.
2671 (crypto_<crypto_pattern>): Likewise.
2672 (crypto_sha1h_lb): New define_insn.
2673 (crypto_<crypto_pattern>_lb): Likewise.
2674
2675 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2676
2677 PR target/90317
2678 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
2679 (vsha1cq_u32): Likewise.
2680 (vsha1pq_u32): Likewise.
2681 (vsha1mq_u32): Likewise.
2682 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
2683 vec select.
2684 (crypto_sha1c): Correct vec select.
2685 (crypto_sha1m): Likewise.
2686 (crypto_sha1p): Likewise.
2687
2688 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
2689
2690 * config/arm/predicates.md (arm_borrow_operation): New predicate.
2691 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
2692 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
2693 (subdi_zesidi_zesidi): Likewise.
2694 (negdi2_compare, negdi2_insn): Likewise.
2695 (negdi_extensidi): Likewise.
2696 (negdi_zero_extendsidi): Likewise.
2697 (arm_cmpdi_insn): Likewise.
2698 (subsi3_carryin): Use arm_borrow_operation.
2699 (subsi3_carryin_const): Likewise.
2700 (subsi3_carryin_const0): Likewise.
2701 (subsi3_carryin_compare): Likewise.
2702 (subsi3_carryin_compare_const): Likewise.
2703 (subsi3_carryin_compare_const0): Likewise.
2704 (subsi3_carryin_shift): Likewise.
2705 (rsbsi3_carryin_shift): Likewise.
2706 (negsi2_carryin_compare): Likewise.
2707
2708 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
2709
2710 PR tree-optimization/91137
2711 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
2712 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
2713 Init, use and fini the above new field.
2714 (determine_base_object_1): New function.
2715 (determine_base_object): Reimplement using walk_tree.
2716
2717 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
2718
2719 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
2720 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
2721 CLEANUP_FORCE_FAST_DCE is set.
2722 * ifcvt.c (rest_of_handle_if_conversion): Pass
2723 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
2724 if-conversion succeeded.
2725
2726 2019-07-18 Richard Biener <rguenther@suse.de>
2727
2728 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
2729 branches to make code less indented.
2730
2731 2019-07-17 Alexandre Oliva <oliva@adacore.com>
2732
2733 PR middle-end/81824
2734 * attribs.c (decls_mismatched_attributes): Simplify the logic
2735 that avoids duplicates and false positives.
2736
2737 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
2738
2739 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
2740 data into data section when generating PIC code.
2741 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
2742 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
2743 generating code for SOM targets earlier than HP-UX 11. Otherwise,
2744 return 2 for SOM and 0 for other targets.
2745
2746 2019-07-17 Jeff Law <law@redhat.com>
2747
2748 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
2749 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
2750 avoid unexpected switch statement fallthru.
2751
2752 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
2753
2754 * config/i386/i386.md (*add<dwi>3_doubleword):
2755 Remove redundant constraints.
2756 (*add<mode>_1): Ditto.
2757 (*addhi_1): Ditto.
2758 (*addqi_1): Ditto.
2759 (*addqi_1_slp): Ditto.
2760 (*add<mode>_2): Ditto.
2761 (*addv<mode>4): Ditto.
2762 (*sub<dwi>3_doubleword): Ditto.
2763 (*sub<mode>_1): Ditto.
2764 (*subqi_1_slp): Ditto.
2765 (*sub<mode>_2): Ditto.
2766 (*subv<mode>4): Ditto.
2767 (*sub<mode>_3): Ditto.
2768 (@add<mode>3_carry): Ditto.
2769 (@sub<mode>3_carry): Ditto.
2770 (*add<mode>3_cc_overflow_1): Ditto.
2771 (*add<mode>3_zext_cc_overflow_2): Ditto.
2772 (*anddi_1): Ditto.
2773 (*and<mode>_1): Ditto.
2774 (*andqi_1): Ditto.
2775 (*andqi_1_slp): Ditto.
2776 (*anddi_2): Ditto.
2777 (*andqi_2_maybe_si): Ditto.
2778 (*and<mode>_2): Ditto.
2779 (*andqi_2_slp): Ditto.
2780 (*<code><mode>_1): Ditto.
2781 (*<code>qi_1): Ditto.
2782 (*<code>qi_1_slp): Ditto.
2783 (*<code><mode>_2): Ditto.
2784 (*<code>qi_2_slp): Ditto.
2785
2786 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
2787
2788 * alias.c (record_component_aliases): Do not simplify pointed-to
2789 types of ODR types.
2790
2791 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
2792
2793 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
2794 partial reg stall on alternative 2.
2795
2796 2019-07-17 Richard Biener <rguenther@suse.de>
2797
2798 PR tree-optimization/91178
2799 * tree-ssa.c (release_defs_bitset): Iterate from higher to
2800 lower SSA names to avoid quadratic behavior in the common case.
2801 * tree-data-ref.c (split_constant_offset): Add limit argument
2802 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
2803 (split_constant_offset_1): Add limit argument and use it to
2804 limit SSA def walking. Optimize the common plus/minus case.
2805
2806 2019-07-17 Richard Biener <rguenther@suse.de>
2807
2808 PR tree-optimization/91178
2809 * tree-vect-stmts.c (get_group_load_store_type): For SLP
2810 loads with a gap larger than the vector size always use
2811 VMAT_STRIDED_SLP.
2812 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
2813 avoid loading vectors that are only contained in the gap
2814 and thus are not needed.
2815
2816 2019-07-17 Richard Biener <rguenther@suse.de>
2817
2818 PR tree-optimization/91180
2819 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
2820 computation for memset partial defs.
2821
2822 2019-07-17 Jakub Jelinek <jakub@redhat.com>
2823
2824 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
2825 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
2826 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
2827 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
2828 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
2829 * omp-grid.c (grid_process_grid_body,
2830 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
2831 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
2832 == GF_OMP_FOR_KIND_SIMD.
2833 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
2834 check_omp_nesting_restrictions, scan_omp_1_stmt,
2835 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
2836 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
2837 omp_find_scan): Likewise.
2838 * omp-expand.c (expand_omp_for): Likewise.
2839 * omp-general.c (omp_extract_for_data): Likewise.
2840
2841 PR tree-optimization/91157
2842 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
2843 a vector boolean with scalar mode.
2844 (expand_vector_condition): Handle first operand being a vector boolean
2845 with scalar mode.
2846 (expand_vector_operations_1): For comparisons, don't bail out early
2847 if the return type is vector boolean with scalar mode, but comparison
2848 operand type is not.
2849
2850 2019-07-17 Richard Biener <rguenther@suse.de>
2851
2852 PR tree-optimization/91181
2853 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
2854 IFN_LOADs as calls.
2855
2856 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
2857
2858 * config/i386/i386.md (*testdi_1): Match CCZmode for
2859 constants that might have the SImode sign bit set.
2860 (*testqi_1_maybe_si): Remove "!" constraint modifier.
2861 Use correct constraints for pentium pairing.
2862 (*test<mode>_1): Ditto.
2863
2864 2019-07-16 Jeff Law <law@redhat.com>
2865
2866 PR rtl-optimization/91173
2867 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
2868 SSA_NAME with a constant value, fold its value into the offset
2869 and clear the base before calling gen_addr_rtx.
2870
2871 2019-07-16 Jakub Jelinek <jakub@redhat.com>
2872
2873 PR rtl-optimization/91164
2874 * dse.c (rest_of_handle_dse): If dead edges have been purged,
2875 invalidate dominance info.
2876
2877 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
2878
2879 * read-md.h (md_reader::record_potential_iterator_use): Add a
2880 file_location parameter.
2881 * read-rtl.c (attribute_use::loc): New field.
2882 (map_attr_string): Take a file_location parameter. Report cases
2883 in which attributes map to multiple distinct values.
2884 (apply_attribute_uses): Update call accordingly.
2885 (md_reader::handle_overloaded_name): Likewise.
2886 (md_reader::apply_iterator_to_string): Likewise. Skip empty
2887 nonnull strings.
2888 (record_attribute_use): Take a file_location parameter.
2889 Initialize attribute_use::loc.
2890 (md_reader::record_potential_iterator_use): Take a file_location
2891 parameter. Update call to record_attribute_use.
2892 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
2893 (rtx_reader::read_rtx_code): Likewise.
2894 (rtx_reader::read_rtx_operand): Likewise. Record a location
2895 for implicitly-expanded empty strings.
2896
2897 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
2898
2899 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
2900 Use file_location instead of separate fields.
2901 (md_reader::set_md_ptr_loc): Take a file_location instead of a
2902 separate filename and line number.
2903 * read-md.c (ptr_loc): As above.
2904 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
2905 (md_reader::fprint_md_ptr_loc): Likewise.
2906 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
2907 instead of a separate filename and line number.
2908 (md_reader::read_string): Update call accordingly.
2909
2910 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
2911
2912 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
2913 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
2914 leaving the choice between SFDF and P implicit.
2915 (*mov<mode>_update2): Likewise.
2916 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
2917 rather than leaving the choice betweem IBM128 and GPR implicit.
2918 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
2919 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
2920 QHSI implicit.
2921 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
2922 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
2923 * config/rs6000/vsx.md
2924 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
2925 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
2926 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
2927 and VSX_EXTRACT_I implicit.
2928
2929 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
2930
2931 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
2932 Explicitly use <MOVEP1:MODE> for the mode attribute.
2933
2934 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
2935
2936 PR bootstrap/91176
2937 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
2938
2939 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
2940
2941 PR target/91050
2942 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
2943 .machine directive.
2944
2945 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
2946
2947 * config/i386/i386.md (@test<mode>_ccno_1):
2948 Rename from test<mode>_ccno_1.
2949 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
2950 (*testqi_1_maybe_si): Remove modrm attribute.
2951 (*test<mode>_1): Ditto.
2952 * config/i386/i386-expand.c (ix86_split_idivmod): Use
2953 gen_test_ccno_1 and gen_extend_insn.
2954
2955 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
2956
2957 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
2958 to 0.
2959
2960 2019-07-15 Richard Biener <rguenther@suse.de>
2961
2962 PR middle-end/91162
2963 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
2964 node make sure to replace all uses with something valid.
2965
2966 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
2967
2968 PR tree-optimization/88497
2969 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
2970 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
2971 function undistribute_bitref_for_vector.
2972 (undistribute_bitref_for_vector): New function.
2973 (cleanup_vinfo_map): Likewise.
2974 (sort_by_mach_mode): Likewise.
2975
2976 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
2977
2978 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
2979 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
2980 and testdi_ccno_1 using SWI48 mode attribute.
2981 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
2982 x86_64_szext_general_operand.
2983 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
2984 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
2985 instead of genera_operand mode attribute.
2986
2987 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
2988
2989 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
2990 fopen and fclose to their respective types.
2991 (DotFn.invoke): Ditto.
2992
2993 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
2994
2995 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
2996 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
2997 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
2998 (array_index_predicate): Remove.
2999 (analyze_function_body): Account cost for variable ofsetted array
3000 indexing.
3001 (estimate_node_size_and_time): Do not compute array index hint.
3002 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
3003 (inline_read_section): Do not read array index hint.
3004 (ipa_fn_summary_write): Do not write array index hint.
3005 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
3006 * ipa-cp.c (hint_time_bonus): Remove.
3007 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
3008 (ipa_fnsummary): Remove array_index.
3009 * ipa-inline.c (want_inline_small_function_p): Do not use
3010 array_index.
3011 (edge_badness): Likewise.
3012 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
3013
3014 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
3015
3016 PR target/91148
3017 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
3018 superfluous "builtin function" phrasing.
3019
3020 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
3021
3022 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
3023 Break out from ...
3024 (aliasing_component_refs_walk): Break out from ...
3025 (aliasing_component_refs_p): ... here.
3026
3027 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
3028
3029 PR target/91148
3030 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
3031 "builtin function" phrasing.
3032
3033 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3034
3035 PR target/90723
3036 * recog.h (temporary_volatile_ok): New class.
3037 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
3038 volatile_ok temporarily to true using temporary_volatile_ok.
3039 * expr.c (emit_block_move_via_cpymem): Likewise.
3040 * optabs.c (maybe_legitimize_operand): Likewise.
3041
3042 2019-07-13 Jakub Jelinek <jakub@redhat.com>
3043
3044 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
3045 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
3046 uses inside of order(concurrent) constructs.
3047 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
3048 OMP_CLAUSE_ORDER is seen.
3049 * omp-low.c (struct omp_context): Add order_concurrent member.
3050 (scan_sharing_clauses): Set ctx->order_concurrent if
3051 OMP_CLAUSE_ORDER is seen.
3052 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
3053 of simd order(concurrent). Diagnose constructs not allowed inside of
3054 for order(concurrent).
3055 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
3056 complaining about static double setjmp (double); or class static
3057 methods or non-global namespace setjmps.
3058 (omp_runtime_api_call): New function.
3059 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
3060 order(concurrent) loops.
3061
3062 2019-07-12 Martin Sebor <msebor@redhat.com>
3063
3064 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
3065 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
3066 * tree-vrp.c (vrp_prop::check_mem_ref): Use
3067 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3068
3069 2019-07-12 Jan Hubicka <jh@suse.cz>
3070
3071 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
3072 (indirect_refs_may_alias_p): ... here.
3073 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
3074 mem refs in the access paths.
3075
3076 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
3077
3078 PR tree-optimization/89430
3079 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
3080 store elimination for local variable without address escape.
3081
3082 2019-07-12 Jeff Law <law@redhat.com>
3083
3084 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
3085 for the ".far" section.
3086
3087 2019-07-12 Richard Biener <rguenther@suse.de>
3088
3089 PR tree-optimization/91145
3090 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
3091 chain check.
3092
3093 2019-07-12 Alexandre Oliva <oliva@adacore.com>
3094
3095 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
3096 rather than this_state as the lowering context for the ELSE
3097 seq in a GIMPLE_EH_ELSE.
3098
3099 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3100
3101 * vector-builder.h (vector_builder::elt): Allow already-supplied
3102 elements to be read back before building is complete.
3103
3104 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3105
3106 PR rtl-optimization/91136
3107 * df-core.c (ACCESSING REFS): Fix typos in comment.
3108 * resource.c (mark_target_live_reg): Add artificial defs that occur at
3109 the beginning of the block to the initial set of live registers.
3110
3111 2019-07-12 Richard Biener <rguenther@suse.de>
3112
3113 * fold-const.h (get_array_ctor_element_at_index): Adjust.
3114 * fold-const.c (get_array_ctor_element_at_index): Add
3115 ctor_idx output parameter informing the caller where in
3116 the constructor the element was (not) found. Add early exit
3117 for when the ctor is sorted.
3118 * gimple-fold.c (fold_array_ctor_reference): Support constant
3119 folding across multiple array elements.
3120
3121 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3122
3123 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
3124 doesn't have location, set the current location to the function's end.
3125
3126 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3127
3128 * config/aarch64/aarch64.md (*compare_condjump<mode>)
3129 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
3130 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
3131 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
3132 * config/aarch64/aarch64-simd.md
3133 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3134 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
3135 * config/aarch64/aarch64-sve.md
3136 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
3137 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
3138
3139 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3140
3141 * doc/md.texi: Document that @ patterns can have different
3142 numbers of operands.
3143 * genemit.c (handle_overloaded_gen): Handle this case.
3144 * genopinit.c (handle_overloaded_gen): Likewise.
3145 * gensupport.c (replace_operands_with_dups): Iterate over
3146 the new rtx's format rather than the old one's.
3147
3148 2019-07-12 Jakub Jelinek <jakub@redhat.com>
3149
3150 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
3151 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3152 order clause entries.
3153 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
3154 * tree-pretty-print.c (dump_omp_clause): Likewise.
3155 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3156 Likewise.
3157 * omp-low.c (scan_sharing_clauses): Likewise.
3158 * tree-nested.c (convert_nonlocal_omp_clauses,
3159 convert_local_omp_clauses): Likewise.
3160
3161 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
3162
3163 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
3164 fallthrough target of current basic block isn't the placed
3165 right next.
3166
3167 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
3168
3169 PR target/90980
3170 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
3171 (_mm512_storeu_epi64): Likewise.
3172 (_mm512_loadu_epi32): Likewise.
3173 (_mm512_storeu_epi32): Likewise.
3174 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
3175 (_mm_storeu_epi64): Likewise.
3176 (_mm256_storeu_epi32): Likewise.
3177 (_mm_storeu_epi32): Likewise.
3178
3179 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3180
3181 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
3182
3183 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3184
3185 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
3186 Handle Modula-2.
3187
3188 2019-07-11 Jakub Jelinek <jakub@redhat.com>
3189
3190 PR target/91124
3191 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
3192 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3193 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
3194 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
3195 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
3196 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
3197 define_insns.
3198 (ufix_truncv2dfv2si2<mask_name>): Change into ...
3199 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
3200 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
3201 define_insns.
3202 (sse2_cvttpd2dq<mask_name>): Change into ...
3203 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
3204 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
3205 (*sse2_cvtpd2dq<mask_name>): Change into ...
3206 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3207 Add "C" constraint to const0_operand.
3208 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
3209 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
3210 changes.
3211
3212 PR target/91124
3213 * config/i386/i386-builtin-types.def
3214 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
3215 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
3216 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
3217 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
3218 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
3219 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
3220 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
3221 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
3222 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
3223 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
3224 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
3225 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
3226 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
3227 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
3228 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
3229 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
3230 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
3231 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
3232 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
3233 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
3234 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
3235 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
3236 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
3237 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
3238 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
3239 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
3240 __builtin_ia32_vpdpbusd_v4si_maskz,
3241 __builtin_ia32_vpdpbusds_v16si_mask,
3242 __builtin_ia32_vpdpbusds_v16si_maskz,
3243 __builtin_ia32_vpdpbusds_v8si_mask,
3244 __builtin_ia32_vpdpbusds_v8si_maskz,
3245 __builtin_ia32_vpdpbusds_v4si_mask,
3246 __builtin_ia32_vpdpbusds_v4si_maskz,
3247 __builtin_ia32_vpdpwssd_v16si_mask,
3248 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
3249 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
3250 __builtin_ia32_vpdpwssd_v4si_maskz,
3251 __builtin_ia32_vpdpwssds_v16si_mask,
3252 __builtin_ia32_vpdpwssds_v16si_maskz,
3253 __builtin_ia32_vpdpwssds_v8si_mask,
3254 __builtin_ia32_vpdpwssds_v8si_maskz,
3255 __builtin_ia32_vpdpwssds_v4si_mask,
3256 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
3257 suffixed types rather than *_INT.
3258 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
3259 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
3260 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
3261 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
3262 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
3263 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
3264
3265 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
3266
3267 * tree-vrp.c (intersect_ranges): If we know the intersection is
3268 empty, there is no need to conservatively add anything else to
3269 the set.
3270
3271 2019-07-11 Richard Biener <rguenther@suse.de>
3272
3273 PR middle-end/91131
3274 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
3275 when the object is volatile and we have not cleared it even though
3276 there are no nonzero elements.
3277
3278 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
3279
3280 * config/rs6000/predicates.md (cint34_operand): Update
3281 SIGNED_34BIT_OFFSET_P call.
3282 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
3283 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
3284 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
3285 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
3286 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
3287 argument.
3288 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
3289 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
3290 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
3291 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
3292 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
3293
3294 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
3295
3296 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
3297 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
3298 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
3299 (DEF_MIN_OSX_VERSION): New.
3300
3301 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3302
3303 * fold-const.c (fold_relational_const): Fix folding of
3304 vector-to-scalar NE_EXPRs.
3305 (test_vector_folding): Add more tests.
3306
3307 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3308
3309 PR target/91060
3310 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
3311 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
3312 (vec_setv2di_internal): Reexpress as...
3313 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
3314 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
3315 rather than gen_neon_vset_lane<mode>.
3316
3317 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
3318
3319 PR target/91102
3320 * lra-constraints.c (process_alt_operands): Don't match user
3321 defined regs only if they are early clobbers.
3322
3323 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
3324
3325 * wide-int.h (wi::lshift): Reject negative values for the fast path.
3326
3327 2019-07-10 Richard Biener <rguenther@suse.de>
3328
3329 PR tree-optimization/91126
3330 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
3331 native encoding offset for BYTES_BIG_ENDIAN.
3332 (vn_reference_lookup_3): Likewise.
3333
3334 2019-07-10 Richard Biener <rguenther@suse.de>
3335
3336 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
3337 LHS whenever possible.
3338
3339 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
3340
3341 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
3342 from ...; work also on duplicated types.
3343 (nonoverlapping_component_refs_since_match): ... here
3344 (ncr_type_uid): Break out from ...
3345 (ncr_compar): ... here; look for TYPE_UID of canonical type if
3346 available.
3347 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
3348 the types and nonoverlapping_component_refs_p_1 to disambiguate.
3349
3350 2019-07-09 Martin Sebor <msebor@redhat.com>
3351
3352 PR tree-optimization/90989
3353 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
3354 optimization to just single character stores.
3355
3356 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
3357
3358 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
3359 Swap operands only once.
3360
3361 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3362
3363 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
3364 for both call instructions.
3365
3366 2019-07-09 John Darrington <john@darrington.wattle.id.au>
3367
3368 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
3369 rather than GET_MODE_BITSIZE to better handle partial integer modes.
3370
3371 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
3372
3373 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
3374 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
3375 function from rs6000-logue.c back to rs6000.c.
3376 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
3377
3378 2019-07-09 Martin Sebor <msebor@redhat.com>
3379
3380 PR c++/61339
3381 * auto-profile.c: Change class-key of PODs to struct and others
3382 to class.
3383 * basic-block.h: Same.
3384 * bitmap.c (bitmap_alloc): Same.
3385 * bitmap.h: Same.
3386 * builtins.c (expand_builtin_prefetch): Same.
3387 (expand_builtin_interclass_mathfn): Same.
3388 (expand_builtin_strlen): Same.
3389 (expand_builtin_mempcpy_args): Same.
3390 (expand_cmpstr): Same.
3391 (expand_builtin___clear_cache): Same.
3392 (expand_ifn_atomic_bit_test_and): Same.
3393 (expand_builtin_thread_pointer): Same.
3394 (expand_builtin_set_thread_pointer): Same.
3395 * caller-save.c (setup_save_areas): Same.
3396 (replace_reg_with_saved_mem): Same.
3397 (insert_restore): Same.
3398 (insert_save): Same.
3399 (add_used_regs): Same.
3400 * cfg.c (get_bb_copy): Same.
3401 (set_loop_copy): Same.
3402 * cfg.h: Same.
3403 * cfganal.h: Same.
3404 * cfgexpand.c (alloc_stack_frame_space): Same.
3405 (add_stack_var): Same.
3406 (add_stack_var_conflict): Same.
3407 (add_scope_conflicts_1): Same.
3408 (update_alias_info_with_stack_vars): Same.
3409 (expand_used_vars): Same.
3410 * cfghooks.c (redirect_edge_and_branch_force): Same.
3411 (delete_basic_block): Same.
3412 (split_edge): Same.
3413 (make_forwarder_block): Same.
3414 (force_nonfallthru): Same.
3415 (duplicate_block): Same.
3416 (lv_flush_pending_stmts): Same.
3417 * cfghooks.h: Same.
3418 * cfgloop.c (flow_loops_cfg_dump): Same.
3419 (flow_loop_nested_p): Same.
3420 (superloop_at_depth): Same.
3421 (get_loop_latch_edges): Same.
3422 (flow_loop_dump): Same.
3423 (flow_loops_dump): Same.
3424 (flow_loops_free): Same.
3425 (flow_loop_nodes_find): Same.
3426 (establish_preds): Same.
3427 (flow_loop_tree_node_add): Same.
3428 (flow_loop_tree_node_remove): Same.
3429 (flow_loops_find): Same.
3430 (find_subloop_latch_edge_by_profile): Same.
3431 (find_subloop_latch_edge_by_ivs): Same.
3432 (mfb_redirect_edges_in_set): Same.
3433 (form_subloop): Same.
3434 (merge_latch_edges): Same.
3435 (disambiguate_multiple_latches): Same.
3436 (disambiguate_loops_with_multiple_latches): Same.
3437 (flow_bb_inside_loop_p): Same.
3438 (glb_enum_p): Same.
3439 (get_loop_body_with_size): Same.
3440 (get_loop_body): Same.
3441 (fill_sons_in_loop): Same.
3442 (get_loop_body_in_dom_order): Same.
3443 (get_loop_body_in_custom_order): Same.
3444 (release_recorded_exits): Same.
3445 (get_loop_exit_edges): Same.
3446 (num_loop_branches): Same.
3447 (remove_bb_from_loops): Same.
3448 (find_common_loop): Same.
3449 (delete_loop): Same.
3450 (cancel_loop): Same.
3451 (verify_loop_structure): Same.
3452 (loop_preheader_edge): Same.
3453 (loop_exit_edge_p): Same.
3454 (single_exit): Same.
3455 (loop_exits_to_bb_p): Same.
3456 (loop_exits_from_bb_p): Same.
3457 (get_loop_location): Same.
3458 (record_niter_bound): Same.
3459 (get_estimated_loop_iterations_int): Same.
3460 (max_stmt_executions_int): Same.
3461 (likely_max_stmt_executions_int): Same.
3462 (get_estimated_loop_iterations): Same.
3463 (get_max_loop_iterations): Same.
3464 (get_max_loop_iterations_int): Same.
3465 (get_likely_max_loop_iterations): Same.
3466 * cfgloop.h (simple_loop_desc): Same.
3467 (get_loop): Same.
3468 (loop_depth): Same.
3469 (loop_outer): Same.
3470 (loop_iterator::next): Same.
3471 (loop_outermost): Same.
3472 * cfgloopanal.c (mark_irreducible_loops): Same.
3473 (num_loop_insns): Same.
3474 (average_num_loop_insns): Same.
3475 (expected_loop_iterations_unbounded): Same.
3476 (expected_loop_iterations): Same.
3477 (mark_loop_exit_edges): Same.
3478 (single_likely_exit): Same.
3479 * cfgloopmanip.c (fix_bb_placement): Same.
3480 (fix_bb_placements): Same.
3481 (remove_path): Same.
3482 (place_new_loop): Same.
3483 (add_loop): Same.
3484 (scale_loop_frequencies): Same.
3485 (scale_loop_profile): Same.
3486 (create_empty_if_region_on_edge): Same.
3487 (create_empty_loop_on_edge): Same.
3488 (loopify): Same.
3489 (unloop): Same.
3490 (fix_loop_placements): Same.
3491 (copy_loop_info): Same.
3492 (duplicate_loop): Same.
3493 (duplicate_subloops): Same.
3494 (loop_redirect_edge): Same.
3495 (can_duplicate_loop_p): Same.
3496 (duplicate_loop_to_header_edge): Same.
3497 (mfb_keep_just): Same.
3498 (has_preds_from_loop): Same.
3499 (create_preheader): Same.
3500 (create_preheaders): Same.
3501 (lv_adjust_loop_entry_edge): Same.
3502 (loop_version): Same.
3503 * cfgloopmanip.h: Same.
3504 * cgraph.h: Same.
3505 * cgraphbuild.c: Same.
3506 * combine.c (make_extraction): Same.
3507 * config/i386/i386-features.c: Same.
3508 * config/i386/i386-features.h: Same.
3509 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
3510 (ix86_emit_outlined_ms2sysv_restore): Same.
3511 (ix86_noce_conversion_profitable_p): Same.
3512 (ix86_init_cost): Same.
3513 (ix86_simd_clone_usable): Same.
3514 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
3515 Wstruct-not-pod.
3516 * coretypes.h: Same.
3517 * data-streamer-in.c (string_for_index): Change class-key of PODs
3518 to struct and others to class.
3519 (streamer_read_indexed_string): Same.
3520 (streamer_read_string): Same.
3521 (bp_unpack_indexed_string): Same.
3522 (bp_unpack_string): Same.
3523 (streamer_read_uhwi): Same.
3524 (streamer_read_hwi): Same.
3525 (streamer_read_gcov_count): Same.
3526 (streamer_read_wide_int): Same.
3527 * data-streamer.h (streamer_write_bitpack): Same.
3528 (bp_unpack_value): Same.
3529 (streamer_write_char_stream): Same.
3530 (streamer_write_hwi_in_range): Same.
3531 (streamer_write_record_start): Same.
3532 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
3533 (add_cross_iteration_register_deps): Same.
3534 (build_intra_loop_deps): Same.
3535 * df-core.c (df_analyze): Same.
3536 (loop_post_order_compute): Same.
3537 (loop_inverted_post_order_compute): Same.
3538 * df-problems.c (df_rd_alloc): Same.
3539 (df_rd_simulate_one_insn): Same.
3540 (df_rd_local_compute): Same.
3541 (df_rd_init_solution): Same.
3542 (df_rd_confluence_n): Same.
3543 (df_rd_transfer_function): Same.
3544 (df_rd_free): Same.
3545 (df_rd_dump_defs_set): Same.
3546 (df_rd_top_dump): Same.
3547 (df_lr_alloc): Same.
3548 (df_lr_reset): Same.
3549 (df_lr_local_compute): Same.
3550 (df_lr_init): Same.
3551 (df_lr_confluence_n): Same.
3552 (df_lr_free): Same.
3553 (df_lr_top_dump): Same.
3554 (df_lr_verify_transfer_functions): Same.
3555 (df_live_alloc): Same.
3556 (df_live_reset): Same.
3557 (df_live_init): Same.
3558 (df_live_confluence_n): Same.
3559 (df_live_finalize): Same.
3560 (df_live_free): Same.
3561 (df_live_top_dump): Same.
3562 (df_live_verify_transfer_functions): Same.
3563 (df_mir_alloc): Same.
3564 (df_mir_reset): Same.
3565 (df_mir_init): Same.
3566 (df_mir_confluence_n): Same.
3567 (df_mir_free): Same.
3568 (df_mir_top_dump): Same.
3569 (df_word_lr_alloc): Same.
3570 (df_word_lr_reset): Same.
3571 (df_word_lr_init): Same.
3572 (df_word_lr_confluence_n): Same.
3573 (df_word_lr_free): Same.
3574 (df_word_lr_top_dump): Same.
3575 (df_md_alloc): Same.
3576 (df_md_simulate_one_insn): Same.
3577 (df_md_reset): Same.
3578 (df_md_init): Same.
3579 (df_md_free): Same.
3580 (df_md_top_dump): Same.
3581 * df-scan.c (df_insn_delete): Same.
3582 (df_insn_rescan): Same.
3583 (df_notes_rescan): Same.
3584 (df_sort_and_compress_mws): Same.
3585 (df_install_mws): Same.
3586 (df_refs_add_to_chains): Same.
3587 (df_ref_create_structure): Same.
3588 (df_ref_record): Same.
3589 (df_def_record_1): Same.
3590 (df_find_hard_reg_defs): Same.
3591 (df_uses_record): Same.
3592 (df_get_conditional_uses): Same.
3593 (df_get_call_refs): Same.
3594 (df_recompute_luids): Same.
3595 (df_get_entry_block_def_set): Same.
3596 (df_entry_block_defs_collect): Same.
3597 (df_get_exit_block_use_set): Same.
3598 (df_exit_block_uses_collect): Same.
3599 (df_mws_verify): Same.
3600 (df_bb_verify): Same.
3601 * df.h (df_scan_get_bb_info): Same.
3602 * doc/tm.texi: Same.
3603 * dse.c (record_store): Same.
3604 * dumpfile.h: Same.
3605 * emit-rtl.c (const_fixed_hasher::equal): Same.
3606 (set_mem_attributes_minus_bitpos): Same.
3607 (change_address): Same.
3608 (adjust_address_1): Same.
3609 (offset_address): Same.
3610 * emit-rtl.h: Same.
3611 * except.c (dw2_build_landing_pads): Same.
3612 (sjlj_emit_dispatch_table): Same.
3613 * explow.c (allocate_dynamic_stack_space): Same.
3614 (emit_stack_probe): Same.
3615 (probe_stack_range): Same.
3616 * expmed.c (store_bit_field_using_insv): Same.
3617 (store_bit_field_1): Same.
3618 (store_integral_bit_field): Same.
3619 (extract_bit_field_using_extv): Same.
3620 (extract_bit_field_1): Same.
3621 (emit_cstore): Same.
3622 * expr.c (emit_block_move_via_cpymem): Same.
3623 (expand_cmpstrn_or_cmpmem): Same.
3624 (set_storage_via_setmem): Same.
3625 (emit_single_push_insn_1): Same.
3626 (expand_assignment): Same.
3627 (store_constructor): Same.
3628 (expand_expr_real_2): Same.
3629 (expand_expr_real_1): Same.
3630 (try_casesi): Same.
3631 * flags.h: Same.
3632 * function.c (try_fit_stack_local): Same.
3633 (assign_stack_local_1): Same.
3634 (assign_stack_local): Same.
3635 (cut_slot_from_list): Same.
3636 (insert_slot_to_list): Same.
3637 (max_slot_level): Same.
3638 (move_slot_to_level): Same.
3639 (temp_address_hasher::equal): Same.
3640 (remove_unused_temp_slot_addresses): Same.
3641 (assign_temp): Same.
3642 (combine_temp_slots): Same.
3643 (update_temp_slot_address): Same.
3644 (preserve_temp_slots): Same.
3645 * function.h: Same.
3646 * fwprop.c: Same.
3647 * gcc-rich-location.h: Same.
3648 * gcov.c: Same.
3649 * genattrtab.c (check_attr_test): Same.
3650 (check_attr_value): Same.
3651 (convert_set_attr_alternative): Same.
3652 (convert_set_attr): Same.
3653 (check_defs): Same.
3654 (copy_boolean): Same.
3655 (get_attr_value): Same.
3656 (expand_delays): Same.
3657 (make_length_attrs): Same.
3658 (min_fn): Same.
3659 (make_alternative_compare): Same.
3660 (simplify_test_exp): Same.
3661 (tests_attr_p): Same.
3662 (get_attr_order): Same.
3663 (clear_struct_flag): Same.
3664 (gen_attr): Same.
3665 (compares_alternatives_p): Same.
3666 (gen_insn): Same.
3667 (gen_delay): Same.
3668 (find_attrs_to_cache): Same.
3669 (write_test_expr): Same.
3670 (walk_attr_value): Same.
3671 (write_attr_get): Same.
3672 (eliminate_known_true): Same.
3673 (write_insn_cases): Same.
3674 (write_attr_case): Same.
3675 (write_attr_valueq): Same.
3676 (write_attr_value): Same.
3677 (write_dummy_eligible_delay): Same.
3678 (next_comma_elt): Same.
3679 (find_attr): Same.
3680 (make_internal_attr): Same.
3681 (copy_rtx_unchanging): Same.
3682 (gen_insn_reserv): Same.
3683 (check_tune_attr): Same.
3684 (make_automaton_attrs): Same.
3685 (handle_arg): Same.
3686 * genextract.c (gen_insn): Same.
3687 (VEC_char_to_string): Same.
3688 * genmatch.c (print_operand): Same.
3689 (lower): Same.
3690 (parser::parse_operation): Same.
3691 (parser::parse_capture): Same.
3692 (parser::parse_c_expr): Same.
3693 (parser::parse_simplify): Same.
3694 (main): Same.
3695 * genoutput.c (output_operand_data): Same.
3696 (output_get_insn_name): Same.
3697 (compare_operands): Same.
3698 (place_operands): Same.
3699 (process_template): Same.
3700 (validate_insn_alternatives): Same.
3701 (validate_insn_operands): Same.
3702 (gen_expand): Same.
3703 (note_constraint): Same.
3704 * genpreds.c (write_one_predicate_function): Same.
3705 (add_constraint): Same.
3706 (process_define_register_constraint): Same.
3707 (write_lookup_constraint_1): Same.
3708 (write_lookup_constraint_array): Same.
3709 (write_insn_constraint_len): Same.
3710 (write_reg_class_for_constraint_1): Same.
3711 (write_constraint_satisfied_p_array): Same.
3712 * genrecog.c (optimize_subroutine_group): Same.
3713 * gensupport.c (process_define_predicate): Same.
3714 (queue_pattern): Same.
3715 (remove_from_queue): Same.
3716 (process_rtx): Same.
3717 (is_predicable): Same.
3718 (change_subst_attribute): Same.
3719 (subst_pattern_match): Same.
3720 (alter_constraints): Same.
3721 (alter_attrs_for_insn): Same.
3722 (shift_output_template): Same.
3723 (alter_output_for_subst_insn): Same.
3724 (process_one_cond_exec): Same.
3725 (subst_dup): Same.
3726 (process_define_cond_exec): Same.
3727 (mnemonic_htab_callback): Same.
3728 (gen_mnemonic_attr): Same.
3729 (read_md_rtx): Same.
3730 * ggc-page.c: Same.
3731 * gimple-loop-interchange.cc (dump_reduction): Same.
3732 (dump_induction): Same.
3733 (loop_cand::~loop_cand): Same.
3734 (free_data_refs_with_aux): Same.
3735 (tree_loop_interchange::interchange_loops): Same.
3736 (tree_loop_interchange::map_inductions_to_loop): Same.
3737 (tree_loop_interchange::move_code_to_inner_loop): Same.
3738 (compute_access_stride): Same.
3739 (compute_access_strides): Same.
3740 (proper_loop_form_for_interchange): Same.
3741 (tree_loop_interchange_compute_ddrs): Same.
3742 (prune_datarefs_not_in_loop): Same.
3743 (prepare_data_references): Same.
3744 (pass_linterchange::execute): Same.
3745 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
3746 (unroll_jam_possible_p): Same.
3747 (fuse_loops): Same.
3748 (adjust_unroll_factor): Same.
3749 (tree_loop_unroll_and_jam): Same.
3750 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
3751 (loop_versioning::expensive_stmt_p): Same.
3752 (loop_versioning::version_for_unity): Same.
3753 (loop_versioning::dump_inner_likelihood): Same.
3754 (loop_versioning::find_per_loop_multiplication): Same.
3755 (loop_versioning::analyze_term_using_scevs): Same.
3756 (loop_versioning::record_address_fragment): Same.
3757 (loop_versioning::analyze_expr): Same.
3758 (loop_versioning::analyze_blocks): Same.
3759 (loop_versioning::prune_conditions): Same.
3760 (loop_versioning::merge_loop_info): Same.
3761 (loop_versioning::add_loop_to_queue): Same.
3762 (loop_versioning::decide_whether_loop_is_versionable): Same.
3763 (loop_versioning::make_versioning_decisions): Same.
3764 (loop_versioning::implement_versioning_decisions): Same.
3765 * gimple-ssa-evrp-analyze.c
3766 (evrp_range_analyzer::record_ranges_from_phis): Same.
3767 * gimple-ssa-store-merging.c (split_store::split_store): Same.
3768 (count_multiple_uses): Same.
3769 (split_group): Same.
3770 (imm_store_chain_info::output_merged_store): Same.
3771 (pass_store_merging::process_store): Same.
3772 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
3773 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
3774 (is_max): Same.
3775 (alloca_call_type): Same.
3776 (pass_walloca::execute): Same.
3777 * gimple-streamer-in.c (input_phi): Same.
3778 (input_gimple_stmt): Same.
3779 * gimple-streamer.h: Same.
3780 * godump.c (go_force_record_alignment): Same.
3781 (go_format_type): Same.
3782 (go_output_type): Same.
3783 (go_output_fndecl): Same.
3784 (go_output_typedef): Same.
3785 (keyword_hash_init): Same.
3786 (find_dummy_types): Same.
3787 * graph.c (draw_cfg_nodes_no_loops): Same.
3788 (draw_cfg_nodes_for_loop): Same.
3789 * hard-reg-set.h (hard_reg_set_iter_next): Same.
3790 * hsa-brig.c: Same.
3791 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
3792 * hsa-dump.c (dump_hsa_cfun): Same.
3793 * hsa-gen.c (gen_function_def_parameters): Same.
3794 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
3795 * input.c (dump_line_table_statistics): Same.
3796 (test_lexer): Same.
3797 * input.h: Same.
3798 * internal-fn.c (get_multi_vector_move): Same.
3799 (expand_load_lanes_optab_fn): Same.
3800 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
3801 (expand_GOMP_SIMT_EXIT): Same.
3802 (expand_GOMP_SIMT_LAST_LANE): Same.
3803 (expand_GOMP_SIMT_ORDERED_PRED): Same.
3804 (expand_GOMP_SIMT_VOTE_ANY): Same.
3805 (expand_GOMP_SIMT_XCHG_BFLY): Same.
3806 (expand_GOMP_SIMT_XCHG_IDX): Same.
3807 (expand_addsub_overflow): Same.
3808 (expand_neg_overflow): Same.
3809 (expand_mul_overflow): Same.
3810 (expand_call_mem_ref): Same.
3811 (expand_mask_load_optab_fn): Same.
3812 (expand_scatter_store_optab_fn): Same.
3813 (expand_gather_load_optab_fn): Same.
3814 * ipa-cp.c (ipa_get_parm_lattices): Same.
3815 (print_all_lattices): Same.
3816 (ignore_edge_p): Same.
3817 (build_toporder_info): Same.
3818 (free_toporder_info): Same.
3819 (push_node_to_stack): Same.
3820 (ipcp_lattice<valtype>::set_contains_variable): Same.
3821 (set_agg_lats_to_bottom): Same.
3822 (ipcp_bits_lattice::meet_with): Same.
3823 (set_single_call_flag): Same.
3824 (initialize_node_lattices): Same.
3825 (ipa_get_jf_ancestor_result): Same.
3826 (ipcp_verify_propagated_values): Same.
3827 (propagate_scalar_across_jump_function): Same.
3828 (propagate_context_across_jump_function): Same.
3829 (propagate_bits_across_jump_function): Same.
3830 (ipa_vr_operation_and_type_effects): Same.
3831 (propagate_vr_across_jump_function): Same.
3832 (set_check_aggs_by_ref): Same.
3833 (set_chain_of_aglats_contains_variable): Same.
3834 (merge_aggregate_lattices): Same.
3835 (agg_pass_through_permissible_p): Same.
3836 (propagate_aggs_across_jump_function): Same.
3837 (call_passes_through_thunk_p): Same.
3838 (propagate_constants_across_call): Same.
3839 (devirtualization_time_bonus): Same.
3840 (good_cloning_opportunity_p): Same.
3841 (context_independent_aggregate_values): Same.
3842 (gather_context_independent_values): Same.
3843 (perform_estimation_of_a_value): Same.
3844 (estimate_local_effects): Same.
3845 (value_topo_info<valtype>::add_val): Same.
3846 (add_all_node_vals_to_toposort): Same.
3847 (value_topo_info<valtype>::propagate_effects): Same.
3848 (ipcp_propagate_stage): Same.
3849 (ipcp_discover_new_direct_edges): Same.
3850 (same_node_or_its_all_contexts_clone_p): Same.
3851 (cgraph_edge_brings_value_p): Same.
3852 (gather_edges_for_value): Same.
3853 (create_specialized_node): Same.
3854 (find_more_scalar_values_for_callers_subset): Same.
3855 (find_more_contexts_for_caller_subset): Same.
3856 (copy_plats_to_inter): Same.
3857 (intersect_aggregates_with_edge): Same.
3858 (find_aggregate_values_for_callers_subset): Same.
3859 (cgraph_edge_brings_all_agg_vals_for_node): Same.
3860 (decide_about_value): Same.
3861 (decide_whether_version_node): Same.
3862 (spread_undeadness): Same.
3863 (identify_dead_nodes): Same.
3864 (ipcp_store_vr_results): Same.
3865 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
3866 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
3867 (redirect_to_unreachable): Same.
3868 (edge_set_predicate): Same.
3869 (evaluate_conditions_for_known_args): Same.
3870 (evaluate_properties_for_edge): Same.
3871 (ipa_fn_summary_t::duplicate): Same.
3872 (ipa_call_summary_t::duplicate): Same.
3873 (dump_ipa_call_summary): Same.
3874 (ipa_dump_fn_summary): Same.
3875 (eliminated_by_inlining_prob): Same.
3876 (set_cond_stmt_execution_predicate): Same.
3877 (set_switch_stmt_execution_predicate): Same.
3878 (compute_bb_predicates): Same.
3879 (will_be_nonconstant_expr_predicate): Same.
3880 (phi_result_unknown_predicate): Same.
3881 (analyze_function_body): Same.
3882 (compute_fn_summary): Same.
3883 (estimate_edge_devirt_benefit): Same.
3884 (estimate_edge_size_and_time): Same.
3885 (estimate_calls_size_and_time): Same.
3886 (estimate_node_size_and_time): Same.
3887 (remap_edge_change_prob): Same.
3888 (remap_edge_summaries): Same.
3889 (ipa_merge_fn_summary_after_inlining): Same.
3890 (ipa_fn_summary_generate): Same.
3891 (inline_read_section): Same.
3892 (ipa_fn_summary_read): Same.
3893 (ipa_fn_summary_write): Same.
3894 * ipa-fnsummary.h: Same.
3895 * ipa-hsa.c (ipa_hsa_read_section): Same.
3896 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
3897 * ipa-icf.c (sem_function::param_used_p): Same.
3898 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
3899 * ipa-inline.c (edge_badness): Same.
3900 (inline_small_functions): Same.
3901 * ipa-polymorphic-call.c
3902 (ipa_polymorphic_call_context::stream_out): Same.
3903 * ipa-predicate.c (predicate::remap_after_duplication): Same.
3904 (predicate::remap_after_inlining): Same.
3905 (predicate::stream_out): Same.
3906 * ipa-predicate.h: Same.
3907 * ipa-profile.c (ipa_profile_read_summary): Same.
3908 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
3909 (count_formal_params): Same.
3910 (ipa_dump_param): Same.
3911 (ipa_alloc_node_params): Same.
3912 (ipa_print_node_jump_functions_for_edge): Same.
3913 (ipa_print_node_jump_functions): Same.
3914 (ipa_load_from_parm_agg): Same.
3915 (get_ancestor_addr_info): Same.
3916 (ipa_compute_jump_functions_for_edge): Same.
3917 (ipa_analyze_virtual_call_uses): Same.
3918 (ipa_analyze_stmt_uses): Same.
3919 (ipa_analyze_params_uses_in_bb): Same.
3920 (update_jump_functions_after_inlining): Same.
3921 (try_decrement_rdesc_refcount): Same.
3922 (ipa_impossible_devirt_target): Same.
3923 (update_indirect_edges_after_inlining): Same.
3924 (combine_controlled_uses_counters): Same.
3925 (ipa_edge_args_sum_t::duplicate): Same.
3926 (ipa_write_jump_function): Same.
3927 (ipa_write_indirect_edge_info): Same.
3928 (ipa_write_node_info): Same.
3929 (ipa_read_edge_info): Same.
3930 (ipa_prop_read_section): Same.
3931 (read_replacements_section): Same.
3932 * ipa-prop.h (ipa_get_param_count): Same.
3933 (ipa_get_param): Same.
3934 (ipa_get_type): Same.
3935 (ipa_get_param_move_cost): Same.
3936 (ipa_set_param_used): Same.
3937 (ipa_get_controlled_uses): Same.
3938 (ipa_set_controlled_uses): Same.
3939 (ipa_get_cs_argument_count): Same.
3940 * ipa-pure-const.c (analyze_function): Same.
3941 (pure_const_read_summary): Same.
3942 * ipa-ref.h: Same.
3943 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
3944 * ipa-split.c (test_nonssa_use): Same.
3945 (dump_split_point): Same.
3946 (dominated_by_forbidden): Same.
3947 (split_part_set_ssa_name_p): Same.
3948 (find_split_points): Same.
3949 * ira-build.c (finish_loop_tree_nodes): Same.
3950 (low_pressure_loop_node_p): Same.
3951 * ira-color.c (ira_reuse_stack_slot): Same.
3952 * ira-int.h: Same.
3953 * ira.c (setup_reg_equiv): Same.
3954 (print_insn_chain): Same.
3955 (ira): Same.
3956 * loop-doloop.c (doloop_condition_get): Same.
3957 (add_test): Same.
3958 (record_reg_sets): Same.
3959 (doloop_optimize): Same.
3960 * loop-init.c (loop_optimizer_init): Same.
3961 (fix_loop_structure): Same.
3962 * loop-invariant.c (merge_identical_invariants): Same.
3963 (compute_always_reached): Same.
3964 (find_exits): Same.
3965 (may_assign_reg_p): Same.
3966 (find_invariants_bb): Same.
3967 (find_invariants_body): Same.
3968 (replace_uses): Same.
3969 (can_move_invariant_reg): Same.
3970 (free_inv_motion_data): Same.
3971 (move_single_loop_invariants): Same.
3972 (change_pressure): Same.
3973 (mark_ref_regs): Same.
3974 (calculate_loop_reg_pressure): Same.
3975 * loop-iv.c (biv_entry_hasher::equal): Same.
3976 (iv_extend_to_rtx_code): Same.
3977 (check_iv_ref_table_size): Same.
3978 (clear_iv_info): Same.
3979 (latch_dominating_def): Same.
3980 (iv_get_reaching_def): Same.
3981 (iv_constant): Same.
3982 (iv_subreg): Same.
3983 (iv_extend): Same.
3984 (iv_neg): Same.
3985 (iv_add): Same.
3986 (iv_mult): Same.
3987 (get_biv_step): Same.
3988 (record_iv): Same.
3989 (analyzed_for_bivness_p): Same.
3990 (record_biv): Same.
3991 (iv_analyze_biv): Same.
3992 (iv_analyze_expr): Same.
3993 (iv_analyze_def): Same.
3994 (iv_analyze_op): Same.
3995 (iv_analyze): Same.
3996 (iv_analyze_result): Same.
3997 (biv_p): Same.
3998 (eliminate_implied_conditions): Same.
3999 (simplify_using_initial_values): Same.
4000 (shorten_into_mode): Same.
4001 (canonicalize_iv_subregs): Same.
4002 (determine_max_iter): Same.
4003 (check_simple_exit): Same.
4004 (find_simple_exit): Same.
4005 (get_simple_loop_desc): Same.
4006 * loop-unroll.c (report_unroll): Same.
4007 (decide_unrolling): Same.
4008 (unroll_loops): Same.
4009 (loop_exit_at_end_p): Same.
4010 (decide_unroll_constant_iterations): Same.
4011 (unroll_loop_constant_iterations): Same.
4012 (compare_and_jump_seq): Same.
4013 (unroll_loop_runtime_iterations): Same.
4014 (decide_unroll_stupid): Same.
4015 (unroll_loop_stupid): Same.
4016 (referenced_in_one_insn_in_loop_p): Same.
4017 (reset_debug_uses_in_loop): Same.
4018 (analyze_iv_to_split_insn): Same.
4019 * lra-eliminations.c (lra_debug_elim_table): Same.
4020 (setup_can_eliminate): Same.
4021 (form_sum): Same.
4022 (lra_get_elimination_hard_regno): Same.
4023 (lra_eliminate_regs_1): Same.
4024 (eliminate_regs_in_insn): Same.
4025 (update_reg_eliminate): Same.
4026 (init_elimination): Same.
4027 (lra_eliminate): Same.
4028 * lra-int.h: Same.
4029 * lra-lives.c (initiate_live_solver): Same.
4030 * lra-remat.c (create_remat_bb_data): Same.
4031 * lra-spills.c (lra_spill): Same.
4032 * lra.c (lra_set_insn_recog_data): Same.
4033 (lra_set_used_insn_alternative_by_uid): Same.
4034 (init_reg_info): Same.
4035 (expand_reg_info): Same.
4036 * lto-cgraph.c (output_symtab): Same.
4037 (read_identifier): Same.
4038 (get_alias_symbol): Same.
4039 (input_node): Same.
4040 (input_varpool_node): Same.
4041 (input_ref): Same.
4042 (input_edge): Same.
4043 (input_cgraph_1): Same.
4044 (input_refs): Same.
4045 (input_symtab): Same.
4046 (input_offload_tables): Same.
4047 (output_cgraph_opt_summary): Same.
4048 (input_edge_opt_summary): Same.
4049 (input_cgraph_opt_section): Same.
4050 * lto-section-in.c (lto_free_raw_section_data): Same.
4051 (lto_create_simple_input_block): Same.
4052 (lto_free_function_in_decl_state_for_node): Same.
4053 * lto-streamer-in.c (lto_tag_check_set): Same.
4054 (lto_location_cache::revert_location_cache): Same.
4055 (lto_location_cache::input_location): Same.
4056 (lto_input_location): Same.
4057 (stream_input_location_now): Same.
4058 (lto_input_tree_ref): Same.
4059 (lto_input_eh_catch_list): Same.
4060 (input_eh_region): Same.
4061 (lto_init_eh): Same.
4062 (make_new_block): Same.
4063 (input_cfg): Same.
4064 (fixup_call_stmt_edges): Same.
4065 (input_struct_function_base): Same.
4066 (input_function): Same.
4067 (lto_read_body_or_constructor): Same.
4068 (lto_read_tree_1): Same.
4069 (lto_read_tree): Same.
4070 (lto_input_scc): Same.
4071 (lto_input_tree_1): Same.
4072 (lto_input_toplevel_asms): Same.
4073 (lto_input_mode_table): Same.
4074 (lto_reader_init): Same.
4075 (lto_data_in_create): Same.
4076 * lto-streamer-out.c (output_cfg): Same.
4077 * lto-streamer.h: Same.
4078 * modulo-sched.c (duplicate_insns_of_cycles): Same.
4079 (generate_prolog_epilog): Same.
4080 (mark_loop_unsched): Same.
4081 (dump_insn_location): Same.
4082 (loop_canon_p): Same.
4083 (sms_schedule): Same.
4084 * omp-expand.c (expand_omp_for_ordered_loops): Same.
4085 (expand_omp_for_generic): Same.
4086 (expand_omp_for_static_nochunk): Same.
4087 (expand_omp_for_static_chunk): Same.
4088 (expand_omp_simd): Same.
4089 (expand_omp_taskloop_for_inner): Same.
4090 (expand_oacc_for): Same.
4091 (expand_omp_atomic_pipeline): Same.
4092 (mark_loops_in_oacc_kernels_region): Same.
4093 * omp-offload.c (oacc_xform_loop): Same.
4094 * omp-simd-clone.c (simd_clone_adjust): Same.
4095 * optabs-query.c (get_traditional_extraction_insn): Same.
4096 * optabs.c (expand_vector_broadcast): Same.
4097 (expand_binop_directly): Same.
4098 (expand_twoval_unop): Same.
4099 (expand_twoval_binop): Same.
4100 (expand_unop_direct): Same.
4101 (emit_indirect_jump): Same.
4102 (emit_conditional_move): Same.
4103 (emit_conditional_neg_or_complement): Same.
4104 (emit_conditional_add): Same.
4105 (vector_compare_rtx): Same.
4106 (expand_vec_perm_1): Same.
4107 (expand_vec_perm_const): Same.
4108 (expand_vec_cond_expr): Same.
4109 (expand_vec_series_expr): Same.
4110 (maybe_emit_atomic_exchange): Same.
4111 (maybe_emit_sync_lock_test_and_set): Same.
4112 (expand_atomic_compare_and_swap): Same.
4113 (expand_atomic_load): Same.
4114 (expand_atomic_store): Same.
4115 (maybe_emit_op): Same.
4116 (valid_multiword_target_p): Same.
4117 (create_integer_operand): Same.
4118 (maybe_legitimize_operand_same_code): Same.
4119 (maybe_legitimize_operand): Same.
4120 (create_convert_operand_from_type): Same.
4121 (can_reuse_operands_p): Same.
4122 (maybe_legitimize_operands): Same.
4123 (maybe_gen_insn): Same.
4124 (maybe_expand_insn): Same.
4125 (maybe_expand_jump_insn): Same.
4126 (expand_insn): Same.
4127 * optabs.h (create_expand_operand): Same.
4128 (create_fixed_operand): Same.
4129 (create_output_operand): Same.
4130 (create_input_operand): Same.
4131 (create_convert_operand_to): Same.
4132 (create_convert_operand_from): Same.
4133 * optinfo.h: Same.
4134 * poly-int.h: Same.
4135 * predict.c (optimize_insn_for_speed_p): Same.
4136 (optimize_loop_for_size_p): Same.
4137 (optimize_loop_for_speed_p): Same.
4138 (optimize_loop_nest_for_speed_p): Same.
4139 (get_base_value): Same.
4140 (predicted_by_loop_heuristics_p): Same.
4141 (predict_extra_loop_exits): Same.
4142 (predict_loops): Same.
4143 (predict_paths_for_bb): Same.
4144 (predict_paths_leading_to): Same.
4145 (propagate_freq): Same.
4146 (pass_profile::execute): Same.
4147 * predict.h: Same.
4148 * profile-count.c (profile_count::differs_from_p): Same.
4149 (profile_probability::differs_lot_from_p): Same.
4150 * profile-count.h: Same.
4151 * profile.c (branch_prob): Same.
4152 * regrename.c (free_chain_data): Same.
4153 (mark_conflict): Same.
4154 (create_new_chain): Same.
4155 (merge_overlapping_regs): Same.
4156 (init_rename_info): Same.
4157 (merge_chains): Same.
4158 (regrename_analyze): Same.
4159 (regrename_do_replace): Same.
4160 (scan_rtx_reg): Same.
4161 (record_out_operands): Same.
4162 (build_def_use): Same.
4163 * regrename.h: Same.
4164 * reload.h: Same.
4165 * reload1.c (init_reload): Same.
4166 (maybe_fix_stack_asms): Same.
4167 (copy_reloads): Same.
4168 (count_pseudo): Same.
4169 (count_spilled_pseudo): Same.
4170 (find_reg): Same.
4171 (find_reload_regs): Same.
4172 (select_reload_regs): Same.
4173 (spill_hard_reg): Same.
4174 (fixup_eh_region_note): Same.
4175 (set_reload_reg): Same.
4176 (allocate_reload_reg): Same.
4177 (compute_reload_subreg_offset): Same.
4178 (reload_adjust_reg_for_icode): Same.
4179 (emit_input_reload_insns): Same.
4180 (emit_output_reload_insns): Same.
4181 (do_input_reload): Same.
4182 (inherit_piecemeal_p): Same.
4183 * rtl.h: Same.
4184 * sanopt.c (maybe_get_dominating_check): Same.
4185 (maybe_optimize_ubsan_ptr_ifn): Same.
4186 (can_remove_asan_check): Same.
4187 (maybe_optimize_asan_check_ifn): Same.
4188 (sanopt_optimize_walker): Same.
4189 * sched-deps.c (add_dependence_list): Same.
4190 (chain_to_prev_insn): Same.
4191 (add_insn_mem_dependence): Same.
4192 (create_insn_reg_set): Same.
4193 (maybe_extend_reg_info_p): Same.
4194 (sched_analyze_reg): Same.
4195 (sched_analyze_1): Same.
4196 (get_implicit_reg_pending_clobbers): Same.
4197 (chain_to_prev_insn_p): Same.
4198 (deps_analyze_insn): Same.
4199 (deps_start_bb): Same.
4200 (sched_free_deps): Same.
4201 (init_deps): Same.
4202 (init_deps_reg_last): Same.
4203 (free_deps): Same.
4204 * sched-ebb.c: Same.
4205 * sched-int.h: Same.
4206 * sched-rgn.c (add_branch_dependences): Same.
4207 (concat_insn_mem_list): Same.
4208 (deps_join): Same.
4209 (sched_rgn_compute_dependencies): Same.
4210 * sel-sched-ir.c (reset_target_context): Same.
4211 (copy_deps_context): Same.
4212 (init_id_from_df): Same.
4213 (has_dependence_p): Same.
4214 (change_loops_latches): Same.
4215 (bb_top_order_comparator): Same.
4216 (make_region_from_loop_preheader): Same.
4217 (sel_init_pipelining): Same.
4218 (get_loop_nest_for_rgn): Same.
4219 (make_regions_from_the_rest): Same.
4220 (sel_is_loop_preheader_p): Same.
4221 * sel-sched-ir.h (inner_loop_header_p): Same.
4222 (get_all_loop_exits): Same.
4223 * selftest.h: Same.
4224 * sese.c (sese_build_liveouts): Same.
4225 (sese_insert_phis_for_liveouts): Same.
4226 * sese.h (defined_in_sese_p): Same.
4227 * sreal.c (sreal::stream_out): Same.
4228 * sreal.h: Same.
4229 * streamer-hooks.h: Same.
4230 * target-globals.c (save_target_globals): Same.
4231 * target-globals.h: Same.
4232 * target.def: Same.
4233 * target.h: Same.
4234 * targhooks.c (default_has_ifunc_p): Same.
4235 (default_empty_mask_is_expensive): Same.
4236 (default_init_cost): Same.
4237 * targhooks.h: Same.
4238 * toplev.c: Same.
4239 * tree-affine.c (aff_combination_mult): Same.
4240 (aff_combination_expand): Same.
4241 (aff_combination_constant_multiple_p): Same.
4242 * tree-affine.h: Same.
4243 * tree-cfg.c (build_gimple_cfg): Same.
4244 (replace_loop_annotate_in_block): Same.
4245 (replace_uses_by): Same.
4246 (remove_bb): Same.
4247 (dump_cfg_stats): Same.
4248 (gimple_duplicate_sese_region): Same.
4249 (gimple_duplicate_sese_tail): Same.
4250 (move_block_to_fn): Same.
4251 (replace_block_vars_by_duplicates): Same.
4252 (move_sese_region_to_fn): Same.
4253 (print_loops_bb): Same.
4254 (print_loop): Same.
4255 (print_loops): Same.
4256 (debug): Same.
4257 (debug_loops): Same.
4258 * tree-cfg.h: Same.
4259 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
4260 (chrec_fold_multiply_poly_poly): Same.
4261 (chrec_evaluate): Same.
4262 (chrec_component_in_loop_num): Same.
4263 (reset_evolution_in_loop): Same.
4264 (is_multivariate_chrec): Same.
4265 (chrec_contains_symbols): Same.
4266 (nb_vars_in_chrec): Same.
4267 (chrec_convert_1): Same.
4268 (chrec_convert_aggressive): Same.
4269 * tree-chrec.h: Same.
4270 * tree-core.h: Same.
4271 * tree-data-ref.c (dump_data_dependence_relation): Same.
4272 (canonicalize_base_object_address): Same.
4273 (data_ref_compare_tree): Same.
4274 (prune_runtime_alias_test_list): Same.
4275 (get_segment_min_max): Same.
4276 (create_intersect_range_checks): Same.
4277 (conflict_fn_no_dependence): Same.
4278 (object_address_invariant_in_loop_p): Same.
4279 (analyze_ziv_subscript): Same.
4280 (analyze_siv_subscript_cst_affine): Same.
4281 (analyze_miv_subscript): Same.
4282 (analyze_overlapping_iterations): Same.
4283 (build_classic_dist_vector_1): Same.
4284 (add_other_self_distances): Same.
4285 (same_access_functions): Same.
4286 (build_classic_dir_vector): Same.
4287 (subscript_dependence_tester_1): Same.
4288 (subscript_dependence_tester): Same.
4289 (access_functions_are_affine_or_constant_p): Same.
4290 (get_references_in_stmt): Same.
4291 (loop_nest_has_data_refs): Same.
4292 (graphite_find_data_references_in_stmt): Same.
4293 (find_data_references_in_bb): Same.
4294 (get_base_for_alignment): Same.
4295 (find_loop_nest_1): Same.
4296 (find_loop_nest): Same.
4297 * tree-data-ref.h (dr_alignment): Same.
4298 (ddr_dependence_level): Same.
4299 * tree-if-conv.c (fold_build_cond_expr): Same.
4300 (add_to_predicate_list): Same.
4301 (add_to_dst_predicate_list): Same.
4302 (phi_convertible_by_degenerating_args): Same.
4303 (idx_within_array_bound): Same.
4304 (all_preds_critical_p): Same.
4305 (pred_blocks_visited_p): Same.
4306 (predicate_bbs): Same.
4307 (build_region): Same.
4308 (if_convertible_loop_p_1): Same.
4309 (is_cond_scalar_reduction): Same.
4310 (predicate_scalar_phi): Same.
4311 (remove_conditions_and_labels): Same.
4312 (combine_blocks): Same.
4313 (version_loop_for_if_conversion): Same.
4314 (versionable_outer_loop_p): Same.
4315 (ifcvt_local_dce): Same.
4316 (tree_if_conversion): Same.
4317 (pass_if_conversion::gate): Same.
4318 * tree-if-conv.h: Same.
4319 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
4320 * tree-loop-distribution.c (bb_top_order_cmp): Same.
4321 (free_rdg): Same.
4322 (stmt_has_scalar_dependences_outside_loop): Same.
4323 (copy_loop_before): Same.
4324 (create_bb_after_loop): Same.
4325 (const_with_all_bytes_same): Same.
4326 (generate_memset_builtin): Same.
4327 (generate_memcpy_builtin): Same.
4328 (destroy_loop): Same.
4329 (build_rdg_partition_for_vertex): Same.
4330 (compute_access_range): Same.
4331 (data_ref_segment_size): Same.
4332 (latch_dominated_by_data_ref): Same.
4333 (compute_alias_check_pairs): Same.
4334 (fuse_memset_builtins): Same.
4335 (finalize_partitions): Same.
4336 (find_seed_stmts_for_distribution): Same.
4337 (prepare_perfect_loop_nest): Same.
4338 * tree-parloops.c (lambda_transform_legal_p): Same.
4339 (loop_parallel_p): Same.
4340 (reduc_stmt_res): Same.
4341 (add_field_for_name): Same.
4342 (create_call_for_reduction_1): Same.
4343 (replace_uses_in_bb_by): Same.
4344 (transform_to_exit_first_loop_alt): Same.
4345 (try_transform_to_exit_first_loop_alt): Same.
4346 (transform_to_exit_first_loop): Same.
4347 (num_phis): Same.
4348 (gen_parallel_loop): Same.
4349 (gather_scalar_reductions): Same.
4350 (get_omp_data_i_param): Same.
4351 (try_create_reduction_list): Same.
4352 (oacc_entry_exit_single_gang): Same.
4353 (parallelize_loops): Same.
4354 * tree-pass.h: Same.
4355 * tree-predcom.c (determine_offset): Same.
4356 (last_always_executed_block): Same.
4357 (split_data_refs_to_components): Same.
4358 (suitable_component_p): Same.
4359 (valid_initializer_p): Same.
4360 (find_looparound_phi): Same.
4361 (insert_looparound_copy): Same.
4362 (add_looparound_copies): Same.
4363 (determine_roots_comp): Same.
4364 (predcom_tmp_var): Same.
4365 (initialize_root_vars): Same.
4366 (initialize_root_vars_store_elim_1): Same.
4367 (initialize_root_vars_store_elim_2): Same.
4368 (finalize_eliminated_stores): Same.
4369 (initialize_root_vars_lm): Same.
4370 (remove_stmt): Same.
4371 (determine_unroll_factor): Same.
4372 (execute_pred_commoning_cbck): Same.
4373 (base_names_in_chain_on): Same.
4374 (combine_chains): Same.
4375 (pcom_stmt_dominates_stmt_p): Same.
4376 (try_combine_chains): Same.
4377 (prepare_initializers_chain_store_elim): Same.
4378 (prepare_initializers_chain): Same.
4379 (prepare_initializers): Same.
4380 (prepare_finalizers_chain): Same.
4381 (prepare_finalizers): Same.
4382 (insert_init_seqs): Same.
4383 * tree-scalar-evolution.c (loop_phi_node_p): Same.
4384 (compute_overall_effect_of_inner_loop): Same.
4385 (add_to_evolution_1): Same.
4386 (add_to_evolution): Same.
4387 (follow_ssa_edge_binary): Same.
4388 (follow_ssa_edge_expr): Same.
4389 (backedge_phi_arg_p): Same.
4390 (follow_ssa_edge_in_condition_phi_branch): Same.
4391 (follow_ssa_edge_in_condition_phi): Same.
4392 (follow_ssa_edge_inner_loop_phi): Same.
4393 (follow_ssa_edge): Same.
4394 (analyze_evolution_in_loop): Same.
4395 (analyze_initial_condition): Same.
4396 (interpret_loop_phi): Same.
4397 (interpret_condition_phi): Same.
4398 (interpret_rhs_expr): Same.
4399 (interpret_expr): Same.
4400 (interpret_gimple_assign): Same.
4401 (analyze_scalar_evolution_1): Same.
4402 (analyze_scalar_evolution): Same.
4403 (analyze_scalar_evolution_for_address_of): Same.
4404 (get_instantiated_value_entry): Same.
4405 (loop_closed_phi_def): Same.
4406 (instantiate_scev_name): Same.
4407 (instantiate_scev_poly): Same.
4408 (instantiate_scev_binary): Same.
4409 (instantiate_scev_convert): Same.
4410 (instantiate_scev_not): Same.
4411 (instantiate_scev_r): Same.
4412 (instantiate_scev): Same.
4413 (resolve_mixers): Same.
4414 (initialize_scalar_evolutions_analyzer): Same.
4415 (scev_reset_htab): Same.
4416 (scev_reset): Same.
4417 (derive_simple_iv_with_niters): Same.
4418 (simple_iv_with_niters): Same.
4419 (expression_expensive_p): Same.
4420 (final_value_replacement_loop): Same.
4421 * tree-scalar-evolution.h (block_before_loop): Same.
4422 * tree-ssa-address.h: Same.
4423 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
4424 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
4425 (record_edge_info): Same.
4426 * tree-ssa-live.c (var_map_base_fini): Same.
4427 (remove_unused_locals): Same.
4428 * tree-ssa-live.h: Same.
4429 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
4430 (pass_ch_vect::execute): Same.
4431 (pass_ch::process_loop_p): Same.
4432 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
4433 (movement_possibility): Same.
4434 (outermost_invariant_loop): Same.
4435 (stmt_cost): Same.
4436 (determine_max_movement): Same.
4437 (invariantness_dom_walker::before_dom_children): Same.
4438 (move_computations): Same.
4439 (may_move_till): Same.
4440 (force_move_till_op): Same.
4441 (force_move_till): Same.
4442 (memref_free): Same.
4443 (record_mem_ref_loc): Same.
4444 (set_ref_stored_in_loop): Same.
4445 (mark_ref_stored): Same.
4446 (sort_bbs_in_loop_postorder_cmp): Same.
4447 (sort_locs_in_loop_postorder_cmp): Same.
4448 (analyze_memory_references): Same.
4449 (mem_refs_may_alias_p): Same.
4450 (find_ref_loc_in_loop_cmp): Same.
4451 (rewrite_mem_ref_loc::operator): Same.
4452 (first_mem_ref_loc_1::operator): Same.
4453 (sm_set_flag_if_changed::operator): Same.
4454 (execute_sm_if_changed_flag_set): Same.
4455 (execute_sm): Same.
4456 (hoist_memory_references): Same.
4457 (ref_always_accessed::operator): Same.
4458 (refs_independent_p): Same.
4459 (record_dep_loop): Same.
4460 (ref_indep_loop_p_1): Same.
4461 (ref_indep_loop_p): Same.
4462 (can_sm_ref_p): Same.
4463 (find_refs_for_sm): Same.
4464 (loop_suitable_for_sm): Same.
4465 (store_motion_loop): Same.
4466 (store_motion): Same.
4467 (fill_always_executed_in): Same.
4468 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
4469 (estimated_unrolled_size): Same.
4470 (loop_edge_to_cancel): Same.
4471 (remove_exits_and_undefined_stmts): Same.
4472 (remove_redundant_iv_tests): Same.
4473 (unloop_loops): Same.
4474 (estimated_peeled_sequence_size): Same.
4475 (try_peel_loop): Same.
4476 (canonicalize_loop_induction_variables): Same.
4477 (canonicalize_induction_variables): Same.
4478 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
4479 (name_info): Same.
4480 (stmt_after_inc_pos): Same.
4481 (contains_abnormal_ssa_name_p): Same.
4482 (niter_for_exit): Same.
4483 (find_bivs): Same.
4484 (mark_bivs): Same.
4485 (find_givs_in_bb): Same.
4486 (find_induction_variables): Same.
4487 (find_interesting_uses_cond): Same.
4488 (outermost_invariant_loop_for_expr): Same.
4489 (idx_find_step): Same.
4490 (add_candidate_1): Same.
4491 (add_iv_candidate_derived_from_uses): Same.
4492 (alloc_use_cost_map): Same.
4493 (prepare_decl_rtl): Same.
4494 (generic_predict_doloop_p): Same.
4495 (computation_cost): Same.
4496 (determine_common_wider_type): Same.
4497 (get_computation_aff_1): Same.
4498 (get_use_type): Same.
4499 (determine_group_iv_cost_address): Same.
4500 (iv_period): Same.
4501 (difference_cannot_overflow_p): Same.
4502 (may_eliminate_iv): Same.
4503 (determine_set_costs): Same.
4504 (cheaper_cost_pair): Same.
4505 (compare_cost_pair): Same.
4506 (iv_ca_cand_for_group): Same.
4507 (iv_ca_recount_cost): Same.
4508 (iv_ca_set_remove_invs): Same.
4509 (iv_ca_set_no_cp): Same.
4510 (iv_ca_set_add_invs): Same.
4511 (iv_ca_set_cp): Same.
4512 (iv_ca_add_group): Same.
4513 (iv_ca_cost): Same.
4514 (iv_ca_compare_deps): Same.
4515 (iv_ca_delta_reverse): Same.
4516 (iv_ca_delta_commit): Same.
4517 (iv_ca_cand_used_p): Same.
4518 (iv_ca_delta_free): Same.
4519 (iv_ca_new): Same.
4520 (iv_ca_free): Same.
4521 (iv_ca_dump): Same.
4522 (iv_ca_extend): Same.
4523 (iv_ca_narrow): Same.
4524 (iv_ca_prune): Same.
4525 (cheaper_cost_with_cand): Same.
4526 (iv_ca_replace): Same.
4527 (try_add_cand_for): Same.
4528 (get_initial_solution): Same.
4529 (try_improve_iv_set): Same.
4530 (find_optimal_iv_set_1): Same.
4531 (create_new_iv): Same.
4532 (rewrite_use_compare): Same.
4533 (remove_unused_ivs): Same.
4534 (determine_scaling_factor): Same.
4535 * tree-ssa-loop-ivopts.h: Same.
4536 * tree-ssa-loop-manip.c (create_iv): Same.
4537 (compute_live_loop_exits): Same.
4538 (add_exit_phi): Same.
4539 (add_exit_phis): Same.
4540 (find_uses_to_rename_use): Same.
4541 (find_uses_to_rename_def): Same.
4542 (find_uses_to_rename_in_loop): Same.
4543 (rewrite_into_loop_closed_ssa): Same.
4544 (check_loop_closed_ssa_bb): Same.
4545 (split_loop_exit_edge): Same.
4546 (ip_end_pos): Same.
4547 (ip_normal_pos): Same.
4548 (copy_phi_node_args): Same.
4549 (gimple_duplicate_loop_to_header_edge): Same.
4550 (can_unroll_loop_p): Same.
4551 (determine_exit_conditions): Same.
4552 (scale_dominated_blocks_in_loop): Same.
4553 (niter_for_unrolled_loop): Same.
4554 (tree_transform_and_unroll_loop): Same.
4555 (rewrite_all_phi_nodes_with_iv): Same.
4556 * tree-ssa-loop-manip.h: Same.
4557 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
4558 (number_of_iterations_ne): Same.
4559 (assert_no_overflow_lt): Same.
4560 (assert_loop_rolls_lt): Same.
4561 (number_of_iterations_lt): Same.
4562 (adjust_cond_for_loop_until_wrap): Same.
4563 (tree_simplify_using_condition): Same.
4564 (simplify_using_initial_conditions): Same.
4565 (simplify_using_outer_evolutions): Same.
4566 (loop_only_exit_p): Same.
4567 (ssa_defined_by_minus_one_stmt_p): Same.
4568 (number_of_iterations_popcount): Same.
4569 (number_of_iterations_exit): Same.
4570 (find_loop_niter): Same.
4571 (finite_loop_p): Same.
4572 (chain_of_csts_start): Same.
4573 (get_val_for): Same.
4574 (loop_niter_by_eval): Same.
4575 (derive_constant_upper_bound_ops): Same.
4576 (do_warn_aggressive_loop_optimizations): Same.
4577 (record_estimate): Same.
4578 (get_cst_init_from_scev): Same.
4579 (record_nonwrapping_iv): Same.
4580 (idx_infer_loop_bounds): Same.
4581 (infer_loop_bounds_from_ref): Same.
4582 (infer_loop_bounds_from_array): Same.
4583 (infer_loop_bounds_from_pointer_arith): Same.
4584 (infer_loop_bounds_from_signedness): Same.
4585 (bound_index): Same.
4586 (discover_iteration_bound_by_body_walk): Same.
4587 (maybe_lower_iteration_bound): Same.
4588 (estimate_numbers_of_iterations): Same.
4589 (estimated_loop_iterations): Same.
4590 (estimated_loop_iterations_int): Same.
4591 (max_loop_iterations): Same.
4592 (max_loop_iterations_int): Same.
4593 (likely_max_loop_iterations): Same.
4594 (likely_max_loop_iterations_int): Same.
4595 (estimated_stmt_executions_int): Same.
4596 (max_stmt_executions): Same.
4597 (likely_max_stmt_executions): Same.
4598 (estimated_stmt_executions): Same.
4599 (stmt_dominates_stmt_p): Same.
4600 (nowrap_type_p): Same.
4601 (loop_exits_before_overflow): Same.
4602 (scev_var_range_cant_overflow): Same.
4603 (scev_probably_wraps_p): Same.
4604 (free_numbers_of_iterations_estimates): Same.
4605 * tree-ssa-loop-niter.h: Same.
4606 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
4607 (idx_analyze_ref): Same.
4608 (analyze_ref): Same.
4609 (gather_memory_references_ref): Same.
4610 (mark_nontemporal_store): Same.
4611 (emit_mfence_after_loop): Same.
4612 (may_use_storent_in_loop_p): Same.
4613 (mark_nontemporal_stores): Same.
4614 (should_unroll_loop_p): Same.
4615 (volume_of_dist_vector): Same.
4616 (add_subscript_strides): Same.
4617 (self_reuse_distance): Same.
4618 (insn_to_prefetch_ratio_too_small_p): Same.
4619 * tree-ssa-loop-split.c (split_at_bb_p): Same.
4620 (patch_loop_exit): Same.
4621 (find_or_create_guard_phi): Same.
4622 (easy_exit_values): Same.
4623 (connect_loop_phis): Same.
4624 (connect_loops): Same.
4625 (compute_new_first_bound): Same.
4626 (split_loop): Same.
4627 (tree_ssa_split_loops): Same.
4628 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
4629 (is_maybe_undefined): Same.
4630 (tree_may_unswitch_on): Same.
4631 (simplify_using_entry_checks): Same.
4632 (tree_unswitch_single_loop): Same.
4633 (tree_unswitch_loop): Same.
4634 (tree_unswitch_outer_loop): Same.
4635 (empty_bb_without_guard_p): Same.
4636 (used_outside_loop_p): Same.
4637 (get_vop_from_header): Same.
4638 (hoist_guard): Same.
4639 * tree-ssa-loop.c (gate_oacc_kernels): Same.
4640 (get_lsm_tmp_name): Same.
4641 * tree-ssa-loop.h: Same.
4642 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
4643 (build_and_add_sum): Same.
4644 (no_side_effect_bb): Same.
4645 (get_ops): Same.
4646 (linearize_expr): Same.
4647 (should_break_up_subtract): Same.
4648 (linearize_expr_tree): Same.
4649 * tree-ssa-scopedtables.c: Same.
4650 * tree-ssa-scopedtables.h: Same.
4651 * tree-ssa-structalias.c (condense_visit): Same.
4652 (label_visit): Same.
4653 (dump_pred_graph): Same.
4654 (perform_var_substitution): Same.
4655 (move_complex_constraints): Same.
4656 (remove_preds_and_fake_succs): Same.
4657 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
4658 (determine_bb_domination_status): Same.
4659 (duplicate_thread_path): Same.
4660 (thread_through_all_blocks): Same.
4661 * tree-ssa-threadupdate.h: Same.
4662 * tree-streamer-in.c (streamer_read_string_cst): Same.
4663 (input_identifier): Same.
4664 (unpack_ts_type_common_value_fields): Same.
4665 (unpack_ts_block_value_fields): Same.
4666 (unpack_ts_translation_unit_decl_value_fields): Same.
4667 (unpack_ts_omp_clause_value_fields): Same.
4668 (streamer_read_tree_bitfields): Same.
4669 (streamer_alloc_tree): Same.
4670 (lto_input_ts_common_tree_pointers): Same.
4671 (lto_input_ts_vector_tree_pointers): Same.
4672 (lto_input_ts_poly_tree_pointers): Same.
4673 (lto_input_ts_complex_tree_pointers): Same.
4674 (lto_input_ts_decl_minimal_tree_pointers): Same.
4675 (lto_input_ts_decl_common_tree_pointers): Same.
4676 (lto_input_ts_decl_non_common_tree_pointers): Same.
4677 (lto_input_ts_decl_with_vis_tree_pointers): Same.
4678 (lto_input_ts_field_decl_tree_pointers): Same.
4679 (lto_input_ts_function_decl_tree_pointers): Same.
4680 (lto_input_ts_type_common_tree_pointers): Same.
4681 (lto_input_ts_type_non_common_tree_pointers): Same.
4682 (lto_input_ts_list_tree_pointers): Same.
4683 (lto_input_ts_vec_tree_pointers): Same.
4684 (lto_input_ts_exp_tree_pointers): Same.
4685 (lto_input_ts_block_tree_pointers): Same.
4686 (lto_input_ts_binfo_tree_pointers): Same.
4687 (lto_input_ts_constructor_tree_pointers): Same.
4688 (lto_input_ts_omp_clause_tree_pointers): Same.
4689 (streamer_read_tree_body): Same.
4690 * tree-streamer.h: Same.
4691 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
4692 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
4693 (vect_analyze_possibly_independent_ddr): Same.
4694 (vect_analyze_data_ref_dependence): Same.
4695 (vect_compute_data_ref_alignment): Same.
4696 (vect_enhance_data_refs_alignment): Same.
4697 (vect_analyze_data_ref_access): Same.
4698 (vect_check_gather_scatter): Same.
4699 (vect_find_stmt_data_reference): Same.
4700 (vect_create_addr_base_for_vector_ref): Same.
4701 (vect_setup_realignment): Same.
4702 (vect_supportable_dr_alignment): Same.
4703 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
4704 (adjust_phi_and_debug_stmts): Same.
4705 (vect_set_loop_mask): Same.
4706 (add_preheader_seq): Same.
4707 (vect_maybe_permute_loop_masks): Same.
4708 (vect_set_loop_masks_directly): Same.
4709 (vect_set_loop_condition_masked): Same.
4710 (vect_set_loop_condition_unmasked): Same.
4711 (slpeel_duplicate_current_defs_from_edges): Same.
4712 (slpeel_add_loop_guard): Same.
4713 (slpeel_can_duplicate_loop_p): Same.
4714 (create_lcssa_for_virtual_phi): Same.
4715 (iv_phi_p): Same.
4716 (vect_update_ivs_after_vectorizer): Same.
4717 (vect_gen_vector_loop_niters_mult_vf): Same.
4718 (slpeel_update_phi_nodes_for_loops): Same.
4719 (slpeel_update_phi_nodes_for_guard1): Same.
4720 (find_guard_arg): Same.
4721 (slpeel_update_phi_nodes_for_guard2): Same.
4722 (slpeel_update_phi_nodes_for_lcssa): Same.
4723 (vect_do_peeling): Same.
4724 (vect_create_cond_for_alias_checks): Same.
4725 (vect_loop_versioning): Same.
4726 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
4727 (vect_inner_phi_in_double_reduction_p): Same.
4728 (vect_analyze_scalar_cycles_1): Same.
4729 (vect_fixup_scalar_cycles_with_patterns): Same.
4730 (vect_get_loop_niters): Same.
4731 (bb_in_loop_p): Same.
4732 (vect_get_max_nscalars_per_iter): Same.
4733 (vect_verify_full_masking): Same.
4734 (vect_compute_single_scalar_iteration_cost): Same.
4735 (vect_analyze_loop_form_1): Same.
4736 (vect_analyze_loop_form): Same.
4737 (vect_active_double_reduction_p): Same.
4738 (vect_analyze_loop_operations): Same.
4739 (neutral_op_for_slp_reduction): Same.
4740 (vect_is_simple_reduction): Same.
4741 (vect_model_reduction_cost): Same.
4742 (get_initial_def_for_reduction): Same.
4743 (get_initial_defs_for_reduction): Same.
4744 (vect_create_epilog_for_reduction): Same.
4745 (vectorize_fold_left_reduction): Same.
4746 (vectorizable_reduction): Same.
4747 (vectorizable_induction): Same.
4748 (vectorizable_live_operation): Same.
4749 (loop_niters_no_overflow): Same.
4750 (vect_get_loop_mask): Same.
4751 (vect_transform_loop_stmt): Same.
4752 (vect_transform_loop): Same.
4753 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
4754 (vect_determine_precisions): Same.
4755 (vect_pattern_recog_1): Same.
4756 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4757 * tree-vect-stmts.c (stmt_vectype): Same.
4758 (process_use): Same.
4759 (vect_init_vector_1): Same.
4760 (vect_truncate_gather_scatter_offset): Same.
4761 (get_group_load_store_type): Same.
4762 (vect_build_gather_load_calls): Same.
4763 (vect_get_strided_load_store_ops): Same.
4764 (vectorizable_simd_clone_call): Same.
4765 (vectorizable_store): Same.
4766 (permute_vec_elements): Same.
4767 (vectorizable_load): Same.
4768 (vect_transform_stmt): Same.
4769 (supportable_widening_operation): Same.
4770 * tree-vectorizer.c (vec_info::replace_stmt): Same.
4771 (vec_info::free_stmt_vec_info): Same.
4772 (vect_free_loop_info_assumptions): Same.
4773 (vect_loop_vectorized_call): Same.
4774 (set_uid_loop_bbs): Same.
4775 (vectorize_loops): Same.
4776 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
4777 * tree.c (add_tree_to_fld_list): Same.
4778 (fld_type_variant_equal_p): Same.
4779 (fld_decl_context): Same.
4780 (fld_incomplete_type_of): Same.
4781 (free_lang_data_in_binfo): Same.
4782 (need_assembler_name_p): Same.
4783 (find_decls_types_r): Same.
4784 (get_eh_types_for_runtime): Same.
4785 (find_decls_types_in_eh_region): Same.
4786 (find_decls_types_in_node): Same.
4787 (assign_assembler_name_if_needed): Same.
4788 * value-prof.c (stream_out_histogram_value): Same.
4789 * value-prof.h: Same.
4790 * var-tracking.c (use_narrower_mode): Same.
4791 (prepare_call_arguments): Same.
4792 (vt_expand_loc_callback): Same.
4793 (resolve_expansions_pending_recursion): Same.
4794 (vt_expand_loc): Same.
4795 * varasm.c (const_hash_1): Same.
4796 (compare_constant): Same.
4797 (tree_output_constant_def): Same.
4798 (simplify_subtraction): Same.
4799 (get_pool_constant): Same.
4800 (output_constant_pool_2): Same.
4801 (output_constant_pool_1): Same.
4802 (mark_constants_in_pattern): Same.
4803 (mark_constant_pool): Same.
4804 (get_section_anchor): Same.
4805 * vr-values.c (compare_range_with_value): Same.
4806 (vr_values::extract_range_from_phi_node): Same.
4807 * vr-values.h: Same.
4808 * web.c (unionfind_union): Same.
4809 * wide-int.h: Same.
4810
4811 2019-07-09 Martin Sebor <msebor@redhat.com>
4812
4813 PR c++/61339
4814 * align.h: Change class-key from class to struct and vice versa
4815 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
4816 * alloc-pool.h: Same.
4817 * asan.c (shadow_mem_size): Same.
4818 * auto-profile.c: Same.
4819 * basic-block.h: Same.
4820 * bitmap.h: Same.
4821 * cfgexpand.c (set_rtl): Same.
4822 (expand_one_stack_var_at): Same.
4823 * cfghooks.h: Same.
4824 * cfgloop.h: Same.
4825 * cgraph.h: Same.
4826 * config/i386/i386.h: Same.
4827 * df-problems.c (df_print_bb_index): Same.
4828 * df-scan.c: Same.
4829 * df.h (df_single_use): Same.
4830 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
4831 (layout::annotation_line_showed_range_p): Same.
4832 (get_printed_columns): Same.
4833 (correction::ensure_terminated): Same.
4834 (line_corrections::~line_corrections): Same.
4835 * dojump.h: Same.
4836 * dse.c: Same.
4837 * dump-context.h: Same.
4838 * dumpfile.h: Same.
4839 * dwarf2out.c: Same.
4840 * edit-context.c: Same.
4841 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
4842 * flags.h: Same.
4843 * function.c (assign_stack_local): Same.
4844 * function.h: Same.
4845 * gcc.c: Same.
4846 * gcov.c (block_info::block_info): Same.
4847 * genattrtab.c: Same.
4848 * genextract.c: Same.
4849 * genmatch.c (comparison_code_p): Same.
4850 (id_base::id_base): Same.
4851 (decision_tree::print): Same.
4852 * genoutput.c: Same.
4853 * genpreds.c (write_one_predicate_function): Same.
4854 * genrecog.c (validate_pattern): Same.
4855 (find_operand_positions): Same.
4856 (optimize_subroutine_group): Same.
4857 (merge_pattern_transition::merge_pattern_transition): Same.
4858 (merge_pattern_info::merge_pattern_info): Same.
4859 (merge_state_result::merge_state_result): Same.
4860 (merge_into_state): Same.
4861 * gensupport.c: Same.
4862 * gensupport.h: Same.
4863 * ggc-common.c (init_ggc_heuristics): Same.
4864 * ggc-tests.c (test_union): Same.
4865 * gimple-loop-interchange.cc (dump_induction): Same.
4866 * gimple-loop-versioning.cc: Same.
4867 * gimple-match.h (gimple_match_cond::any_else): Same.
4868 * gimple-ssa-backprop.c: Same.
4869 * gimple-ssa-sprintf.c: Same.
4870 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
4871 Same.
4872 (store_immediate_info::store_immediate_info): Same.
4873 (merged_store_group::apply_stores): Same.
4874 (get_location_for_stmts): Same.
4875 * gimple-ssa-strength-reduction.c: Same.
4876 * gimple-ssa-warn-alloca.c: Same.
4877 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
4878 * godump.c (go_type_decl): Same.
4879 * hash-map-tests.c (test_map_of_strings_to_int): Same.
4880 * hash-map.h: Same.
4881 * hash-set-tests.c (test_set_of_strings): Same.
4882 * hsa-brig.c: Same.
4883 * hsa-common.h: Same.
4884 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
4885 * input.c (assert_loceq): Same.
4886 * input.h: Same.
4887 * ipa-cp.c: Same.
4888 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
4889 * ipa-fnsummary.h: Same.
4890 * ipa-inline.h: Same.
4891 * ipa-prop.h: Same.
4892 * ipa-split.c (visit_bb): Same.
4893 * ira-int.h (minmax_set_iter_next): Same.
4894 * loop-invariant.c: Same.
4895 * loop-iv.c: Same.
4896 * lra-eliminations.c: Same.
4897 * lra-int.h: Same.
4898 * lra-lives.c (mark_regno_dead): Same.
4899 * lra-remat.c: Same.
4900 * lra-spills.c: Same.
4901 * lto-streamer.h: Same.
4902 * mem-stats.h: Same.
4903 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
4904 * omp-low.c (omp_clause_aligned_alignment): Same.
4905 * optabs-query.h (get_vcond_eq_icode): Same.
4906 * optabs.h: Same.
4907 * opts.c (wrap_help): Same.
4908 * poly-int.h: Same.
4909 * predict.c (predict_paths_leading_to_edge): Same.
4910 * pretty-print.h: Same.
4911 * profile-count.h: Same.
4912 * read-md.h: Same.
4913 * read-rtl-function.c: Same.
4914 * ree.c: Same.
4915 * reginfo.c: Same.
4916 * regrename.c: Same.
4917 * regrename.h: Same.
4918 * reload.h: Same.
4919 * rtl-iter.h: Same.
4920 * rtl.h (costs_add_n_insns): Same.
4921 * sanopt.c: Same.
4922 * sched-int.h: Same.
4923 * sel-sched-ir.h: Same.
4924 * selftest.h: Same.
4925 * sese.h (vec_find): Same.
4926 * stmt.c: Same.
4927 * target-globals.h: Same.
4928 * tree-affine.c (aff_combination_find_elt): Same.
4929 * tree-affine.h: Same.
4930 * tree-data-ref.h: Same.
4931 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
4932 * tree-predcom.c: Same.
4933 * tree-scalar-evolution.c (find_var_scev_info): Same.
4934 * tree-ssa-alias.h: Same.
4935 * tree-ssa-ccp.c: Same.
4936 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
4937 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
4938 (rewrite_mem_refs): Same.
4939 (execute_sm_if_changed): Same.
4940 (hoist_memory_references): Same.
4941 * tree-ssa-loop-ivopts.c (operator<=): Same.
4942 * tree-ssa-loop.h: Same.
4943 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
4944 * tree-ssa-structalias.c: Same.
4945 * tree-switch-conversion.h (cluster::cluster): Same.
4946 (simple_cluster::simple_cluster): Same.
4947 * tree-vect-patterns.c (type_conversion_p): Same.
4948 * tree-vectorizer.c (dump_stmt_cost): Same.
4949 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
4950 * tree.c (protected_set_expr_location): Same.
4951 * tree.h (desired_pro_or_demotion_p): Same.
4952 (fndecl_built_in_p): Same.
4953 * unique-ptr-tests.cc: Same.
4954 * var-tracking.c (delete_variable_part): Same.
4955 * varasm.c (assemble_real): Same.
4956 (tree_output_constant_def): Same.
4957 * vec.c: Same.
4958 * wide-int-bitmask.h: Same.
4959 * wide-int.h (decompose): Same.
4960
4961 2019-07-09 Richard Biener <rguenther@suse.de>
4962
4963 PR tree-optimization/91114
4964 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
4965 find a vector type isn't fatal.
4966
4967 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
4968
4969 * config/aarch64/aarch64-simd.md
4970 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
4971 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
4972 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
4973 (*aarch64_crypto_aese_fused,
4974 *aarch64_crypto_aesd_fused): Update to new definition.
4975 * config/aarch64/aarch64.c
4976 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
4977
4978 2019-07-09 Richard Biener <rguenther@suse.de>
4979
4980 * gimple-match.h (gimple_match_op::resimplify): New.
4981 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
4982 gimple_resimplify4, gimple_resimplify5): Remove.
4983 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
4984 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
4985 Make static.
4986 (gimple_match_op::resimplify): New.
4987 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
4988 according to availability. Use gimple_match_op::resimplify.
4989
4990 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
4991
4992 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
4993
4994 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
4995
4996 * config/arm/crypto.md:
4997 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
4998 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
4999 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
5000 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
5001 * config/arm/arm.c
5002 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
5003 * config/arm/aarch-common-protos.h
5004 (aarch_crypto_can_dual_issue): Remove.
5005 * config/arm/aarch-common.c
5006 (aarch_crypto_can_dual_issue): Likewise.
5007 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
5008 * config/arm/cortex-a53.md: Likewise.
5009 * config/arm/cortex-a57.md: Likewise.
5010 * config/arm/iterators.md:
5011 (CRYPTO_BINARY): Redefine.
5012 (CRYPTO_UNARY): Removed.
5013 (CRYPTO_AES, CRYPTO_AESMC): New.
5014
5015 2019-07-09 Richard Biener <rguenther@suse.de>
5016
5017 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
5018 (vn_reference_lookup_3): If the main ref has no access path recorded
5019 but orig_ref has use it to do access-path based disambiguation.
5020 (vn_reference_lookup_pieces): Adjust.
5021 (vn_reference_lookup): Pass down original ref if we valueized.
5022
5023 2019-07-09 Martin Liska <mliska@suse.cz>
5024
5025 * doc/extend.texi: Document influence on loop
5026 optimizers.
5027
5028 2019-07-09 Martin Liska <mliska@suse.cz>
5029
5030 * lto-compress.c (lto_normalized_zstd_level): Do not use
5031 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
5032 of libzstd. One can use 0 as a default compression level.
5033
5034 2019-07-09 Martin Liska <mliska@suse.cz>
5035
5036 * doc/invoke.texi: Add link from -fprofile-dir option.
5037 Use better wording for 'gcno filename'.
5038
5039 2019-07-08 Martin Sebor <msebor@redhat.com>
5040
5041 PR middle-end/71924
5042 PR middle-end/90549
5043 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
5044 comment.
5045 (args_loc_t): New type.
5046 (args_loc_t, locmap_t): same.
5047 (diag_returned_locals): New function.
5048 (is_addr_local): Same.
5049 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
5050 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
5051 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
5052
5053 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5054
5055 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
5056 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
5057 and casts in offset when different, both through gimple stmts
5058 and through trees. Rewritten using loops to minimize code duplication
5059 for each operand.
5060
5061 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
5062
5063 * emit-rtl.c (set_insn_locations): New function moved from...
5064 * function.c (set_insn_locations): ...here.
5065 * ira-emit.c (emit_moves): Propagate location of the first instruction
5066 to the inserted move instructions.
5067 * reg-stack.c (compensate_edge): Set the location if the sequence is
5068 inserted on the edge.
5069 * rtl.h (set_insn_locations): Declare.
5070
5071 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5072
5073 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
5074 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
5075 .machine string.
5076
5077 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5078
5079 PR rtl-optimization/88233
5080 * common.opt (fsplit-wide-types-early): New option.
5081 * common/config/rs6000/rs6000-common.c
5082 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
5083 OPT_LEVELS_ALL.
5084 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
5085 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
5086 flag_split_wide_types_early.
5087 (pass_data_lower_subreg3): New.
5088 (pass_lower_subreg3): New.
5089 (make_pass_lower_subreg3): New.
5090 * passes.def (pass_lower_subreg2): Move after the loop passes.
5091 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
5092 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
5093 the pass pipeline; its previous place is taken by ...
5094 (make_pass_lower_subreg3): ... this.
5095
5096 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5097
5098 * config/s390/s390.c (s390_shift_truncation_mask): Define.
5099 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5100
5101 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5102
5103 * config/s390/constraints.md: Add new jsc constraint.
5104 * config/s390/predicates.md: New predicates.
5105 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
5106 * config/s390/s390.c (s390_valid_shift_count): New function.
5107 (print_shift_count_operand): Use s390_valid_shift_count.
5108 (print_operand): Likewise.
5109 * config/s390/s390.md: Use new predicate.
5110 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
5111 * config/s390/vector.md: Use new predicate.
5112
5113 2019-07-08 Andrew Waterman <andrew@sifive.com>
5114 Jim Wilson <jimw@sifive.com>
5115
5116 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
5117 bitsize instead of BITS_PER_WORD.
5118
5119 2019-07-08 Martin Liska <mliska@suse.cz>
5120
5121 * collect2.c (defined): Revert to before r254460.
5122 (scan_prog_file): Revert to before r254460.
5123
5124 2019-07-08 Richard Biener <rguenther@suse.de>
5125
5126 PR tree-optimization/83518
5127 * tree-ssa-sccvn.c: Include splay-tree.h.
5128 (struct pd_range, struct pd_data): New.
5129 (struct vn_walk_cb_data): Add data to track partial definitions.
5130 (vn_walk_cb_data::~vn_walk_cb_data): New.
5131 (vn_walk_cb_data::push_partial_def): New.
5132 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
5133 (vn_reference_lookup_2): When partial defs are registered give up.
5134 (vn_reference_lookup_3): Track partial defs for memset and
5135 constructor zeroing and for defs from constants.
5136
5137 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5138
5139 * doc/install.texi (bootstrap-Og): Document.
5140
5141 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5142
5143 * config/riscv/pic.md (*local_pic_load_s<mode>)
5144 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
5145 referenced by <mode>, giving...
5146 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
5147 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
5148 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
5149 use <X:MODE> for the mode attribute.
5150
5151 2019-07-07 Jeff Law <law@redhat.com>
5152
5153 PR tree-optimization/91090
5154 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
5155 in handling of ranges to simplify switch statements.
5156
5157 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5158
5159 * config/darwin.c (darwin_override_options): Make a final check on PIC
5160 options.
5161
5162 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5163
5164 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
5165 on for kernel code.
5166
5167 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5168
5169 PR target/91068
5170 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
5171 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
5172 instead of matching them to "l" output operands.
5173
5174 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5175
5176 * config/mips/mips.c (mips_split_move): Zero-initialize addr
5177 and check whether addr.reg is nonnull before using it.
5178
5179 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5180
5181 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
5182 ctx->for_simd_scan_phase simd copy the outer var to the privatized
5183 variable(s). For conditional lastprivate look through outer
5184 GIMPLE_OMP_SCAN context.
5185 (lower_omp_1): For conditional lastprivate look through outer
5186 GIMPLE_OMP_SCAN context.
5187
5188 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
5189 member to combined_into_simd_safelen1.
5190 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
5191 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
5192 clauses if ctx->combined_into_simd_safelen1 put statements after the
5193 predicate conditionalized block rather than into it.
5194
5195 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5196
5197 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
5198 operand 1.
5199 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
5200 Make the choice of <mode> explicit, giving...
5201 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
5202
5203 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5204
5205 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
5206 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
5207 of .md attributes.
5208 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
5209 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
5210 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
5211 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
5212 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
5213 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
5214 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
5215 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
5216 (*avx512f_scatterdi<mode>): Likewise.
5217 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
5218
5219 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5220
5221 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
5222 specify the mode iterator referenced by <mode>, giving...
5223 (*push1_h8300hs_<QHI:mode>): ...this.
5224
5225 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5226
5227 * config/gcn/gcn-valu.md
5228 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
5229 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
5230 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
5231 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
5232 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
5233 but using the _exec comparison patterns.
5234 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
5235 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
5236 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
5237 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
5238 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
5239 but using the _exec comparison patterns.
5240
5241 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5242
5243 * config/arm/sync.md
5244 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
5245 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
5246 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
5247 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
5248 <SIDI:cas_cmp_str>.
5249
5250 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5251
5252 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
5253 (maybe_lookup_ctx): Add forward declaration.
5254 (omp_find_scan): Likewise. Walk into body of simd if composited
5255 with worksharing loop.
5256 (scan_omp_simd_scan): New function.
5257 (scan_omp_1_stmt): Call it.
5258 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
5259 ctx->for_simd_scan_phase.
5260 (lower_rec_input_clauses): Do much less work for inscan reductions
5261 in ctx->for_simd_scan_phase is_simd regions.
5262 (lower_omp_scan): Set is_simd also on simd constructs composited
5263 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
5264 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
5265 emit their body after in simd constructs composited with worksharing
5266 loop.
5267 (lower_omp_for_scan): Handle worksharing loop composited with simd.
5268
5269 * omp-low.c (omp_find_scan): Make static.
5270 (lower_omp_for_scan): Fix order of merge arguments in input phase of
5271 the second loop, var2 represents the first partial sum and so needs
5272 to go before rprivb[ivar].
5273
5274 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
5275
5276 * config/rs6000/rs6000-logue.c: Remove unused code.
5277
5278 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5279
5280 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
5281
5282 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
5283
5284 PR target/90712
5285 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
5286 check with a frame laid out check.
5287
5288 2019-07-05 Richard Biener <rguenther@suse.de>
5289
5290 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
5291 when comparing against a store with possibly the same value.
5292
5293 2019-07-05 Richard Biener <rguenther@suse.de>
5294
5295 PR tree-optimization/91091
5296 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
5297 (walk_non_aliased_vuses): Likewise.
5298 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
5299 (get_continuation_for_phi): New tbaa_p parameter and pass
5300 it down.
5301 (walk_non_aliased_vuses): Likewise.
5302 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
5303 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5304 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5305 Likewise.
5306 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
5307 (adjust_offsets_for_equal_base_address): New function.
5308 (vn_reference_lookup_3): Use it to catch more base equivalences.
5309 Handle and pass down tbaa_p flag.
5310 (vn_reference_lookup_pieces): Adjust.
5311 (vn_reference_lookup): Remove alias-set altering, instead pass
5312 down false as tbaa_p.
5313
5314 2019-07-05 Richard Biener <rguenther@suse.de>
5315
5316 PR tree-optimization/91091
5317 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
5318 accesses can happen with -fno-strict-aliasing.
5319
5320 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
5321
5322 * tree-ssa-alias.c (alias_stats): Add
5323 nonoverlapping_component_refs_since_match_p_must_overlap.
5324 (dump_alias_stats): Print it.
5325 (nonoverlapping_component_refs_since_match_p): Add early exit.
5326 (nonoverlapping_component_refs_p): Do not account early exit.
5327
5328 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5329
5330 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
5331 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
5332 (emit_eh_dispatch): Delete.
5333 (lower_catch): Emit the eh_dispatch manually and set the location of
5334 the first catch statement onto it.
5335 (lower_eh_filter): Emit the eh_dispatch manually and set location.
5336 (lower_eh_dispatch): Propagate location.
5337 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
5338 (eliminate_build): Likewise.
5339
5340 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5341
5342 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
5343 phi nodes if possible.
5344 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
5345 location info on the newly created statement.
5346 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
5347 newly created increment if needed.
5348
5349 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5350
5351 PR middle-end/78884
5352 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
5353 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
5354 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
5355 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
5356 ctx->add_safelen1 is set.
5357
5358 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
5359 GOMP_loop_start at the start of second worksharing loop in a scan.
5360 For nowait, don't emit GOMP_loop_end_nowait at the end of first
5361 worksharing loop in a scan even if there are conditional lastprivates,
5362 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
5363
5364 2019-07-04 Jan Hubicka <jh@suse.cz>
5365
5366 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5367 Fix check for match in the ref walk.
5368
5369 2019-07-04 Martin Liska <mliska@suse.cz>
5370
5371 * tree-ssa-loop-niter.c
5372 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
5373 (estimate_numbers_of_iterations):
5374 Support __builtin_expect_with_probability for analysis
5375 of # of loop iterations.
5376
5377 2019-07-04 Alexandre Oliva <oliva@adacore.com>
5378
5379 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
5380 * except.c: Likewise.
5381 * expr.c (expand_expr_real_1): Reject it.
5382 * gimplify.c (gimplify_expr): Gimplify it, within
5383 TRY_FINALLY_EXPR.
5384 * tree-dump.c (dequeue_and_dump): Dump it.
5385 * tree-pretty-print.c (dump_generic_node): Likewise.
5386 * tree.c (block_may_fallthru): Handle it.
5387 * tree.def (EH_ELSE_EXPR): Introduce it.
5388 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
5389 with GIMPLE_EH_ELSE as try/finally/else.
5390
5391 2019-07-04 Richard Biener <rguenther@suse.de>
5392
5393 PR ipa/91062
5394 * tree-pass.h (execute_all_ipa_transforms): Add a flag
5395 parameter whether to disable GC collection.
5396 * passes.c (execute_one_ipa_transform_pass): Likewise, and
5397 honor it.
5398 (execute_all_ipa_transforms): Likewise and pass it down.
5399 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
5400 collection from applying IPA transforms.
5401 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
5402 from applying IPA transforms.
5403
5404 2019-07-04 Richard Biener <rguenther@suse.de>
5405
5406 PR tree-optimization/90911
5407 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
5408 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
5409 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5410 scalar_loop_scaling.
5411 (vect_transform_loop): Scale scalar loop profile if needed.
5412 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
5413 the loop copy from if-conversion adjust edge probabilities
5414 and scale the vectorized loop body profile, queue the scalar
5415 profile for updating after peeling.
5416
5417 2019-07-04 Jan Hubicka <jh@suse.cz>
5418
5419 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
5420 parameters; return early for must-alias.
5421 (indirect_ref_may_alias_decl_p): Likewise; when establishing
5422 outer types match, try nonoverlapping_component_refs
5423 if must-alias is not obvious.
5424 (indirect_refs_may_alias_p): Likewise.
5425 (refs_may_alias_p_2): Likewise.
5426
5427 2019-07-04 Richard Biener <rguenther@suse.de>
5428
5429 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
5430 argument.
5431 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
5432 globals into...
5433 (struct vn_walk_cb_data): New callback data struct.
5434 (vn_reference_lookup_2): Adjust.
5435 (vn_reference_lookup_3): Likewise.
5436 (vn_reference_lookup_pieces): Likewise.
5437 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
5438 (visit_reference_op_load): Adjust.
5439
5440 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5441
5442 PR tree-optimization/91063
5443 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
5444 stmt from stmts sequence before calling vect_init_vector_1.
5445 Formatting fix.
5446
5447 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5448
5449 PR target/88833
5450 * fwprop.c (reg_single_def_p): New function.
5451 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
5452 (forward_propagate_into): New parameter reg_prop_only
5453 with default value false.
5454 Propagate def's src into loop only if SET_SRC and SET_DEST
5455 of def_set have single definitions.
5456 Likewise if reg_prop_only is set to true.
5457 (fwprop): New param fwprop_addr_p.
5458 Integrate fwprop_addr into fwprop.
5459 (fwprop_addr): Remove.
5460 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
5461 to true.
5462 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
5463 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
5464 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
5465
5466 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5467
5468 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
5469 in worksharing loop scans.
5470
5471 PR tree-optimization/91074
5472 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
5473 temporary.
5474
5475 PR rtl-optimization/90756
5476 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
5477 for VECTOR_TYPE_P.
5478
5479 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
5480
5481 * config/aarch64/aarch64.md: Remove redundant constraints from
5482 define_expand but keep some patterns untouched if they are
5483 specially selected by TARGET_SECONDARY_RELOAD hook.
5484 * config/aarch64/aarch64-sve.md: Likewise.
5485 * config/aarch64/atomics.md: Remove redundant constraints from
5486 define_expand.
5487 * config/aarch64/aarch64-simd.md: Likewise.
5488
5489 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5490
5491 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
5492 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
5493 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
5494 clauses.
5495 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
5496 DARWIN_NOPIE_SPEC.
5497
5498 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5499
5500 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
5501 (STARTFILE_SPEC): Split crt3 into a separate spec.
5502 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
5503 (DARWIN_CRT2_SPEC): New.
5504 (DARWIN_CRT3_SPEC): New.
5505 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
5506 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
5507 (DARWIN_CRT3_SPEC): New.
5508
5509 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
5510
5511 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
5512 Change the RTL attribute "length" from "4" to "*" to allow the
5513 length attribute to be adjusted automatically for prefixed load,
5514 store, and add immediate instructions.
5515 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
5516 Likewise.
5517 (extendsi<mode>2, EXTSI iterator): Likewise.
5518 (movsi_internal1): Likewise.
5519 (movsi_from_sf): Likewise.
5520 (movdi_from_sf_zero_ext): Likewise.
5521 (mov<mode>_internal): Likewise.
5522 (movcc_internal1, QHI iterator): Likewise.
5523 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
5524 (movsf_from_si): Likewise.
5525 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
5526 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
5527 (mov<mode>, FMOVE128 iterator): Likewise.
5528 (movdi_internal64): Likewise.
5529 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
5530 Likewise.
5531 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
5532 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
5533 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
5534 (vsx_splat_v4sf): Likewise.
5535
5536 2019-07-03 Mark Wielaard <mark@klomp.org>
5537
5538 PR debug/90981
5539 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
5540 DW_AT_addr_base if there is actually a .debug_addr section with
5541 addresses.
5542 (output_addr_table): Add DWARF5 table header generation here after
5543 checking there are actually any addresses from...
5544 (dwarf2out_finish): ...here.
5545
5546 2019-07-03 Richard Biener <rguenther@suse.de>
5547
5548 PR middle-end/91069
5549 * match.pd (vec_perm -> bit_insert): Fix element read from
5550 first vector.
5551
5552 2019-07-03 Martin Liska <mliska@suse.cz>
5553
5554 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
5555 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
5556 condition.
5557 * generic-match-head.c: Include dbgcnt.h.
5558 * gimple-match-head.c: Likewise.
5559
5560 2019-07-03 Martin Liska <mliska@suse.cz>
5561
5562 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
5563 (GCOV_COUNTER_V_TOPN): New.
5564 (GCOV_COUNTER_V_INDIR): Use _topn.
5565 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
5566 (GCOV_TOPN_VALUES): New.
5567 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
5568 (GCOV_TOPN_VALUES_COUNTERS): New.
5569 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
5570 * tree-profile.c:
5571 (gimple_init_gcov_profiler): Rename variables from one_value
5572 to topn_values.
5573 (gimple_gen_one_value_profiler): Remove.
5574 (gimple_gen_topn_values_profiler): New function.
5575 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
5576 names instead of SINGLE_VALUE.
5577 (stream_out_histogram_value): Likewise.
5578 (stream_in_histogram_value): Likewise.
5579 (get_most_common_single_value): Likewise.
5580 (gimple_divmod_fixed_value_transform): Likewise.
5581 (gimple_stringops_transform): Likewise.
5582 (gimple_divmod_values_to_profile): Likewise.
5583 (gimple_stringops_values_to_profile): Likewise.
5584 (gimple_find_values_to_profile): Likewise.
5585 * value-prof.h (enum hist_type): Rename to TOPN.
5586 (gimple_gen_one_value_profiler): Remove.
5587 (gimple_gen_topn_values_profiler): New.
5588
5589 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
5590
5591 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
5592 if it has the DW_AT_data_member_location attribute.
5593
5594 2019-07-03 Richard Biener <rguenther@suse.de>
5595
5596 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
5597 dumping.
5598
5599 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
5600
5601 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
5602 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
5603 (tlsdesc_small_sve_<mode>): Likewise.
5604
5605 2019-07-03 Martin Liska <mliska@suse.cz>
5606
5607 * Makefile.in: Define ZSTD_LIB.
5608 * common.opt: Adjust compression level
5609 to support also zstd levels.
5610 * config.in: Regenerate.
5611 * configure: Likewise.
5612 * configure.ac: Add --with-zstd and --with-zstd-include options
5613 and detect ZSTD.
5614 * doc/install.texi: Mention zstd dependency.
5615 * gcc.c: Print supported LTO compression algorithms.
5616 * lto-compress.c (lto_normalized_zstd_level): Likewise.
5617 (lto_compression_zstd): Likewise.
5618 (lto_uncompression_zstd): Likewise.
5619 (lto_end_compression): Dispatch in between zlib and zstd.
5620 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
5621 (lto_uncompression_zlib): Make it static.
5622 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
5623 * lto-section-in.c (lto_get_section_data): Pass info
5624 about used compression.
5625 * lto-streamer-out.c: By default use zstd when possible.
5626 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
5627 (TV_IPA_LTO_COMPRESS): Likewise for compression.
5628
5629 2019-07-03 Martin Liska <mliska@suse.cz>
5630
5631 * lto-section-in.c (lto_get_section_data): Add "lto" section.
5632 * lto-section-out.c (lto_destroy_simple_output_block): Never
5633 compress LTO_section_lto section.
5634 * lto-streamer-out.c (produce_asm): Do not set major_version
5635 and minor_version.
5636 (lto_output_toplevel_asms): Likewise.
5637 (produce_lto_section): New function.
5638 (lto_output): Call produce_lto_section.
5639 (lto_write_mode_table): Do not set major_version and
5640 minor_version.
5641 (produce_asm_for_decls): Likewise.
5642 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
5643 type.
5644 (struct lto_header): Remove.
5645 (struct lto_section): New struct.
5646 (struct lto_simple_header): Do not inherit from lto_header.
5647 (struct lto_file_decl_data): Add lto_section_header field.
5648
5649 2019-07-03 Martin Liska <mliska@suse.cz>
5650
5651 * lra-eliminations.c (eliminate_regs_in_insn): Remove
5652 dead assignemts.
5653 * reg-stack.c (check_asm_stack_operands): Likewise.
5654 * tree-ssa-structalias.c (create_function_info_for): Likewise.
5655 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5656 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
5657 force_expand_binop.
5658
5659 2019-07-03 Martin Liska <mliska@suse.cz>
5660
5661 PR tree-optimization/90892
5662 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
5663 in string constants.
5664
5665 2019-07-03 Martin Liska <mliska@suse.cz>
5666
5667 PR middle-end/90899
5668 * multiple_target.c (create_dispatcher_calls): Add to comdat
5669 group only if set for ifunc.
5670
5671 2019-07-03 Martin Liska <mliska@suse.cz>
5672
5673 PR target/88056
5674 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5675 Define local_object_name in outer scope in order to handle
5676 use-after-scope issue.
5677
5678 2019-07-03 Martin Liska <mliska@suse.cz>
5679
5680 * common.opt: Add fprofile-note.
5681 * coverage.c (coverage_init): Append the option
5682 to bbg_file_name.
5683 * doc/invoke.texi: Document -fprofile-note.
5684
5685 2019-07-03 Jakub Jelinek <jakub@redhat.com>
5686
5687 PR tree-optimization/91033
5688 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
5689 vect_analyze_data_refs): Add bool * arguments.
5690 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
5691 if failure is due to scatter/gather, set *fatal to false if non-NULL.
5692 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5693 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
5694 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
5695 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
5696 vect_analyze_data_refs caller.
5697
5698 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
5699 clause.
5700 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
5701 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
5702 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
5703 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5704 OMP_CLAUSE__SCANTEMP_ entry.
5705 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
5706 * tree-pretty-print.c (dump_omp_clause): Likewise.
5707 * tree-nested.c (convert_nonlocal_omp_clauses,
5708 convert_local_omp_clauses): Likewise.
5709 * omp-general.h (struct omp_for_data): Add have_scantemp and
5710 have_nonctrl_scantemp members.
5711 * omp-general.c (omp_extract_for_data): Initialize them.
5712 * omp-low.c (struct omp_context): Add scan_exclusive member.
5713 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
5714 result again with GF_OMP_FOR_KIND_MASK. Initialize also
5715 ctx->scan_exclusive.
5716 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
5717 of !ctx->scan_inclusive.
5718 (lower_rec_input_clauses): Simplify gimplification of dtors using
5719 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
5720 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
5721 loops. Don't add barrier for reduction_omp_orig_ref if
5722 ctx->scan_??xclusive.
5723 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
5724 (lower_omp_scan): Use ctx->scan_exclusive instead
5725 of !ctx->scan_inclusive. Handle worksharing loops with inscan
5726 reductions. Use new_vard != new_var instead of repeated
5727 omp_is_reference calls.
5728 (omp_find_scan, lower_omp_for_scan): New functions.
5729 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
5730 inscan reductions.
5731 * omp-expand.c (expand_omp_scantemp_alloc): New function.
5732 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
5733 and fd->have_scantemp.
5734
5735 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
5736 on worksharing loop propagate it as shared clause to containing
5737 combined parallel.
5738
5739 * omp-expand.c (expand_omp_for_static_nochunk,
5740 expand_omp_for_static_chunk): For nowait worksharing loop with
5741 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
5742 at the end.
5743
5744 2019-07-02 qing zhao <qing.zhao@oracle.com>
5745
5746 PR preprocessor/90581
5747 * doc/cppopts.texi: Add document for -fmax-include-depth.
5748 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
5749
5750 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
5751
5752 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
5753 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
5754 (mmx_packssdw): Ditto.
5755 (mmx_punpckhbw): Ditto.
5756 (mmx_punpcklbw): Ditto.
5757 (mmx_punpckhwd): Ditto.
5758 (mmx_punpcklwd): Ditto.
5759 (mmx_punpckhdq): Ditto.
5760 (mmx_punpckldq): Ditto.
5761 (*vec_dupv4hi): Ditto.
5762 (*vec_dupv2si): Ditto.
5763 (mmx_pmovmskb): Ditto.
5764 * config/i386/sse.md (sse_cvtpi2ps): Use
5765 TARGET_SSE2 && SSE_REG_P in split condition.
5766 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
5767 TARGET_SSSE3 && SSE_REGNO_P in split condition.
5768 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
5769 (ssse3_pshufbv8qi3): Ditto.
5770 (ssse3_palignrdi): Ditto.
5771
5772 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
5773
5774 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
5775 with inlined save and restore.
5776
5777 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
5778
5779 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
5780 to be inserted on single successor edge of the entry block. Then call
5781 commit_edge_insertions instead of inserting the instructions manually.
5782 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
5783 RTL expansion and rebuild jump labels chain.
5784
5785 2019-07-02 Richard Biener <rguenther@suse.de>
5786
5787 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
5788 TI_CHREC_KNOWN.
5789 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
5790 Define here.
5791 * tree.c (build_common_tree_nodes): Initialize them.
5792 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
5793 Make declarations comments.
5794 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
5795 chrec_known): Remove definitions.
5796 (initialize_scalar_evolutions_analyzer): Remove.
5797 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
5798 * tree-streamer.c (preload_common_nodes): Do not preload
5799 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
5800
5801 2019-07-02 Jan Hubicka <jh@suse.cz>
5802
5803 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
5804 sanity check.
5805
5806 2019-07-02 Jan Hubicka <jh@suse.cz>
5807
5808 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
5809 to ..
5810 (nonoverlapping_component_refs_since_match_p): ... this one;
5811 handle also non-decl bases; return -1 if search gave up.
5812 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
5813 nonoverlapping_component_refs_of_decl_p_no_alias to
5814 nonoverlapping_component_refs_since_match_p_may_alias,
5815 nonoverlapping_component_refs_since_match_p_no_alias.
5816 (dump_alias_stats): Update dumping.
5817 (aliasing_matching_component_refs_p): Break out from ...;
5818 dispatch to nonoverlapping_component_refs_for_decl_p
5819 and nonoverlapping_component_refs_since_match_p.
5820 (aliasing_component_refs_p): ... here; call
5821 nonoverlapping_component_refs_p in scenarios where we can not
5822 precisely determine base match.
5823 (decl_refs_may_alias_p): Use
5824 nonoverlapping_component_refs_since_match_p.
5825 (indirect_ref_may_alias_decl_p): Do not call
5826 nonoverlapping_component_refs_p.
5827 (indirect_refs_may_alias_p): Likewise.
5828
5829 2019-07-02 Jan Hubicka <jh@suse.cz>
5830
5831 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
5832 to clobber of return value.
5833
5834 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5835
5836 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
5837 for is_neon_type instructions that have not already been categorized.
5838
5839 2019-07-02 Richard Biener <rguenther@suse.de>
5840
5841 PR tree-optimization/58483
5842 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
5843 for MEM_REF base hashing.
5844 (equal_mem_array_ref_p): Likewise for base comparison.
5845
5846 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5847
5848 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
5849 parameterized name.
5850 (signbit<mode>2): Use that name. Simplify.
5851
5852 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
5853
5854 PR middle-end/66726
5855 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
5856 Tune heuristic from PR71016 to allow MIN / MAX.
5857
5858 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5859
5860 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
5861 parameterized name.
5862 (abs<mode>2): Use that name. Simplify.
5863
5864 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5865
5866 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
5867 parameterized name.
5868 (neg<mode>2): Use that name. Simplify.
5869
5870 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5871
5872 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
5873 name.
5874 (abs<mode>2): Use that name. Simplify.
5875
5876 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5877
5878 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
5879 name.
5880 (neg<mode>2): Use that name. Simplify.
5881
5882 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
5883
5884 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
5885 ("enabled" attribute): Handle sse_noavx isa attribute.
5886 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
5887 Use TARGET_SSE && SSE_REGNO_P in split condition.
5888 (*vec_dupv2sf): Ditto.
5889
5890 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5891
5892 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
5893 name.
5894 (floatsi<mode>2): Use that name. Simplify.
5895
5896 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5897
5898 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
5899 parameterized name.
5900 (extenddf<mode>2_vsx): Make this a parameterized name.
5901 (extenddf<mode>2): Use those names. Simplify.
5902
5903 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5904
5905 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
5906 name.
5907 (eh_return): Use that name. Simplify.
5908
5909 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5910
5911 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
5912 (doloop_end): Use that name. Simplify.
5913
5914 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5915
5916 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
5917 parameterized name.
5918 (indirect_jump): Use that name. Simplify.
5919
5920 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5921
5922 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
5923 parameterized name.
5924 (abs<mode>2): Use that name. Simplify.
5925
5926 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5927
5928 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
5929 parameterized name.
5930 (fix_trunc<mode>si2): Use that name. Simplify.
5931
5932 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5933
5934 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
5935 (allocate_stack): Use that name. Simplify.
5936
5937 2019-07-01 Martin Sebor <msebor@redhat.com>
5938
5939 PR middle-end/90923
5940 * hash-map.h (hash_map::put): On insertion invoke element ctor.
5941 (hash_map::get_or_insert): Same. Reformat comment.
5942 * hash-set.h (hash_set::add): On insertion invoke element ctor.
5943 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
5944 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
5945 * hash-table.h (hash_table::operator=): Prevent copy assignment.
5946 (hash_table::hash_table (const hash_table&)): Use copy ctor
5947 instead of assignment to copy elements.
5948
5949 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
5950 John David Anglin <danglin@gcc.gnu.org>
5951
5952 PR target/90963
5953 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
5954 using saved frame pointer.
5955
5956 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
5957
5958 PR middle-end/64242
5959 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
5960 Add frame clobber and schedule blockage.
5961
5962 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
5963
5964 * doc/invoke.texi (Link Options): Further editorial changes to
5965 -flinker-output docs.
5966
5967 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
5968
5969 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
5970 Load both operands of a PLUS into registers separately.
5971
5972 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
5973
5974 * config/s390/vector.md: Fix shift count operand printing.
5975
5976 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
5977
5978 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
5979
5980 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
5981
5982 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
5983 Use recog_data to test for an output operand.
5984
5985 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
5986
5987 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
5988 exclude any others that are disparaged or that are bound to need
5989 a reload or spill.
5990 (ira_get_dup_out_num): Expand comment.
5991
5992 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
5993
5994 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
5995 constraint string for each operand/alternative combo. Only handle
5996 '%' at the start of constraint strings, and look for it outside
5997 the main loop.
5998
5999 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6000
6001 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
6002 alternative_mask instead of HARD_REG_SET to represent a
6003 bitmask of alternatives.
6004 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
6005 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
6006
6007 2019-07-01 Martin Liska <mliska@suse.cz>
6008
6009 * edit-context.c (test_applying_fixits_unreadable_file): Do not
6010 use () for a constructor call.
6011 (test_applying_fixits_line_out_of_range): Likewise.
6012 * ggc-page.c (alloc_page): Use (void *) for %p printf format
6013 argument.
6014 (free_page): Likewise.
6015
6016 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
6017
6018 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
6019 parameter names to match usage (no functional change).
6020 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
6021
6022 2019-07-01 Richard Biener <rguenther@suse.de>
6023
6024 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
6025 pass parameter.
6026 (pass_fre::execute): Honor it.
6027 * passes.def: Adjust pass_fre invocations to allow iterating,
6028 add non-iterating pass_fre before late threading/dom.
6029
6030 2019-07-01 Richard Biener <rguenther@suse.de>
6031
6032 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
6033 TARGET_MEM_REF handling to also handle address-taken ones.
6034
6035 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
6036
6037 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6038 hardware attributes): Document avx512vp2intersect.
6039
6040 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6041
6042 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
6043 (abs<mode>2): New expander.
6044 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
6045 Use CODE_FOR_ssse3_absv8qi2.
6046 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
6047 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
6048
6049 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6050
6051 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
6052 to sse, sse_noavx and avx. Update all uses.
6053
6054 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6055
6056 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
6057 (*mmx_<plusminus_insn><mode>3): Ditto.
6058 (*mmx_mulv4hi3"): Ditto.
6059 (*mmx_smulv4hi3_highpart): Ditto.
6060 (*mmx_umulv4hi3_highpart): Ditto.
6061 (*mmx_pmaddwd): Ditto.
6062 (*sse2_umulv1siv1di3): Ditto.
6063 (*mmx_<code>v4hi3): Ditto.
6064 (*mmx_<code>v8qi3): Ditto.
6065 (mmx_ashr<mode>3): Ditto.
6066 ("mmx_<shift_insn><mode>3): Ditto.
6067 (*mmx_eq<mode>3): Ditto.
6068 (mmx_gt<mode>3): Ditto.
6069 (mmx_andnot<mode>3): Ditto.
6070 (*mmx_<code><mode>3): Ditto.
6071 (*mmx_pinsrw): Ditto.
6072 (*mmx_pextrw): Ditto.
6073 (mmx_pshufw_1): Ditto.
6074 (*mmx_uavgv8qi3): Ditto.
6075 (*mmx_uavgv4hi3): Ditto.
6076 ("mmx_psadbw): Ditto.
6077 * config/i386/sse.md (sse_cvtps2pi): Ditto.
6078 (sse_cvttps2pi): Ditto.
6079 (ssse3_pmaddubsw): Ditto.
6080 (*ssse3_pmulhrswv4hi3): Ditto.
6081 (ssse3_psign<mode>3): Ditto.
6082
6083 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
6084
6085 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
6086 adjustment for bit-fields to all aggregate types.
6087
6088 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
6089
6090 * config/rs6000/predicates.md (pcrel_address): Use
6091 SYMBOL_REF_LOCAL_P to determine if a label is local.
6092 (pcrel_external_address): New predicate.
6093 (non_prefixed_mem_operand): Delete, predicate not used.
6094 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
6095 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
6096 addressing.
6097 (SYMBOL_REF_PCREL_P): Likewise.
6098
6099 PR target/91009
6100 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
6101 alternative.
6102 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
6103 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
6104 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
6105
6106 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6107
6108 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
6109 override on extra_headers.
6110
6111 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6112
6113 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
6114 * config/darwin-driver.c (darwin_default_min_version): Remove newline
6115 from warning.
6116 (darwin_driver_init): Likewise.
6117
6118 2019-06-28 Jan Beulich <jbeulich@suse.com>
6119
6120 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6121 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
6122 Eliminate redundant alternative.
6123
6124 2019-06-28 Jan Beulich <jbeulich@suse.com>
6125
6126 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6127 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
6128 Use vector_operand.
6129
6130 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
6131
6132 * config/arc/arc.c (arc_rtx_costs): All short instructions are
6133 having a lower cost regardless of the speed option.
6134
6135 2019-06-28 Jan Beulich <jbeulich@suse.com>
6136
6137 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
6138 vector_operand plus, on both alternatives, "Bm" constraint.
6139
6140 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
6141
6142 * config/arm/arm.md: Remove redundant constraints from
6143 define_expand but leave reload_inm and reload_outm patterns
6144 untouched since they need special constraints to work.
6145 * config/arm/arm-fixed.md: Remove redundant constraints from
6146 define_expand.
6147 * config/arm/iwmmxt.md: Likewise.
6148 * config/arm/neon.md: Likewise.
6149 * config/arm/sync.md: Likewise.
6150 * config/arm/thumb1.md: Likewise.
6151 * config/arm/vec-common.md: Likewise.
6152
6153 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
6154
6155 * doc/install.texi: Document --disable-tm-clone-registry.
6156
6157 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6158
6159 PR c++/91024
6160 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
6161 statements.
6162
6163 PR tree-optimization/91010
6164 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
6165 return true. Otherwise, don't call operand_equal_p if offset1 or
6166 offset2 is NULL and just return false.
6167
6168 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6169
6170 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
6171 user-specified float mode choice for kernel mode code.
6172
6173 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6174
6175 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
6176 spec.
6177
6178 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6179
6180 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
6181 use longcall for 64b code.
6182
6183 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
6184
6185 * builtins.c (get_memory_rtx): Fix comment.
6186 * optabs.def (movmem_optab): Change to cpymem_optab.
6187 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
6188 (emit_block_move_hints): Change movmem to cpymem.
6189 * defaults.h: Change movmem to cpymem.
6190 * targhooks.c (get_move_ratio): Change movmem to cpymem.
6191 (default_use_by_pieces_infrastructure_p): Ditto.
6192 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
6193 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
6194 to cpymem.
6195 * config/aarch64/aarch64.h: Change movmem to cpymem.
6196 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
6197 * config/alpha/alpha.h: Change movmem to cpymem in comment.
6198 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
6199 movmem to cpymem.
6200 * config/arc/arc-protos.h: Change movmem to cpymem.
6201 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
6202 * config/arc/arc.h: Change movmem to cpymem in comment.
6203 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
6204 * config/arm/arm-protos.h: Change movmem to cpymem in names.
6205 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
6206 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
6207 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
6208 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
6209 * config/avr/avr-protos.h: Change movmem to cpymem.
6210 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
6211 avr_out_movmem): Change movmem to cpymem.
6212 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
6213 Change movmem to cpymem.
6214 * config/bfin/bfin-protos.h: Change movmem to cpymem.
6215 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
6216 Change movmem to cpymem.
6217 * config/bfin/bfin.h: Change movmem to cpymem in comment.
6218 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
6219 * config/c6x/c6x-protos.h: Change movmem to cpymem.
6220 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
6221 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
6222 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
6223 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
6224 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
6225 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
6226 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
6227 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
6228 expand_small_cpymem_or_setmem,
6229 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
6230 expand_set_or_cpymem_constant_prologue,
6231 ix86_expand_set_or_cpymem): Change movmem to cpymem.
6232 * config/i386/i386-protos.h: Change movmem to cpymem.
6233 * config/i386/i386.h: Change movmem to cpymem in comment.
6234 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
6235 (setmem<mode>): Change expansion function name.
6236 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
6237 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
6238 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
6239 * config/m32c/m32c-protos.h: Change movmem to cpymem.
6240 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
6241 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
6242 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
6243 to cpymem.
6244 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
6245 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
6246 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
6247 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
6248 Change movmem to cpymem.
6249 * config/mips/mips.h: Change movmem to cpymem.
6250 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
6251 * config/nds32/nds32-memory-manipulation.c
6252 (nds32_expand_movmemsi_loop_unknown_size,
6253 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
6254 nds32_expand_movmemsi_unroll,
6255 nds32_expand_movmemsi): Change movmem to cpymem.
6256 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
6257 * config/nds32/nds32-protos.h: Change movmem to cpymem.
6258 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
6259 (pa_adjust_insn_length): Change call to compute_movmem_length.
6260 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
6261 movmemdi, movmemdi_prereload,
6262 movmemdi_postreload): Change movmem to cpymem.
6263 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
6264 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
6265 * config/riscv/riscv.c: Change movmem to cpymem in comment.
6266 * config/riscv/riscv.h: Change movmem to cpymem.
6267 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
6268 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
6269 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
6270 movmem to cpymem.
6271 * config/s390/s390-protos.h: Change movmem to cpymem.
6272 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
6273 s390_expand_insv): Change movmem to cpymem.
6274 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
6275 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
6276 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
6277 * config/sparc/sparc.h: Change movmem to cpymem in comment.
6278 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
6279 for nonexistent function.
6280 * config/vax/vax.h: Change movmem to cpymem in comment.
6281 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
6282 * config/visium/visium.h: Change movmem to cpymem in comment.
6283 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
6284 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
6285 * doc/md.texi: Change movmem to cpymem and update description to match.
6286 * doc/rtl.texi: Change movmem to cpymem.
6287 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
6288 * doc/tm.texi: Regenerate.
6289
6290 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
6291
6292 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6293 -fvariable-expansion-in-unroller by default.
6294 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
6295 default for Power.
6296
6297 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
6298
6299 Revert
6300 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6301 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6302
6303 * config.gcc(rs6000-*-*): Define target_gtfiles.
6304
6305 2019-06-27 Jan Hubicka <jh@suse.cz>
6306
6307 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
6308 (add_type_duplicate): When odr hash is not allocated, to nothing.
6309 (odr_based_tbaa_p): New function.
6310 (set_type_canonical_for_odr_type): New function.
6311 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
6312 set_type_canonical_for_odr_type): New.
6313 * tree.c (gimple_canonical_types_compatible_p): ODR types with
6314 ODR based TBAA are not equivalent to non-ODR types.
6315
6316 2019-06-27 Martin Liska <mliska@suse.cz>
6317
6318 PR tree-optimization/90974
6319 PR rtl-optimization/90975
6320 PR rtl-optimization/90976
6321 PR target/91016
6322 PR tree-optimization/91017
6323 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
6324 unused tmp.
6325 * lra.c (lra_set_insn_recog_data): Remove a leftover from
6326 initial commit of IRA.
6327 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
6328 of op0 and op1.
6329 * tree-vect-loop.c (vect_create_epilog_for_reduction):
6330 Remove unused mode1.
6331 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
6332 to new_stmt_info.
6333
6334 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6335
6336 PR target/90991
6337 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
6338 instead of register_operand for operands[1], add m to its constraints
6339 if operands[2] uses "C" constraint. Ensure in condition that if
6340 operands[2] is not 0, then operands[1] is not a MEM. For last two
6341 alternatives, use unaligned loads instead of aligned if operands[1] is
6342 misaligned_operand.
6343
6344 2019-06-27 Martin Liska <mliska@suse.cz>
6345
6346 * asan.c (asan_emit_allocas_unpoison): Remove obviously
6347 dead assignments.
6348 * bt-load.c (move_btr_def): Likewise.
6349 * builtins.c (expand_builtin_apply_args_1): Likewise.
6350 (expand_builtin_apply): Likewise.
6351 * cfgexpand.c (expand_asm_stmt): Likewise.
6352 (construct_init_block): Likewise.
6353 * cfghooks.c (verify_flow_info): Likewise.
6354 * cfgloopmanip.c (remove_path): Likewise.
6355 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
6356 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
6357 * combine.c (simplify_if_then_else): Likewise.
6358 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6359 (choose_basereg): Likewise.
6360 (ix86_expand_prologue): Likewise.
6361 (ix86_preferred_output_reload_class): Likewise.
6362 * cselib.c (cselib_record_sets): Likewise.
6363 * df-scan.c (df_scan_alloc): Likewise.
6364 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
6365 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
6366 * emit-rtl.c (try_split): Likewise.
6367 * graphite-scop-detection.c (assign_parameter_index_in_region):
6368 Likewise.
6369 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
6370 * ira-color.c (setup_profitable_hard_regs): Likewise.
6371 * ira.c (rtx_moveable_p): Likewise.
6372 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6373 * read-rtl.c (read_subst_mapping): Likewise.
6374 * regrename.c (scan_rtx): Likewise.
6375 * reorg.c (fill_slots_from_thread): Likewise.
6376 * tree-inline.c (tree_function_versioning): Likewise.
6377 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
6378 * tree-ssa-sink.c (statement_sink_location): Likewise.
6379 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6380 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
6381 (vect_create_epilog_for_reduction): Likewise.
6382 * tree.c (build_nonstandard_integer_type): Likewise.
6383
6384 2019-06-27 Richard Biener <rguenther@suse.de>
6385
6386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
6387
6388 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
6389
6390 PR tree-optimization/89772
6391 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
6392 out-of-bound accesses checking.
6393
6394 2019-06-27 Martin Liska <mliska@suse.cz>
6395
6396 PR tree-optimization/91014
6397 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
6398 when LHS is NULL_TREE.
6399
6400 2019-06-27 Martin Liska <mliska@suse.cz>
6401
6402 * symbol-summary.h (traverse): Pass
6403 argument a to the call of callback.
6404 (gt_ggc_mx): Mark arguments as unused.
6405 (gt_pch_nx): Likewise.
6406
6407 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
6408
6409 PR target/62147
6410 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
6411 finiteness.
6412
6413 2019-06-26 Jeff Law <law@redhat.com>
6414
6415 PR tree-optimization/90883
6416 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
6417 (delete_dead_or_redundant_assignment): Likewise.
6418
6419 PR tree-optimization/90883
6420 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
6421 * tree-ssa-dse.c: Update various comments to distinguish between
6422 dead and redundant stores.
6423 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
6424 (dse_optimize_redundant_stores): New function.
6425 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
6426 Distinguish between dead and redundant calls in dump output. All
6427 callers updated.
6428 (delete_dead_or_redundant_assignment): Similarly for assignments.
6429 (dse_optimize_stmt): Handle _CHK variants. For statements which
6430 store 0 into multiple memory locations, try to prove a subsequent
6431 store is redundant.
6432
6433 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
6434
6435 PR target/89021
6436 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
6437 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
6438
6439 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6440
6441 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
6442 (branch_islands): New extern.
6443 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
6444 * config/rs6000/rs6000.c: .. here.
6445
6446 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6447
6448 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
6449 (powerpc*-*-*) ... to here.
6450
6451 2019-06-26 Jeff Law <law@redhat.com>
6452
6453 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
6454 memcpy, memmove and memset builtins.
6455 (maybe_trim_memstar_call): Likewise.
6456
6457 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6458
6459 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
6460
6461 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6462
6463 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6464
6465 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6466
6467 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
6468 declaration.
6469 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
6470 "static".
6471 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
6472 declaration.
6473
6474 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6475
6476 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
6477
6478 2019-06-26 Richard Biener <rguenther@suse.de>
6479
6480 PR ipa/90982
6481 * tree-inline.c (remap_ssa_name): Copy SSA range info.
6482
6483 2019-06-26 Richard Biener <rguenther@suse.de>
6484
6485 * lto-streamer.h (lto_bitmap_alloc): Remove.
6486 (lto_bitmap_free): Likewise.
6487 * lto-streamer.c (lto_bitmap_alloc): Remove.
6488 (lto_bitmap_free): Likewise.
6489 (lto_obstack): Likewise.
6490 (lto_obstack_initialized): Likewise.
6491 * lto-streamer-out.c (lto_output): Use own obstack for local
6492 bitmap, free it consistently.
6493
6494 2019-06-26 Jakub Jelinek <jakub@redhat.com>
6495
6496 PR target/90991
6497 * config/i386/sse.md
6498 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
6499 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
6500 insns if operands[2] is misaligned_operand.
6501
6502 2019-06-26 Li Jia He <helijia@linux.ibm.com>
6503
6504 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
6505 TARGET_POWERPC64.
6506 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
6507 to GPR.
6508
6509 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6510
6511 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
6512
6513 2019-06-26 Martin Liska <mliska@suse.cz>
6514
6515 PR tree-optimization/90973
6516 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
6517 epilogue_cost_vec instead of prologue_cost_vec for
6518 a epilogue cost.
6519
6520 2019-06-26 Martin Liska <mliska@suse.cz>
6521
6522 * bb-reorder.c (connect_better_edge_p): Add missing else
6523 statement in the middle of if-else statements.
6524
6525 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
6526 H.J. Lu <hongjiu.lu@intel.com>
6527 Olga Makhotina <olga.makhotina@intel.com>
6528
6529 * common/config/i386/i386-common.c
6530 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
6531 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
6532 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
6533 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
6534 (ix86_handle_option): Handle -mavx512vp2intersect.
6535 * config/i386/avx512vp2intersectintrin.h: New.
6536 * config/i386/avx512vp2intersectvlintrin.h: New.
6537 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
6538 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6539 AVX512VP2INTERSECT.
6540 * config/i386/i386-builtin-types.def: Add new types.
6541 * config/i386/i386-builtin.def: Add new builtins.
6542 * config/i386/i386-builtins.c: (enum processor_features): Add
6543 F_AVX512VP2INTERSECT.
6544 (static const _isa_names_table isa_names_table): Ditto.
6545 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6546 __AVX512VP2INTERSECT__.
6547 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
6548 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
6549 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
6550 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
6551 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
6552 * config/i386/i386-options.c (ix86_target_string): Add
6553 -mavx512vp2intersect.
6554 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
6555 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
6556 P2HImode and P2QImode.
6557 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
6558 number for P2QImode and P2HImode.
6559 (ix86_regmode_natural_size): New function.
6560 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
6561 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
6562 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
6563 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
6564 * config/i386/i386.opt: Add -mavx512vp2intersect.
6565 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
6566 avx512vp2intersectvlintrin.h.
6567 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
6568 (define_mode_iterator VI48_AVX512VP2VL): New.
6569 (avx512vp2intersect_2intersect<mode>,
6570 avx512vp2intersect_2intersectv16si): New define_insn patterns.
6571 * config.gcc: Add avx512vp2intersectvlintrin.h and
6572 avx512vp2intersectintrin.h to extra_headers.
6573 * doc/invoke.texi: Document -mavx512vp2intersect.
6574
6575 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
6576
6577 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
6578
6579 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6580
6581 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
6582 savres_routine_syms, savres_routine_name, morestack_ref,
6583 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6584 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6585 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6586 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6587 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6588 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6589 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6590 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6591 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6592 get_stack_clash_protection_probe_interval,
6593 get_stack_clash_protection_guard_size,
6594 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6595 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6596 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6597 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6598 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6599 gen_frame_mem_offset, rs6000_savres_routine_name,
6600 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6601 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6602 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6603 rs6000_global_entry_point_prologue_needed_p,
6604 rs6000_get_separate_components, rs6000_components_for_bb,
6605 rs6000_disqualify_components, rs6000_emit_prologue_components,
6606 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6607 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6608 rs6000_output_savres_externs, rs6000_output_function_prologue,
6609 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6610 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6611 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6612 rs6000_output_function_epilogue, gen_add3_const,
6613 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6614 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6615 to rs6000-logue.c.
6616 (machine_function): Moved to rs6000.h.
6617 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
6618 rs6000-internal.h.
6619 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
6620 savres_routine_syms, savres_routine_name, morestack_ref,
6621 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6622 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6623 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6624 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6625 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6626 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6627 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6628 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6629 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6630 get_stack_clash_protection_probe_interval,
6631 get_stack_clash_protection_guard_size,
6632 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6633 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6634 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6635 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6636 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6637 gen_frame_mem_offset, rs6000_savres_routine_name,
6638 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6639 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6640 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6641 rs6000_global_entry_point_prologue_needed_p,
6642 rs6000_get_separate_components, rs6000_components_for_bb,
6643 rs6000_disqualify_components, rs6000_emit_prologue_components,
6644 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6645 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6646 rs6000_output_savres_externs, rs6000_output_function_prologue,
6647 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6648 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6649 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6650 rs6000_output_function_epilogue, gen_add3_const,
6651 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6652 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6653 to here from rs6000.c.
6654 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
6655 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
6656 quad_address_offset_p) Moved to here from rs6000.c.
6657 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
6658 * config/config.gcc: Add new source file rs6000-logue.c to garbage
6659 collector.
6660
6661 2019-06-25 Martin Liska <mliska@suse.cz>
6662
6663 * hash-table.c (hashtab_chk_error): Move here from ...
6664 * hash-table.h (hashtab_chk_error): ... here.
6665
6666 2019-06-25 Martin Liska <mliska@suse.cz>
6667
6668 PR tree-optimization/90978
6669 * df-scan.c (df_update_entry_block_defs): Remove dead else
6670 branch.
6671 (df_update_exit_block_uses): Likewise.
6672
6673 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6674 Andrew Stubbs <ams@codesourcery.com>
6675
6676 * config.gcc (thread_file): Set to gcn for AMD GCN.
6677 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
6678 (TARGET_EMUTLS_VAR_INIT): New hook.
6679
6680 2019-06-25 Martin Jambor <mjambor@suse.cz>
6681
6682 PR ipa/90939
6683 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
6684
6685 2019-06-25 Richard Biener <rguenther@suse.de>
6686
6687 PR tree-optimization/90930
6688 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
6689 into parallel form in the last pass instance.
6690
6691 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
6692
6693 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
6694 (arc_legitimize_pic_address): Simplify and cleanup the function.
6695 (SYMBOLIC_CONST): Remove.
6696 (prepare_pic_move): Likewise.
6697 (prepare_move_operands): Handle complex mov cases here.
6698 (arc_legitimize_address_0): Remove call to
6699 arc_legitimize_pic_address.
6700 (arc_legitimize_address): Remove call to
6701 arc_legitimize_tls_address.
6702 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
6703 (movhi_insn): Likewise.
6704
6705 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6706
6707 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
6708 PTRDIFF_TYPE.
6709 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
6710 format of "__intN" types for UINTMAX_TYPE.
6711 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
6712 format of "__intN" types for SIZETYPE.
6713 * tree.c (build_common_tree_nodes): Accept "__intN__"
6714 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
6715 * doc/invoke.texi: Document that __intN__ disables pedantic
6716 warnings.
6717
6718 2019-06-25 Jan Hubicka <jh@suse.cz>
6719
6720 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
6721 base2_alias_set is non-zero before doing TBAA based disambiguation.
6722
6723 2019-06-25 Martin Liska <mliska@suse.cz>
6724
6725 PR tree-optimization/90973
6726 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
6727 of prologue and epilogue.
6728
6729 2019-06-24 Jan Hubicka <jh@suse.cz>
6730
6731 * ipa-utils.h (type_with_linkage_p): Verify that type is
6732 CXX_ODR_P.
6733 (odr_type_p): Remove extra return.
6734 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
6735 hash STRING_FLAG only for arrays and integers.
6736 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
6737 Update analogously.
6738 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6739 Likewise.
6740 * print-tree.c (print_node): Print cxx-odr-p
6741 and string-flag.
6742 * tree.c (need_assembler_name_p): Also check that type
6743 is CXX_ODR_TYPE_P
6744 (verify_type_variant): Update verification of SRING_FLAG;
6745 also check CXX_ODR_P.
6746 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
6747 (TYPE_STRING_FLAG): Use it.
6748 (TYPE_CXX_ODR_P): New macro.
6749 * dwarf2out.c (gen_array_type_die): First check that type
6750 is an array and then test string flag.
6751
6752 2019-06-24 Richard Biener <rguenther@suse.de>
6753
6754 PR tree-optimization/90972
6755 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
6756 in common code, dealing with STRING_CST properly.
6757
6758 2019-06-24 Richard Biener <rguenther@suse.de>
6759
6760 PR tree-optimization/90930
6761 PR tree-optimization/90316
6762 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
6763 decrement of limit.
6764
6765 2019-06-24 Martin Sebor <msebor@redhat.com>
6766
6767 * tree-pretty-print.h: Remove unnecessary punctuation characters
6768 from a diagnostic.
6769 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
6770
6771 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
6772
6773 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
6774 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
6775 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
6776
6777 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
6778
6779 * config/rs6000/darwin.h: Handle GCC target pragma.
6780
6781 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
6782
6783 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
6784
6785 2019-06-22 Jeff Law <law@redhat.com>
6786
6787 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
6788
6789 2019-06-22 Jan Hubicka <jh@suse.cz>
6790
6791 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
6792 give up on bitfields; continue searching for different refs
6793 appearing later.
6794
6795 2019-06-21 Jakub Jelinek <jakub@redhat.com>
6796
6797 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
6798 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
6799 containing the offset as possible simd lane access. Look through
6800 widening conversion. Move the
6801 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
6802
6803 2019-06-21 Richard Biener <rguenther@suse.de>
6804
6805 PR tree-optimization/90930
6806 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
6807 flag on new stmts to avoid re-processing them.
6808
6809 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
6810
6811 PR c++/90875 - added -Wswitch-outside-range option
6812 * doc/invoke.texi (Wswitch-outside-range): Document.
6813
6814 2019-06-21 Jeff Law <law@redhat.com>
6815
6816 PR tree-optimization/90949
6817 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
6818 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
6819
6820 2019-06-21 Richard Biener <rguenther@suse.de>
6821
6822 PR debug/90914
6823 * dwarf2out.c (prune_unused_types_walk): Always consider
6824 function-local extern declarations as used.
6825
6826 2019-06-21 Richard Biener <rguenther@suse.de>
6827
6828 PR tree-optimization/90913
6829 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
6830 the scalar variant of if-conversion versioning.
6831
6832 2019-06-21 Jakub Jelinek <jakub@redhat.com>
6833
6834 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
6835 create another "omp scan inscan exclusive" array if
6836 !ctx->scan_inclusive.
6837 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
6838 (lower_omp_scan): Likewise.
6839 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
6840 2-bit bitfield for simd_lane_access_p member.
6841 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
6842 aux == (void *)-4 as simd lane access.
6843 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
6844 comment with permutations to show the canonical permutation order.
6845 (vectorizable_scan_store): Handle exclusive scan.
6846 (vectorizable_store): Call vectorizable_scan_store even for
6847 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
6848
6849 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
6850 "omp simd array" arrays with one byte elements.
6851
6852 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
6853
6854 * config/alpha/alpha.md (@unaligned_store<mode>):
6855 Rename from unaligned_store<mode>.
6856 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
6857 * config/alpha/sync.md (@load_locked_<mode>): Rename
6858 from load_locked_<mode>.
6859 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
6860 (@atomic_compare_and_swap<mode>_1): Rename
6861 from atomic_compare_and_swap<mode>_1.
6862 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
6863 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
6864 Use gen_reload_in_aligned and gen_unaligned_store.
6865 (emit_load_locked): Remove.
6866 (emit_store_conditional): Ditto.
6867 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
6868 (alpha_split_compare_and_swap): Ditto.
6869 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
6870 (alpha_split_compare_and_swap_12): Use gen_load_locked
6871 and gen_store_conditional.
6872 (alpha_split_atomic_exchange): Ditto.
6873 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
6874 (alpha_split_atomic_exchange_12): Use gen_load_locked
6875 and gen_store_conditional.
6876
6877 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
6878
6879 * config/aarch64/aarch64-errata.h: New file.
6880 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
6881 (CA53_ERR_843419_SPEC): Delete.
6882 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
6883 * config/aarch64/aarch64-linux.h: Likewise.
6884 * config/aarch64/aarch64-netbsd.h: Likewise.
6885 * config/aarch64/aarch64-freebsd.h: Likewise.
6886
6887 2019-06-20 Marek Polacek <polacek@redhat.com>
6888
6889 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
6890
6891 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
6892
6893 * config/rs6000/rs6000.md (isa attribute): Add support for
6894 for a future processor.
6895
6896 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
6897
6898 PR target/54855
6899 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
6900 standard scalar operation pattern for V2DF.
6901 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
6902 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
6903 (*ieee_<ieee_maxmin><mode>3): Likewise.
6904 (vec_setv2df_0): Likewise.
6905
6906 2019-06-20 Jan Hubicka <jh@suse.cz>
6907
6908 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
6909 parameter; it has no use in gimple memory model.
6910 (indirect_ref_may_alias_decl_p): Update.
6911
6912 2019-06-20 Martin Liska <mliska@suse.cz>
6913
6914 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
6915 to 10.
6916
6917 2019-06-20 Jakub Jelinek <jakub@redhat.com>
6918
6919 * tree-vect-stmts.c (enum scan_store_kind): New type.
6920 (scan_store_can_perm_p): Change last argument from int * to
6921 vec<enum scan_store_kind> *, record precisely which permutations
6922 need whole vector left shift or that plus VEC_COND_EXPR.
6923 (vectorizable_scan_store): Adjust caller, use whole vector left shift
6924 and additional VEC_COND_EXPR only for those iterations that need it.
6925
6926 2019-06-20 Alexandre Oliva <oliva@adacore.com>
6927
6928 * config.gcc: Fix ARM --with-fpu checking and error message.
6929
6930 2019-06-19 Marek Polacek <polacek@redhat.com>
6931
6932 PR c++/60364 - noreturn after first decl not diagnosed.
6933 * attribs.c (get_attribute_namespace): No longer static.
6934 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
6935 attributes.
6936 (attr_noreturn_exclusions): Make it extern.
6937 * attribs.h (get_attribute_namespace): Declare.
6938 * tree-inline.c (function_attribute_inlinable_p): Use
6939 get_attribute_name.
6940
6941 2019-06-19 Martin Sebor <msebor@redhat.com>
6942
6943 PR tree-optimization/90626
6944 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
6945
6946 PR tree-optimization/90626
6947 * tree-ssa-strlen.c (strxcmp_unequal): New function.
6948 (handle_builtin_string_cmp): Call it.
6949
6950 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
6951
6952 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
6953 and DARWIN_NOPIE_SPEC.
6954 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
6955 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
6956 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
6957 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
6958 (DARWIN_EXPORT_DYNAMIC): Delete.
6959 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
6960 and pie options processing to darwin.h.
6961 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
6962
6963 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
6964
6965 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
6966 in computing the number of options to be moved.
6967
6968 2019-06-19 Maya Rashish <coypu@sdf.org>
6969
6970 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
6971 (CLEAR_INSN_CACHE) Use it.
6972
6973 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
6974
6975 * config/i386/i386.md (cmpstrnsi): Remove dead code.
6976
6977 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
6978
6979 PR middle-end/84521
6980 * builtins.c (expand_builtin_setjmp_setup): Save
6981 hard_frame_pointer_rtx.
6982 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
6983 restore fp.
6984 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
6985 non-local goto.
6986 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
6987 elimination code.
6988 (remove_reg_equal_offset_note): Remove unused function.
6989 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
6990 code.
6991 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
6992 (arc_builtin_setjmp_frame_value): Remove function.
6993 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
6994 (avr_builtin_setjmp_frame_value): Remove function.
6995 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
6996 (ix86_builtin_setjmp_frame_value): Remove function.
6997 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
6998 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
6999 (sparc_builtin_setjmp_frame_value): Remove function.
7000 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7001 (vax_builtin_setjmp_frame_value): Remove function.
7002 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
7003 pointer if has_nonlocal_label.
7004
7005 2019-06-19 Jakub Jelinek <jakub@redhat.com>
7006
7007 * doc/md.texi: Document vec_shl_<mode> pattern.
7008 * optabs.def (vec_shl_optab): New optab.
7009 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
7010 argument, if == vec_shl_optab, check for left whole vector shift
7011 pattern rather than right shift.
7012 (expand_vec_perm_const): Add vec_shl_optab support.
7013 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
7014 in the comment.
7015 * tree-vect-generic.c (lower_vec_perm): Support permutations which
7016 can be handled by vec_shl_optab.
7017 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
7018 (check_scan_store): Use it.
7019 (vectorizable_scan_store): If target can't do normal permutations,
7020 try to use whole vector left shifts and if needed a VEC_COND_EXPR
7021 after it.
7022 * config/i386/sse.md (vec_shl_<mode>): New expander.
7023
7024 * omp-low.c (lower_rec_input_clauses): Handle references properly
7025 in inscan clauses.
7026 (lower_omp_scan): Likewise.
7027
7028 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7029
7030 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
7031 mem_mode is BLKmode.
7032
7033 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
7034
7035 PR target/90922
7036 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
7037 pointer adjustment for the case of no callee-saved registers and
7038 stack frame bigger than 128 bytes.
7039
7040 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7041
7042 PR middle-end/90862
7043 * omp-low.c (check_omp_nesting_restrictions): Handle
7044 GF_OMP_TARGET_KIND_OACC_DECLARE.
7045
7046 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
7047
7048 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
7049 (@add<mode>3_carry): Rename from add<mode>3_carry.
7050 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
7051 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
7052 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
7053 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
7054 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
7055 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
7056 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
7057 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
7058 (cmpstrnsi): Use gen_cmp_1.
7059 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
7060 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
7061 (@umonitor_<mode>): Rename from umonitor_<mode>.
7062 * config/i386/i386-expand.c (ix86_expand_copysign):
7063 Use gen_copysign3_const and gen_copysign3_var.
7064 (ix86_expand_xorsign): Use gen_xorsign3_1.
7065 (ix86_expand_branch): Use gen_sub3_carry_ccc,
7066 gen_sub3_carry_ccgz and gen_cmp1.
7067 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
7068 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
7069 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
7070 (ix86_split_lshr): Ditto.
7071 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
7072
7073 2019-06-18 Jason Merrill <jason@redhat.com>
7074
7075 * tree.c (build_constructor): Add MEM_STAT_DECL.
7076
7077 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7078
7079 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
7080 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
7081 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
7082 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
7083 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
7084 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
7085 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
7086 Use CC_NZC instead of CC.
7087 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
7088 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
7089 (aarch64_print_operand): Handle E_CC_NZCmode.
7090 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
7091 of gen_set_clobber_cc.
7092
7093 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7094
7095 * config/aarch64/aarch64-sve.md: Tabify file.
7096
7097 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7098
7099 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
7100 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
7101 * config/aarch64/aarch64-sve.md: Use it.
7102
7103 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7104
7105 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
7106 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
7107 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
7108 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
7109 (aarch64_expand_sve_vec_cmp_int): Use it.
7110 (aarch64_expand_sve_vec_cmp_float): Likewise.
7111 * config/aarch64/aarch64-sve.md: Likewise throughout.
7112
7113 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7114 Kugan Vivekanandarajah <kuganv@linaro.org>
7115
7116 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
7117 (*cond_<optab><mode>_z): Fold into...
7118 (*cond_<optab><mode>_any): ...here. Also handle cases in which
7119 operand 4 can be tied to operand 0 (either inherently or via RA).
7120
7121 2019-06-18 Richard Biener <rguenther@suse.de>
7122
7123 PR debug/90900
7124 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
7125 as if optimized away.
7126
7127 2019-06-18 Tom de Vries <tdevries@suse.de>
7128
7129 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
7130 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
7131 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
7132 Rename to ...
7133 (define_insn "@set_softstack_<mode>"): ... this.
7134 (define_insn "omp_simt_enter_<mode>"): Rename to ...
7135 (define_insn "@omp_simt_enter_<mode>"): ... this.
7136 (define_insn "omp_simt_exit_<mode>"): Rename to ...
7137 (define_insn "@omp_simt_exit_<mode>"): ... this.
7138
7139 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7140
7141 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
7142 vf parameter. Restore the previous iv step of nscalars_step,
7143 but give it iv_type rather than compare_type. Tweak code order
7144 to match the comments.
7145 (vect_set_loop_condition_masked): Update accordingly.
7146 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
7147 for iv_precision. Tweak comment formatting.
7148
7149 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7150
7151 * config/darwin.c: Strip trailing whitespace.
7152
7153 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7154
7155 * config/darwin.c (darwin_emit_unwind_label): New default to false.
7156 (darwin_override_options): Set darwin_emit_unwind_label as needed.
7157
7158 2019-06-18 Martin Jambor <mjambor@suse.cz>
7159
7160 PR ipa/90889
7161 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
7162 caller does not have flag_ipa_cp set.
7163
7164 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7165
7166 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
7167 from "*fold_left_plus_<mode>", updated operands order.
7168 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
7169 * internal-fn.c (mask_fold_left_direct): New define.
7170 (expand_mask_fold_left_optab_fn): Likewise.
7171 (direct_mask_fold_left_optab_supported_p): Likewise.
7172 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
7173 * optabs.def (mask_fold_left_plus_optab): New optab.
7174 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
7175 masked internal_fn for a reduction ifn.
7176 (vectorize_fold_left_reduction): Add support for masking reductions.
7177
7178 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
7179
7180 PR middle-end/80791
7181 * target.def (predict_doloop_p): New hook.
7182 * targhooks.h (default_predict_doloop_p): New declaration.
7183 * targhooks.c (default_predict_doloop_p): New function.
7184 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
7185 * doc/tm.texi: Regenerate.
7186 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
7187 (TARGET_PREDICT_DOLOOP_P): New macro.
7188 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
7189
7190 2019-06-17 Jakub Jelinek <jakub@redhat.com>
7191
7192 * omp-low.c (struct omp_context): Add scan_inclusive field.
7193 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
7194 if inclusive scan.
7195 (struct omplow_simd_context): Add lastlane member.
7196 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
7197 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
7198 1 or 2 argument.
7199 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
7200 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
7201 (lower_omp_scan): New function.
7202 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
7203 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
7204 check 3rd argument if present rather than 2nd.
7205 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
7206 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
7207 2-bit bitfield.
7208 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7209 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
7210 than 2nd.
7211 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
7212 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
7213 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
7214 init.
7215 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
7216 IFN_GOMP_SIMD_LANE argument.
7217 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
7218 encoded ->aux value.
7219 * tree-vect-stmts.c: Include attribs.h.
7220 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
7221 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
7222 functions.
7223 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
7224 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
7225
7226 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
7227
7228 PR target/62055
7229 * config/i386/i386.md (*nabstf2_1): New insn pattern.
7230 (*nabs<mode>2_1): Ditto.
7231 (nabs sse-reg splitter): New splitter.
7232 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
7233
7234 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7235
7236 PR bootstrap/90873.
7237 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7238 TMR index check.
7239
7240 2019-06-17 Tom de Vries <tdevries@suse.de>
7241
7242 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
7243 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
7244 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
7245 ...
7246 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
7247 match_operand 0.
7248 (define_insn "omp_simt_enter_insn"): Rename to ...
7249 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
7250 match_operand 0, 1 and 2, as well as the unspec_volatile result.
7251 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
7252 gen_omp_simt_enter_si.
7253 (define_expand "omp_simt_exit"): New.
7254 (define_insn "omp_simt_exit"): Rename to ...
7255 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
7256 match_operand 0.
7257
7258 2019-06-17 Matthew Green <mrg@eterna.com.au>
7259 Maya Rashish <coypu@sdf.org>
7260
7261 * config.gcc (aarch64*-*-netbsd*): New target.
7262 * config/aarch64/aarch64-netbsd.h: New file.
7263 * config/aarch64/t-aarch64-netbsd: Likewise.
7264
7265 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7266
7267 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
7268 the access path from base to first VIEW_CONVERT_EXPR or
7269 BIT_FIELD_REF.
7270
7271 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7272
7273 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
7274 access path on BIT_FIELD_REFs.
7275
7276 2019-06-17 Martin Liska <mliska@suse.cz>
7277
7278 PR ipa/90874
7279 * ipa-utils.h (odr_type_p): Remove dead code.
7280
7281 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7282
7283 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
7284 alternative Solaris 11.4 format.
7285 * configure: Regenerate.
7286
7287 2019-06-17 Tom de Vries <tdevries@suse.de>
7288
7289 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
7290 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
7291 match_operand 0.
7292 (define_insn "call_value_insn"): Rename to ...
7293 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
7294 match_operand 0.
7295 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
7296 DI.
7297
7298 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
7299
7300 PR middle-end/64242
7301 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
7302 frame clobbers and schedule block.
7303 (builtin_longjmp): Likewise.
7304
7305 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7306
7307 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
7308 describe how to perform MSPABI compliant 64-bit shift.
7309 * config/msp430/msp430.md (ashldi3): New define_expand.
7310 (ashrdi3): New define_expand.
7311 (lshrdi3): New define_expand.
7312
7313 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7314
7315 * doc/sourcebuild.texi: Document new effective target keyword
7316 longlong64.
7317
7318 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7319
7320 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
7321 indirect_refs_may_alias_p): Revert accidental commits.
7322
7323 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
7324 at the end of structures.
7325
7326 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7327
7328 * config/darwin.c (machopic_indirect_call_target): Use renamed
7329 darwin_picsymbol_stubs to decide on output.
7330 (darwin_override_options): Handle darwin_picsymbol_stubs.
7331 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
7332 (LD64_VERSION): Revise default.
7333 * config/darwin.opt: (mpic-symbol-stubs): New option.
7334 (darwin_picsymbol_stubs): New variable.
7335 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
7336 rename to TARGET_MACHO_PICSYM_STUBS.
7337 * config/i386/i386.c (output_pic_addr_const): Likewise.
7338 * config/i386/i386.h Likewise.
7339 * config/rs6000/darwin.h: Likewise.
7340 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
7341 darwin_picsymbol_stubs.
7342
7343 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7344
7345 * config/darwin.opt (prebind, noprebind, seglinkedit,
7346 noseglinkedit): Add RejectNegative.
7347
7348 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7349
7350 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
7351 in my previous patch.
7352
7353 2019-06-16 Tom de Vries <tdevries@suse.de>
7354
7355 PR tree-optimization/89376
7356 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
7357
7358 2019-06-15 Maya Rashish <coypu@sdf.org>
7359
7360 * doc/invoke.texi (Spec Files): Update location of the
7361 Fortran spec file.
7362
7363 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
7364
7365 * doc/extend.texi (Common Function Attributes): Clarify
7366 no_sanitize. Fix grammar.
7367
7368 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
7369
7370 * tree-ssa-alias.c (alias_stats): Add
7371 nonoverlapping_component_refs_p_may_alias,
7372 nonoverlapping_component_refs_p_no_alias,
7373 nonoverlapping_component_refs_of_decl_p_may_alias,
7374 nonoverlapping_component_refs_of_decl_p_no_alias.
7375 (dump_alias_stats): Dump them.
7376 (nonoverlapping_component_refs_of_decl_p): Add stats.
7377 (nonoverlapping_component_refs_p): Add stats; do not stop on first
7378 ARRAY_REF.
7379
7380 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
7381
7382 * config/i386/i386.md (and<mode>3): Generate zero-extends for
7383 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
7384 only.
7385 (*anddi3_doubleword): Split before reload. Merge with
7386 anddi->zext pre-reload splitter.
7387 (*andndi3_doubleword): Split before reload.
7388 (*<code>di3_doubleword): Ditto.
7389 (*one_cmpldi2_doubleword): Ditto.
7390
7391 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7392
7393 PR middle-end/90779
7394 * gimplify.c: Include omp-offload.h and context.h.
7395 (gimplify_bind_expr): Add "omp declare target" attributes
7396 to static block scope variables inside of target region or target
7397 functions.
7398
7399 2019-06-15 Tom de Vries <tdevries@suse.de>
7400
7401 PR tree-optimization/90009
7402 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
7403 Return NULL if bb contains IFN_UNIQUE.
7404
7405 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
7406
7407 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
7408 (un): New define_mode_attr.
7409 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
7410 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
7411 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
7412 merge into ...
7413 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
7414
7415 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
7416
7417 * config/darwin.opt: Add RejectNegative where needed, reorder
7418 and add minimal functional descriptions.
7419
7420 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7421
7422 PR rtl-optimization/90765
7423 * calls.c (update_stack_alignment_for_call): New function.
7424 (expand_call): Call update_stack_alignment_for_call when
7425 outgoing parameter is passed in the stack.
7426 (emit_library_call_value_1): Likewise.
7427 * function.c (locate_and_pad_parm): Don't update
7428 stack_alignment_needed and preferred_stack_boundary.
7429
7430 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7431
7432 PR target/90877
7433 * config/i386/i386-features.c
7434 (dimode_scalar_chain::compute_convert_gain): Replace
7435 mmxsse_to_integer with sse_to_integer.
7436 * config/i386/i386.c (ix86_register_move_cost): Verify that
7437 moves between MMX and non-MMX units require secondary memory.
7438 Correct costs of moves between SSE and integer units.
7439 * config/i386/i386.h (processor_costs): Rename cost of moving
7440 SSE register to integer to sse_to_integer. Rename cost of
7441
7442 2019-06-14 Matt Thomas <matt@3am-software.com>
7443 Matthew Green <mrg@eterna.com.au>
7444 Nick Hudson <skrll@netbsd.org>
7445 Maya Rashish <coypu@sdf.org>
7446 Richard Earnshaw <rearnsha@arm.com>
7447
7448 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
7449 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
7450 * config/arm/netbsd-eabi.h: New file.
7451 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
7452 redefining.
7453 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
7454 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
7455 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
7456 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
7457
7458 2019-06-14 Richard Biener <rguenther@suse.de>
7459
7460 * tree-loop-distribution.c (classify_partition): Return
7461 whether a reduction appeared in all partitions and do not
7462 stop builtin detection because of this.
7463 (distribute_loop): Sort a non-builtin partition last if
7464 there's a reduction in all partitions and make sure the
7465 partition prevailing as last is not a builtin.
7466
7467 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
7468
7469 PR ipa/90401
7470 * ipa-prop.c (add_to_agg_contents_list): New function.
7471 (clobber_by_agg_contents_list_p): Likewise.
7472 (extract_mem_content): Likewise.
7473 (get_place_in_agg_contents_list): Delete.
7474 (determine_known_aggregate_parts): Renamed from
7475 determine_locally_known_aggregate_parts. New parameter
7476 aa_walk_budget_p.
7477
7478 2019-06-13 Martin Sebor <msebor@redhat.com>
7479
7480 PR tree-optimization/90662
7481 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
7482 to the same type.
7483
7484 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7485
7486 PR bootstrap/90873
7487 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
7488 dbase is not TARGET_MEM_REF.
7489
7490 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7491
7492 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
7493 Update all uses.
7494 (and<mode>3): Use gen_extend_insn instead of indirect functions.
7495 Do not generate DImode extends for 32bit targets.
7496 (and->zext post-reload splitter): Use gen_extend_insn
7497 instead of indirect functions.
7498 (anddi->zext pre-reload splitter): New.
7499 (*zext<mode>_doubleword_and): Remove.
7500 (*zext<mode>_doubleword): Ditto.
7501 (*zextsi_doubleword): Dittto.
7502
7503 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7504
7505 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7506 Use gen_sub3_insn instead of indirect function.
7507 (ix86_expand_ashl_const): Use gen_add2_insn instead of
7508 indirect function.
7509 (ix86_adjust_counter): Ditto.
7510
7511 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
7512 Lijia He <helijia@linux.ibm.com>
7513
7514 PR tree-optimization/77820
7515 * tree-ssa-threadedge.c
7516 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
7517 function.
7518 (thread_across_edge): Add call to
7519 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
7520
7521 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
7522
7523 * config/darwin-driver.c (validate_macosx_version_min): New.
7524 (darwin_default_min_version): Cleanup and validate supplied version.
7525 (darwin_driver_init): Likewise and push cleaned version into opts.
7526
7527 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7528
7529 PR tree-optimization/90869
7530 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
7531 converts in MEM_REF referencing decl rather than view converts
7532 from decl type to MEM_REF type.
7533
7534 2019-06-13 Richard Biener <rguenther@suse.de>
7535
7536 PR tree-optimization/90856
7537 * tree-sra.c (build_ref_for_model): Only use
7538 build_reconstructed_reference when address-spaces are the same.
7539
7540 2019-06-13 Jakub Jelinek <jakub@redhat.com>
7541
7542 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
7543 wrap ei variable name in the declaration in ()s.
7544 (nvptx_single): Actually use mode_label variable. Formatting fix.
7545
7546 2019-06-13 Richard Biener <rguenther@suse.de>
7547
7548 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
7549 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
7550 also return the condition stmt.
7551 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
7552 loop we can version and version that, reusing the loop version
7553 created by if-conversion instead of versioning again.
7554
7555 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
7556
7557 * gimple-loop-versioning.cc (prune_loop_conditions): Use
7558 may_contain_p.
7559 * tree-vrp (value_range_base::may_contain_p): Call into
7560 value_inside_range.
7561 (value_inside_range): Make private inside value_range_base class.
7562 Take min/max from *this.
7563 (range_includes_p): Remove.
7564 * tree-vrp.h (value_range_base): Add value_inside_range.
7565 (range_includes_p): Remove.
7566 (range_includes_zero_p): Call may_contain_p.
7567 * vr-values.c (compare_range_with_value): Same.
7568
7569 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
7570
7571 * doc/extend.texi (ARC Function Attributes): Update info.
7572
7573 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7574
7575 PR tree-optimization/89713
7576 * doc/invoke.texi (-ffinite-loops): Document new option.
7577 * common.opt (-ffinite-loops): New option.
7578 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
7579 IFN_GOACC_LOOP calls as necessary.
7580 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
7581 is finite.
7582 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
7583 IFN_GOACC_LOOP call is not used.
7584 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
7585
7586 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7587
7588 PR target/88838
7589 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
7590 compare_type is not with Pmode size, we will create an IV with
7591 Pmode size with truncated use (i.e. converted to the correct type).
7592 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
7593 (vect_iv_limit_for_full_masking): New. Factored out of
7594 vect_set_loop_condition_masked.
7595 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
7596 (vect_iv_limit_for_full_masking): Declare.
7597
7598 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7599
7600 PR target/88834
7601 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
7602 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
7603 (get_alias_ptr_type_for_ptr_address): Likewise.
7604 (add_iv_candidate_for_use): Add scaled index candidate if useful.
7605 * tree-ssa-address.c (preferred_mem_scale_factor): New.
7606 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
7607 allow_reg_index_p.
7608
7609 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7610
7611 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
7612
7613 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
7614
7615 * common/config/pru/pru-common.c: New file.
7616 * config.gcc: Add PRU target.
7617 * config/pru/alu-zext.md: New file.
7618 * config/pru/constraints.md: New file.
7619 * config/pru/predicates.md: New file.
7620 * config/pru/pru-opts.h: New file.
7621 * config/pru/pru-passes.c: New file.
7622 * config/pru/pru-pragma.c: New file.
7623 * config/pru/pru-protos.h: New file.
7624 * config/pru/pru.c: New file.
7625 * config/pru/pru.h: New file.
7626 * config/pru/pru.md: New file.
7627 * config/pru/pru.opt: New file.
7628 * config/pru/t-pru: New file.
7629 * doc/extend.texi: Document PRU pragmas.
7630 * doc/invoke.texi: Document PRU-specific options.
7631 * doc/md.texi: Document PRU asm constraints.
7632
7633 2019-06-12 Martin Sebor <msebor@redhat.com>
7634
7635 PR middle-end/90676
7636 * tree-pretty-print.c (dump_mem_ref): New function. Include
7637 MEM_REF type in output when different size than operand.
7638 (dump_generic_node): Move code to dump_mem_ref and call it.
7639
7640 2019-06-12 Martin Sebor <msebor@redhat.com>
7641
7642 PR tree-optimization/90662
7643 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
7644 to arrays.
7645
7646 2019-06-12 Tom de Vries <tdevries@suse.de>
7647
7648 PR tree-optimization/90009
7649 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
7650
7651 2019-06-12 Martin Liska <mliska@suse.cz>
7652
7653 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
7654 the created map.
7655 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
7656 * mem-stats.h (mem_alloc_description::mem_alloc_description):
7657 Do not sanitize created maps.
7658
7659 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
7660
7661 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
7662 value_range::singleton_p.
7663 * tree-vrp.c (value_range_constant_singleton): Remove.
7664 * tree-vrp.h (value_range_constant_singleton): Remove.
7665 * vr-values.c (vr_values::singleton): Use
7666 value_range::singleton_p.
7667
7668 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7669
7670 PR target/90811
7671 * cfgexpand.c (align_local_variable): Add really_expand argument,
7672 don't SET_DECL_ALIGN if it is false.
7673 (add_stack_var): Add really_expand argument, pass it through to
7674 align_local_variable.
7675 (expand_one_stack_var_1): Pass true as really_expand to
7676 align_local_variable.
7677 (expand_one_ssa_partition): Pass true as really_expand to
7678 add_stack_var.
7679 (expand_one_var): Pass really_expand through to add_stack_var.
7680
7681 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7682
7683 * config/arm/iterators.md (VABAL): New int iterator.
7684 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
7685 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
7686 UNSPEC_VABAL_U values.
7687
7688 2019-06-12 Martin Liska <mliska@suse.cz>
7689
7690 * value-prof.c (stream_out_histogram_value): Only first value
7691 can't be negative.
7692
7693 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7694
7695 PR c/90760
7696 * symtab.c (symtab_node::set_section): Allow being called on aliases
7697 as long as they aren't analyzed yet.
7698
7699 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
7700
7701 * config/mips/mips.c (mips_final_postscan_insn): Modify call
7702 to `mips_set_text_contents_type' to indicate whether a
7703 non-debug insn follows.
7704
7705 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
7706
7707 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
7708 enabling -mpcrel by default.
7709 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
7710 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
7711 that the test against -mcpu=future is done first. Then test if
7712 -mprefixed-addr is on for -mpcrel.
7713 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
7714
7715 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7716
7717 PR target/90811
7718 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
7719 instead of and.u%d.
7720
7721 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7722
7723 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
7724
7725 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
7726
7727 PR c++/90449 - add -Winaccessible-base option.
7728 * doc/invoke.texi (Winaccessible-base): Document.
7729
7730 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7731
7732 PR tree-optimization/62041
7733 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
7734
7735 2019-06-11 Jason Merrill <jason@redhat.com>
7736
7737 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
7738 * tree.c (get_tree_code_name): Likewise.
7739 * print-tree.c (print_node): Only briefly print a node with an
7740 invalid code.
7741
7742 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7743
7744 PR bootstrap/90819
7745 * trans-mem.c (tm_memopt_compute_available): Add assertion
7746 that blocks is not empty. Formatting fix.
7747
7748 2019-06-11 Martin Liska <mliska@suse.cz>
7749
7750 PR c++/87847
7751 * hash-table.h: Extend create_gcc, add one parameter
7752 that is passed into hash_table::hash_table.
7753
7754 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
7755
7756 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
7757 New prototype.
7758 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
7759 Emit clobber also for non-sse operations.
7760 (ix86_split_fp_absneg_operator): New function.
7761 * config/i386/i386.md (SSEMODEF): New mode iterator.
7762 (ssevecmodef): New mode attribute.
7763 (<code>tf2): Use absneg code iterator.
7764 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
7765 Add three-operand AVX alternatives.
7766 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
7767 Use absneg code iterator and X87MODEF mode iterator.
7768 (absneg fp_reg non-sse splitter): Call absneg code iterator
7769 and X87MODEF mode iterator.
7770 (absneg general_reg non-sse splitter): Use absneg code iterator
7771 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
7772 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
7773 code iterator. Add three-operand AVX alternative.
7774 (absneg sse_reg splitter): Use absneg code iterator
7775 and SSEMODEF mode iterator. Handle AVX operands.
7776 (absneg fp_reg splitter): Use absneg code iterator
7777 and MODEF mode iterator.
7778 (absneg general_reg splitter): Merge splitters using MODEF mode
7779 iterator. Use absneg code iterator. Call
7780 ix86_split_fp_absneg_operator.
7781 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
7782 Do not enable for non-sse modes before reload.
7783 (CSGNMODE): Remove.
7784 (CSGNVMODE): Ditto.
7785 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
7786 ssevecmodef mode attribute instaed of CSGNVMODE.
7787 (copysign<mode>3_const): Ditto.
7788 (copysign<mode>3_var): Ditto.
7789 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
7790 Use absneg code iterator. Simplify code using std::swap.
7791 * config/i386/predicates.md (absneg_operator): Remove.
7792
7793 2019-06-10 Martin Sebor <msebor@redhat.com>
7794
7795 * gimple-fold.c (get_range_strlen): Update comment that didn't
7796 make it into r267503 or related commits.
7797
7798 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
7799
7800 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
7801 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
7802
7803 2019-06-10 Jakub Jelinek <jakub@redhat.com>
7804
7805 * tree.def (OMP_SCAN): New tree code.
7806 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
7807 OMP_CLAUSE_EXCLUSIVE.
7808 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
7809 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
7810 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
7811 OMP_CLAUSE_{IN,EX}CLUSIVE.
7812 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
7813 * tree-nested.c (convert_nonlocal_reference_stmt,
7814 convert_local_reference_stmt, convert_gimple_call): Handle
7815 GIMPLE_OMP_SCAN.
7816 * tree-pretty-print.c (dump_omp_clause): Handle
7817 OMP_CLAUSE_{IN,EX}CLUSIVE.
7818 (dump_generic_node): Handle OMP_SCAN.
7819 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
7820 * gimple.h (gomp_scan): New type.
7821 (is_a_helper <gomp_scan *>::test,
7822 is_a_helper <const gomp_scan *>::test): New templates.
7823 (gimple_build_omp_scan): Declare.
7824 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
7825 gimple_omp_scan_set_clauses): New inline functions.
7826 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
7827 * gimple.c (gimple_build_omp_scan): New function.
7828 (gimple_copy): Handle GIMPLE_OMP_SCAN.
7829 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
7830 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
7831 GIMPLE_OMP_TASKGROUP.
7832 (dump_gimple_omp_scan): New function.
7833 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
7834 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
7835 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
7836 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
7837 (is_gimple_stmt): Handle OMP_SCAN.
7838 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
7839 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
7840 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
7841 mentioned in nested #pragma omp scan. Handle
7842 OMP_CLAUSE_{IN,EX}CLUSIVE.
7843 (gimplify_expr): Handle OMP_SCAN.
7844 * omp-low.c (check_omp_nesting_restrictions): For parent context,
7845 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
7846 simd constructs.
7847 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
7848 GIMPLE_OMP_SCAN.
7849
7850 2019-06-10 Martin Liska <mliska@suse.cz>
7851
7852 * ipa-cp.c (ignore_edge_p): New function.
7853 (build_toporder_info): Use it.
7854 * ipa-inline.c (ignore_edge_p): New function.
7855 (inline_small_functions): Use it.
7856 * ipa-pure-const.c (ignore_edge_for_nothrow):
7857 Verify opt_for_fn for caller and callee.
7858 (ignore_edge_for_pure_const): Likewise.
7859 * ipa-reference.c (ignore_edge_p): Extend to check
7860 for opt_for_fn.
7861 * ipa-utils.c (searchc): Refactor.
7862 * ipa-utils.h: Fix coding style.
7863
7864 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
7865
7866 * config/arc/arc.c (arc_rtx_costs): Update costs.
7867
7868 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
7869
7870 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
7871 (arc_split_ior): Likewise.
7872 (arc_check_mov_const): Likewise.
7873 (arc_split_mov_const): Likewise.
7874 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
7875 (arc_rtx_costs): Replace check Crr with Cax constraint.
7876 (prepare_move_operands): Cleanup, remove unused code.
7877 (arc_split_ior): New function.
7878 (arc_check_ior_const): Likewise.
7879 (arc_split_mov_const): Likewise.
7880 (arc_check_mov_const): Likewise.
7881 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
7882 in define_insn_and_split pattern.
7883 (iorsi3): Likewise.
7884 (mulsi3_v2): Add new matching variant.
7885 (andsi3_i): Cleanup pattern.
7886 (rotrsi3_cnt1): Update pattern.
7887 (rotrsi3_cnt8): New pattern.
7888 (ashlsi2_cnt8): Likewise.
7889 (ashlsi2_cnt16): Likewise.
7890 * config/arc/constraints.md (C0p): Update constraint.
7891 (Crr): Remove it.
7892 (C0x): New pattern.
7893 (Cax): New pattern.
7894
7895 2019-06-10 Martin Liska <mliska@suse.cz>
7896
7897 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
7898 Update coding style.
7899 (sem_item_optimizer::dump_cong_classes):
7900 Print how many items are in a non-singular class. Improve
7901 coding style.
7902
7903 2019-06-10 Martin Liska <mliska@suse.cz>
7904
7905 * value-prof.c (dump_histogram_value): Change dump format.
7906 (gimple_mod_subtract_transform): Remove legacy comment.
7907
7908 2019-06-10 Martin Liska <mliska@suse.cz>
7909
7910 * value-prof.c (dump_histogram_value): Print histogram values
7911 only if present.
7912
7913 2019-06-10 Martin Liska <mliska@suse.cz>
7914
7915 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
7916 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
7917 * ipa-profile.c (ipa_profile_generate_summary):
7918 Use get_most_common_single_value.
7919 * tree-profile.c (gimple_init_gcov_profiler):
7920 Instrument with __gcov_one_value_profiler_v2
7921 and __gcov_indirect_call_profiler_v4.
7922 * value-prof.c (dump_histogram_value):
7923 Print all values for HIST_TYPE_SINGLE_VALUE.
7924 (stream_out_histogram_value): Update assert for
7925 N values.
7926 (stream_in_histogram_value): Set number of
7927 counters for HIST_TYPE_SINGLE_VALUE.
7928 (get_most_common_single_value): New.
7929 (gimple_divmod_fixed_value_transform):
7930 Use get_most_common_single_value.
7931 (gimple_ic_transform): Likewise.
7932 (gimple_stringops_transform): Likewise.
7933 (gimple_find_values_to_profile): Set number
7934 of counters for HIST_TYPE_SINGLE_VALUE.
7935 * value-prof.h (get_most_common_single_value): New.
7936
7937 2019-06-10 Martin Liska <mliska@suse.cz>
7938
7939 * hash-map.h: Pass default value to hash_table ctor.
7940 * hash-table.h: Add default value to call of a ctor.
7941
7942 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
7943
7944 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
7945 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
7946
7947 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
7948
7949 PR target/90751
7950 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
7951 Call pa_output_function_label.
7952 (TARGET_ASM_FUNCTION_PROLOGUE): define.
7953 * config/pa/pa-protos.h (pa_output_function_label): Declare.
7954 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
7955 to declaration.
7956 (pa_linux_output_function_prologue): Declare.
7957 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
7958 (pa_output_function_label): New.
7959 (pa_output_function_prologue): Revise to use pa_output_function_label.
7960 (pa_linux_output_function_prologue): New.
7961 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
7962
7963 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
7964
7965 * tree-vrp.h (value_range_base::intersect): New.
7966 (value_range::intersect_helper): Move from here...
7967 (value_range_base::intersect_helper): ...to here.
7968 * tree-vrp.c (value_range::intersect_helper): Rename to...
7969 (value_range_base::intersect_helper): ...this, and rewrite to
7970 return a value instead of modifying THIS in place.
7971 Also, move equivalence handling...
7972 (value_range::intersect): ...here, while calling intersect_helper.
7973 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
7974 calling intersect.
7975 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
7976 Same.
7977 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
7978
7979 2019-06-07 Jakub Jelinek <jakub@redhat.com>
7980
7981 * Makefile.in (genprogerr): Add condmd.
7982 (genprog): Remove it here.
7983
7984 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
7985
7986 * doc/invoke.texi (AMD GCN Options): Add gfx906.
7987
7988 2019-06-07 Richard Biener <rguenther@suse.de>
7989
7990 PR debug/90574
7991 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
7992 that appear after user labels.
7993
7994 2019-06-07 Martin Liska <mliska@suse.cz>
7995
7996 * cselib.c (cselib_init): Disable hash table
7997 sanitization.
7998 * hash-set.h: Pass new default argument to m_table.
7999 * hash-table.c: Add global variable with hash table
8000 sanitization limit.
8001 * hash-table.h (Allocator>::hash_table): Add new argument
8002 to ctor.
8003 (hashtab_chk_error): New.
8004 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
8005 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
8006 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
8007
8008 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8009
8010 * common.opt (flto-odr-type-merging): Ignore.
8011 * invoke.texi (-flto-odr-type-merging): Remove.
8012 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
8013 (can_be_vtable_hashed_p): Remove.
8014 (hash_odr_vtable): Remove.
8015 (odr_vtable_hasher::hash): Remove.
8016 (types_same_for_odr): Remove.
8017 (types_odr_comparable): Remove.
8018 (odr_vtable_hasher::equal): Remove.
8019 (odr_vtable_hash_type, odr_vtable_hash): Remove.
8020 (add_type_duplicate): Do not synchronize vtable and name hashtables.
8021 (get_odr_type): Do not use vtable hash.
8022 (dump_odr_type): Remove commented out code.
8023 (build_type_inheritance_graph): Do not allocate vtable hash.
8024 (rebuild_type_inheritance_graph): Do not delete vtable hash.
8025 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
8026 (odr_type_p): Likewise.
8027 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
8028 test.
8029
8030 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8031
8032 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
8033 immediately after same_types_for_tbaa_p returns -1 and continue
8034 looking for possible exact match; if matching types are arrays
8035 watch for partial overlaps.
8036 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
8037 (indirect_refs_may_alias_p): Do type based disambiguation first;
8038 update comment.
8039
8040 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
8041
8042 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
8043
8044 2019-06-07 Martin Liska <mliska@suse.cz>
8045
8046 * doc/invoke.texi: Remove param.
8047 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
8048 Remove.
8049 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
8050 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
8051 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
8052 * profile.c (instrument_values): Remove
8053 HIST_TYPE_INDIR_CALL_TOPN.
8054 * tree-profile.c (init_ic_make_global_vars):
8055 Always build __gcov_indirect_call only.
8056 (gimple_init_gcov_profiler): Remove usage
8057 of PARAM_INDIR_CALL_TOPN_PROFILE.
8058 (gimple_gen_ic_profiler): Likewise.
8059 * value-prof.c (dump_histogram_value): Likewise.
8060 (stream_in_histogram_value): Likewise.
8061 (gimple_indirect_call_to_profile): Likewise.
8062 (gimple_find_values_to_profile): Likewise.
8063 * value-prof.h (enum hist_type): Likewise.
8064
8065 2019-06-07 Martin Liska <mliska@suse.cz>
8066
8067 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
8068 function.
8069
8070 2019-06-07 Martin Liska <mliska@suse.cz>
8071
8072 PR tree-optimization/78902
8073 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
8074 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
8075 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8076 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8077 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
8078 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8079 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
8080 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
8081 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8082 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8083 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8084 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
8085 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
8086 New.
8087 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
8088 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
8089 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
8090 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8091 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8092 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
8093 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8094 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8095 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
8096 warn_unused_result attribute.
8097 (BUILT_IN_STRDUP): Likewise.
8098 (BUILT_IN_STRNDUP): Likewise.
8099 (BUILT_IN_ALLOCA): Likewise.
8100 (BUILT_IN_CALLOC): Likewise.
8101 (BUILT_IN_MALLOC): Likewise.
8102 (BUILT_IN_REALLOC): Likewise.
8103
8104 2019-06-06 Jim Wilson <jimw@sifive.com>
8105
8106 PR target/89955
8107 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
8108 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
8109 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8110
8111 2019-06-06 Martin Sebor <msebor@redhat.com>
8112
8113 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
8114 (handle_builtin_malloc): Remove trailing spaces.
8115 (handle_builtin_memset): Same.
8116 (handle_builtin_memcmp): Same.
8117 (compute_string_length): Same.
8118 (determine_min_objsize): Same.
8119 (handle_builtin_string_cmp): Same.
8120 (handle_char_store): Same. Break up excessively long line.
8121
8122 2019-06-06 Martin Jambor <mjambor@suse.cz>
8123
8124 * tree-sra.c (build_reconstructed_reference): Drop the alignment
8125 check.
8126
8127 2019-06-06 Martin Jambor <mjambor@suse.cz>
8128
8129 * tree-sra.c (struct access): New field grp_same_access_path.
8130 (dump_access): Dump it.
8131 (build_reconstructed_reference): New function.
8132 (build_ref_for_model): Use it if possible.
8133 (path_comparable_for_same_access): New function.
8134 (same_access_path_p): Likewise.
8135 (sort_and_splice_var_accesses): Set the new flag.
8136 (analyze_access_subtree): Likewise.
8137 (propagate_subaccesses_across_link): Propagate zero value of the new
8138 flag down the access tree.
8139
8140 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
8141
8142 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
8143 * config/gcn/gcn.opt (gpu_type): Add gfx906.
8144 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
8145 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
8146 Add gfx906.
8147
8148 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8149
8150 PR tree-optimization/90332
8151 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8152 Handle VALS containing two vectors.
8153 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
8154 to...
8155 (@aarch64_combinez<mode>): ... This.
8156 (*aarch64_combinez_be<mode>): Rename to...
8157 (@aarch64_combinez_be<mode>): ... This.
8158 (vec_init<mode><Vhalf>): New define_expand.
8159 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
8160
8161 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8162
8163 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
8164 library functions only when not optimizing for size.
8165 (ashlsi3): Likewise.
8166 (ashrhi3): Likewise.
8167 (ashrsi3): Likewise.
8168 (lshrhi3): Likewise.
8169 (lshrsi3): Likewise.
8170
8171 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
8172
8173 PR rtl-optimization/88751
8174 * ira.c (ira): Use the number of the actually referenced registers
8175 when calculating the threshold.
8176
8177 2019-06-06 Jakub Jelinek <jakub@redhat.com>
8178
8179 * configure: Regenerate.
8180
8181 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8182
8183 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
8184 register if it is in memory, so the shift can be emulated with a rotate
8185 instruction.
8186 (ashrhi3): Likewise.
8187 (lshrhi3): Likewise.
8188
8189 2019-06-06 Martin Liska <mliska@suse.cz>
8190
8191 PR tree-optimization/87954
8192 * match.pd: Simplify mult where both arguments are 0 or 1.
8193
8194 2019-06-06 Richard Biener <rguenther@suse.de>
8195
8196 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
8197 put equivalences on UNDEFINED ranges.
8198 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8199 Make sure to drop defs of stmts added during simplification
8200 to VARYING.
8201
8202 2019-06-06 Richard Biener <rguenther@suse.de>
8203
8204 * tree-ssa-structalias.c: Include tree-cfg.h.
8205 (make_heapvar): Do not make heap vars artificial.
8206 (find_func_aliases_for_builtin_call): Handle stack allocation
8207 functions.
8208 (find_func_aliases): Delay processing of simple enough returns
8209 in non-IPA mode.
8210 (set_uids_in_ptset): Adjust.
8211 (find_what_var_points_to): Likewise.
8212 (solve_constraints): Do not dump points-to sets here.
8213 (compute_points_to_sets): Post-process return statements,
8214 amending the escaped solution. Dump points-to sets afterwards.
8215 (ipa_pta_execute): Dump points-to sets.
8216
8217 2019-06-06 Martin Liska <mliska@suse.cz>
8218
8219 PR web/87933
8220 * doc/install.texi: Fix HTML headers and
8221 titles for 'Installing GCC' pages.
8222
8223 2019-06-06 Martin Liska <mliska@suse.cz>
8224
8225 * ipa-icf-gimple.h (dump_message_1): Remove.
8226 (dump_message): Likewise.
8227 (return_false_with_message_1): Print also file.
8228 (return_false_with_msg): Likewise.
8229 (return_with_result): Likewise.
8230 (return_with_debug): Likewise.
8231 * ipa-icf.c (sem_function::equals_private): Remove call
8232 to dump_message.
8233
8234 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8235
8236 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
8237 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
8238 memory operand for it.
8239 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
8240
8241 2019-06-05 Martin Sebor <msebor@redhat.com>
8242
8243 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
8244 Adjust quoting and hyphenation.
8245 * convert.c (convert_to_real_1): Same.
8246 * gcc.c (driver_wrong_lang_callback): Same.
8247 (driver::handle_unrecognized_options): Same.
8248 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8249 * opts-common.c (cmdline_handle_error): Same.
8250 (read_cmdline_option): Same.
8251 * opts-global.c (complain_wrong_lang): Same.
8252 (print_ignored_options): Same.
8253 (handle_common_deferred_options): Same.
8254 * pretty-print.h: Same.
8255 * print-rtl.c (debug_bb_n_slim): Same.
8256 * sched-rgn.c (make_pass_sched_fusion): Same.
8257 * tree-cfg.c (verify_gimple_assign_unary): Same.
8258 (verify_gimple_label): Same.
8259 * tree-ssa-operands.c (verify_ssa_operands): Same.
8260 * varasm.c (do_assemble_alias): Same.
8261 (assemble_alias): Same.
8262
8263 2019-06-05 Richard Henderson <rth@twiddle.net>
8264
8265 * config/alpha/alpha.c (direct_return): Move down after
8266 struct machine_function definition; use saved frame_size;
8267 return bool.
8268 (struct machine_function): Add sa_mask, sa_size, frame_size.
8269 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
8270 (alpha_compute_frame_layout): ... new function.
8271 (TARGET_COMPUTE_FRAME_LAYOUT): New.
8272 (alpha_initial_elimination_offset): Use saved sa_size.
8273 (alpha_vms_initial_elimination_offset): Likewise.
8274 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
8275 (alpha_expand_prologue): Use saved frame data. Merge integer
8276 and fp register save loops.
8277 (alpha_expand_epilogue): Likewise.
8278 (alpha_start_function): Use saved frame data.
8279 * config/alpha/alpha-protos.h (direct_return): Update.
8280 (alpha_sa_size): Remove.
8281
8282 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
8283
8284 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
8285 multiplication by a power-of-two value.
8286 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
8287 and turn the modulo operation into a masking operation.
8288
8289 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8290
8291 PR debug/90733
8292 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
8293 with VOIDmode inner operands.
8294
8295 2019-06-05 Richard Biener <rguenther@suse.de>
8296
8297 PR middle-end/90726
8298 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8299 turn an expression graph into a tree.
8300
8301 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8302
8303 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
8304 member.
8305 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
8306 treat it like explicit monotonic schedule modifier.
8307 (expand_omp_for): Initialize has_lastprivate_conditional.
8308 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
8309 schedule modifier.
8310
8311 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
8312 references, lookup in in hash map MEM_REF operand instead of the
8313 MEM_REF itself.
8314 (lower_omp_1): When looking for lastprivate conditional assignments,
8315 handle MEM_REFs with REFERENCE_TYPE operands.
8316
8317 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
8318 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
8319 and references a VLA. Handle references to non-VLAs if is_simd
8320 all privatization clauses like reductions.
8321 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
8322 If omp_is_reference, use always omp simd arrays and set
8323 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
8324 fails, emit reference initialization.
8325
8326 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8327
8328 PR target/89803
8329 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
8330 _mm_mask_fpclass_sd_mask): New intrinsics.
8331 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
8332 * config/i386/i386-builtin.def
8333 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
8334 New builtins.
8335 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
8336 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
8337 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
8338 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
8339 case QI_FTYPE_V2SF_INT): Ditto.
8340 * config/i386/sse.md
8341 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
8342 Extended to insnstructions with mask operands.
8343
8344 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8345
8346 * config/rs6000/constraints.md (define_register_constraint "wp"):
8347 Delete.
8348 (define_register_constraint "wq"): Delete.
8349 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8350 (rs6000_init_hard_regno_mode_ok): Adjust.
8351 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8352 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
8353 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
8354 (define_mode_attr VSa): Delete.
8355 (define_mode_attr VSisa): New.
8356 (rest of file): Adjust.
8357 * doc/md.texi (Machine Constraints): Adjust.
8358
8359 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8360
8361 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
8362 (define_attr "enabled"): Handle those new isa values.
8363
8364 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8365
8366 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
8367 (define_mode_attr VSr5): Delete.
8368 (define_mode_attr VStype_sqrt): Delete.
8369 (define_mode_iterator VSX_SPDP): Delete.
8370 (define_mode_attr VS_spdp_res): Delete.
8371 (define_mode_attr VS_spdp_insn): Delete.
8372 (define_mode_attr VS_spdp_type): Delete.
8373 (*vsx_sqrt<mode>2): Adjust.
8374 (vsx_<VS_spdp_insn>): Delete, split to...
8375 (vsx_xscvdpsp): ... this. New. And...
8376 (vsx_xvcvspdp): ... this. New. And...
8377 (vsx_xvcvdpsp): ... this. New.
8378
8379 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8380
8381 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
8382 and V2DF.
8383 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
8384 (rest of file): Adjust.
8385
8386 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8387
8388 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
8389 (vsx_extract_<mode>_var): Ditto.
8390
8391 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8392
8393 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
8394 with just "wa".
8395
8396 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8397
8398 * config/rs6000/constraints.md (define_register_constraint "ww"):
8399 Delete.
8400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8401 (rs6000_init_hard_regno_mode_ok): Adjust.
8402 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8403 RS6000_CONSTRAINT_ww.
8404 * config/rs6000/rs6000.md: Adjust.
8405 * config/rs6000/vsx.md: Adjust.
8406 * doc/md.texi (Machine Constraints): Adjust.
8407
8408 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8409
8410 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
8411 (define_mode_attr sd): New.
8412 (define_mode_attr s): New.
8413 (define_mode_attr Ftrad): Delete.
8414 (define_mode_attr Fvsx): Delete.
8415 (define_mode_attr Fs): Delete.
8416 (rest of file): Use the new mode attributes.
8417 * config.rs6000/vsx.md: Use the new mode attributes.
8418
8419 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8420
8421 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
8422 with just "wa".
8423
8424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8425
8426 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
8427 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
8428 used with VSX_B, VSX_D, or VSX_F, with just "wa".
8429
8430 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
8431
8432 PR target/78263
8433 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
8434 C++ with strict ANSI requirements.
8435
8436 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
8437
8438 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
8439 computations when step is 1.
8440
8441 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8442
8443 * config/rs6000/constraints.md (define_register_constraint "wf"):
8444 Delete.
8445 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8446 (rs6000_init_hard_regno_mode_ok): Adjust.
8447 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8448 RS6000_CONSTRAINT_wf.
8449 * config/rs6000/rs6000.md: Adjust.
8450 * config/rs6000/vsx.md: Adjust.
8451 * doc/md.texi (Machine Constraints): Adjust.
8452
8453 2019-06-04 Andrew Pinski <apinski@marvell.com>
8454
8455 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
8456 Fix ILP32 value.
8457
8458 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8459
8460 * config/rs6000/constraints.md (define_register_constraint "wd"):
8461 Delete.
8462 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8463 (rs6000_init_hard_regno_mode_ok): Adjust.
8464 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8465 RS6000_CONSTRAINT_wd.
8466 * config/rs6000/rs6000.md: Adjust.
8467 * config/rs6000/vsx.md: Adjust.
8468 * doc/md.texi (Machine Constraints): Adjust.
8469
8470 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8471
8472 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
8473 (rest of file): Adjust.
8474
8475 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8476
8477 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
8478 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
8479 (vsx_splat_<mode>_reg): Adjust.
8480
8481 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8482
8483 * config/rs6000/constraints.md (define_register_constraint "ws"):
8484 Delete.
8485 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8486 (rs6000_init_hard_regno_mode_ok): Adjust.
8487 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8488 RS6000_CONSTRAINT_ws.
8489 * config/rs6000/rs6000.md: Adjust.
8490 * config/rs6000/vsx.md: Adjust.
8491 * doc/md.texi (Machine Constraints): Adjust.
8492
8493 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8494
8495 * config/rs6000/constraints.md (define_register_constraint "wv"):
8496 Delete.
8497 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8498 (rs6000_init_hard_regno_mode_ok): Adjust.
8499 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8500 RS6000_CONSTRAINT_wv.
8501 * config/rs6000/rs6000.md: Adjust.
8502 * config/rs6000/vsx.md: Adjust.
8503 * doc/md.texi (Machine Constraints): Adjust.
8504
8505 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8506
8507 * config/rs6000/constraints.md (define_register_constraint "wi"):
8508 Delete.
8509 (define_register_constraint "wt"): Delete.
8510 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8511 (rs6000_init_hard_regno_mode_ok): Adjust.
8512 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8513 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
8514 * config/rs6000/rs6000.md: Adjust.
8515 * config/rs6000/vsx.md: Adjust.
8516 * doc/md.texi (Machine Constraints): Adjust.
8517
8518 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8519
8520 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
8521 const.
8522 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
8523 default_elf_asm_output_external.
8524
8525 2019-06-04 Martin Liska <mliska@suse.cz>
8526
8527 * ipa-icf.c (INCLUDE_LIST): Remove.
8528 (sem_item_optimizer::execute): Remove call to init_wpa.
8529 * ipa-icf.h (init_wpa): Remove.
8530
8531 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8532
8533 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
8534 conditional on combined for simd.
8535 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
8536 member.
8537 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
8538 constructs, don't remove lastprivate_conditional_map, but instead set
8539 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
8540 to parent construct temporaries.
8541 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
8542 like !ctx->lastprivate_conditional_map.
8543 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
8544 use up->outer context instead of up.
8545 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
8546 gimple_omp_for_combined_p.
8547 (expand_omp_for_static_nochunk): Likewise.
8548 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
8549 probably moved over into expand_omp_for_generic rather than being copied
8550 there.
8551
8552 2019-06-04 Martin Liska <mliska@suse.cz>
8553
8554 * value-prof.c (dump_histogram_value): Fix typo.
8555 (gimple_mod_subtract_transform): Likewise.
8556
8557 2019-06-04 Richard Biener <rguenther@suse.de>
8558
8559 PR middle-end/90726
8560 * tree-chrec.c (chrec_contains_symbols): Add to visited.
8561 (tree_contains_chrecs): Likewise.
8562 (chrec_contains_symbols_defined_in_loop): Move here and avoid
8563 exponential behaivor from ...
8564 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8565 ... here.
8566 (expression_expensive_p): Avoid exponential behavior and compute
8567 expanded size, rejecting any expansion.
8568 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
8569 (idx_contains_abnormal_ssa_name_p): Likewise.
8570 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
8571 (contains_abnormal_ssa_name_p): Simplify and use
8572 walk_tree_without_duplicates.
8573
8574 2019-06-04 Richard Biener <rguenther@suse.de>
8575
8576 PR tree-optimization/90738
8577 Revert
8578 2019-06-03 Richard Biener <rguenther@suse.de>
8579
8580 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8581 full reference tree and record in ref->ref.
8582 (vn_reference_lookup_3): Pass in original ref to
8583 ao_ref_init_from_vn_reference.
8584 (vn_reference_lookup): Likewise.
8585 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8586 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8587 Handle non-decl bases in the original reference.
8588
8589 2019-06-04 Martin Liska <mliska@suse.cz>
8590
8591 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
8592 number of references.
8593 (sem_item_optimizer::do_congruence_step):
8594 (sem_item_optimizer::worklist_push): Dump how references
8595 a class has.
8596 (sem_item_optimizer::worklist_pop): Use heap.
8597 (sem_item_optimizer::process_cong_reduction): Likewise.
8598 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
8599
8600 2019-06-04 Martin Liska <mliska@suse.cz>
8601
8602 * ipa-icf.h (struct sem_usage_pair_hash): New.
8603 (sem_usage_pair_hash::hash): Likewise.
8604 (sem_usage_pair_hash::equal): Likewise.
8605 (struct sem_usage_hash): Likewise.
8606 * ipa-icf.c (sem_item::sem_item): Initialize
8607 referenced_by_count.
8608 (sem_item::add_reference): Register a reference
8609 in ref_map and not in target->usages.
8610 (sem_item::setup): Remove initialization of
8611 dead vectors.
8612 (sem_item::~sem_item): Remove usage of dead vectors.
8613 (sem_item::dump): Remove dump of references.
8614 (sem_item_optimizer::sem_item_optimizer): Initialize
8615 m_references.
8616 (sem_item_optimizer::read_section): Remove useless
8617 dump.
8618 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
8619 (sem_item_optimizer::build_graph): Pass m_references
8620 to ::add_reference.
8621 (sem_item_optimizer::verify_classes): Remove usage of dead
8622 vectors.
8623 (sem_item_optimizer::traverse_congruence_split): Return true
8624 when a class is split.
8625 (sem_item_optimizer::do_congruence_step_for_index): Use
8626 hash_map for look up of (sem_item *, index). That brings
8627 significant speed up.
8628 (sem_item_optimizer::do_congruence_step): Return true
8629 when a split is done.
8630 (congruence_class::is_class_used): Use referenced_by_count.
8631
8632 2019-06-04 Alan Modra <amodra@gmail.com>
8633
8634 PR target/90689
8635 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
8636 error.
8637
8638 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8639
8640 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
8641 * config/rs6000/rs6000.c (direct_move_p): Adjust.
8642 (rs6000_secondary_reload_simple_move): Adjust.
8643 (rs6000_opt_masks): Neuter the "mfpgpr" option.
8644 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
8645 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
8646 comment.
8647 (power6x): Adjust.
8648 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
8649 (floatunssi<mode>2_lfiwzx): Adjust.
8650 (fix_trunc<mode>si2_stfiwx): Adjust.
8651 (fixuns_trunc<mode>si2_stfiwx): Adjust.
8652 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
8653 (mfpgpr): Mark as deprecated.
8654 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
8655 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
8656 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
8657
8658 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8659
8660 * config/rs6000/constraints.md (define_register_constraint "wg"):
8661 Delete.
8662 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8663 RS6000_CONSTRAINT_wg.
8664 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8665 (rs6000_init_hard_regno_mode_ok): Adjust.
8666 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
8667 Delete "wg" alternatives.
8668 * doc/md.texi (Machine Constraints): Adjust.
8669
8670 2019-06-03 Alan Modra <amodra@gmail.com>
8671
8672 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
8673 (get_uncond_jump_length): Assert length less than INT_MAX and
8674 non-negative.
8675
8676 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8677
8678 PR middle-end/64242
8679 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
8680 block.
8681 (expand_builtin_nonlocal_goto): Likewise.
8682
8683 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8684
8685 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
8686 (aarch64_asm_output_external): Declare.
8687 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
8688 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
8689 (aarch64_asm_output_alias): New.
8690 (aarch64_asm_output_external): New.
8691 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8692 (ASM_OUTPUT_EXTERNAL): Define.
8693
8694 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
8695 * tree-vrp.h (value_range_base::nonzero_p): New.
8696 (value_range_base::set_nonnull): Rename to...
8697 (value_range_base::set_nonzero): ...this.
8698 (value_range_base::set_null): Rename to...
8699 (value_range_base::set_zero): ...this.
8700 (value_range::set_nonnull): Remove.
8701 (value_range::set_null): Remove.
8702 * tree-vrp.c (range_is_null): Remove.
8703 (range_is_nonnull): Remove.
8704 (extract_range_from_binary_expr): Use value_range_base::*zero_p
8705 instead of range_is_*null.
8706 (extract_range_from_unary_expr): Same.
8707 (value_range_base::set_nonnull): Rename to...
8708 (value_range_base::set_nonzero): ...this.
8709 (value_range::set_nonnull): Remove.
8710 (value_range_base::set_null): Rename to...
8711 (value_range_base::set_zero): ...this.
8712 (value_range::set_null): Remove.
8713 (extract_range_from_binary_expr): Rename set_*null uses to
8714 set_*zero.
8715 (extract_range_from_unary_expr): Same.
8716 (union_helper): Same.
8717 * vr-values.c (get_value_range): Use set_*zero instead of
8718 set_*null.
8719 (vr_values::extract_range_from_binary_expr): Same.
8720 (vr_values::extract_range_basic): Same.
8721
8722 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8723
8724 PR driver/90684
8725 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
8726
8727 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8728
8729 * config/aarch64/iterators.md (MAX_OPP): New code attr.
8730 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
8731 Rename to...
8732 (aarch64_<su>abd<mode>_3): ... This.
8733 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
8734
8735 2019-06-03 Richard Biener <rguenther@suse.de>
8736
8737 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8738 full reference tree and record in ref->ref.
8739 (vn_reference_lookup_3): Pass in original ref to
8740 ao_ref_init_from_vn_reference.
8741 (vn_reference_lookup): Likewise.
8742 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8743 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8744 Handle non-decl bases in the original reference.
8745
8746 2019-06-03 Martin Liska <mliska@suse.cz>
8747
8748 * doc/generic.texi: Remove Java Trees.
8749
8750 2019-06-03 Martin Liska <mliska@suse.cz>
8751
8752 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
8753 returns 0 when operands are equal.
8754
8755 2019-06-03 Richard Biener <rguenther@suse.de>
8756
8757 PR tree-optimization/90716
8758 * tree-loop-distribution.c (destroy_loop): Process blocks in
8759 correct order.
8760
8761 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8762
8763 PR target/88837
8764 * vector-builder.h (vector_builder::count_dups): New method.
8765 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
8766 Declare prototype.
8767 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
8768 (vec_init<mode><Vel>): New pattern.
8769 * config/aarch64/aarch64.c (emit_insr): New function.
8770 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
8771 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
8772 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
8773 (aarch64_sve_expand_vector_init): Define two overloaded functions.
8774
8775 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8776
8777 PR tree-optimization/90681
8778 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
8779 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
8780 special case for SLP, but fail on non-groupped loads.
8781
8782 2019-06-03 Martin Liska <mliska@suse.cz>
8783
8784 * cfg.c (debug): Use TDF_DETAILS for debug and
8785 print edge info only once.
8786
8787 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
8788
8789 PR fortran/90539
8790 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
8791
8792 2019-06-01 Martin Sebor <msebor@redhat.com>
8793
8794 PR middle-end/90694
8795 * tree-pretty-print.c (dump_generic_node): Add parentheses.
8796
8797 2019-05-31 Jan Hubicka <jh@suse.cz>
8798
8799 * alias.c: Include ipa-utils.h.
8800 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
8801 * ipa-devirt.c (prevailing_odr_type): New.
8802 * ipa-utils.h (previaling_odr_type): Declare.
8803
8804 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
8805 Hongtao Liu <hongtao.liu@intel.com>
8806
8807 PR target/89355
8808 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
8809 NOTE_INSN_DELETED_LABEL check.
8810
8811 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
8812 Robert Suchanek <robert.suchanek@mips.com>
8813
8814 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
8815 and 3rd operands of the fmadd/fmsub/maddv builtin.
8816
8817 2019-05-31 Jakub Jelinek <jakub@redhat.com>
8818
8819 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
8820 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
8821 on OMP_SIMD if not nested inside of worksharing loop that also has
8822 lastprivate conditional clause for the same decl.
8823 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
8824 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
8825 on simd.
8826 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
8827 on simd construct.
8828 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
8829 on simd construct.
8830 (lower_lastprivate_clauses): Likewise.
8831 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
8832 calling lower_rec_input_clauses.
8833 (lower_omp_for): Likewise.
8834 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
8835 clause on simd construct.
8836 * omp-expand.c (expand_omp_simd): Initialize cond_var if
8837 OMP_CLAUSE__CONDTEMP_ clause is present.
8838
8839 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
8840 ivar and lvar.
8841
8842 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
8843
8844 PR c/43673
8845 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
8846 TEX_D32, TEX_D64 or TEX_D128.
8847
8848 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
8849
8850 * match.pd (~(vec?cst1:cst2)): New transformation.
8851
8852 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
8853
8854 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
8855 ((size_t)(A /[ex] B) CMP C): New transformation.
8856
8857 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
8858
8859 * doc/md.texi: Document define_insn_and_rewrite.
8860 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
8861 * gensupport.c (queue_elem): Update comment.
8862 (replace_operands_with_dups): New function.
8863 (gen_rewrite_sequence): Likewise.
8864 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
8865 * read-rtl.c (apply_subst_iterator): Likewise.
8866 (add_condition_to_rtx, named_rtx_p): Likewise.
8867 (rtx_reader::read_rtx_operand): Likewise.
8868 * config/aarch64/aarch64-sve.md
8869 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
8870 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
8871 define_insn_and_rewrite.
8872 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
8873 Remove separate define_split.
8874
8875 2019-05-31 Jan Hubicka <jh@suse.cz>
8876
8877 * tree-ssa-alias.c (type_has_components_p): New function.
8878 (aliasing_component_refs_p): Use it.
8879
8880 2019-05-31 Martin Liska <mliska@suse.cz>
8881
8882 * gdbhooks.py: Add const_tree to TreePrinter.
8883
8884 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
8885
8886 PR debug/86964
8887 * common.opt (feliminate-unused-debug-symbols): Enable by default.
8888 * doc/invoke.texi (Debugging Options): Document new default of
8889 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
8890
8891 2019-05-31 Jakub Jelinek <jakub@redhat.com>
8892
8893 PR tree-optimization/90671
8894 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
8895 template_block used to be empty on the first call, don't use
8896 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
8897 seq with bb_seq and set it with set_bb_seq.
8898
8899 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
8900
8901 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
8902
8903 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
8904 Michael Meissner <meissner@linux.ibm.com>
8905
8906 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
8907 (prefixed_mem_operand): Likewise.
8908 (non_prefixed_mem_operand): Likewise.
8909 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
8910 prototype.
8911 * config/rs6000/rs6000.c (print_operand_address): Handle
8912 PC-relative addresses.
8913 (mode_supports_prefixed_address_p): New function.
8914 (rs6000_prefixed_address): New function.
8915 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
8916 (SYMBOL_REF_PCREL_P): Likewise.
8917
8918 2019-05-30 Jakub Jelinek <jakub@redhat.com>
8919
8920 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
8921 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
8922 (gimplify_omp_for): If worksharing loop with lastprivate conditional
8923 is nested inside of parallel region, add _condtemp_ clause to both.
8924 * tree-nested.c (convert_nonlocal_omp_clauses,
8925 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
8926 assertion failure.
8927 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
8928 member.
8929 * omp-general.c (omp_extract_for_data): Compute it.
8930 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
8931 (lower_rec_input_clauses): Likewise.
8932 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
8933 clause is already present, just add one further one after it.
8934 (lower_lastprivate_clauses): Handle cond_ptr with array type.
8935 (lower_send_shared_vars): Clear _condtemp_ vars.
8936 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
8937 or section or taskgroup.
8938 * omp-expand.c (determine_parallel_type): Disallow combining only if
8939 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
8940 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
8941 (expand_omp_for_generic, expand_omp_for_static_nochunk,
8942 expand_omp_for_static_chunk, expand_omp_for): Use
8943 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
8944 determine if a special set of API routines are needed and if condtemp
8945 needs to be initialized, while always initialize cond_var if
8946 fd->lastprivate_conditional is non-zero.
8947
8948 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
8949 Michael Meissner <meissner@linux.ibm.com>
8950
8951 * config/rs6000/constraints.md (eI): New constraint.
8952 * config/rs6000/predicates.md (cint34_operand): New predicate.
8953 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
8954 (SIGNED_34BIT_OFFSET_P): Likewise.
8955 * doc/md.texi (eI): Document constraint.
8956
8957 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
8958
8959 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
8960
8961 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
8962 Michael Meissner <meissner@linux.ibm.com>
8963
8964 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
8965 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
8966 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
8967 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
8968 (OTHER_FUTURE_MASKS): Likewise.
8969 (POWERPC_MASKS): Likewise.
8970 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
8971 specified without -mprefixed-addr or -mcpu=future. Error if
8972 -mprefixed-addr is specified without -mcpu=future.
8973 (rs6000_opt_masks): Add entry for prefixed-addr.
8974 * rs6000.opt (mprefixed-addr): New option.
8975
8976 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
8977
8978 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
8979 cfun->is_thunk check.
8980
8981 2019-05-30 Jakub Jelinek <jakub@redhat.com>
8982
8983 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
8984 to length.
8985
8986 2019-05-30 Martin Liska <mliska@suse.cz>
8987
8988 * gdbinit.in: Fix 'ptc' command. Add trt
8989 that prints TREE_TYPE($).
8990
8991 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
8992 Alan Modra <amodra@gmail.com>
8993
8994 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
8995 calls here...
8996 (rs6000_indirect_call_template_1): ...and here.
8997 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
8998 plt16_ha, plt16_lo, mtctr indirect calls. Use
8999 rs6000_pltseq_enum.
9000 (rs6000_decl_ok_for_sibcall): New function.
9001 (rs6000_function_ok_for_sibcall): Refactor.
9002 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
9003 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
9004 when pcrel. Reorganize.
9005 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
9006 * rs6000.h (rs6000_pltseq_enum): New enum.
9007 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
9008 (*pltseq_tocsave): Use rs6000_pltseq_enum.
9009 (*pltseq_plt16_ha): Likewise.
9010 (*pltseq_plt16_lo): Likewise.
9011 (*pltseq_mtctr): Likewise.
9012 (*pltseq_plt_pcrel): New insn.
9013 (*call_local_aix): Handle @notoc calls.
9014 (*call_value_local_aix): Likewise.
9015 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
9016 (*call_value_nonlocal_aix): Likewise.
9017 (*call_indirect_pcrel): New insn.
9018 (*call_value_indirect_pcrel): Likewise.
9019
9020 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
9021
9022 * config/i386/sse.md (*save_multiple<mode>): Rename from
9023 save_multiple<mode>.
9024 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
9025 (*restore_multiple_and_return<mode>): Rename from
9026 restore_multiple_and_return<mode>.
9027 (*restore_multiple_leave_return<mode>): Rename from
9028 restore_multiple_leave_return<mode>.
9029
9030 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
9031
9032 * config.gcc (rx-*-linux*): New target.
9033 * config/rx/elf.opt: New file.
9034 * config/rx/linux.h: Likewise.
9035 * config/rx/t-linux: Likewise.
9036 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
9037 make it zero.
9038 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
9039 (ASM_APP_OFF): Likewise.
9040 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
9041 moved elsewhere.
9042
9043 2019-05-29 Jan Hubicka <jh@suse.cz>
9044
9045 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
9046 variants are pointer equivalent.
9047
9048 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9049
9050 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
9051 * config/aarch64/aarch64-sve2.md: New file.
9052 (<u>avg<mode>3_floor): New pattern.
9053 (<u>avg<mode>3_ceil): Likewise.
9054 (*<sur>h<addsub><mode>): Likewise.
9055 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
9056 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
9057
9058 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9059
9060 PR bootstrap/90543
9061 * optc-save-gen.awk: In cl_optimization_print, use correct condition
9062 for var_opt_string printing. In cl_optimization_print_diff, print
9063 (null) instead of invoking undefined behavior if one of the
9064 var_opt_string pointers is NULL and use && instead of first || in the
9065 guarding condition. For var_target_other options, handle const char *
9066 target variables similarly to const char * optimize node variables.
9067
9068 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
9069
9070 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
9071 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
9072 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
9073 Add autib1716 and pacib1716 initialisation.
9074 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
9075 for autib1716 and pacib1716.
9076 * config/aarch64/aarch64-protos.h (aarch64_key_type,
9077 aarch64_post_cfi_startproc): Define.
9078 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
9079 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
9080 aarch64_handle_pac_ret_protection): Set default sign key to A.
9081 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
9082 aarch64_expand_prologue): Add check for b-key.
9083 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
9084 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
9085 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
9086 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
9087 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
9088 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
9089 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9090 * config/aarch64/aarch64.md (do_return): Add check for b-key.
9091 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
9092 pauth_hint_num_a with pauth_hint_num.
9093 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
9094 pauth_hint_num_a with pauth_hint_num.
9095 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
9096 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
9097 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9098 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
9099 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
9100 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
9101 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
9102 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9103 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
9104 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
9105 UNSPEC_AUTIA1716 respectively.
9106 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
9107 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
9108 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
9109 * doc/invoke.texi (-mbranch-protection): Add b-key type.
9110 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
9111 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
9112
9113 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9114
9115 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
9116 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
9117 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
9118 explicit clause on combined parallel into implicit shared clause.
9119 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
9120 and firstprivate if the decl has one too from combined parallel to
9121 the worksharing construct.
9122
9123 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
9124 Michael Meissner <meissner@linux.ibm.com>
9125
9126 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
9127
9128 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
9129
9130 * rtl.h (LABEL_REF_P): New #define.
9131
9132 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
9133
9134 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
9135
9136 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9137
9138 * internal-fn.c: Marked mask_load_direct as vectorizable.
9139 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
9140 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
9141 combined even if masks different with allow_slp_p param.
9142 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
9143 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
9144 dissolve SLP-only vectorizable groups when SLP has been discarded.
9145 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
9146 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
9147 masks.
9148 (vect_build_slp_tree_1): Fixed comment typo.
9149 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
9150 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
9151 loads for SLP only.
9152 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
9153 vectorizable.
9154 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
9155
9156 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9157
9158 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
9159 Remove obsolete use_thunk reference.
9160 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9161 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9162 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9163 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9164 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9165 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9166 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9167 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9168 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9169
9170 2019-05-28 Nathan Sidwell <nathan@acm.org>
9171
9172 * tree.h (IDENTIFIER_ANON_P): New.
9173 (anon_aggrname_format, anon_aggname_p): Don't declare.
9174 (make_anon_name): Declare.
9175 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
9176 (hash_tree): Likewise.
9177 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
9178 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
9179 (anon_cnt, make_anon_name): New.
9180
9181 2019-05-28 Martin Liska <mliska@suse.cz>
9182
9183 PR other/90315
9184 * opts-global.c (decode_options): Print help for all
9185 help_option_arguments.
9186 * opts.c (print_help): Add new argument.
9187 (common_handle_option): Remember all values into
9188 help_option_arguments.
9189 * opts.h (print_help): Add new argument.
9190
9191 2019-05-28 Martin Liska <mliska@suse.cz>
9192
9193 PR ipa/90555
9194 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
9195 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
9196 (func_checker::compare_bb): Call compare_loops.
9197
9198 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9199
9200 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9201 on sections construct.
9202 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
9203 construct.
9204 (lower_omp_sections): Handle lastprivate conditional.
9205 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
9206 lastprivate_conditional_map.
9207 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
9208
9209 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
9210 critical, taskgroup and section regions when looking for a region
9211 with non-NULL lastprivate_conditional_map.
9212
9213 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9214
9215 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
9216 (*ix86_gen_sub3): Ditto.
9217 (*ix86_gen_sub3_carry): Ditto.
9218 (*ix86_gen_one_cmpl2): Ditto.
9219 (*ix86_gen_andsp): Ditto.
9220 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
9221 (gen_and2_insn): New static function.
9222 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
9223 Use gen_add3_insn instead of ix86_gen_add3.
9224 (ix86_expand_split_stack_prologue): Use gen_add2_insn
9225 instead of ix86_gen_add3.
9226 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
9227 Use gen_sub3_insn instead of ix86_gen_sub3.
9228 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
9229 instead of ix86_gen_add3.
9230 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
9231 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
9232 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
9233 * config/i386/i386-options.c (ix86_option_override_internal):
9234 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
9235 ix86_gen_one_cmpl2 and ix86_gen_andsp.
9236
9237 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
9238
9239 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
9240 and DW_OP_GNU_const_index opcodes.
9241
9242 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9243
9244 * config/i386/i386.h (STACK_SIZE_MODE): Define.
9245
9246 2019-05-27 Richard Biener <rguenther@suse.de>
9247
9248 PR tree-optimization/90637
9249 * tree-ssa-sink.c (statement_sink_location): Honor the
9250 computed sink location for single-uses.
9251
9252 2019-05-27 Richard Biener <rguenther@suse.de>
9253
9254 PR middle-end/90610
9255 * match.pd (vec_perm): Avoid clobbering op0 when not generating
9256 a bit-insert.
9257
9258 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9259
9260 * config/i386/i386.md (@sub<mode>3_carry): Rename
9261 from sub<mode>3_carry.
9262 (@leave_<mode>): New expander.
9263 (*leave): Rename from leave.
9264 (*leave_rex64): Rename from leave_rex64.
9265 (@monitorx_<mode>): Rename from monitorx_<mode>.
9266 (@clzero_<mode>): Rename from clzero_<mode>.
9267 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
9268 from sse3_monitor_<mode>.
9269 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
9270 (*ix86_gen_leave): Ditto.
9271 (*ix86_gen_monitor): Ditto.
9272 (*ix86_gen_monitorx): Ditto.
9273 (*ix86_gen_clzero): Ditto.
9274 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
9275 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
9276 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
9277 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
9278 Use gen_sse3_monitor instead of ix86_gen_monitor.
9279 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
9280 instead of ix86_gen_monitorx.
9281 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
9282 instead of ix86_gen_clzero.
9283 * config/i386/i386-options.c (ix86_option_override_internal):
9284 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
9285 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
9286
9287 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9288
9289 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
9290 Rename from tls_global_dynamic_64_<mode>.
9291 (@tls_local_dynamic_base_64_<mode>): Rename from
9292 tls_local_dynamic_base_64_<mode>.
9293 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
9294 Remove indirect function.
9295 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
9296 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
9297 instead of ix86_gen_tls_global_dynamic_64.
9298 Use gen_tls_local_dynamic_base_64 instead of
9299 ix86_gen_tls_local_dynamic_base_64.
9300 * config/i386/i386-options.c (ix86_option_override_internal):
9301 Do not initialize ix86_gen_tls_global_dynamic_64 and
9302 ix86_gen_tls_local_dynamic_base_64.
9303
9304 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9305
9306 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
9307 Rename from pro_epilogue_adjust_stack_<mode>_add.
9308 (@pro_epilogue_adjust_stack_sub_<mode>)
9309 Rename from pro_epilogue_adjust_stack_<mode>_sub.
9310 (@allocate_stack_worker_probe_<mode>):
9311 Rename from allocate_stack_worker_probe_<mode>.
9312 (allocate_stack): Use gen_allocate_stack_worker_probe.
9313 (probe_stack): Use gen_probe_stack_1.
9314 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
9315 (@adjust_stack_and_probe_<mode>): Rename from
9316 adjust_stack_and_probe<mode>.
9317 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
9318 (stack_protect_set): Use gen_stack_protect_set_1.
9319 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
9320 (stack_protect_test): Use gen_stack_protect_test_1.
9321 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
9322 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
9323 Remove indirect function.
9324 (*ix86_gen_adjust_stack_and_probe): Ditto.
9325 (*ix86_gen_probe_stack_range): Ditto.
9326 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
9327 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
9328 (ix86_adjust_stack_and_probe_stack_clash): Use
9329 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
9330 (ix86_adjust_stack_and_probe): Ditto.
9331 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
9332 of ix86_gen_probe_stack_range.
9333 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
9334 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
9335 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
9336 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
9337 CODE_FOR_stack_protect_test_{si,di}.
9338 * config/i386/i386-options.c (ix86_option_override_internal):
9339 Do not initialize ix86_gen_allocate_stack_worker,
9340 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
9341
9342 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
9343
9344 * doc/invoke.texi (Link Options): Many editorial changes around
9345 -flinker-output.
9346
9347 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9348
9349 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
9350 pre-Solaris 11 referene and most Studio compiler details.
9351
9352 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
9353
9354 PR target/90530
9355 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
9356 DImode to SImode in floating-point registers on 64-bit target.
9357 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
9358 register_operand in xmpyu patterns.
9359
9360 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9361
9362 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
9363 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
9364 OMP_CLAUSE__REDUCTEMP_.
9365 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9366 OMP_CLAUSE__CONDTEMP_.
9367 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
9368 * tree-pretty-print.c (dump_omp_clause): Likewise.
9369 * tree-nested.c (convert_nonlocal_omp_clauses,
9370 convert_local_omp_clauses): Likewise.
9371 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
9372 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
9373 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
9374 on OMP_FOR.
9375 (gimplify_omp_for): Warn and disable conditional modifier from
9376 lastprivate on loop iterators.
9377 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
9378 member.
9379 * omp-general.c (omp_extract_for_data): Initialize it.
9380 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
9381 member.
9382 (delete_omp_context): Delete it.
9383 (lower_lastprivate_conditional_clauses): New function.
9384 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
9385 handle lastprivate conditional clauses.
9386 (lower_reduction_clauses): Add CLIST argument, emit it into
9387 the critical section if any.
9388 (lower_omp_sections): Adjust lower_lastprivate_clauses and
9389 lower_reduction_clauses callers.
9390 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
9391 to lower_lastprivate_clauses.
9392 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
9393 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
9394 clist into a critical section if not emitted there already by
9395 lower_reduction_clauses.
9396 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
9397 callers.
9398 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
9399 conditional variables.
9400 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
9401 clause is present.
9402 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9403 expand_omp_for_static_chunk): Handle lastprivate conditional.
9404 (expand_omp_for): Handle fd.lastprivate_conditional like
9405 fd.have_reductemp.
9406
9407 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9408
9409 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
9410 kernel does not exit cleanly.
9411 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
9412
9413 2019-05-24 Jason Merrill <jason@redhat.com>
9414
9415 Revert:
9416 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9417
9418 2019-05-24 Richard Biener <rguenther@suse.de>
9419
9420 PR testsuite/90607
9421 * tree-loop-distribution.c (struct partition): Add location
9422 member.
9423 (partition_alloc): Initialize all fields.
9424 (generate_memset_builtin): Use the location recorded in the
9425 partition for the generated call.
9426 (generate_memcpy_builtin): Likewise.
9427 (classify_partition): Record the location of a single store
9428 as location for the partition.
9429
9430 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9431
9432 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
9433 for lo-part.
9434
9435 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
9436
9437 PR target/90588
9438 * common/config/aarch64/aarch64-common.c
9439 (aarch64_rewrite_selected_cpu): Change local temporary variable
9440 type from unsigned long to uint64_t.
9441 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
9442 aarch64_get_extension_string_for_isa_flags): Change declaration to
9443 match new definition by replacing unsigned long with uint64_t.
9444
9445 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9446
9447 PR target/90568
9448 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
9449 gen_attr_type just once instead of 4-7 times. Formatting fixes.
9450 Handle stack_protect_test_<mode> codegen similarly to corresponding
9451 sub instruction.
9452
9453 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
9454
9455 * config/i386/darwin.h: Reject -mfentry*.
9456 * doc/sourcebuild.texi: Document mfentry target support.
9457
9458 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9459
9460 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
9461 Rename to rs6000_global_entry_point_prologue_needed_p. Return
9462 false for PC-relative functions.
9463 (rs6000_output_function_prologue): Change called function name to
9464 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
9465 name,1" for PC-relative functions.
9466 (rs6000_elf_declare_function_name): Change called function name to
9467 rs6000_global_entry_point_prologue_needed_p.
9468
9469 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
9470
9471 PR target/90552
9472 * config/i386/i386.c (gen_rtx_cost):
9473 Use ix86_tune_cost instead of ix86_cost.
9474
9475 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9476 Michael Meissner <meissner@linux.ibm.com>
9477 Segher Boessenkool <segher@kernel.crashing.org>
9478
9479 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
9480 OPTION_MASK_PCREL.
9481 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
9482 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
9483 (rs6000_fndecl_pcrel_p): Likewise.
9484 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
9485 error if -mpcrel is requested without -mcpu=future.
9486 (rs6000_opt_masks): Add entry for pcrel.
9487 (rs6000_fndecl_pcrel_p): New function.
9488 (rs6000_pcrel_p): Likewise.
9489 * config/rs6000/rs6000.opt (mpcrel): New option.
9490 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
9491
9492 2019-05-23 Jan Hubicka <jh@suse.cz>
9493 Martin Liska <mliska@suse.cz>
9494
9495 PR tree-optimization/90576
9496 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
9497 poly_int_tree_p.
9498 (aliasing_component_refs_p): Fix three way size compare conditional;
9499 give up earlier in case we can not decide on equivalence.
9500
9501 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9502 Michael Meissner <meissner@linux.ibm.com>
9503 Segher Boessenkool <segher@kernel.crashing.org>
9504
9505 * config.gcc: Add future cpu.
9506 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
9507 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
9508 #define.
9509 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
9510 (RS6000_CPU): New instantiation for future cpu.
9511 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9512 PROCESSOR_FUTURE.
9513 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
9514 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
9515 * config/rs6000/rs6000-tables.opt: Regenerate.
9516 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
9517 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
9518 (rs6000_machine_from_flags): Handle future cpu.
9519 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
9520 PROCESSOR_POWER9 for now.
9521 (rs6000_adjust_cost): Likewise.
9522 (rs6000_issue_rate): Likewise.
9523 (rs6000_register_move_cost): Likewise.
9524 (rs6000_opt_masks): Add entry for future.
9525 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
9526 (MASK_FUTURE): New #define.
9527 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
9528 * config/rs6000/rs6000.opt (mfuture): New target option.
9529 * doc/invoke.texi (mcpu): Add future cpu.
9530
9531 2019-05-23 Martin Liska <mliska@suse.cz>
9532
9533 PR c++/90587
9534 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
9535 operation points to a temporary (pointed via tree_to_wide_ref)
9536 that is out of scope after the &.
9537
9538 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
9539
9540 PR c++/90592
9541 * doc/extend.texi (Function Names): Add missing word.
9542
9543 2019-05-23 Richard Biener <rguenther@suse.de>
9544
9545 PR tree-optimization/88440
9546 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
9547 at -O[2s]+.
9548 * tree-loop-distribution.c (generate_memset_builtin): Fold the
9549 generated call.
9550 (generate_memcpy_builtin): Likewise.
9551 (distribute_loop): Pass in whether to only distribute patterns.
9552 (prepare_perfect_loop_nest): Also allow size optimization.
9553 (pass_loop_distribution::execute): When optimizing a loop
9554 nest for size allow pattern replacement.
9555
9556 2019-05-23 Jakub Jelinek <jakub@redhat.com>
9557
9558 PR target/90568
9559 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
9560 of xor.
9561
9562 2019-05-23 Martin Liska <mliska@suse.cz>
9563
9564 PR sanitizer/90570
9565 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
9566 expression similarly to gimplify_decl_expr.
9567
9568 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9569
9570 * cse.c (cse_dump_path): s/dump_file/f.
9571
9572 2019-05-22 David Malcolm <dmalcolm@redhat.com>
9573
9574 PR c++/90462
9575 * diagnostic-format-json.cc: Include "selftest.h".
9576 (json_from_expanded_location): Only add "file" key for non-NULL
9577 file strings.
9578 (json_from_location_range): Don't add "start" and "finish"
9579 children if they are UNKNOWN_LOCATION.
9580 (selftest::test_unknown_location): New selftest.
9581 (selftest::test_bad_endpoints): New selftest.
9582 (selftest::diagnostic_format_json_cc_tests): New function.
9583 * json.cc (json::object::get): New function.
9584 (selftest::test_object_get): New selftest.
9585 (selftest::json_cc_tests): Call it.
9586 * json.h (json::object::get): New decl.
9587 * selftest-run-tests.c (selftest::run_tests): Call
9588 selftest::diagnostic_format_json_cc_tests.
9589 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
9590 decl.
9591
9592 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
9593 Andrew Stubbs <amd@codesourcery.com>
9594
9595 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
9596 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
9597 (kernel): Rename to...
9598 (main_kernel): ... this.
9599 (load_image): Load _init_array and _fini_array kernels.
9600 (run): Add argument for kernel to run.
9601 (main): Run init_array_kernel before main_kernel, and
9602 fini_array_kernel after.
9603 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
9604 amdgpu_hsa_kernel attribute on functions.
9605 (gcn_disable_constructors): Delete.
9606 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
9607 * config/gcn/crt0.c (size_t): Define.
9608 (_init_array, _fini_array): New.
9609 (__preinit_array_start, __preinit_array_end,
9610 __init_array_start, __init_array_end,
9611 __fini_array_start, __fini_array_end): Declare weak references.
9612
9613 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
9614
9615 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
9616
9617 2019-05-22 Jason Merrill <jason@redhat.com>
9618
9619 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9620
9621 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
9622
9623 PR target/88483
9624 * config/i386/i386-options.c (ix86_init_machine_status): Set
9625 stack_frame_required to true.
9626 * config/i386/i386.c (ix86_get_frame_size): New function.
9627 (ix86_frame_pointer_required): Replace get_frame_size with
9628 ix86_get_frame_size.
9629 (ix86_compute_frame_layout): Likewise.
9630 (ix86_find_max_used_stack_alignment): Changed to void. Set
9631 stack_frame_required.
9632 (ix86_finalize_stack_frame_flags): Always call
9633 ix86_find_max_used_stack_alignment. Replace get_frame_size with
9634 ix86_get_frame_size.
9635 * config/i386/i386.h (machine_function): Add stack_frame_required.
9636
9637 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
9638
9639 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
9640
9641 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
9642
9643 * common/config/aarch64/aarch64-common.c
9644 (struct aarch64_option_extension, struct processor_name_to_arch,
9645 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
9646 aarch64_contains_opt,
9647 aarch64_get_extension_string_for_isa_flags): Change type of
9648 variables storing flags to uint64_t.
9649 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
9650 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
9651 * config/aarch64/aarch64.c (struct processor,
9652 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
9653 aarch64_validate_march, aarch64_override_options,
9654 aarch64_option_print, aarch64_handle_attr_isa_flags,
9655 aarch64_declare_function_name, aarch64_start_file): Make flag
9656 variables uint64_t.
9657 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
9658 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
9659 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
9660 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
9661 * config/aarch64/driver-aarch64.c
9662 (struct aarch64_arch_extension, struct aarch64_core_data,
9663 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
9664 flag variables uint64_t.
9665 * doc/invoke.texi: Add documentation for new arguments.
9666
9667 2019-05-22 Richard Biener <rguenther@suse.de>
9668
9669 * alias.c (ao_ref_from_mem): Move stack-slot sharing
9670 rewrite ...
9671 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
9672
9673 2019-05-22 Martin Liska <mliska@suse.cz>
9674
9675 PR lto/90500
9676 * doc/extend.texi: Document the change.
9677
9678 2019-05-22 Richard Biener <rguenther@suse.de>
9679
9680 PR tree-optimization/90450
9681 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
9682 (mem_ref_hasher::equal): Check it.
9683 (mem_ref_alloc): Initialize it.
9684 (gather_mem_refs_stmt): Set it.
9685
9686 2019-05-22 Richard Biener <rguenther@suse.de>
9687
9688 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
9689 Add ABS_EXPR.
9690 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
9691 as ABSU_EXPR.
9692
9693 2019-05-22 Alan Modra <amodra@gmail.com>
9694
9695 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
9696 (ASM_CPU_SPEC): Conditionally add -many.
9697 * config/rs6000/rs6000.c (rs6000_machine): New static var.
9698 (rs6000_machine_from_flags, emit_asm_machine): New functions..
9699 (rs6000_file_start): ..extracted from here, and modified to
9700 test all ISA bits.
9701 (rs6000_output_function_prologue): Emit .machine as necessary.
9702
9703 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
9704
9705 PR middle-end/90553
9706 * ira-lives.c (process_bb_node_lives): Consider defs
9707 for a call insn to be die before the call, not after.
9708
9709 * function.c (assign_parm_setup_block): Raise alignment of
9710 stacked parameter only for STRICT_ALIGNMENT targets.
9711
9712 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9713
9714 * config/rs6000/constraints.md (define_register_constraint "wz"):
9715 Delete.
9716 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9717 RS6000_CONSTRAINT_wz.
9718 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9719 (rs6000_init_hard_regno_mode_ok): Adjust.
9720 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
9721 * doc/md.texi (Machine Constraints): Adjust.
9722
9723 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9724
9725 * config/rs6000/constraints.md (define_register_constraint "wl"):
9726 Delete.
9727 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9728 RS6000_CONSTRAINT_wl.
9729 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9730 (rs6000_init_hard_regno_mode_ok): Adjust.
9731 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
9732 * doc/md.texi (Machine Constraints): Adjust.
9733
9734 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9735
9736 * config/rs6000/constraints.md (define_register_constraint "wm"):
9737 Delete.
9738 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9739 RS6000_CONSTRAINT_wm.
9740 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9741 (rs6000_init_hard_regno_mode_ok): Adjust.
9742 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
9743 * doc/md.texi (Machine Constraints): Adjust.
9744
9745 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9746
9747 * config/rs6000/constraints.md (define_register_constraint "wk"):
9748 Delete.
9749 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9750 RS6000_CONSTRAINT_wk.
9751 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9752 (rs6000_init_hard_regno_mode_ok): Adjust.
9753 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
9754 * doc/md.texi (Machine Constraints): Adjust.
9755
9756 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9757
9758 * config/rs6000/constraints.md (define_register_constraint "wj"):
9759 Delete.
9760 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9761 RS6000_CONSTRAINT_wj.
9762 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9763 (rs6000_init_hard_regno_mode_ok): Adjust.
9764 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
9765 (VS_64dm): Delete.
9766 * config/rs6000/vsx.md: Ditto.
9767 * doc/md.texi (Machine Constraints): Adjust.
9768
9769 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9770
9771 * config/rs6000/constraints.md (define_register_constraint "wh"):
9772 Delete.
9773 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9774 RS6000_CONSTRAINT_wh.
9775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9776 (rs6000_init_hard_regno_mode_ok): Adjust.
9777 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
9778 * doc/md.texi (Machine Constraints): Adjust.
9779
9780 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
9781
9782 PR target/90547
9783 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
9784 Avoid calling gen_lowpart with CONST operand.
9785
9786 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
9787
9788 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
9789 field template_last_to_copy.
9790 (ssa_create_duplicates): Set it, and use it. Attempt to
9791 preserve more debug stmts.
9792
9793 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
9794
9795 * config/i386/sse.md (VF1_AVX2): New mode iterator.
9796 (signbit<mode>2): New expander
9797
9798 2019-05-21 James Clarke <jrtc27@jrtc27.com>
9799
9800 PR bootstrap/87338
9801 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
9802 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
9803
9804 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
9805
9806 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
9807 %ebx and %ecx bafore calling cpuid with leaf 1 or
9808 non-constant leaf argument.
9809
9810 2019-05-21 Alan Modra <amodra@gmail.com>
9811
9812 PR target/90545
9813 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
9814 power9 direct move cost.
9815
9816 2019-05-21 Richard Biener <rguenther@suse.de>
9817
9818 PR middle-end/90510
9819 * fold-const.c (fold_read_from_vector): New function.
9820 * fold-const.h (fold_read_from_vector): Declare.
9821 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
9822 single-element insert permutations. Canonicalize selector
9823 further and fix issue with last commit.
9824
9825 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
9826
9827 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
9828 parameter with default value false to declaration.
9829 (split_edges_for_insertion): New inline function. Wrapper for
9830 split_critical_edges with for_edge_insertion_p = true.
9831 * tree-cfg.c (split_critical_edges): Don't split non-critical
9832 edges if for_edge_insertion_p is false. Fix whitespace.
9833 * tree-ssa-pre.c (pass_pre::execute): Call
9834 split_edges_for_insertion instead of split_critical_edges.
9835 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
9836 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
9837 (pass_data_sink_code): Update function name in the comment.
9838
9839 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
9840
9841 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
9842 around is_value_included_in that knows how to handle BIT_AND_EXPR.
9843 (is_pred_expr_subset_of): Use the new function. Handle more cases where
9844 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
9845 positives.
9846
9847 2019-05-21 Martin Liska <mliska@suse.cz>
9848
9849 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
9850 an extra newline.
9851 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
9852 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
9853 vec_lvsr.
9854 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9855 Quote a C type.
9856 (rs6000_function_arg): Likewise.
9857 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
9858 (rs6000_expand_ternop_builtin): Use interval syntax.
9859 (get_element_number): Likewise.
9860 (altivec_expand_builtin): Likewise.
9861 (rs6000_get_function_versions_dispatcher): Quote target_clones.
9862
9863 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9864
9865 PR c++/59813
9866 PR target/90418
9867 * function.h (struct function): Add calls_eh_return member.
9868 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
9869 gimplifying __builtin_eh_return call.
9870 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
9871 to cfun.
9872 (expand_call_inline): Or in src_cfun->calls_eh_return into
9873 dst_cfun->calls_eh_return.
9874 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
9875 cfun->calls_eh_return.
9876 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
9877 * lto-streamer-out.c (output_struct_function_base): Write
9878 calls_eh_return.
9879
9880 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
9881
9882 PR rtl-optimization/43147
9883 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
9884 IX86_BUILTIN_SHUFPD.
9885
9886 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
9887
9888 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
9889 (refs_may_alias_p_1): ... here; update stats.
9890 (refs_may_alias_p): Do not update stats here.
9891
9892 2019-05-20 Richard Biener <rguenther@suse.de>
9893
9894 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
9895 doesn't produce pointers.
9896 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
9897 the first operand points to.
9898
9899 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
9900
9901 * tree-ssa-alias.c (compare_sizes): New function.
9902 (sompare_type_sizes): New function
9903 (aliasing_component_refs_p): Use it.
9904 (indirect_ref_may_alias_decl_p): Likewise.
9905
9906 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9907
9908 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
9909
9910 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9911
9912 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
9913 (LIBLSAN_EARLY_SPEC): Likewise.
9914 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
9915
9916 2019-05-20 Martin Liska <mliska@suse.cz>
9917
9918 * config/i386/i386.c (ix86_libc_has_fast_function):
9919 Add ATTRIBUTE_UNUSED for the argument.
9920
9921 2019-05-20 Richard Biener <rguenther@suse.de>
9922
9923 * gimple-match-head.c: Include vec-perm-indices.h.
9924 * generic-match-head.c: Likewise.
9925 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
9926 is included.
9927 * fold-const.c (fold_vec_perm): Export.
9928 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
9929 (match.pd): ...here.
9930
9931 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9932
9933 * cfgloop.h (struct loop): Add simdlen member.
9934 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
9935 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
9936 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
9937 as new argument to autovectorize_vector_sizes target hook. If
9938 loop->simdlen, pick up vector size where the vectorization factor
9939 is equal to loop->simd, and if there is none, fall back to the first
9940 successful one.
9941 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
9942 caller.
9943 * omp-low.c (omp_clause_aligned_alignment): Likewise.
9944 * omp-general.c (omp_max_vf): Likewise.
9945 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
9946 * tree-vect-slp.c (vect_slp_bb): Likewise.
9947 * target.def (autovectorize_vector_sizes): Add ALL argument and
9948 document it.
9949 * doc/tm.texi: Adjust documentation.
9950 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
9951 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
9952 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
9953 bool argument.
9954 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
9955 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
9956 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
9957 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
9958 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
9959 preferred vector size is not 512-bit or 256-bit, just put those
9960 unpreferred ones last.
9961
9962 2019-05-20 Martin Liska <mliska@suse.cz>
9963
9964 * targhooks.c (default_libc_has_fast_function): New function.
9965 * targhooks.h (default_libc_has_fast_function): Likewise.
9966
9967 2019-05-20 Martin Liska <mliska@suse.cz>
9968
9969 PR middle-end/90263
9970 * builtins.c (expand_builtin_memory_copy_args): When having a
9971 target with fast mempcpy implementation do now use memcpy.
9972 * config/i386/i386.c (ix86_libc_has_fast_function): New.
9973 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
9974 * doc/tm.texi: Likewise.
9975 * doc/tm.texi.in: Likewise.
9976 * target.def:
9977 * expr.c (emit_block_move_hints): Add 2 new arguments.
9978 * expr.h (emit_block_move_hints): Bail out when libcall
9979 to memcpy would be used.
9980
9981 2019-05-20 Martin Liska <mliska@suse.cz>
9982
9983 * profile-count.c: Add vertical spacing in order
9984 to separate functions.
9985 * profile-count.h: Likewise.
9986
9987 2019-05-20 Martin Liska <mliska@suse.cz>
9988
9989 * profile-count.h: Do not use full qualified
9990 names if possible.
9991 * profile-count.c (profile_count::to_frequency): Likewise.
9992
9993 2019-05-20 Martin Liska <mliska@suse.cz>
9994
9995 * profile-count.h (enum profile_quality): Use capital letters
9996 for enum value names. Use the adjusted names.
9997 * profile-count.c: Use the adjusted names.
9998
9999 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10000
10001 * config/rs6000/constraints.md (define_register_constraint "wH"):
10002 Delete.
10003 (define_register_constraint "wI"): Delete.
10004 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10005 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
10006 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10007 (rs6000_init_hard_regno_mode_ok): Adjust.
10008 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
10009 resp. "d", or with "wa" as appropriate, all with "p8v".
10010 * config/rs6000/vsx.md: Ditto.
10011 * doc/md.texi (Machine Constraints): Adjust.
10012
10013 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10014
10015 * config/rs6000/constraints.md (define_register_constraint "wy"):
10016 Delete.
10017 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10018 RS6000_CONSTRAINT_wy.
10019 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10020 (rs6000_init_hard_regno_mode_ok): Adjust.
10021 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
10022 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
10023 (define_mode_attr Fisa): New.
10024 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
10025 * doc/md.texi (Machine Constraints): Adjust.
10026
10027 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10028
10029 * config/rs6000/constraints.md (define_register_constraint "wu"):
10030 Delete.
10031 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10032 RS6000_CONSTRAINT_wu.
10033 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10034 (rs6000_init_hard_regno_mode_ok): Adjust.
10035 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
10036 both with "p8v".
10037 (define_mode_attr Fa): Delete.
10038 * config/rs6000/vsx.md: Ditto.
10039 * doc/md.texi (Machine Constraints): Adjust.
10040
10041 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10042
10043 * config/rs6000/constraints.md (define_register_constraint "wJ"):
10044 Delete.
10045 (define_register_constraint "wK"): Delete.
10046 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10047 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
10048 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10049 (rs6000_init_hard_regno_mode_ok): Adjust.
10050 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
10051 Replace "wK" constraint by "wH" with "p9v".
10052 * config/rs6000/vsx.md: Ditto.
10053 * doc/md.texi (Machine Constraints): Adjust.
10054
10055 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10056
10057 * config/rs6000/constraints.md (define_register_constraint "wb"):
10058 Delete.
10059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10060 RS6000_CONSTRAINT_wb.
10061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10062 (rs6000_init_hard_regno_mode_ok): Adjust.
10063 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
10064 * config/rs6000/vsx.md: Ditto.
10065 * doc/md.texi (Machine Constraints): Adjust.
10066
10067 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10068
10069 * config/rs6000/constraints.md (define_register_constraint "wo"):
10070 Delete.
10071 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10072 RS6000_CONSTRAINT_wo.
10073 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10074 (rs6000_init_hard_regno_mode_ok): Adjust.
10075 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
10076 * config/rs6000/altivec.md: Ditto.
10077 * doc/md.texi (Machine Constraints): Adjust.
10078
10079 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10080
10081 * config/darwin-c.c (darwin_register_objc_includes): Do not
10082 prepend the sysroot when building gnu-runtime header search
10083 paths.
10084
10085 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10086
10087 * config/darwin.c (darwin_file_end): Use switch_to_section ()
10088 instead of direct output of the asm.
10089
10090 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10091
10092 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
10093 argument to be type bool (was int before).
10094 (rs6000_emit_epilogue): Simplify some code. Declare some variables
10095 at first use. Use type bool for some variables. Fix a theoretical
10096 eh_return bug for svr4.
10097
10098 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10099
10100 * config/rs6000/rs6000.md (isa): New attribute.
10101 (enabled): New attribute.
10102
10103 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
10104
10105 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
10106 assemble_start_function and assemble_end_function.
10107
10108 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
10109
10110 PR middle-end/89433
10111 * omp-general.c (oacc_verify_routine_clauses): Change formal
10112 parameters. Add checking if already marked with an OpenACC
10113 'routine' directive. Adjust all users.
10114
10115 PR middle-end/89433
10116 * omp-general.c (oacc_build_routine_dims): Move some of its
10117 processing into...
10118 (oacc_verify_routine_clauses): ... this new function.
10119 * omp-general.h (oacc_verify_routine_clauses): New prototype.
10120
10121 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10122
10123 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
10124 formating of picbase labels to match other ports.
10125
10126 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10127
10128 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
10129 in the generated code.
10130
10131 2019-05-16 Martin Sebor <msebor@redhat.com>
10132
10133 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
10134 identifiers, keywords, operators, and types in diagnostics. Correct
10135 quoting, spelling, and sentence capitalization issues.
10136 (expand_builtin_atomic_is_lock_free): Same.
10137 (fold_builtin_next_arg): Same.
10138 * cfgexpand.c (expand_one_var): Same.
10139 (tree_conflicts_with_clobbers_p): Same.
10140 (expand_asm_stmt): Same.
10141 (verify_loop_structure): Same.
10142 * cgraphunit.c (process_function_and_variable_attributes): Same.
10143 * collect-utils.c (collect_execute): Same.
10144 * collect2.c (maybe_run_lto_and_relink): Same.
10145 (is_lto_object_file): Same.
10146 (scan_prog_file): Same.
10147 * convert.c (convert_to_real_1): Same.
10148 * dwarf2out.c (dwarf2out_begin_prologue): Same.
10149 * except.c (verify_eh_tree): Same.
10150 * gcc.c (execute): Same.
10151 (eval_spec_function): Same.
10152 (run_attempt): Same.
10153 (driver::set_up_specs): Same.
10154 (compare_debug_auxbase_opt_spec_function): Same.
10155 * gcov-tool.c (unlink_gcda_file): Same.
10156 (do_merge): Same.
10157 (do_rewrite): Same.
10158 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
10159 * gimplify.c (gimplify_asm_expr): Same.
10160 (gimplify_adjust_omp_clauses): Same.
10161 * hsa-gen.c (gen_hsa_addr_insns): Same.
10162 (gen_hsa_insns_for_load): Same.
10163 (gen_hsa_cmp_insn_from_gimple): Same.
10164 (gen_hsa_insns_for_operation_assignment): Same.
10165 (gen_get_level): Same.
10166 (gen_hsa_alloca): Same.
10167 (omp_simple_builtin::generate): Same.
10168 (gen_hsa_atomic_for_builtin): Same.
10169 (gen_hsa_insns_for_call): Same.
10170 * input.c (dump_location_info): Same.
10171 * ipa-devirt.c (compare_virtual_tables): Same.
10172 * ira.c (ira_setup_eliminable_regset): Same.
10173 * lra-assigns.c (lra_assign): Same.
10174 * lra-constraints.c (lra_constraints): Same.
10175 * lto-streamer-in.c (lto_input_mode_table): Same.
10176 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
10177 (merge_and_complain): Same.
10178 (compile_offload_image): Same.
10179 (compile_images_for_offload_targets): Same.
10180 (debug_objcopy): Same.
10181 (run_gcc): Same.
10182 (main): Same.
10183 * opts.c (print_specific_help): Same.
10184 (parse_no_sanitize_attribute): Same.
10185 (print_help): Same.
10186 (handle_param): Same.
10187 * plugin.c (add_new_plugin): Same.
10188 (parse_plugin_arg_opt): Same.
10189 (try_init_one_plugin): Same.
10190 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
10191 operators, and types in diagnostics. Correct quoting and spelling
10192 issues.
10193 * read-rtl-function.c (parse_edge_flag_token): Same.
10194 (function_reader::parse_enum_value): Same.
10195 * reg-stack.c (check_asm_stack_operands): Same.
10196 * regcprop.c (validate_value_data): Same.
10197 * sched-rgn.c (make_pass_sched_fusion): Same.
10198 * stmt.c (check_unique_operand_names): Same.
10199 * targhooks.c (default_target_option_pragma_parse): Same.
10200 * tlink.c (recompile_files): Same.
10201 * toplev.c (process_options): Same.
10202 (do_compile): Same.
10203 * trans-mem.c (diagnose_tm_1): Same.
10204 (ipa_tm_scan_irr_block): Same.
10205 (ipa_tm_diagnose_transaction): Same.
10206 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
10207 format a tree code name in a diagnostic.
10208 (verify_types_in_gimple_min_lval): Same.
10209 (verify_types_in_gimple_reference): Same.
10210 (verify_gimple_call): Same.
10211 (verify_gimple_assign_unary): Same.
10212 (verify_gimple_assign_binary): Same.
10213 (verify_gimple_assign_ternary): Same.
10214 (verify_gimple_assign_single): Same.
10215 (verify_gimple_switch): Same.
10216 (verify_gimple_label): Same.
10217 (verify_gimple_phi): Same.
10218 (verify_gimple_in_seq): Same.
10219 (verify_eh_throw_stmt_node): Same.
10220 (collect_subblocks): Same.
10221 (gimple_verify_flow_info): Same.
10222 (do_warn_unused_result): Same.
10223 * tree-inline.c (expand_call_inline): Same.
10224 * tree-into-ssa.c (update_ssa): Same.
10225 * tree.c (tree_int_cst_elt_check_failed): Same.
10226 (tree_vec_elt_check_failed): Same.
10227 (omp_clause_operand_check_failed): Same.
10228 (verify_type_variant): Same.
10229 (verify_type): Same.
10230 * value-prof.c (verify_histograms): Same.
10231 * varasm.c (assemble_start_function): Same.
10232
10233 2019-05-16 Martin Sebor <msebor@redhat.com>
10234
10235 * config/i386/i386-expand.c (get_element_number): Quote keywords
10236 and other internal names in diagnostics. Adjust other diagnostic
10237 formatting issues noted by -Wformat-diag.
10238 * config/i386/i386-features.c
10239 (ix86_mangle_function_version_assembler_name): Same.
10240 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
10241 * config/i386/i386.c (ix86_function_type_abi): Same.
10242 (ix86_function_ms_hook_prologue): Same.
10243 (classify_argument): Same.
10244 (ix86_expand_prologue): Same.
10245 (ix86_md_asm_adjust): Same.
10246 (ix86_memmodel_check): Same.
10247
10248 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10249
10250 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
10251 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
10252 and fpxx modes.
10253
10254 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
10255
10256 PR target/90497
10257 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
10258 intrinsics without SSE/SSE2/SSSE3.
10259 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
10260 check.
10261 (*mmx_uavgv8qi3): Likewise.
10262
10263 2019-05-17 Richard Biener <rguenther@suse.de>
10264
10265 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
10266 VEC_PERM_EXPR as __VEC_PERM with -gimple.
10267
10268 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
10269
10270 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
10271 vec_sldw insn pattern.
10272
10273 2019-05-17 Richard Biener <rguenther@suse.de>
10274
10275 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
10276
10277 2019-05-17 Martin Liska <mliska@suse.cz>
10278
10279 PR driver/90496
10280 * toplev.c (output_stack_usage): With LTO and sanitizer it
10281 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
10282 has no file location.
10283
10284 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10285
10286 PR c++/90484
10287 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
10288 sz0 is equal to sz1, instead return false in that case.
10289
10290 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
10291 has non-constant expression, force sctx.lane and use two
10292 argument IFN_GOMP_SIMD_LANE instead of single argument.
10293 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
10294 two argument IFN_GOMP_SIMD_LANE without lhs.
10295 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
10296 member.
10297 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
10298 Define.
10299 (LOOP_REQUIRES_VERSIONING): Or in
10300 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
10301 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10302 simd_if_cond.
10303 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
10304 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
10305 from simd if clause if needed.
10306
10307 2019-05-16 Richard Biener <rguenther@suse.de>
10308
10309 * tree-affine.c (expr_to_aff_combination): New function split
10310 out from...
10311 (tree_to_aff_combination): ... here.
10312 (aff_combination_expand): Avoid building a GENERIC tree.
10313
10314 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
10315
10316 * cgraphunit.c (cgraph_node::expand_thunk): Remove
10317 assemble_start_function and assemble_end_function calls.
10318 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
10319 assemble_start_function and assemble_end_function.
10320 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
10321 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
10322 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
10323 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
10324 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
10325 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
10326 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
10327 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
10328 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10329 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10330 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10331 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
10332 Likewise.
10333 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10334 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
10335 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
10336 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
10337 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10338 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10339 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
10340 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
10341 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10342 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
10343 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10344 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10345 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
10346 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
10347 Likewise.
10348 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10349 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10350 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
10351
10352 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
10353
10354 * tree-ssa-alias.c (alias_stats): Add
10355 aliasing_component_refs_p_may_alias and
10356 aliasing_component_refs_p_no_alias.
10357 (dump_alias_stats): Print aliasing_component_refs_p stats.
10358 (aliasing_component_refs_p): Update stats.
10359
10360 2019-05-16 Martin Liska <mliska@suse.cz>
10361
10362 PR lto/90500
10363 * multiple_target.c (expand_target_clones): Do not allow
10364 target_clones being used with a symbol that is an alias.
10365
10366 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
10367
10368 PR tree-optimization/90394
10369 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
10370 positives rather than ICE for cases where (code2 == NE_EXPR
10371 && code1 == BIT_AND_EXPR).
10372
10373 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10374
10375 PR fortran/90329
10376 * tree-core.h (struct tree_decl_common): Document
10377 decl_nonshareable_flag for PARM_DECLs.
10378 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
10379 * calls.c (expand_call): Don't try tail call if caller
10380 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
10381 passed on the stack and callee needs to pass any arguments on the
10382 stack.
10383 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10384 else if instead of series of mutually exclusive ifs. Handle
10385 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
10386 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10387
10388 * lto-streamer.h (LTO_major_version): Bump to 9.
10389
10390 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
10391
10392 PR tree-optimization/90106
10393 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
10394 new parameter as new internal function call, also move it to new
10395 basic block.
10396 (use_internal_fn): Pass internal function call to
10397 shrink_wrap_one_built_in_call_with_conds.
10398
10399 2019-05-15 Jakub Jelinek <jakub@redhat.com>
10400
10401 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
10402 max_vf to 1.
10403 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
10404 safelen_int and set loop->dont_vectorize.
10405
10406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10407
10408 PR target/89021
10409 * config/i386/i386-builtin.def: Enable MMX intrinsics with
10410 SSE/SSE2/SSSE3.
10411 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10412 Likewise.
10413 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
10414 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
10415 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
10416 is defined.
10417
10418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10419
10420 PR target/89021
10421 * config/i386/mmx.md (*vec_dupv2sf): Changed to
10422 define_insn_and_split to support SSE emulation.
10423 (*vec_extractv2sf_0): Likewise.
10424 (*vec_extractv2sf_1): Likewise.
10425 (*vec_extractv2si_0): Likewise.
10426 (*vec_extractv2si_1): Likewise.
10427 (*vec_extractv2si_zext_mem): Likewise.
10428 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
10429 (vec_extractv2sf_1 splitter): Likewise.
10430 (vec_extractv2sfsf): Likewise.
10431 (vec_setv2si): Likewise.
10432 (vec_extractv2si_1 splitter): Likewise.
10433 (vec_extractv2sisi): Likewise.
10434 (vec_setv4hi): Likewise.
10435 (vec_extractv4hihi): Likewise.
10436 (vec_setv8qi): Likewise.
10437 (vec_extractv8qiqi): Likewise.
10438 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10439 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
10440 (vec_extractv2sisi): Likewise.
10441 (vec_extractv4hihi): Likewise.
10442 (vec_extractv8qiqi): Likewise.
10443 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10444 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
10445 (vec_initv2sisi): Likewise.
10446 (vec_initv4hihi): Likewise.
10447 (vec_initv8qiqi): Likewise.
10448 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
10449 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
10450 (vec_setv4hi): Likewise.
10451 (vec_setv8qi): Likewise.
10452
10453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10454
10455 PR target/89021
10456 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
10457 TARGET_MMX_WITH_SSE.
10458 (MMXMODE:*mov<mode>_internal): Likewise.
10459 (MMXMODE:movmisalign<mode>): Likewise.
10460
10461 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
10462
10463 PR target/89021
10464 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
10465 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
10466 (sse2_cvtpd2pi): Ditto.
10467 (sse2_cvttpd2pi): Ditto.
10468 (*vec_concatv2sf_sse4_1): Ditto.
10469 (*vec_concatv2sf_sse): Ditto.
10470 (*vec_concatv2si_sse4_1): Ditto.
10471 (*vec_concatv2si): Ditto.
10472 (*vec_concatv4si_0): Ditto.
10473 (*vec_concatv2di_0): Ditto.
10474
10475 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10476
10477 PR target/89021
10478 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
10479
10480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10481
10482 PR target/89021
10483 * config/i386/sse.md (ssse3_palignrdi): Changed to
10484 define_insn_and_split to support SSE emulation.
10485
10486 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10487
10488 PR target/89021
10489 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
10490
10491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10492
10493 PR target/89021
10494 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
10495 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10496 SSE emulation.
10497
10498 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10499
10500 PR target/89021
10501 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
10502 or TARGET_MMX_WITH_SSE.
10503 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
10504
10505 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10506
10507 PR target/89021
10508 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
10509
10510 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10511
10512 PR target/89021
10513 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
10514 Changed to define_insn_and_split to support SSE emulation.
10515
10516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10517
10518 PR target/89021
10519 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
10520 Changed to define_insn_and_split to support SSE emulation.
10521
10522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10523
10524 PR target/89021
10525 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
10526 (*mmx_<emms>): This.
10527 (mmx_<emms>): New expander.
10528
10529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10530
10531 PR target/89021
10532 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
10533 support.
10534 (*sse2_umulv1siv1di3): Add SSE2 emulation.
10535
10536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10537
10538 PR target/89021
10539 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
10540
10541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10542
10543 PR target/89021
10544 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
10545
10546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10547
10548 PR target/89021
10549 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
10550 TARGET_MMX_WITH_SSE.
10551 (*mmx_uavgv4hi3): Add SSE emulation.
10552
10553 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10554
10555 PR target/89021
10556 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
10557 and TARGET_MMX_WITH_SSE.
10558 (*mmx_uavgv8qi3): Add SSE emulation.
10559
10560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10561
10562 PR target/89021
10563 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
10564 maskmovdqu for __MMX_WITH_SSE__.
10565
10566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10567
10568 PR target/89021
10569 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
10570 TARGET_MMX and TARGET_MMX_WITH_SSE.
10571 (*mmx_umulv4hi3_highpart): Add SSE emulation.
10572
10573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10574
10575 PR target/89021
10576 * config/i386/mmx.md (mmx_pmovmskb): Changed to
10577 define_insn_and_split to support SSE emulation.
10578
10579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10580
10581 PR target/89021
10582 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
10583 and TARGET_MMX_WITH_SSE.
10584 (mmx_<code>v8qi3): Likewise.
10585 (smaxmin:<code>v4hi3): New.
10586 (umaxmin:<code>v8qi3): Likewise.
10587 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
10588 (umaxmin:*mmx_<code>v8qi3): Likewise.
10589
10590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10591
10592 PR target/89021
10593 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
10594 TARGET_MMX_WITH_SSE.
10595 (*mmx_pinsrw): Add SSE emulation.
10596
10597 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10598
10599 PR target/89021
10600 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
10601
10602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10603
10604 PR target/89021
10605 * config/i386/sse.md (sse_cvtpi2ps): Changed to
10606 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10607 SSE emulation.
10608
10609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10610
10611 PR target/89021
10612 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
10613 (sse_cvttps2pi): Likewise.
10614
10615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10616
10617 PR target/89021
10618 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
10619 TARGET_MMX_WITH_SSE.
10620 (mmx_pshufw_1): Add SSE emulation.
10621 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
10622 TARGET_MMX_WITH_SSE to support SSE emulation.
10623
10624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10625
10626 PR target/89021
10627 * config/i386/constraints.md (Yw): New constraint.
10628 * config/i386/mmx.md (*vec_dupv2si): Changed to
10629 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
10630 support SSE emulation.
10631
10632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10633
10634 PR target/89021
10635 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
10636 TARGET_MMX_WITH_SSE.
10637 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10638 support.
10639 (mmx_gt<mode>3): Likewise.
10640
10641 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10642
10643 PR target/89021
10644 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
10645 TARGET_MMX_WITH_SSE. Add SSE support.
10646
10647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10648
10649 PR target/89021
10650 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
10651 TARGET_MMX_WITH_SSE.
10652 (any_logic:<code><mode>3): New.
10653 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
10654 Add SSE support.
10655
10656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10657
10658 PR target/89021
10659 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
10660 TARGET_MMX_WITH_SSE. Add SSE emulation.
10661 (mmx_<shift_insn><mode>3): Likewise.
10662 (ashr<mode>3): New.
10663 (<shift_insn><mode>3): Likewise.
10664
10665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10666
10667 PR target/89021
10668 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
10669 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
10670
10671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10672
10673 PR target/89021
10674 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
10675 TARGET_MMX_WITH_SSE.
10676 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
10677 SSE support.
10678
10679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10680
10681 PR target/89021
10682 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
10683 TARGET_MMX_WITH_SSE.
10684 (mulv4hi3): New.
10685 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10686 support.
10687
10688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10689
10690 PR target/89021
10691 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
10692 (plusminus:mmx_<plusminus_insn><mode>3): Check
10693 TARGET_MMX_WITH_SSE.
10694 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
10695 (<plusminus_insn><mode>3): New.
10696 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
10697 (*mmx_<plusminus_insn><mode>3): Likewise.
10698
10699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10700
10701 PR target/89021
10702 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
10703 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
10704 prototype.
10705 * config/i386/mmx.m (mmx_punpckhbw): Changed to
10706 define_insn_and_split to support SSE emulation.
10707 (mmx_punpcklbw): Likewise.
10708 (mmx_punpckhwd): Likewise.
10709 (mmx_punpcklwd): Likewise.
10710 (mmx_punpckhdq): Likewise.
10711 (mmx_punpckldq): Likewise.
10712
10713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10714 Uros Bizjak <ubizjak@gmail.com>
10715
10716 PR target/89021
10717 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
10718 New function.
10719 (ix86_split_mmx_pack): Likewise.
10720 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
10721 New prototype.
10722 (ix86_split_mmx_pack): Likewise.
10723 * config/i386/i386.md (mmx_isa): New.
10724 (enabled): Also check mmx_isa.
10725 * config/i386/mmx.md (any_s_truncate): New code iterator.
10726 (s_trunsuffix): New code attr.
10727 (mmx_packsswb): Removed.
10728 (mmx_packssdw): Likewise.
10729 (mmx_packuswb): Likewise.
10730 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
10731 MMX packsswb/packuswb with SSE2.
10732 (mmx_packssdw): Likewise.
10733 * config/i386/predicates.md (register_mmxmem_operand): New.
10734
10735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10736
10737 PR target/89021
10738 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10739 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
10740 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
10741 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
10742 (ix86_vector_mode_supported_p): Likewise.
10743 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
10744
10745 2019-05-15 Martin Liska <mliska@suse.cz>
10746
10747 PR middle-end/90478
10748 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
10749 Check for overflow.
10750
10751 2019-05-15 Richard Biener <rguenther@suse.de>
10752
10753 * tree-into-ssa.c (pass_build_ssa::execute): Run
10754 update_address_taken before going into SSA.
10755
10756 2019-05-15 Richard Biener <rguenther@suse.de>
10757
10758 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
10759 as __BIT_FIELD_REF with type with -gimple.
10760
10761 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
10762
10763 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
10764 semantically equivalent branches (left over after prior refactorings).
10765
10766 2019-05-15 Richard Biener <rguenther@suse.de>
10767
10768 PR tree-optimization/88828
10769 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
10770 bogus check.
10771
10772 2019-05-14 Richard Biener <rguenther@suse.de>
10773
10774 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
10775 as __VIEW_CONVERT with -gimple.
10776
10777 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
10778
10779 PR target/82920
10780 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
10781 Darwin.
10782
10783 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
10784
10785 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
10786 define_split to become a define_insn_and_split.
10787
10788 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
10789
10790 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
10791 arguments.
10792 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
10793 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
10794 (sibcall_epilogue): Adjust.
10795 (epilogue): Adjust.
10796
10797 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10798
10799 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
10800 to unsupported ones.
10801 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
10802 * config.host: Likewise.
10803 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
10804 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
10805 __svr4__]: Remove "brand" fallback.
10806 [!KSTAT_DATA_STRING]: Remove.
10807 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
10808 to *-*-solaris2*.
10809 (comdat_group): Likewise.
10810 (set_have_as_tls): Likewise.
10811 (gcc_cv_target_dl_iterate_phdr): Likewise.
10812 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
10813 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
10814 * configure: Regenerate.
10815 * doc/install.texi: Simplify Solaris target triplets.
10816 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
10817 (Specific, *-*-solaris2*): Document Solaris 10 removal.
10818 Remove Solaris 10 references.
10819 Remove obsolete Solaris bug reference.
10820 (Specific, sparc-sun-solaris2.10): Remove.
10821
10822 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
10823
10824 * config/i386/i386.md (any_div): New code iterator.
10825 (paired_mod): New code attribute.
10826 (sgnprefix): Handle DIV and UDIV RTXes.
10827 (u): Ditto.
10828 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
10829 and udivmod<mode>4 patterns using any_div code iterator.
10830 (divmod splitters): Macroize splitters using any_div code iterator.
10831 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
10832 (*udivmodsi4_pow2_zext_2): Ditto.
10833 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
10834 and *udivmod<mode>4_noext patterns using any_div code iterator.
10835 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
10836 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
10837 patterns using any_div code iterator.
10838 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
10839 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
10840 patterns using any_div code iterator.
10841 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
10842 udivmodhiqi3 patterns using any_extend code iterator.
10843
10844 2019-05-14 Richard Biener <rguenther@suse.de>
10845 H.J. Lu <hongjiu.lu@intel.com>
10846
10847 PR tree-optimization/88828
10848 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10849 permuting in a single non-constant element not extracted
10850 from a vector.
10851
10852 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
10853
10854 * internal-fn.def (SIGNBIT): New.
10855 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
10856 defined.
10857 (signbitv4sf2): Likewise.
10858
10859 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
10860
10861 PR target/90357
10862 * config/mips/mips.c (mips_split_move): Skip forward SRC into
10863 next insn when the SRC reg is dead.
10864
10865 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
10866
10867 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
10868 (alloc_cand_and_find_basis): Ditto.
10869 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
10870 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
10871 (create_add_imm_cand, slsr_process_cast): Ditto.
10872 (slsr_process_copy, replace_mult_candidate): Ditto.
10873 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
10874 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
10875 (pass_strength_reduction::execute): Init the first NULL element.
10876
10877 2019-05-13 Nathan Sidwell <nathan@acm.org>
10878
10879 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
10880 (run_attempt): Reformat line break.
10881
10882 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
10883
10884 PR target/90418
10885 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
10886 data registers in sibcall epilogues.
10887 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
10888
10889 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
10890
10891 PR target/89221
10892 * configure.ac (--enable-frame-pointer):
10893 Disable by default for cygwin and mingw.
10894 * configure: Regenerate.
10895
10896 2019-05-13 Nathan Sidwell <nathan@acm.org>
10897
10898 * dwarf2out.c (breakout_comdat_types): Move comment to correct
10899 piece of code.
10900 (const_ok_for_output_1): Balance parens around #if/#else/#endif
10901 (gen_member_die): Move abstract origin check earlier. Only VARs
10902 can be static_inline_p. Simplify splicing control flow.
10903
10904 2019-05-13 Richard Biener <rguenther@suse.de>
10905
10906 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
10907 VIEW_CONVERT_EXPR.
10908 (vect_build_slp_tree_1): Likewise.
10909
10910 2019-05-13 Richard Biener <rguenther@suse.de>
10911
10912 PR tree-optimization/90402
10913 * tree-if-conv.c (tree_if_conversion): Value number only
10914 the loop body by making the latch an exit of the region
10915 as well.
10916 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
10917 processing PHIs.
10918 (do_rpo_vn): Deal with multiple edges into the entry block
10919 that are not backedges inside the region by skipping PHIs
10920 of the entry block.
10921
10922 2019-05-13 Richard Biener <rguenther@suse.de>
10923
10924 PR tree-optimization/90316
10925 * tree-ssa-pre.c (insert_aux): Fold into ...
10926 (insert): ... this function. Use a RPO walk to reduce the
10927 number of required iterations.
10928
10929 2019-05-13 Martin Liska <mliska@suse.cz>
10930
10931 PR tree-optimization/90416
10932 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
10933 string instead of passing the second part as va_arg argument.
10934
10935 2019-05-13 Martin Liska <mliska@suse.cz>
10936
10937 PR gcov-profile/90380
10938 * gcov.c (handle_cycle): Do not support zero cycle count,
10939 it should not be possible.
10940 (path_contains_zero_cycle_arc): New function.
10941 (circuit): Ignore zero cycle arc counts.
10942
10943 2019-05-13 Martin Liska <mliska@suse.cz>
10944
10945 PR gcov-profile/90380
10946 * gcov.c (enum loop_type): Remove the enum and
10947 the operator.
10948 (handle_cycle): Assert that we should not reach
10949 a negative count.
10950 (circuit): Use loop_found instead of a tri-state loop_type.
10951 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
10952 happen.
10953
10954 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
10955
10956 PR target/82920
10957 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
10958 (ix86_output_indirect_branch_via_reg): Use output mechanism
10959 accounting for __USER_LABEL_PREFIX__.
10960 (ix86_output_indirect_branch_via_push): Likewise.
10961 (ix86_output_function_return): Likewise.
10962 (ix86_output_indirect_function_return): Likewise.
10963
10964 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
10965
10966 * doc/md.texi: Document use of code attributes in rtx patterns.
10967 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
10968 * read-rtl.c (find_code): Split out search loops into...
10969 (maybe_find_code): ...this new function.
10970 (check_code_iterator): Make the error message more informative.
10971 (check_code_attribute): New function.
10972 (rtx_reader::rtx_alloc_for_name): Likewise.
10973 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
10974 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
10975 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
10976 <max_opp> directly as an rtx code instead of via a match_operator.
10977 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
10978 (<su>abd<mode>_3): Update accordingly.
10979
10980 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
10981
10982 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
10983 is given, print the state of the EH "save world" computation for
10984 Darwin.
10985
10986 2019-05-11 Jakub Jelinek <jakub@redhat.com>
10987
10988 PR c++/59813
10989 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
10990 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
10991
10992 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
10993
10994 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
10995 Use pinsrd for TARGET_SSE4_1.
10996 * config/i386/sse.md (movdi_to_sse): Ditto.
10997
10998 2019-05-10 Richard Biener <rguenther@suse.de>
10999
11000 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
11001 (do_rpo_vn): Initialize next_value_id.
11002
11003 2019-05-10 Martin Liska <mliska@suse.cz>
11004
11005 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11006 Fix plural form.
11007
11008 2019-05-10 Jakub Jelinek <jakub@redhat.com>
11009
11010 PR tree-optimization/90385
11011 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
11012 arguments of the exit phis.
11013
11014 PR c++/90383
11015 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
11016 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
11017 id->do_not_fold.
11018 (copy_tree_body_r): Likewise.
11019 (copy_fn): Set id.do_not_fold to true.
11020
11021 2019-05-10 Martin Liska <mliska@suse.cz>
11022
11023 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
11024 Reapply changes from r269790.
11025
11026 2019-05-10 Martin Liska <mliska@suse.cz>
11027
11028 PR middle-end/90340
11029 * doc/invoke.texi: New params.
11030 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
11031 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
11032 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11033 Use it.
11034 * tree-switch-conversion.h (struct jump_table_cluster):
11035 Likewise.
11036
11037 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
11038
11039 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
11040
11041 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
11042
11043 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
11044
11045 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
11046
11047 PR rtl-optimization/88879
11048 * sel-sched.c (sel_target_adjust_priority): Remove assert.
11049
11050 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
11051
11052 PR target/90405
11053 * config/arm/arm.c (callee_saved_reg_p): Move before
11054 thumb_find_work_register.
11055 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
11056 thumb_find_work_register. Only call df_get_live_out once.
11057 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
11058 (thumb_find_work_register): Use
11059 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
11060 algorithms to locate a spare call clobbered reg.
11061
11062 2019-05-09 Martin Liska <mliska@suse.cz>
11063
11064 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
11065 and MAX_EXPR in GIMPLE FE format.
11066
11067 2019-05-09 Martin Liska <mliska@suse.cz>
11068
11069 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
11070 * gimple-pretty-print.c (dump_gimple_bb_header):
11071 Dump BB count.
11072 (pp_cfg_jump): Dump edge probability.
11073 * profile-count.c (profile_quality_as_string): Simplify
11074 with a static array.
11075 (parse_profile_quality): New function.
11076 (profile_count::dump): Simplify with a static array.
11077 (profile_count::from_gcov_type): Add new argument.
11078 * profile-count.h (parse_profile_quality): Likewise.
11079 * predict.h (set_hot_bb_threshold): New.
11080 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11081 New param.
11082 * predict.c (get_hot_bb_threshold): Set from the new param.
11083 (set_hot_bb_threshold): New.
11084
11085 2019-05-09 Richard Biener <rguenther@suse.de>
11086
11087 PR tree-optimization/90395
11088 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
11089 rewrite vector stores that throw internally.
11090
11091 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
11092
11093 * cif-code.def (CHKP): Remove.
11094
11095 PR target/89221
11096 * configure.ac (--enable-frame-pointer): Disable by default for
11097 GNU systems.
11098 * configure: Regenerate.
11099
11100 2019-05-09 Alan Modra <amodra@gmail.com>
11101
11102 PR target/89271
11103 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
11104 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
11105 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
11106 cost for general <-> vsx when direct moves are available.
11107 Cost union classes at minimal cost for any reg in the class.
11108 Correct calculation for moves between vsx, float, and altivec.
11109 Don't return a low cost for moves between special regs. Don't
11110 use hard coded register numbers.
11111 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
11112 (rs6000_ira_change_pseudo_allocno_class): New function.
11113 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
11114 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
11115 alternatives.
11116 (movsi_internal1): Don't disparage vector alternatives.
11117 (mov<mode>_internal): Likewise, excepting alternative that
11118 will be split.
11119 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
11120 we <- b alternative.
11121
11122 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11123
11124 PR c++/59813
11125 PR tree-optimization/89060
11126 * tree-ssa-live.h (live_vars_map): New typedef.
11127 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
11128 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
11129 (struct compute_live_vars_data): New type.
11130 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
11131 live_vars_at_stmt, destroy_live_vars): New functions.
11132 * tree-tailcall.c: Include tree-ssa-live.h.
11133 (live_vars, live_vars_vec): New global variables.
11134 (find_tail_calls): Perform variable life analysis before punting.
11135 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
11136 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
11137 member.
11138 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
11139 Perform variable life analysis to select variables that really need
11140 clobbers added.
11141 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
11142 instead set id->eh_landing_pad_dest and assert it is the same.
11143 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
11144
11145 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
11146 Richard Earnshaw <rearnsha@arm.com>
11147
11148 PR target/88167
11149 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
11150 function.
11151 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
11152 (thumb1_compute_save_core_reg_mask): Don't force a spare work
11153 register if both the epilogue and prologue can use call-clobbered
11154 regs.
11155 (thumb1_unexpanded_epilogue): Use
11156 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
11157 picking temporaries for restoring high regs to match that of the
11158 prologue where possible.
11159 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
11160 the list of work registers. Detect if the return address is still live
11161 at the end of the prologue and avoid using it for a work register if so.
11162 If the return address is not live, add LR to the list of pushable regs
11163 after the first pass.
11164
11165 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11166
11167 PR tree-optimization/90078
11168 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
11169 (INFTY): Increase the value for infinite cost.
11170 (struct comp_cost): Promote type of members to int64_t.
11171 (infinite_cost): Don't set complexity in initialization.
11172 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
11173 overflows to infinite_cost.
11174 (adjust_setup_cost): Promote type of parameter and cost computation
11175 to int64_t.
11176 (struct ainc_cost_data, struct iv_ca): Promote type of member to
11177 int64_t.
11178 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
11179 cost computation to int64_t.
11180 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
11181 int64_t's format specifier in dump.
11182
11183 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11184
11185 PR tree-optimization/90240
11186 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
11187 with respect to scaling factor pre-computed for each basic block.
11188 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
11189 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
11190 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
11191 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
11192 live range for array of loop's basic blocks. Cleanup aux field of
11193 loop's basic blocks.
11194
11195 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11196
11197 PR tree-optimization/90356
11198 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
11199
11200 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
11201
11202 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
11203 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
11204 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
11205 (ix86_handle_option): Handle -mavx512bf16.
11206 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
11207 to extra_headers.
11208 * config/i386/avx512bf16vlintrin.h: New.
11209 * config/i386/avx512bf16intrin.h: New.
11210 * config/i386/cpuid.h (bit_AVX512BF16): New.
11211 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
11212 * config/i386/i386-builtin-types.def: Add new types.
11213 * config/i386/i386-builtin.def: Add new builtins.
11214 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11215 __AVX512BF16__.
11216 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
11217 (ix86_option_override_internal): Handle BF16.
11218 (ix86_valid_target_attribute_inner_p): Ditto.
11219 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
11220 * config/i386/i386-builtin.c (enum processor_features): Add
11221 F_AVX512BF16.
11222 (static const _isa_names_table isa_names_table): Ditto.
11223 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
11224 (PTA_AVX512BF16): Ditto.
11225 * config/i386/i386.opt: Add -mavx512bf16.
11226 * config/i386/immintrin.h: Include avx512bf16intrin.h
11227 and avx512bf16vlintrin.h.
11228 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
11229 avx512f_cvtneps2bf16_<mode><mask_name>,
11230 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
11231 * config/i386/subst.md (mask_half): Add new subst.
11232 * doc/invoke.texi: Document -mavx512bf16.
11233
11234 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11235
11236 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
11237 Delete declaration.
11238 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
11239 (rs6000_debug_legitimize_reload_address): Delete.
11240 (rs6000_legitimize_reload_address_ptr): Delete.
11241 (rs6000_option_override_internal): Adjust.
11242 (mem_operand_gpr): Adjust comment.
11243 (legitimate_lo_sum_address_p): Ditto.
11244 (rs6000_legitimize_reload_address): Delete.
11245 (rs6000_debug_legitimize_reload_address): Delete.
11246 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
11247
11248 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
11249
11250 PR target/89765
11251 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11252 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
11253 to compute vector element selector for both constant and variable
11254 operands.
11255
11256 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11257
11258 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
11259 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
11260 ashrdi3_cvt using SWI48 mode iterator.
11261
11262 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11263
11264 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
11265 (aarch64_<su>abd<mode>_3): Likewise.
11266 (*aarch64_<su>abd<mode>_3): New define_insn.
11267 (<sur>sad<vsi2qi>): New define_expand.
11268 * config/aarch64/iterators.md: Added MAX_OPP attribute.
11269 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
11270 (build_vect_cond_expr): Likewise.
11271
11272 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11273
11274 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
11275 clobbers outside of accessible_reg_set.
11276 * config/i386/i386.c (ix86_conditional_register_usage):
11277 Disable register sets by clearing corresponding bits in
11278 accessible_reg_set. Do not set corresponding bits in fixed_regs,
11279 call_used_regs and don't clear corresponding reg_names array members.
11280
11281 2019-05-07 Richard Biener <rguenther@suse.de>
11282
11283 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
11284 not specified still compute a comp_vectype for invariant
11285 compares.
11286
11287 2019-05-07 Richard Biener <rguenther@suse.de>
11288
11289 PR tree-optimization/90316
11290 * tree-ssa-pre.c (translate_vuse_through_block): When
11291 same_valid is NULL do not bother to search for a virtual
11292 PHI continuation.
11293 (phi_translate_1): When operands changed we cannot keep
11294 the same value-number so do not bother to ask whether
11295 that's possible from translate_vuse_through_block.
11296
11297 2019-05-07 Martin Liska <mliska@suse.cz>
11298
11299 * bitmap.c (bitmap_register): Come up with
11300 alloc_descriptor_max_uid and assign it for
11301 a new bitmap.
11302 (register_overhead): Use get_descriptor as
11303 a descriptor.
11304 (release_overhead): New.
11305 (bitmap_elem_to_freelist): Call it.
11306 (bitmap_elt_clear_from): Likewise.
11307 (bitmap_obstack_free): Likewise.
11308 (bitmap_move): Sensitively release memory.
11309 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
11310 (bitmap_initialize): Initialize alloc_descriptor to zero.
11311 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
11312
11313 2019-05-07 Richard Biener <rguenther@suse.de>
11314
11315 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
11316 we build a SLP node. Remove max_size and limiting.
11317 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
11318
11319 2019-05-07 Richard Biener <rguenther@suse.de>
11320
11321 PR tree-optimization/90316
11322 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
11323 limit by reference.
11324 (walk_non_aliased_vuses): Take walking limit argument.
11325 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
11326 walking if it is reached instead of just counting.
11327 (get_continuation_for_phi): Likewise.
11328 (walk_non_aliased_vuses): Likewise, instead of leaving counter
11329 limiting to the callback.
11330 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
11331 (vn_reference_lookup_3): Likewise.
11332 (vn_reference_lookup_pieces): Likewise.
11333 (vn_reference_lookup): Likewise.
11334 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
11335 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
11336 (avail_exprs_stack::lookup_avail_expr): Likewise.
11337
11338 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
11339
11340 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
11341 for comparaible types in the second direction even if first one
11342 hits incomparable type.
11343
11344 2019-05-07 Richard Biener <rguenther@suse.de>
11345
11346 PR lto/90369
11347 * lto-wrapper.c (debug_objcopy): Use the original filename
11348 including archive offset for the filename used for -save-temps.
11349
11350 2019-05-07 Li Jia He <helijia@linux.ibm.com>
11351
11352 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
11353 detection.
11354
11355 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
11356 Hongtao Liu <hongtao.liu@intel.com>
11357
11358 PR target/89750
11359 PR target/86444
11360 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
11361 Modified, original implementation isn't correct.
11362
11363 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11364
11365 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
11366 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
11367 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
11368 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
11369 (FRAME_POINTER_REGNUM): Change numbering.
11370 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
11371 (alt_reg_names): Adjust.
11372 (rs6000_conditional_register_usage): Don't mark hard register 64 as
11373 fixed.
11374 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11375 (DWARF_FRAME_REGISTERS): Delete.
11376 (DWARF2_FRAME_REG_OUT): Fix whitespace.
11377 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11378 Adjust.
11379 (REG_ALLOC_ORDER): Adjust.
11380 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
11381 (REG_CLASS_CONTENTS): Adjust.
11382 (RETURN_ADDR_RTX): Change comment.
11383 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
11384 instead of 67.
11385 (REGISTER_NAMES): Adjust.
11386 (ADDITIONAL_REGISTER_NAMES): Adjust.
11387 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11388
11389 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11390
11391 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
11392 Delete.
11393 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11394 (DWARF_FRAME_REGISTERS): Adjust.
11395 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11396 Adjust.
11397 (REG_ALLOC_ORDER): Adjust.
11398 (enum reg_class): Delete SPR_REGS.
11399 (REG_CLASS_NAMES): Delete SPR_REGS.
11400 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
11401 (REGISTER_NAMES): Adjust.
11402 (ADDITIONAL_REGISTER_NAMES): Adjust.
11403 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11404 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
11405 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
11406 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
11407 (htm_spr_regno): Delete.
11408 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
11409 argument.
11410 (rs6000_dbx_register_number): Adjust.
11411
11412 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11413
11414 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
11415
11416 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11417
11418 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
11419 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
11420
11421 2019-05-06 Jakub Jelinek <jakub@redhat.com>
11422
11423 PR tree-optimization/88709
11424 PR tree-optimization/90271
11425 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
11426 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
11427 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
11428 variable.
11429 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
11430 of the store merging group is larger than
11431 PARAM_STORE_MERGING_MAX_SIZE parameter.
11432 (split_group): Add bzero_first argument. If set, always emit first
11433 the first store which must be = {} of the whole area and then for the
11434 rest of the stores consider all zero bytes as paddings.
11435 (imm_store_chain_info::output_merged_store): Check if first store
11436 is = {} of the whole area and if yes, determine which setting of
11437 bzero_first for split_group gives smaller number of stores. Adjust
11438 split_group callers.
11439 (lhs_valid_for_store_merging_p): Allow decls.
11440 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
11441 no elts.
11442 (pass_store_merging::process_store): Likewise.
11443
11444 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
11445
11446 PR target/89424
11447 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11448 handling of V1TImode.
11449
11450 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
11451
11452 PR target/89221
11453 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
11454 and enable_frame_pointer ...
11455 * configure.ac: ... here. Update help strings for
11456 --enable-frame-pointer.
11457 * configure: Regenerate.
11458 * config/i386/i386-options.c (ix86_option_override_internal): Remove
11459 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
11460 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
11461 (USE_X86_64_FRAME_POINTER): Ditto.
11462
11463 2019-05-06 Martin Liska <mliska@suse.cz>
11464
11465 * config.gcc: Append to target_gtfiles and fix indentation.
11466
11467 2019-05-06 Richard Biener <rguenther@suse.de>
11468
11469 PR tree-optimization/90358
11470 * tree-vect-stmts.c (get_group_load_store_type): Properly
11471 detect unused upper half of load.
11472 (vectorizable_load): Likewise.
11473
11474 2019-05-06 Richard Biener <rguenther@suse.de>
11475
11476 PR tree-optimization/88828
11477 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
11478 (simplify_vector_constructor): ...here. Handle constants in
11479 the constructor.
11480
11481 2019-05-06 Richard Biener <rguenther@suse.de>
11482
11483 PR tree-optimization/90328
11484 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
11485 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
11486 is valid in the loop nest before using it.
11487 (initialize_data_dependence_relation): Adjust.
11488 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
11489 loop as loop-nest to dr_may_alias_p.
11490
11491 2019-05-06 Richard Biener <rguenther@suse.de>
11492
11493 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
11494
11495 2019-05-06 Richard Biener <rguenther@suse.de>
11496
11497 PR tree-optimization/90316
11498 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
11499 compute target on demand.
11500 (get_continuation_for_phi): Remove code walking stmts to
11501 get to a target virtual operand which could end up being
11502 quadratic.
11503
11504 2019-05-06 Martin Liska <mliska@suse.cz>
11505
11506 PR sanitizer/90312
11507 * config/i386/i386-options.c (ix86_option_override_internal): Error only
11508 when -mabi is selected to a non-default version.
11509
11510 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
11511 Martin Liska <mliska@suse.cz>
11512
11513 * Makefile.in: Add lto-dump.texi.
11514 * cgraph.h: Add new functions get_visibility_string and
11515 get_symtab_type_string.
11516 * doc/gcc.texi: Include lto-dump section.
11517 * doc/lto-dump.texi: New file.
11518 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
11519 (parse_dump_option): Factor out this function.
11520 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
11521 (parse_dump_option): Export the function.
11522 * symtab.c (symtab_node::get_visibility_string): New function.
11523 (symtab_node::get_symtab_type_string): Likewise.
11524
11525 2019-05-06 Martin Liska <mliska@suse.cz>
11526
11527 * config/i386/i386-builtins.c: New file.
11528 * config/i386/i386-builtins.h: New file.
11529 * config/i386/i386-expand.c: New file.
11530 * config/i386/i386-expand.h: New file.
11531 * config/i386/i386-features.c: New file.
11532 * config/i386/i386-features.h: New file.
11533 * config/i386/i386-options.c: New file.
11534 * config/i386/i386-options.h: New file.
11535 * config.gcc: Add new files into extra_objs and
11536 target_gtfiles.
11537 * config/i386/i386.c: Split content of the file
11538 into newly introduced files.
11539 * config/i386/i386.h: Declare common variables
11540 and macros.
11541 * config/i386/t-i386: Define dependencies for new files.
11542
11543 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
11544
11545 PR target/89400
11546 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
11547 Restrict 'all' variant to 32-bit configurations.
11548 (unaligned_loadhiu): Likewise.
11549 (unaligned_storehi): Likewise.
11550 (unaligned_storesi): Likewise.
11551 (unaligned_loadhis): Disable when compiling for thumb1.
11552
11553 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
11554
11555 PR tree-optimization/90269
11556 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11557 Ignore clobbers.
11558
11559 2019-05-03 Martin Liska <mliska@suse.cz>
11560
11561 * hash-map.h: Add is_empty function.
11562 * hash-set.h: Likewise.
11563 * hash-table.h: Likewise.
11564 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
11565 elements () == 0 (and similar usages).
11566 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
11567 * gimplify.c (gimplify_bind_expr): Likewise.
11568 (gimplify_switch_expr): Likewise.
11569 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
11570 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
11571 * postreload-gcse.c (dump_hash_table): Likewise.
11572 (gcse_after_reload_main): Likewise.
11573 * predict.c (combine_predictions_for_bb): Likewise.
11574 * tree-parloops.c (reduction_phi): Likewise.
11575 (separate_decls_in_region): Likewise.
11576 (transform_to_exit_first_loop): Likewise.
11577 (gen_parallel_loop): Likewise.
11578 (gather_scalar_reductions): Likewise.
11579 (try_create_reduction_list): Likewise.
11580 * var-tracking.c (dump_vars): Likewise.
11581 (emit_notes_for_changes): Likewise.
11582 (vt_emit_notes): Likewise.
11583
11584 2019-05-03 Richard Biener <rguenther@suse.de>
11585
11586 PR tree-optimization/90316
11587 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
11588 before running VN.
11589
11590 2019-05-03 Richard Biener <rguenther@suse.de>
11591
11592 * tree-vect-stmts.c (get_group_load_store_type): Avoid
11593 peeling for gaps by loading only lower halves of vectors
11594 if possible.
11595 (vectorizable_load): Likewise.
11596
11597 2019-05-03 Richard Biener <rguenther@suse.de>
11598
11599 PR middle-end/89518
11600 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
11601
11602 2019-05-03 Richard Biener <rguenther@suse.de>
11603
11604 PR middle-end/87314
11605 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
11606 Handle STRING_CST vs DECL or STRING_CST.
11607
11608 2019-05-03 Richard Biener <rguenther@suse.de>
11609
11610 PR tree-optimization/88963
11611 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
11612 vector loads feeding only BIT_FIELD_REFs to component
11613 loads. Rewrite stores fed by CONSTRUCTORs to component
11614 stores.
11615
11616 2019-05-03 Jakub Jelinek <jakub@redhat.com>
11617
11618 * opts.h (finish_options): Remove lang_mask argument.
11619 (print_help, help_option_argument): Declare.
11620 * opts.c (print_help): Remove forward declaration, no longer static.
11621 (finish_options): Remove lang_mask argument, don't call print_help
11622 here.
11623 * opts-global.c (decode_options): Adjust finish_option caller, call
11624 print_help here.
11625
11626 PR tree-optimization/90303
11627 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
11628 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
11629
11630 2019-05-03 Richard Biener <rguenther@suse.de>
11631
11632 PR tree-optimization/89698
11633 * gimple-fold.c (canonicalize_constructor_val): Early out
11634 for constants, handle unfolded INTEGER_CSTs as they appear in
11635 C++ virtual table ctors.
11636
11637 2019-05-03 Richard Biener <rguenther@suse.de>
11638
11639 * passes.c (execute_function_todo): Remove dead code.
11640
11641 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11642
11643 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
11644 the internal register number, for any "real" register.
11645
11646 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11647
11648 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
11649 correct numbers for TFHAR, TFIAR, TEXASR.
11650
11651 2019-05-02 Richard Biener <rguenther@suse.de>
11652
11653 PR tree-optimization/89653
11654 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
11655 update-address-taken before the pass.
11656 * passes.def (pass_tree_loop_init): Put comment before it.
11657
11658 2019-05-02 Richard Biener <rguenther@suse.de>
11659
11660 PR tree-optimization/89509
11661 * tree-ssa-structalias.c (compute_dependence_clique): Look
11662 at the first subvar when determining whether it is restrict.
11663
11664 2019-05-02 Richard Biener <rguenther@suse.de>
11665
11666 PR tree-optimization/90273
11667 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
11668 useless debug stmts.
11669
11670 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11671
11672 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
11673 ACLE branch.
11674 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
11675 SVE ACLE branch.
11676 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
11677 VEC_COND_EXPR be inserted to emulate a conditional internal function.
11678 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
11679 (vectorizable_reduction): Use the functions above to vectorize in a
11680 fully masked loop codes that don't have a conditional internal
11681 function.
11682
11683 2019-05-02 Martin Liska <mliska@suse.cz>
11684
11685 * cgraphclones.c: Call valid_attribute_p with 1 for
11686 target_clone.
11687 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
11688 it's for target attribute.
11689 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
11690 Add new boolean argument.
11691 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11692 Likewise.
11693 (ix86_valid_target_attribute_tree): Pass target_clone_attr
11694 to ix86_valid_target_attribute_inner_p.
11695 (ix86_valid_target_attribute_p): Pass flags argument to
11696 ix86_valid_target_attribute_inner_p.
11697 (get_builtin_code_for_version): Use 0 as it's target attribute.
11698
11699 2019-05-02 Martin Liska <mliska@suse.cz>
11700
11701 * gcc.c (process_command): Add dummy file only
11702 if n_infiles == 0.
11703 * opts-global.c (decode_options): Pass lang_mask.
11704 * opts.c (print_help): New function.
11705 (finish_options): Print --help if help_option_argument
11706 is set.
11707 (common_handle_option): Factor out content of OPT__help_
11708 into print_help.
11709 * opts.h (finish_options): Add new argument.
11710
11711 2019-05-02 Martin Liska <mliska@suse.cz>
11712
11713 PR target/88809
11714 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
11715 With -minline-all-stringops use inline expansion using 4B loop.
11716 * doc/invoke.texi: Document the change of
11717 -minline-all-stringops.
11718
11719 2019-05-01 Jeff Law <law@redhat.com>
11720
11721 PR tree-optimization/88797
11722 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
11723 PHI feeds a conditional on the RHS of an assignment.
11724
11725 2019-04-30 Andrew Waterman <andrew@sifive.com>
11726 Jim Wilson <jimw@sifive.com>
11727
11728 * config/riscv/constraints.md (L): New.
11729 * config/riscv/predicates.md (lui_operand): New.
11730 (sfb_alu_operand): New.
11731 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
11732 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
11733 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
11734 * config/riscv/risc.md (type): Add sfb_alu.
11735 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
11736 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
11737 (branch_zero<mode>): Delete.
11738 (mov<mode>cc): New.
11739 (mov<GPR:mode><X:mode>cc): Likewise.
11740 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
11741
11742 2019-04-30 Nathan Sidwell <nathan@acm.org>
11743
11744 * tree.h (MARK_TS_EXP): New.
11745
11746 2019-04-30 Martin Liska <mliska@suse.cz>
11747
11748 * opts.c (enable_warning_as_error): Provide hints
11749 for unknown options.
11750
11751 2019-04-30 Martin Liska <mliska@suse.cz>
11752
11753 PR debug/90288
11754 * doc/invoke.texi: Add missing dash for gas-locview-support
11755 and gno-as-locview-support.
11756
11757 2019-04-30 Jakub Jelinek <jakub@redhat.com>
11758
11759 PR target/89093
11760 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
11761 whitespace at the start of target attribute string.
11762
11763 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11764
11765 PR target/86538
11766 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
11767 Define __ARM_FEATURE_ATOMICS.
11768
11769 2019-04-30 Martin Liska <mliska@suse.cz>
11770
11771 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
11772 into built_in_function enum. Remove code for endp == 2 and
11773 use BUILT_IN_* constants.
11774 (gimple_fold_builtin): Call the function with fcode.
11775
11776 2019-04-30 Martin Liska <mliska@suse.cz>
11777
11778 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
11779 DECL_FUNCTION_CODE into ix86_builtins enum before
11780 the switch statement.
11781
11782 2019-04-30 Jakub Jelinek <jakub@redhat.com>
11783
11784 PR tree-optimization/89475
11785 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
11786 calls.
11787
11788 2019-04-30 Martin Liska <mliska@suse.cz>
11789
11790 PR translation/90274
11791 * opts.c (print_filtered_help): Wrap string in _(...).
11792
11793 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
11794
11795 PR tree-optimization/90240
11796 Revert:
11797 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
11798
11799 PR tree-optimization/90078
11800 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
11801 checks for infinite_cost overflow.
11802
11803 2019-04-29 Jeff Law <law@redhat.com>
11804
11805 * passes.def: Move -Wrestrict pass after copy propagation.
11806
11807 2019-04-29 Maya Rashish <coypu@sdf.org>
11808
11809 * config.gcc (default_gnu_indirect_function): Default to yes
11810 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
11811 sparc*-*-netbsd*, x86_64-*-netbsd*.
11812
11813 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
11814
11815 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
11816 where cond2 is NE_EXPR.
11817 (is_value_included_in): Update comment.
11818
11819 2019-04-29 Richard Biener <rguenther@suse.de>
11820
11821 PR tree-optimization/90278
11822 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
11823 EH on comparison simplification.
11824
11825 2019-04-29 Jason Merrill <jason@redhat.com>
11826
11827 PR c++/82081 - tail call optimization breaks noexcept
11828 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
11829 nothrow function to a might-throw function into a tail call.
11830
11831 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
11832
11833 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
11834 (DDR_INNER_LOOP): Likewise.
11835 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
11836 (initialize_data_dependence_relation): Likewise.
11837 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
11838
11839 2019-04-29 Jakub Jelinek <jakub@redhat.com>
11840
11841 PR rtl-optimization/90257
11842 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
11843 return value.
11844
11845 Revert the revert:
11846 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
11847
11848 PR target/90178
11849 Revert:
11850 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
11851
11852 Revert the revert:
11853 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11854
11855 Revert:
11856 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11857
11858 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11859
11860 2019-04-29 Richard Biener <rguenther@suse.de>
11861
11862 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
11863 rhs issue a reset.
11864
11865 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
11866
11867 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
11868 varasm.h, and netbsd-protos.h.
11869
11870 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
11871
11872 PR target/89261
11873 * config/i386/i386-protos.h (ix86_data_alignment): Change
11874 the second argument type to unsigned int.
11875 * config/i386/i386.c (ix86_data_alignment): Change "align"
11876 argument type to unsigned int.
11877
11878 2019-04-27 Martin Liska <mliska@suse.cz>
11879
11880 PR middle-end/90258
11881 * opt-suggestions.c (option_proposer::build_option_suggestions):
11882 When get_valid_option_values returns empty values, add the
11883 misspelling candidate.
11884
11885 2019-04-26 Jim Wilson <jimw@sifive.com>
11886
11887 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
11888 parameter.
11889 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
11890 Pass orig_mode to riscv_build_integer.
11891 (riscv_split_integer): Pass mode to riscv_move_integer.
11892 (riscv_legitimize_const_move): Likewise.
11893 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
11894 promoted_mode. Replace force_reg call with code to load constant into
11895 promoted reg and then subreg it for the store.
11896 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
11897 riscv_move_integer.
11898
11899 2018-04-26 Eugene Sharygin <eush@ispras.ru>
11900
11901 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
11902 corrupt codes.
11903
11904 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
11905
11906 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
11907 commentary about the encoding of precision.
11908
11909 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
11910
11911 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
11912 * config/i386/t-freebsd64: New file.
11913 * config.gcc: Add the t-freebsd64 for multilib support.
11914
11915 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
11916
11917 * doc/extend.texi (vector_size): Add missing comma after @xref.
11918
11919 2019-04-25 Jakub Jelinek <jakub@redhat.com>
11920
11921 * BASE-VER: Set to 10.0.0.
11922
11923 2019-04-25 Richard Biener <rguenther@suse.de>
11924
11925 PR middle-end/89765
11926 * gimplify.c (gimplify_expr): Avoid turning a lvalue
11927 VIEW_CONVERT_EXPR into one operating on an rvalue.
11928
11929 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
11930
11931 PR target/89929
11932 * config/i386/i386.c (feature_priority): Moved to file scope.
11933 (processor_features): Likewise.
11934 (processor_model): Likewise.
11935 (_arch_names_table): Likewise.
11936 (arch_names_table): Likewise.
11937 (_feature_list): Removed.
11938 (feature_list): Likewise.
11939 (_isa_names_table): Moved to file scope. Add priority.
11940 (isa_names_table): Likewise.
11941 (get_builtin_code_for_version): Replace feature_list with
11942 isa_names_table. Update error message for P_ZERO priority.
11943
11944 2019-04-25 Richard Biener <rguenther@suse.de>
11945
11946 * tree-pass.h (make_pass_phi_only_cprop): Remove.
11947 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
11948
11949 2019-04-24 Jeff Law <law@redhat.com>
11950
11951 PR tree-optimization/90037
11952 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
11953 * passes.def: Replace all instance of phi-only cprop with the
11954 lattice propagator. Move propagation pass from after erroneous
11955 path isolation to before erroneous path isolation.
11956 * tree-ssa-phionlycprop.c: Remove.
11957
11958 2019-04-24 Richard Biener <rguenther@suse.de>
11959
11960 PR middle-end/90213
11961 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
11962 by size and BITS_PER_UNIT on poly-wide-ints.
11963
11964 2019-04-25 Richard Biener <rguenther@suse.de>
11965
11966 PR middle-end/90194
11967 * match.pd: Add pattern to simplify view-conversion of an
11968 empty constructor.
11969
11970 2019-04-24 Clement Chigot <clement.chigot@atos.net>
11971
11972 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
11973 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
11974 for Go on 32 bit AIX.
11975 * config/rs6000/aix72.h: Likewise.
11976
11977 2019-04-24 Jakub Jelinek <jakub@redhat.com>
11978
11979 PR target/90193
11980 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
11981 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
11982
11983 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
11984
11985 PR target/89952
11986 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
11987 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
11988 for restored hard frame pointer.
11989 (s390_sched_dependencies_evaluation): Implement new target hook.
11990 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
11991
11992 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
11993
11994 * config/arc/arc-options.def: Fix typos and spelling mistakes.
11995 * config/arc/arc.c (arc_init): Cleanup warning message.
11996 (arc_override_options): Likewise.
11997
11998 2019-04-24 Jakub Jelinek <jakub@redhat.com>
11999
12000 PR target/90187
12001 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
12002 a register if both if_true and if_false are MEMs.
12003
12004 PR tree-optimization/90208
12005 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
12006 after labels of new_bb, not before them.
12007
12008 PR tree-optimization/90211
12009 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
12010 which are not SSA_NAMEs.
12011
12012 2018-04-23 Sudakshina Das <sudi.das@arm.com>
12013
12014 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
12015 AArch64.
12016 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
12017
12018 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12019
12020 PR rtl-optimization/87979
12021 * modulo-sched.c (sms_schedule): Start ii value "mii" should
12022 not equal zero.
12023
12024 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12025
12026 PR rtl-optimization/84032
12027 * modulo-sched.c (ps_insn_find_column): Change condition so that
12028 branch will always be the last insn in a row inside partial
12029 schedule.
12030
12031 2019-04-23 Richard Biener <rguenther@suse.de>
12032
12033 PR debug/90131
12034 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
12035 dest_single_pred_p argument.
12036 (remove_forwarder_block): Adjust.
12037 (remove_forwarder_block_with_phi): Likewise.
12038
12039 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12040 Bernd Edlinger <bernd.edlinger@hotmail.de>
12041 Jakub Jelinek <jakub@redhat.com>
12042
12043 PR target/89093
12044 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
12045 if used with general-regs-only.
12046 (arm_conditional_register_usage): Don't add non-general regs if
12047 general-regs-only.
12048 (arm_valid_target_attribute_rec): Handle general-regs-only.
12049 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
12050 general-regs-only.
12051 (TARGET_HARD_FLOAT_SUB): Define.
12052 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
12053 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
12054 (TARGET_REALLY_IWMMXT2): Likewise.
12055 * config/arm/arm.opt: Add -mgeneral-regs-only.
12056 * doc/extend.texi: Document ARM general-regs-only target.
12057 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
12058
12059 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12060
12061 PR tree-optimization/90078
12062 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12063 checks for infinite_cost overflow.
12064
12065 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12066
12067 PR tree-optimization/90021
12068 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
12069 and check univariate against it.
12070 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
12071 * tree-data-ref.c (add_other_self_distances): Pass new argument.
12072
12073 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12074
12075 PR target/90178
12076 Revert:
12077 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12078
12079 Revert the revert:
12080 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12081
12082 Revert:
12083 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12084
12085 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12086
12087 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
12088
12089 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
12090 names using operand format, rather than hard-wired.
12091 (speculation_barrier): Likewise.
12092
12093 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
12094
12095 PR tree-optimization/88055
12096 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
12097 (gen_one_condition): Use it if !HONOR_NANS.
12098
12099 2019-04-19 Jakub Jelinek <jakub@redhat.com>
12100
12101 PR middle-end/90139
12102 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
12103 assign_temp instead of gen_reg_rtx.
12104
12105 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
12106
12107 PR translation/90118
12108 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12109 Add missing space before %<.
12110
12111 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
12112
12113 PR rtl-optimization/87871
12114 * ira-lives.c (make_object_dead): Don't add conflicts to
12115 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
12116
12117 2019-04-18 Martin Sebor <msebor@redhat.com>
12118
12119 PR middle-end/89797
12120 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
12121 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
12122 assuming type size fits in SHWI.
12123
12124 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
12125
12126 PR ipa/85051
12127 * ipa-inline.c (flatten_function): New parameter UPDATE.
12128 (ipa_inline, early_inliner): Use it.
12129
12130 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12131
12132 * fold-const.c (int_const_binop): Return early on failure.
12133
12134 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12135
12136 PR middle-end/85164
12137 * combine.c (force_int_to_mode): Cast the argument rather than
12138 the result of known_alignment.
12139 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
12140
12141 2019-04-18 Richard Biener <rguenther@suse.de>
12142
12143 PR debug/90131
12144 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
12145 out from ...
12146 (remove_forwarder_block): ... here.
12147 (remove_forwarder_block_with_phi): Also move debug stmts here.
12148
12149 2019-04-18 Jakub Jelinek <jakub@redhat.com>
12150
12151 PR translation/79183
12152 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
12153 inform where appropriate.
12154
12155 2019-04-18 Richard Biener <rguenther@suse.de>
12156
12157 * tree.c (get_qualified_type): Put found type variants at the
12158 head of the variant list.
12159
12160 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12161
12162 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
12163
12164 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
12165
12166 PR target/90125
12167 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
12168 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
12169 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
12170 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
12171 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
12172
12173 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
12174
12175 * ira-conflicts.c (print_allocno_conflicts): Always print something,
12176 even for allocno's with no conflicts.
12177 (print_conflicts): Print an extra newline.
12178
12179 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12180
12181 * auto-inc-dec.c (attempt_change): Set the alignment of the
12182 temporary memory to that of the original.
12183
12184 2019-04-17 Joao Moreira <jmoreira@suse.de>
12185
12186 * targhooks.c (default_print_patchable_function_entry): Emit
12187 __patchable_function_entries section with writable flags to allow
12188 relocation resolution.
12189
12190 2019-04-17 Jonny Grant <jg@jguk.org>
12191
12192 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
12193
12194 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12195
12196 PR middle-end/90095
12197 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
12198 on lowpart SUBREGs.
12199
12200 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
12201
12202 * config/arc/arc.c (arc_init): Format diagnostic string.
12203 (arc_override_options): Likewise.
12204 (check_if_valid_regno_const): Likewise.
12205 (arc_reorg): Likewise.
12206
12207 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12208
12209 PR target/17108
12210 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
12211 name.
12212 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
12213 name.
12214 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
12215 (*movdi_update1): Use Pmode.
12216 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
12217 (movdi_<mode>_update_stack): Rename to ...
12218 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
12219 use Pmode.
12220 (*movsi_update1): Use Pmode.
12221 (*movsi_update2): Use Pmode.
12222 (movsi_update): Rename to ...
12223 (movsi_<mode>_update): ... this. Use Pmode.
12224 (movsi_update_stack): Fix condition.
12225 (*movhi_update1): Use Pmode. Fix argument to
12226 avoiding_indexed_address_p.
12227 (*movhi_update2): Ditto.
12228 (*movhi_update3): Ditto.
12229 (*movhi_update4): Ditto.
12230 (*movqi_update1): Ditto.
12231 (*movqi_update2): Ditto.
12232 (*movqi_update3): Ditto.
12233 (*movsf_update1, *movdf_update1): Merge, rename to...
12234 (*mov<mode>_update1): This. Use Pmode. Fix argument to
12235 avoiding_indexed_address_p. Add "size" attribute.
12236 (*movsf_update2, *movdf_update2): Merge, rename to...
12237 (*mov<mode>_update2): This. Ditto.
12238 (*movsf_update3): Use Pmode. Fix argument to
12239 avoiding_indexed_address_p.
12240 (*movsf_update4): Ditto.
12241 (allocate_stack): Simplify condition. Adjust pattern names.
12242
12243 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12244
12245 PR target/89093
12246 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
12247 whitespace at the start of target attribute string.
12248
12249 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
12250
12251 PR target/84369
12252 * config/rs6000/power9.md: Add store forwarding bypass.
12253
12254 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
12255
12256 PR debug/89528
12257 * valtrack.c (dead_debug_insert_temp): Reset debug references
12258 to the return value of a call being removed.
12259
12260 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12261
12262 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
12263 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
12264 implement target hook.
12265 (arc_memory_move_cost): New function.
12266 (TARGET_REGISTER_MOVE_COST): Define.
12267 (TARGET_MEMORY_MOVE_COST): Likewise.
12268 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
12269 (MEMORY_MOVE_COST): Likewise.
12270
12271 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12272
12273 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
12274 (sibcall_value_insn): Likewise.
12275 * config/arc/constraints.md (Rs5): Remove.
12276
12277 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12278
12279 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
12280 for last two fake registers.
12281 (arc_conditional_register_usage): Make sure fake frame and arg
12282 pointer regs are in general regs class.
12283 (FRAME_POINTER_MASK): Remove.
12284 (RETURN_ADDR_MASK): Remove.
12285 (arc_must_save_register): Use hard frame regnum.
12286 (frame_restore_reg): Use hard_frame_pointer_rtx.
12287 (arc_save_callee_saves): Likewise.
12288 (arc_restore_callee_saves): Likewise.
12289 (arc_save_callee_enter): Likewise.
12290 (arc_restore_callee_leave): Likewise.
12291 (arc_save_callee_milli): Likewise.
12292 (arc_eh_return_address_location): Likewise.
12293 (arc_check_multi): Use hard frame regnum.
12294 (arc_can_eliminate): Likewise.
12295 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
12296 for register allocator.
12297 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
12298 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
12299 (FRAME_POINTER_REGNUM): Change it to a fake register.
12300 (HARD_FRAME_POINTER_REGNUM): Defined.
12301 (ARG_POINTER_REGNUM): Change it to a new fake register.
12302 (ELIMINABLE_REGS): Update.
12303 (REGISTER_NAMES): Update names.
12304 * config/arc/arc.md (LP_START): Remove.
12305 (LP_END): Likewise.
12306 (shift_si3_loop): Update pattern.
12307
12308 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12309
12310 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
12311 to avoid delay slot scheduling.
12312 (arc_must_save_register): Don't save SP.
12313 * config/arc/arc.md (stack_tie): Remove.
12314 (UNSPEC_ARC_STKTIE): Likewise.
12315
12316 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
12317 Shiva Chen <shiva0217@gmail.com>
12318
12319 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
12320 code gen with large shift amount.
12321
12322 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
12323
12324 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
12325 subreg.
12326
12327 2019-04-16 Jakub Jelinek <jakub@redhat.com>
12328
12329 PR target/90096
12330 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
12331 print -m64/-mx32/-m32 if it is true.
12332 (ix86_debug_options, ix86_function_specific_print): Pass true as
12333 ADD_ABI_P to ix86_target_string.
12334 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
12335 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
12336 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
12337
12338 PR rtl-optimization/90082
12339 * dce.c (can_delete_call): New function.
12340 (deletable_insn_p, mark_insn): Use it.
12341
12342 PR tree-optimization/90090
12343 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
12344 throw internally.
12345 (is_division_by_square): Likewise. Formatting fix.
12346
12347 2019-04-16 Richard Biener <rguenther@suse.de>
12348
12349 PR tree-optimization/56049
12350 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
12351 equality check if alias-set zero will prevail.
12352
12353 2019-04-15 Jeff Law <law@redhat.com>
12354
12355 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
12356 size and alignment as unsigned.
12357
12358 2019-04-15 Richard Biener <rguenther@suse.de>
12359
12360 PR debug/90074
12361 * tree-loop-distribution.c (destroy_loop): Preserve correct
12362 debug info.
12363
12364 2019-04-15 Richard Biener <rguenther@suse.de>
12365
12366 PR tree-optimization/90071
12367 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
12368 abnormal operands from def stmts.
12369
12370 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
12371
12372 PR rtl-optimization/89794
12373 * combine.c (count_auto_inc): New function.
12374 (try_combine): Count how many auto_inc expressions there were in the
12375 original instructions. Ensure we have the same number in the new
12376 instructions. Remove the code that tried to ensure auto_inc side
12377 effects on i1 and i0 are not lost.
12378
12379 2019-04-15 Richard Biener <rguenther@suse.de>
12380
12381 PR ipa/88936
12382 * tree.h (auto_var_p): Declare.
12383 * tree.c (auto_var_p): New function, split out from ...
12384 (auto_var_in_fn_p): ... here.
12385 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
12386 member.
12387 (new_var_info): Initialize it.
12388 (set_uids_in_ptset): Also set the shadow variable uid if required.
12389 (ipa_pta_execute): Postprocess points-to solutions assigning
12390 shadow variable uids for locals that may reach their containing
12391 function recursively.
12392 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
12393 assert but instead check whether the points-to solution is
12394 a singleton.
12395
12396 2019-04-15 Martin Jambor <mjambor@suse.cz>
12397
12398 PR ipa/pr89693
12399 * cgraph.c (clone_of_p): Loop over clone chain for each step in
12400 the thunk chain.
12401
12402 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12403
12404 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
12405
12406 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12407 Kito Cheng <kito.cheng@gmail.com>
12408 Shiva Chen <shiva0217@gmail.com>
12409
12410 * config/nds32/nds32-md-auxiliary.c
12411 (nds32_legitimize_pic_address): Use new PIC pattern.
12412 (nds32_legitimize_tls_address): Use new TLS pattern.
12413 (nds32_output_symrel): New.
12414 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
12415 (nds32_alloc_relax_group_id): Ditto.
12416 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
12417 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
12418 relax_group_id.
12419 (nds32_group_tls_insn): Ditto.
12420 (nds32_group_float_insns): Ditto.
12421 * config/nds32/nds32.md (tls_le): New.
12422 (sym_got): Ditto.
12423
12424 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
12425
12426 * configure: Add nds32 target for dwarf2 debug_line checking.
12427 * configure.ac: Regenerated.
12428
12429 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
12430
12431 PR lto/89358
12432 * ipa-devirt.c (skip_in_fields_list_p): New.
12433 (odr_types_equivalent_p): Use it.
12434
12435 2019-04-13 Jakub Jelinek <jakub@redhat.com>
12436
12437 PR target/89093
12438 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
12439 instead of strncmp when checking for thumb and arm. Formatting fixes.
12440
12441 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
12442
12443 * doc/install.texi: Document --with-target-system-zlib.
12444
12445 2019-04-12 Martin Sebor <msebor@redhat.com>
12446
12447 PR c/88383
12448 PR c/89288
12449 PR c/89798
12450 PR c/89797
12451 * targhooks.c (default_vector_alignment): Avoid assuming
12452 argument fits in SHWI.
12453 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
12454 a shift expression.
12455 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
12456
12457 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12458
12459 PR rtl-optimization/89965
12460 * dce.c: Include rtl-iter.h.
12461 (struct check_argument_load_data): New type.
12462 (check_argument_load): New function.
12463 (find_call_stack_args): Check for loads from stack slots still tracked
12464 in sp_bytes and punt if any is found.
12465
12466 * config/mips/loongson-mmiintrin.h: Fix up #error message.
12467
12468 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
12469
12470 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
12471 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
12472
12473 2019-04-12 Martin Liska <mliska@suse.cz>
12474
12475 PR middle-end/89970
12476 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
12477 in error message.
12478 (separate_attrs): Handle multiple 'default's.
12479 (expand_target_clones): Rework error handling code.
12480
12481 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
12482
12483 PR target/87532
12484 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
12485 mode of vector rather than mode of destination for move instruction.
12486 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
12487 Use QI inner mode with V16QI vector mode.
12488
12489 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12490
12491 PR target/52726
12492 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
12493 "invalid %%t operand" in output_operand_lossage message.
12494
12495 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
12496
12497 * config/s390/predicates.md (permute_pattern_operand): New
12498 predicate.
12499 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
12500 operand for the permute pattern.
12501 ("*vec_perm<mode>"): New insn definition.
12502 ("bswap<mode>"): Generate the permute pattern operand in the
12503 expander and perform the operand reloads for pre arch13 level
12504 already.
12505 ("*bswap<mode>_emu"): Rename to ...
12506 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
12507 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
12508 Add the USE operand for the permute pattern.
12509 ("*vec_set_bswap_vec<mode>"): Likewise.
12510
12511 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12512
12513 PR c/89946
12514 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
12515 and gcc_unreachable if it fails, just call tree_to_uhwi which
12516 verifies that too. Test TREE_CHAIN instead of list_length > 1.
12517 Start warning message with a lower-case letter. Formatting fixes.
12518
12519 PR rtl-optimization/90026
12520 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
12521 successors, look for BARRIERs inside of the whole BB_FOOTER chain
12522 rather than just at the start of it. If e->src BB_FOOTER is not NULL
12523 in cfglayout mode, use emit_barrier_after_bb.
12524
12525 2018-04-11 Steve Ellcey <sellcey@marvell.com>
12526
12527 PR rtl-optimization/87763
12528 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
12529 New Instruction.
12530
12531 2019-04-11 Tom de Vries <tdevries@suse.de>
12532
12533 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
12534 max macro using statement expression.
12535
12536 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
12537
12538 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
12539 * xcoffout.c (xcoff_private_rodata_section_name): Define.
12540 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
12541 read_only_private_data_section using xcoff_private_rodata_section_name.
12542 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
12543
12544 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
12545
12546 PR target/90016
12547 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
12548
12549 2019-04-11 Jakub Jelinek <jakub@redhat.com>
12550
12551 PR rtl-optimization/89965
12552 * dce.c (sp_based_mem_offset): New function.
12553 (find_call_stack_args): Use sp_based_mem_offset.
12554
12555 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
12556
12557 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
12558
12559 2019-04-11 Richard Biener <rguenther@suse.de>
12560
12561 PR tree-optimization/90020
12562 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
12563 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
12564 * tree-ssa-pre.c (compute_avail): Use it to not put
12565 possibly trapping references after a call that might not
12566 return into EXP_GEN.
12567 * gcse.c (compute_hash_table_work): Do not elide
12568 marking a block containing a call if the call might not
12569 return.
12570
12571 2019-04-11 Richard Biener <rguenther@suse.de>
12572
12573 PR tree-optimization/90018
12574 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
12575 Test both SLP and interleaving variants.
12576
12577 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
12578
12579 * config/s390/8561.md: New file.
12580 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12581 Add arch13 cpu model.
12582 * config/s390/s390-opts.h (enum processor_type): Likewise.
12583 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
12584 (s390_get_unit_mask): Likewise.
12585 (s390_is_fpd): Likewise.
12586 (s390_is_fxd): Likewise.
12587 * config/s390/s390.h (s390_tune_attr): Likewise.
12588 * config/s390/s390.md: Include arch13 pipeline description.
12589 * config/s390/s390.opt: Add arch13.
12590
12591 2018-04-10 Steve Ellcey <sellcey@marvell.com>
12592
12593 PR rtl-optimization/87763
12594 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
12595 New prototype.
12596 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
12597 New function.
12598 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
12599 New instruction.
12600 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
12601 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
12602 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
12603 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
12604
12605 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
12606
12607 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
12608 "Although" in -fipa-icf documentation.
12609
12610 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
12611 of using multiple -g options.
12612
12613 2019-04-10 Martin Liska <mliska@suse.cz>
12614
12615 PR gcov-profile/89959
12616 * doc/gcov.texi: Make documentation of -x option
12617 more precise.
12618
12619 2019-04-10 Richard Biener <rguenther@suse.de>
12620
12621 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
12622 member.
12623 (DR_GROUP_SAME_DR_STMT): Remove.
12624 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
12625 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
12626 replace with assert.
12627 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
12628 (vect_record_grouped_load_vectors): Remove unreachable code.
12629
12630 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
12631
12632 PR target/90016
12633 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
12634 obsolete reference to N.
12635
12636 2019-04-10 Jakub Jelinek <jakub@redhat.com>
12637
12638 PR middle-end/90025
12639 * expr.c (store_expr): Set properly size on the MEM passed to
12640 clear_storage.
12641
12642 PR c++/90010
12643 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
12644 with strlen in between hostsz-3 and hostsz-1 inclusive when no
12645 translation is needed, and when translation is needed, only append
12646 ... if the string length is hostsz or more bytes long. Avoid using
12647 strncpy or strcat.
12648
12649 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
12650
12651 PR target/90024
12652 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
12653 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
12654 into three.
12655 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
12656 differences directly.
12657 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
12658
12659 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12660
12661 PR translation/90011
12662 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12663 from diagnostics.
12664 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
12665 diagnostics.
12666 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12667 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
12668 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
12669 trailing space from -gsplit-dwarf diagnostics.
12670
12671 PR tree-optimization/89998
12672 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
12673 instead of integer_type_node if possible, don't add ranges if return
12674 type is not compatible with int.
12675 * gimple-fold.c (gimple_fold_builtin_sprintf,
12676 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
12677 integer_type_node.
12678
12679 2019-04-09 Martin Liska <mliska@suse.cz>
12680
12681 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
12682 * doc/install.texi: Document the new config.
12683
12684 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
12685
12686 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
12687 use gimple_expr_type for load and store calls. Skip over the
12688 condition argument in a conditional internal function.
12689 Protect use of TREE_INT_CST_LOW.
12690
12691 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12692
12693 PR target/90015
12694 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
12695 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
12696 trailing period from it too.
12697
12698 2019-04-08 wu yuan <wuyuan5@huawei.com>
12699
12700 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
12701 * config/aarch64/aarch64.md : Add "tsv110.md"
12702 * config/aarch64/tsv110.md: New file.
12703
12704 2019-04-08 Richard Biener <rguenther@suse.de>
12705
12706 PR tree-optimization/90006
12707 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
12708 calls like lrint.
12709
12710 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
12711
12712 PR target/83033
12713 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
12714 construction.
12715 (fma_root_node): Likewise.
12716 (func_fma_steering): Likewise.
12717
12718 2019-04-08 Jakub Jelinek <jakub@redhat.com>
12719
12720 PR rtl-optimization/89865
12721 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
12722
12723 PR rtl-optimization/89865
12724 * config/i386/i386.md
12725 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
12726 numbers not to clash with the additional operands[4].
12727 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
12728 with extra register copy in the middle.
12729
12730 2019-04-08 Martin Liska <mliska@suse.cz>
12731
12732 PR gcov-profile/89961
12733 * doc/gcov.texi: Document data_file.
12734 * gcov.c (generate_results): Add data_info into JSON output.
12735
12736 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
12737
12738 PR tree-optimization/89725
12739 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
12740 loop's chrec as invariant symbol.
12741 * tree-chrec.h (chrec_contains_symbols): New parameter.
12742 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
12743 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
12744 function of loops not in DDR's loop_nest.
12745 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
12746
12747 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
12748
12749 PR target/89623
12750 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
12751 Mask.
12752
12753 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
12754
12755 PR target/89945
12756 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12757 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
12758
12759 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
12760
12761 * sched-deps.c (sched_macro_fuse_insns): Check return value of
12762 targetm.fixed_condition_code_regs.
12763
12764 2019-04-05 Richard Biener <rguenther@suse.de>
12765
12766 PR debug/89892
12767 PR debug/89905
12768 * tree-cfgcleanup.c (remove_forwarder_block): Always move
12769 debug bind stmts but reset them if they are not valid at the
12770 destination.
12771
12772 2019-04-05 Martin Liska <mliska@suse.cz>
12773
12774 PR translation/89936
12775 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
12776 order to wrap keywords or arguments.
12777 * collect2.c (main): Likewise.
12778 (scan_prog_file): Likewise.
12779 (scan_libraries): Likewise.
12780 * common/config/riscv/riscv-common.c
12781 (riscv_subset_list::parsing_subset_version): Likewise.
12782 (riscv_subset_list::parse_std_ext): Likewise.
12783 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12784 Likewise.
12785 * config/arm/arm.c (arm_option_override): Likewise.
12786 * config/cris/cris.c (cris_print_operand): Likewise.
12787 * config/darwin-c.c (darwin_pragma_options): Likewise.
12788 (darwin_pragma_unused): Likewise.
12789 (darwin_pragma_ms_struct): Likewise.
12790 * config/ft32/ft32.c (ft32_print_operand): Likewise.
12791 * config/i386/i386.c (print_reg): Likewise.
12792 (ix86_print_operand): Likewise.
12793 * config/i386/xm-djgpp.h: Likewise.
12794 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
12795 * config/m32c/m32c.c (m32c_option_override): Likewise.
12796 * config/msp430/msp430.c (msp430_option_override): Likewise.
12797 * config/nds32/nds32.c (nds32_option_override): Likewise.
12798 * config/nvptx/mkoffload.c (main): Likewise.
12799 * config/rx/rx.c (rx_print_operand): Likewise.
12800 (valid_psw_flag): Likewise.
12801 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
12802 (vms_pragma_nomember_alignment): Likewise.
12803 (vms_pragma_extern_model): Likewise.
12804 * lto-wrapper.c (compile_offload_image): Likewise.
12805 * omp-offload.c (oacc_parse_default_dims): Likewise.
12806 * symtab.c (symtab_node::verify_base): Likewise.
12807 * tlink.c (recompile_files): Likewise.
12808 (start_tweaking): Likewise.
12809 * tree-profile.c (parse_profile_filter): Likewise.
12810
12811 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
12812
12813 PR tree-optimization/89956
12814 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
12815 multiple negates of the same value.
12816
12817 2019-04-04 Martin Sebor <msebor@redhat.com>
12818
12819 PR middle-end/89957
12820 PR middle-end/89911
12821 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
12822 have the same precision since the function crashes otherwise.
12823 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
12824 has non-zero arguments.
12825
12826 2019-04-04 Martin Sebor <msebor@redhat.com>
12827
12828 PR middle-end/89934
12829 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
12830 out if the number of arguments is less than expected.
12831
12832 2019-04-04 Jeff Law <law@redhat.com>
12833
12834 PR rtl-optimization/89399
12835 * ree.c (combine_set_extension): Use single_set rather than
12836 digging into PATTERN for items on the candidate list.
12837 (combine_reaching_defs): Likewise.
12838
12839 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
12840
12841 PR rtl-optimization/46590
12842 * loop-invariant.c (find_defs): Move df_remove_problem and
12843 df_process_deferred_rescans to move_invariants.
12844 Move df_live_add_problem and df_live_set_all_dirty calls
12845 to move_invariants.
12846 (move_invariants): Likewise.
12847 (move_loop_invariants): Likewise, making the df_live calls
12848 conditional on -O. Remove the problem again if we added it
12849 locally.
12850
12851 2019-04-03 qing zhao <qing.zhao@oracle.com>
12852
12853 PR tree-optimization/89730
12854 * ipa-inline.c (can_inline_edge_p): Delete the checking for
12855 -flive-patching=inline-only-static.
12856 (can_inline_edge_by_limits_p): Add the checking for
12857 -flive-patching=inline-only-static and grant always_inline
12858 even when -flive-patching=inline-only-static is specified.
12859
12860 2019-04-03 Jeff Law <law@redhat.com>
12861
12862 PR rtl-optimization/81025
12863 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
12864
12865 2019-04-03 Richard Biener <rguenther@suse.de>
12866
12867 PR tree-optimization/84101
12868 * tree-vect-stmts.c: Include explow.h for hard_function_value,
12869 regs.h for hard_regno_nregs.
12870 (cfun_returns): New helper.
12871 (vect_model_store_cost): When vectorizing a store to a decl
12872 we return and the function ABI returns in a multi-reg location
12873 account for the possible spilling that will happen.
12874
12875 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
12876
12877 * config/s390/s390.c (s390_legitimate_address_p): Reject long
12878 displacement addresses for vector mode operands.
12879
12880 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
12881
12882 * config/arc/arc.c (GMASK_LEN): Define.
12883 (arc_restore_callee_saves): Restore first blink when
12884 !optimize_size.
12885
12886 2019-04-03 Sudakshina Das <sudi.das@arm.com>
12887
12888 * doc/extend.texi: Add deprecated comment on sign-return-address
12889 function attribute and add mbranch-protection.
12890 * doc/invoke.texi: Add bti to the options for mbranch-protection.
12891
12892 2019-04-03 Richard Biener <rguenther@suse.de>
12893
12894 PR lto/89896
12895 * lto-wrapper.c (run_gcc): Avoid implicit rules making
12896 the all target phony.
12897
12898 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
12899
12900 PR target/89902
12901 PR target/89903
12902 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
12903 Return false for variable DImode shifts.
12904 (dimode_scalar_chain::compute_convert_gain): Do not handle
12905 register count operand in variable DImode shifts.
12906 (dimode_scalar_chain::make_vector_copies): Remove support to copy
12907 count argument of a variable shift instruction to a vector register.
12908 (dimode_scalar_chain::convert_reg): Remove support to convert
12909 count argument of a variable shift instruction.
12910
12911 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
12912
12913 PR rtl-optimization/84206
12914 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
12915 iterating over loop headers.
12916
12917 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
12918
12919 PR rtl-optimization/85876
12920 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
12921 beyond the original fence.
12922
12923 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
12924
12925 * config.gcc: Mark spu* targets as deprecated/obsolete.
12926
12927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12928
12929 * config/s390/s390-builtin-types.def: New builtin function type
12930 definitions. Remove unused types.
12931 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
12932 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
12933 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
12934 overloaded builtins.
12935 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
12936 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
12937 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
12938 (vec_double, vec_signed, vec_unsigned): Define to use the new
12939 overloaded builtins.
12940 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
12941 Remove expanders.
12942
12943 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12944
12945 * config/s390/s390-builtin-types.def: New builtin function type
12946 definitions.
12947 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
12948 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
12949 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
12950 (s390_vstrszh, s390_vstrszf): New low-level builtins.
12951 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
12952 constant definitions.
12953 * config/s390/vecintrin.h (vec_search_string_cc)
12954 (vec_search_string_until_zero_cc): New builtin name definitions.
12955 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
12956 expanders.
12957 ("vec_vstrs<mode>"): New insn definition.
12958
12959 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12960
12961 * config/s390/s390-builtin-types.def: Add new builtin function
12962 types.
12963 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
12964 New overloaded builtins.
12965 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
12966 s390_vsrd.
12967 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
12968 (UNSPEC_VEC_SLDBYTE): ... this.
12969 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
12970 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
12971 definitions.
12972 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
12973 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
12974 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
12975
12976 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12977
12978 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
12979 New insn definition.
12980 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
12981 * config/s390/vector.md (V_HW_HSD): ... here.
12982
12983 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12984
12985 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
12986 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
12987 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
12988 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
12989 New insn definitions.
12990
12991 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12992
12993 * config/s390/s390-builtin-types.def: Add new builtin function type.
12994 * config/s390/s390-builtins.def: Add overloaded builtin
12995 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
12996 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
12997 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
12998 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
12999 ("eltswap<mode>"): New expander.
13000 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
13001 insn definitions.
13002
13003 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13004
13005 * config/s390/s390-builtin-types.def: Add new builtin function types.
13006 * config/s390/s390-builtins.def: Add overloaded builtin
13007 s390_vec_revb. Add low-level builtins for vlbr and vstbr
13008 instructions.
13009 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
13010 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
13011 ("bswap<mode>"): New expander.
13012 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
13013
13014 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13015
13016 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
13017 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
13018 vector builtin version number in __VEC__.
13019
13020 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13021
13022 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
13023 iterators.
13024 (SFSI): New mode attribute.
13025 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
13026 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
13027 rename to ...
13028 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
13029 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
13030 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
13031 ("floatsi<mode>2"): Add wcefb instruction.
13032
13033 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13034
13035 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
13036 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
13037 mode iterators.
13038 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
13039 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
13040 support 32 bit fp-int conversions. Rename to ...
13041 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13042 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13043 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
13044 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
13045 ... to these.
13046
13047 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13048
13049 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
13050 if-then-else constructs if we can use the select instruction.
13051 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
13052
13053 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13054
13055 * config/s390/s390.md ("*popcountdi_arch13_cc")
13056 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
13057 definition.
13058 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
13059 Append _z196 to make it ...
13060 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
13061 ("popcounthi2_z196"): ... this.
13062 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
13063 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
13064
13065 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13066
13067 * config/s390/s390.c (s390_canonicalize_comparison): Convert
13068 certain compares for arch13 in order to make use of the condition
13069 code result produced by the new instructions.
13070 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
13071 nxrk, and nxgrk instruction patterns.
13072 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
13073 (inv_no): Add new code iterator together with some attributes.
13074 ("*andc_split_<mode>"): Disable splitter for arch13.
13075 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
13076 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
13077 ("*<ANDOR:bitops_name>c<GPR:mode>")
13078 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
13079 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
13080 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
13081 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
13082
13083 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13084
13085 * common/config/s390/s390-common.c (processor_flags_table): New
13086 entry for arch13.
13087 * config.gcc: Support arch13 with the --with-arch= configure flag.
13088 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13089 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
13090 * config/s390/s390.c (s390_get_sched_attrmask)
13091 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
13092 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
13093 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
13094 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
13095 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
13096 definitions.
13097 * config/s390/s390.opt: Support arch13 as processor type in
13098 command line options.
13099
13100 2019-04-02 Martin Liska <mliska@suse.cz>
13101
13102 PR translation/89912
13103 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
13104 Fix param description of graphite-max-arrays-per-scop.
13105
13106 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
13107
13108 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
13109 (ASAN_CC1_SPEC): Use it in 64-bit mode.
13110 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
13111
13112 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13113
13114 PR rtl-optimization/85412
13115 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
13116 sel_sched_region_1, not after.
13117
13118 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13119
13120 PR rtl-optimization/86928
13121 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
13122 compute_live if necessary.
13123 (sel_redirect_edge_and_branch): Likewise.
13124
13125 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
13126
13127 PR rtl-optimization/89865
13128 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
13129 register if it is a part of small class.
13130
13131 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13132
13133 PR rtl-optimization/87273
13134 * sel-sched-ir.c (merge_fences): Remove assert.
13135
13136 2019-04-01 Richard Biener <rguenther@suse.de>
13137
13138 PR tree-optimization/46590
13139 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
13140 (dom_walker::m_reachability): Add in place of...
13141 (dom_walker::m_skip_unreachable_blocks): ...this.
13142 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
13143 Move complex initialization ...
13144 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
13145 lazily and initialize edge flags on each invocation.
13146 (dom_walker::bb_reachable): Use m_reachability.
13147
13148 2019-04-01 Martin Liska <mliska@suse.cz>
13149
13150 PR driver/89861
13151 * opt-suggestions.c (option_proposer::build_option_suggestions):
13152 Add variant without any argument in order to provide better
13153 hints.
13154
13155 2019-04-01 Richard Biener <rguenther@suse.de>
13156
13157 PR c/71598
13158 * gimple.c: Include langhooks.h.
13159 (gimple_get_alias_set): Treat enumeral types as the underlying
13160 integer type.
13161
13162 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13163 Eric Botcazou <ebotcazou@adacore.com>
13164
13165 PR rtl-optimization/89862
13166 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
13167 that operates on the full registers for WORD_REGISTER_OPERATIONS
13168 architectures.
13169
13170 2019-03-29 Jim Wilson <jimw@sifive.com>
13171
13172 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
13173 Clear MASK_RVC and then set if C subset supported.
13174
13175 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13176
13177 PR c/89872
13178 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
13179 non-addressable complit into its initializer if it is volatile.
13180
13181 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
13182
13183 * opts-common.c (integral_argument): Set errno properly in one case.
13184
13185 2019-03-29 Martin Liska <mliska@suse.cz>
13186
13187 * doc/invoke.texi: Remove -Wchkp from documentation.
13188
13189 2019-03-29 Martin Liska <mliska@suse.cz>
13190
13191 * dbgcnt.c (print_limit_reach): New function.
13192 (dbg_cnt): Use it.
13193
13194 2019-03-29 Martin Liska <mliska@suse.cz>
13195
13196 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
13197 (dbg_cnt_process_opt): Parse first tokens aas
13198 dbg_cnt_process_single_pair is also using strtok.
13199
13200 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13201
13202 PR rtl-optimization/87485
13203 * function.c (expand_function_end): Move stack_protect_epilogue
13204 before loading of return value into hard register(s).
13205
13206 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13207
13208 PR middle-end/89621
13209 * tree-inline.h (struct copy_body_data): Add
13210 dont_remap_vla_if_no_change flag.
13211 * tree-inline.c (remap_type_3, remap_type_2): New functions.
13212 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
13213 and remap_type_2 returns false.
13214 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
13215 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
13216 only from where it is copied to nested contexts.
13217
13218 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13219
13220 PR target/89865
13221 * config/i386/i386.md (RMW operation with LEA peephole):
13222 Use LEAMODE mode attribute instead of SWI mode iterator for
13223 LEA pattern.
13224
13225 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13226
13227 PR target/89848
13228 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13229 Also process XEXP (src, 0) of a shift insn.
13230
13231 2019-03-28 David Malcolm <dmalcolm@redhat.com>
13232
13233 PR middle-end/89725
13234 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
13235 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
13236
13237 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13238
13239 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
13240 test.
13241 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
13242 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
13243 immediately after first one with df_analyze in between, but rather
13244 process all bbs, queueing ones that need second pass in a worklist,
13245 df_analyze, process queued debug insn changes and if second pass is
13246 needed, process bbs from worklist, df_analyze, process queued debug
13247 insns again.
13248
13249 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
13250 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
13251 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
13252
13253 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
13254
13255 PR c/79022
13256 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
13257 definition.
13258
13259 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
13260
13261 PR target/85667
13262 * config/i386/i386.c (ix86_function_value_1): Call the newly added
13263 function for 32-bit MS_ABI.
13264 (function_value_ms_32): New function.
13265
13266 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
13267
13268 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
13269 (movdi): Call gen_movdi_symbol_save_scc.
13270 (gen_movdi_symbol_save_scc): New insn and split.
13271
13272 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
13273
13274 PR rtl-optimization/89313
13275 * function.c (matching_constraint_num): New static function.
13276 (match_asm_constraints_1): Use it. Fixup white space and comment.
13277 Don't replace inputs with non-matching constraints which conflict
13278 with early clobber outputs.
13279
13280 2019-03-27 Jeff Law <law@redhat.com>
13281
13282 PR rtl-optimization/87761
13283 PR rtl-optimization/89826
13284 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
13285 slightly later.
13286 (pass_cprop_hardreg::execute): Call df_analyze after adding the
13287 note problem to get REG_DEAD/REG_UNUSED notes updated.
13288
13289 2019-03-27 Richard Biener <rguenther@suse.de>
13290
13291 PR tree-optimization/89463
13292 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
13293 queue edges to remove.
13294 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
13295 dead stmts. Delay edge removal until PHIs are removed to
13296 make debug-stmt creation not confused by seemingly degenerate
13297 PHIs.
13298
13299 2019-03-27 Alan Modra <amodra@gmail.com>
13300
13301 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
13302 throughout file.
13303 * config/rs6000/darwin.h: Likewise.
13304 * config/rs6000/rs6000.c: Likewise.
13305
13306 2019-03-27 Alan Modra <amodra@gmail.com>
13307
13308 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
13309 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
13310
13311 2019-03-26 Andrew Waterman <andrew@sifive.com>
13312 Jim Wilson <jimw@sifive.com>
13313
13314 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
13315 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
13316 (generic_idivdi, generic_fmul_single, generic_fmul_double)
13317 (generic_fdiv, generic_fsqrt): Add check for generic tune.
13318 (generic_alu): Add auipc to type list.
13319 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
13320 (riscv_microarchitecture): Declare.
13321 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
13322 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
13323 field.
13324 (riscv_microarchitecture): New.
13325 (sifive_7_tune_info): New.
13326 (riscv_cpu_info_table): Add microarchitecture value for rocket and
13327 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
13328 entries.
13329 (riscv_store_data_bypass_p): New.
13330 (riscv_option_override): Set riscv_microarchitecture from
13331 cpu->microarchitecture.
13332 * config/riscv/riscv.md: Include sifive-7.md.
13333 (type): Add auipc.
13334 (tune): New.
13335 (auipc<mode>): Change type to auipc.
13336 (restore_stack_nonlocal): New.
13337 * config/riscv/sifive-7.md: New.
13338 * doc/invoke.texi (RISC-V Options): Update mtune docs.
13339
13340 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
13341
13342 PR target/89827
13343 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13344 Also process XEXP (src, 0) of a shift insn.
13345
13346 2019-03-26 Richard Biener <rguenther@suse.de>
13347
13348 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
13349 (copy_debug_stmt): Likewise.
13350 (expand_call_inline): Likewise.
13351 (copy_bb): Avoid redundant lookup & set of gimple_block.
13352 * gimple-low.c (lower_gimple_return): Likewise.
13353 (lower_builtin_setjmp): Likewise.
13354
13355 2019-03-26 Jakub Jelinek <jakub@redhat.com>
13356
13357 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
13358 is constant 0, turn into static const data member initialized to false.
13359 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
13360 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
13361
13362 2019-03-26 Jason Merrill <jason@redhat.com>
13363 Jakub Jelinek <jakub@redhat.com>
13364
13365 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
13366 method.
13367 (mem_alloc_description::release_object_overhead): Fix comment typos.
13368 * hash-table.h (hash_table::~hash_table): Call
13369 release_instance_overhead only if m_entries is non-NULL, otherwise
13370 call unregister_descriptor.
13371
13372 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
13373
13374 PR tree-optimization/81740
13375 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13376 In case of outer loop vectorization, check for backward dependence
13377 at the inner loop if outer loop dependence is reversed.
13378
13379 2019-03-26 Alan Modra <amodra@gmail.com>
13380
13381 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
13382 rs6000_vector_mem init. Correct wI and wJ comment.
13383
13384 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
13385
13386 PR rtl-optimization/88347
13387 PR rtl-optimization/88423
13388 * sched-deps.c (sched_analyze_insn): Take into account that for
13389 tablejumps the barrier appears after a label and a jump_table_data.
13390
13391 2019-03-25 Martin Sebor <msebor@redhat.com>
13392
13393 PR c/89812
13394 * c-common.c (check_user_alignment): Rename local. Correct maximum
13395 alignment in diagnostic. Avoid assuming argument fits in SHWI,
13396 convert it to UHWI when it fits.
13397
13398 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
13399
13400 PR debug/86964
13401 * dwarf2out.c (premark_used_variables): New function.
13402 (prune_unused_types_walk): Do not mark not premarked external
13403 variables.
13404 (prune_unused_types): Call premark_used_variables.
13405
13406 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
13407
13408 PR rtl-optimization/89676
13409 * lra-constraints.c (curr_insn_transform): Do match reload for
13410 early clobbers when the match was successful only for different
13411 registers.
13412
13413 2019-03-25 Martin Sebor <msebor@redhat.com>
13414
13415 * doc/extend.texi (Common Type Attributes): Document vector_size.
13416 (Common Variable Attributes): Mention size constraint. Correct
13417 quoting and typos.
13418 (Vector Extensions): Use @dfn when defining bas type. Clarify
13419 base type and size constraints.
13420
13421 2019-03-25 Richard Biener <rguenther@suse.de>
13422
13423 PR tree-optimization/89789
13424 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
13425 changes from non-undefined back to undefined.
13426
13427 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
13428
13429 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
13430 heap string and a gc string, but since this variable is unknown to
13431 ggc the gc string might get reused and corrupted. Fixed by always
13432 using a heap string.
13433
13434 2019-03-25 Richard Biener <rguenther@suse.de>
13435
13436 PR tree-optimization/89779
13437 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
13438 to remove IV defs, delay actual removal.
13439 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
13440 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
13441 very end, properly also reset loop control IV information.
13442
13443 2019-03-25 Richard Biener <rguenther@suse.de>
13444
13445 PR tree-optimization/89802
13446 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
13447 move EH data to folded stmt.
13448
13449 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13450
13451 * config/s390/s390-builtin-types.def: Remove few unused types and
13452 fix sort order for others.
13453
13454 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13455
13456 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
13457 expected and found types with -mdebug during builtin matching.
13458
13459 2019-03-25 Richard Biener <rguenther@suse.de>
13460
13461 PR middle-end/89790
13462 * fold-const.c (operand_equal_p): Revert last change with
13463 updated comment.
13464
13465 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
13466
13467 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
13468 notes for the result of the __tls_get_addr calls.
13469 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
13470
13471 2019-03-24 Jeff Law <law@redhat.com>
13472
13473 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
13474
13475 PR rtl-optimization/87761
13476 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
13477 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
13478 as needed.
13479 (pass_cprop_hardreg::execute): Add df note problem and defer insn
13480 rescans. Reprocess blocks as needed, calling df_analyze before
13481 reprocessing. Always call df_analyze before fixing up debug bind
13482 insns.
13483
13484 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
13485
13486 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
13487 big endian.
13488
13489 2019-03-22 Andrew Pinski <apinski@marvell.com>
13490
13491 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
13492 attrribute for uxtw.
13493
13494 2019-03-26 Jeff Law <law@redhat.com>
13495
13496 PR rtl-optimization/87761
13497 * config/mips/mips-protos.h (mips_split_move): Add new argument.
13498 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
13499 (mips_split_move): Accept new INSN argument. Try to forward SRC
13500 into the next instruction.
13501 (mips_split_move_insn): Pass INSN through to mips_split_move.
13502
13503 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
13504
13505 PR rtl-optimization/89676
13506 * lra-constraints.c (curr_insn_transform): Do match reload for
13507 early clobbers even if the match was successful.
13508
13509 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13510
13511 PR c++/87481
13512 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
13513
13514 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
13515
13516 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
13517
13518 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13519
13520 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
13521 <avx512>_fmsub_<mode>_mask3<round_name>,
13522 <avx512>_fnmadd_<mode>_mask3<round_name>,
13523 <avx512>_fnmsub_<mode>_mask3<round_name>,
13524 avx512f_vmfmadd_<mode>_mask3<round_name>,
13525 avx512f_vmfmsub_<mode>_mask3<round_name>,
13526 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
13527 instead of register_operand and %v instead of v for match_operand 1.
13528 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
13529 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
13530 <round_nimm_predicate> instead of register_operand and %v instead of v
13531 for match_operand 1.
13532
13533 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
13534 <avx512>_fmadd_<mode>_mask3<round_name>,
13535 <avx512>_fmsub_<mode>_mask<round_name>,
13536 <avx512>_fmsub_<mode>_mask3<round_name>,
13537 <avx512>_fnmadd_<mode>_mask<round_name>,
13538 <avx512>_fnmadd_<mode>_mask3<round_name>,
13539 <avx512>_fnmsub_<mode>_mask<round_name>,
13540 <avx512>_fnmsub_<mode>_mask3<round_name>,
13541 <avx512>_fmaddsub_<mode>_mask<round_name>,
13542 <avx512>_fmaddsub_<mode>_mask3<round_name>,
13543 <avx512>_fmsubadd_<mode>_mask<round_name>,
13544 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
13545 <round_nimm_predicate> instead of nonimmediate_operand.
13546 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
13547 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
13548 Use register_operand instead of <round_nimm_predicate> for the
13549 operand that needs to match output.
13550 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
13551 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
13552 Likewise. Formatting fixes.
13553
13554 PR target/89784
13555 * config/i386/i386.c (enum ix86_builtins): Remove
13556 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
13557 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
13558 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
13559 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
13560 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
13561 __builtin_ia32_vfmsubss3_mask3): New builtins.
13562 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
13563 avx512f_vmfmadd_<mode>_mask3<round_name>,
13564 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
13565 *avx512f_vmfmsub_<mode>_mask<round_name>,
13566 avx512f_vmfmsub_<mode>_mask3<round_name>,
13567 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
13568 *avx512f_vmfnmadd_<mode>_mask<round_name>,
13569 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
13570 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
13571 *avx512f_vmfnmsub_<mode>_mask<round_name>,
13572 avx512f_vmfnmsub_<mode>_mask3<round_name>,
13573 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
13574 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
13575 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
13576 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
13577 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
13578 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
13579 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
13580 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
13581 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
13582 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
13583 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
13584 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
13585 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
13586 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
13587 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
13588 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
13589 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
13590 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
13591 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
13592 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
13593 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
13594 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
13595
13596 2019-03-21 Martin Sebor <msebor@redhat.com>
13597
13598 PR tree-optimization/89350
13599 * builtins.c (compute_objsize): Also ignore offsets whose upper
13600 bound is negative.
13601 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
13602 (builtin_memref::builtin_memref): Initialize new member.
13603 Allow EXPR to be null.
13604 (builtin_memref::extend_offset_range): Replace local with a member.
13605 Avoid assuming pointer offsets are unsigned.
13606 (builtin_memref::set_base_and_offset): Determine base object
13607 before computing offset range.
13608 (builtin_access::builtin_access): Handle memset.
13609 (builtin_access::generic_overlap): Replace local with a member.
13610 (builtin_access::strcat_overlap): Same.
13611 (builtin_access::overlap): Same.
13612 (maybe_diag_overlap): Same.
13613 (maybe_diag_access_bounds): Same.
13614 (wrestrict_dom_walker::check_call): Handle memset.
13615 (check_bounds_or_overlap): Same.
13616
13617 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
13618 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR lto/89692
13621 * tree.c (fld_type_variant, fld_incomplete_type_of,
13622 fld_process_array_type): Call fld->pset.add and don't call
13623 add_tree_to_fld_list if it returns true.
13624 (free_lang_data_in_type): Similarly with self-recursive call. Purge
13625 non-marked types from TYPE_NEXT_VARIANT list.
13626 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
13627
13628 2019-03-21 Jakub Jelinek <jakub@redhat.com>
13629
13630 * hash-table.h (hash_table): Add Lazy template parameter defaulted
13631 to false, if true, don't alloc_entries during construction, but defer
13632 it to the first method that needs m_entries allocated.
13633 (hash_table::hash_table, hash_table::~hash_table,
13634 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
13635 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
13636 hash_table::clear_slot, hash_table::traverse_noresize,
13637 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
13638 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
13639 false.
13640 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
13641 NO_INSERT instead of find_with_hash.
13642 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
13643 hash_set::m_table): Add Lazy to template params of hash_table.
13644 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
13645 * attribs.c (test_attribute_exclusions): Likewise.
13646 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
13647 hash_set. Add tests for hash_set with Lazy = true.
13648
13649 2019-03-21 Richard Biener <rguenther@suse.de>
13650
13651 PR tree-optimization/89779
13652 * tree.c (tree_nop_conversion): Consolidate and fix defensive
13653 checks with respect to released SSA names now having error_mark_node
13654 type.
13655 * fold-const.c (operand_equal_p): Likewise.
13656
13657 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
13658
13659 PR target/89775
13660 * config/s390/s390.c (global_not_special_regno_p): Move to make it
13661 available to ...
13662 (s390_optimize_register_info): Use global_not_special_regno_p to
13663 check for global regs.
13664
13665 2019-03-20 Jakub Jelinek <jakub@redhat.com>
13666
13667 PR target/89752
13668 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
13669 update this_alternative nor this_alternative_set.
13670
13671 2019-03-19 Jim Wilson <jimw@sifive.com>
13672
13673 PR target/89411
13674 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
13675 align, size, offset. Use them to handle a BLKmode reference. Update
13676 comment.
13677 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
13678
13679 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13680
13681 PR rtl-optimization/89768
13682 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
13683 instead of GEN_INT.
13684 (unroll_loop_runtime_iterations): Likewise.
13685
13686 2019-03-19 Martin Sebor <msebor@redhat.com>
13687
13688 PR tree-optimization/89644
13689 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
13690 rather than endptr as an indicator of nul-termination.
13691
13692 PR tree-optimization/89644
13693 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
13694 arrays in determining sequence sizes in strncpy and stpncpy.
13695
13696 2019-03-19 Martin Liska <mliska@suse.cz>
13697
13698 PR middle-end/89737
13699 * predict.c (combine_predictions_for_bb): Empty likely_edges and
13700 unlikely_edges if there's an edge that belongs to both these sets.
13701
13702 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
13703
13704 PR target/89746
13705 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
13706 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
13707 go via a stack temporary.
13708
13709 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13710
13711 PR target/89378
13712 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
13713 instead of gen_rtx_SUBREG.
13714 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
13715
13716 2019-03-19 Richard Biener <rguenther@suse.de>
13717
13718 PR debug/88389
13719 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
13720
13721 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
13722
13723 PR lto/87809
13724 PR lto/89335
13725 * tree.c (free_lang_data_in_decl): Do not free context of C++
13726 destrutors.
13727
13728 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13729
13730 PR target/89506
13731 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
13732 subs for the first alternative except when operands[3] is 1.
13733
13734 PR target/89752
13735 * gimplify.c (gimplify_asm_expr): For output argument with
13736 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
13737 diagnose error.
13738
13739 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
13740
13741 PR rtl-optimization/89753
13742 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
13743 explicit unrolling factor even more robust.
13744
13745 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13746
13747 PR target/89726
13748 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
13749 compensation use x2 += 1 instead of x2 -= -1 and when honoring
13750 signed zeros, do another copysign after the compensation.
13751
13752 2019-03-18 Martin Sebor <msebor@redhat.com>
13753
13754 PR tree-optimization/89720
13755 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
13756 more conservatively, the same as anti-range.
13757
13758 2019-03-18 Richard Biener <rguenther@suse.de>
13759
13760 PR middle-end/88945
13761 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
13762 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
13763 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
13764 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
13765
13766 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
13767
13768 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
13769 Extend queue to 1024 entries.
13770 Add "consumed" field.
13771 (gomp_print_output): Remove print_index parameter.
13772 Add final parameter.
13773 Change limit to unsigned.
13774 Use consumed field to implement circular buffer.
13775 Detect interrupted print in final pass.
13776 Flush output at the end.
13777 (run): Update gomp_print_output usage.
13778 (main): Initialize kernargs->output_data.consumed.
13779
13780 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
13781
13782 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
13783 calculation of the minimum number of scalar iterations for
13784 fully-predicated loops.
13785
13786 2019-03-18 Martin Jambor <mjambor@suse.cz>
13787
13788 PR tree-optimization/89546
13789 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
13790 any propagation to its children took place.
13791
13792 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
13793
13794 PR target/89627
13795 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
13796 parameter, and make use of it.
13797 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
13798
13799 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
13800
13801 * config/arc/arc.opt (mcode-density-frame): Get the inital value
13802 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
13803 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
13804 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
13805 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
13806 match what the ops is doing.
13807 (push_multi_fp_blink): Likewise.
13808 * config/arc/arc.c (arc_override_options): Enable enter/leave when
13809 compiling for size and elf target.
13810 (arc_save_callee_enter): Adjust note to match what enter/leave
13811 operation does.
13812
13813 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
13814
13815 * config/arc/arc.md (tst_movb): Fix constraint.
13816
13817 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
13818
13819 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
13820
13821 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
13822
13823 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
13824 * config/arc/arc.c (arc_conditional_register_usage): Remove all
13825 reg_alloc_order references.
13826 (size_alloc_order): Define.
13827 (arc_adjust_reg_alloc_order): New function.
13828 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
13829 order.
13830 (ADJUST_REG_ALLOC_ORDER): Define.
13831 (HONOR_REG_ALLOC_ORDER): Likewise.
13832
13833 2019-03-18 Richard Biener <rguenther@suse.de>
13834
13835 PR target/87561
13836 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
13837 loads and stores a bit more.
13838
13839 2019-03-18 Richard Biener <rguenther@suse.de>
13840
13841 PR target/87561
13842 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
13843 load pessimization to stores as well.
13844
13845 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
13846
13847 PR middle-end/86979
13848 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
13849 successor, use NULL as its av set.
13850
13851 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13852
13853 PR rtl-optimization/89721
13854 * lra-constraints (invariant_p): Return false if side_effects_p holds.
13855
13856 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
13857
13858 PR target/87532
13859 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13860 When handling vec_extract, use modular arithmetic to allow
13861 constant selectors greater than vector length.
13862 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
13863 V1TImode vectors to have constant selector values greater than 0.
13864 Use modular arithmetic to compute vector index.
13865 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
13866 index for in-memory vectors. Correct code generation for
13867 in-register vectors.
13868 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
13869 compute index.
13870
13871 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
13872
13873 PR c++/88534
13874 PR c++/88537
13875 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
13876 VAR_DECL args.
13877
13878 2019-03-15 Jakub Jelinek <jakub@redhat.com>
13879
13880 PR c++/89709
13881 * tree.c (inchash::add_expr): Strip any location wrappers.
13882 * fold-const.c (operand_equal_p): Move stripping of location wrapper
13883 after hash verification.
13884
13885 PR debug/89704
13886 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
13887 SIGN_EXTEND and ZERO_EXTEND.
13888
13889 2019-03-14 Jason Merrill <jason@redhat.com>
13890 Jakub Jelinek <jakub@redhat.com>
13891
13892 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
13893 than if is_empty (*slot).
13894 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
13895 existing elt and for elt removal.
13896 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
13897 of already removed elt.
13898
13899 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
13900
13901 PR target/89650
13902 * config/i386/i386.c (remove_partial_avx_dependency): Handle
13903 REG_EH_REGION note.
13904
13905 2019-03-14 Martin Liska <mliska@suse.cz>
13906
13907 PR other/89712
13908 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
13909
13910 2019-03-14 Richard Biener <rguenther@suse.de>
13911
13912 PR target/89711
13913 * config/i386/i386.c (make_resolver_func): Properly set
13914 DECL_CONTEXT on the RESULT_DECL.
13915 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
13916
13917 2019-03-14 Richard Biener <rguenther@suse.de>
13918
13919 * gimple-pretty-print.c: Include cfgloop.h.
13920 (dump_gimple_phi): Adjust.
13921 (dump_gimple_bb_header): Dump loop header for GIMPLE.
13922 (pp_cfg_jump): Adjust.
13923 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
13924 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
13925 (lower_phi_internal_fn): Remove.
13926 (verify_gimple_call): Remove IFN_PHI special-casing.
13927 (dump_function_to_file): Dump IL state.
13928 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
13929 done to deal with PHI nodes being present in non-SSA state.
13930
13931 2019-03-14 Jakub Jelinek <jakub@redhat.com>
13932
13933 PR ipa/89684
13934 * multiple_target.c (create_dispatcher_calls): Change
13935 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
13936 In the node->iterate_referring loop, push *ref rather than ref, call
13937 ref->remove_reference () and always pass 0 to iterate_referring.
13938
13939 PR rtl-optimization/89679
13940 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
13941 would contain a paradoxical SUBREG.
13942
13943 2019-03-14 Richard Biener <rguenther@suse.de>
13944
13945 PR tree-optimization/89710
13946 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
13947 safe_dyn_cast.
13948
13949 2019-03-14 Martin Liska <mliska@suse.cz>
13950
13951 * coverage.c (coverage_begin_function): Stream also
13952 end_column.
13953 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
13954 documentation about function declaration location.
13955 * gcov-dump.c (tag_function): Print whole range
13956 of function declaration.
13957 * gcov.c (struct function_info): Add end_column field.
13958 (function_info::function_info): Initialize it.
13959 (output_json_intermediate_file): Output {start,end}_column
13960 fields.
13961 (read_graph_file): Read end_column.
13962
13963 2019-03-14 Richard Biener <rguenther@suse.de>
13964
13965 PR middle-end/89698
13966 * fold-const.c (operand_equal_p): For INDIRECT_REF check
13967 that the access types are similar.
13968
13969 2019-03-14 Jakub Jelinek <jakub@redhat.com>
13970
13971 PR tree-optimization/89703
13972 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
13973 aren't compatible also with builtin_decl_explicit. Check pure
13974 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
13975 and BUILT_IN_STPNCPY{,_CHK}.
13976
13977 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
13978
13979 PR target/89523
13980 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
13981 addr32 prefix to VSIB address for X32.
13982 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
13983 "%M2" to opcode.
13984 (*avx512pf_gatherpf<mode>df_mask): Likewise.
13985 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
13986 (*avx512pf_scatterpf<mode>df_mask): Likewise.
13987 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
13988 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
13989 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
13990 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
13991 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
13992 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
13993 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
13994 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
13995 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
13996 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
13997 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
13998 (*avx512f_scatterdi<mode>): Likewise.
13999
14000 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
14001
14002 PR target/85860
14003 * lra-constraints.c (inherit_in_ebb): Update
14004 potential_reload_hard_regs along with live_hard_regs.
14005
14006 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14007
14008 PR debug/89498
14009 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
14010 DWARF_OFFSET_SIZE.
14011 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
14012
14013 2019-03-13 Martin Sebor <msebor@redhat.com>
14014
14015 PR tree-optimization/89662
14016 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
14017 has a size.
14018
14019 2019-03-13 Richard Biener <rguenther@suse.de>
14020
14021 PR middle-end/89677
14022 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
14023 throw FP expressions at tree-affine.
14024
14025 2019-03-14 Richard Biener <rguenther@suse.de>
14026
14027 * tree-pretty-print.c (dump_generic_node): For -gimple properly
14028 dump negative integer constants using _Literal (type) -num.
14029
14030 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14031
14032 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
14033 nonlocal_value member.
14034
14035 PR middle-end/88588
14036 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
14037 (ipa_simd_modify_function_body): Handle PHIs.
14038
14039 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14040
14041 * config/s390/s390.c (s390_option_override_internal): Use more
14042 aggressive inlining parameters.
14043
14044 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14045
14046 * config/s390/3906.md: New file.
14047 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14048 (LONGRUNNING_THRESHOLD): Remove.
14049 (MAX_SCHED_MIX_SCORE): Decrease.
14050 (MAX_SCHED_MIX_DISTANCE): Decrease.
14051 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
14052 (struct s390_sched_state): New struct to hold scheduling state.
14053 (S390_SCHED_STATE_NORMAL): Remove.
14054 (S390_SCHED_STATE_CRACKED): Remove.
14055 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
14056 (s390_get_sched_attrmask): Use new attribute.
14057 (s390_get_unit_mask): Use new units.
14058 (s390_is_fpd): New function.
14059 (s390_is_fxd): New function.
14060 (s390_is_longrunning): New function.
14061 (s390_sched_score): Use new functions.
14062 (s390_sched_reorder): Likewise.
14063 (s390_sched_variable_issue): Rework and use new functions.
14064 (s390_sched_init): Use new functions.
14065 * config/s390/s390.h (s390_tune_attr): Add z14.
14066 * config/s390/s390.md: Add z14.
14067
14068 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14069
14070 * config/s390/2964.md: Update pipeline description.
14071 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14072 (LONGRUNNING_THRESHOLD): Remove.
14073 (LATENCY_FACTOR): Remove.
14074 (s390_get_unit_mask): Add unit.
14075 (s390_sched_score): Use fxd/fpd.
14076 (s390_sched_variable_issue): Use fxd/fpd.
14077
14078 2019-03-12 Martin Liska <mliska@suse.cz>
14079
14080 * config/i386/i386.c: Reword an error message.
14081
14082 2019-03-12 Martin Jambor <mjambor@suse.cz>
14083
14084 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
14085 terminate with newline.
14086
14087 2019-03-12 Jakub Jelinek <jakub@redhat.com>
14088
14089 PR target/52726
14090 * config/s390/s390.md (tabort): Use %wd instead of
14091 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
14092 letters and periods.
14093 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
14094 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
14095 's with %< and %>.
14096
14097 PR middle-end/89663
14098 * builtins.c (expand_builtin_int_roundingfn,
14099 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
14100 gcc_unreachable if validate_arglist fails.
14101
14102 2019-03-12 Richard Biener <rguenther@suse.de>
14103
14104 PR tree-optimization/89664
14105 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
14106 free the occurance tree after the early out.
14107
14108 2019-03-11 Jakub Jelinek <jakub@redhat.com>
14109
14110 PR middle-end/89655
14111 PR bootstrap/89656
14112 * vr-values.c (vr_values::update_value_range): If
14113 old_vr->varying_p (), don't update it, make new_vr also VARYING
14114 and return false.
14115
14116 2019-03-11 Martin Liska <mliska@suse.cz>
14117
14118 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14119 Fix double string quoting.
14120
14121 2019-03-11 Martin Liska <mliska@suse.cz>
14122
14123 * collect-utils.c (collect_wait): Wrap apostrophes
14124 in gcc internal format with %'.
14125 * collect2.c (main): Likewise.
14126 (scan_prog_file): Likewise.
14127 (scan_libraries): Likewise.
14128 * config/i386/i386.c (ix86_expand_call): Likewise.
14129 (ix86_handle_interrupt_attribute): Likewise.
14130 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14131 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14132 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
14133 * lto-wrapper.c (find_crtoffloadtable): Likewise.
14134 * symtab.c (symtab_node::verify_base): Likewise.
14135 * tree-cfg.c (verify_gimple_label): Likewise.
14136 * tree.c (verify_type_variant): Likewise.
14137
14138 2019-03-11 Martin Liska <mliska@suse.cz>
14139
14140 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
14141 in a string format message and fix GNU coding style.
14142 (expand_builtin_set_thread_pointer): Likewise.
14143 * common/config/aarch64/aarch64-common.c
14144 (aarch64_rewrite_selected_cpu): Likewise.
14145 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
14146 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
14147 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
14148 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
14149 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
14150 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
14151 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
14152 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
14153 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
14154 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
14155 Likewise.
14156 * common/config/riscv/riscv-common.c
14157 (riscv_subset_list::parsing_subset_version): Likewise.
14158 (riscv_subset_list::parse_std_ext): Likewise.
14159 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14160 (riscv_subset_list::parse): Likewise.
14161 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
14162 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
14163 (aarch64_override_options_internal): Likewise.
14164 (aarch64_validate_mcpu): Likewise.
14165 (aarch64_validate_march): Likewise.
14166 (aarch64_validate_mtune): Likewise.
14167 (aarch64_override_options): Likewise.
14168 * config/alpha/alpha.c (alpha_option_override): Likewise.
14169 * config/arc/arc.c (arc_init): Likewise.
14170 (parse_mrgf_banked_regs_option): Likewise.
14171 (arc_override_options): Likewise.
14172 (arc_expand_builtin_aligned): Likewise.
14173 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
14174 (arm_expand_builtin): Likewise.
14175 * config/arm/arm.c (arm_option_check_internal): Likewise.
14176 (arm_configure_build_target): Likewise.
14177 (arm_option_override): Likewise.
14178 (arm_options_perform_arch_sanity_checks): Likewise.
14179 (arm_handle_cmse_nonsecure_entry): Likewise.
14180 (arm_handle_cmse_nonsecure_call): Likewise.
14181 (arm_tls_referenced_p): Likewise.
14182 (thumb1_expand_prologue): Likewise.
14183 * config/avr/avr.c (avr_option_override): Likewise.
14184 * config/bfin/bfin.c (bfin_option_override): Likewise.
14185 * config/c6x/c6x.c (c6x_option_override): Likewise.
14186 * config/cr16/cr16.c (cr16_override_options): Likewise.
14187 * config/cris/cris.c (cris_option_override): Likewise.
14188 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
14189 * config/darwin-c.c (macosx_version_as_macro): Likewise.
14190 * config/darwin.c (darwin_override_options): Likewise.
14191 * config/frv/frv.c (frv_expand_builtin): Likewise.
14192 * config/h8300/h8300.c (h8300_option_override): Likewise.
14193 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
14194 (ix86_option_override_internal): Likewise.
14195 (warn_once_call_ms2sysv_xlogues): Likewise.
14196 (ix86_expand_prologue): Likewise.
14197 (split_stack_prologue_scratch_regno): Likewise.
14198 (ix86_warn_parameter_passing_abi): Likewise.
14199 * config/ia64/ia64.c (fix_range): Likewise.
14200 * config/m68k/m68k.c (m68k_option_override): Likewise.
14201 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
14202 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
14203 (mips_set_compression_mode): Likewise.
14204 * config/mmix/mmix.c (mmix_option_override): Likewise.
14205 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
14206 * config/msp430/msp430.c (msp430_option_override): Likewise.
14207 * config/nds32/nds32.c (nds32_option_override): Likewise.
14208 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
14209 (nios2_option_override): Likewise.
14210 (nios2_expand_custom_builtin): Likewise.
14211 * config/nvptx/mkoffload.c (main): Likewise.
14212 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
14213 * config/pa/pa.c (fix_range): Likewise.
14214 (pa_option_override): Likewise.
14215 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
14216 (riscv_option_override): Likewise.
14217 * config/rl78/rl78.c (rl78_option_override): Likewise.
14218 * config/rs6000/aix61.h: Likewise.
14219 * config/rs6000/aix71.h: Likewise.
14220 * config/rs6000/aix72.h: Likewise.
14221 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
14222 * config/rs6000/freebsd64.h: Likewise.
14223 * config/rs6000/linux64.h: Likewise.
14224 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
14225 (rs6000_expand_zeroop_builtin): Likewise.
14226 (rs6000_expand_mtfsb_builtin): Likewise.
14227 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
14228 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
14229 (rs6000_invalid_builtin): Likewise.
14230 (rs6000_expand_split_stack_prologue): Likewise.
14231 * config/rs6000/rtems.h: Likewise.
14232 * config/rx/rx.c (valid_psw_flag): Likewise.
14233 (rx_expand_builtin): Likewise.
14234 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14235 * config/s390/s390.c (s390_expand_builtin): Likewise.
14236 (s390_function_profiler): Likewise.
14237 (s390_option_override_internal): Likewise.
14238 (s390_option_override): Likewise.
14239 * config/sh/sh.c (sh_option_override): Likewise.
14240 (sh_builtin_saveregs): Likewise.
14241 (sh_fix_range): Likewise.
14242 * config/sh/vxworks.h: Likewise.
14243 * config/sparc/sparc.c (sparc_option_override): Likewise.
14244 * config/spu/spu.c (spu_option_override): Likewise.
14245 (fix_range): Likewise.
14246 * config/visium/visium.c (visium_option_override): Likewise.
14247 (visium_handle_interrupt_attr): Likewise.
14248 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
14249 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
14250 (dbg_cnt_process_opt): Likewise.
14251 * dwarf2out.c (output_dwarf_version): Likewise.
14252 * except.c (expand_eh_return): Likewise.
14253 * gcc.c (defined): Likewise.
14254 (driver_handle_option): Likewise.
14255 (process_command): Likewise.
14256 (compare_files): Likewise.
14257 (driver::prepare_infiles): Likewise.
14258 (driver::do_spec_on_infiles): Likewise.
14259 (driver::maybe_run_linker): Likewise.
14260 * omp-offload.c (oacc_parse_default_dims): Likewise.
14261 * opts-global.c (handle_common_deferred_options): Likewise.
14262 * opts.c (parse_sanitizer_options): Likewise.
14263 (common_handle_option): Likewise.
14264 (enable_warning_as_error): Likewise.
14265 * passes.c (enable_disable_pass): Likewise.
14266 * plugin.c (parse_plugin_arg_opt): Likewise.
14267 (default_plugin_dir_name): Likewise.
14268 * targhooks.c (default_expand_builtin_saveregs): Likewise.
14269 (default_pch_valid_p): Likewise.
14270 * toplev.c (init_asm_output): Likewise.
14271 (process_options): Likewise.
14272 (toplev::run_self_tests): Likewise.
14273 * tree-cfg.c (verify_gimple_call): Likewise.
14274 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
14275 (tree_inlinable_function_p): Likewise.
14276 * var-tracking.c (vt_find_locations): Likewise.
14277
14278 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
14279
14280 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
14281 only on the else branch.
14282
14283 2019-03-11 Martin Liska <mliska@suse.cz>
14284
14285 * gcov.c (output_intermediate_json_line): Print function
14286 name of each line.
14287 (output_json_intermediate_file): Add new argument.
14288 * doc/gcov.texi: Document the change.
14289
14290 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
14291
14292 PR rtl-optimization/89588
14293 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14294 explicit unrolling factor more robust.
14295
14296 2019-03-11 Richard Biener <rguenther@suse.de>
14297
14298 PR tree-optimization/89649
14299 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14300 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
14301 on the prolog and epilog loops.
14302 (vect_loop_versioning): Return copy of loop.
14303 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
14304 on the non-vectorized version of the loop.
14305
14306 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
14307
14308 PR target/68924
14309 * config/i386/sse.md (*vec_extractv2di_0_sse):
14310 Add (=r,x) alternative and corresponding splitter.
14311
14312 2019-03-10 Martin Jambor <mjambor@suse.cz>
14313
14314 PR tree-optimization/85762
14315 PR tree-optimization/87008
14316 PR tree-optimization/85459
14317 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
14318 it points to if there is a type changing MEM_REF. Adjust all callers.
14319 (build_accesses_from_assign): Disable total scalarization if
14320 contains_vce_or_bfcref_p returns true through the new parameter, for
14321 both rhs and lhs.
14322
14323 2019-03-09 Jakub Jelinek <jakub@redhat.com>
14324
14325 PR c/88568
14326 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
14327 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
14328
14329 PR target/79645
14330 * common.opt (fdiagnostics-show-labels,
14331 fdiagnostics-show-line-numbers, fdiagnostics-format=,
14332 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
14333 gas-locview-support, ginline-points, ginternal-reset-location-views):
14334 Terminate description text with a dot.
14335 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
14336 * config/mcore/mcore.opt (m210, m340): Likewise.
14337 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
14338 mnops=): Start description text with a capital letter.
14339 * config/arc/arc.opt (msize-level=): Likewise.
14340 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
14341 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
14342 mnewlib): Likewise.
14343 * config/ft32/ft32.opt (msim): Likewise.
14344 (mft32b, mcompress): Likewise. Terminate description text with a dot.
14345 (mnodiv, mnopm): Terminate description text with a dot.
14346 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
14347 a colon.
14348 * config/i386/i386.opt (prefer_vector_width, instrument_return):
14349 Likewise.
14350 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
14351 text.
14352
14353 PR rtl-optimization/89634
14354 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
14355 are modified in BB_END (e->src) instruction.
14356
14357 2019-03-08 David Malcolm <dmalcolm@redhat.com>
14358
14359 PR target/79926
14360 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
14361 messages more amenable to translation, and improve wording.
14362
14363 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
14364
14365 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
14366 ud- and du-chains between phases.
14367
14368 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
14369
14370 PR debug/89631
14371 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
14372 instead of POLY_INT_CST.
14373
14374 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
14375
14376 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
14377 requirement.
14378
14379 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
14380
14381 PR target/68924
14382 PR target/78782
14383 PR target/87558
14384 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
14385 (_mm_storeu_si64): Ditto.
14386
14387 2019-03-08 Martin Liska <mliska@suse.cz>
14388
14389 PR target/86952
14390 * config/i386/i386.c (ix86_option_override_internal): Disable
14391 jump tables when retpolines are used.
14392
14393 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
14394
14395 PR go/63560
14396 * ipa-split.c (execute_split_functions): Do not split
14397 'noinline' or 'section' function.
14398
14399 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14400
14401 PR target/79846
14402 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
14403 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
14404 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
14405
14406 PR ipa/80000
14407 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14408 from diagnostics. Formatting fixes.
14409
14410 PR target/85665
14411 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
14412 warn_odr diagnostics.
14413
14414 PR other/80058
14415 * lra-constraints.c (process_alt_operands): Avoid one space before
14416 " at the end of line and another after " on another line in a string
14417 literal.
14418 * attribs.c (handle_dll_attribute): Likewise.
14419 * config/avr/avr-devices.c (avr_texinfo): Likewise.
14420
14421 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
14422 warning_at or inform messages in G_() if there is no ?:.
14423
14424 PR tree-optimization/89550
14425 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
14426 returned true. Formatting fixes.
14427 (expand_builtin_strnlen): Formatting fixes.
14428 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
14429 if warning_at returned true.
14430 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
14431
14432 2019-03-08 Richard Biener <rguenther@suse.de>
14433
14434 PR middle-end/89578
14435 * cfgloop.h (struct loop): Add owned_clique field.
14436 * cfgloopmanip.c (copy_loop_info): Copy it.
14437 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
14438 cliques.
14439 * tree-inline.c (copy_loops): Remap owned_clique.
14440 * lto-streamer-in.c (input_cfg): Stream owned_clique.
14441 * lto-streamer-out.c (output_cfg): Likewise.
14442
14443 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14444
14445 PR target/80190
14446 * config/darwin.c: Include intl.h.
14447 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
14448 composing the message out of two separate parts.
14449
14450 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14451
14452 PR target/80003
14453 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
14454 doesn't start with a capital letter and doesn't end with a dot.
14455 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
14456 with a capital letter.
14457 (ix86_mangle_function_version_assembler_name): Likewise.
14458 (ix86_generate_version_dispatcher_body): Likewise.
14459 (fold_builtin_cpu): Likewise.
14460 (get_builtin_code_for_version): Likewise. Remove extraneous space.
14461 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
14462 translators, wrap full type name in %qs.
14463
14464 PR translation/79999
14465 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
14466 depend clause with source (or sink) modifier.
14467 * omp-expand.c (expand_omp_ordered_sink): Likewise.
14468
14469 PR target/89602
14470 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
14471 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
14472 (avx512f_load<mode>_mask): New define_expand.
14473 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
14474 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
14475 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
14476 __builtin_ia32_movess_mask): New builtins.
14477 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
14478 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
14479 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
14480 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
14481
14482 2019-03-07 Martin Jambor <mjambor@suse.cz>
14483
14484 PR lto/87525
14485 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
14486 for extern inline functions.
14487
14488 2019-03-07 Martin Jambor <mjambor@suse.cz>
14489
14490 PR ipa/88235
14491 * cgraph.h (cgraph_node): New inline method former_thunk_p.
14492 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
14493 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
14494 have multiple callees. At the end check if declarations match as
14495 opposed to cgraph_nodes.
14496
14497 2019-03-07 Martin Liska <mliska@suse.cz>
14498
14499 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
14500 which is equivalent to searching for this in clones chain.
14501 * symtab.c (symtab_node::verify_base): Similarly compare ASM
14502 names with a neighbour and special case first node in a chain.
14503
14504 2019-01-25 Jason Merrill <jason@redhat.com>
14505
14506 PR c++/80916 - spurious "static but not defined" warning.
14507 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
14508 for an internal symbol with DECL_EXTERNAL.
14509
14510 2019-04-07 Richard Biener <rguenther@suse.de>
14511
14512 PR middle-end/89618
14513 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
14514 * tree-inline.c (copy_loops): Simplify.
14515
14516 2019-03-07 Martin Liska <mliska@suse.cz>
14517
14518 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
14519
14520 2019-03-07 Richard Biener <rguenther@suse.de>
14521
14522 PR tree-optimization/89595
14523 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
14524 stmt iterator as reference, take boolean output parameter to
14525 indicate whether the stmt was removed and thus the iterator
14526 already advanced.
14527 (dom_opt_dom_walker::before_dom_children): Re-iterate over
14528 stmts created by folding.
14529
14530 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14531
14532 PR c++/89585
14533 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
14534 at toplevel.
14535
14536 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
14537
14538 PR rtl-optimization/88845
14539 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
14540 LRA.
14541 * lra.c (remove_scratches_1): New function.
14542 (remove_scratches): Use it.
14543 (lra_emit_move): Likewise.
14544
14545 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
14546
14547 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
14548 unaligned_access variable.
14549 * config/arc/arc.c (arc_override_options): Set unaligned access
14550 default on for HS CPUs.
14551 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
14552
14553 2019-03-06 Martin Liska <mliska@suse.cz>
14554
14555 PR gcov-profile/89577
14556 * doc/gcov.texi: Prefer to use --coverage.
14557 * doc/sourcebuild.texi: Likewise.
14558
14559 2019-03-02 Jason Merrill <jason@redhat.com>
14560
14561 PR c++/86485 - -Wmaybe-unused with empty class ?:
14562 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
14563
14564 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14565
14566 PR target/89587
14567 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
14568 if_multiarch.
14569
14570 PR middle-end/89590
14571 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
14572 exactly one argument.
14573
14574 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14575 Richard Sandiford <richard.sandiford@arm.com>
14576
14577 PR tree-optimization/89570
14578 * match.pd (vec_cond into cond_op simplification): Don't use
14579 get_conditional_internal_fn, use as_internal_fn (cond_op).
14580
14581 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
14582
14583 PR target/89222
14584 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
14585 to decide when to split off a non-zero offset from a symbol.
14586 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
14587 in function symbols.
14588
14589 2019-03-05 Richard Biener <rguenther@suse.de>
14590
14591 PR tree-optimization/89594
14592 * tree-if-conv.c (pass_if_conversion::execute): Handle
14593 case where .LOOP_VECTORIZED_FUNCTION was removed.
14594
14595 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14596
14597 PR bootstrap/89560
14598 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
14599 instead alloca it only when needed with the needed size.
14600
14601 PR tree-optimization/89570
14602 * match.pd (vec_cond into cond_op simplification): Guard with
14603 vectorized_internal_fn_supported_p test and #if GIMPLE.
14604
14605 PR tree-optimization/89566
14606 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
14607 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
14608 Punt if get_user_idx_format succeeds, but idx_format argument is
14609 not provided or doesn't have pointer type, or if idx_args is above
14610 number of provided arguments.
14611
14612 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
14613
14614 PR tree-optimization/89437
14615 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
14616
14617 2019-03-04 Richard Biener <rguenther@suse.de>
14618
14619 PR middle-end/89572
14620 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
14621 safe_dyn_cast.
14622
14623 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
14624
14625 PR tree-optimization/89487
14626 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
14627 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
14628 (distribute_loop): Don't do runtime alias check if there is non-
14629 addressable data reference.
14630 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
14631 is a register variable.
14632
14633 2019-03-02 Jakub Jelinek <jakub@redhat.com>
14634
14635 PR target/89506
14636 * config/arm/arm.md (cmpsi2_addneg): Use
14637 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
14638 If operands[2] is 0 or INT_MIN, force use of subs.
14639 (*compare_scc splitter): Use gen_int_mode.
14640 (*negscc): Likewise.
14641 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
14642
14643 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
14644 Monk Chiang <sh.chiang04@gmail.com>
14645
14646 * common/config/riscv/riscv-common.c: Include sstream.
14647 (riscv_subset_list::to_string): New.
14648 (riscv_arch_str): Likewise.
14649 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
14650 * config.in: Regen.
14651 * config/riscv/riscv-protos.h (riscv_arch_str): New.
14652 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
14653 (riscv_emit_attribute): New.
14654 (riscv_file_start): Emit attribute if needed.
14655 (riscv_option_override): Init riscv_emit_attribute_p.
14656 * config/riscv/riscv.opt (mriscv-attribute): New option.
14657 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
14658 * configure: Regen.
14659 * doc/install.texi: Document --with-riscv-attribute.
14660 * doc/invoke.texi: Document -mriscv-attribute.
14661
14662 * common/config/riscv/riscv-common.c:
14663 Include config/riscv/riscv-protos.h.
14664 (INCLUDE_STRING): Defined.
14665 (RISCV_DONT_CARE_VERSION): Defined.
14666 (riscv_subset_t): Declare.
14667 (riscv_subset_t::riscv_subset_t): New.
14668 (riscv_subset_list): Declare.
14669 (riscv_subset_list::riscv_subset_list): New.
14670 (riscv_subset_list::~riscv_subset_list): Likewise.
14671 (riscv_subset_list::parsing_subset_version): Likewise.
14672 (riscv_subset_list::parse_std_ext): Likewise.
14673 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14674 (riscv_subset_list::add): Likewise.
14675 (riscv_subset_list::lookup): Likewise.
14676 (riscv_subset_list::xlen): Likewise.
14677 (riscv_subset_list::parse): Likewise.
14678 (riscv_supported_std_ext): Likewise.
14679 (current_subset_list): Likewise.
14680 (riscv_parse_arch_string): Using riscv_subset_list::parse to
14681 parse.
14682
14683 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
14684
14685 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14686 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
14687 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
14688
14689 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
14690
14691 PR rtl-optimization/85899
14692 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
14693 fallthru edges leading to the exit block.
14694
14695 2019-03-01 Tamar Christina <tamar.christina@arm.com>
14696
14697 PR target/89517
14698 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
14699 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
14700
14701 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
14702
14703 PR tree-optimization/89535
14704 * tree-vect-stmts.c (vectorizable_call): Record the vector types
14705 for each operand. Calculate the fallback choice for mask operands
14706 and pass it to vect_get_vec_def_for_operand.
14707
14708 2019-03-01 Richard Biener <rguenther@suse.de>
14709
14710 PR middle-end/89541
14711 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
14712 get virtual operands.
14713 (get_expr_operands): Handle CONST_DECL like other decls.
14714
14715 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14716
14717 PR middle-end/89503
14718 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
14719 on DECL_P and EXPR_P.
14720
14721 2019-03-01 Richard Biener <rguenther@suse.de>
14722
14723 PR middle-end/89497
14724 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
14725 argument, defaulted to zero.
14726 * passes.c (execute_function_todo): Pass down SSA update flags
14727 to cleanup_tree_cfg.
14728 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
14729 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
14730 form if requested.
14731 (cleanup_tree_cfg): Get and pass down SSA update flags.
14732
14733 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14734
14735 PR bootstrap/89539
14736 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
14737 early_lto_debug argument.
14738
14739 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
14740
14741 PR tree-optimization/89536
14742 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
14743 only whether bit #0 of the value is 0 instead of the entire value.
14744
14745 2019-02-28 Marek Polacek <polacek@redhat.com>
14746
14747 PR c++/87068 - missing diagnostic with fallthrough statement.
14748 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
14749 at the end of a seq, save its location to walk_stmt_info.
14750 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
14751 a switch.
14752
14753 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
14754
14755 PR lto/88585
14756 * tree.c (find_atomic_core_type): Move ahead in file.
14757 (check_base_type): Correctly compare alignments of atomic types.
14758
14759 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
14760
14761 PR target/89455
14762 * config/i386/i386.c (get_builtin_code_for_version): Identify
14763 Westmere from PCLMUL, instead of AES.
14764
14765 2019-02-28 Jakub Jelinek <jakub@redhat.com>
14766
14767 PR target/89434
14768 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
14769 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
14770 -UINTVAL (...).
14771
14772 2019-02-28 Tamar Christina <tamar.christina@arm.com>
14773
14774 PR target/88530
14775 * config/aarch64/aarch64-option-extensions.def: Document it.
14776 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
14777 if empty hwcaps.
14778
14779 2019-02-28 Jakub Jelinek <jakub@redhat.com>
14780
14781 PR c/89520
14782 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
14783 builtins if they don't have a single scalar floating point argument.
14784 Formatting fixes.
14785
14786 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
14787
14788 PR rtl-optimization/89490
14789 * varasm.c (get_block_for_section): Bail out for mergeable sections.
14790 (default_use_anchors_for_symbol_p, output_object_block): Assert the
14791 block section is not mergeable.
14792
14793 2019-02-27 Jakub Jelinek <jakub@redhat.com>
14794
14795 PR target/70341
14796 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
14797 old define_insn to ...
14798 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
14799 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
14800 Rename old define_insn to ...
14801 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
14802 (thumb2_casesi_internal_pic): New define_expand. Rename old
14803 define_insn to ...
14804 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
14805 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
14806 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
14807
14808 2019-02-27 Richard Biener <rguenther@suse.de>
14809
14810 PR debug/88878
14811 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
14812
14813 2019-02-27 Richard Biener <rguenther@suse.de>
14814
14815 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
14816 building.
14817
14818 2019-02-27 Richard Biener <rguenther@suse.de>
14819
14820 PR debug/88878
14821 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
14822 parameter, prefix section name with .gnu.debuglto_ if true.
14823 (dwarf2out_finish): Pass false to output_comdat_type_unit.
14824 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
14825
14826 2019-02-27 Richard Biener <rguenther@suse.de>
14827
14828 PR debug/89514
14829 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
14830 rather than on use_debug_types, doing what output_die does.
14831 (value_format): Likewise.
14832
14833 2019-02-27 Martin Jambor <mjambor@suse.cz>
14834 Martin Sebor <msebor@redhat.com>
14835
14836 * doc/invoke.texi (Warning Options): Reword description of
14837 -Wno-absolute-value.
14838
14839 2019-02-27 Jakub Jelinek <jakub@redhat.com>
14840
14841 PR tree-optimization/89280
14842 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
14843 builtin_setjmp_setup_bb): New functions.
14844 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
14845 When visiting __builtin_setjmp_setup block, queue in special
14846 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
14847 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
14848 from visited after the loop if they don't have any visited successor
14849 blocks.
14850
14851 2018-02-26 Steve Ellcey <sellcey@marvell.com>
14852
14853 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
14854 New function.
14855 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
14856
14857 2019-02-26 Jakub Jelinek <jakub@redhat.com>
14858
14859 PR c++/89507
14860 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
14861 with types other than sizetype/ssizetype.
14862
14863 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
14864
14865 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
14866 (enum sparc_processor_type): ...this.
14867 (enum sparc_code_model_type): New enumeration type.
14868 (enum sparc_memory_model_type): Tweak comments.
14869 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
14870 (mtune): Likewise.
14871 (mcmodel): Use sparc_code_model enumeration and variable.
14872 (sparc_code_model): New enumeration.
14873 (mdebug): Add Undocumented marker.
14874 * config/sparc/sparc.h (enum cmodel): Delete.
14875 (sparc_cmodel): Likewise.
14876 (TARGET_CM_MEDLOW): Adjust to above renaming.
14877 (TARGET_CM_MEDMID): Likewise.
14878 (TARGET_CM_MEDANY): Likewise.
14879 (TARGET_CM_EMBMEDANY): Likewise.
14880 * config/sparc/sparc.c (sparc_cmodel): Delete.
14881 (sparc_option_override): Remove string/value mapping support for the
14882 code model. Move code and memory model support to after the handling
14883 of target flags. Do private machine setup last.
14884 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
14885 (sparc_legitimize_reload_address): Likewise.
14886 (sparc_output_mi_thunk): Likewise.
14887 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
14888
14889 2019-02-26 Jakub Jelinek <jakub@redhat.com>
14890
14891 PR tree-optimization/89500
14892 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
14893 (handle_builtin_strlen): Remove noncst_bound variable. Always
14894 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
14895 cst if the first cst bytes starting at x are known to be non-zero,
14896 even if the string is not zero terminated. Don't try to modify
14897 *si for strnlen. Update strlen_to_stridx only for strlen or if
14898 we can prove strnlen returns the same value as strlen would.
14899
14900 2019-02-26 Martin Liska <mliska@suse.cz>
14901
14902 * alloc-pool.h (struct pool_usage): Remove extra
14903 print_dash_line.
14904 * bitmap.h (struct bitmap_usage): Likewise.
14905 * ggc-common.c (struct ggc_usage): Likewise.
14906 * mem-stats.h (struct mem_usage): Likewise.
14907 (mem_alloc_description::dump): Print dash lines
14908 here and repeat header at the end of a table report.
14909 It's then more readable.
14910 * tree-phinodes.c (phinodes_print_statistics): Make
14911 horizontal alignment.
14912 * tree-ssanames.c (ssanames_print_statistics): Likewise.
14913 * vec.c (struct vec_usage): Remove extra print_dash_line.
14914 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
14915
14916 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
14917
14918 * doc/extend.texi (__builtin_object_size):
14919 Use @pxref instead of @xref inside parenthesis.
14920 (__builtin_has_attribute): Add missing comma after @xref.
14921 (__builtin_object_size): Ditto.
14922 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
14923
14924 2019-02-26 Jeff Law <law@redhat.com>
14925
14926 PR rtl-optimization/87761
14927 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
14928 detect obviously dead insns and delete them.
14929
14930 2019-02-26 Richard Biener <rguenther@suse.de>
14931
14932 PR tree-optimization/89505
14933 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
14934 to handle restrict pointed-to vars with multiple subvars
14935 correctly.
14936
14937 2019-02-26 Richard Biener <rguenther@suse.de>
14938
14939 PR tree-optimization/89489
14940 * tree-parloops.c (create_loop_fn): Copy over last_clique.
14941
14942 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
14943
14944 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
14945 and move around comment.
14946 <BIT_AND_EXPR>: Likewise.
14947 <BIT_NOT_EXPR>: Add specific handling for boolean types.
14948
14949 2019-02-26 Jakub Jelinek <jakub@redhat.com>
14950
14951 PR target/89474
14952 * config/i386/i386.c (remove_partial_avx_dependency): Call
14953 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
14954 after changing possibly many instructions to use that pseudo. Fix up
14955 insertion of v4sf_const0 setter at the start of bb.
14956
14957 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
14958
14959 PR c/80409
14960 * doc/extend.texi (Variadic Pointer Args): New section.
14961
14962 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
14963 Martin Sebor <msebor@gmail.com>
14964
14965 * common.opt (Wattribute-alias): Likewise.
14966 * doc/invoke.texi (Option Summary): List general form of
14967 -Wattribute-alias=. List positive form of -Wmissing-attributes.
14968 (-Wmissing-attributes): Invert entry, rewrite and correct default.
14969 Add cross-references.
14970 (-Wattribute-alias): Rewrite and correct default. Mention
14971 considered attributes (same as for -Wmissing-attributes).
14972
14973 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
14974
14975 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
14976 (_mm_cvtpd_ps): Likewise.
14977 (_mm_cvttpd_epi32): Likewise.
14978
14979 PR target/89338
14980 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
14981 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
14982
14983 PR target/89339
14984 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
14985
14986 2019-02-25 Tamar Christina <tamar.christina@arm.com>
14987
14988 PR target/88530
14989 * common/config/aarch64/aarch64-common.c
14990 (struct aarch64_option_extension): Add is_synthetic.
14991 (all_extensions): Use it.
14992 (TARGET_OPTION_INIT_STRUCT): Define hook.
14993 (struct gcc_targetm_common): Moved to end.
14994 (all_extensions_by_on): New.
14995 (opt_ext_cmp, typedef opt_ext): New.
14996 (aarch64_option_init_struct): New.
14997 (aarch64_contains_opt): New.
14998 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
14999 * config/aarch64/aarch64-option-extensions.def
15000 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
15001 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
15002 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
15003 Set is_synthetic to false.
15004 (crypto): Set is_synthetic to true.
15005 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
15006 SYNTHETIC.
15007
15008 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15009
15010 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15011 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
15012 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15013 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
15014 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
15015 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
15016 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
15017 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
15018 Rename ...
15019 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
15020 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15021 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
15022 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
15023 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
15024 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
15025 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
15026 vfmlsl_laneq_high_f16): ... To this.
15027 * config/arm/neon.md: Update comments.
15028
15029 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15030
15031 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15032 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
15033 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15034 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
15035 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
15036 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
15037 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
15038 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
15039 Rename ...
15040 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
15041 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15042 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
15043 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
15044 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
15045 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
15046 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
15047 vfmlslq_laneq_high_f16): ... To this.
15048
15049 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
15050
15051 PR rtl-optimization/86096
15052 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
15053 comparing mw_order values.
15054
15055 2019-02-25 Jakub Jelinek <jakub@redhat.com>
15056
15057 PR target/89434
15058 * config/arm/arm.md (*subsi3_carryin_const): Use
15059 arm_neg_immediate_operand predicate instead of
15060 arm_not_immediate_operand, "L" constraint instead of "K" and
15061 print it using %n2 instead of %B2.
15062 (*subsi3_carryin_const0): New define_insn.
15063 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
15064 instead of arm_not_operand and "I" constraint instead of "K" and
15065 print it using %n3 instead of %B2. Instead of using match_dup 2 add
15066 another match_operand and in the condition check that it is negation
15067 of operands[2].
15068 (*subsi3_carryin_compare_const0): New define_ins.
15069 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
15070 *subsi3_carryin_const.
15071 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
15072 split into *subsi3_carryin_compare_const0 if the highpart is zero.
15073
15074 PR target/89438
15075 * config/arm.vfp.md (*negdf2_vfp): Use
15076 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
15077 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
15078
15079 2019-02-24 Jakub Jelinek <jakub@redhat.com>
15080
15081 PR rtl-optimization/89445
15082 * simplify-rtx.c (simplify_ternary_operation): Don't use
15083 simplify_merge_mask on operands that may trap.
15084 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
15085 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
15086 second operand is CONST_VECTOR, check if any element could be zero.
15087 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
15088 their operands can trap.
15089
15090 2019-02-23 Martin Sebor <msebor@redhat.com>
15091
15092 * gimple-ssa-sprintf.c (target_strtol): Rename...
15093 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
15094 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
15095 check for range error.
15096
15097 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
15098
15099 PR driver/69471
15100 * opts-common.c (prune_options): Also prune joined switches
15101 with Negative and RejectNegative.
15102 * config/i386/i386.opt (march=): Add Negative(march=).
15103 (mtune=): Add Negative(mtune=).
15104 * doc/options.texi: Document Negative used together with Joined
15105 and RejectNegative.
15106
15107 2019-02-22 Martin Sebor <msebor@redhat.com>
15108
15109 * doc/extend.texi (Other Builtins): Add
15110 __builtin_is_constant_evaluated.
15111
15112 2019-02-22 Richard Biener <rguenther@suse.de>
15113
15114 PR tree-optimization/87609
15115 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
15116
15117 2019-02-22 Jeff Law <law@redhat.com>
15118
15119 PR rtl-optimization/87761
15120 * config/mips/mips.md: Add new combiner pattern to recognize
15121 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
15122
15123 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
15124
15125 PR target/89324
15126 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
15127 destination register in peepholes generating patterns for ADDS/SUBS.
15128 (add<mode>3_compare0,
15129 *addsi3_compare0_uxtw, add<mode>3_compareC,
15130 add<mode>3_compareV_imm, add<mode>3_compareV,
15131 *adds_<optab><ALLX:mode>_<GPI:mode>,
15132 *subs_<optab><ALLX:mode>_<GPI:mode>,
15133 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
15134 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
15135 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
15136 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
15137 sub<mode>3_compare1): Allow stack pointer for source register.
15138 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
15139
15140 2019-02-22 Martin Sebor <msebor@redhat.com>
15141
15142 PR tree-optimization/88993
15143 PR tree-optimization/88853
15144 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
15145 New helper.
15146 (sprintf_dom_walker::call_info::is_string_func): New helper.
15147 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
15148 for formatted string functions.
15149 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
15150
15151 2019-02-22 Martin Sebor <msebor@redhat.com>
15152
15153 PR c/89425
15154 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
15155 unreachable subexpressions.
15156
15157 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
15158 Hongtao Liu <hongtao.liu@intel.com>
15159 Sunil K Pandey <sunil.k.pandey@intel.com>
15160
15161 PR target/87007
15162 * config/i386/i386-passes.def: Add
15163 pass_remove_partial_avx_dependency.
15164 * config/i386/i386-protos.h
15165 (make_pass_remove_partial_avx_dependency): New.
15166 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
15167 New function.
15168 (pass_data_remove_partial_avx_dependency): New.
15169 (pass_remove_partial_avx_dependency): Likewise.
15170 (make_pass_remove_partial_avx_dependency): Likewise.
15171 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
15172 (*extendsfdf2): Add avx_partial_xmm_update.
15173 (truncdfsf2): Likewise.
15174 (*float<SWI48:mode><MODEF:mode>2): Likewise.
15175 (SF/DF conversion splitters): Disabled for TARGET_AVX.
15176
15177 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
15178
15179 PR middle-end/85598
15180 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
15181 analysis for pass.
15182
15183 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
15184
15185 PR target/89444
15186 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
15187 (PTA_SKYLAKE): Add PTA_AES.
15188 (PTA_GOLDMONT): Likewise.
15189
15190 2019-02-22 Sudakshina Das <sudi.das@arm.com>
15191
15192 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
15193 instruction if enabled.
15194 (aarch64_override_options): Remove reference to return address key.
15195
15196 2019-02-22 Richard Biener <rguenther@suse.de>
15197
15198 PR tree-optimization/89440
15199 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15200 not necessary assert.
15201
15202 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
15203
15204 PR fortran/72741
15205 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
15206 (oacc_replace_fn_attrib_attr): ... this new function.
15207 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
15208 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
15209
15210 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15211
15212 * config/arm/arm-cpus.in (ares): Rename to...
15213 (neoverse-n1): ... This. Add ares as alias.
15214 * config/arm/arm-tables.opt: Regenerate.
15215 * config/arm/arm-tune.md: Likewise.
15216 * doc/invoke.txt (ARM Options): Document neoverse-n1.
15217
15218 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15219
15220 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
15221 * config/aarch64/aarch64-tune.md: Regenerate.
15222 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
15223
15224 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15225
15226 * config/aarch64/aarch64.c (ares_tunings): Rename to...
15227 (neoversen1_tunings): ... This.
15228 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
15229 (neoverse-n1): New CPU.
15230 * config/aarch64/aarch64-tune.md: Regenerate.
15231 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
15232
15233 2019-02-22 Richard Biener <rguenther@suse.de>
15234
15235 PR middle-end/87609
15236 * cfghooks.h (dependence_hash): New typedef.
15237 (struct copy_bb_data): New type.
15238 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
15239 (duplicate_block): Likewise.
15240 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
15241 (copy_bbs): Create and pass down copy_bb_data.
15242 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
15243 (rtl_duplicate_bb): Likewise.
15244 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
15245 remap dependence info.
15246
15247 2019-02-22 Richard Biener <rguenther@suse.de>
15248
15249 PR tree-optimization/87609
15250 * tree-core.h (tree_base): Document special clique values.
15251 * tree-inline.c (remap_dependence_clique): Do not use the
15252 special clique value of one.
15253 (maybe_set_dependence_info): Use clique one.
15254 (clear_dependence_clique): New callback.
15255 (compute_dependence_clique): Clear clique one from all refs
15256 before assigning it (again).
15257
15258 2019-02-21 Martin Sebor <msebor@redhat.com>
15259
15260 * doc/extend.texi (__clear_cache): Correct signature.
15261
15262 2019-02-21 Ian Lance Taylor <iant@golang.org>
15263
15264 PR go/89170
15265 * varasm.c (decode_addr_const): Call lookup_constant_def rather
15266 than output_constant_def.
15267 (add_constant_to_table): New static function.
15268 (output_constant_def): Call add_constant_to_table.
15269 (tree_output_constant_def): Likewise.
15270
15271 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15272
15273 PR c++/89285
15274 * builtins.c (fold_builtin_arith_overflow): If first two args are
15275 INTEGER_CSTs, set intres and ovfres to constants rather than calls
15276 to ifn.
15277
15278 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
15279
15280 PR target/87412
15281 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
15282 error for -mindirect-branch/-mfunction-return with incompatible
15283 -fcf-protection.
15284
15285 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15286
15287 PR bootstrap/88714
15288 * constraints.md (q): Remove.
15289 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
15290 instead of q.
15291
15292 2019-02-21 Martin Jambor <mjambor@suse.cz>
15293
15294 PR hsa/89302
15295 * omp-general.c (omp_extract_for_data): Removed a duplicate call
15296 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
15297 (omp_adjust_for_condition): ...here. Added necessary parameters.
15298 * omp-general.h (omp_adjust_for_condition): Updated declaration.
15299 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
15300 proper values to new parameters of omp_adjust_for_condition.
15301
15302 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15303
15304 PR middle-end/89412
15305 * expr.c (expand_assignment): If result is a MEM, use change_address
15306 instead of simplify_gen_subreg.
15307
15308 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15309 David Malcolm <dmalcolm@redhat.com>
15310
15311 PR middle-end/89091
15312 * fold-const.c (decode_field_reference): Return NULL_TREE if
15313 lang_hooks.types.type_for_size returns NULL. Check it before
15314 overwriting *exp_. Use return NULL_TREE instead of return 0.
15315
15316 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15317
15318 PR middle-end/88074
15319 PR middle-end/89415
15320 * toplev.c (do_compile): Double the emin/emax exponents to workaround
15321 buggy mpc_norm.
15322
15323 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
15324
15325 PR target/89397
15326 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
15327 TARGET_SSE in addition to TARGET_SSE_MATH.
15328
15329 (ix86_excess_precision): Ditto.
15330 (ix86_float_exceptions_rounding_supported_p): Ditto.
15331 (use_rsqrt_p): Ditto.
15332 * config/i386/sse.md (rsqrt<mode>2): Ditto.
15333
15334 2019-02-20 David Malcolm <dmalcolm@redhat.com>
15335
15336 PR c/89410
15337 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
15338 linenum_arith_t when determining if two adjacent line spans are
15339 close enough to merge.
15340 (diagnostic_show_locus): Use linenum_arith_t when iterating over
15341 lines within each line_span.
15342
15343 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
15344
15345 PR target/86487
15346 * lra-constraints.c(uses_hard_regs_p): Fix handling of
15347 paradoxical SUBREGS.
15348
15349 2019-02-20 Li Jia He <helijia@linux.ibm.com>
15350
15351 PR target/88100
15352 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
15353 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
15354 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
15355 range checking it.
15356
15357 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
15358
15359 * config/gcn/gcn.c (print_operand): Fix typo.
15360
15361 2019-02-19 Richard Biener <rguenther@suse.de>
15362
15363 PR middle-end/88074
15364 * toplev.c (do_compile): Initialize mpfr's exponent range
15365 based on available float modes.
15366
15367 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
15368
15369 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
15370 as long as the epilogue isn't completed.
15371
15372 2019-02-18 Martin Sebor <msebor@redhat.com>
15373
15374 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
15375 __has_cpp_attribute, and __has_include.
15376
15377 2019-02-18 Martin Sebor <msebor@redhat.com>
15378
15379 * doc/invoke.texi (-Wreturn-type): Correct and expand.
15380
15381 2019-02-18 Martin Sebor <msebor@redhat.com>
15382
15383 PR middle-end/89294
15384 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
15385 expression.
15386 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
15387
15388 2019-02-18 Richard Biener <rguenther@suse.de>
15389
15390 PR tree-optimization/89296
15391 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
15392 of no-warning flag to cases that might emit the bogus warning.
15393
15394 2019-02-18 Jakub Jelinek <jakub@redhat.com>
15395
15396 PR bootstrap/88714
15397 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
15398 "q" constraint.
15399 * config/arm/vfp.md (*movdi_vfp): Likewise.
15400 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
15401 "q" constraint for operands[0].
15402
15403 PR target/89369
15404 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
15405 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
15406 pattern in a temporary buffer.
15407 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
15408 than 64-operands[2].
15409
15410 PR target/89361
15411 * config/s390/s390.c (s390_indirect_branch_attrvalue,
15412 s390_indirect_branch_settings): Define unconditionally.
15413 (s390_set_current_function): Likewise, but guard the whole body except
15414 the s390_indirect_branch_settings call with
15415 #if S390_USE_TARGET_ATTRIBUTE.
15416 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
15417
15418 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
15419 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
15420 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
15421 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
15422 HOST_WIDE_INT_1U instead of 1ULL.
15423 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
15424 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
15425 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
15426 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
15427 instead of 1UL.
15428 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
15429 instead of 1ul.
15430
15431 2019-02-18 Martin Jambor <mjambor@suse.cz>
15432
15433 PR tree-optimization/89209
15434 * tree-sra.c (create_access_replacement): New optional parameter
15435 reg_tree. Use it as a type if non-NULL and access type is not of
15436 a register type.
15437 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
15438 to create_access_replacement.
15439 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
15440 Check lacc is non-NULL before attempting to re-create it on the RHS.
15441
15442 2019-02-18 Martin Liska <mliska@suse.cz>
15443
15444 PR ipa/89306
15445 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
15446 by default.
15447 (symbol_table::free_edge): Recycle m_summary_id.
15448 * cgraph.h (get_summary_id): New.
15449 (symbol_table::release_symbol): Set m_summary_id to -1
15450 by default.
15451 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
15452 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
15453 function_summary to fast_function_summary.
15454 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
15455 * ipa-pure-const.c (class funct_state_summary_t):
15456 Switch from function_summary to fast_function_summary.
15457 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
15458 (class ipa_ref_opt_summary_t): Switch from function_summary
15459 to fast_function_summary.
15460 * symbol-summary.h (class function_summary_base): New class
15461 that is created from base of former function_summary.
15462 (function_summary_base::unregister_hooks): New.
15463 (class function_summary): Inherit from function_summary_base.
15464 (class call_summary_base): New class
15465 that is created from base of former call_summary.
15466 (class call_summary): Inherit from call_summary_base.
15467 (struct is_same): New.
15468 (class fast_function_summary): New summary class.
15469 (class fast_call_summary): New summary class.
15470 * vec.h (vec_safe_grow_cleared): New function.
15471
15472 2019-02-18 Martin Liska <mliska@suse.cz>
15473
15474 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
15475 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
15476 * doc/tm.texi: Document new target hook.
15477 * doc/tm.texi.in: Likewise.
15478 * target.def: Add new target macro.
15479 * gcc.c (find_fortran_preinclude_file): Do not search multilib
15480 suffixes.
15481
15482 2019-02-17 Alan Modra <amodra@gmail.com>
15483
15484 PR target/89271
15485 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
15486 output reg on add insn.
15487 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
15488
15489 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15490
15491 PR target/89372
15492 * config/i386/sse.md (ssedoublemode): Remove V4HI.
15493 (PMULHRSW): Likewise.
15494 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
15495 TARGET_AVX2.
15496 (ssse3_pmulhrswv4hi3): New expander.
15497
15498 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15499
15500 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
15501 MMX. Add isa attribute.
15502
15503 2019-02-16 Jakub Jelinek <jakub@redhat.com>
15504
15505 PR rtl-optimization/66152
15506 * builtins.h (c_readstr): Declare.
15507 * builtins.c (c_readstr): Remove forward declaration. Add
15508 null_terminated_p argument, if false, read all bytes from the
15509 string instead of stopping after '\0'.
15510 * expr.c (string_cst_read_str): New function.
15511 (store_expr): Use string_cst_read_str instead of
15512 builtin_strncpy_read_str. Try to store by pieces the whole
15513 exp_len first, and only if that fails, split it up into
15514 store by pieces followed by clear_storage. Formatting fix.
15515
15516 * config/i386/i386.md (*movqi_internal): Remove static from
15517 buf variable. Use output_asm_insn (buf, operands); return "";
15518 instead of return buf;.
15519 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
15520 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
15521 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
15522
15523 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15524
15525 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
15526 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
15527 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
15528 (CC1_SPEC): Likewise.
15529 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
15530
15531 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15532
15533 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
15534 the base address on 64-bit strict-alignment platforms.
15535
15536 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
15537
15538 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
15539
15540 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15541
15542 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
15543
15544 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
15545
15546 PR rtl-optimization/88308
15547 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
15548 on copied instruction.
15549
15550 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15551
15552 * final.c (insn_current_reference_address): Replace test on JUMP_P
15553 with test on jump_to_label_p.
15554 * config/visium/visium-passes.def: New file.
15555 * config/visium/t-visium (PASSES_EXTRA): Define.
15556 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
15557 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
15558 (TRAMPOLINE_ALIGNMENT): Define.
15559 * config/visium/visium.c (visium_option_override): Do not register
15560 the machine-specific reorg pass here.
15561 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
15562 for the GR6.
15563 (output_branch): Adjust threshold for long branch instruction.
15564 * config/visium/visium.md (cpu): Move around.
15565 (length): Adjust for the GR6.
15566
15567 2019-02-15 Richard Biener <rguenther@suse.de>
15568 Jakub Jelinek <jakub@redhat.com>
15569
15570 PR tree-optimization/89278
15571 * tree-loop-distribution.c: Include tree-eh.h.
15572 (generate_memset_builtin, generate_memcpy_builtin): Call
15573 rewrite_to_non_trapping_overflow on builtin->size before passing it
15574 to force_gimple_operand_gsi.
15575
15576 2019-02-15 Jakub Jelinek <jakub@redhat.com>
15577
15578 PR other/89342
15579 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
15580 optimize_debug.
15581 * opth-gen.awk: Likewise.
15582
15583 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15584
15585 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
15586 Enable MMX, SSE and SSE2 by default.
15587 * config/i386/i386.c (ix86_option_override_internal): Do not
15588 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
15589
15590 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15591
15592 PR rtl-optimization/89354
15593 * combine.c (make_extraction): Punt if extraction_mode is narrower
15594 than len bits.
15595
15596 2019-02-14 Maya Rashish <coypu@sdf.org>
15597
15598 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
15599 * config/netbsd-d.c: New file.
15600 * config/t-netbsd: Add netbsd-d.o
15601
15602 2018-02-14 Steve Ellcey <sellcey@marvell.com>
15603
15604 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
15605 affects_type_identity to true for aarch64_vector_pcs.
15606 (aarch64_comp_type_attributes): New function.
15607 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
15608
15609 2019-02-14 Tamar Christina <tamar.christina@arm.com>
15610
15611 PR target/88850
15612 * config/arm/iterators.md (ANY64): Add V4HF.
15613
15614 2019-02-14 Martin Liska <mliska@suse.cz>
15615
15616 PR rtl-optimization/89242
15617 * dce.c (delete_unmarked_insns): Call free_dominance_info we
15618 process a transformation.
15619
15620 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15621
15622 PR tree-optimization/89314
15623 * fold-const.c (fold_binary_loc): Cast strlen argument to
15624 const char * before dereferencing it. Formatting fixes.
15625
15626 PR middle-end/89284
15627 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
15628
15629 2019-02-13 Ian Lance Taylor <iant@golang.org>
15630
15631 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
15632 and set current index for other optimizations.
15633
15634 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
15635
15636 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
15637 nonimmediate_operand as operand 2 predicate.
15638 (vec_set<VF2_512_256:mode>_0): Ditto.
15639 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
15640 (*vec_concatv2si): Remove alternative 2.
15641 (*vec_concatv4si_0): Use vm constraint for alternative 0.
15642 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
15643 (vec_concatv2di): Split alternatives 4,5,6 to ...
15644 (*vec_concatv2di_0) ... new pattern.
15645
15646 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
15647
15648 PR target/89190
15649 * config/arm/arm.c (ldm_stm_operation_p) Set
15650 addr_reg_in_reglist correctly for first register.
15651 (load_multiple_sequence): Remove dead base check.
15652 (gen_ldm_seq): Correctly set write_back for Thumb-1.
15653
15654 2019-02-13 Tamar Christina <tamar.christina@arm.com>
15655
15656 PR target/88847
15657 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
15658 Expose as @aarch64_pred_mov.
15659 * config/aarch64/aarch64.c (aarch64_classify_address):
15660 Use expand_insn which legitimizes operands.
15661
15662 2019-02-13 Martin Liska <mliska@suse.cz>
15663
15664 * builtins.h (expand_builtin_with_bounds): Remove declaration.
15665 * calls.c (struct arg_data): Remove special_slot, pointer_arg
15666 and pointer_offset fields.
15667 (initialize_argument_information): Remove usage of dead
15668 fields.
15669 * cgraph.h (struct cgraph_thunk_info): Remove
15670 add_pointer_bounds_args.
15671 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
15672 fields.
15673 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
15674 fields.
15675 * config/i386/i386.c (ix86_function_arg_advance): Remove
15676 unrelated comment.
15677 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
15678 (def_builtin): Remove usage of dead fields.
15679 (ix86_add_new_builtins): Likewise.
15680 * ipa-fnsummary.c (compute_fn_summary): Likewise.
15681 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15682 (sem_function::init): Likewise.
15683 (sem_variable::merge): Likewise.
15684 * ipa-visibility.c (function_and_variable_visibility): Likewise.
15685 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
15686 * lto-cgraph.c (lto_output_node): Likewise.
15687 (lto_output_varpool_node): Likewise.
15688 (input_node): Likewise.
15689 (input_varpool_node): Likewise.
15690 * lto-streamer-out.c (lto_output): Likewise.
15691 * tree-inline.c (expand_call_inline): Remove usage of
15692 assign_stmts.
15693 * tree-inline.h (struct copy_body_data): Likewise.
15694 * varpool.c (varpool_node::dump): Likewise.
15695
15696 2019-02-13 Jakub Jelinek <jakub@redhat.com>
15697
15698 PR middle-end/89303
15699 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
15700 into pt->vars_contains_escaped_heap instead of setting
15701 pt->vars_contains_escaped_heap to it.
15702
15703 PR middle-end/89281
15704 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
15705 INTVAL (size), compare it to GET_MODE_MASK instead of
15706 1 << GET_MODE_BITSIZE.
15707
15708 PR target/89290
15709 * config/i386/predicates.md (x86_64_immediate_operand): Allow
15710 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
15711 -mcmodel=large.
15712
15713 2019-02-13 Martin Liska <mliska@suse.cz>
15714
15715 PR lto/88858
15716 * cfgrtl.c (remove_barriers_from_footer): New function.
15717 (try_redirect_by_replacing_jump): Use it.
15718 (cfg_layout_redirect_edge_and_branch): Likewise.
15719
15720 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15721
15722 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
15723 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
15724 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
15725 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
15726 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
15727 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
15728 New BU_CRYPTO_2.
15729 * config/rs6000/rs6000.c (builtin_function_type)
15730 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
15731 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
15732 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
15733 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
15734 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
15735
15736 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
15737
15738 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
15739 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
15740
15741 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
15742
15743 PR target/89229
15744 * config/i386/i386.md (*movoi_internal_avx): Revert revision
15745 268678 and revision 268657.
15746 (*movti_internal): Likewise.
15747
15748 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
15749
15750 PR target/89233
15751 * config/s390/s390.c (s390_decompose_address): Update comment.
15752 (s390_check_qrst_address): Reject invalid address forms after
15753 LRA.
15754
15755 2019-02-12 Martin Liska <mliska@suse.cz>
15756
15757 PR lto/88876
15758 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
15759 we need default values of funct_state for a function that
15760 is not optimized.
15761
15762 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
15763
15764 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
15765 the object to pick the size of stores on strict-alignment platforms.
15766
15767 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
15768 (*movdi_insn_sp32): Likewise.
15769 (*movdi_insn_sp64): Likewise.
15770
15771 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
15772
15773 PR lto/88677
15774 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
15775 types that needs constructiong.
15776 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
15777
15778 2019-02-12 Richard Biener <rguenther@suse.de>
15779
15780 PR tree-optimization/89253
15781 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
15782 duplicate the loop.
15783
15784 2019-02-11 David Malcolm <dmalcolm@redhat.com>
15785
15786 PR lto/88147
15787 * input.c (selftest::test_line_offset_overflow): New selftest.
15788 (selftest::input_c_tests): Call it.
15789
15790 2019-02-11 Martin Sebor <msebor@redhat.com>
15791
15792 PR tree-optimization/88771
15793 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
15794 when -Wstringop-overflow is set.
15795 (builtin_memref::builtin_memref): Adjust excessive upper bound
15796 only when lower bound is not excessive.
15797 (maybe_diag_overlap): Detect and diagnose excessive bounds via
15798 -Wstringop-ovefflow.
15799 (maybe_diag_offset_bounds): Rename...
15800 (maybe_diag_access_bounds): ...to this.
15801 (check_bounds_or_overlap): Adjust for name change above.
15802
15803 2019-02-11 Martin Sebor <msebor@redhat.com>
15804
15805 PR c++/87996
15806 * builtins.c (max_object_size): Move from here...
15807 * builtins.h (max_object_size): ...and here...
15808 * tree.c (max_object_size): ...to here...
15809 * tree.h (max_object_size): ...and here.
15810
15811 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
15812
15813 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
15814 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
15815 for correct semantics.
15816
15817 2019-02-11 Alan Modra <amodra@gmail.com>
15818
15819 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
15820 -mlongcall and -mpltseq.
15821 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
15822 (RS/6000 and PowerPC Options <-mpltseq>): Document.
15823 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
15824 * config/rs6000/sysv4.opt (mpltseq): New option.
15825 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
15826 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
15827 support is lacking. Don't allow -mpltseq with -mbss-plt.
15828 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
15829 -mpltseq given for ELFv1.
15830 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
15831 Only use UNSPEC_PLTSEQ for inline PLT calls.
15832 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
15833 use UNSPEC_PLTSEQ for inline PLT calls.
15834 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
15835 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
15836 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
15837 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
15838 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
15839 (pltseq_mtctr_<mode>): Likewise.
15840
15841 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15842
15843 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
15844 Solaris ld.
15845 * configure: Regenerate.
15846
15847 2019-02-11 Jakub Jelinek <jakub@redhat.com>
15848
15849 PR bootstrap/88714
15850 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
15851 instead of r.
15852
15853 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
15854
15855 * function.c (assign_parm_setup_block): Use the stored
15856 size, not the passed size, when allocating stack-space,
15857 also for a parameter with alignment larger than
15858 MAX_SUPPORTED_STACK_ALIGNMENT.
15859
15860 2019-02-11 Martin Liska <mliska@suse.cz>
15861
15862 PR ipa/89009
15863 * ipa-cp.c (build_toporder_info): Remove usage of a param.
15864 * ipa-inline.c (inline_small_functions): Likewise.
15865 * ipa-pure-const.c (propagate_pure_const): Likewise.
15866 (propagate_nothrow): Likewise.
15867 * ipa-reference.c (propagate): Likewise.
15868 * ipa-utils.c (struct searchc_env): Remove unused field.
15869 (searchc): Always search across AVAIL_INTERPOSABLE.
15870 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
15871 the only called IPA pure const can properly not propagate
15872 across interposable boundary.
15873 * ipa-utils.h (ipa_reduced_postorder): Remove param.
15874
15875 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
15876
15877 * config/nds32/nds32.md (call_internal, call_value_internal,
15878 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
15879
15880 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
15881
15882 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
15883 typo.
15884
15885 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
15886
15887 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
15888 in comments
15889
15890 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
15891
15892 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
15893
15894 2019-02-10 Jakub Jelinek <jakub@redhat.com>
15895
15896 PR tree-optimization/89268
15897 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
15898 if preds is non-NULL.
15899
15900 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
15901
15902 PR lto/89272
15903 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
15904 polymorphic types.
15905
15906 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
15907
15908 * config/nds32/nds32.md (trap): New pattern.
15909
15910 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
15911
15912 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
15913 dwarf span.
15914
15915 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
15916
15917 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
15918 to split POST_INC.
15919
15920 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
15921
15922 * ipa-visibility.c (localize_node): Also do not localize
15923 LDPR_PREVAILING_DEF_IRONLY_EXP.
15924
15925 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
15926
15927 PR lto/87957
15928 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
15929 instead of type_with_linkage.
15930
15931 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
15932
15933 PR ipa/88755
15934 * params.def (uninlined-function-insns, uninlined-function-time,
15935 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
15936 bound so we don't get overflows.
15937
15938 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15939
15940 * config/rs6000/rs6000-string.c (expand_compare_loop,
15941 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
15942 memcmp/strncmp.
15943
15944 2019-02-09 Jakub Jelinek <jakub@redhat.com>
15945
15946 PR middle-end/89246
15947 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
15948 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
15949 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
15950
15951 2019-02-09 Alan Modra <amodra@gmail.com>
15952
15953 PR target/88343
15954 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
15955 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
15956 setup.
15957
15958 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
15959
15960 PR middle-end/88560
15961 * lra-constraints.c (process_alt_operands): Don't increase reject
15962 for memory when offset memory is required.
15963
15964 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
15965
15966 * config/s390/vector.md: Implement vector copysign.
15967
15968 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
15969
15970 * expr.c (expand_constructor): Correct indentations.
15971
15972 2019-02-08 Richard Biener <rguenther@suse.de>
15973
15974 PR tree-optimization/89247
15975 * tree-if-conv.c: Include tree-cfgcleanup.h.
15976 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
15977 (tree_if_conversion): Pass through predicate vector.
15978 (pass_if_conversion::execute): Do CFG cleanup and SSA update
15979 inline, see if any if-converted loops we refrece in
15980 LOOP_VECTORIZED calls vanished and fixup.
15981 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
15982
15983 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
15984
15985 * config/s390/constraints.md (jdd): New constraint.
15986
15987 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
15988
15989 PR target/89229
15990 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
15991 upper 16 vector registers without TARGET_AVX512VL.
15992 (*movti_internal): Likewise.
15993
15994 2019-02-08 Jakub Jelinek <jakub@redhat.com>
15995
15996 PR rtl-optimization/89234
15997 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
15998 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
15999 (copy_reg_eh_region_note_backward): Likewise.
16000
16001 2019-02-08 Richard Biener <rguenther@suse.de>
16002
16003 PR middle-end/89223
16004 * tree-data-ref.c (initialize_matrix_A): Fail if constant
16005 doesn't fit in HWI.
16006 (analyze_subscript_affine_affine): Handle failure from
16007 initialize_matrix_A.
16008
16009 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16010
16011 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
16012 cfun everywhere.
16013
16014 2019-02-07 David Malcolm <dmalcolm@redhat.com>
16015
16016 PR tree-optimization/86637
16017 PR tree-optimization/89235
16018 * tree-vect-loop.c (optimize_mask_stores): Add an
16019 auto_purge_vect_location sentinel to ensure that vect_location is
16020 purged on exit.
16021 * tree-vectorizer.c
16022 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
16023 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
16024 to ensure that vect_location is purged on exit.
16025 (pass_slp_vectorize::execute): Likewise, replacing the manual
16026 reset.
16027 * tree-vectorizer.h (class auto_purge_vect_location): New class.
16028
16029 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16030
16031 * config/aarch64/iterators.md (max_opp): New code_attr.
16032 (USMAX): New code iterator.
16033 * config/aarch64/predicates.md (aarch64_smin): New predicate.
16034 (aarch64_smax): Likewise.
16035 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
16036 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
16037 MINUS (MAX MIN).
16038
16039 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
16040
16041 PR target/89229
16042 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
16043 for TARGET_AVX512VL.
16044 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
16045
16046 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
16047
16048 * config/s390/s390-builtin-types.def: Add new types.
16049 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
16050 (s390_vec_xlw4): Make the memory operand into a const pointer.
16051 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
16052 float.
16053 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
16054 a new vector type with the alignment of the scalar memory operand.
16055
16056 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
16057 Jakub Jelinek <jakub@redhat.com>
16058
16059 PR bootstrap/88714
16060 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
16061 arm_count_ldrdstrd_insns): New declarations.
16062 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
16063 MINUS.
16064 (valid_operands_ldrd_strd): New function.
16065 (arm_count_ldrdstrd_insns): New function.
16066 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
16067 sets instead of single DImode set and define new insns to match this.
16068
16069 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16070
16071 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
16072 Make it a C initializer.
16073
16074 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16075
16076 PR/target 88850
16077 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
16078
16079 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16080
16081 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
16082 Use neon_dot<q> for type.
16083 (neon_<sup>dot_lane<vsi2qi>): Likewise.
16084
16085 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16086
16087 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
16088 Use neon_dot<q> for type.
16089 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
16090 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
16091
16092 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
16093
16094 PR rtl-optimization/89225
16095 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
16096 sizes check.
16097
16098 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
16099
16100 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
16101 after restoring registers saved to allocate the frame on Windows.
16102
16103 2019-02-06 Richard Biener <rguenther@suse.de>
16104
16105 PR tree-optimization/89182
16106 * graphite.h (cached_scalar_evolution_in_region): Declare.
16107 * graphite.c (struct seir_cache_key): New.
16108 (struct sese_scev_hash): Likewise.
16109 (seir_cache): New global.
16110 (cached_scalar_evolution_in_region): New function.
16111 (graphite_transform_loops): Allocate and release seir_cache.
16112 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
16113 cached_scalar_evolution_in_region.
16114 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16115 Simplify.
16116 (scop_detection::graphite_can_represent_expr: Use
16117 cached_scalar_evolution_in_region.
16118 (scop_detection::stmt_simple_for_scop_p): Likewise.
16119 (find_params_in_bb): Likewise.
16120 (gather_bbs::before_dom_children): Likewise.
16121 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
16122 (add_loop_constraints): Likewise.
16123
16124 2019-02-06 Jakub Jelinek <jakub@redhat.com>
16125
16126 PR middle-end/89210
16127 * fold-const-call.c (fold_const_vec_convert): Pass true as last
16128 operand to new_unary_operation only if both element types are integral
16129 and it isn't a widening conversion. Return NULL_TREE if
16130 new_unary_operation failed.
16131
16132 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
16133
16134 PR target/88856
16135 * config/s390/s390.md: Remove load and test FP splitter.
16136
16137 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16138
16139 PR target/89112
16140 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
16141 expand_compare_loop, expand_block_compare_gpr,
16142 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
16143 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
16144 #include "profile-count.h" and "predict.h" for types and functions
16145 needed to work with REG_BR_PROB notes.
16146
16147 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16148
16149 PR target/89112
16150 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
16151 for the long branch case.
16152
16153 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16154
16155 PR target/89188
16156 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
16157 can throw, non-call exceptions are enabled and we can't delete
16158 dead exceptions or alter cfg. Set must_clean if
16159 delete_insn_and_edges returns true, don't set it blindly for calls.
16160 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
16161
16162 PR rtl-optimization/89195
16163 * combine.c (make_extraction): For MEMs, don't extract bytes outside
16164 of the original MEM.
16165
16166 2019-02-05 Martin Liska <mliska@suse.cz>
16167
16168 PR gcov-profile/89000
16169 * gcov.c (function_summary): Remove argument.
16170 (file_summary): New function.
16171 (print_usage): Replace tabs with spaces.
16172 (generate_results): Use new function file_summary.
16173
16174 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16175
16176 PR target/89186
16177 * optabs.c (prepare_cmp_insn): Pass x and y to
16178 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
16179
16180 2019-02-05 Richard Biener <rguenther@suse.de>
16181
16182 PR middle-end/89150
16183 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
16184 (struct bitmap_element): Drop chain_prev so we properly recurse on
16185 the prev member, supporting tree views.
16186 (struct bitmap_head): GTY skip the obstack member.
16187
16188 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
16189
16190 PR c/88698
16191 * doc/extend.texi (Vector Extensions): Add an example of using vector
16192 types together with x86 intrinsics.
16193
16194 2019-02-04 Alan Modra <amodra@gmail.com>
16195
16196 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
16197 str[] size to 160, and comment.
16198
16199 2019-02-04 Alan Modra <amodra@gmail.com>
16200
16201 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
16202 (rs6000_pltseq_template): Guard output of TLS markers with
16203 TARGET_TLS_MARKERS.
16204 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
16205 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
16206 to use inline PLT sequences.
16207 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16208 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16209 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
16210
16211 2019-02-04 Martin Liska <mliska@suse.cz>
16212
16213 PR ipa/88985
16214 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
16215 out when ipa_fn_summaries does not contain entry for callee.
16216
16217 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
16218
16219 * config/sparc/sparc.h: Remove superfluous blank lines.
16220 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
16221 (got_register_rtx): ...this.
16222 (sparc_got): Adjust to above renaming.
16223 (sparc_tls_got): Likewise.
16224 (sparc_delegitimize_address): Likewise.
16225 (sparc_output_mi_thunk): Likewise.
16226 (sparc_init_pic_reg): Likewise.
16227 (save_local_or_in_reg_p): Fix test on the GOT register.
16228 (USE_HIDDEN_LINKONCE): Move around.
16229 (get_pc_thunk_name): Likewise.
16230 (gen_load_pcrel_sym): Likewise.
16231 (load_got_register): Likewise.
16232
16233 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
16234
16235 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
16236 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
16237
16238 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16239
16240 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
16241 into consideration.
16242
16243 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16244
16245 * config.gcc (with_nds32_lib, glibc):
16246 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
16247 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
16248 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
16249
16250 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
16251
16252 PR target/89071
16253 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
16254 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
16255 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
16256 (*rcpsf2_sse): Ditto.
16257 (*rsqrtsf2_sse): Ditto.
16258 (sse4_1_round<mode<2): Ditto.
16259
16260 2019-02-03 Richard Biener <rguenther@suse.de>
16261
16262 PR debug/87295
16263 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
16264 orig.
16265
16266 2019-02-02 Jakub Jelinek <jakub@redhat.com>
16267
16268 PR middle-end/87887
16269 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16270 Punt with warning on aggregate return or argument types. Ignore
16271 type/mode checking for uniform arguments.
16272
16273 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
16274
16275 * combine.c (try_combine): Do not print "Can't combine" messages unless
16276 printing failed combination attempts.
16277
16278 2019-02-01 Martin Jambor <mjambor@suse.cz>
16279
16280 PR hsa/87863
16281 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
16282 segment and global segment variables before making them static.
16283
16284 2019-02-01 Martin Jambor <mjambor@suse.cz>
16285
16286 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
16287 missed optimization dump with dump_enabled_p.
16288
16289 2019-02-01 Richard Biener <rguenther@suse.de>
16290
16291 PR middle-end/88597
16292 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
16293 the instantiate cache.
16294 (instantiate_scev_binary): Elide second operand procesing
16295 if equal to the first.
16296 * tree-chrec.c (chrec_contains_symbols): Add visited set.
16297 (chrec_contains_undetermined): Likewise.
16298 (tree_contains_chrecs): Likewise.
16299
16300 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
16301
16302 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
16303
16304 2019-02-01 Jakub Jelinek <jakub@redhat.com>
16305
16306 PR tree-optimization/89143
16307 * wide-int-range.h (wide_int_range_absu): Declare.
16308 * wide-int-range.cc (wide_int_range_absu): New function.
16309 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
16310
16311 PR tree-optimization/88107
16312 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
16313 instead of assertion that eh_region_outermost is non-NULL, if it
16314 is NULL, set *ALL to true and return NULL.
16315 (move_sese_region_to_fn): Adjust caller, if all is set, call
16316 duplicate_eh_regions with NULL region.
16317
16318 2019-02-01 Richard Biener <rguenth@suse.de>
16319
16320 PR rtl-optimization/88593
16321 * mode-switching.c (optimize_mode_switching): Free dominators before
16322 calling cleanup_cfg.
16323
16324 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16325
16326 PR tree-optimization/88932
16327 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
16328
16329 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16330
16331 PR middle-end/89137
16332 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
16333 bogus clang warning.
16334
16335 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
16336
16337 PR target/89071
16338 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
16339 alternative to avoid partial SSE register stall for TARGET_AVX.
16340 (truncdfsf2): Ditto.
16341 (sse4_1_round<mode>2): Ditto.
16342
16343 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
16344
16345 PR tree-optimization/89008
16346 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
16347 process anything of the form X * 0.
16348
16349 2019-01-31 Richard Biener <rguenther@suse.de>
16350
16351 PR tree-optimization/89135
16352 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
16353 with abnormal preds.
16354
16355 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16356
16357 PR sanitizer/89124
16358 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
16359 always_inline callees into no_sanitize_address callers.
16360
16361 2019-01-31 Richard Biener <rguenther@suse.de>
16362
16363 PR rtl-optimization/89115
16364 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
16365
16366 2019-01-30 Martin Sebor <msebor@redhat.com>
16367
16368 PR other/89106
16369 * doc/extend.texi (cast to a union): Correct and expand.
16370
16371 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
16372
16373 PR rtl-optimization/87246
16374 * lra-constraints.c (simplify_operand_subreg): Reload memory
16375 in subreg if the address became invalid.
16376
16377 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
16378
16379 PR target/87064
16380 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
16381 Disable for little-endian.
16382
16383 2019-01-30 Richard Biener <rguenther@suse.de>
16384
16385 PR rtl-optimization/89115
16386 * opts.c (default_options_optimization): Reduce
16387 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
16388 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
16389 to the default.
16390
16391 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
16392
16393 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
16394 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
16395 type of vector element when vec_extract is implemented by direct
16396 move.
16397
16398 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
16399
16400 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
16401
16402 2019-01-30 Richard Biener <rguenther@suse.de>
16403
16404 PR tree-optimization/89111
16405 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
16406 canonicalization to appropriately sized access types.
16407
16408 2019-01-30 Jakub Jelinek <jakub@redhat.com>
16409
16410 PR c++/89105
16411 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
16412 for arguments to functions that are TU-local and shouldn't be
16413 referenced by assembly.
16414
16415 2019-01-30 Ulrich Drepper <drepper@redhat.com>
16416
16417 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
16418 after '='.
16419
16420 2019-01-29 Martin Sebor <msebor@redhat.com>
16421
16422 PR c/88956
16423 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
16424
16425 2019-01-29 Jakub Jelinek <jakub@redhat.com>
16426
16427 PR c++/66676
16428 PR ipa/89104
16429 * omp-simd-clone.c (simd_clone_clauses_extract)
16430 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
16431 OMP_CLAUSE_ALIGNED_ALIGNMENT.
16432
16433 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
16434
16435 * config.gcc: Force .init_array for ARC.
16436
16437 2019-01-29 Richard Biener <rguenther@suse.de>
16438
16439 PR debug/87295
16440 * dwarf2out.c (collect_skeleton_dies): New helper.
16441 (copy_decls_for_unworthy_types): Call it.
16442 (build_abbrev_table): Assert we do not try to replace
16443 DW_AT_signature refs with local refs.
16444
16445 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16446
16447 PR middle-end/89002
16448 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
16449 for lastprivate/linear IV, push gimplify context around gimplify_assign
16450 and, if it needed any temporaries, pop it into a gimple bind around the
16451 sequence.
16452
16453 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16454
16455 * common.opt (-Wattribute-alias): Remove "no-" from name.
16456 Make -Wattribute-alias command line option and
16457 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
16458
16459 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16460
16461 PR target/89073
16462 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
16463 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
16464 x86 ISA options.
16465 (bmi2): Add missing @opindex.
16466 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
16467 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
16468 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
16469 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
16470 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
16471 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
16472 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
16473 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
16474 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
16475 xsavec, xsaveopt and xsaves options.
16476
16477 2019-01-28 Richard Biener <rguenther@suse.de>
16478
16479 PR debug/89076
16480 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
16481 support removal.
16482
16483 2019-01-28 Richard Biener <rguenther@suse.de>
16484
16485 PR tree-optimization/88739
16486 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16487 BIT_FIELD_REFs only are applied to mode-precision operands
16488 when they are integral.
16489 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
16490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
16491 BIT_FIELD_REFs of non-mode-precision integral operands.
16492
16493 2019-01-27 Jakub Jelinek <jakub@redhat.com>
16494
16495 PR target/87214
16496 * config/i386/sse.md
16497 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
16498 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
16499 first constants in pairs are multiples of 2. Formatting fixes.
16500 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
16501 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
16502 first constants in each quadruple are multiples of 4. Formatting fixes.
16503
16504 2019-01-26 Martin Jambor <mjambor@suse.cz>
16505
16506 PR ipa/88933
16507 * tree-inline.c: Include tree-cfgcleanup.h.
16508 (delete_unreachable_blocks_update_callgraph): Move...
16509 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
16510 ...here, make externally visible, make second argument bool, adjust
16511 all callers.
16512 * tree-cfgcleanup.c: Include cgraph.h.
16513 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
16514 Declare.
16515 * ipa-prop.c: Include tree-cfgcleanup.h.
16516 (ipcp_transform_function): Call
16517 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
16518
16519 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
16520
16521 PR rtl-optimization/88846
16522 * ira.c (process_set_for_memref_referenced_p): New.
16523 (memref_referenced_p): Add new param. Use
16524 process_set_for_memref_referenced_p. Add new switch cases.
16525 (memref_used_between_p): Pass new arg to memref_referenced_p.
16526
16527 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
16528
16529 PR target/88469
16530 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
16531 argument ABI_BREAK. Set to true if the calculated alignment has
16532 changed in gcc-9. Check bit-fields for their base type alignment.
16533 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
16534 (aarch64_function_arg_boundary): Likewise.
16535 (aarch64_gimplify_va_arg_expr): Likewise.
16536
16537 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16538
16539 PR middle-end/89037
16540 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
16541 instead of accessing TREE_INT_CST_ELT directly.
16542
16543 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
16544
16545 * doc/sourcebuild.texi (Environment attributes): Add fenv and
16546 fenv_exceptions description.
16547
16548 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
16549
16550 PR rtl-optimization/87763
16551 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
16552 Allow SUBREG when matching CC_NZmode compare.
16553
16554 2019-01-25 Richard Biener <rguenther@suse.de>
16555
16556 PR tree-optimization/89049
16557 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16558 Look at the pattern stmt to determine if the stmt is vectorized.
16559
16560 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16561
16562 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
16563 (pred_mov<mode>): Handle all-register forms using both a new
16564 alternative and a split.
16565
16566 2019-01-25 Richard Biener <rguenther@suse.de>
16567
16568 PR tree-optimization/86865
16569 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16570 Reject non-do-while loops.
16571
16572 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
16573
16574 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
16575 * config/rs6000/constraints.md (Q constraint): Use REG_P.
16576 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
16577 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16578 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
16579 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16580 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
16581 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
16582 vlogical_operand, gpc_reg_operand, int_reg_operand,
16583 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
16584 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
16585 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
16586 (save_world_operation, restore_world_operation, lmw_operation,
16587 stmw_operation): Use MEM_P and REG_P.
16588 (tie_operand): Use MEM_P.
16589 (vrsave_operation, crsave_operation): Use REG_P.
16590 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
16591 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
16592 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
16593 (call_operand): Use HARD_REGISTER_P.
16594 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
16595 Use CONST_INT_P.
16596 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
16597 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
16598 quad_aligned_load_p, replace_swapped_aligned_store,
16599 recombine_lvx_pattern, replace_swapped_aligned_load,
16600 recombine_stvx_pattern): Use MEM_P.
16601 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
16602 Use MEM_P and SYMBOL_REF_P.
16603 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
16604 (insn_is_swappable_p): Use REG_P and MEM_P.
16605 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
16606 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
16607 Use CONST_INT_P.
16608 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
16609 Use CONST_DOUBLE_P.
16610 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
16611 CONST_WIDE_INT_P.
16612 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
16613 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
16614 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
16615 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
16616 reg_or_subregno:
16617 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16618 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
16619 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
16620 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
16621 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
16622 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
16623 rs6000_split_logical_di): Use CONST_INT_P.
16624 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
16625 REG_P and SYMBOL_REF_P.
16626 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
16627 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
16628 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
16629 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
16630 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
16631 (small_data_operand, print_operand_address): Use CONST_INT_P and
16632 SYMBOL_REF_P.
16633 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
16634 (rs6000_init_hard_regno_mode_ok, direct_move_p):
16635 Use HARD_REGISTER_NUM_P.
16636 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
16637 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
16638 SUBREG_P and SYMBOL_REF_P.
16639 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
16640 and HARD_REGISTER_NUM_P.
16641 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
16642 reg_or_subregno.
16643 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
16644 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
16645 MEM_P and REG_P.
16646 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
16647 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
16648 find_addr_reg): Use REG_P.
16649 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
16650 (rs6000_emit_le_vsx_move): Use SUBREG_P.
16651 (offsettable_ok_by_alignment, constant_pool_expr_p,
16652 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
16653 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
16654 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
16655 rs6000_assemble_integer, create_TOC_reference,
16656 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
16657 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
16658 (rs6000_split_vec_extract_var): Use reg_or_subregno.
16659 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16660 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16661 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16662 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16663 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
16664 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
16665 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
16666 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
16667 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
16668 and cbranch<mode>4): Use CONST_INT_P.
16669 (multiple define_splits): Use REG_P and SUBREG_P.
16670 (define_expands call, call_value): Use MEM_P.
16671 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
16672 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
16673 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
16674 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
16675 and HARD_REGISTER_NUM_P.
16676 (multiple define_splits): Use HARD_REGISTER_NUM_P.
16677
16678 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
16679
16680 PR rtl-optimization/88948
16681 * rtl.h (prepare_copy_insn): New prototype.
16682 * gcse.c (prepare_copy_insn): New function, split out from
16683 process_insert_insn.
16684 (process_insert_insn): Use prepare_copy_insn.
16685 * store-motion.c (replace_store_insn): Use prepare_copy_insn
16686 instead of gen_move_insn.
16687
16688 2019-01-24 Jakub Jelinek <jakub@redhat.com>
16689
16690 PR debug/89006
16691 * config/i386/i386.c (ix86_pic_register_p): Return true for
16692 UNSPEC_SET_GOT too.
16693
16694 PR tree-optimization/88964
16695 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
16696 punt if HONOR_SNANS (chrec).
16697
16698 PR middle-end/89015
16699 * tree-nested.c (convert_nonlocal_reference_stmt,
16700 convert_local_reference_stmt, convert_tramp_reference_stmt,
16701 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
16702 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
16703 or GIMPLE_OMP_TASK.
16704
16705 PR tree-optimization/89027
16706 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
16707 for "omp simd array" variables.
16708
16709 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
16710
16711 PR target/88469
16712 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
16713 force the alignment of m_val.
16714
16715 2019-01-24 Richard Biener <rguenther@suse.de>
16716
16717 PR lto/87187
16718 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
16719 When in "legacy" debug mode make sure to reset self-origins.
16720
16721 2019-01-24 Martin Liska <mliska@suse.cz>
16722
16723 PR gcov-profile/88994
16724 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
16725 result will be always smaller or equal to the original.
16726 * gcov.c (mangle_name): Fix else branch where we should
16727 also copy to PTR and shift the pointer.
16728
16729 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
16730
16731 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
16732 * vr-values.c (find_case_label_ranges): Fix a comment typo.
16733
16734 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
16735
16736 * common/config/i386/i386-common.c
16737 (OPTION_MASK_ISA_ENQCMD_SET,
16738 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
16739 (ix86_handle_option): Handle -menqcmd.
16740 * config.gcc (enqcmdintrin.h): New header file.
16741 * config/i386/cpuid.h (bit_ENQCMD): New bit.
16742 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16743 -menqcmd.
16744 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
16745 function type.
16746 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
16747 __builtin_ia32_enqcmds): New builtins.
16748 * config/i386/i386-c.c (__ENQCMD__): New macro.
16749 * config/i386/i386-option.c (ix86_target_string): Add
16750 -menqcmd.
16751 (ix86_valid_target_attribute_inner_p): Likewise.
16752 * config/i386/i386-expand.c
16753 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
16754 IX86_BUILTIN_ENQCMDS.
16755 * config/i386/i386.h (TARGET_ENQCMD): New.
16756 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
16757 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
16758 (movdir64b_<mode>): Parameterize to enable share expansion code
16759 with ENQCMD in function ix86_expand_builtin.
16760 * config/i386/i386.opt: Add -menqcmd.
16761 * config/i386/immintrin.h: Include enqcmdintrin.h.
16762 * config/i386/enqcmdintrin.h: New intrinsic file.
16763 * doc/invoke.texi: Add -menqcmd.
16764
16765 2019-01-23 Bin Cheng <bin.cheng@arm.com>
16766 Steve Ellcey <sellcey@marvell.com>
16767
16768 PR target/85711
16769 * recog.c (address_operand): Return false on wrong mode for address.
16770 (constrain_operands): Check for mode with 'p' constraint.
16771
16772 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
16773
16774 PR target/88998
16775 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
16776 Disparage MMX alternative.
16777 (sse2_cvtpd2pi): Ditto.
16778 (sse2_cvttpd2pi): Ditto.
16779
16780 2019-01-23 David Malcolm <dmalcolm@redhat.com>
16781
16782 PR driver/89014
16783 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
16784 use-after-free of the result of
16785 aarch64_get_extension_string_for_isa_flags.
16786
16787 2019-01-23 Jakub Jelinek <jakub@redhat.com>
16788
16789 PR c/44715
16790 * doc/extend.texi: Document break and continue behavior in
16791 statement expressions.
16792
16793 2019-01-23 Richard Biener <rguenther@suse.de>
16794
16795 PR tree-optimization/89008
16796 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
16797 not leave another stray operand.
16798
16799 2019-01-23 Jakub Jelinek <jakub@redhat.com>
16800
16801 * BASE-VER: Bump to 9.0.1.
16802
16803 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
16804
16805 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
16806 thunk that returns by reference, use the type of the return object
16807 of the thunk instead of that of the alias to build the dereference.
16808
16809 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
16810
16811 * config/arc/atomic.md: Add operand to DMB instruction.
16812
16813 2019-01-23 Jakub Jelinek <jakub@redhat.com>
16814
16815 PR tree-optimization/88964
16816 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
16817 build_zero_cst instead of build_int_cst. Return false for loop
16818 invariants which honor signed zeros.
16819
16820 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
16821
16822 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
16823
16824 2019-01-22 Jakub Jelinek <jakub@redhat.com>
16825
16826 PR target/88965
16827 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
16828 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
16829 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
16830
16831 PR middle-end/88968
16832 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
16833 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
16834
16835 PR target/87064
16836 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
16837 Disable for little endian.
16838
16839 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
16840
16841 PR target/88469
16842 * config/arm/arm.c (arm_needs_double_word_align): Check
16843 DECL_BIT_FIELD_TYPE.
16844
16845 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
16846 H.J. Lu <hongjiu.lu@intel.com>
16847
16848 PR target/88909
16849 * config/i386/i386-builtin.def: Add mask2 to all builtin
16850 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
16851 SPECIAL_ARGS.
16852 * config/i386/i386.c (BDESC): Add mask2 to the definition.
16853 (BDESC_FIRST): Likewise.
16854 (define_builtin): Add an argument for mask2. Updated to handle
16855 both ix86_isa_flags and ix86_isa_flags2.
16856 (define_builtin_const): Likewise.
16857 (define_builtin_pure): Likewise.
16858 (define_builtin2): Deleted.
16859 (define_builtin_const2): Likewise.
16860 (builtin_description): Add a member, mask2.
16861 (bdesc_*): Add mask2 to builtin initializations.
16862 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
16863 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
16864 support.
16865 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
16866
16867 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
16868
16869 PR target/88954
16870 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
16871 noplt attribute.
16872
16873 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
16874
16875 PR target/88469
16876 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
16877 alignment is dominated by a bitfield with 64-bit aligned base type.
16878 (arm_function_arg): Emit a warning if the alignment has changed since
16879 earlier GCC releases.
16880 (arm_function_arg_boundary): Likewise.
16881 (arm_setup_incoming_varargs): Likewise.
16882
16883 2019-01-22 Richard Biener <rguenther@suse.de>
16884
16885 PR tree-optimization/88862
16886 * graphite-scop-detection.c
16887 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
16888
16889 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
16890
16891 * doc/extend.tex (AMD GCN Function Attributes): New section.
16892 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
16893 * doc/invoke.texi (AMD GCN Options): New section.
16894 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
16895
16896 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
16897
16898 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
16899 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
16900
16901 2019-01-22 Jakub Jelinek <jakub@redhat.com>
16902
16903 PR tree-optimization/88044
16904 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
16905 is false in the first iteration, but !every_iteration, return false
16906 instead of true with niter->niter zero.
16907
16908 PR rtl-optimization/88904
16909 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
16910 any nonequal registers before processing BB_END (b).
16911
16912 PR target/88905
16913 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
16914 GET_MODE (op0).
16915 (expand_binop_directly, expand_doubleword_clz,
16916 expand_doubleword_popcount, expand_ctz, expand_ffs,
16917 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
16918
16919 PR rtl-optimization/49429
16920 PR target/49454
16921 PR rtl-optimization/86334
16922 PR target/88906
16923 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
16924 addressable from here...
16925 (emit_block_op_via_libcall): ... to here.
16926
16927 2019-01-22 Richard Biener <rguenther@suse.de>
16928
16929 * tree-vect-loop.c (vect_analyze_loop_operations): Use
16930 auto_vec for cost vector to fix memleak.
16931 (vectorize_fold_left_reduction): Properly gather SLP defs.
16932 (vectorizable_comparison): Do not swap operands to properly
16933 gather SLP defs.
16934
16935 2019-01-22 Alan Modra <amodra@gmail.com>
16936
16937 PR target/88614
16938 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
16939 stays a reg. Allow a const_int.
16940 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
16941 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
16942 (IS_NOMARK_TLSGETADDR): Define.
16943 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
16944 (rs6000_output_tlsargs): New function.
16945 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
16946 __tls_get_addr call takes an arg.
16947 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
16948 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
16949 delete split..
16950 (call_value_nonlocal_sysv): ..or here, delete split.
16951 (tls_gdld_nomark): Delete.
16952 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
16953 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
16954 (call_value_nonlocal_sysv): Likewise.
16955 (call_value_nonlocal_sysv_secure): Likewise.
16956 (call_value_nonlocal_aix): Likewise.
16957 (call_value_indirect_aix): Likewise.
16958 (call_value_indirect_elfv2): Likewise.
16959 (call_value_local32, call_value_local64): Disable for no-mark tls.
16960 (call_value_local_aix): Likewise.
16961
16962 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
16963
16964 PR target/88938
16965 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
16966 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
16967
16968 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
16969
16970 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
16971 string contents as hash_map keys.
16972
16973 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16974
16975 PR c/88928
16976 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
16977 for rvalue context. Handle rvalues correctly. Use min_align_of_type
16978 instead of TYPE_ALIGN.
16979 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
16980 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
16981 pointer from TYPE_STUB_DECL.
16982
16983 2019-01-21 Richard Biener <rguenther@suse.de>
16984
16985 PR tree-optimization/88934
16986 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
16987 at the possibly non-constant operand.
16988 (vect_get_constant_vectors): Adjust.
16989
16990 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
16991
16992 PR target/71659
16993 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
16994 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
16995 instead of _X86INTRIN_H_INCLUDED.
16996 * onfig/i386/clwbintrin.h: Likewise.
16997 * config/i386/pkuintrin.h: Likewise.
16998 * config/i386/prfchwintrin.h: Likewise.
16999 * config/i386/rdseedintrin.h: Likewise.
17000 * config/i386/wbnoinvdintrin.h: Likewise.
17001 * config/i386/xsavecintrin.h: Likewise.
17002 * config/i386/xsavesintrin.h: Likewise.
17003 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
17004 * config/i386/xsaveintrin.h: Likewise.
17005 * config/i386/xsaveoptintrin.h: Likewise.
17006 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
17007 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
17008 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
17009 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
17010 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
17011 * config/i386/immintrin.h: Here.
17012
17013 2019-01-20 Martin Jambor <mjambor@suse.cz>
17014
17015 PR ipa/87615
17016 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
17017 with aa_walk_budget.
17018 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
17019 aa_walk_budget_p parameter.
17020 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
17021 walk. Updated all callers.
17022 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
17023 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
17024 unmodified_parm.
17025 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
17026 parameter info. Extract info from fbi. Pass fbi to recursive calls
17027 and to unmodified_parm.
17028 (phi_result_unknown_predicate): New parameter fbi, removed parameter
17029 info, updated call to will_be_nonconstant_expr_predicate.
17030 (param_change_prob): New parameter fbi, limit AA walking.
17031 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
17032 calls to various above functions.
17033 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
17034 parameter. Use it to limit AA walking.
17035 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
17036 fbi, limit AA walk.
17037 (detect_type_change): New parameter fbi, pass it on to
17038 detect_type_change_from_memory_writes.
17039 (detect_type_change_ssa): Likewise.
17040 (aa_overwalked): Removed.
17041 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
17042 accordingly, adjust to the neew AA limiting scheme.
17043 (parm_ref_data_preserved_p): Likewise.
17044 (ipa_compute_jump_functions_for_edge): Adjust call to
17045 get_dynamic_type.
17046 (ipa_analyze_call_uses): Likewise.
17047 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
17048 (ipa_analyze_node): Initialize aa_walk_budget.
17049 (ipcp_transform_function): Likewise.
17050 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
17051 to get_dynamic_type.
17052
17053 2019-01-19 Jakub Jelinek <jakub@redhat.com>
17054
17055 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
17056 outside of #if CHECKING_P code.
17057
17058 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
17059
17060 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
17061 New function, split out from...
17062 (loop_versioning::analyze_stride): ...here.
17063 (loop_versioning::find_per_loop_multiplication): Use gassign.
17064 (loop_versioning::analyze_term_using_scevs): Return a success code.
17065 (loop_versioning::analyze_arbitrary_term): New function.
17066 (loop_versioning::analyze_address_fragment): Use
17067 analyze_arbitrary_term if all else fails.
17068
17069 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
17070
17071 PR target/88892
17072 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
17073 operands.
17074
17075 2019-01-18 Richard Biener <rguenther@suse.de>
17076
17077 PR tree-optimization/88903
17078 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
17079 scalar stmts a SLP shift amount is composed of when detecting
17080 shifts by scalars.
17081
17082 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
17083
17084 PR target/88799
17085 * config/arm/arm-cpus.in (mp): New feature.
17086 (sec): New feature.
17087 (fgroup ARMv7ve): Add mp and sec features.
17088 (arch armv7-a): Add options to allow mp and sec extensions.
17089 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
17090 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
17091 extenstions to the base architecture.
17092 (cpu cortex-a8): Add sec extension to the base architecture.
17093 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
17094 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
17095 variants down to the base v7-a varaint.
17096 * config/arm/t-multilib (v7_a_arch_variants): New variable.
17097 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
17098 of permitted extensions for -march=armv7-a and for
17099 -mcpu=generic-armv7-a.
17100
17101 2019-01-18 Martin Liska <mliska@suse.cz>
17102
17103 * params.def: Fix comment.
17104 * tree-profile.c (gimple_init_gcov_profiler): Bump function
17105 name.
17106 (gimple_gen_ic_func_profiler): Likewise.
17107
17108 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17109
17110 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
17111 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
17112 and put in error checks for stack protector guard options.
17113 (aarch64_stack_protect_guard): New.
17114 (TARGET_STACK_PROTECT_GUARD): Define.
17115 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
17116 (reg_stack_protect_address<mode>): New.
17117 (stack_protect_set): Adjust for SSP_GLOBAL.
17118 (stack_protect_test): Likewise.
17119 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
17120 (-mstack-protector-guard): Likewise.
17121 (-mstack-protector-guard-offset): Likewise.
17122
17123 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17124
17125 PR tree-optimization/86214
17126 * tree-inline.h (struct copy_body_data): Add
17127 add_clobbers_to_eh_landing_pads member.
17128 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
17129 (copy_edges_for_bb): Call it if EH edge destination is <
17130 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
17131 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
17132 if flag_stack_reuse != SR_NONE and clear it afterwards.
17133
17134 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
17135
17136 PR target/85596
17137 * doc/install.texi (with-multilib-list): Document for aarch64.
17138
17139 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17140
17141 PR target/88734
17142 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
17143 (("..."))) with ("...").
17144
17145 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17146
17147 * doc/extend.texi (Built-in Functions for Memory Model Aware
17148 Atomic Operations): Document atomic fetch and nand.
17149
17150 2019-01-18 Martin Liska <mliska@suse.cz>
17151 Richard Biener <rguenther@suse.de>
17152
17153 PR middle-end/88587
17154 * cgraph.h (create_version_clone_with_body): Add new argument
17155 with attributes.
17156 * cgraphclones.c (cgraph_node::create_version_clone): Add
17157 DECL_ATTRIBUTES to a newly created decl. And call
17158 valid_attribute_p so that proper cl_target_optimization_node
17159 is set for the newly created declaration.
17160 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
17161 for declaration.
17162 (expand_target_clones): Do not call valid_attribute_p, it must
17163 be already done.
17164 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
17165 vector types.
17166
17167 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17168
17169 PR target/88734
17170 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
17171 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
17172 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
17173
17174 2019-01-17 Martin Sebor <msebor@redhat.com>
17175
17176 PR middle-end/88273
17177 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
17178 Handle anti-ranges the same as no range at all.
17179
17180 2018-01-17 Steve Ellcey <sellcey@cavium.com>
17181
17182 * config/aarch64/aarch64.c (cgraph.h): New include.
17183 (intl.h): New include.
17184 (supported_simd_type): New function.
17185 (currently_supported_simd_type): Ditto.
17186 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
17187 (aarch64_simd_clone_adjust): Ditto.
17188 (aarch64_simd_clone_usable): Ditto.
17189 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
17190 (TARGET_SIMD_CLONE_ADJUST): Ditto.
17191 (TARGET_SIMD_CLONE_USABLE): Ditto.
17192 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
17193 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
17194 call.
17195
17196 2019-01-17 Martin Sebor <msebor@redhat.com>
17197
17198 PR tree-optimization/88800
17199 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
17200 NO_WARNING bit here. Avoid folding out-of-bounds calls.
17201 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
17202 redundant argument. Add new argument and issue diagnostics under
17203 its control. Detect out-of-bounds access even with warnings
17204 disabled.
17205 (check_bounds_or_overlap): Change return type. Add argument.
17206 (wrestrict_dom_walker::check_call): Adjust.
17207 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
17208 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
17209 check_bounds_or_overlap's return value.
17210 (handle_builtin_stxncpy): Same.
17211 (handle_builtin_strcat): Same.
17212
17213 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17214 Kwok Cheung Yeung <kcy@codesourcery.com>
17215 Julian Brown <julian@codesourcery.com>
17216 Tom de Vries <tom@codesourcery.com>
17217
17218 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
17219
17220 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17221
17222 * doc/sourcebuild.texi: Document dg-require-effective-target
17223 llvm_binutils and offload_gcn.
17224
17225 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17226 Kwok Cheung Yeung <kcy@codesourcery.com>
17227 Julian Brown <julian@codesourcery.com>
17228 Tom de Vries <tom@codesourcery.com>
17229
17230 * doc/sourcebuild.texi: Document dg-required-effective-target
17231 exceptions.
17232
17233 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17234 Kwok Cheung Yeung <kcy@codesourcery.com>
17235 Julian Brown <julian@codesourcery.com>
17236 Tom de Vries <tom@codesourcery.com>
17237 Jan Hubicka <hubicka@ucw.cz>
17238 Martin Jambor <mjambor@suse.cz>
17239
17240 * config.gcc: Add amdgcn*-*-amdhsa configuration.
17241 * configure.ac: Check for dlopen.
17242 * configure: Regenerate.
17243
17244 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17245 Kwok Cheung Yeung <kcy@codesourcery.com>
17246 Julian Brown <julian@codesourcery.com>
17247 Tom de Vries <tom@codesourcery.com>
17248 Jan Hubicka <hubicka@ucw.cz>
17249 Martin Jambor <mjambor@suse.cz>
17250
17251 * common/config/gcn/gcn-common.c: New file.
17252 * config/gcn/driver-gcn.c: New file.
17253 * config/gcn/gcn-builtins.def: New file.
17254 * config/gcn/gcn-hsa.h: New file.
17255 * config/gcn/gcn-modes.def: New file.
17256 * config/gcn/gcn-opts.h: New file.
17257 * config/gcn/gcn-passes.def: New file.
17258 * config/gcn/gcn-protos.h: New file.
17259 * config/gcn/gcn-run.c: New file.
17260 * config/gcn/gcn-tree.c: New file.
17261 * config/gcn/gcn.c: New file.
17262 * config/gcn/gcn.h: New file.
17263 * config/gcn/gcn.opt: New file.
17264 * config/gcn/t-gcn-hsa: New file.
17265
17266 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17267 Kwok Cheung Yeung <kcy@codesourcery.com>
17268 Julian Brown <julian@codesourcery.com>
17269 Tom de Vries <tom@codesourcery.com>
17270 Jan Hubicka <hubicka@ucw.cz>
17271 Martin Jambor <mjambor@suse.cz>
17272
17273 * config/gcn/constraints.md: New file.
17274 * config/gcn/gcn-valu.md: New file.
17275 * config/gcn/gcn.md: New file.
17276 * config/gcn/predicates.md: New file.
17277
17278 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
17279
17280 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
17281 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
17282 (stmt_uses_0_or_null_in_undefined_way): Likewise.
17283 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
17284
17285 2019-01-17 Tamar Christina <tamar.christina@arm.com>
17286
17287 PR target/88851
17288 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
17289 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
17290 it and document registers.
17291
17292 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17293
17294 * config/aarch64/aarch64.c (ares_tunings): Define.
17295 * config/aarch64/aarch64-cores.def (ares): Use the above.
17296
17297 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17298
17299 PR target/88794
17300 Revert:
17301 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
17302
17303 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
17304 (_mm512_fixupimm_round_pd): Update parameters and builtin.
17305 (_mm512_maskz_fixupimm_round_pd): Ditto.
17306 (_mm512_fixupimm_round_ps): Ditto.
17307 (_mm512_maskz_fixupimm_round_ps): Ditto.
17308 (_mm_fixupimm_round_sd): Ditto.
17309 (_mm_maskz_fixupimm_round_sd): Ditto.
17310 (_mm_fixupimm_round_ss): Ditto.
17311 (_mm_maskz_fixupimm_round_ss): Ditto.
17312 (_mm512_fixupimm_pd): Ditto.
17313 (_mm512_maskz_fixupimm_pd): Ditto.
17314 (_mm512_fixupimm_ps): Ditto.
17315 (_mm512_maskz_fixupimm_ps): Ditto.
17316 (_mm_fixupimm_sd): Ditto.
17317 (_mm_maskz_fixupimm_sd): Ditto.
17318 (_mm_fixupimm_ss): Ditto.
17319 (_mm_maskz_fixupimm_ss): Ditto.
17320 (_mm512_mask_fixupimm_round_pd): Update builtin.
17321 (_mm512_mask_fixupimm_round_ps): Ditto.
17322 (_mm_mask_fixupimm_round_sd): Ditto.
17323 (_mm_mask_fixupimm_round_ss): Ditto.
17324 (_mm512_mask_fixupimm_pd): Ditto.
17325 (_mm512_mask_fixupimm_ps): Ditto.
17326 (_mm_mask_fixupimm_sd): Ditto.
17327 (_mm_mask_fixupimm_ss): Ditto.
17328 * config/i386/avx512vlintrin.h:
17329 (_mm256_fixupimm_pd): Update parameters and builtin.
17330 (_mm256_maskz_fixupimm_pd): Ditto.
17331 (_mm256_fixupimm_ps): Ditto.
17332 (_mm256_maskz_fixupimm_ps): Ditto.
17333 (_mm_fixupimm_pd): Ditto.
17334 (_mm_maskz_fixupimm_pd): Ditto.
17335 (_mm_fixupimm_ps): Ditto.
17336 (_mm_maskz_fixupimm_ps): Ditto.
17337 (_mm256_mask_fixupimm_pd): Update builtin.
17338 (_mm256_mask_fixupimm_ps): Ditto.
17339 (_mm_mask_fixupimm_pd): Ditto.
17340 (_mm_mask_fixupimm_ps): Ditto.
17341 * config/i386/i386-builtin-types.def: Add new types and remove
17342 useless ones.
17343 * config/i386/i386-builtin.def: Update builtin definitions.
17344 * config/i386/i386.c: Handle new builtin types and remove useless ones.
17345 * config/i386/sse.md: Update VFIXUPIMM* patterns.
17346 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17347 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17348 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
17349 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17350 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17351 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
17352 * config/i386/subst.md:
17353 (round_saeonly_sd_mask_operand4): Add new subst_attr.
17354 (round_saeonly_sd_mask_op4): Ditto.
17355 (round_saeonly_expand_operand5): Ditto.
17356 (round_saeonly_expand): Update.
17357
17358 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17359
17360 PR target/88794
17361 Revert:
17362 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
17363
17364 * config/i386/sse.md: Combine VFIXUPIMM* patterns
17365 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17366 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17367 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
17368 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17369 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17370 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
17371
17372 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17373
17374 PR target/88794
17375 Revert:
17376 2018-12-15 Jakub Jelinek <jakub@redhat.com>
17377
17378 PR target/88489
17379 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
17380 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
17381 instead of UNSPEC_FIXUPIMM.
17382
17383 2019-01-17 Richard Biener <rguenther@suse.de>
17384
17385 PR lto/86736
17386 * dwarf2out.c (want_pubnames): Never generate pubnames sections
17387 and friends for the LTO part of debug info.
17388
17389 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17390
17391 PR tree-optimization/86214
17392 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
17393 if x == y.
17394
17395 PR rtl-optimization/88870
17396 * dce.c (deletable_insn_p): Never delete const/pure calls that can
17397 throw if we can't alter the cfg or delete dead exceptions.
17398 (mark_insn): Don't call find_call_stack_args for such calls.
17399
17400 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
17401
17402 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
17403 prototypes for vec_st.
17404 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
17405 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
17406 mainly on signed/unsigned long long and double.
17407
17408 2019-01-16 David Malcolm <dmalcolm@redhat.com>
17409
17410 PR target/88861
17411 * combine.c (delete_noop_moves): Convert to "bool" return,
17412 returning true if any edges are eliminated.
17413 (combine_instructions): Also return true if delete_noop_moves
17414 returns true.
17415
17416 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17417
17418 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
17419 correct max nunits for endian swap.
17420 (aarch64_expand_fcmla_builtin): Correct subreg code.
17421 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
17422 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
17423 lane endianness.
17424
17425 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
17426
17427 * config/alpha/alpha.c (alpha_gimplify_va_arg):
17428 Handle split indirect COMPLEX_TYPE arguments.
17429
17430 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
17431
17432 PR target/86891
17433 * config/aarch64/aarch64-modes.def: Add comment about how the carry
17434 bit is set by add and compare.
17435 (CC_ADC): New CC_MODE.
17436 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
17437 to cache the code and mode of X. Adjust the shape of a CC_Cmode
17438 comparison. Add detection for CC_ADCmode.
17439 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
17440 CC_ADCmode.
17441 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
17442 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
17443 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
17444 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
17445 to eliminate the need for zero-extending the operands.
17446 (add<mode>3_compareC_imm): Delete. Merge into ...
17447 (add<mode>3_compareC): ... this. Restructure the comparison to
17448 eliminate the need for zero-extending the operands.
17449 (add<mode>3_carryin): Use LTU for the overflow detection.
17450 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
17451 Reexpress comparison for overflow.
17452 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
17453 (add<mode>3_carryinC): Likewise.
17454 (add<mode>3_carryinV): Use LTU for carry between partials.
17455 * config/aarch64/predicates.md (aarch64_carry_operation): Update
17456 handling of CC_Cmode and add CC_ADCmode.
17457 (aarch64_borrow_operation): Likewise.
17458
17459 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17460
17461 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
17462 Remove patternmode.
17463 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
17464 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
17465 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
17466 Remove endianness conversion.
17467
17468 2019-01-16 Martin Liska <mliska@suse.cz>
17469
17470 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
17471 for GCC driver.
17472 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
17473 a new argument.
17474 * gcc.c (add_sysrooted_hdrs_prefix): New function.
17475 (path_prefix_reset): Move up in the source file.
17476 (find_fortran_preinclude_file): Make complex search for the
17477 fortran header files.
17478
17479 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
17480
17481 * godump.c (go_output_typedef): When outputting a typedef, refer
17482 to the underlying type by its name and not its structure.
17483
17484 2019-01-15 David Malcolm <dmalcolm@redhat.com>
17485
17486 PR c++/88795
17487 * tree.c (build_function_type): Assert that arg_types is not
17488 error_mark_node.
17489
17490 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
17491
17492 PR inline-asm/52813
17493 * doc/extend.texi: Document that listing the stack pointer in the
17494 clobber list of an asm is a deprecated feature.
17495 * common.opt (Wdeprecated): Moved from c-family/c.opt.
17496 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
17497 warning instead of an error for clobbers of the stack pointer.
17498 Add a note explaining why.
17499
17500 2019-01-15 Richard Biener <rguenther@suse.de>
17501
17502 PR debug/88046
17503 * dwarf2out.c (gen_member_die): Do not generate inheritance
17504 DIEs late.
17505
17506 2019-01-15 Richard Biener <rguenther@suse.de>
17507
17508 PR tree-optimization/88855
17509 * tree-if-conv.c (combine_blocks): Collect
17510 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
17511
17512 2019-01-15 Tom de Vries <tdevries@suse.de>
17513
17514 PR target/80547
17515 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
17516 lhs == NULL_TREE for gang-level reduction.
17517
17518 2019-01-15 Richard Biener <rguenther@suse.de>
17519 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17520
17521 PR ipa/88788
17522 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
17523 return true if SSA_NAME is already marked in visited bitmap.
17524 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
17525
17526 2019-01-15 Jakub Jelinek <jakub@redhat.com>
17527
17528 PR tree-optimization/88775
17529 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
17530 equal == 0 equality pointer comparisons some more if compared in
17531 integral types and either one points to an automatic var and the
17532 other to a global, or we can prove at least one points to the middle
17533 or both point to start or both point to end.
17534
17535 2019-01-14 Andi Kleen <ak@linux.intel.com>
17536
17537 * Makefile.in: Lower autofdo sampling rate by 10x.
17538 * Makefile.tpl: Dito.
17539
17540 2019-01-14 Tom Honermann <tom@honermann.net>
17541
17542 * defaults.h: Define CHAR8_TYPE.
17543
17544 2019-01-14 Martin Sebor <msebor@redhat.com>
17545
17546 PR target/88638
17547 * doc/extend.texi (Darwin Format Checks): Clarify.
17548
17549 2019-01-14 Richard Biener <rguenther@suse.de>
17550
17551 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
17552 whether we are in (simplify ...) or (match ...) context.
17553
17554 2019-01-14 Jakub Jelinek <jakub@redhat.com>
17555
17556 PR rtl-optimization/88796
17557 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
17558 * cfgexpand.c (stack_protect_prologue): Initialize
17559 crtl->stack_protect_guard_decl.
17560 * function.c (stack_protect_epilogue): Use it instead of calling
17561 targetm.stack_protect_guard again.
17562 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
17563 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
17564 crtl->stack_protect_guard_decl.
17565 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
17566 on the returned MEM_EXPR.
17567
17568 2019-01-12 Tom de Vries <tdevries@suse.de>
17569
17570 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
17571 vector length using -fopenacc-dim.
17572
17573 2019-01-12 Tom de Vries <tdevries@suse.de>
17574
17575 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
17576 lengths into account.
17577
17578 2019-01-12 Svante Signell <svante.signell@gmail.com>
17579
17580 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
17581 (TARGET_CAN_SPLIT_STACK): Define.
17582 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
17583
17584 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17585
17586 * params.def (inline-unit-growth): Set to 40.
17587
17588 2019-01-12 Jakub Jelinek <jakub@redhat.com>
17589
17590 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
17591
17592 2019-01-12 Tom de Vries <tdevries@suse.de>
17593
17594 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
17595 region calling vector-partitionable routine, set default_vector_length
17596 to WARP_SIZE.
17597
17598 2019-01-12 Tom de Vries <tdevries@suse.de>
17599
17600 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
17601 variable default_vector_length.
17602
17603 2019-01-12 Tom de Vries <tdevries@suse.de>
17604
17605 PR middle-end/88703
17606 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
17607 from oacc_default_dims, as oacc_validate_dims would do it, and apply
17608 dimensions limits.
17609
17610 2019-01-12 Tom de Vries <tdevries@suse.de>
17611
17612 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
17613 (nvptx_goacc_validate_dims): Add used parameter.
17614 * doc/tm.texi: Regenerate.
17615 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
17616 argument to call to targetm.goacc.validate_dims.
17617 (default_goacc_validate_dims): Add used
17618 parameter.
17619 * target.def (validate_dims): Add used parameter in DEFHOOK.
17620 * targhooks.h (default_goacc_validate_dims): Add used parameter.
17621
17622 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17623
17624 PR middle-end/85956
17625 PR lto/88733
17626 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
17627 field.
17628 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
17629 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
17630 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
17631 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
17632
17633 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
17634
17635 PR rtl-optimization/87305
17636 * lra-assigns.c
17637 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
17638 for little endian pseudos used as paradoxical subreg.
17639
17640 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17641
17642 PR tree-optimization/88693
17643 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
17644 for STRING_CSTs that don't contain any NUL characters in the first
17645 TREE_STRING_LENGTH bytes.
17646
17647 2019-01-11 Alan Modra <amodra@gmail.com>
17648
17649 PR 88777
17650 PR 88614
17651 * genattrtab.c (min_fn): Don't translate values.
17652 (min_attr_value): Return INT_MAX when the value can't be calculated.
17653 Return minimum among any values that can be calculated.
17654 (max_attr_value): Adjust.
17655
17656 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17657
17658 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
17659
17660 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17661
17662 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17663 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
17664 (aarch64_return_call_with_max_clobbers): New function.
17665 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
17666 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
17667 argument.
17668 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
17669 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
17670 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
17671 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
17672 * cselib.c (cselib_process_insn): Add argument to
17673 targetm.hard_regno_call_part_clobbered call.
17674 * ira-conflicts.c (ira_build_conflicts): Ditto.
17675 * ira-costs.c (ira_tune_allocno_costs): Ditto.
17676 * lra-constraints.c (inherit_reload_reg): Ditto.
17677 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
17678 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
17679 argument. Call targetm.return_call_with_max_clobbers.
17680 Add argument to targetm.hard_regno_call_part_clobbered call.
17681 (calls_have_same_clobbers_p): New function.
17682 (process_bb_lives): Add call_insn and last_call_insn variables.
17683 Pass call_insn to check_pseudos_live_through_calls.
17684 Modify if stmt to check targetm.return_call_with_max_clobbers.
17685 Update setting of flush variable.
17686 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
17687 to false.
17688 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
17689 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
17690 targetm.hard_regno_call_part_clobbered call.
17691 * reginfo.c (choose_hard_reg_mode): Ditto.
17692 * regrename.c (check_new_reg_p): Ditto.
17693 * reload.c (find_equiv_reg): Ditto.
17694 * reload1.c (emit_reload_insns): Ditto.
17695 * sched-deps.c (deps_analyze_insn): Ditto.
17696 * sel-sched.c (init_regs_for_mode): Ditto.
17697 (mark_unavailable_hard_regs): Ditto.
17698 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
17699 * target.def (hard_regno_call_part_clobbered): Add insn argument.
17700 (return_call_with_max_clobbers): New target function.
17701 * doc/tm.texi: Regenerate.
17702 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
17703 * hooks.c (hook_bool_uint_mode_false): Change to
17704 hook_bool_insn_uint_mode_false.
17705 * hooks.h (hook_bool_uint_mode_false): Ditto.
17706
17707 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17708
17709 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17710 (aarch64_remove_extra_call_preserved_regs): New function.
17711 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
17712 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
17713 * doc/tm.texi: Regenerate.
17714 * final.c (get_call_reg_set_usage): Call new hook.
17715 * target.def (remove_extra_call_preserved_regs): New hook.
17716 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
17717 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
17718
17719 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17720
17721 PR bootstrap/88714
17722 * passes.c (finish_optimization_passes): Call print_combine_total_stats
17723 inside of pass_combine_1 dump rather than pass_profile_1.
17724
17725 2019-01-11 Tom de Vries <tdevries@suse.de>
17726
17727 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
17728 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
17729 (PTX_NUM_PER_WORKER_BARRIERS): Define.
17730 (nvptx_apply_dim_limits): Prevent vector_length 64 and
17731 num_workers 16.
17732
17733 2019-01-11 Tom de Vries <tdevries@suse.de>
17734
17735 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
17736
17737 2019-01-11 Jan Beulich <jbeulich@suse.com>
17738
17739 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
17740 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
17741 sse2_cvtsi2sd): Add {l}.
17742 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
17743 syntax.
17744
17745 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17746
17747 PR target/88785
17748 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
17749 define_expand.
17750 (*float<floatunssuffix>v2div2sf2): New define_insn.
17751 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
17752 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
17753 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
17754 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
17755 match_operands with "const0_operand" "C".
17756
17757 2019-01-10 Tamar Christina <tamar.christina@arm.com>
17758
17759 * config/aarch64/aarch64-builtins.c
17760 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
17761 (aarch64_init_simd_builtins): ...Here
17762
17763 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
17764
17765 PR rtl-optimization/87305
17766 * lra-assigns.c
17767 (setup_live_pseudos_and_spill_after_risky_transforms): Check
17768 allocation for big endian pseudos used as paradoxical subregs and
17769 spill them if it is wrong.
17770 * lra-constraints.c (lra_constraints): Add a comment.
17771
17772 2019-01-10 Richard Biener <rguenther@suse.de>
17773
17774 PR tree-optimization/88792
17775 * tree-ssa-pre.c (get_representative_for): Do not return a
17776 value-number here.
17777
17778 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17779
17780 PR middle-end/84877
17781 PR bootstrap/88450
17782 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
17783 (assign_parm_setup_block): Do the argument slot realignment here
17784 instead.
17785
17786 2019-01-10 Stefan Agner <stefan@agner.ch>
17787
17788 PR target/88648
17789 * config/arm/arm.c (arm_option_override_internal): Force
17790 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
17791
17792 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17793
17794 PR c/88568
17795 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
17796 DECL_EXTERNAL.
17797
17798 2019-01-10 Tamar Christina <tamar.christina@arm.com>
17799
17800 * config/arm/arm-builtins.c
17801 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
17802 (MAC_LANE_PAIR_QUALIFIERS): New.
17803 (arm_expand_builtin_args): Use it.
17804 (arm_expand_builtin_1): Likewise.
17805 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
17806 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
17807 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
17808 * config/arm/arm_neon.h:
17809 (vcadd_rot90_f16): New.
17810 (vcaddq_rot90_f16): New.
17811 (vcadd_rot270_f16): New.
17812 (vcaddq_rot270_f16): New.
17813 (vcmla_f16): New.
17814 (vcmlaq_f16): New.
17815 (vcmla_lane_f16): New.
17816 (vcmla_laneq_f16): New.
17817 (vcmlaq_lane_f16): New.
17818 (vcmlaq_laneq_f16): New.
17819 (vcmla_rot90_f16): New.
17820 (vcmlaq_rot90_f16): New.
17821 (vcmla_rot90_lane_f16): New.
17822 (vcmla_rot90_laneq_f16): New.
17823 (vcmlaq_rot90_lane_f16): New.
17824 (vcmlaq_rot90_laneq_f16): New.
17825 (vcmla_rot180_f16): New.
17826 (vcmlaq_rot180_f16): New.
17827 (vcmla_rot180_lane_f16): New.
17828 (vcmla_rot180_laneq_f16): New.
17829 (vcmlaq_rot180_lane_f16): New.
17830 (vcmlaq_rot180_laneq_f16): New.
17831 (vcmla_rot270_f16): New.
17832 (vcmlaq_rot270_f16): New.
17833 (vcmla_rot270_lane_f16): New.
17834 (vcmla_rot270_laneq_f16): New.
17835 (vcmlaq_rot270_lane_f16): New.
17836 (vcmlaq_rot270_laneq_f16): New.
17837 (vcadd_rot90_f32): New.
17838 (vcaddq_rot90_f32): New.
17839 (vcadd_rot270_f32): New.
17840 (vcaddq_rot270_f32): New.
17841 (vcmla_f32): New.
17842 (vcmlaq_f32): New.
17843 (vcmla_lane_f32): New.
17844 (vcmla_laneq_f32): New.
17845 (vcmlaq_lane_f32): New.
17846 (vcmlaq_laneq_f32): New.
17847 (vcmla_rot90_f32): New.
17848 (vcmlaq_rot90_f32): New.
17849 (vcmla_rot90_lane_f32): New.
17850 (vcmla_rot90_laneq_f32): New.
17851 (vcmlaq_rot90_lane_f32): New.
17852 (vcmlaq_rot90_laneq_f32): New.
17853 (vcmla_rot180_f32): New.
17854 (vcmlaq_rot180_f32): New.
17855 (vcmla_rot180_lane_f32): New.
17856 (vcmla_rot180_laneq_f32): New.
17857 (vcmlaq_rot180_lane_f32): New.
17858 (vcmlaq_rot180_laneq_f32): New.
17859 (vcmla_rot270_f32): New.
17860 (vcmlaq_rot270_f32): New.
17861 (vcmla_rot270_lane_f32): New.
17862 (vcmla_rot270_laneq_f32): New.
17863 (vcmlaq_rot270_lane_f32): New.
17864 (vcmlaq_rot270_laneq_f32): New.
17865 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
17866 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
17867 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
17868 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
17869 vcmlaq_lane270): New.
17870 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
17871 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
17872 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
17873 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
17874 (arm_option_reconfigure_globals): Use them.
17875 * config/arm/iterators.md (VDF, VQ_HSF): New.
17876 (VCADD, VCMLA): New.
17877 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
17878 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
17879 New.
17880 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
17881 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
17882
17883 2019-01-10 Tamar Christina <tamar.christina@arm.com>
17884
17885 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
17886 Add qualifier_lane_pair_index.
17887 (emit-rtl.h): Include.
17888 (TYPES_QUADOP_LANE_PAIR): New.
17889 (aarch64_simd_expand_args): Use it.
17890 (aarch64_simd_expand_builtin): Likewise.
17891 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
17892 New.
17893 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
17894 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
17895 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
17896 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
17897 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
17898 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
17899 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
17900 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
17901 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
17902 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
17903 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
17904 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
17905 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
17906 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
17907 Add __ARM_FEATURE_COMPLEX.
17908 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
17909 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
17910 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
17911 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
17912 fcmlaq_lane270): New.
17913 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
17914 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
17915 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
17916 * config/aarch64/arm_neon.h:
17917 (vcadd_rot90_f16): New.
17918 (vcaddq_rot90_f16): New.
17919 (vcadd_rot270_f16): New.
17920 (vcaddq_rot270_f16): New.
17921 (vcmla_f16): New.
17922 (vcmlaq_f16): New.
17923 (vcmla_lane_f16): New.
17924 (vcmla_laneq_f16): New.
17925 (vcmlaq_lane_f16): New.
17926 (vcmlaq_rot90_lane_f16): New.
17927 (vcmla_rot90_laneq_f16): New.
17928 (vcmla_rot90_lane_f16): New.
17929 (vcmlaq_rot90_f16): New.
17930 (vcmla_rot90_f16): New.
17931 (vcmlaq_laneq_f16): New.
17932 (vcmla_rot180_laneq_f16): New.
17933 (vcmla_rot180_lane_f16): New.
17934 (vcmlaq_rot180_f16): New.
17935 (vcmla_rot180_f16): New.
17936 (vcmlaq_rot90_laneq_f16): New.
17937 (vcmlaq_rot270_laneq_f16): New.
17938 (vcmlaq_rot270_lane_f16): New.
17939 (vcmla_rot270_laneq_f16): New.
17940 (vcmlaq_rot270_f16): New.
17941 (vcmla_rot270_f16): New.
17942 (vcmlaq_rot180_laneq_f16): New.
17943 (vcmlaq_rot180_lane_f16): New.
17944 (vcmla_rot270_lane_f16): New.
17945 (vcadd_rot90_f32): New.
17946 (vcaddq_rot90_f32): New.
17947 (vcaddq_rot90_f64): New.
17948 (vcadd_rot270_f32): New.
17949 (vcaddq_rot270_f32): New.
17950 (vcaddq_rot270_f64): New.
17951 (vcmla_f32): New.
17952 (vcmlaq_f32): New.
17953 (vcmlaq_f64): New.
17954 (vcmla_lane_f32): New.
17955 (vcmla_laneq_f32): New.
17956 (vcmlaq_lane_f32): New.
17957 (vcmlaq_laneq_f32): New.
17958 (vcmla_rot90_f32): New.
17959 (vcmlaq_rot90_f32): New.
17960 (vcmlaq_rot90_f64): New.
17961 (vcmla_rot90_lane_f32): New.
17962 (vcmla_rot90_laneq_f32): New.
17963 (vcmlaq_rot90_lane_f32): New.
17964 (vcmlaq_rot90_laneq_f32): New.
17965 (vcmla_rot180_f32): New.
17966 (vcmlaq_rot180_f32): New.
17967 (vcmlaq_rot180_f64): New.
17968 (vcmla_rot180_lane_f32): New.
17969 (vcmla_rot180_laneq_f32): New.
17970 (vcmlaq_rot180_lane_f32): New.
17971 (vcmlaq_rot180_laneq_f32): New.
17972 (vcmla_rot270_f32): New.
17973 (vcmlaq_rot270_f32): New.
17974 (vcmlaq_rot270_f64): New.
17975 (vcmla_rot270_lane_f32): New.
17976 (vcmla_rot270_laneq_f32): New.
17977 (vcmlaq_rot270_lane_f32): New.
17978 (vcmlaq_rot270_laneq_f32): New.
17979 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
17980 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
17981 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
17982 (FCADD, FCMLA): New.
17983 (rot): New.
17984 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
17985
17986 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
17987
17988 PR other/16615
17989
17990 * config/pa/pa.c: Change "can not" to "cannot".
17991 * gimple-ssa-evrp-analyze.c: Likewise.
17992 * ipa-icf.c: Likewise.
17993 * ipa-polymorphic-call.c: Likewise.
17994 * ipa-pure-const.c: Likewise.
17995 * lra-constraints.c: Likewise.
17996 * lra-remat.c: Likewise.
17997 * reload1.c: Likewise.
17998 * reorg.c: Likewise.
17999 * tree-ssa-uninit.c: Likewise.
18000
18001 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18002
18003 PR other/16615
18004
18005 * Makefile.in: Mechanically replace "can not" with "cannot".
18006 * alias.c: Likewise.
18007 * builtins.c: Likewise.
18008 * calls.c: Likewise.
18009 * cgraph.c: Likewise.
18010 * cgraph.h: Likewise.
18011 * cgraphclones.c: Likewise.
18012 * cgraphunit.c: Likewise.
18013 * combine-stack-adj.c: Likewise.
18014 * combine.c: Likewise.
18015 * common/config/i386/i386-common.c: Likewise.
18016 * config/aarch64/aarch64.c: Likewise.
18017 * config/alpha/sync.md: Likewise.
18018 * config/arc/arc.c: Likewise.
18019 * config/arc/predicates.md: Likewise.
18020 * config/arm/arm-c.c: Likewise.
18021 * config/arm/arm.c: Likewise.
18022 * config/arm/arm.h: Likewise.
18023 * config/arm/arm.md: Likewise.
18024 * config/arm/cortex-r4f.md: Likewise.
18025 * config/csky/csky.c: Likewise.
18026 * config/csky/csky.h: Likewise.
18027 * config/darwin-f.c: Likewise.
18028 * config/epiphany/epiphany.md: Likewise.
18029 * config/i386/i386.c: Likewise.
18030 * config/i386/sol2.h: Likewise.
18031 * config/m68k/m68k.c: Likewise.
18032 * config/mcore/mcore.h: Likewise.
18033 * config/microblaze/microblaze.md: Likewise.
18034 * config/mips/20kc.md: Likewise.
18035 * config/mips/sb1.md: Likewise.
18036 * config/nds32/nds32.c: Likewise.
18037 * config/nds32/predicates.md: Likewise.
18038 * config/pa/pa.c: Likewise.
18039 * config/rs6000/e300c2c3.md: Likewise.
18040 * config/rs6000/rs6000.c: Likewise.
18041 * config/s390/s390.h: Likewise.
18042 * config/sh/sh.c: Likewise.
18043 * config/sh/sh.md: Likewise.
18044 * config/spu/vmx2spu.h: Likewise.
18045 * cprop.c: Likewise.
18046 * dbxout.c: Likewise.
18047 * df-scan.c: Likewise.
18048 * doc/cfg.texi: Likewise.
18049 * doc/extend.texi: Likewise.
18050 * doc/fragments.texi: Likewise.
18051 * doc/gty.texi: Likewise.
18052 * doc/invoke.texi: Likewise.
18053 * doc/lto.texi: Likewise.
18054 * doc/md.texi: Likewise.
18055 * doc/objc.texi: Likewise.
18056 * doc/rtl.texi: Likewise.
18057 * doc/tm.texi: Likewise.
18058 * dse.c: Likewise.
18059 * emit-rtl.c: Likewise.
18060 * emit-rtl.h: Likewise.
18061 * except.c: Likewise.
18062 * expmed.c: Likewise.
18063 * expr.c: Likewise.
18064 * fold-const.c: Likewise.
18065 * genautomata.c: Likewise.
18066 * gimple-fold.c: Likewise.
18067 * hard-reg-set.h: Likewise.
18068 * ifcvt.c: Likewise.
18069 * ipa-comdats.c: Likewise.
18070 * ipa-cp.c: Likewise.
18071 * ipa-devirt.c: Likewise.
18072 * ipa-fnsummary.c: Likewise.
18073 * ipa-icf.c: Likewise.
18074 * ipa-inline-transform.c: Likewise.
18075 * ipa-inline.c: Likewise.
18076 * ipa-polymorphic-call.c: Likewise.
18077 * ipa-profile.c: Likewise.
18078 * ipa-prop.c: Likewise.
18079 * ipa-pure-const.c: Likewise.
18080 * ipa-reference.c: Likewise.
18081 * ipa-split.c: Likewise.
18082 * ipa-visibility.c: Likewise.
18083 * ipa.c: Likewise.
18084 * ira-build.c: Likewise.
18085 * ira-color.c: Likewise.
18086 * ira-conflicts.c: Likewise.
18087 * ira-costs.c: Likewise.
18088 * ira-int.h: Likewise.
18089 * ira-lives.c: Likewise.
18090 * ira.c: Likewise.
18091 * ira.h: Likewise.
18092 * loop-invariant.c: Likewise.
18093 * loop-unroll.c: Likewise.
18094 * lower-subreg.c: Likewise.
18095 * lra-assigns.c: Likewise.
18096 * lra-constraints.c: Likewise.
18097 * lra-eliminations.c: Likewise.
18098 * lra-lives.c: Likewise.
18099 * lra-remat.c: Likewise.
18100 * lra-spills.c: Likewise.
18101 * lra.c: Likewise.
18102 * lto-cgraph.c: Likewise.
18103 * lto-streamer-out.c: Likewise.
18104 * postreload-gcse.c: Likewise.
18105 * predict.c: Likewise.
18106 * profile-count.h: Likewise.
18107 * profile.c: Likewise.
18108 * recog.c: Likewise.
18109 * ree.c: Likewise.
18110 * reload.c: Likewise.
18111 * reload1.c: Likewise.
18112 * reorg.c: Likewise.
18113 * resource.c: Likewise.
18114 * rtl.def: Likewise.
18115 * rtl.h: Likewise.
18116 * rtlanal.c: Likewise.
18117 * sched-deps.c: Likewise.
18118 * sched-ebb.c: Likewise.
18119 * sched-rgn.c: Likewise.
18120 * sel-sched-ir.c: Likewise.
18121 * sel-sched.c: Likewise.
18122 * shrink-wrap.c: Likewise.
18123 * simplify-rtx.c: Likewise.
18124 * symtab.c: Likewise.
18125 * target.def: Likewise.
18126 * toplev.c: Likewise.
18127 * tree-call-cdce.c: Likewise.
18128 * tree-cfg.c: Likewise.
18129 * tree-complex.c: Likewise.
18130 * tree-core.h: Likewise.
18131 * tree-eh.c: Likewise.
18132 * tree-inline.c: Likewise.
18133 * tree-loop-distribution.c: Likewise.
18134 * tree-nrv.c: Likewise.
18135 * tree-profile.c: Likewise.
18136 * tree-sra.c: Likewise.
18137 * tree-ssa-alias.c: Likewise.
18138 * tree-ssa-dce.c: Likewise.
18139 * tree-ssa-dom.c: Likewise.
18140 * tree-ssa-forwprop.c: Likewise.
18141 * tree-ssa-loop-im.c: Likewise.
18142 * tree-ssa-loop-ivcanon.c: Likewise.
18143 * tree-ssa-loop-ivopts.c: Likewise.
18144 * tree-ssa-loop-niter.c: Likewise.
18145 * tree-ssa-phionlycprop.c: Likewise.
18146 * tree-ssa-phiopt.c: Likewise.
18147 * tree-ssa-propagate.c: Likewise.
18148 * tree-ssa-threadedge.c: Likewise.
18149 * tree-ssa-threadupdate.c: Likewise.
18150 * tree-ssa-uninit.c: Likewise.
18151 * tree-ssanames.c: Likewise.
18152 * tree-streamer-out.c: Likewise.
18153 * tree.c: Likewise.
18154 * tree.h: Likewise.
18155 * vr-values.c: Likewise.
18156
18157 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
18158
18159 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
18160 (ix86_split_xorsign): Ditto.
18161 * config/i386/i386.c (ix86_expand_xorsign): New function.
18162 (ix86_split_xorsign): Ditto.
18163 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
18164 (xorsign<mode>3): New expander.
18165 (xorsign<mode>3_1): New insn_and_split pattern.
18166 * config/i386/sse.md (xorsign<mode>3): New expander.
18167
18168 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18169
18170 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
18171 (*tablejump_sp64): Likewise.
18172 (*tablejump<P:mode>): ...this.
18173 (*call_address_sp32): Merge into...
18174 (*call_address_sp64): Likewise.
18175 (*call_address<P:mode>): ...this.
18176 (*call_symbolic_sp32): Merge into...
18177 (*call_symbolic_sp64): Likewise.
18178 (*call_symbolic<P:mode>): ...this.
18179 (call_value): Remove constraint and add predicate.
18180 (*call_value_address_sp32): Merge into...
18181 (*call_value_address_sp64): Likewise.
18182 (*call_value_address<P:mode>): ...this.
18183 (*call_value_symbolic_sp32): Merge into...
18184 (*call_value_symbolic_sp64): Likewise.
18185 (*call_value_symbolic<P:mode>): ...this.
18186 (*sibcall_symbolic_sp32): Merge into...
18187 (*sibcall_symbolic_sp64): Likewise.
18188 (*sibcall_symbolic<P:mode>): ...this.
18189 (sibcall_value): Remove constraint and add predicate.
18190 (*sibcall_value_symbolic_sp32): Merge into...
18191 (*sibcall_value_symbolic_sp64): Likewise.
18192 (*sibcall_value_symbolic<P:mode>): ...this.
18193 (window_save): Minor tweak.
18194 (*branch_sp32): Merge into...
18195 (*branch_sp64): Likewise.
18196 (*branch<P:mode>): ...this.
18197
18198 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18199 James Clarke <jrtc27@jrtc27.com>
18200
18201 PR target/84010
18202 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
18203 consistently in TLS address generation and adjust code to the renaming
18204 of patterns. Mark calls to __tls_get_addr as const.
18205 * config/sparc/sparc.md (tgd_hi22): Turn into...
18206 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
18207 (tgd_lo10): Turn into...
18208 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
18209 (tgd_add32): Merge into...
18210 (tgd_add64): Likewise.
18211 (tgd_add<P:mode>): ...this and use Pmode throughout.
18212 (tldm_hi22): Turn into...
18213 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
18214 (tldm_lo10): Turn into...
18215 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
18216 (tldm_add32): Merge into...
18217 (tldm_add64): Likewise.
18218 (tldm_add<P:mode>): ...this and use Pmode throughout.
18219 (tldm_call32): Merge into...
18220 (tldm_call64): Likewise.
18221 (tldm_call<P:mode>): ...this and use Pmode throughout.
18222 (tldo_hix22): Turn into...
18223 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
18224 (tldo_lox10): Turn into...
18225 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
18226 (tldo_add32): Merge into...
18227 (tldo_add64): Likewise.
18228 (tldo_add<P:mode>): ...this and use Pmode throughout.
18229 (tie_hi22): Turn into...
18230 (tie_hi22<P:mode>): ...this and use Pmode throughout.
18231 (tie_lo10): Turn into...
18232 (tie_lo10<P:mode>): ...this and use Pmode throughout.
18233 (tie_ld64): Use DImode throughout.
18234 (tie_add32): Merge into...
18235 (tie_add64): Likewise.
18236 (tie_add<P:mode>): ...this and use Pmode throughout.
18237 (tle_hix22_sp32): Merge into...
18238 (tle_hix22_sp64): Likewise.
18239 (tle_hix22<P:mode>): ...this and use Pmode throughout.
18240 (tle_lox22_sp32): Merge into...
18241 (tle_lox22_sp64): Likewise.
18242 (tle_lox22<P:mode>): ...this and use Pmode throughout.
18243 (*tldo_ldub_sp32): Merge into...
18244 (*tldo_ldub_sp64): Likewise.
18245 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
18246 (*tldo_ldub1_sp32): Merge into...
18247 (*tldo_ldub1_sp64): Likewise.
18248 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
18249 (*tldo_ldub2_sp32): Merge into...
18250 (*tldo_ldub2_sp64): Likewise.
18251 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
18252 (*tldo_ldsb1_sp32): Merge into...
18253 (*tldo_ldsb1_sp64): Likewise.
18254 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
18255 (*tldo_ldsb2_sp32): Merge into...
18256 (*tldo_ldsb2_sp64): Likewise.
18257 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
18258 (*tldo_ldub3_sp64): Use DImode throughout.
18259 (*tldo_ldsb3_sp64): Likewise.
18260 (*tldo_lduh_sp32): Merge into...
18261 (*tldo_lduh_sp64): Likewise.
18262 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
18263 (*tldo_lduh1_sp32): Merge into...
18264 (*tldo_lduh1_sp64): Likewise.
18265 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
18266 (*tldo_ldsh1_sp32): Merge into...
18267 (*tldo_ldsh1_sp64): Likewise.
18268 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
18269 (*tldo_lduh2_sp64): Use DImode throughout.
18270 (*tldo_ldsh2_sp64): Likewise.
18271 (*tldo_lduw_sp32): Merge into...
18272 (*tldo_lduw_sp64): Likewise.
18273 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
18274 (*tldo_lduw1_sp64): Use DImode throughout.
18275 (*tldo_ldsw1_sp64): Likewise.
18276 (*tldo_ldx_sp64): Likewise.
18277 (*tldo_stb_sp32): Merge into...
18278 (*tldo_stb_sp64): Likewise.
18279 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
18280 (*tldo_sth_sp32): Merge into...
18281 (*tldo_sth_sp64): Likewise.
18282 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
18283 (*tldo_stw_sp32): Merge into...
18284 (*tldo_stw_sp64): Likewise.
18285 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
18286 (*tldo_stx_sp64): Use DImode throughout.
18287
18288 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18289
18290 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
18291 check configure option to set BTI and Return Address Signing.
18292 * configure.ac: Add --enable-standard-branch-protection and
18293 --disable-standard-branch-protection.
18294 * configure: Regenerated.
18295 * doc/install.texi: Document the same.
18296
18297 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18298 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18299
18300 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
18301 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
18302 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
18303 if bti is enabled.
18304 * config/aarch64/aarch64-bti-insert.c: New file.
18305 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
18306 pass.
18307 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
18308 new bti pass.
18309 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
18310 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
18311 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
18312 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
18313
18314 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18315
18316 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
18317 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
18318 Disable bti for -mbranch-protection=none.
18319 (aarch64_handle_standard_branch_protection): Enable bti for
18320 -mbranch-protection=standard.
18321 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
18322 -mbranch-protection.
18323 (aarch64_bti_enabled): Check if bti is enabled.
18324 * config/aarch64/aarch64.opt: Declare target variable.
18325 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
18326
18327 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18328
18329 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
18330 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
18331 (aarch64_expand_epilogue): Likewise.
18332 (aarch64_output_mi_thunk): Likewise.
18333 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
18334 TAILCALL_ADDR_REGS to x16 and x17.
18335 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
18336
18337 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18338
18339 * config/aarch64/aarch64-option-extensions.def: Define
18340 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
18341 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
18342 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
18343 (AARCH64_FL_PREDRES): New.
18344 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
18345 AARCH64_FL_PREDRES by default.
18346 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
18347
18348 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18349
18350 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
18351 ARMv8.5-A.
18352 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
18353 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
18354 * doc/invoke.texi: Document ARMv8.5-A.
18355
18356 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18357
18358 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
18359 (xorsign<mode>3): Likewise.
18360
18361 2019-01-09 Jelinek <jakub@redhat.com>
18362
18363 PR middle-end/88758
18364 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
18365 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
18366
18367 PR rtl-optimization/88331
18368 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
18369 not currently_expanding_to_rtl.
18370
18371 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18372
18373 * doc/invoke.texi (-Os): Remove trailing spaces.
18374 (-finline-functions): Remove reference to -O2.
18375
18376 2019-01-08 Jakub Jelinek <jakub@redhat.com>
18377
18378 PR rtl-optimization/79593
18379 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
18380
18381 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
18382 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
18383
18384 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
18385
18386 PR bootstrap/88721
18387 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
18388 to -1 on entry.
18389
18390 PR debug/88723
18391 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
18392 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
18393
18394 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
18395
18396 PR target/88717
18397 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
18398 ix86_avx_u128_mode_entry.
18399
18400 2019-01-08 Martin Liska <mliska@suse.cz>
18401
18402 PR tree-optimization/88753
18403 * tree-switch-conversion.c (switch_conversion::build_one_array):
18404 Come up with local variable constructor. Convert first to
18405 type of constructor values.
18406
18407 2019-01-08 Richard Biener <rguenther@suse.de>
18408
18409 PR tree-optimization/86554
18410 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
18411 rpo_avail): Move earlier.
18412 (visit_nary_op): When value-numbering to expressions
18413 with different overflow behavior make sure there's an
18414 available expression on the path.
18415
18416 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
18417
18418 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
18419 aarch64_parse_branch_protection,
18420 struct aarch64_branch_protect_type,
18421 aarch64_handle_no_branch_protection,
18422 aarch64_handle_standard_branch_protection,
18423 aarch64_validate_mbranch_protection,
18424 aarch64_handle_pac_ret_protection,
18425 aarch64_handle_attr_branch_protection,
18426 accepted_branch_protection_string,
18427 aarch64_pac_ret_subtypes,
18428 aarch64_branch_protect_types,
18429 aarch64_handle_pac_ret_leaf): Define.
18430 (aarch64_override_options_after_change_1, aarch64_override_options):
18431 Add check for accepted_branch_protection_string.
18432 (aarch64_option_save): Save accepted_branch_protection_string.
18433 (aarch64_option_restore): Save accepted_branch_protection_string.
18434 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
18435 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
18436 msign-return-address.
18437 * doc/invoke.texi: Add mbranch-protection.
18438
18439 2019-01-08 Alan Modra <amodra@gmail.com>
18440
18441 PR target/88614
18442 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
18443 Delete "unknownp" parameter. Adjust callers. Handle
18444 CONST_INT, PLUS, MINUS, and MULT.
18445 (attr_value_aligned): Renamed from or_attr_value.
18446 (min_attr_value): Return INT_MIN for unhandled rtl case..
18447 (min_fn): ..and translate to INT_MAX here.
18448 (write_length_unit_log): Modify to cope without "unknown".
18449 (write_attr_value): Handle IF_THEN_ELSE.
18450
18451 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18452
18453 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
18454 optimization for masked stores.
18455
18456 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18457
18458 PR middle-end/88567
18459 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
18460 output vector directly to duplicate_and_interleave instead of
18461 going through a temporary. Postpone insertion of ctor_seq to
18462 the end of the loop.
18463
18464 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
18465
18466 PR target/86891
18467 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
18468 unsigned_p. Handle signed and unsigned overflow correction as
18469 required.
18470 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
18471 prototype.
18472 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
18473 for operand 2.
18474 (add<mode>3_compareV_imm): Make this callable for expanding.
18475 (subv<GPI:mode>4): Use register_operand for operand 1. Use
18476 aarch64_plus_operand for operand 2.
18477 (subv<GPI:mode>_insn): New insn pattern.
18478 (subv<GPI:mode>_imm): Likewise.
18479 (negv<GPI:mode>3): New expand pattern.
18480 (negv<GPI:mode>_insn): New insn pattern.
18481 (negv<GPI:mode>_cmp_only): Likewise.
18482 (cmpv<GPI:mode>_insn): Likewise.
18483 (subvti4): Use register_operand for operand 1. Update call to
18484 aarch64_expand_subvti.
18485 (usubvti4): Likewise.
18486 (negvti3): New expand pattern.
18487 (negdi_carryout): New insn pattern.
18488 (negvdi_carryinV): New insn pattern.
18489 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
18490 version the named version.
18491 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
18492 operands.
18493 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
18494 patterns.
18495 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
18496 patterns.
18497 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
18498 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
18499 (sub<mode>3_carryinCV): Delete.
18500 (sub<GPI:mode>3_carryinV): New expand pattern.
18501 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
18502
18503 2019-01-07 Richard Biener <rguenther@suse.de>
18504
18505 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
18506 of tree_operand_hash.
18507
18508 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18509
18510 PR tree-optimization/88598
18511 * tree.h (single_nonzero_element): Declare.
18512 * tree.c (single_nonzero_element): New function.
18513 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
18514 if I is the only nonzero element of CST.
18515
18516 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18517
18518 PR tree-optimization/88598
18519 * tree.h (initializer_each_zero_or_onep): Declare.
18520 * tree.c (initializer_each_zero_or_onep): New function.
18521 (signed_or_unsigned_type_for): Handle float types too.
18522 (unsigned_type_for, signed_type_for): Update comments accordingly.
18523 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
18524 x & { 0 or -1, 0 or -1, ... }.
18525
18526 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
18527
18528 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
18529 with x86_64-pc-linux-gnu.
18530
18531 2019-01-07 Tom de Vries <tdevries@suse.de>
18532
18533 PR target/85486
18534 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
18535 function.
18536 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
18537 routines.
18538
18539 2019-01-07 Jakub Jelinek <jakub@redhat.com>
18540
18541 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
18542 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
18543 TARGET_AVX512F as condition.
18544
18545 PR debug/88723
18546 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
18547 const_not_ok_for_debug_p target hook.
18548 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
18549 on UNSPEC and subexpressions thereof if all subexpressions of the
18550 UNSPEC are CONSTANT_P.
18551
18552 PR tree-optimization/88676
18553 * tree-ssa-phiopt.c (two_value_replacement): New function.
18554 (tree_ssa_phiopt_worker): Call it.
18555
18556 PR sanitizer/88619
18557 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
18558 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
18559
18560 PR c++/85052
18561 * tree-vect-generic.c: Include insn-config.h and recog.h.
18562 (expand_vector_piecewise): Add defaulted ret_type argument,
18563 if non-NULL, use that in preference to type for the result type.
18564 (expand_vector_parallel): Formatting fix.
18565 (do_vec_conversion, do_vec_narrowing_conversion,
18566 expand_vector_conversion): New functions.
18567 (expand_vector_operations_1): Call expand_vector_conversion
18568 for VEC_CONVERT ifn calls.
18569 * internal-fn.def (VEC_CONVERT): New internal function.
18570 * internal-fn.c (expand_VEC_CONVERT): New function.
18571 * fold-const-call.c (fold_const_vec_convert): New function.
18572 (fold_const_call): Use it for CFN_VEC_CONVERT.
18573 * doc/extend.texi (__builtin_convertvector): Document.
18574
18575 2019-01-07 Tom de Vries <tdevries@suse.de>
18576
18577 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
18578 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
18579 vector_red_partition, vector_red_sym): New global variables.
18580 (nvptx_option_override): Initialize vector_red_sym.
18581 (nvptx_declare_function_name): Restore red_partition register.
18582 (nvptx_file_end): Emit code to declare the vector reduction variables.
18583 (nvptx_output_red_partition): New function.
18584 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
18585 large vector reductions.
18586 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
18587 (nvptx_init_builtins): Add VECTOR_ADDR.
18588 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
18589 Handle nvptx_expand_shared_addr.
18590 (nvptx_get_shared_red_addr): Add vector argument and handle large
18591 vectors.
18592 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
18593 large vectors.
18594 (nvptx_goacc_reduction_init): Likewise.
18595 (nvptx_goacc_reduction_fini): Likewise.
18596 (nvptx_goacc_reduction_teardown): Likewise.
18597 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
18598 init,fini,teardown}.
18599 (nvptx_init_axis_predicate): Initialize vector_red_partition.
18600 (nvptx_set_current_function): Init vector_red_partition.
18601 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
18602 (nvptx_red_partition): New insn.
18603 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
18604
18605 2019-01-07 Tom de Vries <tdevries@suse.de>
18606
18607 PR target/85381
18608 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
18609 empty loops.
18610
18611 2019-01-07 Tom de Vries <tdevries@suse.de>
18612
18613 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
18614 (nvptx_option_override): Init oacc_bcast_partition.
18615 (nvptx_init_oacc_workers): New function.
18616 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
18617 (nvptx_needs_shared_bcast): New function.
18618 (nvptx_find_par): Generalize to enable vectors to use shared-memory
18619 to propagate state.
18620 (nvptx_shared_propagate): Initialize vector bcast partition and
18621 synchronization state.
18622 (nvptx_single): Generalize to enable vectors to use shared-memory
18623 to propagate state.
18624 (nvptx_process_pars): Likewise.
18625 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
18626 * config/nvptx/nvptx.h (struct machine_function): Add
18627 bcast_partition and sync_bar members.
18628
18629 2019-01-07 Tom de Vries <tdevries@suse.de>
18630
18631 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
18632 (nvptx_apply_dim_limits): New function.
18633 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
18634 PTX_WARP_SIZE.
18635
18636 2019-01-07 Tom de Vries <tdevries@suse.de>
18637
18638 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
18639 as late as possible.
18640
18641 2019-01-07 Tom de Vries <tdevries@suse.de>
18642
18643 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
18644 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
18645 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
18646 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
18647 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
18648
18649 2019-01-07 Tom de Vries <tdevries@suse.de>
18650
18651 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
18652
18653 2019-01-07 Tom de Vries <tdevries@suse.de>
18654
18655 * omp-offload.c (oacc_get_min_dim): New function.
18656 * omp-offload.h (oacc_get_min_dim): Declare.
18657
18658 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
18659
18660 PR target/88521
18661 * config/i386/i386.c (function_value_ms_64): Return small sturct in
18662 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
18663
18664 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18665
18666 PR tree-opt/86020
18667 Revert:
18668 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
18669
18670 * ipa-inline.c (edge_badness): Use inlined_time instead of
18671 inline_summaries->get.
18672
18673 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18674
18675 * opts.c (enable_fdo_optimizations): Enable
18676 version-loops-for-strides, loop-interchange, unrol-and-jam
18677 and tree-loop-distribution.
18678 * invoke.texi: Document newly enabled options.
18679
18680 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18681
18682 * doc/invoke.texi (max-inline-insns-small): New parameters.
18683 * ipa-inline.c (want_early_inline_function_p): simplify.
18684 (want_inline_small_function_p): Fix pasto from previous patch;
18685 use max-inline-insns-small bound.
18686 * params.def (max-inline-insns-small): New param.
18687 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
18688 variables correctly.
18689
18690 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18691
18692 * doc/invoke.texi: Document max-inline-insns-size,
18693 uninlined-function-insns, uninlined-function-time,
18694 uninlined-thunk-insns and uninlined-thunk-time.
18695 * params.def: Add max-inline-insns-size,
18696 uninlined-function-insns, uninlined-function-time,
18697 uninlined-thunk-insns and uninlined-thunk-time.
18698 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
18699 new parameters.
18700 * ipa-inline.c (can_inline_edge_by_limits_p,
18701 want_inline_small_function_p): Use new parameters.
18702
18703 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18704
18705 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
18706
18707 2019-01-05 Jakub Jelinek <jakub@redhat.com>
18708
18709 PR middle-end/82564
18710 PR target/88620
18711 * expr.c (expand_assignment): For calls returning VLA structures
18712 if to_rtx is not a MEM, force it into a stack temporary.
18713
18714 PR debug/88635
18715 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
18716 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
18717 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
18718 subexpressions of both operands.
18719 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
18720 subrtxes are CONSTANT_P.
18721 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
18722 2018-11-09 changes.
18723
18724 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
18725
18726 * params.def (hot-bb-count-ws-permille): Set to 990.
18727
18728 2019-01-04 Martin Sebor <msebor@redhat.com>
18729
18730 PR c/88546
18731 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
18732 leaf.
18733
18734 2019-01-04 Martin Sebor <msebor@redhat.com>
18735
18736 PR c/88363
18737 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
18738
18739 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18740
18741 * gdbinit.in: Turn off pagination for the skip commands, restore
18742 it to previous state afterwards.
18743
18744 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18745
18746 PR target/88594
18747 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
18748 of GET_MODE (opN) as modes of the libcall arguments.
18749
18750 2019-01-04 Jan Beulich <jbeulich@suse.com>
18751
18752 * config/i386/sse.md
18753 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
18754 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
18755 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18756 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18757 avx512f_vmcmp<mode>3<round_saeonly_name>,
18758 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
18759 avx512f_maskcmp<mode>3,
18760 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18761 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18762 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18763 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18764 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18765 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18766 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18767 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18768 <avx512>_testm<mode>3<mask_scalar_merge_name>,
18769 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
18770 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
18771 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
18772 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
18773 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
18774 avx512cd_maskb_vec_dup<mode>,
18775 avx512cd_maskw_vec_dup<mode>,
18776 avx512dq_fpclass<mode><mask_scalar_merge_name>,
18777 avx512dq_vmfpclass<mode>,
18778 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
18779 instead of =Yk.
18780
18781 2019-01-03 Martin Sebor <msebor@redhat.com>
18782
18783 PR tree-optimization/88659
18784 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
18785
18786 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
18787
18788 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
18789 unaligned vsx and avoid lxvd2x/stxvd2x.
18790 (gen_lvx_v4si_move): New function.
18791
18792 2019-01-03 Tom de Vries <tdevries@suse.de>
18793
18794 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
18795 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
18796 function.
18797 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
18798
18799 2019-01-03 Tom de Vries <tdevries@suse.de>
18800
18801 * config/nvptx/nvptx.c (struct offload_attrs): New.
18802 (populate_offload_attrs): New function. Factor mask extraction out of
18803 nvptx_reorg. Add extraction of dimensions.
18804 (nvptx_reorg): Use populate_offload_attrs.
18805
18806 2019-01-03 Tom de Vries <tdevries@suse.de>
18807
18808 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
18809 cases for oacc_min_dims_p and routine_p. Add asserts for
18810 oacc_default_dims_p and offload_region_p.
18811
18812 2019-01-03 Tom de Vries <tdevries@suse.de>
18813
18814 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
18815 factored out of ...
18816 (nvptx_goacc_validate_dims): ... here.
18817
18818 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
18819
18820 PR tree-optimization/85574
18821 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
18822 structure.
18823 (struct ssa_equip_hash_traits): Declare.
18824 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
18825
18826 2019-01-03 Jakub Jelinek <jakub@redhat.com>
18827
18828 PR debug/88644
18829 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
18830 change it to qualified_type.
18831
18832 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
18833
18834 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
18835 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
18836
18837 2019-01-02 Martin Sebor <msebor@redhat.com>
18838 Jeff Law <law@redhat.com>
18839
18840 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
18841 (get_range_strlen_tree): Update appropriately.
18842 (get_range_strlen)
18843 * gimple-fold.h (get_range_strlen): Drop unused last argument.
18844
18845 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
18846 rather than set_range_info.
18847 * tree-ssa-strlen.c (set_strlen_range): Extracted from
18848 maybe_set_strlen_range. Handle potentially boundary crossing
18849 cases more conservatively.
18850 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
18851 Call set_strlen_range.
18852 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
18853
18854 PR middle-end/88663
18855 * gimple-fold.c (get_range_strlen): Update prototype to no longer
18856 need the flexp argument.
18857 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
18858 from calls to get_range_strlen. Update comments. Just update
18859 VAL for an unterminated const char array and let the reset of the
18860 code handle it normally. No longer try to set *flexp. Adjust
18861 return value.
18862 (get_range_strlen): Update for the new get_range_strlen API.
18863 (get_maxval_strlen): Similarly.
18864 (gimple_fold_builtin_strlen): Handle update meaning of return value
18865 from get_range_strlen.
18866 * gimple-ssa-sprintf.c (get_string_length): Update for the new
18867 get_range_strlen API.
18868
18869 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
18870
18871 PR lto/88130
18872 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
18873 false at WPA time when body was removed.
18874
18875 2019-01-02 Martin Liska <mliska@suse.cz>
18876
18877 PR tree-optimization/88650
18878 * predict.c (set_even_probabilities): Calculate probability
18879 remainer only when really used.
18880
18881 2019-01-02 Richard Biener <rguenther@suse.de>
18882
18883 PR middle-end/88651
18884 * tree-data-ref.c (analyze_subscript_affine_affine): Use
18885 widest_ints when mangling max_stmt_execution results.
18886
18887 2019-01-02 Richard Biener <rguenther@suse.de>
18888
18889 PR tree-optimization/88621
18890 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
18891 bitfields when canoncalizing.
18892
18893 2019-01-02 Richard Biener <rguenther@suse.de>
18894
18895 PR target/87545
18896 * config/i386/x86-tune-costs.h (intel_cost): Adjust
18897 cost of cheap SSE instruction.
18898
18899 2019-01-02 Richard Biener <rguenther@suse.de>
18900
18901 PR ipa/85574
18902 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
18903 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
18904 function.
18905 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
18906 set after UIDs before splitting them.
18907
18908 2019-01-01 Martin Sebor <msebor@redhat.com>
18909 Jeff Law <law@redhat.com>
18910
18911 * gimple-fold.c (get_range_strlen_tree): Record if the computed
18912 length is optimistic. If it is, then arrange to compute the
18913 conservative length as well.
18914
18915 * gimple-fold.h (get_range_strlen): Update prototype.
18916 * builtins.c (check_access): Update call to get_range_strlen to use
18917 c_strlen_data pointer. Change various variable accesses to instead
18918 pull data from the c_strlen_data structure.
18919 (check_strncat_sizes, expand_builtin_strncat): Likewise.
18920 * calls.c (maybe_warn_nonstring_arg): Likewise.
18921 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
18922 minimum length if maximum lengh is unknown.
18923 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
18924 that used c_strlen, it's no longer needed. Restructure slightly.
18925 (format_string): Set unlikely range appropriately.
18926 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
18927 formatting issues.
18928 (get_range_strlen): Accept c_strlen_data pointer for external
18929 call sites as well. Pass through to call to internal get_range_strlen.
18930 Adjust minlen, maxlen and maxbound as needed.
18931 (get_maxval_strlen): Update comments.
18932 (gimple_fold_builtin_strlen): Update call to get_range_strlen
18933 to use c_strlen_data pointer. Change variable accesses to instead
18934 use c_strlen_data data members.
18935
18936 * gimple-fold.c (get_range_strlen): Update prototype.
18937 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
18938 local variables. Use pdata to return information to caller.
18939 Update calls to get_range_strlen. Update pdata->maxbound.
18940 (get_range_strlen -- static version): Similarly.
18941 (get_range_strlen -- extern version): Update for internal
18942 get_range_strlen API change. Convert to external data format.
18943 (get_maxval_strlen): Similarly.
18944
18945 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
18946
18947 * coverage.c (get_coverage_counts): Use current_function_decl.
18948 * profile.c (read_thunk_profile): New function.
18949 (branch_prob): Add THUNK parameter.
18950 * tree-profile.c (tree_profiling): Handle thunks.
18951 * value-prof.c (init_node_map): Handle thunks.
18952 * value-prof.h (branch_prob): Upate prototype.
18953 (read_thunk_profile): Declare.
18954
18955 2019-01-01 Jakub Jelinek <jakub@redhat.com>
18956
18957 Update copyright years.
18958
18959 * gcc.c (process_command): Update copyright notice dates.
18960 * gcov-dump.c (print_version): Ditto.
18961 * gcov.c (print_version): Ditto.
18962 * gcov-tool.c (print_version): Ditto.
18963 * gengtype.c (create_file): Ditto.
18964 * doc/cpp.texi: Bump @copying's copyright year.
18965 * doc/cppinternals.texi: Ditto.
18966 * doc/gcc.texi: Ditto.
18967 * doc/gccint.texi: Ditto.
18968 * doc/gcov.texi: Ditto.
18969 * doc/install.texi: Ditto.
18970 * doc/invoke.texi: Ditto.
18971 \f
18972 Copyright (C) 2019 Free Software Foundation, Inc.
18973
18974 Copying and distribution of this file, with or without modification,
18975 are permitted in any medium without royalty provided the copyright
18976 notice and this notice are preserved.