Fix more unrecognised GCN instructions
[gcc.git] / gcc / ChangeLog
1 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
2
3 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
4 %s to %o in asm output.
5 (gather<mode>_insn_2offsets<exec>): Likewise.
6
7 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
8
9 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
10 on a-profile.
11
12 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
13
14 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
15 set<mode>_cc.
16 (unnamed define_insn_and_split): Delete.
17 (unnamed define_insn): Delete.
18 (unnamed define_insn): Delete.
19 (unnamed define_split): Delete.
20
21 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
22
23 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
24 avoid a warning.
25
26 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
27
28 PR middle-end/92410
29 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
30 dataflow luids once basic blocks have been reordered.
31 * haifa-sched.c (reemit_notes): Create df insn record for each
32 new note.
33 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
34 insn has an insn record before trying to use it.
35
36 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
37
38 * common/config/i386/i386-common.c
39 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
40 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
41 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
42 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
43 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
44 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
45 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
46 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
47 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
48 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
49 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
50 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
51 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
52 OPTION_MASK_ISA_AVX512BF16_UNSET,
53 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
54 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
55 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
56 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
57 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
58 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
59 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
60 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
61 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
62 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
63 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
64 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
65 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
66 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
67 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
68 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
69 OPTION_MASK_ISA_ENQCMD): Ditto.
70 * config/i386/i386-builtin.def
71 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
72 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
73 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
74 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
75 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
76 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
77 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
78 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
79 * config/i386/i386-c.c
80 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
81 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
82 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
83 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
84 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
85 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
86 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
87 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
88 OPTION_MASK_ISA_ENQCMD): Ditto.
89 * config/i386/i386-option.c: Ditto
90 * config/i386/i386.opt: Ditto..
91 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
92 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
93 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
94 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
95 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
96 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
97 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
98 TARGET_ISA_ENQCMD): Ditto.
99
100 2019-12-09 Sudakshina Das <sudi.das@arm.com>
101 Richard Sandiford <richard.sandiford@arm.com>
102
103 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
104 vect_model_simple_cost call on scalar_shift_arg.
105
106 2019-12-09 Jakub Jelinek <jakub@redhat.com>
107
108 PR tree-optimization/92834
109 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
110 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
111
112 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
113
114 PR tree-optimization/89007
115 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
116 target support available, generate code to distribute rshift over plus
117 and add a carry.
118
119 2019-12-09 Martin Liska <mliska@suse.cz>
120
121 PR ipa/92737
122 * cgraph.c (symbol_table_test::symbol_table_test): Fix
123 coding style.
124 * cgraph.h (symtab_node::symtab_node): New constructor.
125 (cgraph_node::cgraph_node): Likewise.
126 (varpool_node::varpool_node): Likewise.
127 (symbol_table::allocate_cgraph_symbol): Use newly
128 created constructor.
129 (symbol_table::allocate_cgraph_symbol): Remove.
130 * cgraphunit.c (symtab_terminator): Likewise.
131 * varpool.c (varpool_node::create_empty): Use newly
132 created constructor.
133
134 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
135
136 PR target/92686
137 * config/i386/sse.md
138 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
139 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
140 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
141 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
142 * config/i386/i386.c (ix86_print_operand): New operand substitution.
143 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
144 New function.
145 (ix86_expand_sse_cmp): Relax condition for integer mask from
146 512-bit vector to all 128/256/512-bit vector. Delete code gen
147 for avx512f compare patterns since we have generic pattern now.
148 (ix86_expand_sse_movcc): Adjust condition and codegen for
149 maskcmp.
150 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
151 when corresponding vector compare is available.
152
153 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
154
155 Revert:
156 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
157
158 * config/nios2/linux.h (LINK_EH_SPEC): Define.
159
160 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
161
162 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
163 * cgraph.h (cgrpah_node): Likewise.
164 (tp_first_run_node_cmp): Deeclare.
165 * cgraphunit.c (node_cmp): Rename to ...
166 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
167 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
168 (expand_all_functions): Collect tp_first_run and normal functions to
169 two vectors so the other functions remain sorted. Do not check for
170 flag_profile_reorder_functions it is function local flag.
171 * profile.c (compute_value_histograms): Update tp_first_run printing.
172
173 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
174
175 * opts.c (common_handle_option): Do not clear ipa_reference for
176 -fprofile-use.
177
178 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
179
180 * ipa-split.c (split_function): Preserve 0 tp_first_run.
181
182 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
183
184 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
185 sanity check.
186
187 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
188
189 PR tree-optimization/92860
190 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
191 Optimization flag.
192
193 2019-12-07 Marek Polacek <polacek@redhat.com>
194
195 PR c++/91678 - wrong error with decltype and location wrapper.
196 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
197
198 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
199
200 PR middle-end/90840
201 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
202 sure to pass a valid inner mode in calls to simplify_gen_subreg.
203
204 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
205 David Malcolm <dmalcolm@redhat.com>
206 Jakub Jelinek <jakub@redhat.com>
207
208 PR c/87488
209 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
210 instead of ST sequence to terminate OSC 8 strings.
211
212 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
213 Vladimir Makarov <vmakarov@redhat.com>
214
215 PR rtl-optimization/92176
216 * lra.c (simplify_subreg_regno): Don't permit unconditional
217 changing mode for LRA too.
218
219 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
220
221 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
222 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
223 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
224 Handle them.
225
226 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
227
228 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
229 in the asm output.
230
231 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
232
233 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
234 (VEC_1REG_ALT): Likewise.
235 (VEC_ALL1REG_MODE): New mode iterator.
236 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
237 (VEC_1REG_INT_ALT): Likewise.
238 (VEC_ALL1REG_INT_MODE): New mode interator.
239 (VEC_ALL1REG_INT_ALT): Likewise.
240 (VEC_REG_MODE): Remove V64QI and V64HI.
241 (VEC_ALLREG_MODE): New mode interator.
242 (vec_merge): Change to VEC_ALLREG_MODE.
243 (vec_merge_with_clobber): Likewise.
244 (vec_merge_with_vcc): Likewise.
245 (mov<mode>): Likewise.
246 (mov<mode>_unspec): Likewise.
247 (*mov<mode>): Change to VEC_ALL1REG_MODE.
248 (mov<mode>_exec): Likewise.
249 (*mov<mode>_exec_match): Likewise.
250 (mov<mode>_sgprbase): Likewise.
251 (reload_in<mode>): Change to VEC_ALLREG_MODE.
252 (reload_out<mode>): Likewise.
253 (scalar address splits): Likewise.
254 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
255 (vec_set<mode>): Change to VEC_ALLREG_MODE.
256 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
257 (vec_duplicate<mode><exec>): Likewise.
258 (vec_extract<mode><scalar_mode>): Likewise.
259 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
260 (gather_load<mode>): Likewise.
261 (gather<mode>_exec): Likewise.
262 (gather<mode>_expr<exec>): Likewise.
263 (gather<mode>_insn_1offset<exec>): Likewise.
264 (gather<mode>_insn_1offset_ds<exec>): Likewise.
265 (gather<mode>_insn_2offsets<exec>): Likewise.
266 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
267 (VEC_INT_MODE): Remove V64QI and V64HI.
268 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
269 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
270 VEC_ALL1REG_MODE.
271 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
272 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
273 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
274 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
275 (maskstore<mode>di): Likewise.
276 (mask_gather_load<mode>): Likewise.
277 (mov_from_lane63_<mode>): Likewise.
278 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
279 and V64HImode vectorization.
280 (gcn_related_vector_mode): New function.
281 (TARGET_VECTORIZE_RELATED_MODE): New define.
282
283 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
284 Kwok Cheung Yeung <kcy@codesourcery.com>
285
286 * omp-low.c (lower_omp_target): For optional arguments, deref once
287 more to obtain the type.
288
289 2019-12-06 Richard Biener <rguenther@suse.de>
290
291 * match.pd (nop_convert): Remove empty match. Use nop_convert?
292 everywhere.
293
294 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
295
296 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
297 for empty vectors. Avoid using ordered_remove and instead
298 shuffle the vector as we go.
299
300 2019-12-06 Richard Biener <rguenther@suse.de>
301
302 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
303 VIEW_CONVERT{0,1,2}.
304 (expr::opt_grp): Add and initialize.
305 (lower_opt_convert): Rename to ...
306 (lower_opt): ... and work on opt_grp, simply switching operations
307 from being optional to being present or not.
308 (has_opt_convert): Rename to ...
309 (has_opt): ... and adjust.
310 (parser::parse_operation): Return the optional opt_grp,
311 remove special-casing of conditional operations and more generally
312 parse [digit]'?'.
313 (parser::parse_expr): Stick on the parsed opt_grp and perform
314 rough verification.
315 (parser::parse_for): Remove now unnecessary code.
316 (main): Likewise.
317 * doc/match-and-simplify.texi: Mention ? now works on all
318 unary operations and also match predicates.
319
320 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
321
322 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
323 functions, not inline clones.
324
325 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
326
327 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
328
329 2019-12-06 Richard Biener <rguenther@suse.de>
330
331 * genmatch.c (c_expr::gen_transform): Emit newlines from line
332 number changes rather than after every semicolon.
333
334 2019-12-06 Richard Biener <rguenther@suse.de>
335
336 PR tree-optimization/92819
337 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
338 into the last lane. For two-element vectors try inserting
339 into the last lane when inserting into the first fails.
340
341 2019-12-06 Jakub Jelinek <jakub@redhat.com>
342
343 * common.opt (fprofile-partial-training): Terminate description with
344 full stop.
345
346 2019-12-05 Martin Sebor <msebor@redhat.com>
347
348 PR middle-end/92622
349 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
350 left uninitialized by get_addr_base_and_unit_offset on failure.
351
352 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
353
354 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
355 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
356 (detect_type_change): Likewise.
357 (detect_type_change_ssa): Likewise.
358 (ipa_analyze_virtual_call_uses): Update.
359
360 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
361
362 * config/nios2/linux.h (LINK_EH_SPEC): Define.
363
364 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
365
366 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
367
368 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
369
370 * cgraphclones.c (localize_profile): New function.
371 (cgraph_node::create_clone): Use it for partial profiles.
372 * common.opt (fprofile-partial-training): New flag.
373 * doc/invoke.texi (-fprofile-partial-training): Document.
374 * ipa-cp.c (update_profiling_info): For partial profiles do not
375 set function profile to zero.
376 * profile.c (compute_branch_probabilities): With partial profile
377 watch if edge count is zero and turn all probabilities to guessed.
378 (compute_branch_probabilities): For partial profiles do not apply
379 profile when entry count is zero.
380 * tree-profile.c (tree_profiling): Only do value_profile_transformations
381 when profile is read.
382
383 2019-12-05 Sudakshina Das <sudi.das@arm.com>
384
385 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
386 check from if condition.
387
388 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
389
390 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
391 and Fortran's optional arguments, unconditionally add the is-present
392 condition before the libgomp call.
393
394 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
395
396 PR middle-end/92768
397 * tree-core.h (OEP_BITWISE): New flag.
398 * fold-const.c (operand_compare::operand_equal_p): Handle it.
399 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
400
401 2019-12-05 Richard Biener <rguenther@suse.de>
402
403 PR middle-end/92818
404 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
405 heuristics on what don't care element to choose.
406 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
407
408 2019-12-05 Martin Liska <mliska@suse.cz>
409
410 PR gcov-profile/92817
411 * coverage.c (build_gcov_exit_decl): Remove superfluous
412 void_type_node.
413
414 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
415
416 * config/msp430/msp430.md (cbranch<mode>4): Use
417 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
418 dest operand of CMP instruction.
419 (cbranchpsi4_real): Likewise.
420 (cbranchqi4_real): Likewise.
421 (cbranchhi4_real): Likewise.
422 (cbranchpsi4_reversed): Likewise.
423 (cbranchqi4_reversed): Likewise.
424 (cbranchhi4_reversed): Likewise.
425
426 2019-12-05 Richard Biener <rguenther@suse.de>
427
428 PR tree-optimization/92803
429 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
430 invariant vector construction.
431
432 2019-12-05 Martin Liska <mliska@suse.cz>
433
434 PR gcov-profile/91971
435 * coverage.c (coverage_init): Mangle full path
436 only when -fprofile-dir is used.
437
438 2019-12-05 Jakub Jelinek <jakub@redhat.com>
439
440 PR target/92791
441 * config/i386/i386.md (movstrict<mode>): Move test for
442 TARGET_PARTIAL_REG_STALL and not optimizing for size from
443 expander's condition to the body - FAIL; in that case.
444
445 2019-12-03 Martin Sebor <msebor@redhat.com>
446
447 PR middle-end/91582
448 * builtins.c (gimple_call_alloc_size): New function.
449 (compute_objsize): Add argument. Call gimple_call_alloc_size.
450 Handle variable offsets and indices.
451 * builtins.h (gimple_call_alloc_size): Declare.
452 (compute_objsize): Add argument.
453 * gimple-ssa-warn-restrict.c: Remove assertions.
454 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
455
456 2019-12-04 Julian Brown <julian@codesourcery.com>
457
458 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
459
460 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
461
462 PR bootstrap/92661
463 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
464 rs6000.h.
465 (altivec_overloaded_builtins): Move to rs6000-call.c.
466 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
467 rs6000-c.c.
468 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
469 (altivec_overloaded_builtins): Moved from rs6000-c.c.
470 (rs6000_common_init_builtins): Do no define builtins that overload
471 builtins that have been disabled.
472
473 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
474
475 * config/arm/arm.c (arm_option_override_internal):
476 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
477
478 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
479
480 * config/aarch64/aarch64.c
481 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
482 (thunderx_tunings): Likewise.
483 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
484 (thunderx2t99_tunings): Likewise.
485 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
486 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
487
488 2019-12-04 Richard Biener <rguenther@suse.de>
489
490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
491 empty CTOR and memset partial-def registering. Take advantage
492 of fancy offset analysis in memset handling.
493
494 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
495
496 * fold-const.c (native_encode_vector_part): Handle
497 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
498 (native_decode_vector_tree): Delete, moving the bulk of the code to...
499 (native_interpret_vector_part): ...this new function. Use a pointer
500 and length instead of a vec<> and start index.
501 (native_interpret_vector): Use native_interpret_vector_part.
502 (fold_view_convert_vector_encoding): Likewise.
503
504 2019-12-04 Richard Biener <rguenther@suse.de>
505
506 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
507 non-constant defs in the most trivial way.
508 (vn_reference_lookup_3): Also push down SSA partial defs.
509
510 2019-12-04 Martin Liska <mliska@suse.cz>
511
512 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
513 Initialize count of newly created BB.
514
515 2019-12-04 Jakub Jelinek <jakub@redhat.com>
516
517 PR tree-optimization/92734
518 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
519 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
520
521 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
522
523 PR target/92760
524 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
525 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
526
527 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
528
529 * ipa-fnsummary.c: Include tree-into-ssa.h.
530 (compute_fn_summary): Call update_ssa.
531
532 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
533
534 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
535 is set only for symbol in comdat group.
536 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
537
538 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
539
540 * cgraph.c: Include tree-into-ssa.h
541 (cgraph_node::get_body): Call update_ssa.
542 * cgraphunit.c (cgraph_node::expand): Likewise.
543 * lto-streamer-in.c (input_function): Do not call update_ssa.
544
545 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
546
547 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
548 an array element size if array_element_size is already an invariant.
549 Similarly don't gimplify and install a field offset if
550 component_ref_field_offset is already an invariant.
551
552 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
553
554 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
555 with POLY_INT_CST size is made to a fixed-size object, force the
556 object to live in memory.
557
558 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
559
560 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
561 for the data mode.
562
563 2019-12-03 Richard Biener <rguenther@suse.de>
564
565 PR tree-optimization/92758
566 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
567 operation on uniform vectors.
568
569 2019-12-03 Richard Biener <rguenther@suse.de>
570
571 PR tree-optimization/92645
572 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
573 from or to a properly aligned register variable.
574
575 2019-12-03 Matthias Klose <doko@ubuntu.com>
576
577 * Makefile.in (SOURCES): Add doc/lto-dump.1.
578 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
579 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
580
581 2019-12-03 Richard Biener <rguenther@suse.de>
582
583 PR tree-optimization/92751
584 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
585 when a clobber ends up in the partial-def vector.
586 (vn_reference_lookup_3): Let clobbers be handled by the
587 assignment from CTOR handling.
588
589 2019-12-03 Jakub Jelinek <jakub@redhat.com>
590
591 PR tree-optimization/92734
592 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
593 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
594 inner subtraction.
595
596 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
597 Jakub Jelinek <jakub@redhat.com>
598
599 PR target/92744
600 * config/i386/i386.md (peephole2 for *swap<mode>): Use
601 general_reg_operand predicates instead of register_operand.
602
603 2019-12-03 Richard Biener <rguenther@suse.de>
604
605 PR tree-optimization/92645
606 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
607 a full def of a vector via a BIT_INSERT_EXPR.
608
609 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
610
611 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
612 static.
613 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
614 decl.
615
616 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
617
618 PR middle-end/92741
619 * fold-const.c (fold_convertible_p): Check vector types more
620 thoroughly.
621
622 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
623
624 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
625 (aarch64_expand_mov_immediate): Use it when attempting to measure
626 the length of an SVE vector.
627 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
628 SVE is enabled.
629
630 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
631
632 * config/aarch64/aarch64-sve-builtins.h
633 (gimple_folder::force_vector): Declare.
634 * config/aarch64/aarch64-sve-builtins.cc
635 (gimple_folder::force_vector): New function.
636 * config/aarch64/aarch64-sve-builtins-base.cc
637 (svcmp_impl::fold): Likewise.
638 (svdup_impl::fold): Handle svdup_z too.
639
640 2019-12-02 Martin Liska <mliska@suse.cz>
641
642 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
643 function.
644 (debug_tree_odr_name): New.
645 * ipa-utils.h (get_odr_name_for_type): New.
646
647 2019-12-02 Richard Biener <rguenther@suse.de>
648
649 PR tree-optimization/92742
650 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
651 touch the def-type but verify it is consistent with the
652 original stmts.
653
654 2019-12-02 Jakub Jelinek <jakub@redhat.com>
655
656 PR tree-optimization/92712
657 * match.pd ((A * B) +- A -> (B +- 1) * A,
658 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
659 even when we don't know anything about range of A, but do know
660 something about range of B and the simplification won't introduce
661 new UB.
662
663 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
664
665 PR ipa/92133
666 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
667 (ipa-cp-min-recursive-probability): Likewise.
668 * params.opt (ipa-cp-max-recursive-depth): New.
669 (ipa-cp-min-recursive-probability): Likewise.
670 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
671 val_p and unlimited.
672 (self_recursively_generated_p): New function.
673 (get_val_across_arith_op): Likewise.
674 (propagate_vals_across_arith_jfunc): Add constant propagation for
675 self-recursive function.
676 (incorporate_penalties): Do not penalize pure self-recursive function.
677 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
678 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
679 (get_info_about_necessary_edges): Relax hotness check for edge to
680 self-recursive function.
681 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
682
683 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
684
685 PR target/92499
686
687 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
688 objects of flexible types to be small if they have internal linkage
689 or are declared extern.
690 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
691 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
692 instead of the size of the object initializer.
693 * tree.c (flexible_array_type_p): Move from C front end, and
694 generalize to handle fields in non-C structures.
695 * tree.h (flexible_array_type_p): Declare.
696
697 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
698
699 * profile-count.h (profile_count::operator<): Use IPA value for
700 comparsion.
701 (profile_count::operator>): Likewise.
702 (profile_count::operator<=): Likewise.
703 (profile_count::operator>=): Likewise.
704 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
705
706 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
707
708 * ipa-inline.c (compute_max_insns): Return int64_t.
709 (inline_small_functions): Simplify.
710
711 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
712
713 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
714 scaling happen.
715
716 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
717
718 * cgraph.h (symtab_node): Add symver flag.
719 * cgraphunit.c (process_symver_attribute): New.
720 (process_common_attributes): Use process_symver_attribute.
721 * lto-cgraph.c (lto_output_node): Stream symver.
722 (lto_output_varpool_node): Stream symver.
723 (input_overwrite_node): Stream symver.
724 (input_varpool_node): Stream symver.
725 * output.h (do_assemble_symver): Decalre.
726 * symtab.c (symtab_node::dump_base): Dump symver.
727 (symtab_node::verify_base): Verify symver.
728 (symtab_node::resolve_alias): Handle symver.
729 * varasm.c (do_assemble_symver): New function.
730 * varpool.c (varpool_node::assemble_aliases): Use it.
731 * doc/extend.texi: (symver attribute): Document.
732 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
733
734 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
735
736 * target.h (type_context_kind): New enum.
737 (verify_type_context): Declare.
738 * target.def (verify_type_context): New target hook.
739 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
740 * doc/tm.texi: Regenerate.
741 * tree.c (verify_type_context): New function.
742 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
743 Declare.
744 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
745 New function.
746 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
747 (TARGET_VERIFY_TYPE_CONTEXT): Define.
748
749 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
750
751 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
752 * cgraph.h (cgraph_node): Add unit_id and
753 merged_extern_inline.
754 (symbol_table): Add max_unit.
755 (symbol_table::symbol_table): Initialize it.
756 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
757 merged_comdat, merged_extern_inline.
758 (cgraph_node::create_clone): Likewise.
759 (cgraph_node::create_version_clone): Likewise.
760 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
761 calls.
762 * ipa-fnsummary.h (cross_module_call_p): New inline function.
763 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
764 * ipa-inline.c (inline_small_functions): Likewise.
765 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
766 copy merged_comdat and merged_extern_inline.
767 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
768 merged_extern_inline and unit_id.
769 (input_overwrite_node): Stream in these.
770 (input_cgraph_1): Set unit_base.
771 * lto-streamer.h (lto_file_decl_data): Add unit_base.
772 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
773
774 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
775
776 * gcc.c (process_command): Only warn about an ineffective `-x'
777 option if any input files have actually been supplied.
778
779 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
780
781 * doc/install.texi (Options specification): Remove the list of
782 target library subdirectories supporting
783 `--enable-version-specific-runtime-libs'. Document defaults for
784 the option.
785
786 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
787
788 PR rtl-optimization/92283
789 * lra.c (lra): Update reg notes after inheritance sub-pass and
790 before constraint sub-pass.
791
792 2019-11-29 Richard Biener <rguenther@suse.de>
793
794 PR tree-optimization/91003
795 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
796 operand number, avoid handling the non-condition operands of
797 COND_EXPRs as comparisons.
798 (vect_get_constant_vectors): Pass down the operand number.
799 (vect_get_slp_defs): Likewise.
800
801 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
802
803 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
804 generic_expr_could_trap_p to check if the condition of COND_EXPR or
805 VEC_COND_EXPR can trap.
806
807 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
808
809 PR tree-optimization/92677
810 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
811 to zero when dissolving a group of strided accesses.
812
813 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
814
815 PR tree-optimization/92596
816 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
817 operations.
818 (vectorizable_operation): Likewise, instead of relying on
819 vect_get_mask_type_for_stmt to do this.
820 (vect_get_vector_types_for_stmt): Always return a vector type
821 immediately, rather than deferring the choice for boolean results.
822 Use a vector mask type instead of a normal vector if
823 vect_use_mask_type_p.
824 (vect_get_mask_type_for_stmt): Delete.
825 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
826 mask_producers argument and special boolean_type_node handling.
827 (vect_determine_vf_for_stmt): Remove mask_producers argument and
828 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
829 (vect_determine_vectorization_factor): Update call accordingly.
830 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
831 boolean_type_node handling.
832 (vect_slp_analyze_node_operations_1): Likewise.
833
834 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
835
836 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
837 (vect_use_mask_type_p): New function.
838 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
839 mask precision to the pattern statement.
840 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
841 and use it to initialize the new stmt's mask precision.
842 (search_type_for_mask_1): Delete.
843 (search_type_for_mask): Replace with...
844 (integer_type_for_mask): ...this new function. Use the information
845 cached in the stmt_vec_info.
846 (vect_recog_bool_pattern): Update accordingly.
847 (build_mask_conversion): Pass the scalar type associated with the
848 mask type to append_pattern_def_seq.
849 (vect_recog_mask_conversion_pattern): Likewise. Call
850 integer_type_for_mask instead of search_type_for_mask.
851 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
852 of search_type_for_mask.
853 (possible_vector_mask_operation_p): New function.
854 (vect_determine_mask_precision): Likewise.
855 (vect_determine_stmt_precisions): Call it.
856
857 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
858
859 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
860 the slp_tree parameter with a group size parameter.
861 (vect_get_mask_type_for_stmt): Likewise.
862 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
863 (vect_get_mask_type_for_stmt): Likewise.
864 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
865 call accordingly.
866
867 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
868
869 * tree-vect-stmts.c (vectorizable_operation): Punt early
870 on codes that are handled elsewhere.
871
872 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
873
874 * doc/sourcebuild.texi (vect_bool_cmp): Document.
875 * tree-vect-patterns.c (search_type_for_mask_1): If neither
876 operand to a boolean comparison is a natural vector mask,
877 handle both operands like normal integers instead.
878
879 2019-11-29 Richard Biener <rguenther@suse.de>
880
881 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
882 out early for too large objects.
883
884 2019-11-29 Martin Jambor <mjambor@suse.cz>
885
886 PR ipa/92476
887 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
888 the summary only if the summary exists.
889 (find_more_scalar_values_for_callers_subset): Check node_dead in
890 the summary only if the summary exists.
891 (ipcp_store_bits_results): Ignore nodes without lattices.
892 (ipcp_store_vr_results): Likewise.
893 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
894 header files required by them.
895 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
896
897 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
898
899 PR tree-optimization/92710
900 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
901 vector mask arguments.
902
903 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
904
905 * profile-count.c (profile_count::to_cgraph_frequency,
906 profile_count::to_sreal_scale): Check for compaibility of counts.
907 * profile-count.h (compatible_p): Make public; add checking for
908 global0 versus global types.
909 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
910
911 2019-11-29 Richard Biener <rguenther@suse.de>
912
913 PR tree-optimization/92715
914 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
915 out for uniform vectors and source vectors with less elements
916 than the destination.
917
918 2019-11-29 Martin Liska <mliska@suse.cz>
919
920 PR lto/91574
921 * ipa-devirt.c (types_same_for_odr): Check for existence
922 of TYPE_NAMEs first.
923
924 2019-11-29 Richard Biener <rguenther@suse.de>
925
926 PR tree-optimization/92704
927 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
928 in loops performing only loads.
929
930 2019-11-29 Julian Brown <julian@codesourcery.com>
931
932 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
933 BT_DFLOAT128_PTR) Remove.
934 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
935 TI_DFLOAT128_PTR_TYPE): Remove.
936 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
937 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
938 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
939 dfloat128_ptr_type_node): Remove macros.
940
941 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
942
943 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
944 formatting.
945 (*movdi_internal64): Ditto.
946
947 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
948
949 PR target/92602
950 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
951 indexed_or_indirect_operand to be memory_operand.
952 (bswap<mode>2_store for HSI): Ditto.
953 (bswapdi2_load): Ditto.
954 (bswapdi2_store): Ditto.
955
956 2019-11-28 Martin Liska <mliska@suse.cz>
957
958 PR debug/46558
959 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
960 headers for translation.
961
962 2019-11-28 Martin Liska <mliska@suse.cz>
963
964 PR lto/92609
965 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
966 consistently.
967
968 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
969
970 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
971 checks.
972
973 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
974
975 * profile-count.c (profile_count::combine_with_ipa_count): Return
976 uninitialized count if called on ininitialized count.
977
978 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
979
980 * ipa-inline-transform.c (inline_transform): Scale profile before
981 redirecting.
982
983 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
984
985 * profile-count.h (profile_count::max): Work on profiles of different
986 type.
987 (profile_count::apply_scale): Be sure that ret is not local or global0
988 type if num is global.
989
990 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
991
992 * profile-count.h (profile_count::max): Work on profiles of different
993 type.
994 (profile_count::apply_scale): Be sure that ret is not local or global0
995 type if num is global.
996
997 2019-11-28 Martin Jambor <mjambor@suse.cz>
998
999 PR ipa/92697
1000 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1001 ifunc_resolvers.
1002 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1003 Removed trailig whitespace.
1004
1005 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1006
1007 * profile-count.h (profile_count::combine_with_ipa_count_within):
1008 Declare.
1009 * profile-count.c (profile_count::combine_with_ipa_count_within):
1010 New.
1011 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1012 it.
1013
1014 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1015
1016 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1017 of counters are done same way.
1018
1019 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1020
1021 * ipa-cp.c (update_profiling_info): Fix scaling.
1022
1023 2019-11-28 Richard Biener <rguenther@suse.de>
1024
1025 PR tree-optimization/92645
1026 * tree-inline.c (remap_gimple_stmt): When the return value
1027 is not wanted, elide GIMPLE_RETURN.
1028
1029 2019-11-28 Richard Biener <rguenther@suse.de>
1030
1031 PR tree-optimization/92645
1032 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1033 conversions inside a mode class. Remove restriction on
1034 preserving the element size.
1035 (simplify_vector_constructor): Deal with the above and for
1036 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1037 and VEC_PACK_TRUNC_EXPR.
1038
1039 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1040
1041 Must use push insn to pass varargs arguments of DFmode because
1042 otherwise the middle-end generates wrong code.
1043
1044 PR target/92055
1045 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1046
1047 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR tree-optimization/92691
1050 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1051 in function comment.
1052 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1053 calls, return !handle_printf_call rather than always returning true.
1054 (check_and_optimize_stmt): Describe return value meaning in function
1055 comment. Formatting fix.
1056
1057 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1058
1059 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1060 combination of globa0 and global counters..
1061
1062 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1063
1064 PR target/92566
1065 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1066 by VECTOR_UNIT_NONE_P instead.
1067
1068 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1069
1070 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1071 Refine VF to VF_AVX512VL.
1072
1073 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1074
1075 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1076 (movdi_internal64): Reformat.
1077
1078 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1079
1080 PR bootstrap/92661
1081 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1082 builtin if we don't have an actual type.
1083 (builtin_function_type): If the builtin function uses a DFP type
1084 and decimal float has been disabled, then return NULL_TREE.
1085
1086 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1087
1088 PR rtl-optimization/92510
1089 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1090 of comparison into a comparison with different mode if both imode and
1091 omode are scalar integral modes.
1092
1093 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1094
1095 PR rtl-optimization/90007
1096 * recog.c (constrain_operands): Permit hard registers too for
1097 memory when LRA is used.
1098
1099 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1100
1101 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1102 between Coldfire and regular m68k.
1103 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1104
1105 2019-11-27 Richard Biener <rguenther@suse.de>
1106
1107 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1108 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1109 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1110 * optabs-tree.c (supportable_convert_operation): Do not call
1111 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1112 * optabs-tree.h (supportable_convert_operation): Adjust.
1113 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1114 * doc/tm.texi: Regenerate.
1115 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1116 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1117 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1118 unused decl parameter and adjust.
1119 (vect_create_vectorized_promotion_stmts): Likewise.
1120 (vectorizable_conversion): Adjust.
1121
1122 2019-11-27 Richard Biener <rguenther@suse.de>
1123
1124 PR tree-optimization/92690
1125 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1126 converting elements not originally converted.
1127
1128 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1129
1130 PR middle-end/92463
1131 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1132 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1133 mpfr_rnd_t instead of mp_rnd_t.
1134 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1135 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1136 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1137 Use mpfr_exp_t instead of mp_exp_t.
1138 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1139 MPFR_RNDx instead of GMP_RNDx.
1140 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1141 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1142 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1143 of mp_rnd_t and remove MPFR_RNDx poisoning.
1144 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1145
1146 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1147
1148 PR tree-optimization/91790
1149 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1150 DR for vect_setup_realignment when first_stmt_info is different
1151 from first_stmt_info_for_drptr.
1152
1153 2019-11-27 Richard Biener <rguenther@suse.de>
1154
1155 PR tree-optimization/92645
1156 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1157 CTORs with just a subset of the original vectors.
1158
1159 2019-11-27 Richard Biener <rguenther@suse.de>
1160
1161 PR middle-end/92674
1162 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1163 edges and instead record blocks in bitmap.
1164 (gimple_expand_calls_inline): Adjust.
1165 (fold_marked_statements): Delay EH cleanup until all folding is
1166 done.
1167 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1168 inlining finished.
1169
1170 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1171
1172 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1173 LRA is enabled.
1174 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1175 disabled.
1176
1177 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1178
1179 PR debug/92664
1180 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1181
1182 2019-11-26 Martin Sebor <msebor@redhat.com>
1183
1184 PR tree-optimization/92683
1185 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1186 inadvertently removed in a previous change. Rename local variable
1187 for clarity.
1188
1189 2019-11-26 Richard Biener <rguenther@suse.de>
1190
1191 PR middle-end/92669
1192 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1193 NULL pre_order.
1194
1195 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1196
1197 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1198
1199 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1200
1201 PR tree-optimization/92644
1202 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1203 next to INTEGER_CST checks.
1204
1205 2019-11-26 Richard Biener <rguenther@suse.de>
1206
1207 PR tree-optimization/92645
1208 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1209 do not build the operation from scalars if the operand is.
1210
1211 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1212
1213 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1214 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1215 definitions.
1216
1217 2019-11-25 Martin Liska <mliska@suse.cz>
1218
1219 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1220 up used dump message.
1221
1222 2019-11-25 Martin Liska <mliska@suse.cz>
1223
1224 PR bootstrap/92653
1225 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1226 too strict checking assert.
1227
1228 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1229
1230 PR c/91985
1231 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1232 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1233 error_mark_node if corresponding global tree node is NULL.
1234 * tree.c (build_common_tree_nodes): Do not initialize
1235 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1236 decimal floating-point not supported.
1237
1238 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1239
1240 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1241 types.
1242
1243 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1244
1245 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1246 Replace code for non-CONST_INT constants with gcc_unreachable.
1247 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1248 compare and test.
1249 (CMPMODE): New mode_iterator.
1250 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1251 cbranch<mode>4.
1252 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1253 cstore<mode>4.
1254 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1255 operand.
1256 (bit test insns patterns): Use nonimmediate_operand, not
1257 register_operand, for source operands that allow memory in
1258 their constraints.
1259 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1260 Use register_operand, not nonimmediate_operand, for the
1261 destinations.
1262 (DBCC): New mode_iterator.
1263 (dbcc peepholes): Use it to reduce duplication.
1264 (trap): Use const_true_rtx, not const1_rtx.
1265 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1266 from m68k_subword_comparison_operand and changed to handle
1267 SImode.
1268
1269 PR target/91851
1270 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1271 declaration.
1272 (m68k_init_cc): New declaration.
1273 (m68k_output_compare_di, m68k_output_compare_si)
1274 (m68k_output_compare_hi, m68k_output_compare_qi)
1275 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1276 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1277 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1278 m68k_output_branch_float, m68k_output_branch_float_rev):
1279 Likewise.
1280 (valid_dbcc_comparison_p_2, flags_in_68881)
1281 (output_btst): Remove declaration.
1282 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1283 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1284 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1285 (flags_compare_op0, flags_compare_op1, flags_operand1,
1286 flags_operand2, flags_valid): New static variables.
1287 (m68k_find_flags_value, m68k_init_cc): New functions.
1288 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1289 remember_compare_flags): New static functions.
1290 (output_dbcc_and_branch): New argument CODE. Use it, and add
1291 PLUS and MINUS to the possible codes. All callers changed.
1292 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1293 and INSN arguments, add CODE arg. Return the comparison code
1294 to use. All callers changed. Use CODE instead of
1295 next_insn_tests_no_inequality, and replace cc_status management
1296 with changing the return code.
1297 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1298 RTX_COMPARE or RTX_COMM_COMPARE.
1299 (output_move_simode, output_move_qimode): Call
1300 handle_flags_for_move.
1301 (notice_update_cc): Delete function.
1302 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1303 m68k_output_compare_hi, m68k_output_compare_qi,
1304 m68k_output_compare_fp, m68k_output_branch_integer,
1305 m68k_output_branch_integer_rev, m68k_output_scc,
1306 m68k_output_branch_float, m68k_output_branch_float_rev,
1307 m68k_output_scc_float): New functions.
1308 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1309 once at the start, and set flags_valid and flags_operand1 if the
1310 flags are usable.
1311 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1312 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1313 definitions.
1314 (CC_STATUS_INIT): Define.
1315 * config/m68k/m68k.md (flags_valid): New define_attr.
1316 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1317 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1318 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1319 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1320 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1321 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1322 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1323 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1324 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1325 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1326 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1327 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1328 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1329 ctrapqi4, conditional_trap): Delete patterns.
1330 (cbranchdi4_insn): New pattern.
1331 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1332 test high part only. When testing EQ or NE, generate beq0_di
1333 and bne0_di patterns directly.
1334 (cstoredi4): When testing LT or GE, test high part only.
1335 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1336 patterns.
1337 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1338 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1339 cmp2_cf_predicate): New define_mode_attrs.
1340 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1341 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1342 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1343 New patterns.
1344 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1345 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1346 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1347 New patterns.
1348 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1349 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1350 Likewise.
1351 (BTST): New define_mode_iterator.
1352 (btst_predicate, btst_constraint, btst_range): New
1353 define_mode_attrs.
1354 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1355 patterns.
1356 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1357 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1358 patterns): Set attr "flags_valid".
1359 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1360 management. Set attr "flags_valid".
1361 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1362 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1363 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1364 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1365 manual CC_STATUS management.
1366 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1367 unnamed strict_lowpart subhi and subqi patterns): Set attr
1368 "flags_valid".
1369 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1370 Remove code to operate on address regs and assert the case
1371 does not occur.
1372 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1373 manual CC_STATUS_INIT.
1374 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1375 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1376 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1377 one_cmplqi2, unnamed strict_lowpart patterns
1378 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1379 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1380 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1381 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1382 CC_STATUS_INIT.
1383 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1384 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1385 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1386 unnamed strict_low_part patterns for HI and
1387 QI versions): Set attr "flags_valid".
1388 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1389 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1390 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1391 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1392 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1393 (various unnamed peepholes): Adjust compare/branch sequences
1394 for new cbranch patterns.
1395 (dbcc peepholes): Likewise, and output the comparison here
1396 as well.
1397 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1398 (fp_src_operand): Allow constant zero.
1399 (address_reg_operand): New predicate.
1400
1401 * rtl.h (inequality_comparisons_p): Remove declaration.
1402 * recog.h (next_insn_tests_no_inequality): Likewise.
1403 * rtlanal.c (inequality_comparisons_p): Delete function.
1404 * recog.c (next_insn_tests_no_inequality): Likewise.
1405
1406 2019-11-25 Richard Biener <rguenther@suse.de>
1407
1408 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1409 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1410 properly re-building the visited hash-map for each lane.
1411
1412 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1413
1414 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1415 gcn_md_reorg): Remove unused variables.
1416 (gcn_emutls_var_init): Add missing (but unreachable) return
1417 to silence warning.
1418 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1419 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1420 an uninitialized variable.
1421
1422 2019-11-25 Martin Jambor <mjambor@suse.cz>
1423
1424 PR ipa/92109
1425 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1426 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1427 (cgraph_materialize_clone): Move removel from clone tree to the
1428 the new method and use it instead.
1429 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1430 bodies of clones, also remove it from the clone tree.
1431
1432 2019-11-25 Martin Jambor <mjambor@suse.cz>
1433
1434 PR ipa/91956
1435 * ipa-sra.c (process_isra_node_results): Put the new node to the
1436 same comdat group as the original node.
1437
1438 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1439
1440 Build double32 / long-double32 multilibs if needed.
1441
1442 PR target/92055
1443 * config/avr/t-avr:
1444 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1445 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1446 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1447 tm_defines and pass to genmultilib.awk.
1448 * config/avr/genmultilib.awk: Use these variables to add double32
1449 and / or long-double32 multilib(s) as needed.
1450 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1451
1452 2019-11-25 Richard Biener <rguenther@suse.de>
1453
1454 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1455 loop body, defaulted to NULL.
1456 (single_likely_exit): Add exit vector argument
1457 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1458 (number_of_iterations_exit): Likewise.
1459 (number_of_iterations_exit_assumptions): Likewise.
1460 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1461 if not NULL.
1462 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1463 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1464 Compute exit vector around call to single_likely_exit.
1465 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1466 loop body to loop_only_exit_p.
1467 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1468 caller.
1469 (number_of_iterations_exit_assumptions): Get loop body from caller
1470 if not NULL.
1471 (number_of_iterations_exit): Pass through new loop body arg.
1472 (infer_loop_bounds_from_undefined): Get loop body from caller.
1473 (estimate_numbers_of_iterations): Compute loop body once.
1474
1475 2019-11-25 Richard Biener <rguenther@suse.de>
1476
1477 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1478 auto_bb_flag instead of an sbitmap for visited handling.
1479
1480 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1481
1482 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1483 iterator.
1484 (vector_fp_comparison_complex): Likewise.
1485 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1486 define_and_split.
1487 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1488 Likewise.
1489 (vector_lt<mode> for VEC_F): Refactor with
1490 vector_fp_comparison_simple.
1491 (vector_le<mode> for VEC_F): Likewise.
1492 (vector_unge<mode> for VEC_F): Likewise.
1493 (vector_unle<mode> for VEC_F): Likewise.
1494 (vector_ne<mode> for VEC_F): Likewise.
1495 (vector_ungt<mode> for VEC_F): Likewise.
1496 (vector_unlt<mode> for VEC_F): Likewise.
1497 (vector_ltgt<mode> for VEC_F): Refactor with
1498 vector_fp_comparison_complex.
1499 (vector_ordered<mode> for VEC_F): Likewise.
1500 (vector_uneq<mode> for VEC_F): Likewise.
1501 (vector_unordered<mode> for VEC_F): Likewise.
1502
1503 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1504
1505 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1506 COMPARE, representing an overflow detection.
1507
1508 * combine.c (combine_instructions): Record costs for jumps.
1509
1510 * combine.c (can_combine_p): Allow autoinc in jumps.
1511
1512 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1513
1514 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1515 * doc/invoke.texi (max-inline-insns-single-O2,
1516 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1517 early-inlining-insns-O2): Remove documentation.
1518 * ipa-fnsummary.c (analyze_function_body,
1519 compute_fn_summary): Use opt_for_fn when accessing parameters.
1520 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1521 inline_insns_auto, can_inline_edge_by_limits_p,
1522 want_early_inline_function_p, big_speedup_p,
1523 want_inline_small_function_p, want_inline_self_recursive_call_p,
1524 recursive_inlining, compute_max_insns, inline_small_functions):
1525 Likewise.
1526 * opts.c (default_options): Add -O3 defaults for
1527 OPT__param_early_inlining_insns_,
1528 OPT__param_inline_heuristics_hint_percent_,
1529 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1530 * params.opt (-param=early-inlining-insns-O2=,
1531 -param=inline-heuristics-hint-percent-O2=,
1532 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1533 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1534 -param=inline-min-speedup=, -param=inline-unit-growth=,
1535 -param=large-function-growth=, -param=large-stack-frame=,
1536 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1537 -param=max-inline-insns-recursive=,
1538 -param=max-inline-insns-recursive-auto=,
1539 -param=max-inline-insns-single=,
1540 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1541 -param=max-inline-recursive-depth=,
1542 -param=max-inline-recursive-depth-auto=,
1543 -param=min-inline-recursive-probability=,
1544 -param=partial-inlining-entry-probability=,
1545 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1546 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1547 Optimization.
1548
1549 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1550
1551 * ipa-fnsummary.c: Fix comment typos.
1552 * ipa-ref.h: Likewise.
1553 * ipa-predicate.h: Likewise.
1554 * ipa-split.c: Likewise.
1555 * ipa-inline-analysis.c: Likewise.
1556 * ipa-predicate.c: Likewise.
1557 * ipa-devirt.c: Likewise.
1558 * ipa-icf.h: Likewise.
1559 * profile-count.c: Likewise.
1560 * ipa-icf.c: Likewise.
1561 (sem_function::equals_wpa): Fix typos in dump messages.
1562 * ipa-icf-gimple.h: Fix comment typos.
1563 * ipa-inline-transform.c: Likewise.
1564 * ipa-polymorphic-call.c: Likewise.
1565 * ipa-fnsummary.h: Likewise.
1566 * ipa-inline.c: Likewise.
1567 (dump_inline_stats): Fix typo in debug dump message.
1568 * profile-count.h: Fix comment typos.
1569
1570 PR target/92615
1571 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1572 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1573 register_operand, force x into register before storing it into dest.
1574 Formatting fix.
1575
1576 PR middle-end/83859
1577 * doc/extend.texi (attribute access): Fix a typo.
1578
1579 PR rtl-optimization/92610
1580 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1581 cse_cfg_altered is set, even when tem is 0.
1582 (rest_of_handle_cse_after_global_opts): Likewise.
1583
1584 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR c++/92458
1587 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1588 tree_hash): Move to ...
1589 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1590 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1591 types.
1592 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1593
1594 PR tree-optimization/92618
1595 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1596 containing the auto_vec and a tree.
1597 (undistribute_bitref_for_vector): Handle the case when element type
1598 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1599 fixes.
1600
1601 2019-11-22 Martin Sebor <msebor@redhat.com>
1602
1603 PR middle-end/83859
1604 * attribs.h (struct attr_access): New.
1605 * attribs.c (decl_attributes): Add an informational note.
1606 * builtins.c (check_access): Make extern. Consistently set no-warning
1607 after issuing a warning. Handle calls through function pointers. Set
1608 no-warning.
1609 * builtins.h (check_access): Declare.
1610 * calls.c (rdwr_access_hash): New type.
1611 (rdwr_map): Same.
1612 (init_attr_rdwr_indices): New function.
1613 (maybe_warn_rdwr_sizes): Same.
1614 (initialize_argument_information): Call init_attr_rdwr_indices.
1615 Call maybe_warn_rdwr_sizes.
1616 (get_size_range): Avoid null argument.
1617 * doc/extend.texi (attribute access): Document new attribute.
1618
1619 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1620
1621 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1622 (ACC_LDS_SIZE): Define.
1623 (OTHER_LDS_SIZE): Define.
1624 (LDS_SIZE): Redefine using above.
1625 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1626
1627 2019-11-22 Martin Sebor <msebor@redhat.com>
1628
1629 PR middle-end/88226
1630 * builtins.c (check_nul_terminated_array): New function.
1631 (fold_builtin_0): Remove declaration.
1632 (fold_builtin_1): Same.
1633 (fold_builtin_2): Same.
1634 (fold_builtin_3): Same.
1635 (fold_builtin_strpbrk): Add argument.
1636 (fold_builtin_strspn): Same.
1637 (fold_builtin_strcspn): Same.
1638 (expand_builtin_strcat): Call it. Remove unused argument.
1639 (expand_builtin_stpncpy): Same.
1640 (expand_builtin_strncat): Same.
1641 (expand_builtin_strncpy): Same. Adjust indentation.
1642 (expand_builtin_strcmp): Same.
1643 (expand_builtin_strncmp): Same.
1644 (expand_builtin_fork_or_exec): Same.
1645 (expand_builtin): Handle more built-ins.
1646 (fold_builtin_2): Add argument.
1647 (fold_builtin_n): Make static. Add argument.
1648 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1649 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1650 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1651 (fold_call_stmt): Pass new argument to fold_builtin_n.
1652 * builtins.h: Correct a comment.
1653 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1654 check_nul_terminated_array.
1655 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1656 check_nul_terminated_array.
1657 (handle_builtin_strchr): Same.
1658 (handle_builtin_string_cmp): Same.
1659
1660 2019-11-22 Martin Sebor <msebor@redhat.com>
1661
1662 PR tree-optimization/92501
1663 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1664 handle unterminated arrays. Rename local variables for clarity.
1665
1666 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1667
1668 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1669 granulated_sgprs according to architecture.
1670
1671 2019-11-22 Jan Hubicka <jh@suse.cz>
1672
1673 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1674 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1675 (memory_block_pool::reduce_free_list): ... this one.
1676 (memory_block_pool::trim): New static function.
1677 * memory-block.h (memory_block_pool::freelist_size): New constant
1678 (memory_block_pool::clear_free_list): Rename to ...
1679 (memory_block_pool::reduce_free_list): ... this one.
1680 (memory_block_pool::trim): Declare.
1681
1682 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1683
1684 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1685 vect_cost_for_stmt.
1686 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1687 here rather than...
1688 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1689
1690 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1691
1692 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1693 (bic_cmp0_noout): New pattern.
1694 (bic_cmp0): Likewise.
1695 (neg_scc_insn): Remove pattern.
1696 (not_scc_insn): Likewise.
1697
1698 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1699
1700 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1701
1702 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1703
1704 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1705 pedwarn instead of warning_at for fallthrough not preceding a case
1706 or default label.
1707
1708 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1709
1710 PR tree-optimization/92608
1711 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1712 of dyn_cast.
1713
1714 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1715
1716 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1717 New predicate.
1718 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1719 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1720 special for FP comparisons that need a cror instruction eventually.
1721 (rs6000_emit_fp_cror): New function.
1722 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1723 instruction, for normal FP modes, with HONOR_NANS.
1724 (rs6000_emit_cbranch): Reformat.
1725 * config/rs6000/rs6000.md (fp_rev): New iterator.
1726 (fp_two): New iterator.
1727 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1728 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1729 *cbranch_2insn: New define_insn_and_split.
1730
1731 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1732
1733 PR tree-optimization/92526
1734 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1735 versioning for alignment if the accesses do not have a consistent
1736 mask, rather than asserting that the masks are consistent.
1737
1738 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1739
1740 PR tree-optimization/92595
1741 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1742 check.
1743 (vectorizable_store, vectorizable_load): Likewise.
1744
1745 2019-11-21 Jan Hubicka <jh@suse.cz>
1746
1747 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1748 (resolve_noninline_speculation, inline_small_functions): Avoid
1749 redundant updates.
1750
1751 2019-11-21 Richard Biener <rguenther@suse.de>
1752
1753 * lra.c (lra_insn_recog_data_pool): New.
1754 (free_insn_recog_data): Adjust.
1755 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1756 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1757
1758 2019-11-21 Richard Biener <rguenther@suse.de>
1759
1760 PR tree-optimization/92596
1761 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1762
1763 2019-11-21 Jan Hubicka <jh@suse.cz>
1764
1765 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1766 ready for some vectors to not be allocated.
1767 (evaluate_properties_for_edge): Document better; make
1768 known_vals and known_aggs caller allocated; avoid determining
1769 values of parameters which are not used.
1770 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1771 known_aggs.
1772 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1773 (do_estimate_edge_size): Likewise.
1774 (do_estimate_edge_hints): Likewise.
1775 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1776 values are not known.
1777 (ipa_release_agg_values): Add option to not release vector itself.
1778 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1779
1780 2019-11-21 Richard Biener <rguenther@suse.de>
1781
1782 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1783 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1784 (loop_iterator::loop_iterator): Adjust.
1785 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1786 (compute_dominance_frontiers): ... this. Hoist invariant
1787 get_immediate_dominator call.
1788 (compute_idf): Use a work-set instead of a work-list for more
1789 optimal iteration order and duplicate avoidance.
1790 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1791 the vector all the time, instead pre-allocate the vector only
1792 once.
1793 (delete_update_ssa): Simplify.
1794 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1795
1796 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1797
1798 PR tree-optimization/91355
1799 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1800 for early_bb scaled count with best_bb count comparison.
1801
1802 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1803 preffer -> prefer.
1804 * ipa-inline.c (edge_badness): Likewise.
1805 * lto-streamer.h (class lto_location_cache): Likewise.
1806 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1807 gratutious -> gratuitous.
1808
1809 2019-11-21 Richard Biener <rguenther@suse.de>
1810
1811 Revert
1812 2019-09-17 Richard Biener <rguenther@suse.de>
1813
1814 PR tree-optimization/91790
1815 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1816 use the correct DR for setting up realignment.
1817
1818 2019-11-21 Richard Biener <rguenther@suse.de>
1819
1820 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1821 (equiv_class_obstack): New.
1822 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1823 (perform_var_substitution): Initialize equiv_class_obstack.
1824 (free_var_substitution_info): Free equiv_class_obstack.
1825
1826 2019-11-20 Jan Hubicka <jh@suse.cz>
1827
1828 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1829 edge growth when callee function is very large.
1830 * ipa-inline.h (estimate_min_edge_growth): New.
1831
1832 2019-11-20 Jan Hubicka <jh@suse.cz>
1833
1834 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1835 negative time in calls summary; correct roundoff errors
1836 leading to negative times.
1837 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1838 if present.
1839 (ipa_update_overall_fn_summary): Add RESET parameter.
1840 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1841 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1842
1843 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1844
1845 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1846 def types for two-operation SLP.
1847
1848 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1849
1850 PR testsuite/92366
1851 * doc/sourcebuild.texi (vect_char_add): Document.
1852
1853 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1854
1855 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1856 * function.c (record_final_call): Record even calls that might
1857 have been in the cgraph.
1858 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1859 callees.
1860
1861 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1862
1863 * configure.ac: Use https for gcc.gnu.org
1864 * configure: Regenerated.
1865 * doc/install.texi: Use https for gcc.gnu.org.
1866 * doc/sourcebuild.texi: Likewise.
1867
1868 2019-11-20 Julian Brown <julian@codesourcery.com>
1869
1870 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1871
1872 2019-11-20 Jan Hubicka <jh@suse.cz>
1873
1874 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1875 parameter and update call_size_time_table.
1876 (ipa_fn_summary::max_size_time_table_size): New constant.
1877 (estimate_calls_size_and_time_1): Break out from ...
1878 (estimate_calls_size_and_time): ... here; implement summary production.
1879 (summarize_calls_size_and_time): New function.
1880 (ipa_call_context::estimate_size_and_time): Bypass
1881 estimate_calls_size_and_time for leaf functions.
1882 (ipa_update_overall_fn_summary): Likewise.
1883 * ipa-fnsummary.h (call_size_time_table): New.
1884 (ipa_fn_summary::account_size_time): Update prototype.
1885
1886 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1887
1888 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1889
1890 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1891
1892 PR85678
1893 * common.opt (fcommon): Change init to 1.
1894 * doc/invoke.texi (-fcommon): Update documentation.
1895
1896 2019-11-20 Jan Hubicka <jh@suse.cz>
1897
1898 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1899 to ordinary array.
1900
1901 2019-11-20 Jan Hubicka <jh@suse.cz>
1902
1903 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1904 Add allocator parameter.
1905 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1906 (fibonacci_heap<K,V>::m_allocator): New.
1907 (fibonacci_heap<K,V>::m_own_allocator): New.
1908 (fibonacci_heap<K,V>::insert): Use allocator.
1909 (fibonacci_heap<K,V>::extract_min): Likewise.
1910 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1911 allocator.
1912 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1913 on stack.
1914 * fibonacci_heap.c: Include alloc-pool
1915 (test_empty_heap): Initialize allocator.
1916 (test_union): Likewise.
1917 * bb-reorder.c: Include alloc-pool.h.
1918 * tracer.c: Inlclude alloc-pool.h.
1919
1920 2019-11-20 Jan Hubicka <jh@suse.cz>
1921
1922 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1923 Preallocate for 32 entries.
1924 (DFS::worklist): Likewise.
1925 (DFS::DFS): Do not initialize sccstack and worklist.
1926 (DFS::~DFS): Do not release sccstack.
1927
1928 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1929
1930 PR target/92573
1931 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1932 Handle UNORDERED if !HONOR_NANS.
1933
1934 2019-11-20 Jan Hubicka <jh@suse.cz>
1935
1936 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1937 (edge_badness): ... here.
1938 (inline_small_functions): Use monotonicity of badness calculation
1939 to avoid redundant updates.
1940
1941 2019-11-20 Richard Biener <rguenther@suse.de>
1942
1943 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1944 constructors we are actually analyzing.
1945 (vect_slp_check_for_constructors): Do not vectorize uniform
1946 constuctors, do not dump here.
1947
1948 2019-11-20 Richard Biener <rguenther@suse.de>
1949
1950 PR tree-optimization/92537
1951 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1952 vectorization validity check...
1953 (vect_slp_analyze_operations): ... here.
1954
1955 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1956
1957 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1958 (make_pass_arc_predicate_delay_insns): Likewise.
1959 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1960 method, remove clone.
1961 (class pass_arc_predicate_delay_insns): Likewise.
1962 (arc_init): Remove registering of ARC specific passes.
1963 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1964 * config/arc/arc-passes.def: New file.
1965
1966 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1967
1968 PR middle-end/90840
1969 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1970 and has a mode that doesn't have corresponding integral type.
1971
1972 PR target/90867
1973 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1974 clear opts->x_ix86_isa_flags{,2} here...
1975 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1976 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1977
1978 PR c/90898
1979 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1980 assertion.
1981 (insert_clobbers_for_var): Fix a typo in function comment.
1982
1983 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1984 Jakub Jelinek <jakub@redhat.com>
1985
1986 PR middle-end/91195
1987 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1988 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1989 load.
1990
1991 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1992
1993 Make 0-series device specs work with older versions of avr-gcc.
1994
1995 PR target/92545
1996 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1997 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1998 <*link_pm_base_address>: Don't write spec.
1999 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2000
2001 2019-11-20 Richard Biener <rguenther@suse.de>
2002
2003 PR c/92088
2004 * builtins.c (compute_objsize): Deal with VLAs.
2005
2006 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2007
2008 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2009 from common code.
2010 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2011 call new function.
2012 (power9_sched_reorder2): Call new function.
2013 (rs6000_sched_reorder2): Likewise.
2014
2015 2019-11-18 Jan Hubicka <jh@suse.cz>
2016
2017 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2018 (estimate_calls_size_and_time): Update.
2019
2020 2019-11-18 Jan Hubicka <jh@suse.cz>
2021
2022 * ipa-inline.c (inlining_speedup): New function.
2023 (edge_badness): Use it.
2024
2025 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2026 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2027
2028 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2029 Mark as not having "likely" version.
2030 * config/mips/mips.md (insn_count): The simd_div instruction with
2031 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2032 (can_delay): Exclude simd_branch.
2033 (defile_delay *): Add simd_branch instructions.
2034 They have one regular delay slot.
2035
2036 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2037
2038 Revert:
2039 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2040
2041 * cse.c (cse_insn): Delete no-op register moves too.
2042 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2043 Take a second comparison to control the value for NE.
2044 (mask_to_comparison): Handle unsigned comparisons.
2045 (simplify_logical_relational_operation): Likewise. Update call
2046 to comparison_to_mask. Handle AND if !HONOR_NANs.
2047 (simplify_binary_operation_1): Call the above for AND too.
2048
2049 2019-11-19 Martin Liska <mliska@suse.cz>
2050
2051 * toplev.c (general_init): Move the call...
2052 (toplev::main): ... here as we need init_options_struct
2053 being called.
2054
2055 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2056
2057 PR target/79262
2058 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2059 vec_to_scalar_cost.
2060
2061 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2062
2063 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2064 (armv7-a): Likewise.
2065 (armv7ve): Likewise.
2066
2067 2019-11-19 Richard Biener <rguenther@suse.de>
2068
2069 PR tree-optimization/92581
2070 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2071 condition reduction chains gather all conditions involved
2072 for computing the index reduction vector.
2073
2074 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2075
2076 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2077 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2078 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2079 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2080 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2081 (aarch64_init_memtag_builtins): New.
2082 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2083 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2084 (aarch64_expand_builtin_memtag): New.
2085 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2086 (AARCH64_BUILTIN_SUBCODE): New macro.
2087 (aarch64_resolve_overloaded_memtag): New.
2088 (aarch64_resolve_overloaded_builtin_general): New. Call
2089 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2090 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2091 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2092 (aarch64_resolve_overloaded_builtin): Call
2093 aarch64_resolve_overloaded_builtin_general.
2094 * config/aarch64/aarch64-protos.h
2095 (aarch64_resolve_overloaded_builtin_general): New declaration.
2096 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2097 (TARGET_MEMTAG): Likewise.
2098 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2099 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2100 (irg, gmi, subp, addg, ldg, stg): New instructions.
2101 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2102 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2103 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2104 (__arm_mte_get_tag): Likewise.
2105 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2106 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2107 * config/arm/types.md (memtag): New.
2108 * doc/invoke.texi (-memtag): Update description.
2109
2110 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2111
2112 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2113 to define __GCC_ASM_FLAG_OUTPUTS__.
2114 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2115 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2116 depending on TARGET_THUMB1.
2117 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2118
2119 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2120
2121 PR target/92549
2122 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2123
2124 PR middle-end/91450
2125 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2126 operand is negative and one non-negative, compare the non-negative
2127 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2128 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2129 and s2 == 0, unless one of them is known to be negative. Remove
2130 tem2 variable, use tem where tem2 has been used before.
2131
2132 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2133
2134 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2135
2136 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2137
2138 PR tree-optimization/92557
2139 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2140 vmode rather than asserting it always is.
2141
2142 2019-11-19 Richard Biener <rguenther@suse.de>
2143
2144 PR tree-optimization/92554
2145 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2146 for the actual condition stmt and deal with sign-changes.
2147
2148 2019-11-19 Richard Biener <rguenther@suse.de>
2149
2150 PR tree-optimization/92555
2151 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2152 for non-SLP stmts.
2153
2154 2019-11-19 Martin Liska <mliska@suse.cz>
2155
2156 PR bootstrap/92540
2157 * config/riscv/riscv.c (riscv_address_insns): Initialize
2158 addr in order to remove boostrap -Wmaybe-uninitialized
2159 error.
2160
2161 2019-11-18 Martin Sebor <msebor@redhat.com>
2162
2163 PR tree-optimization/92493
2164 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2165 assignment.
2166
2167 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2168
2169 * cfgloop.c (get_loop_body_in_custom_order): New.
2170 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2171 * tree-loop-distribution.c (class loop_distribution): New.
2172 (bb_top_order_cmp): Remove.
2173 (bb_top_order_cmp_r): New.
2174 (create_rdg_vertices): Move into class loop_distribution.
2175 (stmts_from_loop): Same as above.
2176 (update_for_merge): Same as above.
2177 (partition_merge_into): Same as above.
2178 (get_data_dependence): Same as above.
2179 (data_dep_in_cycle_p): Same as above.
2180 (update_type_for_merge): Same as above.
2181 (build_rdg_partition_for-vertex): Same as above.
2182 (classify_builtin_ldst): Same as above.
2183 (classify_partition): Same as above.
2184 (share_memory_accesses): Same as above.
2185 (rdg_build_partitions): Same as above.
2186 (pg_add_dependence_edges): Same as above.
2187 (build_partition_graph): Same as above.
2188 (merge_dep_scc_partitions): Same as above.
2189 (break_alias_scc_partitions): Same as above.
2190 (finalize_partitions): Same as above.
2191 (distribute_loop): Same as above.
2192 (bb_top_order_init): New method
2193 (bb_top_order_destroy): New method.
2194 (get_bb_top_order_index_size): New method.
2195 (get_bb_top_order_index_index): New method.
2196 (get_bb_top_order_index_index): New method.
2197 (loop_distribution::execute): New method.
2198 (pass_loop_distribution::execute): Instantiate loop_distribution.
2199
2200 2019-11-18 Jan Hubicka <jh@suse.cz>
2201
2202 PR ipa/92508
2203 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2204 caches.
2205 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2206
2207 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2208
2209 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2210 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2211 * doc/md.texi: Document them.
2212 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2213 internal functions.
2214 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2215 * internal-fn.c (check_ptrs_direct): New macro.
2216 (expand_check_ptrs_optab_fn): Likewise.
2217 (direct_check_ptrs_optab_supported_p): Likewise.
2218 (internal_check_ptrs_fn_supported_p): New fuction.
2219 * tree-data-ref.c: Include internal-fn.h.
2220 (create_ifn_alias_checks): New function.
2221 (create_intersect_range_checks): Use it.
2222 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2223 (optab, cmp_op): Handle it.
2224 (raw_war, unspec): New int attributes.
2225 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2226 constants.
2227 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2228 New predicate.
2229 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2230 expander.
2231 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2232 pattern.
2233
2234 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2235
2236 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2237 empty constructors.
2238
2239 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2240
2241 * cse.c (cse_insn): Delete no-op register moves too.
2242 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2243 Take a second comparison to control the value for NE.
2244 (mask_to_comparison): Handle unsigned comparisons.
2245 (simplify_logical_relational_operation): Likewise. Update call
2246 to comparison_to_mask. Handle AND if !HONOR_NANs.
2247 (simplify_binary_operation_1): Call the above for AND too.
2248
2249 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2250
2251 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2252 splitting the main code out into...
2253 (native_encode_vector_part): ...this new function.
2254 (native_decode_vector_tree): New function.
2255 (fold_view_convert_vector_encoding): Likewise.
2256 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2257 to VECTOR_TYPEs.
2258
2259 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2260
2261 * tree-data-ref.c (create_intersect_range_checks_index): If the
2262 alias pair describes simple WAW and WAR dependencies, just check
2263 whether the first B access overlaps later A accesses.
2264 (create_waw_or_war_checks): New function that performs the same
2265 optimization on addresses.
2266 (create_intersect_range_checks): Call it.
2267
2268 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2269
2270 * lra-constraints.c (valid_address_p): Take the operand and a
2271 constraint as argument. If the operand is a MEM and the constraint
2272 is a memory constraint, check whether the eliminated form of the
2273 MEM already satisfies the constraint.
2274 (process_address_1): Update calls accordingly.
2275
2276 2019-11-18 Tom Tromey <tromey@adacore.com>
2277
2278 * doc/tm.texi: Rebuild.
2279 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2280 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2281
2282 2019-11-18 Richard Biener <rguenther@suse.de>
2283
2284 PR tree-optimization/92516
2285 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2286 argument, hoist bst_map creation/destruction to ...
2287 (vect_analyze_slp): ... here, forming a true graph with
2288 SLP instances being the entries.
2289 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2290 (vect_detect_hybrid_slp): Use one visited set for all
2291 graph entries.
2292 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2293 to hash-sets of slp_tree.
2294 (vect_slp_analyze_operations): Likewise.
2295 (vect_bb_slp_scalar_cost): Remove wrapper.
2296 (vect_bb_vectorization_profitable_p): Use one visited set for
2297 all graph entries.
2298 (vect_schedule_slp_instance): Elide bst_map use.
2299 (vect_schedule_slp): Likewise.
2300
2301 2019-11-18 Richard Biener <rguenther@suse.de>
2302
2303 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2304 was vectorized with just external refs fail.
2305
2306 2019-11-18 Martin Liska <mliska@suse.cz>
2307
2308 PR ipa/92525
2309 * ipa-icf.c (sem_function::init): Unset m_checker
2310 at the end of the function.
2311
2312 2019-11-18 Richard Biener <rguenther@suse.de>
2313
2314 PR tree-optimization/92558
2315 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2316 reducting the width of a reduction vector def update new_phis.
2317
2318 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2319
2320 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2321 and s390*-*-linux-musl* targets.
2322 * configure: Regenerate.
2323
2324 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2325
2326 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2327 (MUSL_DYNAMIC_LINKER64): Define.
2328
2329 2019-11-18 Martin Liska <mliska@suse.cz>
2330
2331 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2332 message for an unknown counter.
2333 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2334 (dbg_cnt_process_opt): Remove unreachable code.
2335
2336 2019-11-18 Martin Liska <mliska@suse.cz>
2337
2338 PR ipa/92529
2339 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2340 Compare LHS types of NOP_EXPR.
2341
2342 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2343
2344 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2345 "initial_pass_name" argument -- by running "*clean_state" pass.
2346 Also free the "initial_pass_name" when done.
2347
2348 2019-11-18 Richard Biener <rguenther@suse.de>
2349
2350 PR rtl-optimization/92462
2351 * alias.c (find_base_term): Restrict the look through ANDs.
2352 (find_base_value): Likewise.
2353
2354 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2355
2356 Add support for AVR devices from the 0-series.
2357
2358 PR target/92545
2359 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2360 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2361 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2362 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2363 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2364 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2365 for spec definitions.
2366 * doc/avr-mmcu.texi: Regenerate.
2367
2368 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2369
2370 PR target/92448
2371 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2372 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2373 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2374 (ix86_reassociation_width): Ditto.
2375 * config/i386/i386-options.c (ix86_option_override_internal):
2376 Replace TARGET_AVX128_OPTIAML with
2377 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2378 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2379 (TARGET_AVX128_OPTIMAL): Deleted.
2380 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2381 DEF_TUNE.
2382
2383 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2384
2385 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2386 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2387 just SI.
2388 (cceq_rev_compare): Rename to...
2389 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2390 just SI.
2391 (define_split for <bd>tf_<mode>): Add SImode first argument to
2392 gen_cceq_ior_compare.
2393
2394 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2395
2396 * common/config/powerpcspe: Delete.
2397
2398 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2399
2400 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2401 output in UNSPEC_WRFFR.
2402
2403 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2404
2405 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2406 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2407
2408 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2409
2410 * tree-data-ref.c (create_intersect_range_checks_index)
2411 (create_intersect_range_checks): Print dump messages.
2412
2413 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2414
2415 * tree-data-ref.c (dump_alias_pair): New function.
2416 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2417
2418 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2419
2420 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2421 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2422 merging data references with different steps.
2423 (create_intersect_range_checks_index): Take a
2424 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2425 Bail out if DR_ALIAS_MIXED_STEPS is set.
2426 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2427 instead of two dr_with_seg_lens. Update call to
2428 create_intersect_range_checks_index.
2429 (create_runtime_alias_checks): Update call accordingly.
2430
2431 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2432
2433 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2434 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2435 (dr_with_seg_len_pair_t::sequencing): New enum.
2436 (dr_with_seg_len_pair_t::flags): New member variable.
2437 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2438 parameter and initialize the flags member variable.
2439 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2440 call accordingly.
2441 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2442 Ensure the two data references in an alias pair are in statement
2443 order, if there is a defined order.
2444 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2445 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2446 swapped the references in a dr_with_seg_len_pair_t. OR together
2447 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2448 try to restore the original dr_with_seg_len order, updating the
2449 flags if that fails.
2450
2451 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2452
2453 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2454 swapping the dr_as based on init values until we've decided
2455 whether to merge them.
2456
2457 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2458
2459 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2460 two accesses in each dr_with_seg_len_pair_t before trying to
2461 combine separate dr_with_seg_len_pair_ts.
2462 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2463 that here.
2464 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2465
2466 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2467
2468 * config/aarch64/aarch64-sve.md
2469 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2470 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2471 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2472 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2473 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2474 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2475 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2476 pattern.
2477 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2478 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2479 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2480 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2481
2482 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2483
2484 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2485 (SVE_4HSI): New mode iterators.
2486 (ANY_EXTEND2): New code iterator.
2487 * config/aarch64/aarch64-sve.md
2488 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2489 Extend to...
2490 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2491 ...this, handling extension to partial modes as well as full modes.
2492 Describe the extension as a predicated rather than unpredicated
2493 extension.
2494 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2495 Likewise extend to...
2496 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2497 ...this, making the same adjustments.
2498 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2499 Likewise extend to...
2500 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2501 ...this, making the same adjustments.
2502 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2503 Likewise extend to...
2504 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2505 ...this, making the same adjustments.
2506 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2507 New pattern.
2508 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2509 extension predicate.
2510 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2511 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2512 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2513 Describe the extension as a predicated rather than unpredicated
2514 extension.
2515 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2516 Likewise. Canonicalize to a constant extension predicate.
2517 * config/aarch64/aarch64-sve-builtins-base.cc
2518 (svld1_gather_extend_impl::expand): Add an extra predicate for
2519 the extension.
2520 (svldff1_gather_extend_impl::expand): Likewise.
2521
2522 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2523
2524 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2525 iterators.
2526 * config/aarch64/aarch64-sve.md
2527 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2528 (gather_load<SVE_24:mode><v_int_container>): ...this.
2529 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2530 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2531 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2532 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2533 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2534 New pattern.
2535 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2536 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2537 Allow the nominal extension predicate to be different from the
2538 load predicate.
2539 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2540 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2541
2542 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2543
2544 * config/aarch64/aarch64-sve.md
2545 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2546 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2547 function.
2548 (aarch64_sve_adjust_stmt_cost): Call it.
2549
2550 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2551
2552 * config/aarch64/aarch64-sve.md
2553 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2554 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2555 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2556 Combine into...
2557 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2558 ...this new pattern, handling extension to partial modes as well
2559 as full modes. Describe the extension as a predicated rather than
2560 unpredicated extension.
2561 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2562 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2563 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2564 Combine into...
2565 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2566 ...this new pattern, handling extension to partial modes as well
2567 as full modes. Describe the extension as a predicated rather than
2568 unpredicated extension.
2569 * config/aarch64/aarch64-sve-builtins.cc
2570 (function_expander::use_contiguous_load_insn): Add an extra
2571 predicate for extending loads.
2572 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2573 (aarch64_sve_adjust_stmt_cost): Likewise.
2574 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2575 the cost of SVE vector stmts.
2576
2577 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2578
2579 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2580 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2581 * config/aarch64/aarch64-sve.md
2582 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2583 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2584 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2585 comment. Avoid new narrower_mask ambiguity.
2586 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2587 (*cond_uxt<mode>_2): Update comment.
2588 (*cond_uxt<mode>_any): Likewise.
2589
2590 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2591
2592 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2593 float modes.
2594 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2595 function.
2596 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2597 new vector float modes.
2598 (aarch64_sve_container_bits): New function.
2599 (aarch64_sve_pred_mode): Likewise.
2600 (aarch64_get_mask_mode): Use it.
2601 (aarch64_sve_element_int_mode): Handle structure modes and partial
2602 modes.
2603 (aarch64_sve_container_int_mode): New function.
2604 (aarch64_vectorize_related_mode): Return SVE modes when given
2605 SVE modes. Handle partial modes, taking the preferred number
2606 of units from the size of the given mode.
2607 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2608 in registers.
2609 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2610 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2611 (aarch64_split_sve_subreg_move): Use the mode form of
2612 aarch64_sve_pred_mode.
2613 (aarch64_secondary_reload): Handle partial modes in the same way
2614 as full big-endian vectors.
2615 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2616 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2617 merging with the Advanced SIMD modes. If two modes have the
2618 same size, try the Advanced SIMD mode first.
2619 (aarch64_simd_valid_immediate): Use the container rather than
2620 the element mode for INDEX constants.
2621 (aarch64_simd_vector_alignment): Make the alignment of partial
2622 SVE vector modes the same as their minimum size.
2623 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2624 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2625 (mov<SVE_ALL:mode>): ...this.
2626 (movmisalign<SVE_FULL:mode>): Extend to...
2627 (movmisalign<SVE_ALL:mode>): ...this.
2628 (*aarch64_sve_mov<mode>_le): Rename to...
2629 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2630 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2631 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2632 partial modes regardless of endianness.
2633 (aarch64_sve_reload_be): Rename to...
2634 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2635 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2636 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2637 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2638 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2639 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2640 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2641 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2642 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2643 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2644 (maskload<SVE_FULL:mode><vpred>): Extend to...
2645 (maskload<SVE_ALL:mode><vpred>): ...this.
2646 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2647 (maskstore<SVE_ALL:mode><vpred>): ...this.
2648 (vec_duplicate<SVE_FULL:mode>): Extend to...
2649 (vec_duplicate<SVE_ALL:mode>): ...this.
2650 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2651 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2652 (sve_ld1r<SVE_FULL:mode>): Extend to...
2653 (sve_ld1r<SVE_ALL:mode>): ...this.
2654 (vec_series<SVE_FULL_I:mode>): Extend to...
2655 (vec_series<SVE_I:mode>): ...this.
2656 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2657 (*vec_series<SVE_I:mode>_plus): ...this.
2658 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2659 new VPRED ambiguity.
2660 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2661 (add<SVE_FULL_I:mode>3): Extend to...
2662 (add<SVE_I:mode>3): ...this.
2663 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2664 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2665 (VPRED, vpred): Likewise.
2666 (Vctype): New iterator.
2667 (vw): Remove SVE modes.
2668
2669 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2670
2671 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2672 (SVE_PARTIAL_I): ...this.
2673 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2674
2675 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2676
2677 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2678 (SVE_FULL): ...this.
2679 (SVE_I): Rename to...
2680 (SVE_FULL_I): ...this.
2681 (SVE_F): Rename to...
2682 (SVE_FULL_F): ...this.
2683 (SVE_BHSI): Rename to...
2684 (SVE_FULL_BHSI): ...this.
2685 (SVE_HSD): Rename to...
2686 (SVE_FULL_HSD): ...this.
2687 (SVE_HSDI): Rename to...
2688 (SVE_FULL_HSDI): ...this.
2689 (SVE_HSF): Rename to...
2690 (SVE_FULL_HSF): ...this.
2691 (SVE_SD): Rename to...
2692 (SVE_FULL_SD): ...this.
2693 (SVE_SDI): Rename to...
2694 (SVE_FULL_SDI): ...this.
2695 (SVE_SDF): Rename to...
2696 (SVE_FULL_SDF): ...this.
2697 (SVE_S): Rename to...
2698 (SVE_FULL_S): ...this.
2699 (SVE_D): Rename to...
2700 (SVE_FULL_D): ...this.
2701 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2702 * config/aarch64/aarch64-sve2.md: Likewise.
2703
2704 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2705
2706 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2707 New option.
2708 * doc/invoke.texi: Document it.
2709 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2710 By default, return VECT_COMPARE_COSTS for SVE.
2711
2712 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2713
2714 * target.h (VECT_COMPARE_COSTS): New constant.
2715 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2716 * doc/tm.texi: Regenerate.
2717 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2718 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2719 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2720 Likewise.
2721 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2722 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2723 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2724 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2725 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2726 (_loop_vec_info::vec_inside_cost): New member variables.
2727 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2728 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2729 (vect_analyze_loop): When autovectorize_vector_modes returns
2730 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2731 vector mode and picking the one with the lowest cost.
2732 (vect_estimate_min_profitable_iters): Record the computed costs
2733 in the loop_vec_info.
2734
2735 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2736
2737 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2738 element type rather than an element mode.
2739 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2740 Use get_vectype_for_scalar_type to query the natural types
2741 for a given element type rather than basing everything on
2742 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2743 query to MAX_FIXED_MODE_SIZE.
2744 (duplicate_and_interleave): Update call accordingly.
2745 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2746
2747 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2748
2749 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2750 optional maximum nunits.
2751 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2752 takes an slp_tree.
2753 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2754 (vect_get_mask_type_for_stmt): Likewise.
2755 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2756 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2757 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2758 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2759 to get an assumed vector type for data references.
2760 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2761 (vect_update_all_shared_vectypes): Likewise.
2762 (vect_build_slp_tree_1): Pass the group size to
2763 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2764 for BB vectorization.
2765 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2766 before building the vectof from scalars.
2767 (vect_analyze_slp_instance): Pass the group size to
2768 get_vectype_for_scalar_type.
2769 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2770 types for BB vectorization here; just handle the case in which
2771 we deferred the choice for booleans.
2772 (vect_get_constant_vectors): Pass the slp_tree to
2773 get_vectype_for_scalar_type.
2774 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2775 (vectorizable_call): Likewise.
2776 (vectorizable_simd_clone_call): Likewise.
2777 (vectorizable_conversion): Likewise.
2778 (vectorizable_shift): Likewise.
2779 (vectorizable_operation): Likewise.
2780 (vectorizable_comparison): Likewise.
2781 (vect_is_simple_cond): Take the slp_tree as argument and
2782 pass it to get_vectype_for_scalar_type.
2783 (vectorizable_condition): Update call accordingly.
2784 (get_vectype_for_scalar_type): Take a group_size argument.
2785 For BB vectorization, limit the the vector to that number
2786 of elements. Also define an overload that takes an slp_tree.
2787 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2788 pass it to get_vectype_for_scalar_type.
2789 (vect_get_vector_types_for_stmt): Add a group_size argument
2790 and pass it to get_vectype_for_scalar_type. Don't use the
2791 cached vector type for BB vectorization if a group size is given.
2792 Handle data references in that case.
2793 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2794 pass it to get_mask_type_for_scalar_type.
2795
2796 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2797
2798 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2799 parameter.
2800 (estimate_edge_time): Use it.
2801 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2802 ret_nonspec_time parameter.
2803
2804 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2805
2806 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2807
2808 2019-11-15 Nick Clifton <nickc@redhat.com>
2809 Szabolcs Nagy <szabolcs.nagy@arm.com>
2810
2811 PR target/65649
2812 * config/microblaze/microblaze.c (print_operand): Print value as long.
2813
2814 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2815
2816 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2817 accidental commit.
2818
2819 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2820
2821 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2822 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2823
2824 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2825
2826 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2827 (gcn_conditional_register_usage): Use constants in place of hard-coded
2828 values.
2829 (gcn_hsa_declare_function_name): Set lower bound for number of
2830 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2831 MAX_NORMAL_VGPR_COUNT.
2832
2833 2019-11-15 Martin Jambor <mjambor@suse.cz>
2834
2835 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2836 declaration.
2837
2838 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2839
2840 * config/gcn/gcn.c (default_requested_args): New.
2841 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2842 set with default_requested_args.
2843 (gcn_conditional_register_usage): Limit register usage of non-kernel
2844 functions. Reassign fixed registers if a non-standard set of args is
2845 requested.
2846 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2847
2848 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2849
2850 PR ipa/92528
2851 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2852 aggregate jump function when inlined-to caller has no edge summary.
2853
2854 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2855
2856 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2857
2858 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2859
2860 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2861 prologue use of v0.
2862 (print_operand_address): Use v1 for zero vector offset.
2863
2864 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2865
2866 PR tree-optimization/92515
2867 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2868 types when converting a vector/scalar shift into a vector/vector one,
2869 using tree_nop_conversion_p instead of useless_type_conversion_p.
2870 Move the conversion code to the transform block.
2871
2872 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2873
2874 * read-rtl-function.c
2875 (function_reader::add_fixup_source_location): Take additional
2876 parameter of a column.
2877 (function_reader::maybe_read_location): Optionally parse column
2878 information and pass to add_fixup_source_location.
2879
2880 2019-11-15 Richard Biener <rguenther@suse.de>
2881
2882 PR tree-optimization/92512
2883 * tree-vect-loop.c (check_reduction_path): Fix operand index
2884 computability check. Add check for second use in COND_EXPRs.
2885
2886 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2887
2888 PR target/92515
2889 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2890 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2891
2892 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2893
2894 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2895 register class for VCC_LO and VCC_HI.
2896 (gcn_spill_class): Use SGPR_REGS to spill registers in
2897 VCC_CONDITIONAL_REG.
2898
2899 2019-11-15 Richard Biener <rguenther@suse.de>
2900
2901 PR tree-optimization/92324
2902 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2903 singedness of SLP reduction epilouge operations. Also reduce
2904 the vector width for SLP reductions before doing elementwise
2905 operations if possible.
2906
2907 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2908
2909 * passes.c (skip_pass): Set epilogue_completed if skipping the
2910 pro_and_epilogue pass.
2911
2912 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2913
2914 * passes.c (should_skip_pass_p): Always run "dfinish".
2915
2916 2019-11-15 Richard Biener <rguenther@suse.de>
2917
2918 * ipa-inline.c (inline_small_functions): Move assignment
2919 to next before call destroying edge.
2920
2921 2019-11-15 Richard Biener <rguenther@suse.de>
2922
2923 PR tree-optimization/92039
2924 PR tree-optimization/91975
2925 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2926 previous change, treat invariants consistently as non-constant.
2927 (tree_estimate_loop_size): Ternary ops with just the first op
2928 constant are not optimized away.
2929
2930 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2931
2932 * gimplify.c (gimplify_call_expr): Don't call
2933 omp_resolve_declare_variant after gimplification.
2934 * omp-general.c (omp_context_selector_matches): For isa that might
2935 match in some other function, defer if in declare simd function.
2936 (omp_context_compute_score): Don't look for " score" in construct
2937 trait set. Set *score to -1 if it can't ever match.
2938 (omp_resolve_declare_variant): If any variants need to be deferred,
2939 don't punt immediately, but compute scores of all variants and if
2940 ther eis a score winner that doesn't need to be deferred, return that.
2941
2942 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2943
2944 * ipa-comdats.c: Fix comments typo.
2945 * ipa-profile.c: Fix comments typo.
2946 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2947 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2948 (gimple_gen_ic_func_profiler): Likewise.
2949 (pass_ipa_tree_profile::gate): Fix comments typo.
2950
2951 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2952
2953 * ipa-inline.c (inline_small_functions): Update iterator of next.
2954
2955 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2956
2957 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2958 register is suitable for the mode.
2959
2960 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2961
2962 * range-op.h (range_operator::fold_range): Return a bool.
2963 * range-op.cc (range_operator::wi_fold): Assert supported type.
2964 (range_operator::fold_range): Assert supported type and return true.
2965 (operator_equal::fold_range): Return true.
2966 (operator_not_equal::fold_range): Same.
2967 (operator_lt::fold_range): Same.
2968 (operator_le::fold_range): Same.
2969 (operator_gt::fold_range): Same.
2970 (operator_ge::fold_range): Same.
2971 (operator_plus::op1_range): Adjust call to fold_range.
2972 (operator_plus::op2_range): Same.
2973 (operator_minus::op1_range): Same.
2974 (operator_minus::op2_range): Same.
2975 (operator_exact_divide::op1_range): Same.
2976 (operator_lshift::fold_range): Return true and adjust fold_range call.
2977 (operator_rshift::fold_range): Same.
2978 (operator_cast::fold_range): Return true.
2979 (operator_logical_and::fold_range): Same.
2980 (operator_logical_or::fold_range): Same.
2981 (operator_logical_not::fold_range): Same.
2982 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2983 (operator_bitwise_not::op1_range): Same.
2984 (operator_cst::fold_range): Return true.
2985 (operator_identity::fold_range): Return true.
2986 (operator_negate::fold_range): Return true and adjust fold_range call.
2987 (operator_addr_expr::fold_range): Return true.
2988 (operator_addr_expr::op1_range): Adjust call to fold_range.
2989 (range_cast): Same.
2990 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2991 (range_fold_unary_symbolics_p): Same.
2992
2993 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2994
2995 PR tree-optimization/92506
2996 * range-op.cc (range_operator::fold_range): Start with range undefined.
2997 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2998 overflow is varying.
2999
3000 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3001
3002 * range-op.cc (*operator*::*range): Remove calls to
3003 range_intersect, range_invert, and range_union in favor of calling
3004 the in-place API methods.
3005 (range_tests): Same.
3006 * range.cc (range_intersect): Remove.
3007 (range_union): Remove.
3008 (range_invert): Remove.
3009 * range.h (range_intersect): Remove.
3010 (range_union): Remove.
3011 (range_intersect): Remove.
3012
3013 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3014
3015 PR rtl-optimization/92430
3016 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3017 (pass_jump_after_combine::execute): Perform jump threading
3018 unconditionally.
3019
3020 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3021 Doug Rupp <rupp@adacore.com>
3022 Olivier Hainque <hainque@adacore.com>
3023
3024 * config.gcc: Collapse the arm-vxworks entries into
3025 a single arm-wrs-vxworks7* one, bpabi based. Update
3026 the default cpu from arm8 to armv7-a
3027 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3028 we always use ARM_UNWIND_INFO.
3029 (DWARF2_UNWIND_INFO): Remove redefinition.
3030 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3031 (VXWORKS_PERSONALITY): Define, to "llvm".
3032 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3033
3034 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3035
3036 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3037 _VX_CPU instead of CPU and handle arm_arch8.
3038
3039 2019-11-14 Doug Rupp <rupp@adacore.com>
3040 Olivier Hainque <hainque@adacore.com>
3041 Jerome Lambourg <lambourg@adacore.com>
3042
3043 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3044 * config/aarch64/aarch64-vxworks.h: New file.
3045 * config/aarch64/t-aarch64-vxworks: New file.
3046
3047 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3048 Olivier Hainque <hainque@adacore.com>
3049
3050 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3051 definition, pointless with a VxWorks specific version
3052 of crtstuff.
3053 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3054 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3055 New local macros, controlling the addition of vxworks specific
3056 crtstuff objects depending on the EH mechanism and kind of
3057 module being linked.
3058 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3059
3060 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3061 Jerome Lambourg <lambourg@adacore.com>
3062 Olivier Hainque <hainque@adacore.com>
3063
3064 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3065 common macro definitions, conveying VXWORKS7 or 64bit general
3066 variations. Add a block to set gcc_cv_initfini_array
3067 unconditionally to "yes" for VxWorks7.
3068 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3069 by default. Update some comments.
3070 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3071 default, to be added the end of VXWORKS_LIBS_RTP.
3072 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3073 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3074 redefine.
3075 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3076 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3077 to account for the now available TLS abilities.
3078 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3079 (VXWORKS_HAVE_TLS): Likewise.
3080
3081 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3082
3083 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3084 (vect_slp_convert_to_external): Likewise.
3085 (vect_slp_analyze_node_operations): If analysis fails, try building
3086 the node from scalars instead.
3087
3088 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3089
3090 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3091 between vector types.
3092 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3093 non-widening and non-narrowing path to handle standard
3094 conversion codes, if the target supports them.
3095 * expr.c (convert_move): Try using the extend and truncate optabs
3096 for vectors.
3097 * optabs-tree.c (supportable_convert_operation): Likewise.
3098 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3099 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3100 (trunc<mode><Vnarrowq>2): New patterns.
3101
3102 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3103
3104 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3105 require vectype and nunits_vectype to have the same size;
3106 instead assert that nunits_vectype has at least as many
3107 elements as vectype. Don't compute a separate nunits_vectype
3108 if the scalar type is obviously the same as vectype's.
3109 Tweak dump messages.
3110
3111 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3112
3113 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3114 function.
3115 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3116 (TARGET_VECTORIZE_RELATED_MODE): Define.
3117
3118 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3119
3120 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3121 (vec_info::used_vector_mode): New member variable.
3122 (vect_chooses_same_modes_p): Declare.
3123 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3124 chosen vector mode in vec_info::used_vector_mode.
3125 (vect_chooses_same_modes_p): New function.
3126 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3127 the same vector statements multiple times.
3128 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3129
3130 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3131
3132 * machmode.h (opt_machine_mode::operator==): New function.
3133 (opt_machine_mode::operator!=): Likewise.
3134 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3135 (get_related_vectype_for_scalar_type): Delete.
3136 (get_vectype_for_scalar_type_and_size): Declare.
3137 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3138 whether analysis passed or failed, and with what vector modes.
3139 Use related_vector_mode to check whether trying a particular
3140 vector mode would be redundant with the autodetected mode,
3141 and print a dump message if we decide to skip it.
3142 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3143 (vect_create_epilog_for_reduction): Use
3144 get_related_vectype_for_scalar_type instead of
3145 get_vectype_for_scalar_type_and_size.
3146 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3147 with...
3148 (get_related_vectype_for_scalar_type): ...this new function.
3149 Take a starting/"prevailing" vector mode rather than a vector size.
3150 Take an optional nunits argument, with the same meaning as for
3151 related_vector_mode. Use related_vector_mode when not
3152 auto-detecting a mode, falling back to mode_for_vector if no
3153 target mode exists.
3154 (get_vectype_for_scalar_type): Update accordingly.
3155 (get_same_sized_vectype): Likewise.
3156 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3157
3158 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3159
3160 * tree-vect-stmts.c (vectorizable_call): Require the types
3161 to have the same size.
3162
3163 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3164
3165 * tree-vect-stmts.c (vectorizable_call): If an operand is
3166 constant or external, use get_vectype_for_scalar_type
3167 rather than get_same_sized_vectype to get its vector type.
3168 (vectorizable_conversion, vectorizable_shift): Likewise.
3169 (vectorizable_operation): Likewise.
3170
3171 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3172
3173 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3174 (vec_info::vector_mode): ...this new field.
3175 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3176 (vect_analyze_loop, vect_transform_loop): Likewise.
3177 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3178 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3179 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3180 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3181 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3182
3183 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3184
3185 * target.h (vector_sizes, auto_vector_sizes): Delete.
3186 (vector_modes, auto_vector_modes): New typedefs.
3187 * target.def (autovectorize_vector_sizes): Replace with...
3188 (autovectorize_vector_modes): ...this new hook.
3189 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3190 Replace with...
3191 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3192 * doc/tm.texi: Regenerate.
3193 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3194 (default_autovectorize_vector_modes): New function.
3195 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3196 (default_autovectorize_vector_modes): New function.
3197 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3198 of autovectorize_vector_sizes. Use the number of units in the mode
3199 to calculate the maximum VF.
3200 * omp-low.c (omp_clause_aligned_alignment): Use
3201 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3202 Use a loop based on related_mode to iterate through all supported
3203 vector modes for a given scalar mode.
3204 * optabs-query.c (can_vec_mask_load_store_p): Use
3205 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3206 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3207 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3208 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3209 Replace with...
3210 (aarch64_autovectorize_vector_modes): ...this new function.
3211 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3212 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3213 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3214 (arc_autovectorize_vector_modes): ...this new function.
3215 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3216 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3217 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3218 (arm_autovectorize_vector_modes): ...this new function.
3219 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3220 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3221 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3222 (ix86_autovectorize_vector_modes): ...this new function.
3223 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3224 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3225 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3226 (mips_autovectorize_vector_modes): ...this new function.
3227 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3228 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3229
3230 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3231
3232 * tree-vect-stmts.c (vectorizable_shift): Check the number
3233 of vector elements as well as the type mode when deciding
3234 whether an op1_vectype is compatible. Reuse the result of
3235 this check when generating vector statements.
3236
3237 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3238
3239 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3240 targetm.vectorize.preferred_simd_mode returns an integer mode,
3241 use mode_for_vector to decide what the vector type's mode
3242 should actually be. Use build_vector_type_for_mode instead
3243 of build_vector_type.
3244
3245 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * target.def (get_mask_mode): Take a vector mode itself as argument,
3248 instead of properties about the vector mode.
3249 * doc/tm.texi: Regenerate.
3250 * targhooks.h (default_get_mask_mode): Update to reflect new
3251 get_mode_mask interface.
3252 * targhooks.c (default_get_mask_mode): Likewise. Use
3253 related_int_vector_mode.
3254 * optabs-query.c (can_vec_mask_load_store_p): Update call
3255 to get_mask_mode.
3256 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3257 first that the original mode really is a vector.
3258 * tree.c (build_truth_vector_type_for): Likewise.
3259 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3260 get_mode_mask interface.
3261 (aarch64_expand_sve_vcond): Update call accordingly.
3262 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3263 get_mode_mask interface.
3264 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3265
3266 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3267
3268 * tree.h (build_truth_vector_type): Delete.
3269 (build_same_sized_truth_vector_type): Likewise.
3270 * tree.c (build_truth_vector_type): Rename to...
3271 (build_truth_vector_type_for): ...this. Make static and take
3272 a vector type as argument.
3273 (truth_type_for): Update accordingly.
3274 (build_same_sized_truth_vector_type): Delete.
3275 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3276 instead of build_same_sized_truth_vector_type.
3277 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3278 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3279 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3280 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3281 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3282 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3283 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3284 (vectorizable_store, vectorizable_condition): Likewise.
3285 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3286 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3287 build_truth_vector_type.
3288 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3289 Use truth_type_for instead of build_same_sized_truth_vector_type.
3290 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3291
3292 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3293
3294 * tree.h (build_truth_vector_type_for_mode): Declare.
3295 * tree.c (build_truth_vector_type_for_mode): New function,
3296 split out from...
3297 (build_truth_vector_type): ...here.
3298 (build_opaque_vector_type): Fix head comment.
3299 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3300 vec_info parameter.
3301 (vect_halve_mask_nunits): Replace vec_info parameter with the
3302 mode of the new vector.
3303 (vect_double_mask_nunits): Likewise.
3304 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3305 (vect_double_mask_nunits): Likewise.
3306 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3307 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3308 to vect_halve_mask_nunits, getting the required mode from the unpack
3309 patterns.
3310 (vect_set_loop_condition_masked): Update call accordingly.
3311 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3312 parameter and update call to vect_double_mask_nunits.
3313 (vectorizable_conversion): Update call accordingly.
3314 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3315 (vectorizable_call): Update call accordingly.
3316 (supportable_widening_operation): Update call to
3317 vect_halve_mask_nunits.
3318 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3319 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3320
3321 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3322
3323 * machmode.h (mode_for_int_vector): Delete.
3324 (related_int_vector_mode): Declare.
3325 * stor-layout.c (mode_for_int_vector): Delete.
3326 (related_int_vector_mode): New function.
3327 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3328 instead of mode_for_int_vector.
3329 (expand_vec_perm_const): Likewise.
3330 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3331 (aarch64_evpc_sve_tbl): Likewise.
3332 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3333 (s390_expand_vcond): Likewise.
3334
3335 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3336
3337 * target.def (related_mode): New hook.
3338 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3339 * doc/tm.texi: Regenerate.
3340 * targhooks.h (default_vectorize_related_mode): Declare.
3341 * targhooks.c (default_vectorize_related_mode): New function.
3342 * machmode.h (related_vector_mode): Declare.
3343 * stor-layout.c (related_vector_mode): New function.
3344 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3345 * optabs-query.c (qimode_for_vec_perm): Likewise.
3346 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3347 (vectorizable_store, vectorizable_load): Likewise
3348
3349 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3350
3351 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3352 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3353 * config/arm/arm-c.c (arm_cpu_builtins): Define
3354 __GCC_ASM_FLAG_OUTPUTS__.
3355 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3356 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3357 Define __GCC_ASM_FLAG_OUTPUTS__.
3358 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3359 * doc/extend.texi (FlagOutputOperands): Add documentation
3360 for ARM and AArch64.
3361
3362 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3363 * config/arm/predicates.md (nz_comparison_operator): Rename
3364 from noov_comparison_operator.
3365 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3366 (arm_gen_dicompare_reg): Likewise.
3367 (maybe_get_arm_condition_code): Likewise.
3368 (thumb1_final_prescan_insn): Likewise.
3369 (arm_emit_coreregs_64bit_shift): Likewise.
3370 * config/arm/arm.md (addsi3_compare0): Likewise.
3371 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3372 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3373 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3374 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3375 (*mulsi3addsi_compare0_scratch): Likewise.
3376 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3377 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3378 (*zeroextractsi_compare0_scratch): Likewise.
3379 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3380 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3381 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3382 (andsi_not_shiftsi_si_scc): Likewise.
3383 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3384 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3385 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3386 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3387 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3388 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3389 (return_addr_mask, *check_arch2): Likewise.
3390 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3391 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3392 (compare_scc splitters): Likewise.
3393 (movcond_addsi): Likewise.
3394 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3395 (*thumb2_addsi3_compare0_scratch): Likewise.
3396 (*thumb2_mulsi_short_compare0): Likewise.
3397 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3398 (compare peephole2s): Likewise.
3399 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3400 nz_comparison_operator names.
3401 (cbranchsi4_insn): Likewise.
3402
3403 * config/arm/constraints.md (c): Use cc_register predicate.
3404
3405 * config/aarch64/constraints.md (c): New constraint.
3406
3407 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3408
3409 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3410 ipa_merge_fn_summary_after_inlining): Micro optimize.
3411
3412 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3413
3414 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3415
3416 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3417
3418 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3419 (ipa_value_range_from_jfunc): New function.
3420 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3421 known_value_ranges parameter; use it to evalulate conditions.
3422 (evaluate_properties_for_edge): Compute known value ranges.
3423 (ipa_fn_summary_t::duplicate): Update use of
3424 evaluate_conditions_for_known_args.
3425 (estimate_ipcp_clone_size_and_time): Likewise.
3426 (ipa_merge_fn_summary_after_inlining): Likewise.
3427 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3428
3429 2019-11-14 Martin Liska <mliska@suse.cz>
3430
3431 * ipa-inline.c (want_inline_small_function_p): Use
3432 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3433 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3434
3435 2019-11-14 Martin Liska <mliska@suse.cz>
3436
3437 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3438 of a callee to get value of the param.
3439 * ipa-inline.c (inline_insns_auto): Use proper
3440 opt_for_fn.
3441 * opts.c (maybe_default_option): Do not overwrite param
3442 value if optimization level does not match. Note that
3443 params usually have default value set via Init() keyword.
3444 * params.opt: Remove -param=max-inline-insns-auto-O2.
3445 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3446 * doc/invoke.texi: Remove documentation of
3447 max-inline-insns-auto-O2.
3448
3449 2019-11-14 Martin Liska <mliska@suse.cz>
3450
3451 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3452 Do not initialize m_other_count.
3453 (switch_conversion::collect): Do not count m_default_count and
3454 m_other_count as we use frequencies for edges.
3455 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3456
3457 2019-11-14 Martin Liska <mliska@suse.cz>
3458
3459 PR other/92329
3460 * doc/invoke.texi: Document -fallocation-dce.
3461
3462 2019-11-14 Martin Liska <mliska@suse.cz>
3463
3464 PR target/92389
3465 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3466 PTA_ICELAKE_CLIENT which is later interited by
3467 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3468
3469 2019-11-14 Martin Liska <mliska@suse.cz>
3470
3471 * ipa-icf.c (sem_item_optimizer::execute): Save
3472 loaded_symbols.
3473 (sem_item_optimizer::parse_nonsingleton_classes):
3474 Return number of loaded symbols.
3475 (sem_item_optimizer::merge_classes): Print
3476 statistics about totally needed symbols.
3477 * ipa-icf.h (parse_nonsingleton_classes): Change return
3478 type.
3479 (merge_classes): Add one argument.
3480
3481 2019-11-14 Martin Liska <mliska@suse.cz>
3482
3483 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3484 func_checker::hash_operand by handling of FIELD_DECLs.
3485
3486 2019-11-14 Martin Liska <mliska@suse.cz>
3487
3488 * ipa-icf-gimple.h (func_checker::func_checker): Add
3489 default constructor.
3490 * ipa-icf.c (sem_function::init): Make operand_equal_p
3491 and hash_operand public.
3492 (sem_item::add_expr): Remove.
3493 (sem_item::add_type): Remove.
3494 (sem_function::hash_stmt): Use m_checker for hashing
3495 of GIMPLE statements.
3496 (sem_function::parse): Init with checker.
3497 (sem_variable::parse): Pass NULL as checker.
3498 (sem_item_optimizer::parse_funcs_and_vars):
3499 Pass checker to ::parse function.
3500 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3501 (sem_variable::parse): New function.
3502 (sem_variable::get_hash): Only return computed hash value.
3503 (sem_variable::init): Initialize hash of a variable.
3504 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3505 to couple of functions as a new argument.
3506
3507 2019-11-14 Martin Liska <mliska@suse.cz>
3508
3509 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3510 bail out reason.
3511 (func_checker::compare_gimple_assign): Likewise.
3512
3513 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3514
3515 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3516 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3517 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3518
3519 * omp-general.c (omp_context_name_list_prop): New function.
3520 (omp_context_selector_matches): Use it. Return 0 if it returns
3521 NULL.
3522 (omp_context_selector_props_compare): Allow equivalency of an
3523 identifier and a string literal containing no embedded zeros.
3524
3525 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3526
3527 * range-op.cc (RANGE3): Remove.
3528 (range_tests): Remove all selftest that check for multi-ranges.
3529 Put tests in namespace selftest.
3530 * selftest.h: Move range_tests into namespace selftest.
3531 * value-range.h (class value_range): Unfriend range_tests.
3532
3533 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3534
3535 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3536 normalize_symbolics and normalize_addresses working in place.
3537 (range_fold_unary_symbolics_p): Same.
3538 (range_fold_unary_symbolics_p): Same.
3539 * value-range.cc (num_pairs): Same.
3540 (lower_bound): Same.
3541 (upper_bound): Same.
3542 (contains_p): Same.
3543 (normalize_addresses): Same.
3544 (normalize_symbolics): Same.
3545 * value-range.h (normalize_symbolics): Same.
3546 (normalize_addresses): Same.
3547
3548 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3549
3550 PR ipa/91682
3551 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3552 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3553 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3554 (ipa_agg_jump_function): Remove member function equal_to.
3555 (ipa_agg_jump_function_p): Remove typedef.
3556 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3557 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3558 information for aggregate jump function.
3559 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3560 record last definition statement.
3561 (load_from_unmodified_param_or_agg): New function.
3562 (ipa_known_agg_contents_list): Add new field type and value, remove
3563 field constant.
3564 (build_agg_jump_func_from_list): Rename parameter const_count to
3565 value_count, build aggregate jump function from ipa_load_agg_data.
3566 (analyze_agg_content_value): New function.
3567 (extract_mem_content): Analyze memory store assignment to prepare
3568 information for aggregate jump function generation.
3569 (determine_known_aggregate_parts): Add new parameter fbi, remove
3570 parameter aa_walk_budeget_p.
3571 (update_jump_functions_after_inlining): Update aggregate jump function.
3572 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3573 (try_make_edge_direct_simple_call): Add new parameter new_root.
3574 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3575 new_root_info.
3576 (update_indirect_edges_after_inlining): Pass new argument to
3577 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3578 (ipa_write_jump_function): Write aggregate jump function to file.
3579 (ipa_read_jump_function): Read aggregate jump function from file.
3580 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3581 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3582 (ipa_agg_value_from_node): Likewise.
3583 (ipa_agg_value_set_from_jfunc): Likewise.
3584 (propagate_vals_across_arith_jfunc): Likewise.
3585 (propagate_aggregate_lattice): Likewise.
3586 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3587 (propagate_vals_across_pass_through): Call
3588 propagate_vals_across_arith_jfunc.
3589 (get_clone_agg_value): Move forward.
3590 (propagate_aggs_across_jump_function): Handle value propagation for
3591 aggregate jump function.
3592 (agg_jmp_p_vec_for_t_vec): Remove.
3593 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3594 with vec<ipa_agg_value>.
3595 (copy_plats_to_inter, intersect_with_plats): Likewise.
3596 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3597 (intersect_aggregate_with_edge): Likewise.
3598 (find_aggregate_values_for_callers_subset): Likewise.
3599 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3600 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3601 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3602 (gather_context_independent_values): Likewise.
3603 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3604 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3605 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3606 (evaluate_properties_for_edge): Likewise.
3607 (estimate_edge_devirt_benefit): Likewise.
3608 (estimate_edge_size_and_time): Likewise.
3609 (estimate_calls_size_and_time): Likewise.
3610 (ipa_call_context::ipa_call_context): Likewise.
3611 (estimate_ipcp_clone_size_and_time): Likewise.
3612 * ipa-fnsummary.h (ipa_call_context): Replace
3613 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3614 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3615 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3616 (do_estimate_edge_size): Likewise.
3617 (do_estimate_edge_hints): Likewise.
3618
3619 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3620
3621 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3622 binary operations.
3623
3624 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3625
3626 * ipa-profile.c (check_argument_count): Check properly that e_info
3627 is non-NULL; do not check descriptors.
3628
3629 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3630
3631 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3632 check for ipa profiles.
3633
3634 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3635
3636 PR c++/92421
3637 * ipa-prop.c (update_indirect_edges_after_inlining):
3638 Mark parameter as used.
3639 * ipa-inline.c (recursive_inlining): Reset node cache
3640 after inlining.
3641 (inline_small_functions): Remove checking ifdef.
3642 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3643 cache consistency.
3644
3645 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3646
3647 PR ipa/92498
3648 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3649 is NULL.
3650 (ipa_profile): Fix reversed test.
3651
3652 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3653
3654 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3655 (propagate_constants_topo): Fix typo.
3656
3657 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3658
3659 * Makefile.in (OBJS): Add value-range.o.
3660 (GTFILES): Add value-range.h.
3661 * gengtype.c (open_base_files): Add value-range.h to list of
3662 header files.
3663 * tree-vrp.c: Move the following value_range related functions:
3664 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3665 constant_p, set_undefined, set_varying, may_contain_p,
3666 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3667 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3668 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3669 value_inside_range, ranges_from_anti_range, union_ranges,
3670 intersect_ranges, intersect_helper, union_helper, union_,
3671 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3672 upper_bound, contains_p, invert, intersect...
3673 * value-range.cc: ...to here.
3674 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3675 associated inline methods from here...
3676 * value-range.h: ...to here.
3677
3678 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3679
3680 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3681 instead of asserting its value.
3682
3683 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3684
3685 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3686 constructors and set methods so value_range_kind is the last
3687 argument and defaults to VR_RANGE.
3688 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3689 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3690 * ipa-prop.c (ipa_get_value_range): Same.
3691 (ipa_compute_jump_functions_for_edge): Same.
3692 * range-op.cc (value_range_from_overflowed_bounds): Same.
3693 (operator_cast::op1_range): Same.
3694 (range_tests): Same.
3695 * range.cc (range_nonzero): Same.
3696 * tree-ssanames.c (get_range_info): Same.
3697 * tree-vrp.c (value_range_equiv::set): Same.
3698 (value_range::value_range): Same.
3699 (value_range_equiv::value_range_equiv): Same.
3700 (value_range_equiv::update): Same.
3701 (value_range_equiv::deep_copy): Same.
3702 (value_range_equiv::move): Same.
3703 (value_range_equiv::set_undefined): Same.
3704 (value_range::set): Same.
3705 (value_range::set_nonzero): Same.
3706 (ranges_from_anti_range): Same.
3707 (extract_range_from_plus_minus_expr): Same.
3708 (value_range::intersect_helper): Same.
3709 (value_range_equiv::intersect): Same.
3710 (value_range::union_helper): Same.
3711 (value_range_equiv::union_): Same.
3712 (value_range::normalize_symbolics): Same.
3713 (value_range::invert): Same.
3714 (determine_value_range_1): Same.
3715 * tree-vrp.h (class value_range): Same.
3716 (class value_range_equiv): Same.
3717 * vr-values.c (set_value_range_to_nonnegative): Same.
3718 (set_value_range_to_truthvalue): Same.
3719 (vr_values::update_value_range): Same.
3720 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3721 (vr_values::extract_range_from_binary_expr): Same.
3722 (vr_values::extract_range_from_comparison): Same.
3723 (vr_values::extract_range_basic): Same.
3724 (vr_values::adjust_range_with_scev): Same.
3725 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3726 (vr_values::extract_range_from_phi_node): Same.
3727
3728 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3729
3730 * tree-dump.c (dequeue_and_dump): Print first tree operand
3731 for VIEW_CONVERT_EXPR.
3732
3733 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3734
3735 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3736 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3737 * real.c (get_max_float): Add norm_max argument.
3738 * real.h (get_max_float): Update prototype.
3739 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3740 get_max_float.
3741
3742 2019-11-13 Martin Liska <mliska@suse.cz>
3743
3744 * dbgcnt.c (test_sorted_dbg_counters): New.
3745 (dbgcnt_c_tests): Likewise.
3746 * selftest-run-tests.c (selftest::run_tests): Likewise.
3747 * selftest.h (dbgcnt_c_tests): Likewise.
3748
3749 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3750 Martin Jambor <mjambor@suse.cz>
3751
3752 PR ipa/92454
3753 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3754 (identify_dead_nodes): Likewise.
3755
3756 2019-11-13 Martin Liska <mliska@suse.cz>
3757
3758 * ipa-icf.c (sem_function::equals_private): Do not overuse
3759 push/pop_cfun functions.
3760
3761 2019-11-13 Martin Liska <mliska@suse.cz>
3762
3763 * common.opt: Document change of -fdbg-cnt option.
3764 * dbgcnt.c (DEBUG_COUNTER): Remove.
3765 (dbg_cnt_is_enabled): Remove.
3766 (dbg_cnt): Work with new intervals.
3767 (dbg_cnt_set_limit_by_index): Set to new
3768 list of intervals.
3769 (dbg_cnt_set_limit_by_name): Likewise.
3770 (dbg_cnt_process_single_pair): Process new format.
3771 (dbg_cnt_process_opt): Likewise.
3772 (dbg_cnt_list_all_counters): Likewise.
3773 * doc/invoke.texi: Document change of -fdbg-cnt option.
3774 (cmp_tuples): New.
3775
3776 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3777
3778 * ipa-inline.c (ipa_inline): Check that function is defined before
3779 flattening.
3780
3781 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3782 Julian Brown <julian@codesourcery.com>
3783
3784 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3785 flag_worker_partitioning is not set.
3786 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3787 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3788
3789 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3790
3791 * config/gcn/gcn-run.c (heap_region): New global variable.
3792 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3793 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3794 (get_kernarg_region): Move contents to ....
3795 (get_memory_region): .... here.
3796 (get_heap_region): New function.
3797 (init_device): Initialize the heap_region.
3798 (device_malloc): Add region parameter.
3799 (struct kernargs): Move heap ....
3800 (heap): ... to global scope.
3801 (main): Allocate heap separate to kernargs.
3802
3803 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3804
3805 * ipa-prop.c (ipa_print_node_jump_functions,
3806 ipa_print_node_params): Print info about missing summaries.
3807
3808 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3809
3810 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3811 the cost of generating loop masks.
3812
3813 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3814
3815 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3816 New function.
3817 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3818 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3819 (vect_transform_loop): Likewise.
3820 (vect_analyze_loop_costing): Don't take the cost of versioning
3821 into account for the static profitability threshold if it turns
3822 out that no versioning is needed.
3823
3824 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3825
3826 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3827 and target_option_default_node to get -fprofile-generate ctors working
3828 right with LTO.
3829
3830 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3831
3832 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3833 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3834 (vectorizable_assignment): Don't add a cost for nop conversions.
3835 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3836 Likewise.
3837 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3838
3839 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3840
3841 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3842 number of ncopies as an additional argument.
3843 (vectorizable_conversion): Update call accordingly. Use "modifier"
3844 to check whether a conversion is between vectors with the same
3845 numbers of units.
3846
3847 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3848
3849 * config/aarch64/aarch64-sve-builtins-functions.h
3850 (unary_count::expand): Use aarch64_sve_int_mode instead of
3851 mode_for_int_vector.
3852
3853 2019-11-13 Martin Liska <mliska@suse.cz>
3854
3855 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3856
3857 2019-11-13 Martin Liska <mliska@suse.cz>
3858
3859 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3860 Remove call to finalize_options_struct.
3861
3862 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3863
3864 PR target/92055
3865 * config/avr/t-avr (avr-mcus): Do not depend on
3866 $(srcdir)/config/avr/t-multilib.
3867
3868 2019-11-13 Richard Biener <rguenther@suse.de>
3869
3870 PR tree-optimization/92473
3871 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3872 direct optab reduction in the correct type.
3873
3874 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3875
3876 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3877 hexadecimal literal.
3878
3879 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3880
3881 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3882 UNORDERED if !HONOR_NANS (DFmode).
3883 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3884 if !HONOR_NANS (<MODE>mode).
3885
3886 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3887
3888 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3889 (ipcp_verify_propagated_values): Likewise.
3890 (propagate_constants_across_call): Likewise.
3891 (propagate_constants_topo): Likewise.
3892 (ipcp_propagate_stage): Likewise.
3893
3894 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3895
3896 PR ipa/92471
3897 * ipa-profile.c (check_argument_count): Break out from ...;
3898 watch for missing summaries.
3899 (ipa_profile): Here.
3900
3901 2019-11-12 Martin Sebor <msebor@redhat.com>
3902
3903 PR tree-optimization/92412
3904 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3905 extern variables.
3906
3907 2019-11-12 Martin Sebor <msebor@redhat.com>
3908
3909 PR middle-end/83688
3910 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3911 (directive::argno): New member.
3912 (format_result::aliases, format_result::alias_count): New data members.
3913 (format_result::append_alias): New member function.
3914 (fmtresult::dst_offset): New data member.
3915 (pass_sprintf_length::call_info::dst_origin): New data member.
3916 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3917 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3918 (get_origin_and_offset): Same.
3919 (format_string): Call it.
3920 (format_directive): Call append_alias and set directive argument
3921 number.
3922 (maybe_warn_overlap): New function.
3923 (pass_sprintf_length::compute_format_length): Call it.
3924 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3925 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3926
3927 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3928
3929 PR rtl-optimization/92430
3930 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3931 dominance info at the beginning.
3932
3933 2019-11-12 Richard Biener <rguenther@suse.de>
3934
3935 PR tree-optimization/92460
3936 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3937 expression before gimplifying.
3938
3939 2019-11-12 Richard Biener <rguenther@suse.de>
3940
3941 PR tree-optimization/92461
3942 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3943 stmt after propagation.
3944
3945 2019-11-12 Martin Liska <mliska@suse.cz>
3946
3947 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3948 Use SET_OPTION_IF_UNSET.
3949 (ix86_option_override_internal): Likewise.
3950 * opts.c (default_options_optimization): Likewise.
3951 (finish_options): Likewise.
3952 (enable_fdo_optimizations): Likewise.
3953 (common_handle_option): Likewise.
3954
3955 2019-11-12 Martin Liska <mliska@suse.cz>
3956
3957 * common/common-target.def: Remove option_validate_param and
3958 option_default_params.
3959 * common/common-targhooks.c (default_option_validate_param):
3960 Remove.
3961 * common/common-targhooks.h (default_option_validate_param):
3962 Remove.
3963 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3964 Remove usage of this.
3965 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3966 (aarch64_option_validate_param): Likewise.
3967 (aarch64_option_default_params): Likewise
3968 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3969 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3970 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3971 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3972 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3973 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3974 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3975 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3976 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3977 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3978 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3979 guard_size here.
3980 * doc/tm.texi: Remove option_default_params and option_validate_param.
3981 * doc/tm.texi.in: Likewise.
3982
3983 2019-11-12 Martin Liska <mliska@suse.cz>
3984
3985 * common/common-target.def:
3986 Do not mention set_default_param_value
3987 and set_param_value.
3988 * doc/tm.texi: Likewise.
3989
3990 2019-11-12 Martin Liska <mliska@suse.cz>
3991
3992 * common.opt: Remove param_values.
3993 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3994 Remove finalize_options_struct.
3995 * gcc.c (driver::decode_argv): Do not call global_init_params
3996 and finish_params.
3997 (driver::finalize): Do not call params_c_finalize
3998 and finalize_options_struct.
3999 * opt-suggestions.c (option_proposer::get_completions): Remove
4000 special casing of params.
4001 (option_proposer::find_param_completions): Remove.
4002 (test_completion_partial_match): Update expected output.
4003 * opt-suggestions.h: Remove find_param_completions.
4004 * opts-common.c (add_misspelling_candidates): Add
4005 --param with a space.
4006 * opts.c (handle_param): Remove.
4007 (init_options_struct):. Remove init_options_struct and
4008 similar calls.
4009 (finalize_options_struct): Remove.
4010 (common_handle_option): Use SET_OPTION_IF_UNSET.
4011 * opts.h (finalize_options_struct): Remove.
4012 * toplev.c (general_init): Do not call global_init_params.
4013 (toplev::finalize): Do not call params_c_finalize and
4014 finalize_options_struct.
4015
4016 2019-11-12 Martin Liska <mliska@suse.cz>
4017
4018 * Makefile.in: Remove PARAMS_H and params.list
4019 and params.options.
4020 * params-enum.h: Remove.
4021 * params-list.h: Remove.
4022 * params-options.h: Remove.
4023 * params.c: Remove.
4024 * params.def: Remove.
4025 * params.h: Remove.
4026 * asan.c: Do not include params.h.
4027 * auto-profile.c: Likewise.
4028 * bb-reorder.c: Likewise.
4029 * builtins.c: Likewise.
4030 * cfgcleanup.c: Likewise.
4031 * cfgexpand.c: Likewise.
4032 * cfgloopanal.c: Likewise.
4033 * cgraph.c: Likewise.
4034 * combine.c: Likewise.
4035 * common/config/aarch64/aarch64-common.c: Likewise.
4036 * common/config/gcn/gcn-common.c: Likewise.
4037 * common/config/ia64/ia64-common.c: Likewise.
4038 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4039 * common/config/rs6000/rs6000-common.c: Likewise.
4040 * common/config/sh/sh-common.c: Likewise.
4041 * config/aarch64/aarch64.c: Likewise.
4042 * config/alpha/alpha.c: Likewise.
4043 * config/arm/arm.c: Likewise.
4044 * config/avr/avr.c: Likewise.
4045 * config/csky/csky.c: Likewise.
4046 * config/i386/i386-builtins.c: Likewise.
4047 * config/i386/i386-expand.c: Likewise.
4048 * config/i386/i386-features.c: Likewise.
4049 * config/i386/i386-options.c: Likewise.
4050 * config/i386/i386.c: Likewise.
4051 * config/ia64/ia64.c: Likewise.
4052 * config/rs6000/rs6000-logue.c: Likewise.
4053 * config/rs6000/rs6000.c: Likewise.
4054 * config/s390/s390.c: Likewise.
4055 * config/sparc/sparc.c: Likewise.
4056 * config/visium/visium.c: Likewise.
4057 * coverage.c: Likewise.
4058 * cprop.c: Likewise.
4059 * cse.c: Likewise.
4060 * cselib.c: Likewise.
4061 * dse.c: Likewise.
4062 * emit-rtl.c: Likewise.
4063 * explow.c: Likewise.
4064 * final.c: Likewise.
4065 * fold-const.c: Likewise.
4066 * gcc.c: Likewise.
4067 * gcse.c: Likewise.
4068 * ggc-common.c: Likewise.
4069 * ggc-page.c: Likewise.
4070 * gimple-loop-interchange.cc: Likewise.
4071 * gimple-loop-jam.c: Likewise.
4072 * gimple-loop-versioning.cc: Likewise.
4073 * gimple-ssa-split-paths.c: Likewise.
4074 * gimple-ssa-sprintf.c: Likewise.
4075 * gimple-ssa-store-merging.c: Likewise.
4076 * gimple-ssa-strength-reduction.c: Likewise.
4077 * gimple-ssa-warn-alloca.c: Likewise.
4078 * gimple-ssa-warn-restrict.c: Likewise.
4079 * graphite-isl-ast-to-gimple.c: Likewise.
4080 * graphite-optimize-isl.c: Likewise.
4081 * graphite-scop-detection.c: Likewise.
4082 * graphite-sese-to-poly.c: Likewise.
4083 * graphite.c: Likewise.
4084 * haifa-sched.c: Likewise.
4085 * hsa-gen.c: Likewise.
4086 * ifcvt.c: Likewise.
4087 * ipa-cp.c: Likewise.
4088 * ipa-fnsummary.c: Likewise.
4089 * ipa-inline-analysis.c: Likewise.
4090 * ipa-inline.c: Likewise.
4091 * ipa-polymorphic-call.c: Likewise.
4092 * ipa-profile.c: Likewise.
4093 * ipa-prop.c: Likewise.
4094 * ipa-split.c: Likewise.
4095 * ipa-sra.c: Likewise.
4096 * ira-build.c: Likewise.
4097 * ira-conflicts.c: Likewise.
4098 * loop-doloop.c: Likewise.
4099 * loop-invariant.c: Likewise.
4100 * loop-unroll.c: Likewise.
4101 * lra-assigns.c: Likewise.
4102 * lra-constraints.c: Likewise.
4103 * modulo-sched.c: Likewise.
4104 * opt-suggestions.c: Likewise.
4105 * opts.c: Likewise.
4106 * postreload-gcse.c: Likewise.
4107 * predict.c: Likewise.
4108 * reload.c: Likewise.
4109 * reorg.c: Likewise.
4110 * resource.c: Likewise.
4111 * sanopt.c: Likewise.
4112 * sched-deps.c: Likewise.
4113 * sched-ebb.c: Likewise.
4114 * sched-rgn.c: Likewise.
4115 * sel-sched-ir.c: Likewise.
4116 * sel-sched.c: Likewise.
4117 * shrink-wrap.c: Likewise.
4118 * stmt.c: Likewise.
4119 * targhooks.c: Likewise.
4120 * toplev.c: Likewise.
4121 * tracer.c: Likewise.
4122 * trans-mem.c: Likewise.
4123 * tree-chrec.c: Likewise.
4124 * tree-data-ref.c: Likewise.
4125 * tree-if-conv.c: Likewise.
4126 * tree-inline.c: Likewise.
4127 * tree-loop-distribution.c: Likewise.
4128 * tree-parloops.c: Likewise.
4129 * tree-predcom.c: Likewise.
4130 * tree-profile.c: Likewise.
4131 * tree-scalar-evolution.c: Likewise.
4132 * tree-sra.c: Likewise.
4133 * tree-ssa-ccp.c: Likewise.
4134 * tree-ssa-dom.c: Likewise.
4135 * tree-ssa-dse.c: Likewise.
4136 * tree-ssa-ifcombine.c: Likewise.
4137 * tree-ssa-loop-ch.c: Likewise.
4138 * tree-ssa-loop-im.c: Likewise.
4139 * tree-ssa-loop-ivcanon.c: Likewise.
4140 * tree-ssa-loop-ivopts.c: Likewise.
4141 * tree-ssa-loop-manip.c: Likewise.
4142 * tree-ssa-loop-niter.c: Likewise.
4143 * tree-ssa-loop-prefetch.c: Likewise.
4144 * tree-ssa-loop-unswitch.c: Likewise.
4145 * tree-ssa-math-opts.c: Likewise.
4146 * tree-ssa-phiopt.c: Likewise.
4147 * tree-ssa-pre.c: Likewise.
4148 * tree-ssa-reassoc.c: Likewise.
4149 * tree-ssa-sccvn.c: Likewise.
4150 * tree-ssa-scopedtables.c: Likewise.
4151 * tree-ssa-sink.c: Likewise.
4152 * tree-ssa-strlen.c: Likewise.
4153 * tree-ssa-structalias.c: Likewise.
4154 * tree-ssa-tail-merge.c: Likewise.
4155 * tree-ssa-threadbackward.c: Likewise.
4156 * tree-ssa-threadedge.c: Likewise.
4157 * tree-ssa-uninit.c: Likewise.
4158 * tree-switch-conversion.c: Likewise.
4159 * tree-vect-data-refs.c: Likewise.
4160 * tree-vect-loop.c: Likewise.
4161 * tree-vect-slp.c: Likewise.
4162 * tree-vrp.c: Likewise.
4163 * tree.c: Likewise.
4164 * value-prof.c: Likewise.
4165 * var-tracking.c: Likewise.
4166
4167 2019-11-12 Martin Liska <mliska@suse.cz>
4168
4169 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4170 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4171 macro.
4172 (asan_sanitize_allocas_p): Likewise.
4173 (asan_emit_stack_protection): Likewise.
4174 (asan_protect_global): Likewise.
4175 (instrument_derefs): Likewise.
4176 (instrument_builtin_call): Likewise.
4177 (asan_expand_mark_ifn): Likewise.
4178 * auto-profile.c (auto_profile): Likewise.
4179 * bb-reorder.c (copy_bb_p): Likewise.
4180 (duplicate_computed_gotos): Likewise.
4181 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4182 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4183 (try_crossjump_bb): Likewise.
4184 * cfgexpand.c (defer_stack_allocation): Likewise.
4185 (stack_protect_classify_type): Likewise.
4186 (pass_expand::execute): Likewise.
4187 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4188 (estimate_reg_pressure_cost): Likewise.
4189 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4190 * combine.c (combine_instructions): Likewise.
4191 (record_value_for_reg): Likewise.
4192 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4193 (aarch64_option_default_params): Likewise.
4194 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4195 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4196 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4197 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4198 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4199 (aarch64_allocate_and_probe_stack_space): Likewise.
4200 (aarch64_expand_epilogue): Likewise.
4201 (aarch64_override_options_internal): Likewise.
4202 * config/alpha/alpha.c (alpha_option_override): Likewise.
4203 * config/arm/arm.c (arm_option_override): Likewise.
4204 (arm_valid_target_attribute_p): Likewise.
4205 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4206 * config/i386/i386.c (get_probe_interval): Likewise.
4207 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4208 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4209 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4210 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4211 (get_stack_clash_protection_guard_size): Likewise.
4212 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4213 * config/s390/s390.c (allocate_stack_space): Likewise.
4214 (s390_emit_prologue): Likewise.
4215 (s390_option_override_internal): Likewise.
4216 * config/sparc/sparc.c (sparc_option_override): Likewise.
4217 * config/visium/visium.c (visium_option_override): Likewise.
4218 * coverage.c (get_coverage_counts): Likewise.
4219 (coverage_compute_profile_id): Likewise.
4220 (coverage_begin_function): Likewise.
4221 (coverage_end_function): Likewise.
4222 * cse.c (cse_find_path): Likewise.
4223 (cse_extended_basic_block): Likewise.
4224 (cse_main): Likewise.
4225 * cselib.c (cselib_invalidate_mem): Likewise.
4226 * dse.c (dse_step1): Likewise.
4227 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4228 (get_max_insn_count): Likewise.
4229 (make_debug_insn_raw): Likewise.
4230 (init_emit): Likewise.
4231 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4232 * final.c (compute_alignments): Likewise.
4233 * fold-const.c (fold_range_test): Likewise.
4234 (fold_truth_andor): Likewise.
4235 (tree_single_nonnegative_warnv_p): Likewise.
4236 (integer_valued_real_single_p): Likewise.
4237 * gcse.c (want_to_gcse_p): Likewise.
4238 (prune_insertions_deletions): Likewise.
4239 (hoist_code): Likewise.
4240 (gcse_or_cprop_is_too_expensive): Likewise.
4241 * ggc-common.c: Likewise.
4242 * ggc-page.c (ggc_collect): Likewise.
4243 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4244 (MAX_DATAREFS): Likewise.
4245 (OUTER_STRIDE_RATIO): Likewise.
4246 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4247 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4248 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4249 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4250 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4251 (imm_store_chain_info::output_merged_store): Likewise.
4252 (pass_store_merging::process_store): Likewise.
4253 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4254 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4255 (scop_to_isl_ast): Likewise.
4256 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4257 (optimize_isl): Likewise.
4258 * graphite-scop-detection.c (build_scops): Likewise.
4259 * haifa-sched.c (set_modulo_params): Likewise.
4260 (rank_for_schedule): Likewise.
4261 (model_add_to_worklist): Likewise.
4262 (model_promote_insn): Likewise.
4263 (model_choose_insn): Likewise.
4264 (queue_to_ready): Likewise.
4265 (autopref_multipass_dfa_lookahead_guard): Likewise.
4266 (schedule_block): Likewise.
4267 (sched_init): Likewise.
4268 * hsa-gen.c (init_prologue): Likewise.
4269 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4270 (cond_move_process_if_block): Likewise.
4271 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4272 (merge_agg_lats_step): Likewise.
4273 (devirtualization_time_bonus): Likewise.
4274 (hint_time_bonus): Likewise.
4275 (incorporate_penalties): Likewise.
4276 (good_cloning_opportunity_p): Likewise.
4277 (ipcp_propagate_stage): Likewise.
4278 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4279 (set_switch_stmt_execution_predicate): Likewise.
4280 (analyze_function_body): Likewise.
4281 (compute_fn_summary): Likewise.
4282 * ipa-inline-analysis.c (estimate_growth): Likewise.
4283 * ipa-inline.c (caller_growth_limits): Likewise.
4284 (inline_insns_single): Likewise.
4285 (inline_insns_auto): Likewise.
4286 (can_inline_edge_by_limits_p): Likewise.
4287 (want_early_inline_function_p): Likewise.
4288 (big_speedup_p): Likewise.
4289 (want_inline_small_function_p): Likewise.
4290 (want_inline_self_recursive_call_p): Likewise.
4291 (edge_badness): Likewise.
4292 (recursive_inlining): Likewise.
4293 (compute_max_insns): Likewise.
4294 (early_inliner): Likewise.
4295 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4296 * ipa-profile.c (ipa_profile): Likewise.
4297 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4298 (ipa_analyze_node): Likewise.
4299 (ipcp_transform_function): Likewise.
4300 * ipa-split.c (consider_split): Likewise.
4301 * ipa-sra.c (allocate_access): Likewise.
4302 (process_scan_results): Likewise.
4303 (ipa_sra_summarize_function): Likewise.
4304 (pull_accesses_from_callee): Likewise.
4305 * ira-build.c (loop_compare_func): Likewise.
4306 (mark_loops_for_removal): Likewise.
4307 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4308 * loop-doloop.c (doloop_optimize): Likewise.
4309 * loop-invariant.c (gain_for_invariant): Likewise.
4310 (move_loop_invariants): Likewise.
4311 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4312 (decide_unroll_runtime_iterations): Likewise.
4313 (decide_unroll_stupid): Likewise.
4314 (expand_var_during_unrolling): Likewise.
4315 * lra-assigns.c (spill_for): Likewise.
4316 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4317 * modulo-sched.c (sms_schedule): Likewise.
4318 (DFA_HISTORY): Likewise.
4319 * opts.c (default_options_optimization): Likewise.
4320 (finish_options): Likewise.
4321 (common_handle_option): Likewise.
4322 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4323 (if): Likewise.
4324 * predict.c (get_hot_bb_threshold): Likewise.
4325 (maybe_hot_count_p): Likewise.
4326 (probably_never_executed): Likewise.
4327 (predictable_edge_p): Likewise.
4328 (predict_loops): Likewise.
4329 (expr_expected_value_1): Likewise.
4330 (tree_predict_by_opcode): Likewise.
4331 (handle_missing_profiles): Likewise.
4332 * reload.c (find_equiv_reg): Likewise.
4333 * reorg.c (redundant_insn): Likewise.
4334 * resource.c (mark_target_live_regs): Likewise.
4335 (incr_ticks_for_insn): Likewise.
4336 * sanopt.c (pass_sanopt::execute): Likewise.
4337 * sched-deps.c (sched_analyze_1): Likewise.
4338 (sched_analyze_2): Likewise.
4339 (sched_analyze_insn): Likewise.
4340 (deps_analyze_insn): Likewise.
4341 * sched-ebb.c (schedule_ebbs): Likewise.
4342 * sched-rgn.c (find_single_block_region): Likewise.
4343 (too_large): Likewise.
4344 (haifa_find_rgns): Likewise.
4345 (extend_rgns): Likewise.
4346 (new_ready): Likewise.
4347 (schedule_region): Likewise.
4348 (sched_rgn_init): Likewise.
4349 * sel-sched-ir.c (make_region_from_loop): Likewise.
4350 * sel-sched-ir.h (MAX_WS): Likewise.
4351 * sel-sched.c (process_pipelined_exprs): Likewise.
4352 (sel_setup_region_sched_flags): Likewise.
4353 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4354 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4355 * toplev.c (print_version): Likewise.
4356 (process_options): Likewise.
4357 * tracer.c (tail_duplicate): Likewise.
4358 * trans-mem.c (tm_log_add): Likewise.
4359 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4360 * tree-data-ref.c (split_constant_offset): Likewise.
4361 (compute_all_dependences): Likewise.
4362 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4363 * tree-inline.c (remap_gimple_stmt): Likewise.
4364 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4365 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4366 (create_parallel_loop): Likewise.
4367 * tree-predcom.c (determine_unroll_factor): Likewise.
4368 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4369 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4370 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4371 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4372 (dse_optimize_redundant_stores): Likewise.
4373 (dse_classify_store): Likewise.
4374 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4375 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4376 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4377 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4378 (try_peel_loop): Likewise.
4379 (tree_unroll_loops_completely): Likewise.
4380 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4381 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4382 (MAX_CONSIDERED_GROUPS): Likewise.
4383 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4384 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4385 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4386 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4387 (L1_CACHE_SIZE_BYTES): Likewise.
4388 (L2_CACHE_SIZE_BYTES): Likewise.
4389 (should_issue_prefetch_p): Likewise.
4390 (schedule_prefetches): Likewise.
4391 (determine_unroll_factor): Likewise.
4392 (volume_of_references): Likewise.
4393 (add_subscript_strides): Likewise.
4394 (self_reuse_distance): Likewise.
4395 (mem_ref_count_reasonable_p): Likewise.
4396 (insn_to_prefetch_ratio_too_small_p): Likewise.
4397 (loop_prefetch_arrays): Likewise.
4398 (tree_ssa_prefetch_arrays): Likewise.
4399 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4400 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4401 (convert_mult_to_fma): Likewise.
4402 (math_opts_dom_walker::after_dom_children): Likewise.
4403 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4404 (hoist_adjacent_loads): Likewise.
4405 (gate_hoist_loads): Likewise.
4406 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4407 (compute_partial_antic_aux): Likewise.
4408 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4409 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4410 (vn_reference_lookup): Likewise.
4411 (do_rpo_vn): Likewise.
4412 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4413 * tree-ssa-sink.c (select_best_block): Likewise.
4414 * tree-ssa-strlen.c (new_stridx): Likewise.
4415 (new_addr_stridx): Likewise.
4416 (get_range_strlen_dynamic): Likewise.
4417 (class ssa_name_limit_t): Likewise.
4418 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4419 (create_variable_info_for_1): Likewise.
4420 (init_alias_vars): Likewise.
4421 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4422 (tail_merge_optimize): Likewise.
4423 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4424 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4425 (thread_jumps::find_jump_threads_backwards): Likewise.
4426 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4427 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4428 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4429 (jump_table_cluster::can_be_handled): Likewise.
4430 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4431 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4432 (param_switch_conversion_branch_ratio): Likewise.
4433 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4434 (vect_enhance_data_refs_alignment): Likewise.
4435 (vect_prune_runtime_alias_test_list): Likewise.
4436 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4437 (vect_get_datarefs_in_loop): Likewise.
4438 (vect_analyze_loop): Likewise.
4439 * tree-vect-slp.c (vect_slp_bb): Likewise.
4440 * tree-vectorizer.h: Likewise.
4441 * tree-vrp.c (find_switch_asserts): Likewise.
4442 (vrp_prop::check_mem_ref): Likewise.
4443 * tree.c (wide_int_to_tree_1): Likewise.
4444 (cache_integer_cst): Likewise.
4445 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4446 (reverse_op): Likewise.
4447 (vt_find_locations): Likewise.
4448
4449 2019-11-12 Martin Liska <mliska@suse.cz>
4450
4451 * Makefile.in: Include params.opt.
4452 * flag-types.h (enum parloops_schedule_type): Add
4453 parloops_schedule_type used in params.opt.
4454 * params.opt: New file.
4455
4456 2019-11-12 Martin Liska <mliska@suse.cz>
4457
4458 * common.opt: Remove --param and --param= options.
4459 * opt-functions.awk: Mark CL_PARAMS for options
4460 that have Param keyword.
4461 * opts-common.c (decode_cmdline_options_to_array):
4462 Replace --param key=value with --param=key=value.
4463 * opts.c (print_filtered_help): Remove special
4464 printing of params.
4465 (print_specific_help): Update title for params.
4466 (common_handle_option): Do not handle OPT__param.
4467 opts.h (SET_OPTION_IF_UNSET): New macro.
4468 * doc/options.texi: Document Param keyword.
4469
4470 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4471 Frederik Harwath <frederik@codesourcery.com>
4472 Thomas Schwinge <thomas@codesourcery.com>
4473
4474 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4475 enumeration constant.
4476 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4477 (is_gimple_omp_offloaded): Likewise.
4478 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4479 constant. Adjust the value of ORT_NONE accordingly.
4480 (is_gimple_stmt): Handle OACC_SERIAL.
4481 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4482 (gomp_needs_data_present): Likewise.
4483 (gimplify_adjust_omp_clauses): Likewise.
4484 (gimplify_omp_workshare): Handle OACC_SERIAL.
4485 (gimplify_expr): Likewise.
4486 * omp-expand.c (expand_omp_target):
4487 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4488 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4489 * omp-low.c (is_oacc_parallel): Rename function to...
4490 (is_oacc_parallel_or_serial): ... this.
4491 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4492 (scan_sharing_clauses): Adjust accordingly.
4493 (scan_omp_for): Likewise.
4494 (lower_oacc_head_mark): Likewise.
4495 (convert_from_firstprivate_int): Likewise.
4496 (lower_omp_target): Likewise.
4497 (check_omp_nesting_restrictions): Handle
4498 GF_OMP_TARGET_KIND_OACC_SERIAL.
4499 (lower_oacc_reductions): Likewise.
4500 (lower_omp_target): Likewise.
4501 * tree.def (OACC_SERIAL): New tree code.
4502 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4503
4504 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4505
4506 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4507
4508 PR target/92449
4509 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4510 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4511
4512 PR tree-optimization/92452
4513 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4514 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4515 MINUS_EXPR on it.
4516
4517 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4518
4519 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4520 safelen with 0.
4521
4522 2019-11-12 Alan Modra <amodra@gmail.com>
4523
4524 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4525 element of unspec vec.
4526 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4527 PC-relative TLS.
4528 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4529 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4530 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4531 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4532
4533 2019-11-12 Alan Modra <amodra@gmail.com>
4534
4535 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4536 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4537 (IS_NOMARK_TLSGETADDR): Likewise.
4538 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4539 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4540 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4541 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4542 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4543 (rs6000_indirect_call_template_1): Likewise.
4544 (rs6000_pltseq_template): Likewise.
4545 (rs6000_opt_vars): Remove "tls-markers" entry.
4546 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4547 with TARGET_ELF.
4548 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4549 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4550 (pltseq_plt_pcrel<mode>): Likewise.
4551 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4552 (call_value_local64): Likewise.
4553 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4554 output and length attribute sub-expression.
4555 (call_value_nonlocal_sysv<mode>),
4556 (call_value_nonlocal_sysv_secure<mode>),
4557 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4558 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4559 (call_value_indirect_pcrel<mode>): Likewise.
4560 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4561 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4562 * configure: Regenerate.
4563 * config.in: Regenerate.
4564
4565 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4566
4567 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4568 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4569 address being a prefixed load/store.
4570 (stack_protect_testdi): Deal with either address being a prefixed
4571 load.
4572
4573 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4574
4575 PR bootstrap/92433
4576 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4577 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4578 std::swap.
4579
4580 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4581
4582 PR tree-optimization/92420
4583 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4584 up file.
4585 (get_group_load_store_type): Use it for reversed SLP accesses.
4586
4587 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4588
4589 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4590 summary.
4591 (ipcp_transformation_t::duplicate): Break out from ...
4592 (ipa_node_params_t::duplicate): ... here; add copying of agg
4593 replacements.
4594 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4595 (ipcp_transformation_t): Add duplicate.
4596
4597 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4598
4599 PR fortran/91828
4600 * doc/install.texi: Document that the minimum MPFR version is
4601 3.1.0.
4602
4603 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4604
4605 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4606 use new register constraint letters.
4607
4608 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4609
4610 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4611 as well, if interesting recover the symbol and re-legitimize the
4612 pic address.
4613
4614 2019-11-11 Martin Liska <mliska@suse.cz>
4615
4616 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4617 alphabetically.
4618
4619 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4620
4621 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4622 account when checking if there are enough iterations to vectorize
4623 epilogue.
4624
4625 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4626 Kwok Cheung Yeung <kcy@codesourcery.com>
4627
4628 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4629 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4630 (LANG_HOOKS_DECLS): Rename also here.
4631 * langhooks.h (lang_hooks_for_decls): Rename
4632 omp_is_optional_argument to omp_check_optional_argument; take
4633 additional bool argument.
4634 * omp-general.h (omp_check_optional_argument): Likewise.
4635 * omp-general.h (omp_check_optional_argument): Likewise.
4636 * omp-low.c (lower_omp_target): Update calls; handle absent
4637 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4638
4639 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4640
4641 PR target/87833
4642 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4643 -fPIC and -shared the last to create offload image.
4644
4645 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4646
4647 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4648 of 'offset'.
4649
4650 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4651 (config.status): Use/depend on it.
4652 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4653 * configure: Regenerate.
4654
4655 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4656
4657 PR tree-optimization/88760
4658 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4659 * common/config/rs6000/rs6000-common.c
4660 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4661 Turn on -funroll-loops and -munroll-only-small-loops.
4662 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4663 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4664 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4665 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4666 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4667 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4668
4669 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4670
4671 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4672 Make scalar_load, vector_load, unaligned_load and
4673 vector_gather_load cost more to conform hardware latency and
4674 insn cost settings.
4675
4676 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4677
4678 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4679 (MACHO_SYMBOL_LINKER_VIS_P): New.
4680
4681 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4682
4683 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4684 registers in eliminable_regset.
4685
4686 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4687
4688 * ipa-inline.c (compute_uninlined_call_time,
4689 compute_inlined_call_time): Take edge frequency as
4690 parameter rather than computing it by itself.
4691 (big_speedup_p, edge_badness): Manually CSE sreal
4692 frequency calculations.
4693
4694 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4695
4696 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4697 case where profiles are same.
4698
4699 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4700
4701 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4702
4703 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4704
4705 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4706 args summaries of inlined edge unless it holds info about
4707 described reference.
4708
4709 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4710
4711 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4712 (*movcc_internal1): Rename to...
4713 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4714
4715 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4716
4717 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4718 (cgraph_node::create_virtual_clone): Copy it.
4719 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4720 summaries.
4721 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4722 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4723 is disabled.
4724 (propagate_constants_across_call): If callee is not analyzed, give up.
4725 (propagate_constants_topo): Lower to bottom latties of all callees of
4726 functions with ipa-cp disabled.
4727 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4728 (cgraph_edge_brings_value_p): Check for availability first.
4729 (create_specialized_node): Set ipcp_clone.
4730 (ipcp_store_bits_results): Check that info is present.
4731 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4732 thunks.
4733 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4734 conservative when callee summary is missing.
4735 (remap_edge_summaries): Lookup call summary only when needed.
4736 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4737 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4738 Use get_create.
4739 (ipa_analyze_node): Use get_create.
4740 (propagate_controlled_uses): Do not propagate when function is not
4741 analyzed.
4742 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4743 (ipa_read_node_info): Use get_create.
4744 * ipa-prop.h (IPA_NODE_REF): Use get.
4745 (IPA_NODE_REF_GET_CREATE): New.
4746
4747 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4748
4749 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4750 on function symbol.
4751
4752 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4753
4754 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4755 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4756 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4757 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4758
4759 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4760
4761 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4762 capping the growth cumulated.
4763 (offline_size): Break out from ...
4764 (estimate_growth): ... here.
4765 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4766 parameters.
4767 (growth_likely_positive): Turn to ...
4768 (growth_positive_p): Re-implement.
4769 * ipa-inline.h (growth_likely_positive): Remove.
4770 (growth_positive_p): Declare.
4771 * ipa-inline.c (want_inline_small_function_p): Use
4772 growth_positive_p.
4773 (want_inline_function_to_all_callers_p): Likewise.
4774
4775 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4776
4777 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4778 calculation of min_size.
4779 (ipa_update_overall_fn_summary): Likewise.
4780
4781 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4782
4783 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4784 estimate_edge_devirt_benefit when not computing hints;
4785 do not compute time when not asked for.
4786 (estimate_calls_size_and_time): Pass NULL hints and time when
4787 these are not computed; do not evaluate hint predicates when these are
4788 not computed.
4789 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4790 frequency.
4791
4792 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4793
4794 PR tree-optimization/92401
4795 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4796 if res_op->code is an expression with code length 1.
4797 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4798 if res_op->code is an expression with code length 2.
4799 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4800 if res_op->code is an expression with code length 3.
4801
4802 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4803
4804 * config/darwin.c (machopic_mcount_stub_name): Validate the
4805 symbol stub name when it is created.
4806 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4807 stub validation.
4808
4809 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4810
4811 * symtab.c: Fix comment typos.
4812 * cgraphunit.c: Likewise.
4813 * cgraph.h: Likewise.
4814 * cgraphclones.c: Likewise.
4815 * cgraph.c: Likewise.
4816 * varpool.c: Likewise.
4817 * tree-ssa-strlen.c: Likewise.
4818 * ipa-sra.c: Likewise.
4819 (scan_expr_access, check_all_callers_for_issues): Fix typo
4820 in a dump message.
4821
4822 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4823
4824 * config/darwin-protos.h: Add include quard.
4825
4826 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4827
4828 * range-op.h (range_operator::fold_range): Return result in a
4829 reference parameter instead of by value.
4830 (range_operator::wi_fold): Same.
4831 * range-op.cc (range_operator::wi_fold): Return result in a reference
4832 parameter instead of by value.
4833 (range_operator::fold_range): Same.
4834 (value_range_from_overflowed_bounds): Same.
4835 (value_range_with_overflow): Same
4836 (create_possibly_reversed_range): Same.
4837 (operator_equal::fold_range): Same.
4838 (operator_not_equal::fold_range): Same.
4839 (operator_lt::fold_range): Same.
4840 (operator_le::fold_range): Same.
4841 (operator_gt::fold_range): Same.
4842 (operator_ge::fold_range): Same.
4843 (operator_plus::wi_fold): Same.
4844 (operator_plus::op1_range): Change call to fold_range.
4845 (operator_plus::op2_range): Change call to fold_range.
4846 (operator_minus::wi_fold): Return result via reference parameter.
4847 (operator_minus::op1_range): Change call to fold_range.
4848 (operator_minus::op2_range): Change call to fold_range.
4849 (operator_min::wi_fold): Return result via reference parameter.
4850 (operator_max::wi_fold): Same.
4851 (cross_product_operator::wi_cross_product): Same.
4852 (operator_mult::wi_fold): Same.
4853 (operator_div::wi_fold): Same.
4854 (operator_div op_floor_div): Fix whitespace.
4855 (operator_exact_divide::op1_range): Change call to fold_range.
4856 (operator_lshift::fold_range): Return result via reference parameter.
4857 (operator_lshift::wi_fold): Same.
4858 (operator_rshift::fold_range): Same.
4859 (operator_rshift::wi_fold): Same.
4860 (operator_cast::fold_range): Same.
4861 (operator_cast::op1_range): Change calls to fold_range.
4862 (operator_logical_and::fold_range): Return result via reference.
4863 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4864 (operator_bitwise_and::wi_fold): Return result via reference.
4865 (operator_logical_or::fold_range): Same.
4866 (operator_bitwise_or::wi_fold): Same.
4867 (operator_bitwise_xor::wi_fold): Same.
4868 (operator_trunc_mod::wi_fold): Same.
4869 (operator_logical_not::fold_range): Same.
4870 (operator_bitwise_not::fold_range): Same.
4871 (operator_bitwise_not::op1_range): Change call to fold_range.
4872 (operator_cst::fold_range): Return result via reference.
4873 (operator_identity::fold_range): Same.
4874 (operator_abs::wi_fold): Same.
4875 (operator_absu::wi_fold): Same.
4876 (operator_negate::fold_range): Same.
4877 (operator_negate::op1_range): Change call to fold_range.
4878 (operator_addr_expr::fold_range): Return result via reference.
4879 (operator_addr_expr::op1_range): Change call to fold_range.
4880 (operator_pointer_plus::wi_fold): Return result via reference.
4881 (operator_pointer_min_max::wi_fold): Same.
4882 (operator_pointer_and::wi_fold): Same.
4883 (operator_pointer_or::wi_fold): Same.
4884 (range_op_handler): Change call to fold_range.
4885 (range_cast): Same.
4886 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4887 fold_range.
4888 (range_fold_unary_symbolics_p): Same.
4889 (range_fold_binary_expr): Same.
4890 (range_fold_unary_expr): Same.
4891
4892 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4893
4894 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4895 vector type as an argument rather than reading it from the
4896 stmt_vec_info.
4897 (vect_create_epilog_for_reduction): Update accordingly.
4898 (vectorizable_reduction): Likewise.
4899 (vect_transform_cycle_phi): Likewise.
4900
4901 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4902
4903 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4904 the comparison codes that make sense for the mode used, and only the
4905 codes that can be done with a single branch instruction.
4906
4907 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4908
4909 PR tree-optimization/92351
4910 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4911 peeling the main loop for alignment, make sure to set the misalignment
4912 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4913
4914 2019-11-08 Richard Biener <rguenther@suse.de>
4915
4916 * dbgcnt.def (ivopts_loop): Add.
4917 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4918 ivopts_loop before optimizing a loop.
4919
4920 2019-11-08 Richard Biener <rguenther@suse.de>
4921
4922 PR ipa/92409
4923 * tree-inline.c (declare_return_variable): Properly handle
4924 type mismatches for the return slot.
4925
4926 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4927
4928 PR target/92095
4929 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4930 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4931 change.
4932 (got_helper_needed): New static variable.
4933 (output_load_pcrel_sym): New function.
4934 (get_pc_thunk_name): Remove after inlining...
4935 (load_got_register): ...here. Rework the initialization of the GOT
4936 register and of the GOT helper.
4937 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4938 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4939 helper must be emitted. Use output_asm_insn instead of fprintf.
4940 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4941 if optimization is enabled.
4942 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4943 by calling output_load_pcrel_sym.
4944
4945 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4946
4947 * tree-sra.c (create_access): Delay disqualifying the base
4948 for poly_int values until we know we have a base.
4949
4950 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4951
4952 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4953 for loops with SIMDUID set. Enable epilogue vectorization for loops
4954 with SIMDLEN set after finding a main loop with a VF that matches it.
4955
4956 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4957
4958 PR target/92038
4959 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4960 value only, return non-NULL if there is a single non-clobber
4961 constituent store even if there are constituent clobbers and return
4962 one of clobber constituent stores if all constituent stores are
4963 clobbers.
4964 (split_group): Handle clobbers.
4965 (imm_store_chain_info::output_merged_store): When computing
4966 bzero_first, look after all clobbers at the start. Don't count
4967 clobber stmts in orig_num_stmts, except if the first orig store is
4968 a clobber covering the whole area and split_stores cover the whole
4969 area, consider equal number of stmts ok. Punt if split_stores
4970 contains only ->orig stores and their number plus number of original
4971 clobbers is equal to original number of stmts. For ->orig, look past
4972 clobbers in the constituent stores.
4973 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4974 stmts.
4975 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4976 rhs.
4977 (store_valid_for_store_merging_p): Allow clobber stmts.
4978 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4979
4980 PR c++/92384
4981 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4982 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4983 slot.
4984 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4985 force creation of a unique data.stack_parm slot.
4986
4987 2019-11-08 Richard Biener <rguenther@suse.de>
4988
4989 * genmatch.c (expr::gen_transform): Use the resimplify
4990 member function instead of hard-coding the gimple_resimplifyN variant.
4991 (dt_simplify::gen_1): Likewise.
4992
4993 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4994
4995 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4996 POLY_INT_CST.
4997
4998 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4999
5000 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5001 instead of INTEGER_CST.
5002
5003 2019-11-08 Richard Biener <rguenther@suse.de>
5004
5005 PR tree-optimization/92324
5006 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5007 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5008 sign-conversions as necessary.
5009 (vectorizable_reduction): Reject conversions in the chain
5010 that are not sign-conversions, base analysis on a non-converting
5011 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5012 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5013 for debug stmts.
5014 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5015 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5016
5017 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5018
5019 PR target/92055
5020 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5021 Fix a missing '-' when displaying these options in the
5022 help screen.
5023
5024 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5025
5026 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5027
5028 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5029
5030 * config/aarch64/aarch64-builtins.c
5031 (aarch64_builtin_vectorized_function): Remove bswap handling.
5032
5033 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5034
5035 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5036 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5037 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5038 Treat the vector types as indivisible.
5039
5040 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5041
5042 * optabs.def (gather_load_optab, mask_gather_load_optab)
5043 (scatter_store_optab, mask_scatter_store_optab): Turn into
5044 conversion optabs, with the offset mode given explicitly.
5045 * doc/md.texi: Update accordingly.
5046 * config/aarch64/aarch64-sve-builtins-base.cc
5047 (svld1_gather_impl::expand): Likewise.
5048 (svst1_scatter_impl::expand): Likewise.
5049 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5050 (expand_scatter_store_optab_fn): Likewise.
5051 (direct_gather_load_optab_supported_p): Likewise.
5052 (direct_scatter_store_optab_supported_p): Likewise.
5053 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5054 to be argument 4.
5055 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5056 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5057 argument with the offset vector type. Require the two vector
5058 types to have the same number of elements but allow their element
5059 sizes to be different. Treat the optabs as conversion optabs.
5060 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5061 prototype accordingly.
5062 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5063 (supports_vec_convert_optab_p): ...this new function.
5064 (supports_vec_gather_load_p): Update accordingly.
5065 (supports_vec_scatter_store_p): Likewise.
5066 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5067 Replace the offset sign and bits parameters with a scalar type tree.
5068 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5069 Pass back the offset vector type instead of the scalar element type.
5070 Allow the offset to be wider than the memory elements. Search for
5071 an offset type that the target supports, stopping once we've
5072 reached the maximum of the element size and pointer size.
5073 Update call to internal_gather_scatter_fn_supported_p.
5074 (vect_check_gather_scatter): Update calls accordingly.
5075 When testing a new scale before knowing the final offset type,
5076 check whether the scale is supported for any signed or unsigned
5077 offset type. Check whether the target supports the source and
5078 target types of a conversion before deciding whether to look
5079 through the conversion. Record the chosen offset_vectype.
5080 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5081 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5082 directly from the gs_info's offset_vectype instead. Pass a zero
5083 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5084 * tree-vect-stmts.c (check_load_store_masking): Update call to
5085 internal_gather_scatter_fn_supported_p, passing the offset vector
5086 type recorded in the gs_info.
5087 (vect_truncate_gather_scatter_offset): Update call to
5088 vect_check_gather_scatter, leaving it to search for a valid
5089 offset vector type.
5090 (vect_use_strided_gather_scatters_p): Convert the offset to the
5091 element type of the gs_info's offset_vectype.
5092 (vect_get_gather_scatter_ops): Get the offset vector type directly
5093 from the gs_info.
5094 (vect_get_strided_load_store_ops): Likewise.
5095 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5096 and IFN_MASK_GATHER_LOAD.
5097 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5098 (gather_load<mode><v_int_equiv>): ...this.
5099 (mask_gather_load<mode>): Rename to...
5100 (mask_gather_load<mode><v_int_equiv>): ...this.
5101 (scatter_store<mode>): Rename to...
5102 (scatter_store<mode><v_int_equiv>): ...this.
5103 (mask_scatter_store<mode>): Rename to...
5104 (mask_scatter_store<mode><v_int_equiv>): ...this.
5105
5106 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5107
5108 PR target/92132
5109 * config/rs6000/predicates.md
5110 (signed_or_equality_comparison_operator): New predicate.
5111 (unsigned_or_equality_comparison_operator): Likewise.
5112 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5113 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5114 * config/rs6000/vector.md
5115 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5116 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5117 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5118 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5119 vector modes and same-size integer vector modes.
5120 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5121 (vector_lt<mode> for VEC_F): New expand.
5122 (vector_le<mode> for VEC_F): Likewise.
5123 (vector_ne<mode> for VEC_F): Likewise.
5124 (vector_unge<mode> for VEC_F): Likewise.
5125 (vector_ungt<mode> for VEC_F): Likewise.
5126 (vector_unle<mode> for VEC_F): Likewise.
5127 (vector_unlt<mode> for VEC_F): Likewise.
5128 (vector_uneq<mode>): Expose name.
5129 (vector_ltgt<mode>): Likewise.
5130 (vector_unordered<mode>): Likewise.
5131 (vector_ordered<mode>): Likewise.
5132
5133 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5134
5135 PR target/92295
5136 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5137 Enhance ix86_expand_vector_init_concat.
5138
5139 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5140
5141 * doc/invoke.texi (-Wold-style-definition): Document () not being
5142 considered an old-style definition for C2x.
5143
5144 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5145
5146 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5147 Enhance comment.
5148 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5149 insn patterns using ldcw instruction.
5150 (memory_barrier): Remove insn pattern using sync instruction.
5151 * config/pa/pa.opt (coherent-ldcw): New option.
5152 (ordered): New option.
5153
5154 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5155
5156 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5157 valid conditions.
5158
5159 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5160
5161 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5162 typo - mistmatch -> mismatch.
5163 * ipa-profile.c (ipa_profile): Likewise.
5164 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5165 - mistmatch -> mismatch.
5166
5167 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5168
5169 * simplify-rtx.c (comparison_to_mask): New function.
5170 (mask_to_comparison): New function.
5171 (simplify_logical_relational_operation): New function.
5172 (simplify_binary_operation_1): Call
5173 simplify_logical_relational_operation.
5174
5175 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5176
5177 PR other/92090
5178 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5179 modes for integer constants.
5180
5181 2019-11-07 Jan Hubicka <jh@suse.cz>
5182
5183 PR ipa/92406
5184 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5185 summary.
5186
5187 2019-11-07 Jan Hubicka <jh@suse.cz>
5188
5189 * optc-save-gen.awk: Generate cl_target_option_free
5190 and cl_optimization_option_free.
5191 * opth-en.awk: Declare cl_target_option_free
5192 and cl_optimization_option_free.
5193 * tree.c (free_node): Use it.
5194
5195 2019-11-06 Jan Hubicka <jh@suse.cz>
5196
5197 * lto-streamer-in.c: Include alloc-pool.h.
5198 (freeing_string_slot_hasher): Remove.
5199 (string_slot_allocator): New object allocator.
5200 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5201 (file_name_obstack): New obstack.
5202 (canon_file_name): Allocate in obstack and allocator.
5203 (lto_reader_init): Initialize obstack and allocator.
5204 (lto_free_file_name_hash): New function.
5205 * lto-streamer.h (lto_free_file_name_hash): New.
5206
5207 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5208
5209 PR tree-optimization/89134
5210 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5211 * params.def: Add min-loop-cond-split-prob.
5212 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5213 outside checks on loop into the function.
5214 (split_info): New class.
5215 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5216 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5217 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5218 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5219 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5220 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5221 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5222 (split_loop_on_cond): Likewise.
5223 (tree_ssa_split_loops): Add loop split on conditional statement.
5224
5225 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5226
5227 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5228 pattern.
5229
5230 2019-11-07 Richard Biener <rguenther@suse.de>
5231
5232 PR tree-optimization/92405
5233 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5234 restrict lane-reducing ops to single stmt chains.
5235
5236 2019-11-07 Martin Jambor <mjambor@suse.cz>
5237
5238 PR lto/70929
5239 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5240 * cgraph.h (gimple_check_call_matching_types): Remove
5241 * cgraph.c (gimple_check_call_args): Likewise.
5242 (gimple_check_call_matching_types): Likewise.
5243 (symbol_table::create_edge): Do not call
5244 gimple_check_call_matching_types.
5245 (cgraph_edge::make_direct): Likewise.
5246 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5247 * value-prof.h (check_ic_target): Remove.
5248 * value-prof.c (check_ic_target): Remove.
5249 (gimple_ic_transform): Do nat call check_ic_target.
5250 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5251 (afdo_indirect_call): Likewise.
5252 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5253 gimple_check_call_matching_types.
5254 * ipa-inline.c (early_inliner): Likewise.
5255
5256 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5257
5258 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5259 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5260 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5261 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5262 * config/arm/iterators.md (USSAT16): New int_iterator.
5263 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5264 (sup): Likewise.
5265 * config/arm/predicates.md (ssat16_imm): New predicate.
5266 (usat16_imm): Likewise.
5267 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5268
5269 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5270
5271 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5272 New define_insns.
5273 (arm_<simd32_op>): New define_expands.
5274 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5275 __smuad, __smuadx): Define.
5276 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5277 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5278 (SIMD32_BINOP_Q): Likewise.
5279 (simd32_op): Handle the above.
5280 * config/arm/unspecs.md: Define unspecs for the above.
5281
5282 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5283
5284 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5285 * config/arm/arm.md (APSRGE_REGNUM): Define.
5286 (arm_<simd32_op>): New define_insn.
5287 (arm_sel): Likewise.
5288 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5289 (CALL_USED_REGISTERS): Likewise.
5290 (REG_ALLOC_ORDER): Likewise.
5291 (FIRST_PSEUDO_REGISTER): Update value.
5292 (ARM_GE_BITS_READ): Define.
5293 * config/arm/arm.c (arm_conditional_register_usage): Clear
5294 APSRGE_REGNUM from operand_reg_set.
5295 (arm_ge_bits_access): Define.
5296 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5297 ARM_BUIILTIN_sel.
5298 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5299 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5300 FAIL if ARM_GE_BITS_READ.
5301 (*arm_add<mode>3): New define_insn.
5302 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5303 (*arm_sub<mode>3): New define_insn.
5304 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5305 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5306 __usub16): Define.
5307 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5308 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5309 (simd32_op): Handle the above.
5310 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5311 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5312 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5313 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5314
5315 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5316
5317 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5318 (arm_smlabb): New define_expand.
5319 (*maddhisi4tb): Rename to...
5320 (maddhisi4tb): ... This.
5321 (*maddhisi4tt): Rename to...
5322 (maddhisi4tt): ... This.
5323 (arm_smlatb_setq): New define_insn.
5324 (arm_smlatb): New define_expand.
5325 (arm_smlatt_setq): New define_insn.
5326 (arm_smlatt): New define_expand.
5327 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5328 (arm_<smlaw_op>): New define_expand.
5329 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5330 __smlawb, __smlawt): Define.
5331 * config/arm_acle_builtins.def: Define builtins for the above.
5332 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5333 (slaw_op): New int_attribute.
5334 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5335
5336 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5337
5338 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5339 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5340 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5341 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5342 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5343 (ss_op): New code_attr.
5344
5345 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5346
5347 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5348 * config/arm/arm.md (APSRQ_REGNUM): Define.
5349 (add_setq): New define_subst.
5350 (add_clobber_q_name): New define_subst_attr.
5351 (add_clobber_q_pred): Likewise.
5352 (maddhisi4): Change to define_expand. Split into mult and add if
5353 ARM_Q_BIT_READ.
5354 (arm_maddhisi4): New define_insn.
5355 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5356 (*maddhisi4tt): Likewise.
5357 (arm_ssat): New define_expand.
5358 (arm_usat): Likewise.
5359 (arm_get_apsr): New define_insn.
5360 (arm_set_apsr): Likewise.
5361 (arm_saturation_occurred): New define_expand.
5362 (arm_set_saturation): Likewise.
5363 (*satsi_<SAT:code>): Rename to...
5364 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5365 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5366 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5367 (CALL_USED_REGISTERS): Mark apsrq.
5368 (FIRST_PSEUDO_REGISTER): Update value.
5369 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5370 (machine_function): Add q_bit_access.
5371 (ARM_Q_BIT_READ): Define.
5372 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5373 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5374 operand_reg_set.
5375 (arm_q_bit_access): Define.
5376 * config/arm/arm-builtins.c: Include stringpool.h.
5377 (arm_sat_binop_imm_qualifiers,
5378 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5379 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5380 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5381 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5382 SET_SAT_QUALIFIERS): Likewise.
5383 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5384 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5385 Handle 0 argument expander.
5386 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5387 (arm_check_builtin_call): Define.
5388 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5389 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5390 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5391 (arm_q_bit_access): Likewise.
5392 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5393 __saturation_occurred, __set_saturation_occurred): Define.
5394 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5395 saturation_occurred, set_saturation_occurred.
5396 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5397 (UNSPEC_APSR_READ): Likewise.
5398 (VUNSPEC_APSR_WRITE): Likewise.
5399 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5400 (*arm_ssadd<mode>3): New define_insn.
5401 (sssub<mode>3): Convert to define_expand.
5402 (*arm_sssub<mode>3): New define_insn.
5403 (ssmulsa3): Convert to define_expand.
5404 (*arm_ssmulsa3): New define_insn.
5405 (usmulusa3): Convert to define_expand.
5406 (*arm_usmulusa3): New define_insn.
5407 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5408 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5409 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5410
5411 2019-11-07 Martin Liska <mliska@suse.cz>
5412
5413 PR c++/92354
5414 * cgraph.c (delete_function_version): Clear global
5415 variable version_info_node if equal to deleted
5416 function.
5417
5418 2019-11-07 Martin Liska <mliska@suse.cz>
5419
5420 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5421 of CONSTRUCTOR_NO_CLEARING.
5422 (operand_compare::hash_operand): Likewise.
5423
5424 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5425
5426 Support 64-bit double and 64-bit long double configurations.
5427
5428 PR target/92055
5429 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5430 --with-long-double=.
5431 * config/avr/t-multilib: Remove.
5432 * config/avr/t-avr: Output of genmultilib.awk is now fully
5433 dynamically generated and no more part of the repo.
5434 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5435 Pass them down to...
5436 * config/avr/genmultilib.awk: ...here and handle them.
5437 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5438 (-mlong-double=, avr_long_double). New option and var.
5439 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5440 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5441 Set default as requested by --with-double=
5442 (TARGET_HANDLE_OPTION): Define to this...
5443 (avr_handle_option): ...new hook worker.
5444 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5445 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5446 (avr_double_lib): New proto for spec function.
5447 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5448 (DRIVER_SELF_SPECS): Call %:double-lib.
5449 * config/avr/avr.c (avr_option_override): Assert
5450 sizeof(long double) >= sizeof(double) for the target.
5451 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5452 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5453 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5454 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5455 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5456 New built-in define depending on --with-double=, --with-long-double=.
5457 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5458 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5459 * doc/install.texi (Cross-Compiler-Specific Options)
5460 <--with-double=, --with-long-double=>: Doc.
5461
5462 2019-11-07 Richard Biener <rguenther@suse.de>
5463
5464 * dbgcnt.def (gimple_unroll): New.
5465 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5466 gimple_unroll debug counter before applying transform.
5467 (try_peel_loop): Likewise.
5468
5469 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5470
5471 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5472 frame pointer in multiple registers.
5473 (ira_setup_eliminable_regset): Setup eliminable_regset,
5474 ira_no_alloc_regs and regs_ever_live for frame pointer in
5475 multiple registers.
5476
5477 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5478
5479 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5480 V2DI modes.
5481
5482 2019-11-06 Jan Hubicka <jh@suse.cz>
5483
5484 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5485 allocations.
5486 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5487 Do not silently ignore summary corruptions.
5488
5489 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5490
5491 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5492 the epilogue if there are peeled iterations for it to handle.
5493
5494 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5495
5496 * config/arc/arc.c (arc_split_ior): Add asserts.
5497 (arc_split_mov_const): Likewise.
5498 (arc_check_ior_const): Do not match known short immediate values.
5499 * config/arc/arc.md (movsi): Don't split predicated instructions
5500 (iorsi): Likewise.
5501
5502 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5503
5504 * config/arc/arc.opt (mea): Update help string.
5505 * doc/invoke.texi(ARC): Update mea option info.
5506
5507 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5508
5509 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5510 (zero_extendqisi2_ac): Likewise.
5511 (zero_extendhisi2_i): Likewise.
5512 (extendqihi2_i): Likewise.
5513 (extendqisi2_ac): Likewise.
5514 (extendhisi2_i): Likewise.
5515
5516 2019-11-06 Richard Biener <rguenther@suse.de>
5517
5518 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5519 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5520 Simplify single_defuse_cycle condition.
5521
5522 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5523
5524 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5525 epilogue loop, make sure that the VF is small enough or that
5526 the epilogue loop can be fully-masked.
5527
5528 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5529
5530 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5531 loop when we've finished, rather than returning directly from
5532 the loop. Use a local variable to track whether we're still
5533 searching for the preferred simdlen. Make vect_epilogues
5534 record whether the next iteration should try to treat the
5535 loop as an epilogue.
5536
5537 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5538
5539 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5540 __arc_hard_float__, __ARC_HARD_FLOAT__,
5541 __arc_soft_float__, __ARC_SOFT_FLOAT__
5542
5543 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5544
5545 PR tree-optimization/92317
5546 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5547 update phi's with constant phi arguments.
5548
5549 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5550 Alexandre Oliva <oliva@adacore.com>
5551
5552 * common.opt (-fcallgraph-info[=]): New option.
5553 * doc/invoke.texi (Developer options): Document it.
5554 * opts.c (common_handle_option): Handle it.
5555 * builtins.c (expand_builtin_alloca): Record allocation if
5556 -fcallgraph-info=da.
5557 * calls.c (expand_call): If -fcallgraph-info, record the call.
5558 (emit_library_call_value_1): Likewise.
5559 * flag-types.h (enum callgraph_info_type): New type.
5560 * explow.c: Include stringpool.h.
5561 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5562 * function.c (allocate_stack_usage_info): New.
5563 (allocate_struct_function): Call it for -fcallgraph-info.
5564 (prepare_function_start): Call it otherwise.
5565 (record_final_call, record_dynamic_alloc): New.
5566 * function.h (struct callinfo_callee): New.
5567 (CALLEE_FROM_CGRAPH_P): New.
5568 (struct callinfo_dalloc): New.
5569 (struct stack_usage): Add callees and dallocs.
5570 (record_final_call, record_dynamic_alloc): Declare.
5571 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5572 object if -fcallgraph-info=da.
5573 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5574 * print-tree.h (print_decl_identifier): Declare.
5575 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5576 * print-tree.c: Include print-tree.h.
5577 (print_decl_identifier): New function.
5578 * toplev.c: Include print-tree.h.
5579 (callgraph_info_file): New global variable.
5580 (callgraph_info_external_printed): Likewise.
5581 (output_stack_usage): Rename to...
5582 (output_stack_usage_1): ... this. Make it static, add cf
5583 parameter. If -fcallgraph-info=su, print stack usage to cf.
5584 If -fstack-usage, use print_decl_identifier for
5585 pretty-printing.
5586 (INDIRECT_CALL_NAME): New.
5587 (dump_final_node_vcg_start): New.
5588 (dump_final_callee_vcg, dump_final_node_vcg): New.
5589 (output_stack_usage): New.
5590 (lang_dependent_init): Open and start file if
5591 -fcallgraph-info. Allocated callgraph_info_external_printed.
5592 (finalize): If callgraph_info_file is not null, finish it,
5593 close it, and release callgraph_info_external_printed.
5594
5595 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5596 Frederik Harwath <frederik@codesourcery.com>
5597 Thomas Schwinge <thomas@codesourcery.com>
5598
5599 * omp-low.c (struct omp_context): New fields
5600 local_reduction_clauses, outer_reduction_clauses.
5601 (new_omp_context): Initialize these.
5602 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5603 (scan_omp_for): Check reduction clauses for incorrect nesting.
5604
5605 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5606
5607 PR inline-asm/92352
5608 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5609 operands with non-memory constraints.
5610
5611 2019-11-05 Martin Sebor <msebor@redhat.com>
5612
5613 PR tree-optimization/92373
5614 * tree.c (component_ref_size): Only consider initializers of objects
5615 of matching struct types.
5616 Return null for instances of interior zero-length arrays.
5617
5618 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5619
5620 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5621
5622 2019-11-05 Jason Merrill <jason@redhat.com>
5623
5624 PR tree-optimization/91825
5625 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5626
5627 2019-11-05 Jim Wilson <jimw@sifive.com>
5628
5629 PR middle-end/92263
5630 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5631 optimize_insn_for_speed_p is true.
5632
5633 2019-11-05 Martin Sebor <msebor@redhat.com>
5634
5635 PR middle-end/92333
5636 PR middle-end/82608
5637 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5638 size.
5639 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5640 name and location for a temporary variable.
5641
5642 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5643
5644 * tree-vrp.c (value_range::value_range): Fix whitespace.
5645 (defined_ranges_p): Same.
5646 (range_fold_binary_symbolics_p): Same.
5647 (value_range::intersect_helper): Same.
5648 (value_range::union_helper): Same.
5649 * tree-vrp.h (range_fold_binary_expr): Same.
5650
5651 2019-11-04 Martin Sebor <msebor@redhat.com>
5652
5653 PR middle-end/92341
5654 PR middle-end/82612
5655 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5656 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5657 of message printed in a warning for empty arrays.
5658 (vrp_prop::check_mem_ref): Also handle function parameters and
5659 empty arrays.
5660
5661 2019-11-05 Richard Biener <rguenther@suse.de>
5662
5663 PR tree-optimization/92371
5664 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5665 on the original stmt of live stmts in the chain.
5666 (vectorizable_live_operation): Look at the original stmt when
5667 checking STMT_VINFO_REDUC_DEF.
5668
5669 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5670
5671 * gimple-fold.c, gimple-loop-versioning.cc,
5672 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5673 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5674 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5675 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5676 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5677 value_range_equiv, and value_range_base to value_range.
5678
5679 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5680
5681 * expr.c (build_personality_function): Fix generated type to
5682 match actual personality functions.
5683
5684 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5685
5686 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5687 enough bytes for the NULL character.
5688
5689 2019-11-05 Richard Biener <rguenther@suse.de>
5690
5691 PR tree-optimization/92280
5692 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5693 had a single use do not create a new CTOR.
5694 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5695 BIT_FIELD_REF of a CTOR via GENERIC.
5696
5697 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5698
5699 * config/s390/s390.c (s390_vector_alignment): Check if the value
5700 fits into uhwi before using it.
5701
5702 2019-11-05 Martin Liska <mliska@suse.cz>
5703
5704 * symbol-summary.h: Use ggc_delete.
5705
5706 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5707
5708 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5709 Change vec_perm field to 10.
5710
5711 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5712
5713 * doc/install.texi: Further fix syntax for html generation.
5714
5715 2019-11-05 Martin Liska <mliska@suse.cz>
5716
5717 * symbol-summary.h: Rename allocator to m_allocator and
5718 add comment.
5719
5720 2019-11-05 Richard Biener <rguenther@suse.de>
5721
5722 PR tree-optimization/92324
5723 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5724 all signed or unsigned operations.
5725
5726 2019-11-05 Jan Hubicka <jh@suse.cz>
5727
5728 * hsa-brig.c: Include alloc-pool.h
5729 * hsa-dump.c: Likewise.
5730 * hsa-gen.c: Likewise.
5731 * hse-regalloc.c: Likewise.
5732 * ipa-hsa.c: Likewise.
5733 * ipa-predicate.c: Likewise.
5734 * ipa-reference.c: Likewise.
5735 * ipa-sra.c: Likewise.
5736 * omp-expand.c: Likewise.
5737 * omp-general.c: Likewise.
5738 * omp-low.c: Likewise.
5739 * sumbol-summary.h (function_summary_base): Add allocator.
5740 (function_summary<T *>::function_summary): Update construction.
5741 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5742 (call_summary_base): Add allcator.
5743 (call_summary<T *>::call_summary): Update construction.
5744 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5745
5746 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5747
5748 PR tree-optimization/91945
5749 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5750 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5751 Formatting fix.
5752
5753 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5754
5755 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5756 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5757 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5758 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5759 (vrp_set_zero_nonzero_bits): Move to...
5760 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5761 (vr_values::simplify_bit_ops_using_ranges): Rename
5762 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5763
5764 2019-11-05 Martin Liska <mliska@suse.cz>
5765
5766 PR c++/92339
5767 * fold-const.c (operand_compare::hash_operand): Remove
5768 FIELD_DECL handling.
5769
5770 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5771
5772 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5773 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5774 static.
5775
5776 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5777
5778 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5779 properly handle symbolics.
5780 (range_compatible_p): Remove.
5781
5782 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5783
5784 * common.opt (-fabi-version): Document =14.
5785 * doc/invoke.texi (C++ Dialect Options): Likewise.
5786
5787 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5788
5789 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5790
5791 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5792
5793 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5794 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5795 gcn_omp_device_kind_arch_isa.
5796 * config/gcn/t-omp-device: New file.
5797 * configure.ac: Support gcn for omp_device_property.
5798 * configure: Regenerate.
5799
5800 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5801
5802 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5803 (vrp_val_max): Same.
5804 (vrp_val_is_min): Same.
5805 (vrp_val_is_max): Same.
5806 (value_range_base::nonzero_p): Remove last argument to
5807 vrp_val_is_max.
5808 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5809 (vrp_val_max): Same.
5810 (vrp_val_is_min): Same.
5811 (vrp_val_is_max): Same.
5812 (value_range_base::set_varying): Remove last argument to vrp_val*.
5813 (value_range_base::dump): Same.
5814 (value_range_base::set): Same.
5815 (value_range_base::normalize_symbolics): Same.
5816 (value_range_base::num_pairs): Same.
5817 (value_range_base::lower_bound): Same.
5818 (value_range_base::upper_bound): Same.
5819 (ranges_from_anti_range): Remove handle_pointers argument.
5820 (value_range_base::singleton_p): Remove last argument to
5821 ranges_from_anti_range.
5822
5823 2019-11-04 Jan Hubicka <jh@suse.cz>
5824
5825 * ipa-reference.c (init_function_info): Initialize
5826 info->global.statics_read.
5827
5828 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5829
5830 * tree-vrp.c (value_range_base::invert): Use constructors to build
5831 range.
5832
5833 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5834
5835 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5836 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5837
5838 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5839
5840 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5841 VR_UNDEFINED.
5842
5843 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5844
5845 * tree-vrp.c (dump_assert_info): New.
5846 (dump_asserts_info): New.
5847
5848 2019-11-04 Jan Hubicka <jh@suse.cz>
5849
5850 * ipa-inline-transform.c: Include ipa-utils.h
5851 (inline_call): Set thunk_expansion flag.
5852 * ipa-utils.h (thunk_expansion): Declare.
5853 * ipa-devirt.c (thunk_expansion): New global var.
5854 (devirt_node_removal_hook): Do not invalidate cache while
5855 doing thunk expansion.
5856
5857 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5858
5859 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5860
5861 2019-11-04 Martin Sebor <msebor@redhat.com>
5862
5863 PR tree-optimization/92349
5864 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5865 memebers have constant sizes.
5866
5867 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5868
5869 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5870 parameter.
5871 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5872 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5873 vect_analyze_loop.
5874
5875 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5876
5877 * expr.c (store_constructor): Modify to handle single element vectors.
5878 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5879 constructors.
5880 (vect_slp_check_for_constructors): New function.
5881 (vect_slp_analyze_bb_1): Call new function to check for vector
5882 constructors.
5883 (vectorize_slp_instance_root_stmt): New function.
5884 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5885 constructors.
5886 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5887
5888 2019-11-04 Richard Biener <rguenther@suse.de>
5889
5890 PR tree-optimization/92345
5891 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5892 we produced a reduction chain.
5893 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5894 LOOP_VINFO_REDUCTIONS.
5895
5896 2019-11-04 Jan Hubicka <jh@suse.cz>
5897
5898 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5899 duplicate summaries.
5900 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5901 first.
5902 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5903 access call summaries.
5904 (dump_ipa_call_summary): Be ready for missing edge summaries.
5905 (analyze_function_body): Use get instead of get_create to access
5906 edge summary.
5907 (estimate_calls_size_and_time): Do not access summaries of
5908 inlined edges; sanity check they are missing.
5909 (ipa_call_context::estimate_size_and_time): Use get instead
5910 of get_create to access node summary.
5911 (inline_update_callee_summaries): Do not update depth of
5912 inlined edge.
5913 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5914 growth caches.
5915 (ipa_merge_fn_summary_after_inlining): Use get instead
5916 of get_create.
5917 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5918 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5919 fast summary.
5920 (initialize_growth_caches): Update.
5921 (do_estimate_edge_time): Remove redundant copy of context.
5922 (ipa_remove_from_growth_caches): New function.
5923 * ipa-inline.c (flatten_function): Update overall summary
5924 only when optimizing.
5925 (inline_to_all_callers): Update overall summary of function
5926 inlined to.
5927 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5928 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5929 to false.
5930
5931 2019-11-04 Richard Biener <rguenther@suse.de>
5932
5933 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5934 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5935
5936 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5937
5938 * ggc-common.c: Include system.h before malloc.h.
5939
5940 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5941
5942 * configure.ac: Pass --enable-obsolete=* and
5943 --enable-option-checking=* down to build configure, and fail
5944 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5945 * configure: Rebuild.
5946 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5947 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5948
5949 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5950
5951 * config.in: Regenerate.
5952 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5953 -mtiny-printf is used without GCC being configured with
5954 --enable-newlib-nano-formatted-io.
5955 * config/msp430/msp430.h (LINK_SPEC): Pass
5956 "--wrap puts --wrap printf" when -mtiny-printf is used.
5957 * config/msp430/msp430.opt: Document -mtiny-printf.
5958 * configure: Regenerate.
5959 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5960 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5961 --enable-newlib-nano-formatted-io is passed.
5962 * doc/invoke.texi: Document -mtiny-printf.
5963
5964 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5965
5966 * configure: Regenerate.
5967
5968 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5969
5970 * config/msp430/driver-msp430.c
5971 (msp430_get_linker_devices_include_path): New spec function.
5972 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5973 (extract_devices_dir_from_exec_prefix): New function.
5974 (extract_devices_dir_from_collect_gcc): New function.
5975 (msp430_check_env_var_for_devices): New function.
5976 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5977 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5978 devices.csv was not found using other methods.
5979 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5980 New prototype.
5981 (msp430_dirname): Likewise.
5982 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5983 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5984 msp430_get_linker_devices_include_path.
5985 (TARGET_EXTRA_PRE_INCLUDES): Define.
5986 * doc/invoke.texi: Document new ways of searching for support files.
5987
5988 2019-11-04 Richard Biener <rguenther@suse.de>
5989
5990 PR tree-optimization/92301
5991 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5992 as required by epilogue generation
5993
5994 2019-11-04 Martin Liska <mliska@suse.cz>
5995
5996 PR ipa/92304
5997 * fold-const.c (operand_compare::hash_operand): Fix field
5998 hashing of CONSTRUCTOR.
5999
6000 2019-11-04 Martin Liska <mliska@suse.cz>
6001
6002 * ggc.h (ggc_delete): New function.
6003 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6004 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6005 (ipa_free_all_node_params): Likewise.
6006 * ipa-sra.c (ipa_sra_analysis): Likewise.
6007
6008 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6009
6010 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6011 set_switch_stmt_execution_predicate, compute_bb_predicates,
6012 will_be_nonconstant_expr_predicate,
6013 phi_result_unknown_predicate,
6014 analyze_function_body): Pass arround params summary.
6015 (ipa_call_context::duplicate_from): New comment;
6016 only duplicate useful values.
6017 (ipa_call_context::equal_to): Only compare useful values.
6018 (remap_edge_summaries): Pass params_summary.
6019 (remap_hint_predicate): Likewise.
6020 (ipa_merge_fn_summary_after_inlining): Likewise.
6021 (inline_read_section): Initialize params summary used flags.
6022 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6023 around param_summary.
6024 (add_condition): Initialized used params summary flags.
6025 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6026 (inline_param_summary::useless_p): New predicate.
6027 (remap_after_inlining, add_condition): Update prototype
6028 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6029 move_cost.
6030 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6031 summaries.
6032 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6033 (ipa_analyze_virtual_call_uses): Likewise.
6034 (update_indirect_edges_after_inlining): Update param summaries.
6035 (ipa_print_node_params): Print used flags.
6036 (ipa_read_indirect_edge_info): Update param summareis.
6037 * ipa-prop.h (ipa_param_descriptor): Add
6038 used_by_ipa_predicates, used_by_indirect_call
6039 and used_by_polymorphic_call.
6040 (ipa_set_param_used_by_ipa_predicates,
6041 ipa_set_param_used_by_indirect_call,
6042 ipa_set_param_used_by_polymorphic_call,
6043 ipa_is_param_used_by_ipa_predicates,
6044 ipa_is_param_used_by_indirect_call,
6045 ipa_is_param_used_by_polymorphic_call): New inline functions.
6046
6047 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6048
6049 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6050 member function.
6051 (ipa_call_context::release): Add ALL parameter.
6052 (ipa_call_context::equal_to): New member function.
6053 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6054 duplicate_form, release, equal_to and exists_p member functoins.
6055 * ipa-inline-analysis.c (node_context_cache_entry): New
6056 class.
6057 (node_context_summary): Likewise.
6058 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6059 node_context_clear): New static vars.
6060 (initialize_growth_caches): New function.
6061 (free_growth_caches): Also delete node_context_cache; output stats.
6062 (do_estimate_edge_time): Cache contexts.
6063 (reset_node_cache): New function.
6064 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6065 (inline_small_functions): Initialize growth caches.
6066 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6067 Declare.
6068 * ipa-predicate.h (inline_param_summary::equal_to): New.
6069 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6070 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6071 (ipa_agg_jump_function): Implement equal_to member function.
6072
6073 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6074
6075 * ipa-fnsummary.c (inline_read_section): Set vector size
6076 ahead of time.
6077
6078 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6079
6080 * ipa-fnsummary.c (ipa_call_context): New constructor.
6081 (estimate_node_size_and_time): Turn to ...
6082 (ipa_call_context::estimate_size_and_time): ... this one.
6083 (ipa_call_context::release): New.
6084 * ipa-fnsummary.h (ipa_call_context): New class.
6085 (estimate_node_size_and_time): Remove.
6086 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6087 do_estimate_edge_hints): Update.
6088
6089 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6090
6091 * config.in: Regenerate.
6092 * configure: Regenerate.
6093 * configure.ac: Check for mallinfo.
6094 * ggc-common.c: Include malloc.h if available;
6095 include options.h
6096 (report_heap_memory_use): New functoin.
6097 * ggc-page.c (ggc_grow): Do not print "start".
6098 * ggc.h (report_heap_memory_use): Declare.
6099 * pases.c (execute_one_pass): Report memory after IPA passes.
6100 (ipa_read_summaries_1): Likewise.
6101 (ipa_read_optimization_summaries_1): Likewise.
6102
6103 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6104
6105 * gimplify.h (omp_construct_selector_matches): Change return
6106 type to int, add a new SCORES argument.
6107 * gimplify.c (omp_construct_selector_matches): Likewise. If
6108 SCORES is non-NULL, compute scores of each construct.
6109 * omp-general.h (omp_get_context_selector): Declare.
6110 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6111 Adjust omp_construct_selector_matches callers.
6112 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6113 (omp_context_compute_score): New function.
6114 (omp_resolve_declare_variant): Compute scores and decide based on
6115 that.
6116
6117 PR bootstrap/92314
6118 * configure.ac: Don't look for omp-device-properties files from
6119 installed offloading compilers. Instead add tmake_file snippets
6120 for configured offloading targets and use files they generate.
6121 * Makefile.in (install): Don't depend on
6122 install-omp-device-properties.
6123 (install-omp-device-properties): Remove goal.
6124 * config/i386/t-omp-device: New file.
6125 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6126 * config/nvptx/t-omp-device: New file.
6127 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6128 * configure: Regenerated.
6129
6130 * omp-general.h (omp_context_selector_set_compare): Declare.
6131 * omp-general.c (omp_construct_simd_compare,
6132 omp_context_selector_props_compare, omp_context_selector_set_compare,
6133 omp_context_selector_compare): New functions.
6134 (omp_resolve_declare_variant): Prune variants that are strict subset
6135 of another variant.
6136
6137 2019-11-01 Martin Sebor <msebor@redhat.com>
6138
6139 PR middle-end/91679
6140 PR middle-end/91647
6141 PR middle-end/91463
6142 PR middle-end/92312
6143 * doc/invoke.texi (-Wzero-length-bounds): Document.
6144 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6145 instead of a hand-rolled loop to avoid PR 92323.
6146 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6147 with initializers.
6148 (vrp_prop::check_mem_ref): Handle declared struct objects.
6149 * tree.c (last_field): New function.
6150 (array_at_struct_end_p): Handle MEM_REF.
6151 (get_initializer_for): New helper.
6152 (component_ref_size): Add argument. Rename locals. Call
6153 get_initializer_for instead of fold_ctor_reference. Correct handling
6154 of flexible array members.
6155 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6156
6157 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6158
6159 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6160 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6161 UNSPEC_VSX_CVSPUXDS): Remove.
6162 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6163 (vsx_xvcvspdp_be): ... this. New. And...
6164 (vsx_xvcvspdp_le): ... this. New.
6165 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6166 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6167 (vsx_xvcv<su>xwdp_le): ... this. New.
6168 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6169 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6170 (vsx_xvcvsp<su>xds_le): ... this. New.
6171
6172 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6173
6174 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6175 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6176 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6177 UNSPEC_VSX_XVCVSPSXWS): Remove.
6178 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6179 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6180
6181 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6182
6183 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6184 (UNSPEC_VSX_XVCDPSP): Remove.
6185 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6186 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6187
6188 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6189
6190 * hooks.c (hook_tree_tree_bool_null): New.
6191 * hooks.h (hook_tree_tree_bool_null): Declare.
6192 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6193 (LANG_HOOKS_DECLS): Add it.
6194 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6195 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6196 (lower_omp_target): Handle Fortran array with descriptor in
6197 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6198
6199 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6200
6201 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6202 Assert that the type we store in abi_vector_types is its own
6203 main variant.
6204 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6205
6206 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6207
6208 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6209 from a CONST_INT address when TARGET_THUMB2.
6210
6211 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6212
6213 * config/arm/arm.md (add_not_cin): New insn.
6214 (add_not_shift_cin): Likewise.
6215
6216 2019-10-31 Martin Liska <mliska@suse.cz>
6217
6218 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6219 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6220 and compare_memory_operand.
6221
6222 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6223
6224 * configure.ac: Compute and substitute omp_device_properties and
6225 omp_device_property_deps.
6226 * Makefile.in (generated_files): Add omp-device-properties.h.
6227 (omp-general.o): Depend on omp-device-properties.h.
6228 (omp_device_properties): New make variable.
6229 (omp-device-properties.h, s-omp-device-properties-h,
6230 install-omp-device-properties): New goals.
6231 (install): Depend on install-omp-device-properties for accelerators.
6232 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6233 * target.h (enum omp_device_kind_arch_isa): New enum.
6234 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6235 documentation.
6236 * omp-general.c: Include omp-device-properties.h.
6237 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6238 colon instead of comma.
6239 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6240 functions.
6241 (omp_context_selector_matches): Implement device set arch/isa
6242 selectors, improve device set kind selector handling.
6243 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6244 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6245 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6246 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6247 ix86_omp_device_kind_arch_isa.
6248 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6249 definition from ix86_target_string to file scope.
6250 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6251 to file scope.
6252 (ix86_omp_device_kind_arch_isa): New function.
6253 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6254 isa_opts definitions to file scope.
6255 * config/i386/t-intelmic (omp-device-properties): New goal.
6256 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6257 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6258 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6259 nvptx_omp_device_kind_arch_isa.
6260 * configure: Regenerate.
6261 * doc/tm.texi: Regenerate.
6262
6263 PR middle-end/92231
6264 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6265 DECL_BUILT_IN in comment. Remove redundant ()s around return
6266 argument.
6267 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6268 before calling fndecl_built_in_p.
6269 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6270 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6271 fndecl_built_in_p on it.
6272
6273 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6274
6275 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6276
6277 2019-10-31 Martin Liska <mliska@suse.cz>
6278
6279 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6280 of cgraph_local_info and use local_info_node instead.
6281 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6282 (bfin_function_ok_for_sibcall): Likewise.
6283 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6284 (must_reload_pic_reg_p): Likewise.
6285
6286 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6287
6288 PR c++/90947
6289 * tree.h (type_initializer_zero_p): Remove.
6290 * tree.c (type_initializer_zero_p): Remove.
6291
6292 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6293
6294 * doc/invoke.texi (-Wshadow, -Wshadow=global
6295 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6296
6297 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6298
6299 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6300 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6301 and 'target exit data'.
6302
6303 2019-10-30 Martin Jambor <mjambor@suse.cz>
6304
6305 ipa/92278
6306 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6307 availability comparison.
6308
6309 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6310
6311 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6312 calls to __mspabi_mpy* functions.
6313 * config/msp430/msp430.md (mulhisi3): New define_expand.
6314 (umulhisi3): New define_expand.
6315 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6316 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6317
6318 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6319
6320 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6321 (msp430_check_plus_not_high_mem): New.
6322 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6323 might be in low memory.
6324 Indicate that a 16-bit absolute address is in lower memory.
6325
6326 2019-10-30 Martin Jambor <mjambor@suse.cz>
6327
6328 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6329 ultimate_alias_target.
6330
6331 2019-10-30 Richard Biener <rguenther@suse.de>
6332
6333 PR tree-optimization/92275
6334 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6335 Copy all loop-closed PHIs.
6336
6337 2019-10-30 Martin Liska <mliska@suse.cz>
6338
6339 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6340 const_tree as function argument.
6341 (func_checker::compare_decl): Likewise.
6342 (func_checker::operand_equal_p): Likewise.
6343 (func_checker::compare_variable_decl): Likewise.
6344 (func_checker::parse_labels): Likewise.
6345 * ipa-icf-gimple.h: Likewise.
6346
6347 2019-10-30 Martin Liska <mliska@suse.cz>
6348
6349 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6350 Do not compare alias sets. It's handled by operand_equal_p.
6351
6352 2019-10-30 Martin Liska <mliska@suse.cz>
6353
6354 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6355 initialize m_compare_polymorphic.
6356 (func_checker::compare_decl): Do not compare polymorphic types.
6357 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6358 * ipa-icf.c (sem_function::equals_private): Do not call
6359 compare_polymorphic_p.
6360
6361 2019-10-30 Martin Liska <mliska@suse.cz>
6362
6363 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6364 compare_operand.
6365 (func_checker::compare_memory_operand): Remove.
6366 (func_checker::compare_cst_or_decl): Remove.
6367 (func_checker::operand_equal_valueize): Do not handle
6368 FIELD_DECL.
6369 (func_checker::compare_gimple_call): Call compare_operand.
6370 (func_checker::compare_gimple_assign): Likewise.
6371 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6372 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6373 * ipa-icf.h (icf_handled_component_p): Remove.
6374
6375 2019-10-30 Martin Liska <mliska@suse.cz>
6376
6377 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6378 (func_checker::compare_cst_or_decl): Remove handling
6379 of FIELD_DECL.
6380 (func_checker::compare_operand): Transform to ...
6381 (func_checker::operand_equal_p): ... this.
6382 * ipa-icf-gimple.h (class func_checker): Add
6383 operand_equal_p and hash_operand.
6384 * ipa-icf.c (sem_function::equals_private): Fix
6385 pushing and popping of cfun.
6386
6387 2019-10-30 Martin Liska <mliska@suse.cz>
6388
6389 * fold-const.c (operand_equal_p): Move to ...
6390 (operand_compare::operand_equal_p): ... here.
6391 (operand_compare::verify_hash_value): New.
6392 (add_expr): Move to ...
6393 (operand_compare::hash_operand): ... here.
6394 * fold-const.h (operand_equal_p): Move to the class.
6395 (class operand_compare): New.
6396 * tree.c (add_expr): Remove.
6397
6398 2019-10-30 Martin Liska <mliska@suse.cz>
6399
6400 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6401 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6402
6403 2019-10-30 Martin Liska <mliska@suse.cz>
6404
6405 PR lto/91393
6406 PR lto/88220
6407 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6408 from a first_clone in order to get proper LTO section
6409 in LTO stream.
6410 (cgraph_node::get_untransformed_body):
6411 Use lto_get_section_data where symtab_node::order
6412 must be provided.
6413 * cgraphclones.c (cgraph_node::find_replacement):
6414 Update also symbol order.
6415 * ipa-fnsummary.c (ipa_fn_summary_read):
6416 Use new function lto_get_summary_section_data.
6417 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6418 * ipa-icf.c (sem_item_optimizer::read_summary):
6419 Likewise.
6420 * ipa-prop.c (ipa_prop_read_jump_functions):
6421 Likewise.
6422 (ipcp_read_transformation_summaries): Likewise.
6423 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6424 * lto-cgraph.c (input_node): Add also order_base.
6425 (input_varpool_node): Likewise.
6426 (input_cgraph_1): Assign the order_base.
6427 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6428 * lto-opts.c (lto_write_options): Pass new argument.
6429 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6430 (lto_get_summary_section_data): New.
6431 (lto_get_raw_section_data): Add order argument.
6432 (lto_create_simple_input_block): Likewise.
6433 * lto-section-out.c (lto_destroy_simple_output_block):
6434 Likewise.
6435 * lto-streamer-in.c (lto_input_toplevel_asms):
6436 Use lto_get_summary_section_data.
6437 (lto_input_mode_table): Likewise.
6438 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6439 (lto_output_toplevel_asms): Pass new argument.
6440 (copy_function_or_variable): Likewise.
6441 (produce_lto_section):Likewise.
6442 (produce_symtab): Likewise.
6443 (lto_write_mode_table): Likewise.
6444 (produce_asm_for_decls): Likewise.
6445 * lto-streamer.c (lto_get_section_name): Concat symbol name
6446 and symbol order.
6447 * lto-streamer.h (lto_get_section_data): Add order argument.
6448 (lto_get_summary_section_data): New.
6449 (lto_get_raw_section_data): Add order argument.
6450 (lto_get_section_name): Likewise.
6451 * varpool.c (varpool_node::get_constructor): Pass order argument.
6452
6453 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6454
6455 PR tree-optimization/92262
6456 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6457 ubase or cbase here.
6458 (remove_unused_ivs): Unshare comp before using it.
6459
6460 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6461
6462 * ipa-prop.c (update_jump_functions_after_inlining):
6463 Watch for missing summaries.
6464
6465 2019-10-30 Richard Biener <rguenther@suse.de>
6466
6467 PR tree-optimization/65930
6468 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6469 chains also allow a leading and trailing conversion.
6470 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6471 intermediate reduction chains.
6472 (vect_analyze_slp_instance): Likewise. Build a SLP
6473 node for a trailing conversion manually.
6474
6475 2019-10-30 Martin Liska <mliska@suse.cz>
6476
6477 * cgraph.c (cgraph_node::local_info): Transform to ...
6478 (cgraph_node::local_info_node): ... this.
6479 (cgraph_node::dump): Remove cgraph_local_info and
6480 put its fields directly into cgraph_node.
6481 (cgraph_node::get_availability): Likewise.
6482 (cgraph_node::make_local): Likewise.
6483 (cgraph_node::verify_node): Likewise.
6484 * cgraph.h (struct GTY): Likewise.
6485 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6486 (duplicate_thunk_for_node): Likewise.
6487 (cgraph_node::create_clone): Likewise.
6488 (cgraph_node::create_virtual_clone): Likewise.
6489 (cgraph_node::create_version_clone): Likewise.
6490 * cgraphunit.c (cgraph_node::reset): Likewise.
6491 (cgraph_node::finalize_function): Likewise.
6492 (cgraph_node::add_new_function): Likewise.
6493 (analyze_functions): Likewise.
6494 * combine.c (setup_incoming_promotions): Likewise.
6495 * config/i386/i386.c (ix86_function_regparm): Likewise.
6496 (ix86_function_sseregparm): Likewise.
6497 (init_cumulative_args): Likewise.
6498 * ipa-cp.c (determine_versionability): Likewise.
6499 (count_callers): Likewise.
6500 (set_single_call_flag): Likewise.
6501 (initialize_node_lattices): Likewise.
6502 (estimate_local_effects): Likewise.
6503 (create_specialized_node): Likewise.
6504 (identify_dead_nodes): Likewise.
6505 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6506 (ipa_fn_summary_generate): Likewise.
6507 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6508 (process_hsa_functions): Likewise.
6509 * ipa-icf.c (set_local): Likewise.
6510 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6511 * ipa-inline.c (speculation_useful_p): Likewise.
6512 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6513 (ipa_profile): Likewise.
6514 * ipa-split.c (split_function): Likewise.
6515 (execute_split_functions): Likewise.
6516 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6517 (ipa_sra_ipa_function_checks): Likewise.
6518 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6519 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6520 * lto-cgraph.c (lto_output_node): Likewise.
6521 (input_overwrite_node): Likewise.
6522 * multiple_target.c (expand_target_clones): Likewise.
6523 * omp-simd-clone.c (simd_clone_create): Likewise.
6524 * trans-mem.c (expand_call_tm): Likewise.
6525 (ipa_tm_mayenterirr_function): Likewise.
6526 (ipa_tm_diagnose_tm_safe): Likewise.
6527 (ipa_tm_diagnose_transaction): Likewise.
6528 (ipa_tm_create_version): Likewise.
6529 (ipa_tm_transform_calls_redirect): Likewise.
6530 (ipa_tm_execute): Likewise.
6531 * tree-inline.c (expand_call_inline): Likewise.
6532
6533 2019-10-29 Martin Liska <mliska@suse.cz>
6534
6535 * symbol-summary.h (function_summary): Pass memory location
6536 to underlaying hash_map (or vec).
6537 (V>::fast_function_summary): Likewise.
6538
6539 2019-10-29 Martin Liska <mliska@suse.cz>
6540
6541 * ggc.h (ggc_alloc_no_dtor): New function.
6542 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6543 destructor and ggc_free.
6544 (ipa_free_size_summary): Call delete instead
6545 of release.
6546 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6547 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6548 (ipa_free_all_edge_args): Call destructor and ggc_free.
6549 (ipa_free_all_node_params): Likewise.
6550 (ipcp_free_transformation_sum): Likewise.
6551 * ipa-prop.h (ipa_check_create_node_params):
6552 Call new ggc_alloc_no_dtor.
6553 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6554 (ipa_sra_analysis): Call destructor and ggc_free.
6555 Replace release with delete operator.
6556 * symbol-summary.h (release): Remove ..
6557 (V>::~fast_function_summary): and move logic here.
6558 Likewise for other classes.
6559
6560 2019-10-29 Richard Biener <rguenther@suse.de>
6561
6562 PR tree-optimization/92260
6563 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6564 lane-reducing ops.
6565
6566 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6567
6568 PR tree-optimization/88915
6569 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6570 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6571 and make the valueize function pointer also take a void pointer.
6572 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6573 around vn_valueize, to call it without a context.
6574 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6575 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6576 (~_loop_vec_info): Release epilogue_vinfos.
6577 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6578 number of iterations of epilogue.
6579 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6580 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6581 versioning threshold needed for main loop.
6582 (vect_analyze_loop): Likewise.
6583 (find_in_mapping): New helper function.
6584 (update_epilogue_loop_vinfo): New function.
6585 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6586 on main loop and call update_epilogue_loop_vinfo to update it.
6587 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6588 stmts on loop preheader edge.
6589 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6590 we decided to vectorize epilogues. Update epilogues NITERS and
6591 construct ADVANCE to update epilogues data references where needed.
6592 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6593 (vect_do_peeling, vect_update_inits_of_drs,
6594 determine_peel_for_niter, vect_analyze_loop): Add or update
6595 declarations.
6596 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6597 created loop_vec_info's for epilogues when available. Otherwise analyse
6598 epilogue separately.
6599
6600 2019-10-29 Richard Biener <rguenther@suse.de>
6601
6602 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6603 example.
6604
6605 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6606
6607 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6608 index for the COND_EXPR from stmt_info rather than reduc_info.
6609
6610 2019-10-29 Richard Biener <rguenther@suse.de>
6611
6612 PR tree-optimization/65930
6613 * tree-vect-loop.c (check_reduction_path): Relax single-use
6614 check allowing out-of-loop uses.
6615 (vect_is_simple_reduction): SLP reduction chains cannot have
6616 intermediate stmts used outside of the loop.
6617 (vect_create_epilog_for_reduction): The adjustment might need
6618 to be converted.
6619 (vectorizable_reduction): Annotate live stmts of the reduction
6620 chain with STMT_VINFO_REDUC_DEF.
6621 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6622
6623 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6624
6625 * calls.c (pass_by_reference): Leave the target to decide whether
6626 POLY_INT_CST-sized arguments should be passed by value or reference,
6627 rather than forcing them to be passed by reference.
6628 (must_pass_in_stack_var_size): Likewise.
6629 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6630 V31_REGNUM to P15_REGNUM.
6631 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6632 Take an extra "silent_p" parameter, defaulting to false.
6633 (aarch64_sve::svbool_type_p): Declare.
6634 (aarch64_sve::nvectors_if_data_type): Likewise.
6635 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6636 (aarch64_frame::reg_offset): Turn into poly_int64s.
6637 (aarch64_frame::save_regs_size): Likewise.
6638 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6639 (aarch64_frame::sve_callee_adjust): Likewise.
6640 (aarch64_frame::spare_reg_reg): Likewise.
6641 (ARM_PCS_SVE): New arm_pcs value.
6642 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6643 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6644 (CUMULATIVE_ARGS::silent_p): Likewise.
6645 (BITS_PER_SVE_PRED): New macro.
6646 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6647 function. Reject aarch64_vector_pcs attributes on SVE functions.
6648 (aarch64_attribute_table): Use the above handler.
6649 (aarch64_sve_abi): New function.
6650 (aarch64_sve_argument_p): Likewise.
6651 (aarch64_returns_value_in_sve_regs_p): Likewise.
6652 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6653 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6654 descriptor for them.
6655 (aarch64_simd_decl_p): Delete.
6656 (aarch64_emit_cfi_for_reg_p): New function.
6657 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6658 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6659 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6660 as partly clobbered for the SVE PCS.
6661 (aarch64_function_ok_for_sibcall): Check whether the two functions
6662 use the same ABI, rather than checking specifically for whether
6663 they're aarch64_vector_pcs functions.
6664 (aarch64_pass_by_reference): Raise an error for attempts to pass
6665 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6666 if there are not enough free registers left, or if the argument is
6667 variadic.
6668 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6669 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6670 tuples in memory.
6671 (aarch64_layout_arg): Take a function_arg_info rather than
6672 individual properties. Handle SVE predicates, vectors and tuples.
6673 Raise an error if they are passed to unprototyped functions.
6674 (aarch64_function_arg): If the silent_p flag is set, suppress the
6675 usual error about using float registers without TARGET_FLOAT.
6676 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6677 it in the cumulative_args structure. Initialize aapcs_nprn and
6678 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6679 error about using float registers without TARGET_FLOAT.
6680 If the silent_p flag is not set, also raise an error about
6681 using SVE functions when SVE is disabled.
6682 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6683 and call it for SVE functions too. Update aapcs_nprn similarly
6684 to the other register counts.
6685 (aarch64_layout_frame): If a big-endian function needs to save
6686 and restore Z8-Z15, search for a spare predicate that it can use.
6687 Store SVE predicates at the bottom of the register save area,
6688 followed by SVE vectors, then followed by the normal slots.
6689 Keep pointing the hard frame pointer at the base of the normal slots,
6690 above the SVE vectors. Update the various frame creation and
6691 tear-down strategies for the new layout, initializing the new
6692 sve_callee_adjust field. Add an additional layout for frames
6693 whose saved registers are all SVE registers.
6694 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6695 (aarch64_return_address_signing_enabled): Likewise.
6696 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6697 aarch64_reg_save_mode.
6698 (aarch64_adjust_sve_callee_save_base): New function.
6699 (aarch64_add_cfa_expression): Move earlier in file. Take the
6700 saved register as an rtx rather than a register number and use
6701 its mode for the MEM slot.
6702 (aarch64_save_callee_saves): Remove the mode argument and instead
6703 use aarch64_reg_save_mode to get the mode of each save slot.
6704 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6705 offsets. Allow GP offsets to be saved at a VL-based offset from
6706 the stack, handling this case using the frame pointer if available
6707 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6708 big-endian SVE functions; use normal moves for other SVE saves.
6709 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6710 returns true. Add explicit CFA notes when not storing via the
6711 stack pointer. Do not try to pair SVE saves.
6712 (aarch64_restore_callee_saves): Cope with poly_int64 register
6713 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6714 use normal moves for other SVE restores. Only add CFA restore notes
6715 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6716 SVE restores.
6717 (aarch64_get_separate_components): Always keep the first SVE save
6718 in the prologue if we need to use it as a stack probe. Don't allow
6719 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6720 Likewise the spare predicate register that they need. Update the
6721 offset calculation to account for the SVE save area. Use the
6722 appropriate range check for SVE LDR and STR instructions.
6723 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6724 (aarch64_process_components): Likewise. Update the offset
6725 calculation to account for the SVE save area. Only mark the
6726 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6727 Do not try to pair SVE saves.
6728 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6729 reg_offsets. When handling the final allocation, expect the
6730 first SVE register save to be part of the initial allocation
6731 and for it to act as a probe at SP. Account for the SVE callee
6732 save area in the dump information.
6733 (aarch64_expand_prologue): Update the frame diagram. Fold the
6734 SVE callee allocation into the initial allocation if stack clash
6735 protection is enabled. Use new variables to track the offset
6736 of the frame chain (and hard frame pointer) from the current
6737 stack pointer, and likewise the offset of the bottom of the
6738 register save area. Update calls to aarch64_save_callee_saves
6739 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6740 saving the FP&SIMD registers. Save the predicate registers.
6741 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6742 into account when setting the stack pointer from the frame pointer,
6743 and when deciding whether we can inherit the initial adjustment
6744 amount from the prologue. Restore the predicate registers after
6745 the vector registers, then apply sve_callee_adjust, then restore
6746 the general registers.
6747 (aarch64_secondary_reload): Don't use secondary SVE reloads
6748 for VNx16BImode.
6749 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6750 (aarch64_short_vector_p): Return false for SVE types.
6751 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6752 at the start of the function. Return false for SVE types.
6753 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6754 functions too.
6755 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6756 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6757 to big-endian targets for bytewise moves.
6758 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6759
6760 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6761 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6762 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6763
6764 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6765 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6766 aarch64-sve-builtins-base.o to extra_objs. Add
6767 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6768 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6769 (aarch64-sve-builtins-shapes.o): Likewise.
6770 (aarch64-sve-builtins-base.o): New rules.
6771 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6772 (aarch64_resolve_overloaded_builtin): Likewise.
6773 (aarch64_check_builtin_call): Likewise.
6774 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6775 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6776 pragma.
6777 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6778 (aarch64_svprfop): New enum.
6779 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6780 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6781 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6782 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6783 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6784 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6785 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6786 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6787 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6788 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6789 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6790 (aarch64_sve::mangle_builtin_type): Likewise.
6791 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6792 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6793 (aarch64_sve::expand_builtin): Likewise.
6794 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6795 (aarch64_sve_int_mode): Likewise.
6796 (aarch64_ptrue_all_mode): New function.
6797 (aarch64_convert_sve_data_to_pred): Make public.
6798 (svprfop_token): New function.
6799 (aarch64_output_sve_prefetch): Likewise.
6800 (aarch64_fold_sve_cnt_pat): Likewise.
6801 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6802 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6803 instead of gen_while_ult.
6804 (aarch64_replace_reg_mode): Make public.
6805 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6806 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6807 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6808 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6809 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6810 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6811 (aarch64_sve_ptrue_svpattern_p): Likewise.
6812 (aarch64_sve_pred_valid_immediate): Check
6813 aarch64_sve_ptrue_svpattern_p.
6814 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6815 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6816 functions.
6817 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6818 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6819 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6820 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6821 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6822 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6823 New unspecs.
6824 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6825 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6826 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6827 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6828 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6829 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6830 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6831 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6832 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6833 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6834 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6835 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6836 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6837 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6838 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6839 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6840 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6841 (Vesize): Handle partial vector modes.
6842 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6843 mode attributes.
6844 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6845 iterators.
6846 (s, paired_extend, inc_dec): New code attributes.
6847 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6848 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6849 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6850 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6851 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6852 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6853 UNSPEC_COND_FMULX.
6854 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6855 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6856 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6857 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6858 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6859 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6860 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6861 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6862 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6863 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6864 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6865 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6866 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6867 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6868 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6869 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6870 UNSPEC_COND_FSCALE.
6871 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6872 (binqops_op, binqops_op_rev, last_op): New int attributes.
6873 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6874 (fn, ab): New int attributes.
6875 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6876 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6877 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6878 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6879 UNSPEC_RBIT.
6880 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6881 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6882 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6883 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6884 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6885 UNSPEC_COND_FMULX.
6886 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6887 (brk_reg_con, brk_reg_opno): New int attributes.
6888 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6889 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6890 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6891 UNSPEC_COND_FMIN.
6892 (max_elem_bits): New int attribute.
6893 (min_elem_bits): Handle UNSPEC_RBIT.
6894 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6895 TRUNCATE as well as SUBREG.
6896 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6897 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6898 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6899 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6900 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6901 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6902 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6903 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6904 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6905 (aarch64_gather_scale_operand_h): New predicates.
6906 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6907 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6908 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6909 (*aarch64_sve_reinterpret<mode>): Allow any source register
6910 instead of requiring an exact match.
6911 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6912 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6913 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6914 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6915 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6916 (aarch64_update_ffrt): New patterns.
6917 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6918 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6919 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6920 (@aarch64_ld<fn>f1<mode>): New patterns.
6921 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6922 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6923 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6924 (@aarch64_ldnt1<mode>): New patterns.
6925 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6926 the scalar part of the address.
6927 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6928 scalar part of the addresse and add an alternative for handling
6929 nonzero offsets.
6930 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6931 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6932 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6933 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6934 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6935 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6936 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6937 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6938 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6939 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6940 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6941 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6942 (@aarch64_sve_prefetch<mode>): New patterns.
6943 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6944 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6945 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6946 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6947 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6948 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6949 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6950 (@aarch64_stnt1<mode>): New patterns.
6951 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6952 the scalar part of the address.
6953 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6954 the scalar part of the addresse and add an alternative for handling
6955 nonzero offsets.
6956 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6957 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6958 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6959 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6960 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6961 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6962 New patterns.
6963 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6964 (extract_last_<mode>): Generalize to...
6965 (@extract_<LAST:last_op>_<mode>): ...this.
6966 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6967 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6968 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6969 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6970 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6971 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6972 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6973 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6974 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6975 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6976 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6977 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6978 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6979 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6980 (*aarch64_adr_uxtw_unspec): Likewise.
6981 (*aarch64_adr_uxtw): Rename to...
6982 (*aarch64_adr_uxtw_and): ...this.
6983 (@aarch64_adr<mode>_shift): New expander.
6984 (*aarch64_adr_shift_sxtw): New pattern.
6985 (aarch64_<su>abd<mode>_3): Rename to...
6986 (@aarch64_pred_<su>abd<mode>): ...this.
6987 (<su>abd<mode>_3): Update accordingly.
6988 (@aarch64_cond_<su>abd<mode>): New expander.
6989 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6990 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6991 (*<su>mul<mode>3_highpart): Rename to...
6992 (@aarch64_pred_<optab><mode>): ...this.
6993 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6994 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6995 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6996 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6997 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6998 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6999 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7000 (*v<ASHIFT:optab><mode>3): Rename to...
7001 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7002 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7003 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7004 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7005 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7006 (@cond_asrd<mode>): New expander.
7007 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7008 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7009 (*sdiv_pow2<mode>3): Delete.
7010 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7011 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7012 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7013 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7014 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7015 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7016 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7017 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7018 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7019 (*add<SVE_F:mode>3): Rename to...
7020 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7021 for SVE_STRICT_GP.
7022 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7023 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7024 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7025 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7026 (*sub<SVE_F:mode>3): Rename to...
7027 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7028 for SVE_STRICT_GP.
7029 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7030 (*fabd<SVE_F:mode>3): Rename to...
7031 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7032 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7033 (*mul<SVE_F:mode>3): Rename to...
7034 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7035 for SVE_STRICT_GP.
7036 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7037 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7038 to...
7039 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7040 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7041 (*<nlogical><PRED_ALL:mode>3): Rename to...
7042 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7043 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7044 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7045 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7046 (aarch64_pred_<logical_nn><mode>_z): ...this.
7047 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7048 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7049 (*fma<SVE_I:mode>4): Rename to...
7050 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7051 (*fnma<SVE_I:mode>4): Rename to...
7052 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7053 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7054 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7055 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7056 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7057 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7058 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7059 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7060 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7061 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7062 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7063 (@aarch64_sve_tmad<mode>): Likewise.
7064 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7065 (*aarch64_sel_dup<mode>): Rename to...
7066 (@aarch64_sel_dup<mode>): ...this.
7067 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7068 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7069 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7070 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7071 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7072 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7073 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7074 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7075 (*fcm<cmp_op><mode>): Rename to...
7076 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7077 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7078 (*fcmuo<mode>): Rename to...
7079 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7080 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7081 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7082 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7083 (fold_extract_last_<mode>): Generalize to...
7084 (@fold_extract_<last_op>_<mode>): ...this.
7085 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7086 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7087 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7088 DImode result explicit.
7089 (reduc_plus_scal_<mode>): Update accordingly.
7090 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7091 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7092 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7093 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7094 (*aarch64_sve_tbl<mode>): Rename to...
7095 (@aarch64_sve_tbl<mode>): ...this.
7096 (@aarch64_sve_compact<mode>): New pattern.
7097 (*aarch64_sve_dup_lane<mode>): Rename to...
7098 (@aarch64_sve_dup_lane<mode>): ...this.
7099 (@aarch64_sve_dupq_lane<mode>): New pattern.
7100 (@aarch64_sve_splice<mode>): Likewise.
7101 (aarch64_sve_<perm_insn><mode>): Rename to...
7102 (@aarch64_sve_<perm_insn><mode>): ...this.
7103 (*aarch64_sve_ext<mode>): Rename to...
7104 (@aarch64_sve_ext<mode>): ...this.
7105 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7106 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7107 to...
7108 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7109 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7110 Rename to...
7111 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7112 ...this.
7113 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7114 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7115 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7116 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7117 to...
7118 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7119 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7120 a "@" marker.
7121 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7122 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7123 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7124 pattern.
7125 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7126 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7127 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7128 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7129 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7130 "@" marker.
7131 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7132 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7133 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7134 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7135 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7136 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7137 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7138 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7139 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7140 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7141 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7142 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7143 (aarch64_sve_cnt_pat): Likewise.
7144 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7145 (*aarch64_sve_incsi_pat): Likewise.
7146 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7147 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7148 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7149 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7150 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7151 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7152 (*aarch64_sve_decsi_pat): Likewise.
7153 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7154 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7155 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7156 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7157 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7158 (@aarch64_pred_cntp<mode>): Likewise.
7159 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7160 New expander.
7161 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7162 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7163 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7164 New expander.
7165 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7166 New pattern.
7167 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7168 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7169 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7170 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7171 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7172 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7173 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7174 New expander.
7175 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7176 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7177 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7178 New expander.
7179 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7180 New pattern.
7181 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7182 expander.
7183 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7184 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7185 expander.
7186 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7187 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7188 expander.
7189 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7190 * config/aarch64/arm_sve.h: New file.
7191 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7192 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7193 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7194 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7195 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7196 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7197 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7198 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7199 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7200
7201 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7202
7203 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7204 New pattern.
7205 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7206 SVE modes.
7207
7208 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7209
7210 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7211 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7212 FFRT_REGNUM + 1.
7213 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7214 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7215 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7216 (aarch64_hard_regno_nregs): Handle the new register classes.
7217 (aarch64_hard_regno_mode_ok): Likewise.
7218 (aarch64_regno_regclass): Likewise.
7219 (aarch64_class_max_nregs): Likewise.
7220 (aarch64_register_move_cost): Likewise.
7221 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7222 as general register_operands.
7223
7224 2019-10-29 Martin Liska <mliska@suse.cz>
7225
7226 * ggc-common.c: One can't subtract unsigned types
7227 in compare function.
7228
7229 2019-10-29 Martin Liska <mliska@suse.cz>
7230
7231 * cgraphunit.c (symbol_table::compile): Pass
7232 title as dump_memory_report argument.
7233 * toplev.c (dump_memory_report): New argument.
7234 (finalize): Pass new argument.
7235 * toplev.h (dump_memory_report): Add argument.
7236
7237 2019-10-29 Martin Liska <mliska@suse.cz>
7238
7239 * ggc-common.c: Move Leak to the first column.
7240
7241 2019-10-29 Martin Liska <mliska@suse.cz>
7242
7243 * cgraphunit.c (symbol_table::compile): Remove argument
7244 for dump_memory_report.
7245 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7246 (compare_final): Remove in order to make report
7247 better readable.
7248 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7249 * mem-stats.h (mem_alloc_description::get_list):
7250 Do not pass cmp.
7251 (mem_alloc_description::dump): Likewise here.
7252 * toplev.c (dump_memory_report): Remove final
7253 argument.
7254 (finalize): Likewise.
7255 * toplev.h (dump_memory_report): Remove argument.
7256
7257 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7258
7259 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7260 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7261 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7262 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7263 accept "const".
7264
7265 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7266
7267 * coretypes.h (string_int_pair): New typedef.
7268 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7269 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7270 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7271
7272 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7273
7274 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7275 (simulate_builtin_function_decl): Declare.
7276 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7277 (LANG_HOOKS_INITIALIZER): Include it.
7278 * langhooks.c (add_builtin_function_common): Rename to...
7279 (build_builtin_function): ...this. Add a location parameter and use
7280 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7281 the decl instead.
7282 (add_builtin_function): Update accordingly, passing the returned
7283 decl to the lang hook.
7284 (add_builtin_function_ext_scope): Likewise
7285 (simulate_builtin_function_decl): New function.
7286
7287 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7288
7289 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7290 example, use actual names of supported offload targets.
7291
7292 PR target/92258
7293 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7294
7295 2019-10-28 Martin Sebor <msebor@redhat.com>
7296
7297 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7298 (handle_store): Pass argument to get_addr_stridx.
7299
7300 2019-10-28 Martin Sebor <msebor@redhat.com>
7301
7302 PR tree-optimization/92226
7303 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7304 the offset is in the open range outlined by SI's length.
7305
7306 2019-10-28 Martin Sebor <msebor@redhat.com>
7307
7308 PR c/66970
7309 * doc/cpp.texi (__has_builtin): Document.
7310 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7311
7312 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7313
7314 PR target/82981
7315 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7316 doubleword and low doubleword result of multiplication on
7317 MIPS64R6.
7318
7319 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7320 pure qualifier to the built-in.
7321 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7322 built-ins.
7323 (struct mips_builtin_description): Add is_pure flag.
7324 (mips_init_builtins): Mark built-in as pure if the flag in the
7325 corresponding mips_builtin_description struct is set.
7326
7327 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7328 alternative which covers the floating-point input value. Also
7329 forbid the split of insert.d pattern for floating-point values.
7330
7331 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7332
7333 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7334 * config/riscv/riscv-sr.c: New file.
7335 * config/riscv/riscv.c (riscv_reorg): New function.
7336 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7337 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7338 (riscv_remove_unneeded_save_restore_calls): Declare.
7339 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7340
7341 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7342
7343 PR tree-optimization/92163
7344 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7345 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7346 before calling bitmap_set_bit.
7347 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7348 delete_dead_or_redundant_assignment.
7349 (dse_dom_walker::dse_optimize_stmt): Likewise.
7350 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7351
7352 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7353
7354 PR middle-end/91272
7355 * tree-vect-stmts.c (vectorizable_condition): Support
7356 EXTRACT_LAST_REDUCTION with fully-masked loops.
7357
7358 2019-10-28 Richard Biener <rguenther@suse.de>
7359
7360 PR tree-optimization/92252
7361 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7362 STMT_VINFO_REDUC_IDX when swapping operands.
7363
7364 2019-10-28 Richard Biener <rguenther@suse.de>
7365
7366 PR tree-optimization/92241
7367 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7368 we failed to update the reduction index do not use the pattern
7369 stmts for the reduction chain.
7370 (vectorizable_reduction): When the reduction chain is corrupt,
7371 fail.
7372 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7373 fail to update the reduction chain.
7374
7375 2019-10-28 Richard Biener <rguenther@suse.de>
7376
7377 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7378 STMT_VINFO_REDUC_IDX from the actual stmt.
7379 (vect_transform_reduction): Likewise.
7380 (vectorizable_reduction): Compute the reduction chain length,
7381 do not recompute the reduction operand index. Remove no longer
7382 necessary restriction for condition reduction chains.
7383
7384 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7385
7386 PR target/92225
7387 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7388 condition for V2DImode.
7389
7390 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7391
7392 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7393 Remove %k operand modifier.
7394 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7395
7396 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7397
7398 PR rtl-optimization/92007
7399 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7400 call it after reload if hot/cold partitioning has been done.
7401 (class pass_postreload_jump): Rename to
7402 pass_jump_after_combine.
7403 (make_pass_postreload_jump): Rename to
7404 make_pass_jump_after_combine.
7405 * passes.def(pass_postreload_jump): Move before reload, rename
7406 to pass_jump_after_combine.
7407 * tree-pass.h (make_pass_postreload_jump): Rename to
7408 make_pass_jump_after_combine.
7409
7410 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7411
7412 PR ipa/92242
7413 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7414 for missing EDGE_REF
7415 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7416
7417 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7418
7419 PR tree-optimization/88760
7420 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7421 Enable -funroll-loops for -O2 and above.
7422 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7423 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7424 do not turn on web and rngreg implicitly, if the unroller is not
7425 explicitly enabled.
7426
7427 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7428
7429 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7430 jump functions.
7431
7432 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7433
7434 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7435 * cgraph.h (cgraph_node::rtl_info): Likewise.
7436
7437 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7438
7439 * ipa-cp.c (propagate_constants_across_call): If args are not available
7440 just drop everything to varying.
7441 (find_aggregate_values_for_callers_subset): Watch for missing
7442 edge summary.
7443 (find_more_scalar_values_for_callers_subs): Likewise.
7444 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7445 update_jump_functions_after_inlining, propagate_controlled_uses):
7446 Watch for missing summaries.
7447 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7448 is finished.
7449 (ipa_write_node_info): Watch for missing summaries.
7450 (ipa_read_edge_info): Create new ref.
7451 (ipa_edge_args_sum_t): Add remove.
7452 (IPA_EDGE_REF_GET_CREATE): New macro.
7453 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7454 edge summary.
7455 (remap_edge_change_prob): Likewise.
7456
7457 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7458
7459 * ipa-inline-transform.c (inline_call): update function summaries
7460 after expanidng thunk.
7461
7462 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7463
7464 * ipa-icf.c (sem_function::merge): Update function summaries.
7465 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7466
7467 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7468
7469 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7470 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7471 operand already has scalar mode.
7472 (iptr): Remove SF/DF.
7473
7474 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7475
7476 PR target/91289
7477 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7478 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7479 this.
7480
7481 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7482
7483 * config/i386/sse.md
7484 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7485 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7486 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7487 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7488 <sse>_vmmaskcmp<mode>3):
7489 Change predicates from vector_operand to nonimmediate_operand,
7490 constraints xBm to xm, since scalar operations don't need
7491 memory address alignment.
7492 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7493 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7494 round_saeonly_nimm_predicate with
7495 round_saeonly_nimm_scalar_predicate.
7496 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7497 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7498 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7499 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7500 avx512f_vmfmadd_<mode>_mask3<round_name>,
7501 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7502 *avx512f_vmfmsub_<mode>_mask<round_name>,
7503 avx512f_vmfmsub_<mode>_mask3<round_name>,
7504 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7505 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7506 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7507 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7508 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7509 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7510 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7511 cvtusi2<ssescalarmodesuffix>32<round_name>,
7512 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7513 round_nimm_predicate with round_nimm_scalr_predicate.
7514 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7515 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7516 avx512er_vmrcp28<mode><round_saeonly_name>,
7517 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7518 ): Replace round_saeonly_nimm_predicate with
7519 round_saeonly_nimm_scalar_predicate.
7520 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7521 vector_operand with nonimmediate_operand.
7522 * config/i386/subst.md (round_scalar_nimm_predicate,
7523 round_saeonly_scalar_nimm_predicate): Replace
7524 vector_operand with nonimmediate_operand.
7525
7526 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7527
7528 PR target/89071
7529 * config/i386/i386.md (*rcpsf2_sse): Add
7530 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7531 (*rsqrtsf2_sse): Ditto.
7532 (*sqrt<mode>2_sse): Ditto.
7533 (sse4_1_round<mode>2): separate constraint vm, add
7534 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7535 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7536 by pass rpad.
7537 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7538 Ditto.
7539 (*sse_vmrsqrtv4sf2): Ditto.
7540 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7541 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7542 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7543 <iptr> pointer size modifier since vround support memory operand.
7544
7545 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7546
7547 PR target/85969
7548 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7549 static function.
7550
7551 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7552 Tobias Burnus <tobias@codesourcery.com>
7553
7554 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7555 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7556 common block decls.
7557
7558 2019-10-25 Richard Biener <rguenther@suse.de>
7559
7560 PR tree-optimization/92222
7561 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7562 (_slp_oprnd_info::second_pattern): Likewise.
7563 (_slp_oprnd_info::any_pattern): New.
7564 (vect_create_oprnd_info): Adjust.
7565 (vect_get_and_check_slp_defs): Compute whether any stmt is
7566 in a pattern.
7567 (vect_build_slp_tree_2): Avoid building up a node from scalars
7568 if any of the operand defs, not just the first, is in a pattern.
7569
7570 2019-10-25 Richard Biener <rguenther@suse.de>
7571
7572 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7573 swapping if we actually have to modify the IL on a shared stmt.
7574 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7575 because we no longer modify the IL.
7576
7577 2019-10-25 Martin Liska <mliska@suse.cz>
7578
7579 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7580
7581 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7582
7583 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7584 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7585 handled by vect_transform_reduction. Allow fully-masked loops
7586 to be used with reduction chains.
7587 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7588 operations in fully-masked loops.
7589 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7590 operations in fully-masked loops.
7591
7592 2019-10-25 Richard Biener <rguenther@suse.de>
7593
7594 * tree-vect-loop.c (vectorizable_reduction): Verify
7595 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7596 correctly.
7597 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7598 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7599 stmts.
7600
7601 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7602
7603 * gimplify.h (omp_construct_selector_matches): Declare.
7604 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7605 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7606 called function if needed for flag_openmp.
7607 (gimplify_scan_omp_clauses): Set ctx->code.
7608 (omp_construct_selector_matches): New function.
7609 * omp-general.h (omp_constructor_traits_to_codes,
7610 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7611 * omp-general.c (omp_constructor_traits_to_codes,
7612 omp_context_selector_matches, omp_resolve_declare_variant): New
7613 functions.
7614
7615 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7616 literal.
7617 * config/rx/rx.c (rx_print_operand): Likewise.
7618 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7619 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7620 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7621 Likewise.
7622 * genemit.c (emit_c_code): Likewise.
7623 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7624
7625 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7626
7627 * symbols-summary.h (fast_function_summary<T *, V>::release,
7628 fast_call_summary<T *, V>::release): Free m_vector.
7629
7630 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7631
7632 * cgraphunit.c (symbol_table::process_new_functions): Call
7633 ipa_free_size_summary.
7634 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7635 (devirtualization_time_bonus): Update.
7636 (ipcp_propagate_stage): Update.
7637 * ipa-fnsummary.c (ipa_size_summaries): New.
7638 (ipa_fn_summary_alloc): Alloc size summary.
7639 (dump_ipa_call_summary): Update.
7640 (ipa_dump_fn_summary): Update.
7641 (analyze_function_body): Update.
7642 (compute_fn_summary): Likewise.
7643 (ipa_get_stack_frame_offset): New function.
7644 (inline_update_callee_summaries): Do not update frame offsets.
7645 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7646 remove call and function summary.
7647 (ipa_update_overall_fn_summary): Update.
7648 (inline_read_section): Update.
7649 (ipa_fn_summary_write): Update.
7650 (ipa_free_fn_summary): Do not remove summaries.
7651 (ipa_free_size_summary): New.
7652 (release summary pass): Also run at WPA.
7653 * ipa-fnsummary.h (ipa_size_summary): Declare.
7654 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7655 estimated_self_stack_size.
7656 (ipa_size_summary_t): New type.
7657 (ipa_size_summaries): Declare.
7658 (ipa_free_size_summary): Declare.
7659 (ipa_get_stack_frame_offset): Declare.
7660 * ipa-icf.c (sem_function::merge): Update.
7661 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7662 (estimate_growth): Update.
7663 (growth_likely_positive): Update.
7664 (clone_inlined_nodes): Update.
7665 (inline_call): Update.
7666 * ipa-inline.c (caller_growth_limits): Update.
7667 (edge_badness): Update.
7668 (recursive_inlining): Update.
7669 (inline_small_functions): Update.
7670 (inline_to_all_callers_1): Update.
7671 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7672
7673 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7674
7675 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7676 (uavg<mode>3_ceil): ... This.
7677 (altivec_vavgs<VI_char>): Rename to...
7678 (avg<mode>3_ceil): ... This.
7679 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7680 VAVGUW, VAVGSW): Adjust.
7681
7682 2019-10-24 Nathan Sidwell <nathan@acm.org>
7683
7684 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7685
7686 2019-10-24 Martin Liska <mliska@suse.cz>
7687
7688 * symbol-summary.h (gt_pch_nx): Mark all functions
7689 with gcc_unreachable as we do not expect to be called.
7690
7691 2019-10-24 Richard Biener <rguenther@suse.de>
7692
7693 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7694 chains try harder with operand swapping and instead of
7695 putting a shifted chain into the reduction operands put
7696 a repetition of the final reduction op there as if we'd
7697 reassociate the expression.
7698
7699 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7700
7701 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7702 statics_not_read and statics_not_written to statics_read and
7703 statics_written respectively.
7704 (no_module_statics): New static var.
7705 (ipa_reference_get_not_read_global): Rename to ...
7706 (ipa_reference_get_read_global): ... this.
7707 (ipa_reference_get_not_written_global): Rename to ...
7708 (ipa_reference_get_written_global): ... this.
7709 (dump_static_vars_set_to_file): Dump no_module_statics.
7710 (copy_static_var_set): Add for propagation parameter.
7711 (ipa_init): Initialize no_module_statics.
7712 (ipa_ref_opt_summary_t::duplicate): Update.
7713 (ipa_ref_opt_summary_t::remove): Update.
7714 (propagate): Update.
7715 (write_node_summary_p): Look correctly for bitmap differences.
7716 (ipa_reference_write_optimization_summary): Update.
7717 (ipa_reference_read_optimization_summary): Update.
7718 * ipa-reference.h
7719 (ipa_reference_get_not_read_global): Rename to ...
7720 (ipa_reference_get_read_global): ... this.
7721 (ipa_reference_get_not_written_global): Rename to ...
7722 (ipa_reference_get_written_global): ... this.
7723 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7724 (call_may_clobber_ref_p_1): Update.
7725
7726 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7727
7728 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7729 and add comment.
7730 (msp430_hard_regno_nregs_with_padding): Remove.
7731
7732 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7733
7734 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7735 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7736 shift amount is between 1 and 4.
7737 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7738 is between 1 and 4.
7739
7740 2019-10-24 Richard Biener <rguenther@suse.de>
7741
7742 PR tree-optimization/92205
7743 * tree-vect-loop.c (vectorizable_reduction): Restrict
7744 search for alternate vectype_in to lane-reducing patterns
7745 we support.
7746
7747 2019-10-24 Richard Biener <rguenther@suse.de>
7748
7749 PR tree-optimization/92203
7750 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7751 Skip eliminating conversion stmts inserted by insertion.
7752
7753 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7754
7755 * config/s390/s390.c (s390_get_thread_pointer): Use
7756 gen_get_thread_pointer.
7757 (s390_expand_split_stack_prologue): Likewise.
7758 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7759 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7760 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7761 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7762 parameterized name.
7763
7764 2019-10-24 Richard Biener <rguenther@suse.de>
7765
7766 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7767 SLP discovery fails try to handle the reduction as part
7768 of SLP reduction discovery.
7769
7770 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7771
7772 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7773 declaration.
7774 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7775 attribute if it exists, rather than the insn size. If we use the
7776 insn size, adjust the size to remove the extra size that prefixed
7777 instructions take.
7778 (rs6000_adjust_insn_length): New function.
7779 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7780 update the instruction sized if prefixed instructions are used.
7781 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7782 (non_prefixed_length attribute): Delete.
7783 (num_insns attribute): New insn attribute to return the number of
7784 instructions.
7785 (max_prefixed_insns attribute): New insn attribute to return the
7786 maximum number of prefixed instructions in an insn.
7787 (length attribute): Do not adjust for prefix instructions here,
7788 punt to ADJUST_INSN_LENGTH.
7789 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7790 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7791 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7792 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7793 max_prefixed_insns and num_insns.
7794
7795 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7796 (movtd_64bit_nodm): Reformat.
7797 (mov<mode>_32bit): Reformat.
7798 (mov<mode>_softfloat): Reformat.
7799 (FMOVE128_GPR splitter): Reformat.
7800 (DIFD splitter): Reformat.
7801 (TI2 splitter): Reformat.
7802 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7803 bits of the offset for the memory address are non-zero, use PLWA
7804 if prefixed instructions are available.
7805
7806 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7807
7808 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7809
7810 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7811
7812 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7813 previous patch.
7814
7815 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7816
7817 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7818 (cmp_symbol_files): New.
7819 (lto_output): Copy sections in file order.
7820 * lto-streamer.h (lto_file_decl_data): Add field order.
7821
7822 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7823
7824 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7825 * ipa-reference.c (reference_vars_map_t): new type.
7826 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7827 (ipa_reference_var_uid): Implement.
7828 (varpool_node_hooks): New static var.
7829 (varpool_removal_hook): New function.
7830 (is_improper): Do not check bitmap for id==-1
7831 (get_static_name): Update.
7832 (ipa_init): Initialize new datastructures.
7833 (analyze_function): Do not recompute ids.
7834 (propagate): Free reference_vars_to_consider.
7835 (stream_out_bitmap): Update.
7836 (ipa_reference_read_optimization_summary): Update.
7837
7838 2019-10-23 qing zhao <qing.zhao@oracle.com>
7839
7840 PR gcov-profile/91971
7841 * coverage.c (coverage_init): Mangle the full path of filename when
7842 filename is a absolute path.
7843
7844 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7845
7846 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7847 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7848 (msp430_has_hwmult): New.
7849 (msp430_output_labelref):
7850 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7851 * config/msp430/msp430.md (mulhisi3): Likewise.
7852 (umulhisi3): Likewise.
7853 (mulsidi3): Likewise.
7854 (umulsidi3): Likewise.
7855
7856 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7857
7858 PR ipa/92074
7859 * params.def (inline-heuristics-hint-percent): Set to 600.
7860
7861 2019-10-23 Richard Biener <rguenther@suse.de>
7862
7863 PR tree-optimization/65930
7864 * tree-vect-loop.c (check_reduction_path): Allow conversions
7865 that only change the sign.
7866 (vectorizable_reduction): Relax latch def stmts we handle further.
7867
7868 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7869
7870 PR debug/90231
7871 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7872 (remove_unused_ivs): Use it instead of get_computation_at. When
7873 choosing best candidate, only consider candidates where
7874 get_debug_computation_at actually returns non-NULL.
7875
7876 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7877
7878 PR tree-optimization/92131
7879 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7880 range would be symbolic, drop to varying for any explicit overflow
7881 in the constant part or if neither range is a singleton.
7882
7883 2019-10-23 Martin Liska <mliska@suse.cz>
7884
7885 PR middle-end/81669
7886 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7887 Initialize m_data.
7888
7889 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7890
7891 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7892 int_mode_for_mode rather than mode_for_int_vector for scalars.
7893
7894 2019-10-23 Richard Biener <rguenther@suse.de>
7895
7896 PR tree-optimization/92179
7897 * tree-vect-stmts.c (vectorizable_shift): For shift args
7898 that are all the same remove type restriction in the SLP case.
7899 Adjust SLP code to handle converting of the shift arg to
7900 only apply in case the modes are different.
7901
7902 2019-10-23 Martin Liska <mliska@suse.cz>
7903
7904 PR ipa/91969
7905 * ipa-inline.c (recursive_inlining): Do not print
7906 when curr->count is not initialized.
7907
7908 2019-10-23 Richard Biener <rguenther@suse.de>
7909
7910 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7911 op from scalars in case there's a constant operand in its
7912 definition.
7913
7914 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7915
7916 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7917 against out of range max skip or log values.
7918
7919 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7920
7921 * cgraph.c (dump_graphviz): Change name to dump_name
7922
7923 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7926 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7927 subtraction from a carry operation.
7928
7929 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7930
7931 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7932
7933 2019-10-22 Richard Biener <rguenther@suse.de>
7934
7935 PR tree-optimization/92173
7936 * tree-vect-loop.c (vectorizable_reduction): If
7937 vect_transform_reduction cannot handle code-generation try without
7938 the single-def-use-cycle optimization. Pass optab_vector to
7939 optab_for_tree_code to get vector shifts as that's what we'd
7940 generate.
7941
7942 2019-10-22 Michael Matz <matz@suse.de>
7943
7944 PR middle-end/90796
7945 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7946 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7947 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7948
7949 2019-10-22 Richard Biener <rguenther@suse.de>
7950
7951 PR tree-optimization/92173
7952 * tree-vect-loop.c (vectorizable_reduction): If
7953 vect_transform_reduction cannot handle code-generation try without
7954 the single-def-use-cycle optimization. Pass optab_vector to
7955 optab_for_tree_code to get vector shifts as that's what we'd
7956 generate.
7957
7958 2019-10-22 Martin Liska <mliska@suse.cz>
7959
7960 * diagnostic-format-json.cc (json_from_expanded_location):
7961 Use json::integer_number.
7962 * gcov.c (output_intermediate_json_line): Use new
7963 json::integer_number.
7964 (output_json_intermediate_file): Likewise.
7965 * json.cc (number::print): Move to ...
7966 (float_number::print): ... this.
7967 (integer_number::print): New.
7968 (test_writing_numbers): Move to ...
7969 (test_writing_float_numbers): ... this.
7970 (test_writing_integer_numbers): New.
7971 (json_cc_tests): Register test_writing_integer_numbers.
7972 * json.h (class value): Add forward declaration
7973 for float_number and integer_number.
7974 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7975 (class number): Move to ...
7976 (class float_number): ... this.
7977 (class integer_number): New.
7978 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7979 Use json::integer_number.
7980 (optrecord_json_writer::location_to_json): Likewise.
7981 (optrecord_json_writer::profile_count_to_json): Likewise.
7982 (optrecord_json_writer::pass_to_json): Likewise.
7983
7984 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7985
7986 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7987 autodetected_vector_size rather than vector_size is zero.
7988 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7989 Set autodetected_vector_size immediately after calling
7990 vect_analyze_loop_2. Check for a fatal error before advancing
7991 next_size.
7992
7993 2019-10-21 Jason Merrill <jason@redhat.com>
7994
7995 * lock-and-run.sh: Check for process existence rather than timeout.
7996
7997 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7998
7999 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8000 widening multiplication.
8001
8002 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8003
8004 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8005 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8006 type attribute.
8007 (subsi3_carryin_shift): Separate into register and constant controlled
8008 alternatives. Use shift_amount_operand for operand 4. Set shift
8009 attribute and simplify type attribute.
8010 (subsi3_carryin_shift_alt): Likewise.
8011 (rsbsi3_carryin_shift): Likewise.
8012 (rsbsi3_carryin_shift_alt): Likewise.
8013 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8014 and register controlled shifts into distinct alternatives.
8015 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8016 (andsi_not_shiftsi_si_scc): Likewise.
8017 (arm_cmpsi_negshiftsi_si): Likewise.
8018 (not_shiftsi): Remove redundant M constraint from alternative 1.
8019 (not_shiftsi_compare0): Likewise.
8020 (arm_cmpsi_insn): Remove redundant alternative 2.
8021 (cmpsi_shift_swp): Likewise.
8022 (sub_shiftsi): Likewise.
8023 (sub_shiftsi_compare0_scratch): Likewise.
8024 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8025 (thumb2_cmpsi_neg_shiftsi): Likewise.
8026
8027 2019-10-21 Richard Biener <rguenther@suse.de>
8028
8029 PR tree-optimization/92162
8030 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8031 STMT_VINFO_REDUC_IDX in reduc_info.
8032 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8033
8034 2019-10-21 Richard Biener <rguenther@suse.de>
8035
8036 * tree-vectorizer.h (_slp_tree::ops): New member.
8037 (SLP_TREE_SCALAR_OPS): New.
8038 (vect_get_slp_defs): Adjust prototype.
8039 * tree-vect-slp.c (vect_free_slp_tree): Release
8040 SLP_TREE_SCALAR_OPS.
8041 (vect_create_new_slp_node): Initialize it. New overload for
8042 initializing by an operands array.
8043 (_slp_oprnd_info::ops): New member.
8044 (vect_create_oprnd_info): Initialize it.
8045 (vect_free_oprnd_info): Release it.
8046 (vect_get_and_check_slp_defs): Populate the operands array.
8047 Do not swap operands in the IL when not necessary.
8048 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8049 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8050 swap operands in the operands array. Do not swap operands in
8051 the IL.
8052 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8053 (vect_gather_slp_loads): Fix.
8054 (vect_detect_hybrid_slp_stmts): Likewise.
8055 (vect_slp_analyze_node_operations_1): Search for a internal
8056 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8057 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8058 the def-type push/pop dance.
8059 (vect_get_constant_vectors): Compute number_of_vectors here.
8060 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8061 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8062 (vect_get_slp_defs): Simplify greatly.
8063 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8064 (vect_transform_reduction): Likewise.
8065 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8066 (vectorizable_call): Likewise.
8067 (vectorizable_operation): Likewise.
8068 (vectorizable_load): Likewise.
8069 (vectorizable_condition): Likewise.
8070 (vectorizable_comparison): Likewise.
8071
8072 2019-10-21 Richard Biener <rguenther@suse.de>
8073
8074 PR tree-optimization/92161
8075 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8076 for reductions.
8077
8078 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8079
8080 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8081 (aarch64_rndr): New define_insn.
8082 (aarch64_rndrrs): Likewise.
8083 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8084 (TARGET_RNG): Likewise.
8085 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8086 argument.
8087 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8088 Add fourth argument in prototype.
8089 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8090 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8091 (aarch64_init_rng_builtins): Define.
8092 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8093 (aarch64_expand_rng_builtin): Define.
8094 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8095 RNG builtins.
8096 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8097 __ARM_FEATURE_RNG when TARGET_RNG.
8098 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8099
8100 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8101
8102 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8103 alignment is more restrictive.
8104
8105 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8106
8107 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8108 (vect_update_max_nunits): Update comment.
8109 (current_vector_size): Delete.
8110 * tree-vect-stmts.c (current_vector_size): Likewise.
8111 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8112 of current_vector_size.
8113 (get_mask_type_for_scalar_type): Likewise.
8114 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8115 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8116 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8117 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8118 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8119 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8120
8121 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8122
8123 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8124 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8125 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8126 accordingly.
8127
8128 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8129
8130 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8131 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8132 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8133 call accordingly.
8134 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8135
8136 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8137
8138 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8139 a loop_vec_info.
8140 (vect_set_loop_condition_masked): Update call accordingly.
8141
8142 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8143
8144 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8145 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8146 (simple_integer_narrowing): Update call accordingly.
8147 (vectorizable_conversion): Likewise.
8148
8149 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8150
8151 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8152 (vectorizable_call): Update call accordingly.
8153
8154 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8155
8156 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8157 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8158 (duplicate_and_interleave): Update call accordingly.
8159 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8160
8161 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8162
8163 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8164 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8165 (vect_get_constant_vectors): Update call accordingly.
8166 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8167
8168 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8169
8170 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8171 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8172 (vect_prologue_cost_for_slp_op): Update call accordingly.
8173 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8174 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8175 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8176 (get_mask_type_for_scalar_type): Likewise.
8177 (vect_get_vector_types_for_stmt): Likewise.
8178 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8179 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8180 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8181 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8182 (vect_split_statement, vect_convert_input): Likewise.
8183 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8184 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8185 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8186 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8187 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8188 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8189 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8190 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8191 (vect_recog_mask_conversion_pattern): Likewise.
8192 (vect_add_conversion_to_pattern): Likewise.
8193 (vect_recog_gather_scatter_pattern): Likewise.
8194 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8195 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8196
8197 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8198
8199 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8200 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8201 (vect_check_load_store_mask): Update call accordingly.
8202 (vect_get_mask_type_for_stmt): Likewise.
8203 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8204 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8205 (vect_convert_mask_for_vectype): Likewise.
8206
8207 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8208
8209 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8210 a vec_info.
8211 (vect_recog_dot_prod_pattern): Update call accordingly.
8212 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8213 (vect_recog_widen_sum_pattern): Likewise.
8214
8215 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8216
8217 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8218 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8219 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8220 accordingly.
8221
8222 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8223
8224 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8225 get_vectype_for_scalar_type_and_size instead of
8226 get_vectype_for_scalar_type.
8227
8228 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8229
8230 * common.opt (-fcommon): Fix description.
8231
8232 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8233
8234 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8235 * config/i386/i386.c (ix86_pre_reload_split): New function.
8236 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8237 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8238 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8239 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8240 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8241 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8242 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8243 *<shift_insn><dwi>3_doubleword_mask,
8244 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8245 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8246 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8247 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8248 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8249 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8250 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8251 *avx2_<code>v8qiv8si2<mask_name>_2,
8252 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8253 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8254 *avx512f_<code>v8qiv8di2<mask_name>_2,
8255 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8256 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8257 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8258 sse4_2_pcmpistr): Likewise.
8259
8260 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8261
8262 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8263 now defaults to https.
8264
8265 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8266
8267 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8268 skip non-zero array accesses.
8269
8270 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8271
8272 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8273 and return a boolean success value. Move the allocation and
8274 initialization of the bb_vec_info to...
8275 (vect_slp_bb_region): ...here. Update call accordingly.
8276 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8277 than in vect_slp_analyze_bb_1.
8278
8279 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8280
8281 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8282 when processing the given datarefs for the first time and
8283 check_datarefs subsequently.
8284 (vect_slp_bb_region): New function, split out of...
8285 (vect_slp_bb): ...here. Don't recompute the region bounds and
8286 dataref sets when retrying with a different vector size.
8287
8288 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8289 Uroš Bizjak <ubizjak@gmail.com>
8290
8291 PR target/92140
8292 * config/i386/predicates.md (int_nonimmediate_operand): New special
8293 predicate.
8294 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8295 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8296 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8297 define_insn_and_split patterns.
8298
8299 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8300
8301 * config/rs6000/rs6000.md: Delete out--of-date comment about
8302 special-casing integer loads.
8303
8304 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8305
8306 * escaped_string.h (escaped_string): New header.
8307 * tree.c (escaped_string): Remove escaped_string class.
8308
8309 2019-10-18 Martin Sebor <msebor@redhat.com>
8310
8311 PR tree-optimization/92157
8312 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8313 compute_string_length to return a negative result.
8314
8315 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8316
8317 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8318 (negvsi3, negvdi3): Delete.
8319 (negdi2_compare): Delete.
8320
8321 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8322
8323 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8324 operations.
8325 (subdi3_compare1): Delete pattern.
8326 (subvsi3_borrow): New insn pattern.
8327 (subvsi3_borrow_imm): Likewise.
8328
8329 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8330
8331 * config/arm/arm.md (subv<mode>4): Delete.
8332 (subvdi4): New expander pattern.
8333 (subvsi4): Likewise. Handle some immediate values.
8334 (subvsi3_intmin): New insn pattern.
8335 (subvsi3): Likewise.
8336 (subvsi3_imm1): Likewise.
8337 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8338 idioms.
8339
8340 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8341
8342 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8343 incoming operands. Early split the calculation into SImode
8344 operations.
8345 (usubvsi3_borrow): New insn pattern.
8346 (usubvsi3_borrow_imm): Likewise.
8347
8348 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8349
8350 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8351 (usubvsi4): New pattern. Allow some immediate values for inputs.
8352 (usubvdi4): New pattern.
8353
8354 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8355
8356 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8357 or second operand of the PLUS inside a DImode equality test to be
8358 sign-extend when selecting CC_Vmode.
8359 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8360 instructions.
8361 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8362 expand patterns.
8363 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8364 (addsi3_cin_vout_0): Likewise.
8365 (adddi3_compareV): Delete.
8366
8367 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8368
8369 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8370 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8371 to transform this back into the summation version when that leads
8372 to smaller code.
8373
8374 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8375
8376 * config/arm/arm.md (addv<mode>4): Delete.
8377 (addvsi4): New pattern. Handle immediate values that the architecture
8378 supports.
8379 (addvdi4): New pattern.
8380 (addsi3_compareV): Rename to ...
8381 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8382 and use COMPARE rather than NE.
8383 (addsi3_compareV_imm): New pattern.
8384 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8385 a signed-overflow check.
8386
8387 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8388
8389 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8390 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8391 CC_ADCmode.
8392 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8393 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8394 with overflow.
8395 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8396 expand patterns.
8397 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8398 (addsi3_cin_cout_imm_insn): Likewise.
8399 (adddi3_compareC): Delete insn.
8400 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8401
8402 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8403
8404 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8405 * (uaddv<mode>4): Delete expansion pattern.
8406 (uaddvsi4): New pattern.
8407 (uaddvdi4): Likewise.
8408 (addsi3_compareC): Delete pattern, change callers to use
8409 addsi3_compare_op1.
8410 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8411 reduce the number of alternatives and re-work type attribute handling.
8412 (addsi3_compare_op2): Clean up constraints to reduce the number of
8413 alternatives and re-work type attribute handling.
8414 (compare_addsi2_op0): Likewise.
8415 (compare_addsi2_op1): Likewise.
8416
8417 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8418
8419 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8420 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8421 for DImode operands.
8422 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8423 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8424 CC_NCVmode.
8425 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8426 (arm_cmpdi_unsigned): Delete.
8427
8428 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8429
8430 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8431 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8432 unchanged only if that will be cheaper.
8433 (arm_select_cc_mode): Recognize a swapped comparison that will
8434 be regenerated using RSBS or RSCS. Relax restriction on selecting
8435 CC_RSBmode.
8436 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8437 a constant.
8438 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8439 is CC_RSBmode.
8440 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8441 as CCmode.
8442 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8443 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8444
8445 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8446
8447 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8448 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8449 need these modes.
8450 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8451 of EQ, NE, LT, GE, LTU and GEU.
8452 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8453 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8454 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8455 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8456 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8457
8458 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8459
8460 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8461 operand 2.
8462 (cstoredi4): Similarly, but for operand 3.
8463 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8464 canonicalization of unsigned compares with a constant on Arm.
8465 Prefer using const+1 and adjusting the comparison over swapping the
8466 operands whenever the original constant was not valid.
8467 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8468 register here.
8469 (arm_validize_comparison): Do not force invalid DImode operands to
8470 registers here.
8471
8472 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8473
8474 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8475 return CC_Zmode if comparing against a constant where one word is
8476 zero.
8477 (arm_gen_compare_reg): Split DImode handling to ...
8478 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8479 against simple constants.
8480 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8481
8482 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8483
8484 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8485 (rsbsi3_carryin_shift_alt): Likewise.
8486
8487 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8488
8489 * config/arm/arm.md (negscc_borrow): New pattern.
8490 (mov_negscc): Don't split if the insn would match negscc_borrow.
8491 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8492 (thumb2_mov_negscc_strict_it): Likewise.
8493
8494 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8495
8496 * config/arm/arm.c (arm_insn_cost): New function.
8497 (TARGET_INSN_COST): Override default definition.
8498
8499 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8500
8501 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8502 borrow operations.
8503
8504 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8505
8506 * config/arm/arm.c (strip_carry_operation): New function.
8507 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8508 for SImode.
8509
8510 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8511
8512 * config/arm/predicates.md (arm_carry_operation): New special
8513 predicate.
8514 * config/arm/iterators.md (LTUGEU): Delete iterator.
8515 (cnb): Delete code attribute.
8516 (optab): Delete ltu and geu elements.
8517 * config/arm/arm.md (addsi3_carryin): Renamed from
8518 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8519 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8520 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8521 (addsi3_carryin_clobercc): Similarly.
8522 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8523 Thumb2 state.
8524
8525 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8526
8527 * config/arm/arm.md (arm_subdi3): Delete insn.
8528 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8529
8530 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8531
8532 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8533 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8534 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8535 return CC_RSBmode.
8536 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8537 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8538 expand.
8539 (subdi3): Rewrite to early-expand the sub-operations.
8540 (rsb_im_compare): New pattern.
8541 (negdi2): Delete.
8542 (negdi2_insn): Delete.
8543 (arm_negsi2): Correct type attribute to alu_imm.
8544 (negsi2_0compare): New insn pattern.
8545 (negsi2_carryin): New insn pattern.
8546
8547 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8548
8549 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8550 operand 2.
8551
8552 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8553
8554 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8555 to match canonical form.
8556
8557 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8558
8559 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8560 (extend<mode>di2): Likewise.
8561
8562 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8563
8564 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8565 * config/arm/arm.c (arm_decompose_di_binop): New function.
8566 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8567 If not generating Thumb-1 code, decompose the operation into 32-bit
8568 pieces.
8569 * add0si_carryin_<optab>: New pattern.
8570
8571 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8572
8573 * arm.md (adddi3): Only accept register operands.
8574 (arm_adddi3): Convert to simple insn with no split. Do not accept
8575 constants.
8576 (adddi_sesidi_di): Delete patern.
8577 (adddi_zesidi_di): Likewise.
8578 (uaddv<mode>4): Use LTU as condition for branch.
8579 (adddi3_compareV): Convert to simple insn with no split.
8580 (addsi3_compareV_upper): Delete pattern.
8581 (adddi3_compareC): Convert to simple insn with no split. Correct
8582 flags setting expression.
8583 (addsi3_compareC_upper): Delete pattern.
8584 (addsi3_compareC): Correct flags setting expression.
8585 (subdi3_compare1): Convert to simple insn with no split.
8586 (subsi3_carryin_compare): Delete pattern.
8587 (arm_subdi3): Convert to simple insn with no split.
8588 (subdi_zesidi): Delete pattern.
8589 (subdi_di_sesidi): Delete pattern.
8590 (subdi_zesidi_di): Delete pattern.
8591 (subdi_sesidi_di): Delete pattern.
8592 (subdi_zesidi_zesidi): Delete pattern.
8593 (negvdi3): Use s_register_operand.
8594 (negdi2_compare): Convert to simple insn with no split.
8595 (negdi2_insn): Likewise.
8596 (negsi2_carryin_compare): Delete pattern.
8597 (negdi_zero_extendsidi): Delete pattern.
8598 (arm_cmpdi_insn): Convert to simple insn with no split.
8599 (negdi2): Don't call gen_negdi2_neon.
8600 * config/arm/neon.md (adddi3_neon): Delete pattern.
8601 (subdi3_neon): Delete pattern.
8602 (negdi2_neon): Delete pattern.
8603 (splits for negdi2_neon): Delete splits.
8604
8605 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8606
8607 PR middle-end/92153
8608 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8609 than after it.
8610
8611 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8612
8613 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8614 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8615 new multilib variants and new mappings.
8616
8617 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8618
8619 PR target/86040
8620 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8621
8622 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8623 Richard Sandiford <richard.sandiford@arm.com>
8624
8625 PR target/86753
8626 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8627 and define hashmap traits for it.
8628 (loop_vec_info::scalar_cond_masked_set): New member.
8629 (vect_record_loop_mask): Adjust prototype.
8630 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8631 Implement method.
8632 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8633 vect_record_loop_mask.
8634 (vectorizable_live_operation): Likewise.
8635 (vect_record_loop_mask): New param scalar_mask. Add entry
8636 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8637 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8638 Pass it as last arg to vect_record_loop_mask.
8639 (vectorizable_call): Pass scalar_mask as last arg to
8640 vect_record_loop_mask.
8641 (vectorizable_store): Likewise.
8642 (vectorizable_load): Likewise.
8643 (vectorizable_condition): Check if another part of vectorized code
8644 applies loop_mask to condition or to it's inverse, and if yes,
8645 apply loop_mask to result of vector comparison.
8646
8647 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8648
8649 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8650
8651 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8652
8653 PR tree-optimization/92056
8654 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8655 before calling compute_builtin_object_size.
8656
8657 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8658
8659 PR target/65342
8660 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8661 (movdi_low_st): Delete.
8662 * config/rs6000/rs6000.c
8663 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8664 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8665 * config/rs6000/rs6000.md (movsi_low): Delete.
8666
8667 2019-10-17 Jason Merrill <jason@redhat.com>
8668
8669 * gimplify.h (get_initialized_tmp_var): Add default argument to
8670 post_p.
8671 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8672 NULL post_p argument.
8673 * targhooks (std_gimplify_va_arg_expr): Likewise.
8674
8675 2019-10-17 Richard Biener <rguenther@suse.de>
8676
8677 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8678 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8679 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8680 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8681 * tree-vect-loop.c (vect_is_simple_reduction): Set
8682 STMT_VINFO_REDUC_CODE.
8683 (vectorizable_reduction): Remove dead and redundant code, use
8684 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8685
8686 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8687
8688 Fix breakage introduced by r276985.
8689
8690 * config/avr/avr.c (avr_option_override): Remove set of
8691 PARAM_ALLOW_STORE_DATA_RACES.
8692 * common/config/avr/avr-common.c (avr_option_optimization_table)
8693 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8694
8695 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8696
8697 * config/i386/i386.h (processor_costs): Add clear_ratio.
8698 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8699 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8700 of 6 and move_ratio in all cost models.
8701
8702 2019-10-17 Richard Biener <rguenther@suse.de>
8703
8704 * tree-vect-loop.c (check_reduction_path): Compute reduction
8705 operation here.
8706 (vect_is_simple_reduction): Remove special-case of single-stmt
8707 reduction path detection.
8708
8709 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8710
8711 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8712
8713 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8714
8715 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8716 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8717 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8718 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8719 New combine patterns.
8720 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8721 above.
8722 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8723
8724 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8725
8726 * tree-vrp.c (value_range_base::dump): Display +INF for both
8727 pointers and integers when appropriate.
8728
8729 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8730
8731 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8732 when to use versioning threshold.
8733
8734 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8735
8736 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8737 outlined code from ...
8738 (vect_analyze_loop_2): ... here.
8739
8740 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8741
8742 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8743 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8744 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8745
8746 2019-10-17 Richard Biener <rguenther@suse.de>
8747
8748 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8749 (vect_is_simple_reduction): Move all validity checks ...
8750 (vectorizable_reduction): ... here. Compute whether we
8751 need a fold-left reduction here.
8752 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8753 both overloads, check needs_fold_left_reduction_p directly.
8754 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8755
8756 2019-10-17 Richard Biener <rguenther@suse.de>
8757
8758 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8759 TARGET_MEM_REF creation.
8760
8761 2019-10-17 Richard Biener <rguenther@suse.de>
8762
8763 PR tree-optimization/92129
8764 * tree-vect-loop.c (vectorizable_reduction): Also fail
8765 on GIMPLE_SINGLE_RHS.
8766
8767 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8768
8769 PR tree-optimization/92056
8770 * tree-object-size.c (cond_expr_object_size): Return early if then_
8771 processing resulted in unknown size.
8772
8773 PR tree-optimization/92115
8774 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8775 temporary if it could trap.
8776
8777 2019-10-17 Richard Biener <rguenther@suse.de>
8778
8779 PR debug/91887
8780 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8781 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8782
8783 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8784
8785 * tree-ssa-strlen.c (maybe_invalidate): Use
8786 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8787
8788 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8789 Jim Wilson <jimw@sifive.com>
8790
8791 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8792 regs to SIBCALL_REGS.
8793 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8794 passing regs to SIBCALL_REGS.
8795
8796 2019-10-16 Martin Sebor <msebor@redhat.com>
8797
8798 PR tree-optimization/83821
8799 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8800 the length of a string when available.
8801 (handle_builtin_memset) Add argument.
8802 (handle_store, strlen_check_and_optimize_call): Same.
8803 (check_and_optimize_stmt): Same. Pass it to callees.
8804
8805 2019-10-16 Martin Sebor <msebor@redhat.com>
8806
8807 PR tree-optimization/91996
8808 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8809 information.
8810 (compare_nonzero_chars): Add an overload.
8811 (count_nonzero_bytes): Add an argument. Call overload above.
8812 Handle non-constant lengths in some range.
8813 (handle_store): Add an argument.
8814 (check_and_optimize_stmt): Pass an argument to handle_store.
8815
8816 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8817
8818 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8819
8820 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8821
8822 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8823 operands which correspond to the same input-output register to
8824 have the same pseudo assigned to them.
8825
8826 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8827
8828 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8829
8830 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8831
8832 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8833 Apply reasonable limit to symbol offsets.
8834
8835 2019-10-16 Richard Biener <rguenther@suse.de>
8836
8837 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8838 (vect_is_simple_reduction): Delay checking to
8839 vectorizable_reduction and relax the checking.
8840 (vectorizable_reduction): Check we have a simple use. Check
8841 for bogus condition reductions.
8842 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8843 are looking at the last stmt in a pattern sequence when
8844 filling in backedge PHI values.
8845
8846 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8847 Jiufu Guo <guojiufu@linux.ibm.com>
8848
8849 PR target/70010
8850 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8851 the callee explicitly disables some isa_flags the caller is using.
8852
8853 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8854
8855 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8856
8857 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8858
8859 * genmodes.c (mode_data::order): New field.
8860 (blank_mode): Update accordingly.
8861 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8862 (make_vector_modes): Likewise.
8863 (VECTOR_MODES): Update use accordingly.
8864 (cmp_modes): Sort by the new order field ahead of sorting by size.
8865 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8866 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8867 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8868 (aarch64_classify_vector_mode): Handle the new partial modes.
8869 (aarch64_vl_bytes): New function.
8870 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8871 when counting the number of registers in an SVE mode.
8872 (aarch64_class_max_nregs): Likewise.
8873 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8874 in registers yet.
8875 (aarch64_classify_address): Treat partial vectors analogously
8876 to full vectors.
8877 (aarch64_print_address_internal): Consolidate the printing of
8878 MUL VL addresses, using aarch64_vl_bytes as the number of
8879 bytes represented by "VL".
8880 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8881
8882 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8883
8884 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8885 rather than known_lt when choosing frame layouts.
8886
8887 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8888
8889 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8890 that all the adjustments add up to the full frame size.
8891 Use crtl->outgoing_args_size directly as the final adjustment
8892 where appropriate.
8893
8894 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8895
8896 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8897 "frame" reference instead of always referring directly to
8898 "cfun->machine->frame".
8899
8900 2019-10-16 Richard Biener <rguenther@suse.de>
8901
8902 PR tree-optimization/92119
8903 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8904 against missing bswap lhs.
8905
8906 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8907
8908 PR middle-end/92033
8909 * poly-int.h (constant_lower_bound_with_limit): New function.
8910 (constant_upper_bound_with_limit): Likewise.
8911 * doc/poly-int.texi: Document them.
8912 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8913 into the worst-case INTEGER_CST bounds.
8914
8915 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8916
8917 PR ipa/91088
8918 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8919 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8920 * ipa-predicat.h (struct expr_eval_op): New struct.
8921 (expr_eval_ops): New typedef.
8922 (struct condition): Add type and param_ops fields, remove size field.
8923 (add_condition): Replace size parameter with type parameter, add
8924 param_ops parameter.
8925 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8926 (predicate::add_clause): Add comparisons on type and param_ops.
8927 (dump_condition): Add debug dump for param_ops.
8928 (remap_after_inlining): Adjust call arguments to add_condition.
8929 (add_condition): Replace size parameter with type parameter, add
8930 param_ops parameter. Unshare constant value used in conditions.
8931 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8932 parameter expressions using param_ops.
8933 (decompose_param_expr): New function.
8934 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8935 to replace call to unmodified_parm_or_parm_agg_item.
8936 (set_switch_stmt_execution_predicate): Likewise.
8937 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8938 with type.
8939 (inline_read_section): Read param_ops from summary stream.
8940 (ipa_fn_summary_write): Write param_ops to summary stream.
8941
8942 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8943
8944 PR rtl-optimization/92107
8945 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8946 expression written.
8947
8948 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8949
8950 * config/darwin.c: Update description of fix and continue.
8951
8952 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8953
8954 * config/darwin.c (darwin_binds_local_p): Update to call
8955 default_binds_local_p_3 () directly. amend comments.
8956
8957 2019-10-15 Richard Biener <rguenther@suse.de>
8958
8959 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8960 (tree_is_indexable): Use it.
8961 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8962 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8963 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8964
8965 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8966
8967 * config/msp430/msp430.md (zero_extendqipsi2): New.
8968 (zero_extendqisi2): Optimize case where src register and base dst
8969 register are the same.
8970 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8971 (zero_extendpsisi2): Optimize r->m case.
8972 Add unnamed insn patterns to catch insns combine searches for when
8973 optimizing pointer manipulation.
8974
8975 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8976
8977 * config/msp430/msp430.md: Group zero_extend* insns together.
8978
8979 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8980
8981 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8982 constraint.
8983 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8984 POST_INC.
8985 (msp430_subreg): Likewise.
8986 (msp430_split_addsi): Likewise.
8987 (msp430_print_operand_addr): Likewise.
8988 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8989 (USE_STORE_POST_INCREMENT): Define.
8990 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8991 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8992 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8993 (msp430_general_dst_operand): New.
8994 (msp430_general_dst_nonv_operand): New.
8995 (msp430_nonsubreg_operand): Remove.
8996 (msp430_nonsubreg_dst_operand): New.
8997 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8998 of defunct msp430_nonsubreg_operand.
8999 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9000
9001 2019-10-15 Richard Biener <rguenther@suse.de>
9002
9003 PR tree-optimization/91929
9004 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9005 (get_or_alloc_expr_for_name): Initialize it.
9006 (get_or_alloc_expr_for_constant): Likewise.
9007 (phi_translate_1): Copy it.
9008 (create_expression_by_pieces): Use the original location
9009 of the expression for the inserted stmt.
9010 (compute_avail): Record the location of the stmt for the
9011 expressions created.
9012
9013 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9014
9015 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9016 before using tree_to_uhwi.
9017
9018 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9019
9020 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9021
9022 2019-10-15 Richard Biener <rguenther@suse.de>
9023
9024 PR tree-optimization/92094
9025 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9026 do not adjust the reduction definition def type.
9027 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9028 defines the latch argument of the PHI.
9029
9030 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9031
9032 PR target/92035
9033 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9034 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9035 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9036 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9037 _mm_maskz_roundscale_round_sd): New intrinsics.
9038 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9039 __builtin_ia32_rndscales?_mask_round builtins instead of
9040 __builtin_ia32_rndscales?_round.
9041 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9042 __builtin_ia32_rndscalesd_round): Remove.
9043 (__builtin_ia32_rndscaless_mask_round,
9044 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9045 * config/i386/sse.md
9046 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9047 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9048 ... this, adjust and add subst atrributes to make it maskable.
9049
9050 2019-10-15 Richard Biener <rguenther@suse.de>
9051
9052 PR middle-end/92046
9053 * common.opt (fallow-store-data-races): New.
9054 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9055 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9056 * doc/invoke.texi (fallow-store-data-races): Document.
9057 (--param allow-store-data-races): Remove docs.
9058 * opts.c (default_options_table): Enable -fallow-store-data-races
9059 at -Ofast.
9060 (default_options_optimization): Do not enable --param
9061 allow-store-data-races at -Ofast.
9062 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9063 instead of PARAM_ALLOW_STORE_DATA_RACES.
9064 * tree-ssa-loop-im.c (execute_sm): Likewise.
9065
9066 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9067
9068 PR tree-optimization/92085
9069 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9070 instead of calling it unconditionally after
9071 delete_dead_or_redundant_assignment and fix indentation.
9072
9073 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9074
9075 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9076 TARGET_VFP_DOUBLE.
9077 (*fmsub<SDF:mode>4): Likewise.
9078 *fnmsub<SDF:mode>4): Likewise.
9079 (*fnmadd<SDF:mode>4): Likewise.
9080
9081 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9082
9083 * doc/tree-ssa.texi: Update renamed macro name.
9084
9085 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9086
9087 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9088 vector constants.
9089
9090 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9091
9092 * config/darwin.c: Use unsigned ints for the picbase label
9093 counters, initialise the vars explicitly.
9094 (update_pic_label_number_if_needed): Move a variable declaration
9095 to where it's needed.
9096 (machopic_output_function_base_name): Use a more strict checking
9097 assert, and and unsigned int for the picbase label counter.
9098 (machopic_get_function_picbase): Likewise.
9099
9100 2019-10-14 Richard Biener <rguenther@suse.de>
9101
9102 PR middle-end/92046
9103 * dse.c (scan_insn): Use param max_active_local_stores.
9104 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9105 based on optimization level.
9106 * loop-invariant.c (move_loop_invariants): Adjust
9107 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9108 * opts.c (default_options_optimization): Do not adjust
9109 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9110 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9111
9112 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9113
9114 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9115
9116 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9117
9118 * config/arm/arm.c (arm_option_override): Don't override sched
9119 pressure algorithm.
9120
9121 2019-10-14 Richard Biener <rguenther@suse.de>
9122
9123 PR tree-optimization/92069
9124 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9125 cycles do not set vect_nested_cycle on the latch definition.
9126
9127 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9128
9129 * function-abi.h (expr_callee_abi): Declare.
9130 * function-abi.cc (expr_callee_abi): New function.
9131
9132 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9133
9134 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9135 into [1,MAX].
9136 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9137 non-zero being represented as [1,MAX].
9138
9139 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9140
9141 * tree-sra.c (dump_access): Add missing braces.
9142
9143 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9144
9145 * config/darwin.c (machopic_indirection_name): Rework the
9146 function to emit linker-visible symbols only for indirections
9147 in the data section. Clean up the code and update comments.
9148
9149 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9150
9151 * config/darwin.c (machopic_indirect_data_reference): Remove
9152 redundant code.
9153
9154 2019-10-13 Nathan Sidwell <nathan@acm.org>
9155
9156 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9157
9158 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9159
9160 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9161 c99_runtime.
9162
9163 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9164
9165 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9166 so non-virutal are before virutals.
9167 (output_function): Avoid body modifications.
9168
9169 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9170
9171 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9172 %r22. Load function address before global pointer.
9173 (pa_attr_length_indirect_call): Adjust length of inline versions of
9174 $$dyncall.
9175 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9176 before normal cases. Update inline $$dyncall sequences to preserve
9177 function descriptor address in register %r22.
9178 (TRAMPOLINE_CODE_SIZE): Adjust.
9179 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9180 register %r22 contains trampoline address.
9181 (pa_trampoline_init): Adjust offsets.
9182 (pa_trampoline_adjust_address): Likewise.
9183 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9184
9185 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9186
9187 PR target/67183
9188 * config/darwin.c (machopic_indirection): New field to flag
9189 non-lazy-symbol-pointers in the data section.
9190 (machopic_indirection_name): Compute if an indirection should
9191 appear in the data section.
9192 (machopic_output_data_section_indirection): New callback split
9193 from machopic_output_indirection.
9194 (machopic_output_stub_indirection): Likewise.
9195 (machopic_output_indirection): Retain the code for non-lazy
9196 symbol pointers in their regular section.
9197 (machopic_finish): Use the new callbacks to order the indirection
9198 output.
9199
9200 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9201
9202 * config/darwin-protos.h (machopic_finish): Delete.
9203 * config/darwin.c (machopic_finish): Make static.
9204
9205 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9206
9207 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9208 sections when building kernel extension code.
9209
9210 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9211
9212 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9213 later standard."
9214
9215 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9216
9217 * config/pa/pa.c (pa_option_override): Remove trailing comma
9218 from warning.
9219
9220 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9221
9222 PR middle-end/92063
9223 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9224 <case VEC_COND_EXPR>: Return false with *handled = false.
9225 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9226 recursing on the first operand.
9227 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9228 instead of tree_could_trap_p.
9229 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9230
9231 2019-10-11 Jim Wilson <jimw@sifive.com>
9232
9233 PR rtl-optimization/91860
9234 * combine.c (subst): If new_rtx is a constant, also check for
9235 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9236
9237 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9238
9239 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9240 INTVAL when calling store_bit_field.
9241
9242 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9243
9244 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9245 size.
9246
9247 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9248
9249 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9250 vectorizable_live_operation.
9251 (vectorizable_live_operation): Adjust parameters.
9252 * tree-vect-stmts.c (vect_init_vector,
9253 vect_gen_widened_results_half): Fix typo in function comment.
9254 (can_vectorize_live_stmts): Adjust function comment.
9255 Adjust parameters. Adjust call to vectorizable_live_operation.
9256 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9257 (vect_transform_stmt): Adjust function comment. Adjust call to
9258 can_vectorize_live_stmts.
9259 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9260
9261 2019-10-11 Richard Biener <rguenther@suse.de>
9262
9263 PR tree-optimization/90883
9264 PR tree-optimization/91091
9265 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9266 alias-sets both for recording VN table entries and continuing
9267 walking after translating through copies. Handle same-sized
9268 reads from SSA names by returning the plain SSA name.
9269 (eliminate_dom_walker::eliminate_stmt): Properly handle
9270 non-size precision stores in redundant store elimination.
9271
9272 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9273
9274 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9275 (ggc_collect): Dump later to not interfere with release_page dump.
9276 (ggc_trim): New function.
9277 * ggc-none.c (ggc_trim): New.
9278 * ggc.h (ggc_trim): Declare.
9279
9280 2019-10-11 Richard Biener <rguenther@suse.de>
9281
9282 PR tree-optimization/92066
9283 PR tree-optimization/92046
9284 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9285 Fix bogus cost model check.
9286
9287 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9288
9289 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9290 (LANG_HOOKS_DECLS): Add it.
9291 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9292 update comment for omp_is_optional_argument.
9293 * omp-general.c (omp_is_allocatable_or_ptr): New.
9294 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9295 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9296 Fortran's optional arguments and allocatable/pointer scalars
9297 with use_device_addr.
9298
9299 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9300
9301 PR target/77918
9302 * config/s390/2827.md: Add new opcodes.
9303 * config/s390/2964.md: Likewise.
9304 * config/s390/3906.md: Likewise.
9305 * config/s390/8561.md: Likewise.
9306 * config/s390/s390-builtins.def (s390_vfchesb): Use
9307 the new vec_cmpgev4sf_quiet_nocc.
9308 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9309 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9310 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9311 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9312 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9313 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9314 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9315 * config/s390/s390-modes.def (CCSFPS): New mode.
9316 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9317 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9318 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9319 (s390_expand_vec_compare): Use non-signaling patterns where
9320 necessary.
9321 (s390_reverse_condition): Support CCSFPS.
9322 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9323 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9324 (asm_fcmp_op): Likewise.
9325 (*smaxv2df3_vx): Use pattern for quiet comparison.
9326 (*sminv2df3_vx): Likewise.
9327 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9328 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9329 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9330 (vec_cmplt<mode>_quiet_nocc): New expander.
9331 (vec_cmpge<mode>_quiet_nocc): New pattern.
9332 (vec_cmple<mode>_quiet_nocc): New expander.
9333 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9334 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9335 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9336 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9337 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9338 (vec_cmpungt<mode>): New expander.
9339 (vec_cmpunge<mode>): Likewise.
9340 (vec_cmpuneq<mode>): Use quiet patterns.
9341 (vec_cmpltgt<mode>): Allow only on z14+.
9342 (vec_cmpordered<mode>): Use quiet patterns.
9343 (vec_cmpunordered<mode>): Likewise.
9344 (VEC_CMP_EXPAND): Add ungt and unge.
9345
9346 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9347
9348 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9349 parameter.
9350 * lto-streamer-out.c: Include tree-dfa.h.
9351 (output_cfg): Do not use cfun.
9352 (lto_prepare_function_for_streaming): New.
9353 (output_function): Do not push cfun; do not initialize loop optimizer.
9354 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9355 * passes.c (ipa_write_summaries): Use it.
9356 (ipa_write_optimization_summaries): Do not modify bodies.
9357 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9358 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9359 * tree-ssa-dse.c (pass_dse::execute): Update use of
9360 renumber_gimple_stmt_uids.
9361 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9362
9363 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9364
9365 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9366 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9367
9368 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9369
9370 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9371 macros.
9372 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9373 Also define DFP macros for these conditions.
9374 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9375 DEC128_SUBNORMAL_MIN): Do not define.
9376 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9377 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9378
9379 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9380 Sandra Loosemore <sandra@codesourcery.com>
9381
9382 PR middle-end/26241
9383 * doc/lto.texi (IPA): Reference to the IPA passes.
9384 * doc/passes.texi (Pass manager): Add node IPA passes and
9385 description for each IPA pass.
9386
9387 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9388
9389 * ipa-reference.c: Do not include splay-tree.h
9390 (reference_vars_to_consider): Turn to hash map.
9391 (get_static_name, ipa_init, analyze_function, propagate,
9392 stream_out_bitmap, ipa_reference_write_optimization_summary,
9393 ipa_reference_write_optimization_summary): Update.
9394
9395 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9396
9397 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9398
9399 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9400
9401 * config/darwin.c: Lookup Objective C metadata and force indirection
9402 for IVAR refs.
9403
9404 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9405
9406 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9407 addresses.
9408 (mem_operand_gpr): Add check for prefixed addresses.
9409 (mem_operand_ds_form): Add check for prefixed addresses.
9410 (rs6000_legitimate_offset_address_p): If we support prefixed
9411 addresses, check for a 34-bit offset instead of 16-bit.
9412 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9413 Do not allow load/store with update if the address is prefixed.
9414 (rs6000_mode_dependent_address): If we support prefixed
9415 addresses, check for a 34-bit offset instead of 16-bit.
9416
9417 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9418
9419 PR target/77918
9420 * config/s390/vector.md (vcond_comparison_operator): New
9421 predicate.
9422 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9423
9424 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9425
9426 PR 87488
9427 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9428 -D.
9429 * configure.ac (--with-documentation-root-url): New option.
9430 * configure: Regenerate.
9431 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9432 option URL, add it as a new string field of the diagnostic option.
9433 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9434 (print_option_information): If get_option_url is non-NULL, call
9435 it, and if the result is non-NULL, potentially emit an escape
9436 sequence to markup the option text with the resulting URL.
9437 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9438 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9439 example of JSON output.
9440 * opts-diagnostic.h (get_option_url): New decl.
9441 * opts.c (get_option_url): New function.
9442 * toplev.c (general_init): Initialize the get_option_url callback.
9443
9444 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9445
9446 PR 87488
9447 * common.opt (fdiagnostics-urls=): New option.
9448 (diagnostic-url.h): Add SourceInclude.
9449 (diagnostic_url_rule): New enum.
9450 * diagnostic-color.c: Include "diagnostic-url.h".
9451 (diagnostic_urls_enabled_p): New function.
9452 * diagnostic-url.h: New file.
9453 * diagnostic.c: Include "diagnostic-url.h".
9454 (diagnostic_urls_init): New function.
9455 * diagnostic.h (diagnostic_urls_init): New decl.
9456 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9457 -fdiagnostics-urls to the list.
9458 (-fdiagnostics-urls): New option.
9459 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9460 (driver::global_initializations): Call diagnostic_urls_init.
9461 * opts-global.c (init_options_once): Likewise.
9462 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9463 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9464 show_urls.
9465 (pp_begin_url): New function.
9466 (pp_end_url): New function.
9467 (selftest::test_urls): New selftest.
9468 (selftest::pretty_print_c_tests): Call it.
9469 * pretty-print.h (pretty_printer::show_urls): New field.
9470 (pp_begin_url): New decl.
9471 (pp_end_url): New decl.
9472
9473 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9474
9475 PR target/92022
9476 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9477
9478 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9479
9480 PR target/88630
9481 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9482 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9483 also for TARGET_FPU_SH4_300.
9484 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9485 TARGET_SH4_300.
9486 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9487 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9488 (*negsf2_i): Split into ...
9489 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9490 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9491 (**abssf2_i): Split into ...
9492 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9493 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9494 (*negdf2_i): Split into ...
9495 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9496 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9497 (**abssf2_i): Split into ...
9498 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9499
9500 2019-10-10 Richard Biener <rguenther@suse.de>
9501
9502 PR middle-end/92046
9503 * opts.c (finish_options): Do not influence global --params
9504 from options that are adjustable per function.
9505 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9506 Apply --param adjustment based on active cost-model.
9507 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9508 further store-sinking when vectorization or if-conversion
9509 are not enabled.
9510
9511 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9512
9513 PR middle-end/92037
9514 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9515 rather than ggc_alloc_cleared to alloc symbol table.
9516 * toplev.c (general_init): Likewise.
9517 * cgraph.h (symbol_table): Explicitly construct every field.
9518
9519 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9520
9521 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9522 (PF_Z15): ... this.
9523 * config.gcc: Add z15 as option for --with-arch and --with-tune
9524 configure switches.
9525 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9526 error reporting for unsupported builtins.
9527 * config/s390/s390-opts.h (enum processor_type): Rename
9528 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9529 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9530 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9531 Likewise.
9532 * config/s390/s390-builtins.def: Likewise.
9533 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9534 (s390_expand_builtin): Add missing check for unsupported builtins.
9535 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9536 (s390_rtx_costs): Likewise.
9537 (s390_get_sched_attrmask): Rename arch13 to z15.
9538 (s390_get_unit_mask): Likewise.
9539 (s390_is_fpd): Likewise.
9540 (s390_is_fxd): Likewise.
9541 * config/s390/s390.h (enum processor_flags): Likewise.
9542 * config/s390/s390.md: Likewise.
9543 * config/s390/vector.md: Likewise.
9544 * config/s390/vx-builtins.md: Likewise.
9545 * config/s390/s390.opt: Add z15 to processor_type value.
9546
9547 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9548
9549 PR target/91035
9550 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9551 prototype.
9552 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9553 ("split_stack_data", "split_stack_call")
9554 ("split_stack_call_<mode>", "split_stack_cond_call")
9555 ("split_stack_cond_call_<mode>"): Remove.
9556 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9557 insn definition.
9558 * config/s390/s390.c (s390_output_split_stack_data): New function.
9559 (s390_expand_split_stack_prologue): Use the merged expander.
9560
9561 2019-10-09 Martin Sebor <msebor@redhat.com>
9562
9563 PR tree-optimization/90879
9564 * builtins.c (check_access): Avoid using maxbound when null.
9565 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9566 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9567 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9568 conditional.
9569 (get_range_strlen): Overwrite initial maxbound when non-null.
9570 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9571 changes.
9572 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9573 (used_only_for_zero_equality): New function.
9574 (handle_builtin_memcmp): Call it.
9575 (determine_min_objsize): Return an integer instead of tree.
9576 (get_len_or_size, strxcmp_eqz_result): New functions.
9577 (maybe_warn_pointless_strcmp): New function.
9578 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9579 between a longer string and a smaller array.
9580 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9581
9582 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9583
9584 * config/darwin.c (darwin_override_options): Make the check for
9585 Objective-C ABI version more specific for 64bit code.
9586
9587 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9588
9589 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9590 indicate that the new symbol is an indirection.
9591 (machopic_indirect_call_target): Likewise.
9592 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9593 (MACHO_SYMBOL_INDIRECTION_P): New.
9594 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9595
9596 2019-10-08 Jason Merrill <jason@redhat.com>
9597
9598 * doc/invoke.texi: Document -fconcepts-ts.
9599
9600 2019-10-09 Richard Biener <rguenther@suse.de>
9601
9602 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9603 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9604
9605 2019-10-08 Richard Biener <rguenther@suse.de>
9606
9607 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9608 (_stmt_vec_info::force_single_cycle): Likewise.
9609 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9610 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9611 * tree-vect-loop.c (vectorizable_reduction): Set
9612 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9613 (vect_transform_reduction): Use them to remove redundant code.
9614 (vect_transform_cycle_phi): Likewise.
9615
9616 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9617
9618 PR tree-optimization/90836
9619 * match.pd (popcount): New pattern.
9620
9621 2019-10-08 Martin Sebor <msebor@redhat.com>
9622
9623 PR middle-end/92026
9624 PR middle-end/92014
9625 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9626 again once nbytes has been set. Set the access size when not yet set.
9627
9628 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9629
9630 * config/darwin.c (machopic_select_section): Remove dead code for
9631 old Objective-C section selection method, replace with unreachable.
9632
9633 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9634
9635 * config/darwin.c (machopic_indirect_data_reference): Check for
9636 required indirections before making direct access to defined
9637 values.
9638 (machopic_output_indirection): Place the indirected pointes for
9639 required indirections into the non-lazy symbol pointers section.
9640 (darwin_encode_section_info):
9641 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9642 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9643
9644 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9645
9646 PR target/91994
9647 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9648 instead of ALL_SSE_REG to check if function call preserves some
9649 256-bit SSE registers.
9650
9651 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9652
9653 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9654 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9655 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9656
9657 2019-10-08 Richard Biener <rguenther@suse.de>
9658
9659 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9660 (_stmt_vec_info::is_reduc_info): Add.
9661 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9662 (vectorizable_condition): Remove.
9663 (vectorizable_shift): Likewise.
9664 (vectorizable_reduction): Adjust.
9665 (info_for_reduction): New.
9666 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9667 (vect_analyze_scalar_cycles_1): ... here.
9668 (vect_analyze_loop_operations): Adjust.
9669 (needs_fold_left_reduction_p): Simplify for single caller.
9670 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9671 for nested cycles not part of double reductions.
9672 (vect_model_reduction_cost): Pass in the reduction type.
9673 (info_for_reduction): New function.
9674 (vect_create_epilog_for_reduction): Use it, access reduction
9675 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9676 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9677 (vectorize_fold_left_reduction): Remove pointless assert.
9678 (vectorizable_reduction): Analyze the full reduction when
9679 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9680 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9681 stmt code-generation to vectorizable_* in most cases. Verify
9682 code-generation only for cases handled by
9683 vect_transform_reductuon.
9684 (vect_transform_reduction): Use info_for_reduction to get at
9685 reduction meta. Simplify.
9686 (vect_transform_cycle_phi): Likewise.
9687 (vectorizable_live_operation): Likewise.
9688 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9689 at the PHI node for STMT_VINFO_REDUC_TYPE.
9690 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9691 longer necessary code.
9692 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9693 (vectorizable_condition): Likewise. Get at reduction related
9694 info via info_for_reduction.
9695 (vect_analyze_stmt): Adjust.
9696 (vect_transform_stmt): Likewise.
9697 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9698 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9699
9700 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9701
9702 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9703 -fno-fp-int-builtin-inexact default for C2X.
9704
9705 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9706 Richard Biener <rguenther@suse.de>
9707
9708 PR tree-optimization/91532
9709 * tree-if-conv.c: Include tree-ssa-dse.h.
9710 (ifcvt_local_dce): Change param from bb to loop,
9711 and call dse_classify_store.
9712 (tree_if_conversion): Pass loop instead of loop->header as arg
9713 to ifcvt_local_dce.
9714 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9715 (delete_dead_or_redundant_assignment): Remove static qualifier from
9716 declaration, and add prototype in tree-ssa-dse.h.
9717 (dse_store_status): Move to tree-ssa-dse.h.
9718 (dse_classify_store): Remove static qualifier and add new tree param
9719 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9720 * tree-ssa-dse.h: New header.
9721
9722 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9723
9724 * config/darwin.c (machopic_output_indirection): Don't put
9725 hidden symbol indirections into the .data section, use the
9726 non-lazy symbol pointers section as normal.
9727 (darwin_encode_section_info): Record if a symbol is hidden.
9728 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9729 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9730
9731 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9732
9733 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9734 predicates instead of accessing bits directly.
9735 (machopic_indirect_call_target): Likewise.
9736 (machopic_output_indirection): Likewise.
9737 (darwin_encode_section_info): Improve description. Use renamed
9738 symbol flags. Use predicate macros for variables and functions.
9739 * config/darwin.h:
9740 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9741 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9742 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9743 (MACHO_SYMBOL_VARIABLE_P): New.
9744 (MACHO_SYMBOL_DEFINED_P):New.
9745 (MACHO_SYMBOL_STATIC_P): New.
9746 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9747 (SYMBOL_FLAG_SUBT_DEP): New.
9748 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9749
9750 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9751
9752 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9753 (msp430_expand_epilogue): Likewise.
9754 * config/msp430/predicates.md: Likewise.
9755 * config/msp430/msp430.md: Likewise.
9756 Replace blocks of 8 spaces with tabs.
9757
9758 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9759
9760 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9761 * config/msp430/msp430.c (msp430_split_addsi): New.
9762 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9763 a block of C code for splitting addsi.
9764
9765 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9766
9767 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9768 ix86_expand_rounddf_32): Reorder functions.
9769 * config/i386/i386-protos.h: Update.
9770
9771 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9772
9773 * config.in: Regenerate.
9774 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9775 Add new "Yx" constraint.
9776 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9777 function.
9778 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9779 prototype.
9780 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9781 code/data region to be selected in the small memory model.
9782 (msp430_section_attr): Don't warn if the "section" and "lower"
9783 attributes are used together.
9784 (msp430_handle_generic_attribute): Likewise.
9785 (msp430_var_in_low_mem): New function.
9786 (TARGET_ENCODE_SECTION_INFO): Define.
9787 (msp430_encode_section_info): New function.
9788 (gen_prefix): Return early in the small memory model.
9789 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9790 ".lower" prefix if -m{code,data}-region=lower have been passed.
9791 (msp430_output_aligned_decl_common): Emit common symbols when
9792 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9793 set.
9794 (TARGET_ASM_FILE_END): Define.
9795 (msp430_file_end): New function.
9796 (msp430_do_not_relax_short_jumps): Allow relaxation when
9797 function will be in the lower region.
9798 (msp430_op_not_in_high_mem): New function.
9799 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9800 the 'X' operand selector.
9801 Clarify comment for 'x' operand selector.
9802 * config/msp430/msp430.h (LINK_SPEC): Propagate
9803 -m{code,data}-region to the linker via spec function
9804 msp430_propagate_region_opt.
9805 (msp430_propagate_region_opt): New prototype.
9806 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9807 (SYMBOL_FLAG_LOW_MEM): Define.
9808 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9809 selector.
9810 (zero_extendqihi2): Fix operand number used by "%X" selector.
9811 (zero_extendqisi2): Likewise.
9812 (zero_extendhisi2): Likewise.
9813 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9814 (movhi): Likewise.
9815 (addqi3): Likewise.
9816 (addhi3): Likewise.
9817 (addsi3): Likewise.
9818 (addhi3_cy): Likewise.
9819 (addchi4_cy): Likewise.
9820 (subqi3): Likewise.
9821 (subhi3): Likewise.
9822 (subsi3): Likewise.
9823 (bic<mode>3): Likewise.
9824 (and<mode>3): Likewise.
9825 (ior<mode>3): Likewise.
9826 (xor<mode>3): Likewise.
9827 (slli_1): Add missing "%X" operand selector.
9828 (slll_1): Likewise.
9829 (slll_2): Likewise.
9830 (srai_1): Likewise.
9831 (sral_1): Likewise.
9832 (sral_2): Likewise.
9833 (srli_1): Likewise.
9834 (srll_1): Likewise.
9835 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9836 selector.
9837 (cbranchhi4_real): Likewise.
9838 (cbranchqi4_reversed): Likewise.
9839 (cbranchhi4_reversed): Likewise.
9840 (*bitbranch<mode>4): Likewise.
9841 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9842 * config/msp430/msp430.opt (mcode-region=): Set default to
9843 MSP430_REGION_LOWER. Improve docstring.
9844 (mdata-region=): Likewise.
9845 (muse-lower-region-prefix): New option.
9846 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9847 mdata-region=none multilib.
9848 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9849 mdata-region=none multilib.
9850 MULTILIB_EXCEPTIONS: Remove.
9851 MULTILIB_REQUIRED: Define.
9852 * configure: Regenerate.
9853 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9854 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9855 * doc/extend.texi: Clarify comment for {upper,lower,either}
9856 function attributes.
9857 Add separate description for "lower" variable attribute.
9858
9859 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9860
9861 PR target/77918
9862 * optabs-tree.c (vcond_icode_p): New function.
9863 (vcond_eq_icode_p): Likewise.
9864 (expand_vec_cond_expr_p): Use vcond_icode_p and
9865 vcond_eq_icode_p.
9866 * optabs.c (can_vcond_compare_p): New function.
9867 * optabs.h (can_vcond_compare_p): Likewise.
9868
9869 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9870
9871 PR target/77918
9872 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9873 caller passes a non-trapping condition.
9874 (is_gimple_condexpr): Allow trapping conditions.
9875 (is_gimple_condexpr_1): New helper function.
9876 (is_gimple_condexpr_for_cond): New function, acts like old
9877 is_gimple_condexpr.
9878 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9879 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9880 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9881 * gimplify.c (gimplify_cond_expr): Use
9882 is_gimple_condexpr_for_cond.
9883 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9884 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9885 VEC_COND_EXPR.
9886 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9887 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9888 is_gimple_condexpr_for_cond, remove pointless tmp check
9889 (forward_propagate_into_cond): Remove pointless tmp check.
9890
9891 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9892
9893 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9894 match that of other gsi_next_* functions. Adjust the comment.
9895 (gsi_start_nonvirtual_phis): New function.
9896 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9897 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9898
9899 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9900
9901 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9902 setjmp situation here. Fix a verb's ending: "the exact variables or
9903 elements for which there are warnings depends" -> "... depend".
9904
9905 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9906
9907 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9908
9909 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9910
9911 * ipa-prop.c (ipa_vr::nonzero_p): New.
9912 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9913 non-zero range.
9914 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9915 * tree-vrp.c (range_has_numeric_bounds_p): New.
9916 (range_int_cst_p): Use range_has_numeric_bounds_p.
9917 (get_range_op_handler): New.
9918 (supported_types_p): New.
9919 (defined_ranges_p): New.
9920 (drop_undefines_to_varying): New.
9921 (range_fold_binary_symbolics_p): New.
9922 (range_fold_unary_symbolics_p): New.
9923 (range_fold_unary_expr): Extract out into above functions.
9924 (range_fold_binary_expr): Same.
9925 (value_range_base::normalize_addresses): New.
9926 (value_range_base::normalize_symbolics): Normalize addresses.
9927 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9928
9929 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9930
9931 * tree-vrp.c (value_range_base::singleton_p): Use
9932 value_range_base::num_pairs instead of vrp_val_is* to check
9933 if a range has one sub-range.
9934
9935 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9936
9937 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9938 DEF is not a true earlyclobber but is tied to a specific input
9939 operand, and so is effectively earlyclobber wrt inputs that have
9940 different values.
9941 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9942
9943 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9944
9945 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9946 (pod_mode): Mark operators likewise.
9947 (scalar_int_mode): Mark non-default constructors and
9948 operators with CONSTEXPR.
9949 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9950 (fixed_size_mode): Likewise.
9951
9952 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9953
9954 PR target/91994
9955 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9956 and wrap the unspec_volatile in a parallel.
9957 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9958 the unspec_volatile.
9959 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9960 unspec_volatile to be wrapped in a parallel.
9961 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9962 (ix86_add_reg_usage_to_vzerouppers): New functions.
9963 (rest_of_handle_insert_vzeroupper): Use them to add register
9964 usage information to the vzeroupper instructions.
9965
9966 2019-10-07 Richard Biener <rguenther@suse.de>
9967
9968 PR tree-optimization/91975
9969 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9970 handle invariants.
9971
9972 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9973
9974 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9975 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9976
9977 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9978
9979 * config/darwin.c (darwin_override_options): Adjust objective-c
9980 ABI version error messages to avoid punctuation and contracted
9981 negations.
9982
9983 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9984
9985 * ipa-inline.c: Fix type; compute size rather than self_size
9986 for size of caller function.
9987
9988 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9989
9990 PR target/59888
9991 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9992 choose const_data section for constants with relocations.
9993 (machopic_select_section): Pass relocation flag to
9994 darwin_rodata_section ().
9995
9996 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9997
9998 PR tree-optimization/91734
9999 * generic-match-head.c: Include fold-const-call.h.
10000 * match.pd (sqrt(x) cmp c): Check the boundary value and
10001 in case inexact computation of c*c affects comparison of the boundary,
10002 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10003 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10004 for -frounding-math. For c2, try the next smaller or larger floating
10005 point constant depending on comparison code and if it has the same
10006 sqrt as c2, use it instead of c2.
10007
10008 2019-10-04 Martin Sebor <msebor@redhat.com>
10009
10010 PR middle-end/91977
10011 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10012 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10013 uninitialized objects.
10014
10015 2019-10-04 Martin Sebor <msebor@redhat.com>
10016
10017 * builtins.c (compute_objsize): Add an argument.
10018 * tree-object-size.c (addr_object_size): Same.
10019 (compute_builtin_object_size): Same.
10020 * tree-object-size.h (compute_builtin_object): Same.
10021
10022 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10023
10024 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10025
10026 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10027
10028 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10029
10030 2019-10-04 Martin Jambor <mjambor@suse.cz>
10031
10032 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10033 fntype when switching to calling memcpy instead of memset.
10034
10035 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10036
10037 * hash-table.h (hash_table::empty_slow): Don't assign
10038 size_t values to int variables.
10039
10040 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10041
10042 * expr.c (convert_mode_scalar): Remove shadowing local var.
10043 (emit_block_move): Rename local vars.
10044 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10045 (emit_push_insn): Rename local vars.
10046 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10047 shadowing local vars.
10048 (store_constructor): Remove shadowing local vars. Rename local var.
10049 (store_field, expand_cond_expr_using_cmove,
10050 expand_expr_real_2): Remove shadowing local vars.
10051 (expand_expr_real_1,
10052 do_store_flag): Remove shadowing local vars. Rename local vars.
10053
10054 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10055
10056 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10057
10058 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10059
10060 * genmatch.c (commutate): Rename local var.
10061 (lower_cond): Reuse local var.
10062 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10063 dt_operand::gen, dt_operand::gen_gimple_expr,
10064 dt_simplify::gen): Add a param. Rename generated vars.
10065 (decision_tree::insert_operand,
10066 (capture_info::walk_match, capture_info::walk_result,
10067 capture_info::walk_c_expr): Rename local vars.
10068 (expr::gen_transform): Rename generated vars.
10069 Use snprintf. Rename local vars.
10070 (capture::gen_transform, dt_operand::get_name,
10071 dt_operand::gen_opname): Rename generated vars.
10072 (write_predicate): Adjust call to gen_kids.
10073 (parser::get_internal_capture_id): Rename generated vars.
10074 (parser::parse_expr): Rename local vars.
10075 (parser::parse_if): Remove local var.
10076 (parser::parse_pattern, add_operator): Rename local vars.
10077
10078 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10079
10080 * builtins.def (DEF_C2X_BUILTIN): New macro.
10081 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10082 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10083 (strndup): Use DEF_C2X_BUILTIN.
10084 * coretypes.h (enum function_class): Add function_c2x_misc.
10085
10086 2019-10-04 Maya Rashish <coypu@sdf.org>
10087
10088 * ira-color.c (update_costs_from_allocno): Call
10089 ira_init_register_move_cost_if_necessary.
10090
10091 2019-10-04 Jeff Law <law@redhat.com>
10092
10093 * config/h8300/h8300.md (cpymemsi): Disable.
10094 (movmd, movmd_internal_<mode>, movstr, movsd):
10095 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10096 (movmd splitter, movsd splitter): Likewise.
10097
10098 * range-op.cc (range_tests): Avoid two tests when ints and
10099 shorts are the same size.
10100
10101 2019-10-04 Richard Biener <rguenther@suse.de>
10102
10103 PR lto/91968
10104 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10105 BLOCK_VARS.
10106
10107 2019-10-04 Richard Biener <rguenther@suse.de>
10108
10109 PR tree-optimization/91982
10110 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10111 against EXTRACT_LAST_REDUCTION.
10112 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10113
10114 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10115
10116 * range-op.o (value_range_from_overflowed_bounds): Rename from
10117 adjust_overflow_bound.
10118 (value_range_with_overflow): Rename from
10119 create_range_with_overflow.
10120 (create_possibly_reversed_range): Adjusted for above renames.
10121 (operator_*::wi_fold): Same.
10122 (cross_product_operator::wi_cross_productor): Same.
10123
10124 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10125
10126 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10127 -Wshadow=compatible-local): Fix description.
10128 Add an example where -Wshadow=compatible-local does not
10129 warn.
10130
10131 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10132
10133 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10134
10135 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10136 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10137
10138 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10139
10140 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10141 can_move_by_pieces issue.
10142
10143 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10144
10145 PR target/87243
10146 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10147 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10148 is available and the user has not set one on the command line.
10149
10150 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10151
10152 PR target/91769
10153 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10154 instead of REGNO equality check on addr.reg.
10155
10156 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10157
10158 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10159 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10160 * doc/invoke.texi (inline-heuristics-hint-percent,
10161 inline-heuristics-hint-percent-O2): Document.
10162 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10163 hint attribute.
10164 (can_inline_edge_by_limits_p): Use it.
10165
10166 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10167
10168 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10169 to print CONST_DOUBLEs.
10170
10171 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10172
10173 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10174 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10175 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10176
10177 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10178
10179 * Makefile.in (OBJS): Add range.o and range-op.o.
10180 Remove wide-int-range.o.
10181 * function-tests.c (test_ranges): New.
10182 (function_tests_c_tests): Call test_ranges.
10183 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10184 range_fold_unary_expr instead of extract_range_from_unary_expr.
10185 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10186 * range-op.cc: New file.
10187 * range-op.h: New file.
10188 * range.cc: New file.
10189 * range.h: New file.
10190 * selftest.h (range_tests): New prototype.
10191 * ssa.h: Include range.h.
10192 * tree-vrp.c (value_range_base::value_range_base): New
10193 constructors.
10194 (value_range_base::singleton_p): Do not call
10195 ranges_from_anti_range until sure we will need to.
10196 (value_range_base::type): Rename gcc_assert to
10197 gcc_checking_assert.
10198 (vrp_val_is_max): New argument.
10199 (vrp_val_is_min): Same.
10200 (wide_int_range_set_zero_nonzero_bits): Move from
10201 wide-int-range.cc.
10202 (extract_range_into_wide_ints): Remove.
10203 (extract_range_from_multiplicative_op): Remove.
10204 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10205 from extract_range_from_binary_expr.
10206 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10207 from extract_range_from_binary_expr.
10208 (extract_range_from_binary_expr): Remove.
10209 (normalize_for_range_ops): New.
10210 (range_fold_binary_expr): New.
10211 (range_fold_unary_expr): New.
10212 (value_range_base::num_pairs): New.
10213 (value_range_base::lower_bound): New.
10214 (value_range_base::upper_bound): New.
10215 (value_range_base::upper_bound): New.
10216 (value_range_base::contains_p): New.
10217 (value_range_base::invert): New.
10218 (value_range_base::union_): New.
10219 (value_range_base::intersect): New.
10220 (range_compatible_p): New.
10221 (value_range_base::operator==): New.
10222 (determine_value_range_1): Call range_fold_*expr instead of
10223 extract_range_from_*expr.
10224 * tree-vrp.h (class value_range_base): Add new constructors.
10225 Add methods for union_, intersect, operator==, contains_p,
10226 num_pairs, lower_bound, upper_bound, invert.
10227 (vrp_val_is_min): Add handle_pointers argument.
10228 (vrp_val_is_max): Same.
10229 (extract_range_from_unary_expr): Remove.
10230 (extract_range_from_binary_expr): Remove.
10231 (range_fold_unary_expr): New.
10232 (range_fold_binary_expr): New.
10233 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10234 range_fold_binary_expr instead of extract_range_from_binary_expr.
10235 (vr_values::extract_range_basic): Same.
10236 (vr_values::extract_range_from_unary_expr): Call
10237 range_fold_unary_expr instead of extract_range_from_unary_expr.
10238 * wide-int-range.cc: Remove.
10239 * wide-int-range.h: Remove.
10240
10241 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10242
10243 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10244 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10245 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10246 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10247 macro.
10248
10249 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10250
10251 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10252 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10253 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10254 * glimits.h: Likewise.
10255
10256 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10257
10258 PR rtl-optimization/91976
10259 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10260 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10261 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10262
10263 2019-10-02 Martin Sebor <msebor@redhat.com>
10264
10265 PR tree-optimization/80936
10266 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10267
10268 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10269
10270 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10271 instead of reg_class_contents[ALL_REGS].
10272
10273 2019-09-30 Jason Merrill <jason@redhat.com>
10274
10275 Add some hash_map_safe_* functions like vec_safe_*.
10276 * hash-map.h (default_hash_map_size): New variable.
10277 (create_ggc): Use it as default argument.
10278 (hash_map_maybe_create, hash_map_safe_get)
10279 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10280
10281 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10282
10283 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10284 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10285 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10286 (can_inline_edge_by_limits_p): Use it.
10287 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10288 (want_inline_small_function_p): Use O2 bounds.
10289 (edge_badness): LIkewise.
10290 * opts.c (default_options): Add OPT_finline_functions.
10291 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10292 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10293 New parameters.
10294 * doc/invoke.texi (-finline-functions): Update documentation.
10295 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10296 inline-min-speedup-O2): Document.
10297 (early-inlining-insns-O2): Simplify docs.
10298
10299 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10300
10301 PR rtl-optimization/87047
10302 * ifcvt.c (average_cost): New static function. Use it...
10303 (noce_process_if_block): ... here.
10304
10305 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10306
10307 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10308 * config/rs6000/rs6000-string.c (expand_block_move): Add
10309 might_overlap parm.
10310 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10311 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10312
10313 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10314
10315 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10316 (expand_builtin_memcpy): Use might_overlap parm.
10317 (expand_builtin_mempcpy_args): Use might_overlap parm.
10318 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10319 (expand_builtin_memory_copy_args): Add might_overlap parm.
10320 * expr.c (emit_block_move_via_cpymem): Rename to
10321 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10322 or movmem optab as appropriate.
10323 (emit_block_move_hints): Add might_overlap parm, do the right
10324 thing for might_overlap==true.
10325 * expr.h (emit_block_move_hints): Update prototype.
10326
10327 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10328
10329 * tree-eh.h (unsplit_eh_edges): Declare.
10330 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10331 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10332 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10333 (struct store_immediate_info): Add lp_nr field.
10334 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10335 initialize lp_nr with it.
10336 (struct merged_store_group): Add lp_nr and only_constants fields.
10337 (merged_store_group::merged_store_group): Initialize them.
10338 (merged_store_group::can_be_merged_into): Deal with them.
10339 (pass_store_merging): Rename terminate_and_release_chain into
10340 terminate_and_process_chain.
10341 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10342 renaming and remove useless assertions.
10343 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10344 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10345 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10346 instead of always recomputing it and compare lp_nr.
10347 (imm_store_chain_info::output_merged_store): If the group is in an
10348 active EH region, register new stores if they can throw. Moreover,
10349 if the insertion has created new basic blocks, adjust the PHI nodes
10350 of the post landing pad.
10351 (imm_store_chain_info::output_merged_stores): If the original stores
10352 are in an active EH region, deregister them.
10353 (lhs_valid_for_store_merging_p): Prettify.
10354 (adjust_bit_pos): New function extracted from...
10355 (mem_valid_for_store_merging): ...here. Use it for the base address
10356 and also for the offset if it is the addition of a constant.
10357 (lp_nr_for_store): New function.
10358 (pass_store_merging::process_store): Change return type to bool.
10359 Call lp_nr_for_store to initialize the store info. Propagate the
10360 return status of various called functions to the return value.
10361 (store_valid_for_store_merging_p): New predicate.
10362 (enum basic_block_status): New enumeration.
10363 (get_status_for_store_merging): New function.
10364 (pass_store_merging::execute): If the function can throw and catch
10365 non-call exceptions, unsplit the EH edges on entry and clean up the
10366 CFG on exit if something changed. Call get_status_for_store_merging
10367 for every basic block and keep the chains open across basic blocks
10368 when possible. Terminate and process open chains at the end, if any.
10369
10370 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10371
10372 * reginfo.c (globalize_reg): Fix shadowed variable in
10373 function_abis walk.
10374
10375 2019-10-02 Martin Jambor <mjambor@suse.cz>
10376
10377 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10378 do not compute some stuff when set.
10379 (cgraph_node::create_edge): Likewise.
10380 (cgraph_node::create_indirect_edge): Renamed last parameter to
10381 coning_p and flipped its meaning, don't even calculate
10382 inline_failed when set.
10383 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10384 (symbol_table::::create_edge): Likewise.
10385 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10386 the default value.
10387 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10388 call graph edge creating functions.
10389
10390 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10391
10392 PR c++/91222
10393 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10394 namespace types.
10395
10396 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10397
10398 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10399
10400 2019-10-02 Richard Biener <rguenther@suse.de>
10401
10402 * tree-vectorizer.h (vect_transform_reduction): Declare.
10403 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10404 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10405 stmt transform to ...
10406 (vect_transform_reduction): ... this.
10407
10408 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10409
10410 * omp-low.c (lower_omp_target): Dereference optional argument
10411 to work with the right pointer.
10412
10413 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10414
10415 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10416 false.
10417 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10418 * langhooks.h (omp_is_optional_argument): New hook.
10419 * omp-general.c (omp_is_optional_argument): New.
10420 * omp-general.h (omp_is_optional_argument): New declaration.
10421 * omp-low.c (lower_omp_target): Create temporary for received value
10422 and take the address for new_var if the original variable was a
10423 DECL_BY_REFERENCE. Use size of referenced object when a
10424 pass-by-reference optional argument used as argument to firstprivate.
10425
10426 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10427
10428 PR tree-optimization/91940
10429 * tree-vect-patterns.c: Include tree-vector-builder.h and
10430 vec-perm-indices.h.
10431 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10432 unpromoting the argument back to uint16_t, or by converting into a
10433 rotate, or into shifts plus ior.
10434
10435 2019-10-02 Richard Biener <rguenther@suse.de>
10436
10437 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10438 New.
10439 (vect_transform_cycle_phi): Declare.
10440 * tree-vect-stmts.c (vect_transform_stmt): Call
10441 vect_transform_cycle_phi.
10442 * tree-vect-loop.c (vectorizable_reduction): Split out
10443 PHI transformation stage to ...
10444 (vect_transform_cycle_phi): ... here.
10445
10446 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10447
10448 PR middle-end/91957
10449 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10450 eliminable registers.
10451 (make_hard_regno_live): Likewise, and don't make them live.
10452
10453 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10454
10455 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10456 Call pp_emit_prefix.
10457 (layout::print_source_line): Likewise.
10458 (layout::start_annotation_line): Likewise.
10459 (diagnostic_show_locus): Remove call to temporarily clear the
10460 prefix.
10461 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10462 interaction of pp_set_prefix with rulers and fix-it hints.
10463 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10464 prefix when calling diagnostic_show_locus, rather than destroying
10465 it afterwards.
10466 (print_parseable_fixits): Temporarily clear prefix.
10467 * pretty-print.c (pp_format): Save and restore line_length, rather
10468 than assuming it is zero.
10469 (pp_output_formatted_text): Remove assertion that line_length is
10470 zero.
10471
10472 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10473
10474 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10475 Rename to ...
10476 (nonoverlapping_refs_since_match_p): ... this; handle also
10477 ARRAY_REFs.
10478 (alias_stats): Update stats.
10479 (dump_alias_stats): Likewise.
10480 (cheap_array_ref_low_bound): New function.
10481 (aliasing_matching_component_refs_p): Add partial_overlap
10482 argument;
10483 pass it to nonoverlapping_refs_since_match_p.
10484 (aliasing_component_refs_walk): Update call of
10485 aliasing_matching_component_refs_p
10486 (nonoverlapping_array_refs_p): New function.
10487 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10488 indirect_refs_may_alias_p): Update calls of
10489 nonoverlapping_refs_since_match_p.
10490
10491 2019-10-01 Maya Rashish <coypu@sdf.org>
10492
10493 PR target/85401
10494 * ira-color.c (allocno_copy_cost_saving): Call
10495 ira_init_register_move_cost_if_necessary.
10496
10497 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10498
10499 * Makefile.in (gnat_install_lib): New variable.
10500 * configure.ac: Substitute it.
10501 * configure: Regenerate.
10502
10503 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10504
10505 PR lto/91222
10506 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10507 is matched with non-C++ type
10508
10509 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10510
10511 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10512 after local CSE.
10513
10514 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10515
10516 * doc/invoke.texi (early-inlining-insns-O2): Document.
10517 (early-inlining-insns): Update.
10518 * params.def (early-inlining-insns-O2): New bound.
10519 (early-inlining-insns): Update docs.
10520 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10521
10522 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10523
10524 PR target/88562
10525 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10526 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10527 a memory access insn.
10528
10529 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10530
10531 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10532 vpmsumd.
10533
10534 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10535
10536 PR target/77918
10537 * config/s390/s390.c (s390_expand_vec_compare): Use
10538 gen_vec_cmpordered and gen_vec_cmpunordered.
10539 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10540 vec_unordered): Delete.
10541 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10542 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10543 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10544 (vec_cmp<code>): Generic dispatcher.
10545
10546 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10547
10548 PR target/77918
10549 * config/s390/vector.md (V_HW): Add V1TI in order to make
10550 vcond$a$b generate vcondv1tiv1tf.
10551
10552 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10553
10554 PR rtl-optimization/91948
10555 * ira-build.c (ira_create_allocno): Initialize
10556 ALLOCNO_CROSSED_CALLS_ABIS.
10557 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10558 than regno to ira_need_caller_save_p.
10559
10560 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10561
10562 * config/i386/i386-options.c
10563 (ix86_recompute_optlev_based_flags): New, moved out of...
10564 (ix86_option_override_internal): ... this. Call it.
10565 (ix86_override_options_after_change): Call it here too.
10566
10567 PR debug/91507
10568 * dwarf2out.c (override_type_for_decl_p): New.
10569 (gen_variable_die): Use it.
10570
10571 2019-10-01 Richard Biener <rguenther@suse.de>
10572
10573 * tree-vect-loop.c (vectorizable_reduction): Move variables
10574 to where they are used.
10575
10576 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10577
10578 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10579 (build_def_use): Use PC instead of CC0 in a comment.
10580
10581 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10582
10583 * rtl.def (CLOBBER_HIGH): Delete.
10584 * doc/rtl.texi (clobber_high): Remove documentation.
10585 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10586 (reg_is_clobbered_by_clobber_high): Delete.
10587 (gen_hard_reg_clobber_high): Likewise.
10588 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10589 * cfgexpand.c (expand_gimple_stmt): Likewise.
10590 * combine-stack-adj.c (single_set_for_csa): Likewise.
10591 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10592 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10593 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10594 * cse.c (invalidate_reg): Remove clobber_high parameter.
10595 (invalidate): Update call accordingly.
10596 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10597 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10598 (count_reg_usage, insn_live_p): Likewise.
10599 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10600 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10601 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10602 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10603 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10604 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10605 (mark_nonreg_stores_2): Likewise.
10606 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10607 (df_get_call_refs): Likewise.
10608 * dwarf2out.c (mem_loc_descriptor): Likewise.
10609 * emit-rtl.c (verify_rtx_sharing): Likewise.
10610 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10611 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10612 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10613 * genemit.c (gen_exp, gen_insn): Likewise.
10614 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10615 * haifa-sched.c (haifa_classify_rtx): Likewise.
10616 * ira-build.c (create_insn_allocnos): Likewise.
10617 * ira-costs.c (scan_one_insn): Likewise.
10618 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10619 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10620 * jump.c (mark_jump_label_1): Likewise.
10621 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10622 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10623 handling.
10624 (mark_not_eliminable): Likewise.
10625 * lra-lives.c (process_bb_lives): Likewise.
10626 * lra.c (new_insn_reg): Remove clobber_high parameter.
10627 (collect_non_operand_hard_regs): Likewise. Update call to new
10628 insn_reg. Remove CLOBBER_HIGH handling.
10629 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10630 to collect_non_operand_hard_regs.
10631 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10632 Update call to new_insn_reg.
10633 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10634 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10635 (move2add_note_store): Likewise.
10636 * print-rtl.c (print_pattern): Likewise.
10637 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10638 (if_test_bypass_p): Likewise.
10639 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10640 * reginfo.c (reg_scan_mark_refs): Likewise.
10641 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10642 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10643 (forget_old_reloads_1): Likewise.
10644 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10645 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10646 (dbr_schedule): Likewise.
10647 * resource.c (update_live_status, mark_referenced_resources)
10648 (mark_set_resources): Likewise.
10649 * rtl.c (copy_rtx): Likewise.
10650 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10651 (note_pattern_stores): Likewise.
10652 (reg_is_clobbered_by_clobber_high): Delete.
10653 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10654 CLOBBER_HIGH handling.
10655
10656 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10657
10658 PR target/91452
10659 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10660 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10661 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10662 Handle ARM_PCS_TLSDESC.
10663 (aarch64_tlsdesc_abi_id): New function.
10664 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10665 rtx instead of a list of clobbers and clobber_highs.
10666 (tlsdesc_small_<mode>): Update accordingly.
10667
10668 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10669
10670 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10671 extra callee_abi argument.
10672 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10673 Insert a CALLEE_ABI unspec into the call pattern as the second
10674 element in the PARALLEL.
10675 (aarch64_simd_call_p): Delete.
10676 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10677 the new CALLEE_ABI element of the PARALLEL.
10678 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10679 from the function type, if given.
10680 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10681 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10682 when passed the function_arg_info end marker.
10683 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10684 final argument of gen_sibcall.
10685 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10686 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10687 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10688 pattern.
10689 (call_value): Likewise operand 3.
10690 (sibcall): Likewise operand 2. Place the unspec before rather than
10691 after the return.
10692 (sibcall_value): Likewise operand 3.
10693 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10694 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10695 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10696 constraint strings.
10697 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10698
10699 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10700
10701 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10702 choose_hard_reg_mode.
10703 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10704
10705 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10706
10707 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10708 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10709 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10710
10711 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10712
10713 * diagnostic-show-locus.c (line_label::line_label): Initialize
10714 m_has_vbar.
10715 (line_label::comparator): Reverse the sort order by m_state_idx,
10716 so that when the list is walked backwards the labels appear in
10717 order of insertion into the rich_location.
10718 (line_label::m_has_vbar): New field.
10719 (layout::print_any_labels): When dealing with multiple labels at
10720 the same line and column, only print vertical bars for the one
10721 with the highest label_line.
10722 (selftest::test_one_liner_labels): Update test for multiple labels
10723 to expect the labels to be in the order of insertion into the
10724 rich_location. Add a test for many such labels, where the column
10725 numbers are out-of-order relative to the insertion order.
10726
10727 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10728
10729 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10730 (ix86_frame::expensive_count): Likewise.
10731 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10732 of use_fast_prologue_epilogue robust against incidental changes
10733 in function size.
10734
10735 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10736
10737 PR target/77918
10738 * config/s390/vector.md (vec_unordered<mode>): Call
10739 gen_vec_ordered<mode>.
10740
10741 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10742
10743 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10744 New pattern for ASRD.
10745 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10746 * internal-fn.def (IFN_DIV_POW2): New internal function.
10747 * optabs.def (sdiv_pow2_optab): New optab.
10748 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10749 Modify pattern to support new operation.
10750 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10751 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10752 Document new target selector.
10753
10754 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10755
10756 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10757 to test whether we're compiling a vector PCS function and to test
10758 whether the function needs to save a particular register.
10759 Remove the vector PCS handling of df_set_regs_ever_live.
10760 (aarch64_components_for_bb): Use crtl->abi to test whether
10761 the function needs to save a particular register.
10762 (aarch64_process_components): Use crtl->abi to test whether
10763 we're compiling a vector PCS function.
10764 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10765 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10766
10767 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10768
10769 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10770 Delete.
10771 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10772 whether the block calls a function that clobbers more registers
10773 than the current function is allowed to.
10774 (aarch64_use_simple_return_insn_p): Delete.
10775 * config/aarch64/aarch64.md (simple_return): Remove condition.
10776
10777 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10778
10779 * function-abi.h (function_abi_aggregator): New class.
10780 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10781 function.
10782 * ira.c (update_equiv_regs_prescan): New function. Call
10783 set_paradoxical_subreg here rather than...
10784 (update_equiv_regs): ...here.
10785 (ira): Call update_equiv_regs_prescan.
10786
10787 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10788
10789 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10790 IN_TARGET_CODE.
10791 (call_used_or_fixed_regs): Likewise.
10792 (call_used_or_fixed_reg_p): Likewise.
10793 * reginfo.c (regs_invalidated_by_call): New macro.
10794
10795 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10796
10797 * shrink-wrap.c: Include function-abi.h.
10798 (requires_stack_frame_p): Use crtl->abi to test whether the
10799 current function can use a register without saving it first.
10800
10801 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10802
10803 * sel-sched-ir.h (_def::crosses_call): Replace with...
10804 (_def::crossed_call_abis): ..this new field.
10805 (def_list_add): Take a mask of ABIs instead of a crosses_call
10806 boolean.
10807 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10808 of _def accordingly.
10809 * sel-sched.c: Include function-abi.h.
10810 (hard_regs_data::regs_for_call_clobbered): Delete.
10811 (reg_rename::crosses_call): Replace with...
10812 (reg_rename::crossed_call_abis): ...this new field.
10813 (fur_static_params::crosses_call): Replace with...
10814 (fur_static_params::crossed_call_abis): ...this new field.
10815 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10816 (init_hard_regs_data): Use crtl->abi to test which registers the
10817 current function would need to save before it uses them.
10818 (mark_unavailable_hard_regs): Update handling of call-clobbered
10819 registers, using call_clobbers_in_region to find out which registers
10820 might be call-clobbered (but without taking -fipa-ra into account
10821 for now). Remove separate handling of partially call-clobbered
10822 registers.
10823 (verify_target_availability): Use crossed_call_abis instead of
10824 crosses_call.
10825 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10826 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10827
10828 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10829
10830 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10831 function to test whether a register is fully or partly clobbered.
10832
10833 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10834
10835 * rtlanal.c: Include function-abi.h.
10836 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10837 function and clobbers_reg_p to test whether the register
10838 is call-clobbered.
10839 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10840 to get the ABI of the called function and full_reg_clobbers to
10841 get the set of fully call-clobbered registers. Warn about the
10842 pitfalls of using this mode.
10843
10844 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10845
10846 * reload.c: Include function-abi.h.
10847 (find_equiv_reg): Use clobbers_reg_p to test whether either
10848 of the equivalent registers is clobbered by a call.
10849 * reload1.c: Include function-abi.h.
10850 (reg_reloaded_call_part_clobbered): Delete.
10851 (reload): Use crtl->abi to test which registers would need
10852 saving in the prologue before use.
10853 (find_reg): Likewise.
10854 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10855 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10856 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10857
10858 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10859
10860 * regrename.h (du_head::call_clobber_mask): New field.
10861 (du_head::need_caller_save_reg): Replace with...
10862 (du_head::call_abis): ...this new field.
10863 * regrename.c: Include function-abi.h.
10864 (call_clobbered_in_chain_p): New function.
10865 (check_new_reg_p): Use crtl->abi when deciding whether a register
10866 is free for use after RA. Use call_clobbered_in_chain_p to test
10867 whether a candidate register would be clobbered by a call.
10868 (find_rename_reg): Don't add call-clobber conflicts here.
10869 (rename_chains): Check call_abis instead of need_caller_save_reg.
10870 (merge_chains): Update for changes to du_head.
10871 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10872 target. Record the ABI identifier in call_abis and the set of
10873 fully or partially clobbered registers in call_clobber_mask.
10874 Add fully-clobbered registers to hard_conflicts here rather
10875 than in find_rename_reg.
10876 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10877 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10878 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10879 function-abi.h.
10880 * config/c6x/c6x.c: Likewise.
10881
10882 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10883
10884 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10885 mode of the register when deciding whether it is no longer
10886 available after a call.
10887
10888 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10889
10890 * recog.c: Include function-abi.h.
10891 (peep2_find_free_register): Use crtl->abi when deciding whether
10892 a register is free for use after RA.
10893
10894 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10895
10896 * postreload-gcse.c: Include regs.h and function-abi.h.
10897 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10898 call insn target. Conservatively assume that partially-clobbered
10899 registers are altered.
10900
10901 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10902
10903 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10904 when deciding whether a register is free for use after RA.
10905 (reload_combine): Remove unnecessary use of fixed_reg_set.
10906 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10907 call insn target. Use reg_mode when testing whether a register
10908 is no longer available.
10909
10910 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10911
10912 * target.def (return_call_with_max_clobbers): Delete.
10913 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10914 * doc/tm.texi: Regenerate.
10915 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10916 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10917 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10918 (lra_reg::call_insn): Delete.
10919 * lra.c: Include function-abi.h.
10920 (initialize_lra_reg_info_element): Don't initialize the fields above.
10921 (lra): Use crtl->abi to test whether the current function needs to
10922 save a register in the prologue. Remove special pre-inheritance
10923 lra_create_live_ranges pass for flag_ipa_ra.
10924 * lra-assigns.c: Include function-abi.h
10925 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10926 function needs to save a register in the prologue.
10927 (lra_assign): Assert that registers aren't allocated to a
10928 conflicting register, rather than checking only for overlaps
10929 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10930 and for registers that are not live across a call.
10931 * lra-constraints.c (last_call_for_abi): New variable.
10932 (full_and_partial_call_clobbers): Likewise.
10933 (setup_next_usage_insn): Remove the register from
10934 full_and_partial_call_clobbers.
10935 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10936 whether the register needs a caller save.
10937 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10938 of call_used_or_fixed_regs.
10939 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10940 full_and_partial_call_clobbers.
10941 * lra-lives.c (check_pseudos_live_through_calls): Replace
10942 last_call_used_reg_set and call_insn arguments with an abi argument.
10943 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10944 as the set of conflicting registers.
10945 (calls_have_same_clobbers_p): Delete.
10946 (process_bb_lives): Track the ABI of the last call instead of an
10947 insn/HARD_REG_SET pair. Update calls to
10948 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10949 the set of registers that could be clobbered by an EH edge.
10950 Include partially-clobbered as well as fully-clobbered registers.
10951 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10952 * lra-remat.c: Include function-abi.h.
10953 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10954 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10955 registers and bitmap_view to combine them into dead_regs.
10956 (call_used_input_regno_present_p): Take a function_abi argument
10957 and use it to test whether a register is call-clobbered.
10958 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10959 call insn target. Update tje call to call_used_input_regno_present_p.
10960 (do_remat): Likewise.
10961 (lra_remat): Remove the initialization of call_used_regs_arr_len
10962 and call_used_regs_arr.
10963
10964 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10965
10966 * loop-iv.c: Include regs.h and function-abi.h.
10967 (simplify_using_initial_values): Use insn_callee_abi to get the
10968 ABI of the call insn target. Conservatively assume that
10969 partially-clobbered registers are altered.
10970
10971 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10972
10973 * function-abi.h (call_clobbers_in_region): Declare.
10974 (call_clobbered_in_region_p): New function.
10975 * function-abi.cc (call_clobbers_in_region): Likewise.
10976 * ira-int.h: Include function-abi.h.
10977 (ira_allocno::crossed_calls_abis): New field.
10978 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10979 (ira_need_caller_save_regs): New function.
10980 (ira_need_caller_save_p): Likewise.
10981 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10982 of call_used_or_fixed_regs.
10983 (do_reload): Use crtl->abi to test whether the current function
10984 needs to save a register in the prologue. Count registers that
10985 need to be saved rather than registers that don't.
10986 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10987 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10988 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10989 (propagate_some_info_from_allocno): Likewise.
10990 (copy_info_to_removed_store_destinations): Likewise.
10991 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10992 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10993 (ira_build): Use ira_need_caller_save_regs instead of
10994 call_used_or_fixed_regs.
10995 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10996 whether the current function would need to save a register
10997 before using it.
10998 (calculate_spill_cost): Likewise.
10999 (allocno_reload_assign): Use ira_need_caller_save_regs and
11000 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11001 * ira-conflicts.c (ira_build_conflicts): Use
11002 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11003 as the set of call-clobbered registers. Remove the
11004 call_used_or_fixed_regs mask from the calculation of
11005 temp_hard_reg_set and mask its use instead. Remove special
11006 handling of partially-clobbered registers.
11007 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11008 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11009 calculate the set of conflicting registers for calls that
11010 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11011 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11012 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11013 Use eh_edge_abi to calculate the set of registers that could
11014 be clobbered by an EH edge. Include partially-clobbered as
11015 well as fully-clobbered registers.
11016
11017 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11018
11019 * haifa-sched.c: Include function-abi.h.
11020 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11021 the function would need to save a register before using it.
11022
11023 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11024
11025 * gcse.c: Include function-abi.h.
11026 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11027 the call insn target. Invalidate partially call-clobbered
11028 registers as well as fully call-clobbered ones.
11029
11030 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11031
11032 * function.c (aggregate_value_p): Work out which ABI the
11033 function is using before testing which registers are at least
11034 partly preserved by a call.
11035
11036 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11037
11038 * early-remat.c: Include regs.h and function-abi.h.
11039 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11040 registers here.
11041 (early_remat::restrict_remat_for_unavail_regs): New function.
11042 (early_remat::restrict_remat_for_call): Likewise.
11043 (early_remat::process_block): Before calling emit_remat_insns
11044 for a previous call in the block, invalidate any candidates
11045 that would clobber call-preserved registers.
11046 (early_remat::emit_remat_insns_for_block): Likewise for the
11047 final call in a block. Do the same thing for live-in registers
11048 when calling emit_remat_insns at the head of a block.
11049
11050 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11051
11052 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11053 whether the current function needs to save at least part of a
11054 register before using it.
11055 (df_get_exit_block_use_set): Likewise for epilogue restores.
11056
11057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11058
11059 * df-problems.c: Include regs.h and function-abi.h.
11060 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11061 sparse_invalidated_by_eh and dense_invalidated_by_call to
11062 dense_invalidated_by_eh.
11063 (df_print_bb_index): Update accordingly.
11064 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11065 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11066 that are clobbered by an EH edge. Clobber partially-clobbered
11067 registers as well as fully-clobbered ones.
11068 (df_md_confluence_n): Likewise.
11069 (df_rd_local_compute): Likewise. Update for changes to
11070 df_rd_problem_data.
11071 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11072 of registers that are clobbered by an EH edge. Includde partially-
11073 clobbered registers as well as fully-clobbered ones.
11074
11075 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11076
11077 * cselib.c (cselib_process_insn): If we know what mode a
11078 register was set in, check whether it is clobbered in that
11079 mode by a call. Only fall back to reg_raw_mode if that fails.
11080
11081 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11082
11083 * cse.c: Include regs.h and function-abi.h.
11084 (invalidate_for_call): Take the call insn as an argument.
11085 Use insn_callee_abi to get the ABI of the call and invalidate
11086 partially clobbered registers as well as fully clobbered ones.
11087 (cse_insn): Update call accordingly.
11088
11089 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11090
11091 * combine.c: Include function-abi.h.
11092 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11093 of the target of call insns. Invalidate partially-clobbered
11094 registers as well as fully-clobbered ones.
11095
11096 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11097
11098 * cfgloopanal.c: Include regs.h and function-abi.h.
11099 (init_set_costs): Use default_function_abi to test whether
11100 a general register is call-clobbered.
11101
11102 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11103
11104 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11105 instead of the call-clobbered sets.
11106
11107 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11108
11109 * caller-save.c (setup_save_areas): Remove redundant |s of
11110 fixed_reg_set.
11111 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11112 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11113 value is useful.
11114
11115 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11116
11117 * rtl.h (predefined_function_abi): Declare.
11118 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11119 instead of a boolean call_save flag.
11120 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11121 accordingly.
11122 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11123 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11124 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11125 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11126 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11127 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11128 * reginfo.c (init_reg_modes_target): Likewise.
11129 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11130 instead of a boolean call_save flag.
11131 * targhooks.c: Include function-abi.h.
11132 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11133 using eh_edge_abi to choose the mode.
11134
11135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11136
11137 * target.def (hard_regno_call_part_clobbered): Take an ABI
11138 identifier instead of an rtx_insn.
11139 * doc/tm.texi: Regenerate.
11140 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11141 (hook_bool_uint_uint_mode_false): New function.
11142 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11143 (hook_bool_uint_uint_mode_false): New function.
11144 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11145 Take an ABI identifier instead of an rtx_insn.
11146 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11147 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11148 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11149 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11150 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11151 Likewise.
11152 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11153 * cselib.c: Include function-abi.h.
11154 (cselib_process_insn): Update call to
11155 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11156 to get the appropriate ABI identifier.
11157 * function-abi.cc (predefined_function_abi::initialize): Update call
11158 to targetm.hard_regno_call_part_clobbered.
11159 * ira-conflicts.c (ira_build_conflicts): Likewise.
11160 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11161 * lra-constraints.c: Include function-abi.h.
11162 (need_for_call_save_p): Update call to
11163 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11164 to get the appropriate ABI identifier.
11165 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11166 * regcprop.c (copyprop_hardreg_forward_1): Update call
11167 to targetm.hard_regno_call_part_clobbered.
11168 * reginfo.c (choose_hard_reg_mode): Likewise.
11169 * regrename.c (check_new_reg_p): Likewise.
11170 * reload.c (find_equiv_reg): Likewise.
11171 * reload1.c (emit_reload_insns): Likewise.
11172 * sched-deps.c: Include function-abi.h.
11173 (deps_analyze_insn): Update call to
11174 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11175 to get the appropriate ABI identifier.
11176 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11177 call to targetm.hard_regno_call_part_clobbered.
11178 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11179
11180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11181
11182 * config/i386/i386.c: Include function-abi.h.
11183 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11184 if they preserve some 256-bit or 512-bit SSE registers.
11185
11186 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11187
11188 * target.def (insn_callee_abi): New hook.
11189 (remove_extra_call_preserved_regs): Delete.
11190 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11191 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11192 * doc/tm.texi: Regenerate.
11193 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11194 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11195 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11196 insn argument.
11197 (aarch64_remove_extra_call_preserved_regs): Delete.
11198 (aarch64_insn_callee_abi): New function.
11199 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11200 (TARGET_INSN_CALLEE_ABI): New macro.
11201 * rtl.h (get_call_fndecl): Declare.
11202 (cgraph_rtl_info): Fix formatting. Tweak comment for
11203 function_used_regs. Remove function_used_regs_valid.
11204 * rtlanal.c (get_call_fndecl): Moved from final.c
11205 * function-abi.h (insn_callee_abi): Declare.
11206 (target_function_abi_info): Mention insn_callee_abi.
11207 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11208 way to get_call_reg_set_usage did.
11209 (insn_callee_abi): New function.
11210 * regs.h (get_call_reg_set_usage): Delete.
11211 * final.c: Include function-abi.h.
11212 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11213 function_used_regs before the main loop rather than afterwards.
11214 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11215 if function_used_regs ends up not being useful.
11216 (get_call_fndecl): Move to rtlanal.c
11217 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11218 * caller-save.c: Include function-abi.h.
11219 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11220 instead of get_call_reg_set_usage.
11221 * cfgcleanup.c: Include function-abi.h.
11222 (old_insns_match_p): Use insn_callee_abi instead of
11223 get_call_reg_set_usage.
11224 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11225 a tree.
11226 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11227 function_used_regs.
11228 * df-scan.c: Include function-abi.h.
11229 (df_get_call_refs): Use insn_callee_abi instead of
11230 get_call_reg_set_usage.
11231 * ira-lives.c: Include function-abi.h.
11232 (process_bb_node_lives): Use insn_callee_abi instead of
11233 get_call_reg_set_usage.
11234 * lra-lives.c: Include function-abi.h.
11235 (process_bb_lives): Use insn_callee_abi instead of
11236 get_call_reg_set_usage.
11237 * postreload.c: Include function-abi.h.
11238 (reload_combine): Use insn_callee_abi instead of
11239 get_call_reg_set_usage.
11240 * regcprop.c: Include function-abi.h.
11241 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11242 get_call_reg_set_usage.
11243 * resource.c: Include function-abi.h.
11244 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11245 instead of get_call_reg_set_usage.
11246 * var-tracking.c: Include function-abi.h.
11247 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11248 get_call_reg_set_usage.
11249
11250 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11251
11252 * target.def (fntype_abi): New target hook.
11253 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11254 * doc/tm.texi: Regenerate.
11255 * target.h (predefined_function_abi): Declare.
11256 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11257 if defined.
11258 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11259 * config/aarch64/aarch64.c: Include function-abi.h.
11260 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11261 (TARGET_FNTYPE_ABI): Define.
11262
11263 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11264
11265 * Makefile.in (OBJS): Add function-abi.o.
11266 (GTFILES): Add function-abi.h.
11267 * function-abi.cc: New file.
11268 * function-abi.h: Likewise.
11269 * emit-rtl.h (rtl_data::abi): New field.
11270 * function.c: Include function-abi.h.
11271 (prepare_function_start): Initialize crtl->abi.
11272 * read-rtl-function.c: Include regs.h and function-abi.h.
11273 (read_rtl_function_body): Initialize crtl->abi.
11274 (read_rtl_function_body_from_file_range): Likewise.
11275 * reginfo.c: Include function-abi.h.
11276 (init_reg_sets_1): Initialize default_function_abi.
11277 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11278 when making a register global.
11279 * target-globals.h (this_target_function_abi_info): Declare.
11280 (target_globals::function_abi_info): New field.
11281 (restore_target_globals): Copy it.
11282 * target-globals.c: Include function-abi.h.
11283 (default_target_globals): Initialize the function_abi_info field.
11284 (target_globals): Allocate it.
11285 (save_target_globals): Free it.
11286
11287 2019-09-30 Nick Clifton <nickc@redhat.com>
11288
11289 PR target/85978
11290 * config/frv/frv.c (frv_register_move_cost): Add break statements
11291 to avoid falling through to the wrong cases. Tidy code.
11292
11293 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11294
11295 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11296 For multi-registers modes, test how big each register part is.
11297
11298 2019-09-30 Nick Clifton <nickc@redhat.com>
11299
11300 PR target/59205
11301 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11302 (TARGET_ASM_SELECT_SECTION): Remove definition.
11303 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11304
11305 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11306
11307 * emit-rtl.c (init_raw_REG): New function.
11308 (gen_raw_REG): Use init_raw_REG.
11309 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11310 macros.
11311 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11312 * rtl.h (rtx_init): New function.
11313 (rtx_alloca): New function.
11314 (init_raw_REG): New function.
11315 (alloca_raw_REG): New macro.
11316
11317 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11318
11319 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11320 (pcrel_local_address): Replace pcrel_address predicate, use the
11321 new function address_to_insn_form.
11322 (pcrel_external_address): Replace with new implementation using
11323 address_to_insn_form..
11324 (prefixed_mem_operand): Delete predicate which is now unused.
11325 (pcrel_external_mem_operand): Delete predicate which is now
11326 unused.
11327 * config/rs6000/rs6000-protos.h (enum insn_form): New
11328 enumeration.
11329 (enum non_prefixed_form): New enumeration.
11330 (address_to_insn_form): New declaration.
11331 (prefixed_load_p): New declaration.
11332 (prefixed_store_p): New declaration.
11333 (prefixed_paddi_p): New declaration.
11334 (rs6000_asm_output_opcode): New declaration.
11335 (rs6000_final_prescan_insn): Move declaration and update calling
11336 signature.
11337 (address_is_prefixed): New helper inline function.
11338 * config/rs6000/rs6000.c(print_operand_address): Check for either
11339 PC-relative local symbols or PC-relative external symbols.
11340 (rs6000_emit_move): Support loading PC-relative addresses.
11341 (mode_supports_prefixed_address_p): Delete, no longer used.
11342 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11343 (address_to_insn_form): New function to decode an address format.
11344 (reg_to_non_prefixed): New function to identify what the
11345 non-prefixed memory instruction format is for a register.
11346 (prefixed_load_p): New function to identify prefixed loads.
11347 (prefixed_store_p): New function to identify prefixed stores.
11348 (prefixed_paddi_p): New function to identify prefixed load
11349 immediates.
11350 (next_insn_prefixed_p): New static state variable.
11351 (rs6000_final_prescan_insn): New function to determine if an insn
11352 uses a prefixed instruction.
11353 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11354 prefixed instruction.
11355 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11356 (ASM_OUTPUT_OPCODE): New target hook.
11357 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11358 prefixed instructions.
11359 (prefixed_length): New insn attribute for the size of prefixed
11360 instructions.
11361 (non_prefixed_length): New insn attribute for the size of
11362 non-prefixed instructions.
11363 (pcrel_local_addr): New insn to load up a local PC-relative
11364 address.
11365 (pcrel_extern_addr): New insn to load up an external PC-relative
11366 address.
11367 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11368 GPR and loading a 128-bit floating point type to a GPR.
11369
11370 2019-09-30 Richard Biener <rguenther@suse.de>
11371
11372 * gimple.c (gimple_get_lhs): For PHIs return the result.
11373 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11374 SLP instance as argument.
11375 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11376 double-reduction PHIs with vectorizable_lc_phi.
11377 (vect_analyze_loop_operations): Adjust.
11378 (vect_create_epilog_for_reduction): Remove all code not dealing
11379 with reduction LC PHI or epilogue generation.
11380 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11381 for live stmts of reductions.
11382 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11383 do not handle defs that are not vect_internal_def.
11384 (can_vectorize_live_stmts): Adjust.
11385 (vect_analyze_stmt): When the vectorized stmt defined a value
11386 used on backedges adjust the backedge uses of vectorized PHIs.
11387
11388 2019-09-30 Martin Jambor <mjambor@suse.cz>
11389
11390 PR ipa/91853
11391 * tree-inline.c (force_value_to_type): New function.
11392 (setup_one_parameter): Use force_value_to_type to convert type.
11393 * tree-inline.c (force_value_to_type): Declare.
11394 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11395 with register type mismatches.
11396
11397 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11398
11399 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11400 32-bit PowerPC.
11401 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11402 * config/rs6000/t-freebsd64: Make use of the above define and build
11403 the 32-bit libraries with secure-plt.
11404
11405 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11406
11407 PR target/91931
11408 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11409 gen_int_mode instead of GEN_INT.
11410
11411 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11412
11413 * config/darwin.c (gen_macho_low): Amend to include the mode
11414 argument.
11415 (machopic_indirect_data_reference): Amend gen_macho_low call
11416 to include mode argument
11417 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11418 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11419 the macho_high expander and two define_insn entries.
11420
11421 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11422
11423 PR bootstrap/90543
11424 * optc-save-gen.awk: Fix up printing string option differences.
11425
11426 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11427
11428 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11429 vec_perm cost to 1 for non-Power7 VSX architectures.
11430
11431 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11432
11433 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11434 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11435 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11436
11437 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11438
11439 * config/darwin.c (gen_macho_high): Amend to include the mode
11440 argument.
11441 (machopic_indirect_data_reference): Amend gen_macho_high call
11442 to include mode argument.
11443 (machopic_legitimize_pic_address): Likewise.
11444 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11445 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11446 the macho_high expander and two define_insn entries.
11447
11448 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11449
11450 PR target/86805
11451 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11452
11453 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11454
11455 PR target/80672
11456 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11457 std::string::compare instead of std::string::find.
11458
11459 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11460
11461 * configure: Regenerate.
11462
11463 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11464
11465 PR middle-end/91920
11466 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11467 variables as shared.
11468
11469 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11470
11471 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11472 replaces the expander and two define_insn entries.
11473 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11474 call.
11475 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11476
11477 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11478
11479 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11480 (fibonacci_heap::nodes): Likewise.
11481 (fibonacci_heap::min_key): Likewise.
11482 (fibonacci_heap::min): Likewise.
11483
11484 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11485
11486 * cgraph.c (cgraph_node::get_fun): Make const.
11487 * cgraph.h (cgraph_node::get_fun): Likewise.
11488
11489 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11490
11491 PR target/91919
11492 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11493 of SImode MULT.
11494
11495 2019-09-27 Richard Biener <rguenther@suse.de>
11496
11497 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11498 (STMT_VINFO_REDUC_FN): Likewise.
11499 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11500 STMT_VINFO_REDUC_FN.
11501 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11502 for condition reductions.
11503 (vect_create_epilog_for_reduction): Compute all required state
11504 from the stmt to be vectorized.
11505 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11506 invocation and remove then dead code. For single def-use chains
11507 record only a single vector stmt.
11508
11509 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11510
11511 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11512 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11513 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11514 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11515 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11516 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11517 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11518 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11519 (aarch64_general_builtin_rsqrt): Declare.
11520 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11521 New function.
11522 (aarch64_mangle_builtin_type): Rename to...
11523 (aarch64_general_mangle_builtin_type): ...this.
11524 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11525 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11526 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11527 aarch64_general_add_builtin instead of add_builtin_function.
11528 (aarch64_init_builtins): Rename to...
11529 (aarch64_general_init_builtins): ...this. Use
11530 aarch64_general_add_builtin instead of add_builtin_function.
11531 (aarch64_builtin_decl): Rename to...
11532 (aarch64_general_builtin_decl): ...this and remove the unused
11533 arguments.
11534 (aarch64_expand_builtin): Rename to...
11535 (aarch64_general_expand_builtin): ...this and remove the unused
11536 arguments.
11537 (aarch64_builtin_rsqrt): Rename to...
11538 (aarch64_general_builtin_rsqrt): ...this.
11539 (aarch64_fold_builtin): Rename to...
11540 (aarch64_general_fold_builtin): ...this. Take the function subcode
11541 and return type as arguments. Remove the "ignored" argument.
11542 (aarch64_gimple_fold_builtin): Rename to...
11543 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11544 subcode and gcall as arguments, and return the new function call.
11545 * config/aarch64/aarch64.c (aarch64_init_builtins)
11546 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11547 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11548 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11549 instead of aarch64_builtin_rsqrt.
11550 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11551 instead of aarch64_mangle_builtin_type.
11552
11553 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11554
11555 * target.def (check_builtin_call): New target hook.
11556 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11557 * doc/tm.texi: Regenerate.
11558
11559 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11560
11561 PR tree-optimization/91909
11562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11563 reduc_index parameter. When handling COND_REDUCTION, make sure
11564 that the reduction phi operand is in the correct arm of the
11565 VEC_COND_EXPR.
11566 (vectorizable_reduction): Pass reduc_index to the above.
11567
11568 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11569
11570 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11571 New combine pattern.
11572
11573 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11574
11575 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11576 loop instruction into new basic block before the loop when basic
11577 block that precedes the loop is empty.
11578
11579 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11580
11581 * function.c (gimplify_parameters): Use build_clobber function.
11582 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11583 * tree-inline.c (expand_call_inline): Likewise.
11584 * tree-sra.c (clobber_subtree): Likewise.
11585 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11586 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11587 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11588 lower_omp_target): Likewise.
11589 * omp-expand.c (expand_omp_for_generic): Likewise.
11590 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11591
11592 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11593
11594 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11595 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11596 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11597 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11598 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11599 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11600 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11601 LD_ELEMREV_V16QI): Use the PURE attribute.
11602
11603 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11604
11605 * config/rs6000/darwin.md: Replace the expanders for
11606 load_macho_picbase and reload_macho_picbase with use of '@'
11607 and <mode> in their respective define_insns.
11608 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11609 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11610 Pmode to gen_load_macho_picbase.
11611 * config/rs6000/rs6000.md: Likewise.
11612
11613 2019-09-25 Richard Biener <rguenther@suse.de>
11614
11615 PR tree-optimization/91896
11616 * tree-vect-loop.c (vectorizable_reduction): The single
11617 def-use cycle optimization cannot apply when there's more
11618 than one pattern stmt involved.
11619
11620 2019-09-26 Richard Biener <rguenther@suse.de>
11621
11622 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11623 loop-closed PHIs that are vect_internal_def.
11624 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11625 Simplify.
11626 (vectorizable_lc_phi): New.
11627 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11628 (vect_transform_stmt): Likewise.
11629 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11630 (vectorizable_lc_phi): Declare.
11631
11632 2019-09-26 Richard Biener <rguenther@suse.de>
11633
11634 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11635 vectorizable_reduction for vect_double_reduction_def.
11636 (vect_transform_loop): Likewise.
11637 (vect_create_epilog_for_reduction): Move double-reduction
11638 PHI creation and preheader argument setting of PHIs ...
11639 (vectorizable_reduction): ... here. Also process
11640 vect_double_reduction_def PHIs, creating the vectorized
11641 PHI nodes, remembering the scalar adjustment computed for
11642 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11643 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11644 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11645 Initialize STMT_VINFO_REDUC_CODE.
11646 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11647 (_stmt_vec_info::reduc_code): Likewise.
11648 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11649 (STMT_VINFO_REDUC_CODE): Likewise.
11650
11651 2019-09-26 Matt Turner <mattst88@gmail.com>
11652
11653 PR driver/69471
11654 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11655 (mtune=): Add Negative(mtune=).
11656 (mcpu=): Add Negative(mcpu=).
11657 * config/arm/arm.opt: Likewise.
11658
11659 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11660
11661 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11662 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11663 Define.
11664 * config/arm/arm_acle.h: Define builtins for the above.
11665 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11666 (simd32_op): Handle the above.
11667 * config/arm/unspecs.md: Define unspecs for the above.
11668
11669 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11670
11671 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11672 (arm_<sup>xtb16): Likewise.
11673 (arm_usada8): Likewise.
11674 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11675 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11676 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11677 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11678 __sxtb16, __uxtab16, __uxtb16): Define.
11679 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11680 * config/arm/unspecs.md: Define unspecs for the above.
11681 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11682 (USXTB16): Likewise.
11683 (simd32_op): New int_attribute.
11684 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11685 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11686
11687 2019-09-26 Martin Jambor <mjambor@suse.cz>
11688
11689 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11690 internal_error.
11691
11692 2019-09-26 Martin Jambor <mjambor@suse.cz>
11693
11694 * ipa-sra.c (process_scan_results): Fix continue condition.
11695
11696 2019-09-26 Martin Liska <mliska@suse.cz>
11697
11698 PR tree-optimization/91885
11699 * tree-vectorizer.c (try_vectorize_loop_1): Add
11700 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11701
11702 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11703
11704 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11705 aarch64_plus_immediate rather than aarch64_uimm12_shift
11706 to test for valid PLUS immediates.
11707
11708 2019-09-25 Martin Jambor <mjambor@suse.cz>
11709
11710 * tree-sra.c (no_accesses_p): Remove.
11711 (no_accesses_representant): Likewise.
11712
11713 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11714
11715 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11716 consistenly.
11717 (vaba_s16): Likewise.
11718 (vaba_s32): Likewise.
11719 (vaba_u8): Likewise.
11720 (vaba_u16): Likewise.
11721 (vaba_u32): Likewise.
11722 (vabal_high_s8): Likewise.
11723 (vabal_high_s16): Likewise.
11724 (vabal_high_s32): Likewise.
11725 (vabal_high_u8): Likewise.
11726 (vabal_high_u16): Likewise.
11727 (vabal_high_u32): Likewise.
11728 (vabal_s8): Likewise.
11729 (vabal_s16): Likewise.
11730 (vabal_s32): Likewise.
11731 (vabal_u8): Likewise.
11732 (vabal_u16): Likewise.
11733 (vabal_u32): Likewise.
11734 (vabaq_s8): Likewise.
11735 (vabaq_s16): Likewise.
11736 (vabaq_s32): Likewise.
11737 (vabaq_u8): Likewise.
11738 (vabaq_u16): Likewise.
11739 (vabaq_u32): Likewise.
11740 (vabd_s8): Likewise.
11741 (vabd_s16): Likewise.
11742 (vabd_s32): Likewise.
11743 (vabd_u8): Likewise.
11744 (vabd_u16): Likewise.
11745 (vabd_u32): Likewise.
11746 (vabdl_high_s8): Likewise.
11747 (vabdl_high_s16): Likewise.
11748 (vabdl_high_s32): Likewise.
11749 (vabdl_high_u8): Likewise.
11750 (vabdl_high_u16): Likewise.
11751 (vabdl_high_u32): Likewise.
11752 (vabdl_s8): Likewise.
11753 (vabdl_s16): Likewise.
11754 (vabdl_s32): Likewise.
11755 (vabdl_u8): Likewise.
11756 (vabdl_u16): Likewise.
11757 (vabdl_u32): Likewise.
11758 (vabdq_s8): Likewise.
11759 (vabdq_s16): Likewise.
11760 (vabdq_s32): Likewise.
11761 (vabdq_u8): Likewise.
11762 (vabdq_u16): Likewise.
11763 (vabdq_u32): Likewise.
11764 (vaddlv_s8): Likewise.
11765 (vaddlv_s16): Likewise.
11766 (vaddlv_u8): Likewise.
11767 (vaddlv_u16): Likewise.
11768 (vaddlvq_s8): Likewise.
11769 (vaddlvq_s16): Likewise.
11770 (vaddlvq_s32): Likewise.
11771 (vaddlvq_u8): Likewise.
11772 (vaddlvq_u16): Likewise.
11773 (vaddlvq_u32): Likewise.
11774 (vcvtx_f32_f64): Likewise.
11775 (vcvtx_high_f32_f64): Likewise.
11776 (vcvtxd_f32_f64): Likewise.
11777 (vmla_n_f32): Likewise.
11778 (vmla_n_s16): Likewise.
11779 (vmla_n_s32): Likewise.
11780 (vmla_n_u16): Likewise.
11781 (vmla_n_u32): Likewise.
11782 (vmla_s8): Likewise.
11783 (vmla_s16): Likewise.
11784 (vmla_s32): Likewise.
11785 (vmla_u8): Likewise.
11786 (vmla_u16): Likewise.
11787 (vmla_u32): Likewise.
11788 (vmlal_high_n_s16): Likewise.
11789 (vmlal_high_n_s32): Likewise.
11790 (vmlal_high_n_u16): Likewise.
11791 (vmlal_high_n_u32): Likewise.
11792 (vmlal_high_s8): Likewise.
11793 (vmlal_high_s16): Likewise.
11794 (vmlal_high_s32): Likewise.
11795 (vmlal_high_u8): Likewise.
11796 (vmlal_high_u16): Likewise.
11797 (vmlal_high_u32): Likewise.
11798 (vmlal_n_s16): Likewise.
11799 (vmlal_n_s32): Likewise.
11800 (vmlal_n_u16): Likewise.
11801 (vmlal_n_u32): Likewise.
11802 (vmlal_s8): Likewise.
11803 (vmlal_s16): Likewise.
11804 (vmlal_s32): Likewise.
11805 (vmlal_u8): Likewise.
11806 (vmlal_u16): Likewise.
11807 (vmlal_u32): Likewise.
11808 (vmlaq_n_f32): Likewise.
11809 (vmlaq_n_s16): Likewise.
11810 (vmlaq_n_s32): Likewise.
11811 (vmlaq_n_u16): Likewise.
11812 (vmlaq_n_u32): Likewise.
11813 (vmlaq_s8): Likewise.
11814 (vmlaq_s16): Likewise.
11815 (vmlaq_s32): Likewise.
11816 (vmlaq_u8): Likewise.
11817 (vmlaq_u16): Likewise.
11818 (vmlaq_u32): Likewise.
11819 (vmls_n_f32): Likewise.
11820 (vmls_n_s16): Likewise.
11821 (vmls_n_s32): Likewise.
11822 (vmls_n_u16): Likewise.
11823 (vmls_n_u32): Likewise.
11824 (vmls_s8): Likewise.
11825 (vmls_s16): Likewise.
11826 (vmls_s32): Likewise.
11827 (vmls_u8): Likewise.
11828 (vmls_u16): Likewise.
11829 (vmls_u32): Likewise.
11830 (vmlsl_high_n_s16): Likewise.
11831 (vmlsl_high_n_s32): Likewise.
11832 (vmlsl_high_n_u16): Likewise.
11833 (vmlsl_high_n_u32): Likewise.
11834 (vmlsl_high_s8): Likewise.
11835 (vmlsl_high_s16): Likewise.
11836 (vmlsl_high_s32): Likewise.
11837 (vmlsl_high_u8): Likewise.
11838 (vmlsl_high_u16): Likewise.
11839 (vmlsl_high_u32): Likewise.
11840 (vmlsl_n_s16): Likewise.
11841 (vmlsl_n_s32): Likewise.
11842 (vmlsl_n_u16): Likewise.
11843 (vmlsl_n_u32): Likewise.
11844 (vmlsl_s8): Likewise.
11845 (vmlsl_s16): Likewise.
11846 (vmlsl_s32): Likewise.
11847 (vmlsl_u8): Likewise.
11848 (vmlsl_u16): Likewise.
11849 (vmlsl_u32): Likewise.
11850 (vmlsq_n_f32): Likewise.
11851 (vmlsq_n_s16): Likewise.
11852 (vmlsq_n_s32): Likewise.
11853 (vmlsq_n_u16): Likewise.
11854 (vmlsq_n_u32): Likewise.
11855 (vmlsq_s8): Likewise.
11856 (vmlsq_s16): Likewise.
11857 (vmlsq_s32): Likewise.
11858 (vmlsq_u8): Likewise.
11859 (vmlsq_u16): Likewise.
11860 (vmlsq_u32): Likewise.
11861 (vmovl_high_s8): Likewise.
11862 (vmovl_high_s16): Likewise.
11863 (vmovl_high_s32): Likewise.
11864 (vmovl_high_u8): Likewise.
11865 (vmovl_high_u16): Likewise.
11866 (vmovl_high_u32): Likewise.
11867 (vmovl_s8): Likewise.
11868 (vmovl_s16): Likewise.
11869 (vmovl_s32): Likewise.
11870 (vmovl_u8): Likewise.
11871 (vmovl_u16): Likewise.
11872 (vmovl_u32): Likewise.
11873 (vmovn_high_s16): Likewise.
11874 (vmovn_high_s32): Likewise.
11875 (vmovn_high_s64): Likewise.
11876 (vmovn_high_u16): Likewise.
11877 (vmovn_high_u32): Likewise.
11878 (vmovn_high_u64): Likewise.
11879 (vmovn_s16): Likewise.
11880 (vmovn_s32): Likewise.
11881 (vmovn_s64): Likewise.
11882 (vmovn_u16): Likewise.
11883 (vmovn_u32): Likewise.
11884 (vmovn_u64): Likewise.
11885 (vmull_high_n_s16): Likewise.
11886 (vmull_high_n_s32): Likewise.
11887 (vmull_high_n_u16): Likewise.
11888 (vmull_high_n_u32): Likewise.
11889 (vmull_high_p8): Likewise.
11890 (vmull_high_s8): Likewise.
11891 (vmull_high_s16): Likewise.
11892 (vmull_high_s32): Likewise.
11893 (vmull_high_u8): Likewise.
11894 (vmull_high_u16): Likewise.
11895 (vmull_high_u32): Likewise.
11896 (vmull_n_s16): Likewise.
11897 (vmull_n_s32): Likewise.
11898 (vmull_n_u16): Likewise.
11899 (vmull_n_u32): Likewise.
11900 (vmull_p8): Likewise.
11901 (vmull_s8): Likewise.
11902 (vmull_s16): Likewise.
11903 (vmull_s32): Likewise.
11904 (vmull_u8): Likewise.
11905 (vmull_u16): Likewise.
11906 (vmull_u32): Likewise.
11907 (vpadal_s8): Likewise.
11908 (vpadal_s16): Likewise.
11909 (vpadal_s32): Likewise.
11910 (vpadal_u8): Likewise.
11911 (vpadal_u16): Likewise.
11912 (vpadal_u32): Likewise.
11913 (vpadalq_s8): Likewise.
11914 (vpadalq_s16): Likewise.
11915 (vpadalq_s32): Likewise.
11916 (vpadalq_u8): Likewise.
11917 (vpadalq_u16): Likewise.
11918 (vpadalq_u32): Likewise.
11919 (vpaddl_s8): Likewise.
11920 (vpaddl_s16): Likewise.
11921 (vpaddl_s32): Likewise.
11922 (vpaddl_u8): Likewise.
11923 (vpaddl_u16): Likewise.
11924 (vpaddl_u32): Likewise.
11925 (vpaddlq_s8): Likewise.
11926 (vpaddlq_s16): Likewise.
11927 (vpaddlq_s32): Likewise.
11928 (vpaddlq_u8): Likewise.
11929 (vpaddlq_u16): Likewise.
11930 (vpaddlq_u32): Likewise.
11931 (vpaddq_s8): Likewise.
11932 (vpaddq_s16): Likewise.
11933 (vpaddq_s32): Likewise.
11934 (vpaddq_s64): Likewise.
11935 (vpaddq_u8): Likewise.
11936 (vpaddq_u16): Likewise.
11937 (vpaddq_u32): Likewise.
11938 (vpaddq_u64): Likewise.
11939 (vqdmulh_n_s16): Likewise.
11940 (vqdmulh_n_s32): Likewise.
11941 (vqdmulhq_n_s16): Likewise.
11942 (vqdmulhq_n_s32): Likewise.
11943 (vqmovn_high_s16): Likewise.
11944 (vqmovn_high_s32): Likewise.
11945 (vqmovn_high_s64): Likewise.
11946 (vqmovn_high_u16): Likewise.
11947 (vqmovn_high_u32): Likewise.
11948 (vqmovn_high_u64): Likewise.
11949 (vqmovun_high_s16): Likewise.
11950 (vqmovun_high_s32): Likewise.
11951 (vqmovun_high_s64): Likewise.
11952 (vqrdmulh_n_s16): Likewise.
11953 (vqrdmulh_n_s32): Likewise.
11954 (vqrdmulhq_n_s16): Likewise.
11955 (vqrdmulhq_n_s32): Likewise.
11956 (vrsqrte_u32): Likewise.
11957 (vrsqrteq_u32): Likewise.
11958 (vtst_p8): Likewise.
11959 (vtst_p16): Likewise.
11960 (vtst_p64): Likewise.
11961 (vtstq_p8): Likewise.
11962 (vtstq_p16): Likewise.
11963 (vtstq_p64): Likewise.
11964 (vaddlv_s32): Likewise.
11965 (vaddlv_u32): Likewise.
11966 (vqtbl1_p8): Likewise.
11967 (vqtbl1_s8): Likewise.
11968 (vqtbl1_u8): Likewise.
11969 (vqtbl1q_p8): Likewise.
11970 (vqtbl1q_s8): Likewise.
11971 (vqtbl1q_u8): Likewise.
11972 (vqtbx1_s8): Likewise.
11973 (vqtbx1_u8): Likewise.
11974 (vqtbx1_p8): Likewise.
11975 (vqtbx1q_s8): Likewise.
11976 (vqtbx1q_u8): Likewise.
11977 (vqtbx1q_p8): Likewise.
11978 (vtbl1_s8): Likewise.
11979 (vtbl1_u8): Likewise.
11980 (vtbl1_p8): Likewise.
11981 (vtbl2_s8): Likewise.
11982 (vtbl2_u8): Likewise.
11983 (vtbl2_p8): Likewise.
11984 (vtbl3_s8): Likewise.
11985 (vtbl3_u8): Likewise.
11986 (vtbl3_p8): Likewise.
11987 (vtbl4_s8): Likewise.
11988 (vtbl4_u8): Likewise.
11989 (vtbl4_p8): Likewise.
11990 (vtbx2_s8): Likewise.
11991 (vtbx2_u8): Likewise.
11992 (vtbx2_p8): Likewise.
11993 (vld1_f32): Likewise.
11994 (vld1_f64): Likewise.
11995 (vld1_p8): Likewise.
11996 (vld1_p16): Likewise.
11997 (vld1_p64): Likewise.
11998 (vld1_s8): Likewise.
11999 (vld1_s16): Likewise.
12000 (vld1_s32): Likewise.
12001 (vld1_s64): Likewise.
12002 (vld1_u8): Likewise.
12003 (vld1_u16): Likewise.
12004 (vld1_u32): Likewise.
12005 (vld1_u64): Likewise.
12006 (vld1q_f32): Likewise.
12007 (vld1q_f64): Likewise.
12008 (vld1q_p8): Likewise.
12009 (vld1q_p16): Likewise.
12010 (vld1q_p64): Likewise.
12011 (vld1q_s8): Likewise.
12012 (vld1q_s16): Likewise.
12013 (vld1q_s32): Likewise.
12014 (vld1q_s64): Likewise.
12015 (vld1q_u8): Likewise.
12016 (vld1q_u16): Likewise.
12017 (vld1q_u32): Likewise.
12018 (vld1q_u64): Likewise.
12019 (vpmax_s8): Likewise.
12020 (vpmax_s16): Likewise.
12021 (vpmax_s32): Likewise.
12022 (vpmax_u8): Likewise.
12023 (vpmax_u16): Likewise.
12024 (vpmax_u32): Likewise.
12025 (vpmaxq_s8): Likewise.
12026 (vpmaxq_s16): Likewise.
12027 (vpmaxq_s32): Likewise.
12028 (vpmaxq_u8): Likewise.
12029 (vpmaxq_u16): Likewise.
12030 (vpmaxq_u32): Likewise.
12031 (vpmax_f32): Likewise.
12032 (vpmaxq_f32): Likewise.
12033 (vpmaxq_f64): Likewise.
12034 (vpmaxqd_f64): Likewise.
12035 (vpmaxs_f32): Likewise.
12036 (vpmaxnm_f32): Likewise.
12037 (vpmaxnmq_f32): Likewise.
12038 (vpmaxnmq_f64): Likewise.
12039 (vpmaxnmqd_f64): Likewise.
12040 (vpmaxnms_f32): Likewise.
12041 (vpmin_s8): Likewise.
12042 (vpmin_s16): Likewise.
12043 (vpmin_s32): Likewise.
12044 (vpmin_u8): Likewise.
12045 (vpmin_u16): Likewise.
12046 (vpmin_u32): Likewise.
12047 (vpminq_s8): Likewise.
12048 (vpminq_s16): Likewise.
12049 (vpminq_s32): Likewise.
12050 (vpminq_u8): Likewise.
12051 (vpminq_u16): Likewise.
12052 (vpminq_u32): Likewise.
12053 (vpmin_f32): Likewise.
12054 (vpminq_f32): Likewise.
12055 (vpminq_f64): Likewise.
12056 (vpminqd_f64): Likewise.
12057 (vpmins_f32): Likewise.
12058 (vpminnm_f32): Likewise.
12059 (vpminnmq_f32): Likewise.
12060 (vpminnmq_f64): Likewise.
12061 (vpminnmqd_f64): Likewise.
12062 (vpminnms_f32): Likewise.
12063 (vmla_f32): Likewise.
12064 (vmlaq_f32): Likewise.
12065 (vmlaq_f64): Likewise.
12066 (vmls_f32): Likewise.
12067 (vmlsq_f32): Likewise.
12068 (vmlsq_f64): Likewise.
12069 (vqtbl2_s8): Likewise.
12070 (vqtbl2_u8): Likewise.
12071 (vqtbl2_p8): Likewise.
12072 (vqtbl2q_s8): Likewise.
12073 (vqtbl2q_u8): Likewise.
12074 (vqtbl2q_p8): Likewise.
12075 (vqtbl3_s8): Likewise.
12076 (vqtbl3_u8): Likewise.
12077 (vqtbl3_p8): Likewise.
12078 (vqtbl3q_s8): Likewise.
12079 (vqtbl3q_u8): Likewise.
12080 (vqtbl3q_p8): Likewise.
12081 (vqtbl4_s8): Likewise.
12082 (vqtbl4_u8): Likewise.
12083 (vqtbl4_p8): Likewise.
12084 (vqtbl4q_s8): Likewise.
12085 (vqtbl4q_u8): Likewise.
12086 (vqtbl4q_p8): Likewise.
12087 (vqtbx2_s8): Likewise.
12088 (vqtbx2_u8): Likewise.
12089 (vqtbx2_p8): Likewise.
12090 (vqtbx2q_s8): Likewise.
12091 (vqtbx2q_u8): Likewise.
12092 (vqtbx2q_p8): Likewise.
12093 (vqtbx3_s8): Likewise.
12094 (vqtbx3_u8): Likewise.
12095 (vqtbx3_p8): Likewise.
12096 (vqtbx3q_s8): Likewise.
12097 (vqtbx3q_u8): Likewise.
12098 (vqtbx3q_p8): Likewise.
12099 (vqtbx4_s8): Likewise.
12100 (vqtbx4_u8): Likewise.
12101 (vqtbx4_p8): Likewise.
12102 (vqtbx4q_s8): Likewise.
12103 (vqtbx4q_u8): Likewise.
12104 (vqtbx4q_p8): Likewise.
12105 (vrev16_p8): Likewise.
12106 (vrev16_s8): Likewise.
12107 (vrev16_u8): Likewise.
12108 (vrev16q_p8): Likewise.
12109 (vrev16q_s8): Likewise.
12110 (vrev16q_u8): Likewise.
12111 (vrev32_p8): Likewise.
12112 (vrev32_p16): Likewise.
12113 (vrev32_s8): Likewise.
12114 (vrev32_s16): Likewise.
12115 (vrev32_u8): Likewise.
12116 (vrev32_u16): Likewise.
12117 (vrev32q_p8): Likewise.
12118 (vrev32q_p16): Likewise.
12119 (vrev32q_s8): Likewise.
12120 (vrev32q_s16): Likewise.
12121 (vrev32q_u8): Likewise.
12122 (vrev32q_u16): Likewise.
12123 (vrev64_f32): Likewise.
12124 (vrev64_p8): Likewise.
12125 (vrev64_p16): Likewise.
12126 (vrev64_s8): Likewise.
12127 (vrev64_s16): Likewise.
12128 (vrev64_s32): Likewise.
12129 (vrev64_u8): Likewise.
12130 (vrev64_u16): Likewise.
12131 (vrev64_u32): Likewise.
12132 (vrev64q_f32): Likewise.
12133 (vrev64q_p8): Likewise.
12134 (vrev64q_p16): Likewise.
12135 (vrev64q_s8): Likewise.
12136 (vrev64q_s16): Likewise.
12137 (vrev64q_s32): Likewise.
12138 (vrev64q_u8): Likewise.
12139 (vrev64q_u16): Likewise.
12140 (vrev64q_u32): Likewise.
12141 (vsha1cq_u32): Likewise.
12142 (vsha1mq_u32): Likewise.
12143 (vsha1pq_u32): Likewise.
12144 (vsha1h_u32): Likewise.
12145 (vsha1su0q_u32): Likewise.
12146 (vsha1su1q_u32): Likewise.
12147 (vsha256hq_u32): Likewise.
12148 (vsha256h2q_u32): Likewise.
12149 (vsha256su0q_u32): Likewise.
12150 (vsha256su1q_u32): Likewise.
12151 (vmull_p64): Likewise.
12152 (vmull_high_p64): Likewise.
12153 (vsqrt_f32): Likewise.
12154 (vsqrtq_f32): Likewise.
12155 (vsqrt_f64): Likewise.
12156 (vsqrtq_f64): Likewise.
12157 (vst1_f32): Likewise.
12158 (vst1_f64): Likewise.
12159 (vst1_p8): Likewise.
12160 (vst1_p16): Likewise.
12161 (vst1_p64): Likewise.
12162 (vst1_s8): Likewise.
12163 (vst1_s16): Likewise.
12164 (vst1_s32): Likewise.
12165 (vst1_s64): Likewise.
12166 (vst1_u8): Likewise.
12167 (vst1_u16): Likewise.
12168 (vst1_u32): Likewise.
12169 (vst1_u64): Likewise.
12170 (vst1q_f32): Likewise.
12171 (vst1q_f64): Likewise.
12172 (vst1q_p8): Likewise.
12173 (vst1q_p16): Likewise.
12174 (vst1q_p64): Likewise.
12175 (vst1q_s8): Likewise.
12176 (vst1q_s16): Likewise.
12177 (vst1q_s32): Likewise.
12178 (vst1q_s64): Likewise.
12179 (vst1q_u8): Likewise.
12180 (vst1q_u16): Likewise.
12181 (vst1q_u32): Likewise.
12182 (vst1q_u64): Likewise.
12183 (vst1_s64_x2): Likewise.
12184 (vst1_u64_x2): Likewise.
12185 (vst1_f64_x2): Likewise.
12186 (vst1_s8_x2): Likewise.
12187 (vst1_p8_x2): Likewise.
12188 (vst1_s16_x2): Likewise.
12189 (vst1_p16_x2): Likewise.
12190 (vst1_s32_x2): Likewise.
12191 (vst1_u8_x2): Likewise.
12192 (vst1_u16_x2): Likewise.
12193 (vst1_u32_x2): Likewise.
12194 (vst1_f16_x2): Likewise.
12195 (vst1_f32_x2): Likewise.
12196 (vst1_p64_x2): Likewise.
12197 (vst1q_s8_x2): Likewise.
12198 (vst1q_p8_x2): Likewise.
12199 (vst1q_s16_x2): Likewise.
12200 (vst1q_p16_x2): Likewise.
12201 (vst1q_s32_x2): Likewise.
12202 (vst1q_s64_x2): Likewise.
12203 (vst1q_u8_x2): Likewise.
12204 (vst1q_u16_x2): Likewise.
12205 (vst1q_u32_x2): Likewise.
12206 (vst1q_u64_x2): Likewise.
12207 (vst1q_f16_x2): Likewise.
12208 (vst1q_f32_x2): Likewise.
12209 (vst1q_f64_x2): Likewise.
12210 (vst1q_p64_x2): Likewise.
12211 (vst1_s64_x3): Likewise.
12212 (vst1_u64_x3): Likewise.
12213 (vst1_f64_x3): Likewise.
12214 (vst1_s8_x3): Likewise.
12215 (vst1_p8_x3): Likewise.
12216 (vst1_s16_x3): Likewise.
12217 (vst1_p16_x3): Likewise.
12218 (vst1_s32_x3): Likewise.
12219 (vst1_u8_x3): Likewise.
12220 (vst1_u16_x3): Likewise.
12221 (vst1_u32_x3): Likewise.
12222 (vst1_f16_x3): Likewise.
12223 (vst1_f32_x3): Likewise.
12224 (vst1_p64_x3): Likewise.
12225 (vst1q_s8_x3): Likewise.
12226 (vst1q_p8_x3): Likewise.
12227 (vst1q_s16_x3): Likewise.
12228 (vst1q_p16_x3): Likewise.
12229 (vst1q_s32_x3): Likewise.
12230 (vst1q_s64_x3): Likewise.
12231 (vst1q_u8_x3): Likewise.
12232 (vst1q_u16_x3): Likewise.
12233 (vst1q_u32_x3): Likewise.
12234 (vst1q_u64_x3): Likewise.
12235 (vst1q_f16_x3): Likewise.
12236 (vst1q_f32_x3): Likewise.
12237 (vst1q_f64_x3): Likewise.
12238 (vst1q_p64_x3): Likewise.
12239 (vst2_s64): Likewise.
12240 (vst2_u64): Likewise.
12241 (vst2_f64): Likewise.
12242 (vst2_s8): Likewise.
12243 (vst2_p8): Likewise.
12244 (vst2_s16): Likewise.
12245 (vst2_p16): Likewise.
12246 (vst2_s32): Likewise.
12247 (vst2_u8): Likewise.
12248 (vst2_u16): Likewise.
12249 (vst2_u32): Likewise.
12250 (vst2_f16): Likewise.
12251 (vst2_f32): Likewise.
12252 (vst2_p64): Likewise.
12253 (vst2q_s8): Likewise.
12254 (vst2q_p8): Likewise.
12255 (vst2q_s16): Likewise.
12256 (vst2q_p16): Likewise.
12257 (vst2q_s32): Likewise.
12258 (vst2q_s64): Likewise.
12259 (vst2q_u8): Likewise.
12260 (vst2q_u16): Likewise.
12261 (vst2q_u32): Likewise.
12262 (vst2q_u64): Likewise.
12263 (vst2q_f16): Likewise.
12264 (vst2q_f32): Likewise.
12265 (vst2q_f64): Likewise.
12266 (vst2q_p64): Likewise.
12267 (vst3_s64): Likewise.
12268 (vst3_u64): Likewise.
12269 (vst3_f64): Likewise.
12270 (vst3_s8): Likewise.
12271 (vst3_p8): Likewise.
12272 (vst3_s16): Likewise.
12273 (vst3_p16): Likewise.
12274 (vst3_s32): Likewise.
12275 (vst3_u8): Likewise.
12276 (vst3_u16): Likewise.
12277 (vst3_u32): Likewise.
12278 (vst3_f16): Likewise.
12279 (vst3_f32): Likewise.
12280 (vst3_p64): Likewise.
12281 (vst3q_s8): Likewise.
12282 (vst3q_p8): Likewise.
12283 (vst3q_s16): Likewise.
12284 (vst3q_p16): Likewise.
12285 (vst3q_s32): Likewise.
12286 (vst3q_s64): Likewise.
12287 (vst3q_u8): Likewise.
12288 (vst3q_u16): Likewise.
12289 (vst3q_u32): Likewise.
12290 (vst3q_u64): Likewise.
12291 (vst3q_f16): Likewise.
12292 (vst3q_f32): Likewise.
12293 (vst3q_f64): Likewise.
12294 (vst3q_p64): Likewise.
12295 (vst4_s64): Likewise.
12296 (vst4_u64): Likewise.
12297 (vst4_f64): Likewise.
12298 (vst4_s8): Likewise.
12299 (vst4_p8): Likewise.
12300 (vst4_s16): Likewise.
12301 (vst4_p16): Likewise.
12302 (vst4_s32): Likewise.
12303 (vst4_u8): Likewise.
12304 (vst4_u16): Likewise.
12305 (vst4_u32): Likewise.
12306 (vst4_f16): Likewise.
12307 (vst4_f32): Likewise.
12308 (vst4_p64): Likewise.
12309 (vst4q_s8): Likewise.
12310 (vst4q_p8): Likewise.
12311 (vst4q_s16): Likewise.
12312 (vst4q_p16): Likewise.
12313 (vst4q_s32): Likewise.
12314 (vst4q_s64): Likewise.
12315 (vst4q_u8): Likewise.
12316 (vst4q_u16): Likewise.
12317 (vst4q_u32): Likewise.
12318 (vst4q_u64): Likewise.
12319 (vst4q_f16): Likewise.
12320 (vst4q_f32): Likewise.
12321 (vst4q_f64): Likewise.
12322 (vst4q_p64): Likewise.
12323 (vtbx4_s8): Likewise.
12324 (vtbx4_u8): Likewise.
12325 (vtbx4_p8): Likewise.
12326 (vtrn_f32): Likewise.
12327 (vtrn_p8): Likewise.
12328 (vtrn_p16): Likewise.
12329 (vtrn_s8): Likewise.
12330 (vtrn_s16): Likewise.
12331 (vtrn_s32): Likewise.
12332 (vtrn_u8): Likewise.
12333 (vtrn_u16): Likewise.
12334 (vtrn_u32): Likewise.
12335 (vtrnq_f32): Likewise.
12336 (vtrnq_p8): Likewise.
12337 (vtrnq_p16): Likewise.
12338 (vtrnq_s8): Likewise.
12339 (vtrnq_s16): Likewise.
12340 (vtrnq_s32): Likewise.
12341 (vtrnq_u8): Likewise.
12342 (vtrnq_u16): Likewise.
12343 (vtrnq_u32): Likewise.
12344 (vrsqrte_f16): Likewise.
12345 (vrsqrteq_f16): Likewise.
12346 (vsqrt_f16): Likewise.
12347 (vsqrtq_f16): Likewise.
12348 (vabd_f16): Likewise.
12349 (vabdq_f16): Likewise.
12350 (vpadd_f16): Likewise.
12351 (vpaddq_f16): Likewise.
12352 (vpmax_f16): Likewise.
12353 (vpmaxq_f16): Likewise.
12354 (vpmaxnm_f16): Likewise.
12355 (vpmaxnmq_f16): Likewise.
12356 (vpmin_f16): Likewise.
12357 (vpminq_f16): Likewise.
12358 (vpminnm_f16): Likewise.
12359 (vpminnmq_f16): Likewise.
12360 (vrsqrts_f16): Likewise.
12361 (vrsqrtsq_f16): Likewise.
12362
12363 2019-09-25 Richard Biener <rguenther@suse.de>
12364
12365 PR tree-optimization/91896
12366 * tree-vect-loop.c (vectorizable_reduction): The single
12367 def-use cycle optimization cannot apply when there's more
12368 than one pattern stmt involved.
12369
12370 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12371
12372 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12373 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12374 (reload_macho_picbase_<mode>): Likewise.
12375
12376 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12377
12378 * config/rs6000/rs6000.md: Move darwin.md include until
12379 after the definition of the mode iterators.
12380
12381 2019-09-23 Martin Sebor <msebor@redhat.com>
12382
12383 PR tree-optimization/91570
12384 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12385 non-constant minlen, maxlen and maxbound.
12386
12387 2019-09-24 Richard Biener <rguenther@suse.de>
12388
12389 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12390 Rename to...
12391 (_stmt_vec_info::cond_reduc_code): ... this.
12392 (_stmt_vec_info::induc_cond_initial_val): Add.
12393 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12394 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12395 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12396 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12397 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12398 the reduction code.
12399 (vect_create_epilog_for_reduction): Drop special
12400 induction condition reduction params, pass in reduction code
12401 and simplify.
12402 (vectorizable_reduction): Perform condition reduction kind
12403 selection only at analysis time. Adjust passing on state.
12404
12405 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12406
12407 * config/aarch64/aarch64.md (mov<mode>): Don't call
12408 aarch64_split_dimode_const_store on volatile MEM.
12409
12410 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12411
12412 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12413 Update hwcap string for fp16fml.
12414
12415 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12416
12417 PR middle-end/91866
12418 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12419 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12420
12421 2019-09-24 Martin Liska <mliska@suse.cz>
12422
12423 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12424 instead of if-elseif-elseif-...
12425 * gimple-expr.c (extract_ops_from_tree): Likewise.
12426 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12427 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12428
12429 2019-09-24 Martin Jambor <mjambor@suse.cz>
12430
12431 PR ipa/91831
12432 * ipa-param-manipulation.c (carry_over_param): Make a method of
12433 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12434 in case of a context mismatch.
12435 (ipa_param_body_adjustments::common_initialization): Adjust call to
12436 carry_over_param.
12437 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12438 private method carry_over_param.
12439
12440 2019-09-24 Martin Jambor <mjambor@suse.cz>
12441
12442 PR ipa/91832
12443 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12444
12445 2019-09-24 Richard Biener <rguenther@suse.de>
12446
12447 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12448 base.
12449
12450 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12451
12452 * config/arm/t-arm (arm-builtins.o): Add dependency on
12453 arm_acle_builtins.def.
12454
12455 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12456
12457 PR target/91823
12458 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12459 canonical CONST_INTs. Use gen_rtvec.
12460
12461 2019-09-23 Richard Biener <rguenther@suse.de>
12462
12463 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12464 avoid adjusting by + 0 or * 1.
12465 (vect_create_epilog_for_reduction): Get reduction code only
12466 when necessary. Deal with adjustment_def only when necessary.
12467
12468 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12469
12470 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12471 memmodel index.
12472
12473 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12474
12475 PR ipa/91835
12476 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12477 "ipa-sra".
12478
12479 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12480
12481 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12482 code. Merge code blocks with common conditionals. Use declared
12483 macro instead of a magic number for PIC level.
12484
12485 2019-09-21 Martin Sebor <msebor@redhat.com>
12486
12487 PR middle-end/91830
12488 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12489 Simplify computation of the offset of the referenced subobject.
12490
12491 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12492
12493 * config/darwin.c (machopic_legitimize_pic_address): Check
12494 for lra not reload.
12495
12496 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12497
12498 * ira-conflicts.c (can_use_same_reg_p): New function.
12499 (process_reg_shuffles): Take an insn parameter. Ignore cases
12500 in which input operand op_num could seemingly never be allocated
12501 to the same register as the destination.
12502 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12503
12504 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12505
12506 * simplify-rtx.c (neg_const_int): Replace with...
12507 (neg_poly_int_rtx): ...this new function.
12508 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12509 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12510 (simplify_plus_minus): Likewise for constant terms here.
12511
12512 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12513
12514 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12515 HOST_WIDE_PRINT_UNSIGNED.
12516
12517 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12518
12519 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12520 character.
12521
12522 2019-09-20 Maya Rashish <coypu@sdf.org>
12523
12524 PR target/86811
12525 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12526 Define to speculation_safe_value_not_needed.
12527
12528 2019-09-20 Richard Biener <rguenther@suse.de>
12529 Uros Bizjak <ubizjak@gmail.com>
12530
12531 PR target/91814
12532 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12533 previous change.
12534 (general_scalar_chain::convert_op): Force not suitable memory
12535 operands to a register.
12536
12537 2019-09-20 Richard Biener <rguenther@suse.de>
12538
12539 PR tree-optimization/91821
12540 * tree-vect-loop.c (check_reduction_path): Check we can compute
12541 reduc_idx.
12542 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12543 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12544 operands in canonical order.
12545 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12546 STMT_VINFO_REDUC_IDX.
12547 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12548 (STMT_VINFO_REDUC_IDX): Likewise.
12549
12550 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12551
12552 PR target/91269
12553 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12554
12555 2019-09-20 Richard Biener <rguenther@suse.de>
12556
12557 PR tree-optimization/91822
12558 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12559 parameter.
12560 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12561 for reduc_index in nested cycles, adjust vectorizable_condition
12562 calls.
12563 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12564 parameter.
12565 (vect_analyze_stmt): Adjust.
12566 (vect_transform_stmt): Likewise.
12567
12568 2019-09-20 Richard Biener <rguenther@suse.de>
12569
12570 PR target/91767
12571 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12572 Ensure there's a sequence point between allocating the new register
12573 and passing a reference to a reg via regno_reg_rtx.
12574
12575 2019-09-20 Martin Jambor <mjambor@suse.cz>
12576
12577 * coretypes.h (cgraph_edge): Declare.
12578 * ipa-param-manipulation.c: Rewrite.
12579 * ipa-param-manipulation.h: Likewise.
12580 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12581 (OBJS): Added ipa-sra.o.
12582 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12583 and ref_p, added fields param_adjustments and performed_splits.
12584 (struct cgraph_clone_info): Remove ags_to_skip and
12585 combined_args_to_skip, new field param_adjustments.
12586 (cgraph_node::create_clone): Changed parameters to use
12587 ipa_param_adjustments.
12588 (cgraph_node::create_virtual_clone): Likewise.
12589 (cgraph_node::create_virtual_clone_with_body): Likewise.
12590 (tree_function_versioning): Likewise.
12591 (cgraph_build_function_type_skip_args): Removed.
12592 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12593 using ipa_param_adjustments.
12594 (clone_of_p): Likewise.
12595 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12596 (build_function_decl_skip_args): Likewise.
12597 (duplicate_thunk_for_node): Adjust parameters using
12598 ipa_param_body_adjustments, copy param_adjustments instead of
12599 args_to_skip.
12600 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12601 (cgraph_node::create_virtual_clone): Likewise.
12602 (cgraph_node::create_version_clone_with_body): Likewise.
12603 (cgraph_materialize_clone): Likewise.
12604 (symbol_table::materialize_all_clones): Likewise.
12605 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12606 ipa_replace_map check.
12607 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12608 (initialize_node_lattices): Make aware that some parameters might have
12609 already been removed.
12610 (want_remove_some_param_p): New function.
12611 (create_specialized_node): Convert to using ipa_param_adjustments and
12612 deal with possibly pre-existing adjustments.
12613 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12614 (output_node_opt_summary): Do not stream removed fields. Stream
12615 parameter adjustments instead of argumetns to skip.
12616 (input_node_opt_summary): Likewise.
12617 (input_node_opt_summary): Likewise.
12618 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12619 * lto-streamer.h (lto_section_type): Likewise.
12620 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12621 param_body_adjs.
12622 (copy_decl_to_var): Declare.
12623 * tree-inline.c (update_clone_info): Do not remap old_tree.
12624 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12625 statements, walk all extra generated statements and remap their
12626 operands.
12627 (redirect_all_calls): Add killed SSA names to a hash set.
12628 (remap_ssa_name): Do not remap killed SSA names.
12629 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12630 half of functionality moved to ipa_param_body_adjustments.
12631 (copy_decl_to_var): Make exported.
12632 (copy_body): Destroy killed_new_ssa_names hash set.
12633 (expand_call_inline): Remap performed splits.
12634 (update_clone_info): Likewise.
12635 (tree_function_versioning): Simplify tree_map processing. Updated to
12636 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12637 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12638 for the new interface.
12639 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12640 (simd_clone_compute_base_data_type): Likewise.
12641 (simd_clone_init_simd_arrays): Adjust for the new interface.
12642 (simd_clone_adjust_argument_types): Likewise.
12643 (struct modify_stmt_info): Likewise.
12644 (ipa_simd_modify_stmt_ops): Likewise.
12645 (ipa_simd_modify_function_body): Likewise.
12646 (simd_clone_adjust): Likewise.
12647 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12648 (type_internals_preclude_sra_p): Make public.
12649 * tree-sra.h: New file.
12650 * ipa-inline-transform.c (save_inline_function_body): Update to
12651 refelct new tree_function_versioning signature.
12652 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12653 ipa_param_adjustments to get current parameter indices.
12654 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12655 (ipcp_update_bits): Likewise.
12656 (ipcp_update_vr): Likewise.
12657 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12658 * ipa-sra.c: New file.
12659 * multiple_target.c (create_target_clone): Update to reflet new type
12660 of create_version_clone_with_body.
12661 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12662 tree_function_versioning.
12663 (modify_function): Update to reflect new type of
12664 tree_function_versioning.
12665 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12666 * passes.def: Remove old IPA-SRA and add new one.
12667 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12668 (make_pass_ipa_sra): Declare.
12669 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12670 ipa_sra_retvalues.
12671 * doc/invoke.texi (ipa-sra-max-replacements): New.
12672
12673 2019-09-19 Martin Sebor <msebor@redhat.com>
12674
12675 PR middle-end/91631
12676 * builtins.c (component_size): Correct trailing array computation,
12677 rename to component_ref_size and move...
12678 (compute_objsize): Adjust.
12679 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12680 (builtin_access::strict): Do not consider memmove.
12681 (builtin_access::write_off): New function.
12682 (builtin_memref::builtin_memref): Initialize refsize.
12683 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12684 refsize.
12685 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12686 Handle refsize.
12687 (builtin_access::builtin_access): Initialize dstoff to destination
12688 refeence offset here instead of in maybe_diag_overlap. Adjust
12689 referencess even to unrelated objects. Adjust sizrange of bounded
12690 string functions to reflect bound. For strcat, adjust destination
12691 sizrange by that of source.
12692 (builtin_access::strcat_overlap): Adjust offsets and sizes
12693 to reflect the increase in destination sizrange above.
12694 (builtin_access::overlap): Do not set dstoff here but instead
12695 in builtin_access::builtin_access.
12696 (check_bounds_or_overlap): Use builtin_access::write_off.
12697 (maybe_diag_access_bounds): Add argument. Add informational notes.
12698 (dump_builtin_memref, dump_builtin_access): New functions.
12699 * tree.c (component_ref_size): ...to here.
12700 * tree.h (component_ref_size): Declare.
12701 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12702 nul in the size of the source string.
12703
12704 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12705
12706 PR c/67224
12707 * doc/cpp.texi: Document support for extended characters in
12708 identifiers.
12709 * doc/cppopts.texi: Likewise.
12710
12711 2019-09-19 Richard Biener <rguenther@suse.de>
12712
12713 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12714 (check_reduction_path): New overload having the path as result.
12715 (vect_is_simple_reduction): From the detected reduction
12716 path build a SLP reduction chain if possible.
12717
12718 2019-09-19 Richard Biener <rguenther@suse.de>
12719
12720 PR target/91814
12721 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12722 Force operand to a register if it isn't nonimmediate_operand.
12723
12724 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12725
12726 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12727 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12728 (logical_op): Remove code attribute.
12729 (logical_OP): Likewise.
12730
12731 2019-09-19 Martin Liska <mliska@suse.cz>
12732
12733 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12734 Use proper casting.
12735
12736 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12737
12738 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12739 registers with %R.
12740
12741 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12742 for NE comparison of TImode values.
12743 (aarch64_emit_load_exclusive): Add support for TImode.
12744 (aarch64_emit_store_exclusive): Likewise.
12745 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12746 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12747 Change iterator from ALLI to ALLI_TI.
12748 (@atomic_compare_and_swap<JUST_TI>): New.
12749 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12750 (aarch64_load_exclusive_pair): New.
12751 (aarch64_store_exclusive_pair): New.
12752 * config/aarch64/iterators.md (JUST_TI): New.
12753
12754 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12755 strong_zero_p for aarch64_track_speculation; unify some code paths;
12756 use aarch64_gen_compare_reg instead of open-coding.
12757
12758 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12759 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12760 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12761 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12762 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12763 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12764 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12765 (atomic_<atomic_op><ALLI>): Likewise.
12766 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12767 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12768 * doc/invoke.texi: Document -moutline-atomics.
12769
12770 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12771
12772 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12773 trivial predicate for condition branch.
12774 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12775 for switch case.
12776 (compute_bb_predicates): Update predicate based on post-dominating
12777 relationship.
12778 (analyze_function_body): Calculate post-dominating information.
12779
12780 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12781
12782 * tree-vectorizer.h (vectorizable_condition): Take an int
12783 reduction index instead of a boolean flag.
12784 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12785 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12786 reductions if the reduction accumulator is the "then" rather
12787 than the "else" value.
12788 (vect_analyze_stmt): Update call accordingly.
12789 (vect_transform_stmt): Likewise.
12790 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12791 asserting that the index is > 0.
12792
12793 2019-09-19 Martin Liska <mliska@suse.cz>
12794
12795 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12796 (sort_congruence_classes_by_decl_uid): Likewise.
12797 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12798 easier sorting.
12799 (sem_item_optimizer::merge_classes): Likewise.
12800
12801 2019-09-19 Richard Biener <rguenther@suse.de>
12802
12803 PR tree-optimization/91812
12804 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12805 volatile loads.
12806
12807 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12808
12809 * defaults.h (TARGET_UNIT): New macro.
12810 (target_unit): New type.
12811 * rtl.h (native_encode_rtx, native_decode_rtx)
12812 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12813 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12814 * rtlanal.c (subreg_lsb_1): Delete.
12815 (subreg_size_lsb): New function.
12816 * simplify-rtx.c: Include rtx-vector-builder.h
12817 (simplify_immed_subreg): Delete.
12818 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12819 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12820 functions.
12821 (simplify_subreg): Use them.
12822 (test_vector_subregs_modes, test_vector_subregs_repeating)
12823 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12824 (test_vector_subregs): New functions.
12825 (test_vector_ops): Call test_vector_subregs for integer vector
12826 modes with at least 2 elements.
12827
12828 2019-09-19 Richard Biener <rguenther@suse.de>
12829
12830 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12831 LOOP_VINFO_OPERANDS_SWAPPED.
12832 (parloops_is_simple_reduction): Likewise.
12833 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12834 initialize operands_swapped.
12835 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12836 (vect_is_slp_reduction): Do not swap operands.
12837 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12838 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12839
12840 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12841
12842 PR target/87007
12843 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12844 Add avx_partial_xmm_update.
12845
12846 2019-09-18 Jim Wilson <jimw@sifive.com>
12847
12848 PR target/91683
12849 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12850 (riscv_move_integer): Likewise.
12851 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12852 riscv_move_integer arg.
12853 (riscv_legitimize_move): Likewise.
12854 (riscv_force_temporary): New parameter in_splitter. Don't call
12855 force_reg if true.
12856 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12857 arg.
12858 (riscv_add_offset): Likewise.
12859 (riscv_split_symbol): New parameter in_splitter. Pass to
12860 riscv_force_temporary.
12861 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12862 arg.
12863 (riscv_move_integer): New parameter in_splitter. New local
12864 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12865 in_splitter TRUE.
12866 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12867 riscv_split_symbol, and riscv_force_temporary args.
12868 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12869 riscv_move_integer arg.
12870 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12871
12872 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12873
12874 PR target/90878
12875 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12876 hard register store cost to 6.
12877
12878 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12879
12880 PR target/91446
12881 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12882 pseudo register store cost from 3 to 6 to make it the same as
12883 QImode and HImode.
12884
12885 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12886
12887 PR target/91738
12888 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12889 (one_cmpldi2): Likewise.
12890 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12891 of the constant parts is simple.
12892 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12893 (logical_op): Add new code attribute.
12894 (logical_OP): Likewise.
12895 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12896 (arm_iordi_operand): Add predicate.
12897 (arm_xordi_operand): Add predicate.
12898
12899 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12900
12901 * config/arm/arm.md (maddsidi4): Remove expander.
12902 (mulsidi3adddi): Remove pattern.
12903 (mulsidi3adddi_v6): Likewise.
12904 (mulsidi3_nov6): Likewise.
12905 (mulsidi3_v6): Likewise.
12906 (umulsidi3): Remove expander.
12907 (umulsidi3_nov6): Remove pattern.
12908 (umulsidi3_v6): Likewise.
12909 (umulsidi3adddi): Likewise.
12910 (umulsidi3adddi_v6): Likewise.
12911 (<Us>mulsidi3): Add combined expander.
12912 (<Us>maddsidi4): Likewise.
12913 (<US>mull): Add combined umull and smull pattern.
12914 (<US>mlal): Likewise.
12915 * config/arm/iterators.md (Us): Add new iterator.
12916
12917 2019-09-18 Richard Biener <rguenther@suse.de>
12918
12919 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12920 swapping.
12921 (vectorize_fold_left_reduction): Remove assert.
12922 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12923 operand in position 2. Remove assert.
12924
12925 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12926
12927 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12928 (smulsi3_highpart_nov6): Remove pattern.
12929 (smulsi3_highpart_v6): Likewise.
12930 (umulsi3_highpart): Likewise.
12931 (umulsi3_highpart_nov6): Likewise.
12932 (umulsi3_highpart_v6): Likewise.
12933 (<US>mull_high): Add new combined multiply pattern.
12934
12935 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12936
12937 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12938 (arm_mulsi3_v6): Likewise.
12939 (mulsi3addsi_v6): Likewise.
12940 (mulsi3subsi): Likewise.
12941 (mul): Add new multiply pattern.
12942 (mla): Likewise.
12943 (mls): Likewise.
12944
12945 2019-09-18 Richard Biener <rguenther@suse.de>
12946
12947 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12948 (parloops_valid_reduction_input_p): Copy from
12949 valid_reduction_input_p.
12950 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12951 (parloops_needs_fold_left_reduction_p): Copy from
12952 needs_fold_left_reduction_p.
12953 (parloops_is_simple_reduction): Copy from
12954 vect_is_simple_reduction.
12955 (parloops_force_simple_reduction): Copy from
12956 vect_force_simple_reduction.
12957 (gather_scalar_reductions): Adjust.
12958 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12959 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12960
12961 2019-09-18 Richard Biener <rguenther@suse.de>
12962
12963 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12964 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12965 static.
12966 (vect_create_epilog_for_reduction): Remove dead code.
12967
12968 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12969
12970 * varasm.c (assemble_real): Generate canonical const_ints.
12971
12972 2019-09-18 Richard Biener <rguenther@suse.de>
12973
12974 PR lto/91763
12975 * lto-streamer-in.c (input_eh_regions): Move EH init to
12976 lto_materialize_function.
12977 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12978 Likewise.
12979
12980 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12981
12982 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12983 are INTEGER_CSTs.
12984
12985 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12986
12987 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12988 of checking specifically for INTEGER_CST.
12989
12990 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12991
12992 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12993 sizes instead of uhwi sizes.
12994
12995 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12996
12997 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12998 (add_const_value_attribute): Handle CONST_POLY_INT.
12999
13000 2019-09-18 Martin Liska <mliska@suse.cz>
13001
13002 * dbgcnt.def (store_merging): New counter.
13003 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13004 Use it in store merging.
13005
13006 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13007
13008 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13009 function.
13010 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13011 * config/arm/arm.c (arm_sched_variable_issue): New function.
13012 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13013
13014 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13015
13016 * config/arm/types.md (no_reservation): New reservation.
13017 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13018 no_insn here.
13019 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13020 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13021 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13022 * config/arm/arm1020e.md (1020alu_op): Likewise.
13023 * config/arm/arm1026ejs.md (alu_op): Likewise.
13024 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13025 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13026 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13027 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13028 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13029 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13030 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13031 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13032 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13033 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13034 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13035 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13036 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13037 * config/arm/fa526.md (526_alu_op): Likewise.
13038 * config/arm/fa606te.md (606te_alu_op): Likewise.
13039 * config/arm/fa626te.md (626te_alu_op): Likewise.
13040 * config/arm/fa726te.md (726te_alu_op): Likewise.
13041 * config/arm/xgene1.md (xgene1_nop): Likewise.
13042
13043 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13044
13045 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13046 "no_insn" to "branch".
13047
13048 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13049
13050 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13051
13052 2019-09-17 Richard Biener <rguenther@suse.de>
13053
13054 PR debug/91772
13055 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13056 was missing generate locations only once.
13057
13058 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13059
13060 PR ipa/91089
13061 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13062 option.
13063 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13064 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13065 for switch default case using range analysis information.
13066
13067 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13068
13069 PR target/91749
13070 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13071 mode attributed is supported by FDPIC.
13072
13073 2019-09-17 Richard Biener <rguenther@suse.de>
13074
13075 PR tree-optimization/91790
13076 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13077 use the correct DR for setting up realignment.
13078
13079 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13080
13081 PR target/91719
13082 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13083 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13084 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13085 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13086
13087 2019-09-16 Jason Merrill <jason@redhat.com>
13088
13089 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13090
13091 2019-09-16 Martin Liska <mliska@suse.cz>
13092
13093 * gimple-fold.c (or_comparisons_1): Remove rules moved
13094 to ...
13095 * match.pd: ... here.
13096
13097 2019-09-16 Martin Liska <mliska@suse.cz>
13098
13099 * gimple-fold.c (or_comparisons_1): Remove rules
13100 moved to ...
13101 * match.pd: ... here.
13102
13103 2019-09-16 Martin Liska <mliska@suse.cz>
13104
13105 * genmatch.c (dt_node::append_simplify): Do not print
13106 warning when we have duplicate patterns belonging
13107 to a same simplify rule.
13108 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13109 (maybe_fold_comparisons_from_match_pd): Handle
13110 tcc_comparison as a results.
13111 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13112
13113 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13114 Qi Feng <ffengqi@linux.ibm.com>
13115
13116 PR middle-end/88784
13117 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13118 (x > y && x == XXX_MIN): Optimize into 'false'.
13119 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13120 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13121 (x < y && x == XXX_MAX): Optimize into 'false'.
13122 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13123 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13124 (x <= y || x != XXX_MIN): Optimize into 'true'.
13125 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13126 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13127 (x >= y || x != XXX_MAX): Optimize into 'true'.
13128 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13129
13130 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13131 Martin Liska <mliska@suse.cz>
13132
13133 * gimple-fold.c (and_comparisons_1): Add type as first
13134 argument.
13135 (and_var_with_comparison): Likewise.
13136 (and_var_with_comparison_1): Likewise.
13137 (or_comparisons_1): Likewise.
13138 (or_var_with_comparison): Likewise.
13139 (or_var_with_comparison_1): Likewise.
13140 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13141 (maybe_fold_or_comparisons): Likewise.
13142 (maybe_fold_comparisons_from_match_pd): New.
13143 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13144 (maybe_fold_or_comparisons): Likewise.
13145 * gimple.c (gimple_size): Make it public and add num_ops argument.
13146 (gimple_init): New function.
13147 (gimple_alloc): Call gimple_init.
13148 * gimple.h (gimple_size): New.
13149 (gimple_init): Likewise.
13150 * tree-if-conv.c (fold_or_predicates): Pass type.
13151 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13152 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13153 (optimize_vec_cond_expr): Likewise.
13154 (ovce_extract_ops): Return type of conditional expression.
13155 * tree-ssanames.c (init_ssa_name_imm_use): New.
13156 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13157 * tree-ssanames.h (init_ssa_name_imm_use): New.
13158
13159 2019-09-16 Richard Biener <rguenther@suse.de>
13160
13161 PR tree-optimization/91756
13162 PR tree-optimization/87132
13163 * tree-ssa-alias.h (enum translate_flags): New.
13164 (get_continuation_for_phi): Use it instead of simple bool flag.
13165 (walk_non_aliased_vuses): Likewise.
13166 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13167 (get_continuation_for_phi): When looking across backedges only
13168 disallow valueization.
13169 (walk_non_aliased_vuses): Adjust.
13170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13171 if requested.
13172
13173 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13174
13175 PR middle-end/80791
13176 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13177 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13178 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13179 * target.def (have_count_reg_decr_p): New hook.
13180 (doloop_cost_for_generic): Likewise.
13181 (doloop_cost_for_address): Likewise.
13182 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13183 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13184 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13185 * doc/tm.texi: Regenerate.
13186 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13187 addend.
13188 (record_group): Init doloop_p.
13189 (add_candidate_1): Add optional argument doloop, change the handlings
13190 accordingly.
13191 (add_candidate): Likewise.
13192 (generic_predict_doloop_p): Update attribute.
13193 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13194 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13195 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13196 MIN_EXPR.
13197 (get_computation_cost): Update for doloop IV cand extra cost.
13198 (determine_group_iv_cost_cond): Update for doloop IV cand.
13199 (determine_iv_cost): Likewise.
13200 (ivopts_estimate_reg_pressure): Likewise.
13201 (may_eliminate_iv): Update handlings for doloop IV cand.
13202 (add_iv_candidate_for_doloop): New function.
13203 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13204 (iv_ca_set_no_cp): Update for doloop IV cand.
13205 (iv_ca_set_cp): Likewise.
13206 (iv_ca_dump): Dump register cost.
13207 (find_doloop_use): New function.
13208 (analyze_and_mark_doloop_use): Likewise.
13209 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13210
13211 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13212
13213 PR middle-end/91708
13214 * cse.c (cse_insn): Do not replace anything with a
13215 MEM.
13216
13217 2019-09-13 Ian Lance Taylor <iant@golang.org>
13218
13219 * doc/invoke.texi (Optimize Options): Fix typo.
13220
13221 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13222
13223 PR tree-optimization/89386
13224 * config/i386/sse.md (smulhrs<mode>3): New expander.
13225 (smulhrsv4hi3): Ditto.
13226
13227 2019-09-12 Richard Biener <rguenther@suse.de>
13228
13229 PR tree-optimization/91750
13230 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13231 in the type of the evolution.
13232
13233 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13234
13235 PR tree-optimization/89386
13236 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13237 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13238 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13239 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13240 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13241 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13242 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13243 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13244 (su, r): Handle the unspecs above.
13245 (bt): New int attribute.
13246 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13247 * internal-fn.c (first_commutative_argument): Commutativity info for
13248 above.
13249 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13250 (umulhrs_optab): New optabs.
13251 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13252 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13253 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13254 function.
13255 (vect_vect_recog_func_ptrs): Add it.
13256
13257 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13258
13259 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13260 code.
13261
13262 2019-09-11 Nathan Sidwell <nathan@acm.org>
13263
13264 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13265 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13266
13267 2019-09-11 Richard Biener <rguenther@suse.de>
13268
13269 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13270 * lto-wrapper.c (merge_and_complain): Pick up -g.
13271 (append_compiler_options): Likewise.
13272 (run_gcc): Re-instantiate handling -g0 at link-time.
13273 * doc/invoke.texi (flto): Document debug info generation.
13274
13275 2019-09-11 Richard Biener <rguenther@suse.de>
13276
13277 PR tree-optimization/90387
13278 * vr-values.c (vr_values::extract_range_basic): After inlining
13279 simplify non-constant __builtin_constant_p to false.
13280
13281 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13282
13283 PR rtl-optimization/89795
13284 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13285 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13286
13287 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13288
13289 PR tree-optimization/91723
13290 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13291 instead of pointer equality when checking if argument vectypes are
13292 the same.
13293
13294 PR middle-end/91725
13295 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13296 of get_nonzero_bits, only call it for integral types.
13297
13298 2019-09-11 Richard Biener <rguenther@suse.de>
13299
13300 Revert
13301 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13302
13303 * match.pd: Add flag_unsafe_math_optimizations check
13304 before deciding on the widest type in a binary math operation.
13305
13306 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13307
13308 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13309 and CALL_REALLY_USED_REGISTERS must be defined, and that
13310 CALL_REALLY_USED_REGISTERS is preferred.
13311 * doc/tm.texi: Regenerate.
13312 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13313 (call_really_used_regs): Likewise.
13314 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13315 CALL_REALLY_USED_REGISTERS are defined.
13316 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13317 initial value if defined.
13318 (initial_call_really_used_regs): Delete.
13319 (saved_call_really_used_regs): Likewise.
13320 (CALL_REALLY_USED_REGNO_P): Likewise.
13321 (init_reg_sets): Remove handling of call_really_used_regs.
13322 (save_register_info, restore_register_info, globalize_reg): Likewise.
13323 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13324 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13325 outside operand_reg_set.
13326 (fix_register): Don't change call_used_regs if
13327 CALL_REALLY_USED_REGISTERS is defined.
13328 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13329 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13330 instead of call_really_used_regs.
13331 (csky_conditional_register_usage): Remove the old handling of
13332 call_used_regs and change the handling of call_really_used_regs
13333 to use call_used_regs instead.
13334 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13335 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13336 making a register fixed.
13337 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13338 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13339 instead of call_really_used_regs.
13340 (m32r_conditional_register_usage): Don't set call_used_regs when
13341 making a register fixed.
13342 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13343 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13344 instead of call_really_used_regs.
13345 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13346 (mips_cfun_call_saved_reg_p): Likewise.
13347 (mips_swap_registers): Remove the old handling of call_used_regs
13348 and change the handling of call_really_used_regs to use call_used_regs
13349 instead.
13350 (mips_conditional_register_usage): Likewise.
13351 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13352 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13353 instead of call_really_used_regs.
13354 (mn10300_get_live_callee_saved_regs): Likewise.
13355 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13356 (mn10300_conditional_register_usage): Don't set call_used_regs when
13357 making a register fixed.
13358 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13359 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13360 Remove the old handling of call_used_regs and change the handling
13361 of call_really_used_regs to use call_used_regs instead.
13362 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13363 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13364 instead of call_really_used_regs.
13365 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13366 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13367 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13368 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13369 (s390_conditional_register_usage): Remove the old handling of
13370 call_used_regs and change the handling of call_really_used_regs
13371 to use call_used_regs instead.
13372 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13373 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13374 (sh_fix_range, reg_unused_after): Likewise.
13375 (sh_conditional_register_usage): Remove the old handling of
13376 call_used_regs and change the handling of call_really_used_regs
13377 to use call_used_regs instead.
13378 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13379 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13380 call_used_regs when making a register fixed.
13381 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13382 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13383 call_used_regs when making a register fixed.
13384 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13385 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13386 set call_used_regs when making a register fixed.
13387 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13388 * config/visium/visium.c (visium_conditional_register_usage): Remove
13389 the old handling of call_used_regs and change the handling of
13390 call_really_used_regs to use call_used_regs instead.
13391
13392 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13393
13394 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13395 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13396 * reginfo.c (call_used_regs): New macro.
13397
13398 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13399
13400 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13401 fixed_regs test.
13402 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13403 (bpf_expand_epilogue): Likewise.
13404 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13405 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13406 (ft32_expand_epilogue): Likewise.
13407 * config/i386/i386.c (ix86_save_reg): Likewise.
13408 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13409 (moxie_expand_epilogue): Likewise.
13410 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13411 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13412 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13413
13414 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13415
13416 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13417 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13418 instead of testing call_used_regs directly.
13419 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13420 (aarch64_components_for_bb): Likewise.
13421 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13422 * config/arc/arc.c (arc_must_save_register): Likewise.
13423 (arc_epilogue_uses): Likewise.
13424 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13425 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13426 (arm_compute_save_reg0_reg12_mask): Likewise.
13427 (arm_compute_save_core_reg_mask): Likewise.
13428 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13429 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13430 (cmse_nonsecure_entry_clear_before_return): Likewise.
13431 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13432 (arm_expand_epilogue): Likewise.
13433 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13434 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13435 (_reg_unused_after): Likewise.
13436 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13437 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13438 (add_to_reg, hwloop_optimize): Likewise.
13439 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13440 (bpf_expand_epilogue): Likewise.
13441 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13442 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13443 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13444 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13445 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13446 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13447 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13448 * config/frv/frv.c (frv_stack_info): Likewise.
13449 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13450 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13451 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13452 (move_callee_saved_registers): Likewise.
13453 * config/h8300/h8300.c (byte_reg): Likewise.
13454 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13455 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13456 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13457 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13458 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13459 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13460 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13461 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13462 * config/m32c/m32c.c (need_to_save): Likewise.
13463 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13464 * config/mcore/mcore.c (calc_live_regs): Likewise.
13465 * config/microblaze/microblaze.c (microblaze_must_save_register):
13466 Likewise.
13467 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13468 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13469 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13470 (mmix_expand_epilogue): Likewise.
13471 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13472 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13473 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13474 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13475 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13476 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13477 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13478 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13479 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13480 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13481 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13482 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13483 * config/rl78/rl78.c (need_to_save): Likewise.
13484 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13485 (rs6000_stack_info, generate_set_vrsave): Likewise.
13486 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13487 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13488 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13489 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13490 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13491 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13492 (save_local_or_in_reg_p): Likewise.
13493 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13494 (xstormy16_epilogue_uses): Likewise.
13495 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13496 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13497 * config/v850/v850.c (compute_register_save_size): Likewise.
13498 * config/vax/vax.c (vax_expand_prologue): Likewise.
13499 * config/visium/visium.c (visium_save_reg_p): Likewise.
13500 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13501 * cselib.c (cselib_process_insn): Likewise.
13502 * df-scan.c (df_get_entry_block_def_set): Likewise.
13503 * function.c (aggregate_value_p): Likewise.
13504 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13505 * ira-lives.c (process_bb_node_lives): Likewise.
13506 * ira.c (do_reload): Likewise.
13507 * lra-lives.c (process_bb_lives): Likewise.
13508 * lra-remat.c (lra_remat): Likewise.
13509 * lra.c (lra): Likewise.
13510 * postreload.c (reload_combine_recognize_pattern): Likewise.
13511 (reload_cse_move2add): Likewise.
13512 * recog.c (peep2_find_free_register): Likewise.
13513 * regrename.c (check_new_reg_p): Likewise.
13514 * reload.c (find_equiv_reg): Likewise.
13515 * reload1.c (reload, find_reg): Likewise.
13516 * sel-sched.c (init_hard_regs_data): Likewise.
13517
13518 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13519
13520 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13521 regs_invalidated_by_call & ~fixed_reg_set instead of
13522 call_used_or_fixed_regs & ~fixed_reg_set.
13523 * config/sh/sh.c (output_stack_adjust): Likewise.
13524
13525 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13526
13527 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13528 (call_used_reg_set): Delete.
13529 (call_used_or_fixed_regs): New macro.
13530 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13531 of call_used_reg_set.
13532 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13533 instead of call_used_regs.
13534 (save_call_clobbered_regs): Likewise.
13535 * cfgcleanup.c (old_insns_match_p): Likewise.
13536 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13537 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13538 Likewise.
13539 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13540 * config/sh/sh.c (output_stack_adjust): Likewise.
13541 * final.c (collect_fn_hard_reg_usage): Likewise.
13542 * ira-build.c (ira_build): Likewise.
13543 * ira-color.c (calculate_saved_nregs): Likewise.
13544 (allocno_reload_assign, calculate_spill_cost): Likewise.
13545 * ira-conflicts.c (ira_build_conflicts): Likewise.
13546 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13547 * ira-lives.c (process_bb_node_lives): Likewise.
13548 * ira.c (setup_reg_renumber): Likewise.
13549 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13550 * lra-constraints.c (need_for_call_save_p): Likewise.
13551 (need_for_split_p, inherit_in_ebb): Likewise.
13552 * lra-lives.c (process_bb_lives): Likewise.
13553 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13554 * postreload.c (reload_combine): Likewise.
13555 * regrename.c (find_rename_reg): Likewise.
13556 * reload1.c (reload_as_needed): Likewise.
13557 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13558 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13559 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13560
13561 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13562
13563 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13564 (no_caller_save_reg_set): Delete.
13565 * caller-save.c (init_caller_save): Don't initialize it.
13566 * ira-conflicts.c (ira_build_conflicts): Calculate
13567 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13568
13569 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13570
13571 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13572 (target_hard_regs::x_savable_regs): New field.
13573 (call_fixed_reg_set): Delete.
13574 (savable_regs): New macro,
13575 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13576 (init_reg_sets_1): Likewise. Initialize savable_regs.
13577 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13578 for all registers. Set savable_regs instead of call_fixed_reg_set.
13579 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13580 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13581 * config/sh/sh.c (output_stack_adjust): Likewise.
13582
13583 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13584
13585 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13586 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13587 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13588
13589 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13590
13591 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13592 * rtlanal.c (get_call_rtx_from): Likewise.
13593 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13594 than the pattern to get_call_rtx_from.
13595 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13596 an rtx_insn * instead of an rtx.
13597 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13598
13599 2019-09-10 Martin Liska <mliska@suse.cz>
13600
13601 * common.opt: Use newly added WarnRemoved.
13602 * config/aarch64/aarch64.opt: Likewise.
13603 * config/arm/arm.opt: Likewise.
13604 * config/i386/i386.opt: Likewise.
13605 * config/ia64/ia64.opt: Likewise.
13606 * config/rs6000/rs6000.opt: Likewise.
13607 * doc/options.texi: Document WarnRemoved properly.
13608 * dwarf2out.c (gen_producer_string): Handle renamed
13609 OPT_SPECIAL_warn_removed.
13610 * lto-opts.c (lto_write_options): Likewise.
13611 * lto-wrapper.c (merge_and_complain): Likewise.
13612 * opts-common.c (decode_cmdline_option): Likewise.
13613 (prune_options): Likewise.
13614 (read_cmdline_option): Likewise.
13615 (control_warning_option): Likewise.
13616 * opts.c (print_filtered_help): Likewise.
13617 * optc-gen.awk: Parse for WarnRemoved and make usage
13618 of Deprecated an error.
13619 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13620
13621 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13622
13623 * doc/install.texi: Fix syntax for html generation.
13624
13625 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13626
13627 PR middle-end/91680
13628 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13629 the shift type to type.
13630
13631 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13632
13633 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13634 FDPIC mode.
13635 (stack_protect_combined_test_insn): Likewise.
13636
13637 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13638 Mickaël Guêné <mickael.guene@st.com>
13639
13640 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13641 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13642 (load_tp_soft_fdpic): New pattern.
13643 (load_tp_soft): Disable in FDPIC mode.
13644
13645 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13646 Mickaël Guêné <mickael.guene@st.com>
13647
13648 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13649 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13650 (arm_call_tls_get_addr): Add FDPIC support.
13651 (legitimize_tls_address): Likewise.
13652 (arm_emit_tls_decoration): Likewise.
13653
13654 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13655 Mickaël Guêné <mickael.guene@st.com>
13656
13657 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13658 support.
13659 (arm_trampoline_init): Likewise.
13660 (arm_trampoline_adjust_address): Likewise.
13661 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13662
13663 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13664 Mickaël Guêné <mickael.guene@st.com>
13665
13666 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13667 (legitimize_pic_address): Enforce binding rules on function
13668 pointers in FDPIC mode.
13669 (arm_assemble_integer): Likewise.
13670
13671 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13672 Mickaël Guêné <mickael.guene@st.com>
13673
13674 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13675 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13676 FDPIC.
13677
13678 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13679 Mickaël Guêné <mickael.guene@st.com>
13680
13681 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13682 field.
13683
13684 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13685 Mickaël Guêné <mickael.guene@st.com>
13686
13687 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13688 in FDPIC mode.
13689 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13690 new function.
13691 * config/arm/arm.c (arm_option_override): Define pic register to
13692 FDPIC_REGNUM.
13693 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13694 have no decl or go through PLT.
13695 (calculate_pic_address_constant): New function.
13696 (legitimize_pic_address): Call calculate_pic_address_constant.
13697 (arm_load_pic_register): Handle TARGET_FDPIC.
13698 (arm_is_segment_info_known): New function.
13699 (arm_pic_static_addr): Add support for FDPIC.
13700 (arm_load_function_descriptor): New function.
13701 (arm_emit_call_insn): Add support for FDPIC.
13702 (arm_assemble_integer): Add support for FDPIC.
13703 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13704 Define. (FDPIC_REGNUM): New define.
13705 * config/arm/arm.md (call): Add support for FDPIC.
13706 (call_value): Likewise.
13707 (restore_pic_register_after_call): New pattern.
13708 (untyped_call): Disable if FDPIC.
13709 (untyped_return): Likewise.
13710 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13711
13712 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13713 Mickaël Guêné <mickael.guene@st.com>
13714
13715 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13716 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13717 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13718 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13719 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13720 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13721 * config/arm/uclinuxfdpiceabi.h: New file.
13722
13723 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13724
13725 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13726
13727 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13728 Mickaël Guêné <mickael.guene@st.com>
13729
13730 * config/arm/arm.opt: Add -mfdpic option.
13731 * doc/invoke.texi: Add documentation for -mfdpic.
13732
13733 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13734
13735 * expmed.c (extract_bit_field): Update function comment
13736 regarding alt_rtl.
13737 * expr.c (expand_expr_real): Update function comment
13738 regarding alt_rtl.
13739 (expand_misaligned_mem_ref): New helper function.
13740 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13741 Remove duplicate assignment to "base" at case MEM_REF.
13742 Remove a shadowed variable "unsignedp" at case VCE.
13743
13744 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13745
13746 * regset.h (regs_invalidated_by_call_regset): Delete.
13747 (fixed_reg_set_regset): Likewise.
13748 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13749 (fixed_reg_set_regset, persistent_obstack): Likewise.
13750 (init_reg_sets_1, globalize_reg): Update accordingly.
13751 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13752 instead of a bitmap.
13753 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13754 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13755 instead of regs_invalidated_by_call_regset.
13756 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13757 * df-scan.c (df_scan_start_dump): Likewise.
13758 * dse.c (copy_fixed_regs): Likewise.
13759 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13760
13761 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13762
13763 * array-traits.h: New file.
13764 * coretypes.h (array_traits, bitmap_view): New types.
13765 * bitmap.h: Include "array-traits.h"
13766 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13767 (base_bitmap_view, bitmap_view): New classes.
13768 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13769 * hard-reg-set.h: Include array-traits.h.
13770 (array_traits<HARD_REG_SET>): New struct.
13771 * regset.h (IOR_REG_SET_HRS): New macro.
13772 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13773 rather than iterating over each hard register.
13774 * sched-deps.c (sched_analyze_insn): Likewise.
13775 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13776
13777 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13778
13779 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13780 instead of a HARD_REG_SET *.
13781 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13782 (ira_build): Update call accordingly.
13783 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13784
13785 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13786
13787 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13788 (HARD_REG_SET::operator!=): Likewise.
13789 (hard_reg_set_equal_p): Delete.
13790 * cfgcleanup.c (old_insns_match_p): Use == instead of
13791 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13792 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13793 (add_allocno_hard_regs_to_forest): Likewise.
13794 (setup_allocno_available_regs_num): Likewise.
13795 * ira.c (setup_pressure_classes): Likewise.
13796 (setup_allocno_and_important_classes): Likewise.
13797 (setup_reg_class_relations): Likewise.
13798 * lra-lives.c (process_bb_lives): Likewise.
13799 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13800
13801 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13802
13803 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13804 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13805 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13806 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13807 Likewise.
13808 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13809 * ira.c (setup_reg_renumber): Likewise.
13810 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13811 * regrename.c (regrename_find_superclass): Likewise.
13812 * reload1.c (find_reg): Likewise.
13813
13814 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13815
13816 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13817 * caller-save.c (setup_save_areas): Use "&~" instead of
13818 AND_COMPL_HARD_REG_SET.
13819 (save_call_clobbered_regs): Likewise.
13820 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13821 Likewise.
13822 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13823 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13824 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13825 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13826 (mips_conditional_register_usage): Likewise.
13827 * config/sh/sh.c (output_stack_adjust): Likewise.
13828 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13829 (setup_profitable_hard_regs): Likewise.
13830 (get_conflict_and_start_profitable_regs): Likewise.
13831 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13832 (ira_build_conflicts): Likewise.
13833 * ira-costs.c (restrict_cost_classes): Likewise.
13834 (setup_regno_cost_classes_by_aclass): Likewise.
13835 * ira-lives.c (process_bb_node_lives): Likewise.
13836 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13837 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13838 (setup_allocno_and_important_classes, setup_class_translate_array)
13839 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13840 Likewise.
13841 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13842 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13843 (process_alt_operands, inherit_in_ebb): Likewise.
13844 * lra-eliminations.c (update_reg_eliminate): Likewise.
13845 * lra-lives.c (process_bb_lives): Likewise.
13846 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13847 * resource.c (find_dead_or_set_registers): Likewise.
13848 (mark_target_live_regs): Likewise.
13849 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13850 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13851 (implicit_clobber_conflict_p): Likewise.
13852 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13853 (try_shrink_wrapping): Likewise.
13854
13855 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13856
13857 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13858 (HARD_REG_SET::operator|=): Likewise.
13859 (IOR_HARD_REG_SET): Delete.
13860 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13861 IOR_HARD_REG_SET.
13862 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13863 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13864 * final.c (collect_fn_hard_reg_usage): Likewise.
13865 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13866 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13867 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13868 (propagate_some_info_from_allocno): Likewise.
13869 (copy_info_to_removed_store_destinations): Likewise.
13870 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13871 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13872 (fast_allocation): Likewise.
13873 * ira-conflicts.c (ira_build_conflicts): Likewise.
13874 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13875 (process_bb_node_lives): Likewise.
13876 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13877 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13878 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13879 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13880 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13881 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13882 (process_bb_lives): Likewise.
13883 * lra-spills.c (assign_spill_hard_regs): Likewise.
13884 * postreload.c (reload_combine): Likewise.
13885 * reginfo.c (init_reg_sets_1): Likewise.
13886 * regrename.c (merge_overlapping_regs, find_rename_reg)
13887 (merge_chains): Likewise.
13888 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13889 (find_reload_regs, finish_spills, choose_reload_regs_init)
13890 (emit_reload_insns): Likewise.
13891 * reorg.c (redundant_insn): Likewise.
13892 * resource.c (find_dead_or_set_registers, mark_set_resources)
13893 (mark_target_live_regs): Likewise.
13894 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13895 * sched-deps.c (sched_analyze_insn): Likewise.
13896 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13897 (find_best_reg_for_expr): Likewise.
13898 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13899
13900 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13901
13902 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13903 (HARD_REG_SET::operator&): Likewise.
13904 (AND_HARD_REG_SET): Delete.
13905 * caller-save.c (setup_save_areas): Use "&" instead of
13906 AND_HARD_REG_SET.
13907 (save_call_clobbered_regs): Likewise.
13908 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13909 * config/m32c/m32c.c (reduce_class): Likewise.
13910 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13911 * final.c (get_call_reg_set_usage): Likewise.
13912 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13913 (setup_left_conflict_sizes_p): Likewise.
13914 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13915 (ira_build_conflicts): Likewise.
13916 * ira-costs.c (restrict_cost_classes): Likewise.
13917 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13918 (setup_reg_class_relations): Likewise.
13919 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13920 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13921 * resource.c (find_dead_or_set_registers): Likewise.
13922 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13923
13924 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13925
13926 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13927 (COMPL_HARD_REG_SET): Delete.
13928 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13929 of COMPL_HARD_REG_SET.
13930 (try_rename_operands): Likewise.
13931 * config/sh/sh.c (push_regs): Likewise.
13932 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13933 * lra-constraints.c (contains_reg_p): Likewise.
13934 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13935
13936 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13937
13938 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13939 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13940 of COPY_HARD_REG_SET.
13941 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13942 (epiphany_conditional_register_usage): Likewise.
13943 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13944 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13945 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13946 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13947 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13948 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13949 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13950 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13951 * config/sh/sh.c (output_stack_adjust): Likewise.
13952 * final.c (collect_fn_hard_reg_usage): Likewise.
13953 (get_call_reg_set_usage): Likewise.
13954 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13955 (ira_flattening): Likewise.
13956 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13957 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13958 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13959 (ira_reassign_pseudos): Likewise.
13960 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13961 (ira_build_conflicts): Likewise.
13962 * ira-costs.c (restrict_cost_classes): Likewise.
13963 (setup_regno_cost_classes_by_aclass): Likewise.
13964 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13965 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13966 (setup_stack_reg_pressure_class, setup_pressure_classes)
13967 (setup_allocno_and_important_classes, setup_class_translate_array)
13968 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13969 (ira_setup_eliminable_regset): Likewise.
13970 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13971 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13972 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13973 (process_alt_operands, inherit_in_ebb): Likewise.
13974 * lra-lives.c (process_bb_lives): Likewise.
13975 * lra-spills.c (assign_spill_hard_regs): Likewise.
13976 * lra.c (lra): Likewise.
13977 * mode-switching.c (new_seginfo): Likewise.
13978 * postreload.c (reload_combine): Likewise.
13979 * reg-stack.c (straighten_stack): Likewise.
13980 * reginfo.c (save_register_info, restore_register_info): Likewise.
13981 (init_reg_sets_1, record_subregs_of_mode): Likewise
13982 * regrename.c (create_new_chain, rename_chains): Likewise.
13983 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13984 (find_reload_regs): Likewise.
13985 * resource.c (find_dead_or_set_registers): Likewise.
13986 (mark_target_live_regs): Likewise.
13987 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13988
13989 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13990
13991 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13992 (note_pattern_stores): Declare.
13993 (note_stores): Take an rtx_insn *.
13994 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13995 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13996 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13997 (note_stores): Take an rtx_insn * as argument and process
13998 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13999 (note_pattern_stores): ...this.
14000 (find_first_parameter_load): Pass the insn rather than
14001 its pattern to note_stores.
14002 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14003 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14004 (insert_one_insn): Likewise.
14005 * combine.c (combine_instructions): Likewise.
14006 (likely_spilled_retval_p): Likewise.
14007 (try_combine): Use note_pattern_stores instead of note_stores.
14008 (record_dead_and_set_regs): Pass the insn rather than its pattern
14009 to note_stores.
14010 (reg_dead_at_p): Likewise.
14011 * config/bfin/bfin.c (workaround_speculation): Likewise.
14012 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14013 rather than an rtx.
14014 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14015 instead of note_stores.
14016 (frv_optimize_membar_local): Pass the insn rather than its pattern
14017 to note_stores.
14018 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14019 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14020 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14021 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14022 (mips_reorg_process_insns): Likewise.
14023 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14024 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14025 rather than rtxes.
14026 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14027 its pattern to note_stores.
14028 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14029 of note_stores.
14030 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14031 the insn to note_stores.
14032 (prescan_insns_for_dce): Update call accordingly.
14033 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14034 to note_stores.
14035 * df-problems.c (can_move_insns_across): Likewise.
14036 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14037 * function.c (assign_parm_setup_reg): Likewise.
14038 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14039 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14040 (single_set_gcse): Likewise.
14041 * ira.c (validate_equiv_mem): Likewise.
14042 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14043 for no_equiv.
14044 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14045 pattern to note_stores.
14046 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14047 * loop-iv.c (simplify_using_initial_values): Likewise.
14048 * mode-switching.c (optimize_mode_switching): Likewise.
14049 * optabs.c (emit_libcall_block_1): Likewise.
14050 (expand_atomic_compare_and_swap): Likewise.
14051 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14052 (record_opr_changes): Likewise. Remove explicit handling of
14053 CALL_INSN_FUNCTION_USAGE.
14054 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14055 * regcprop.c (kill_clobbered_values): Likewise.
14056 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14057 to note_stores.
14058 * regrename.c (build_def_use): Likewise.
14059 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14060 for mark_not_eliminable.
14061 (reload_as_needed): Pass the insn rather than its pattern
14062 to note_stores.
14063 (emit_output_reload_insns): Likewise.
14064 * resource.c (mark_target_live_regs): Likewise.
14065 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14066 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14067 instead of note_stores.
14068 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14069 its pattern to note_stores.
14070 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14071 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14072
14073 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14074
14075 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14076 than a #define. Use a structure rather than an array as the
14077 fallback definition. Remove special cases for low array sizes.
14078 (const_hard_reg_set): New typedef.
14079 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14080 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14081 (hard_reg_set_empty_p): Likewise.
14082 (SET_HARD_REG_BIT): Use a function rather than a macro to
14083 handle the case in which HARD_REG_SET is a structure.
14084 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14085 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14086 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14087 (IOR_COMPL_HARD_REG_SET): Likewise.
14088 (hard_reg_set_iterator::pset): Constify the pointer target.
14089 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14090 of a "const HARD_REG_SET". Update the handling of non-integer
14091 HARD_REG_SETs.
14092 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14093 * reload.h: Likewise.
14094 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14095 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14096 of a "const HARD_REG_SET".
14097 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14098 (range_in_hard_reg_set_p): Likewise.
14099 * ira-costs.c (restrict_cost_classes): Likewise.
14100 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14101 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14102 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14103 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14104 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14105 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14106 take an unsigned int and open-code the HARD_REG_SET operations.
14107
14108 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14109
14110 * Makefile.in (OBJS): Remove bt-load.o.
14111 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14112 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14113 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14114 document that the option no longer does anything.
14115 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14116 * target.def (branch_target_register_class): Delete.
14117 (branch_target_register_callee_saved): Likewise.
14118 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14119 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14120 * doc/tm.texi: Regenerate.
14121 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14122 (make_pass_branch_target_load_optimize2): Likewise.
14123 * passes.def (pass_branch_target_load_optimize1): Likewise.
14124 (pass_branch_target_load_optimize2): Likewise.
14125 * targhooks.h (default_branch_target_register_class): Likewise.
14126 * targhooks.c (default_branch_target_register_class): Likewise.
14127 * opt-suggestions.c (test_completion_valid_options): Remove
14128 -fbtr-bb-exclusive from the list of test options.
14129 * bt-load.c: Remove.
14130
14131 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14132
14133 * match.pd: Add flag_unsafe_math_optimizations check
14134 before deciding on the widest type in a binary math operation.
14135
14136 2019-09-09 Martin Liska <mliska@suse.cz>
14137
14138 * config/i386/i386.opt: Update comment of removed
14139 options that are preserved only for backward
14140 compatibility.
14141
14142 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14143
14144 PR target/87853
14145 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14146 instead of __v16qs.
14147
14148 PR target/91704
14149 * config/i386/avxintrin.h (__v32qs): New typedef.
14150 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14151 instead of __v32qi.
14152
14153 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14154
14155 * doc/invoke.texi (Option Summary): Cover eBPF.
14156 (eBPF Options): New section.
14157 * doc/extend.texi (BPF Built-in Functions): Likewise.
14158 (BPF Kernel Helpers): Likewise.
14159
14160 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14161
14162 * config.gcc: Support for bpf-*-* targets.
14163 * common/config/bpf/bpf-common.c: New file.
14164 * config/bpf/t-bpf: Likewise.
14165 * config/bpf/predicates.md: Likewise.
14166 * config/bpf/constraints.md: Likewise.
14167 * config/bpf/bpf.opt: Likewise.
14168 * config/bpf/bpf.md: Likewise.
14169 * config/bpf/bpf.h: Likewise.
14170 * config/bpf/bpf.c: Likewise.
14171 * config/bpf/bpf-protos.h: Likewise.
14172 * config/bpf/bpf-opts.h: Likewise.
14173 * config/bpf/bpf-helpers.h: Likewise.
14174 * config/bpf/bpf-helpers.def: Likewise.
14175
14176 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14177
14178 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14179 indirect_calls.
14180
14181 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14182
14183 * opt-functions.awk (integer_range_info): Make sure values are in
14184 numeric context before operating with them.
14185
14186 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14187
14188 * genemit.c (gen_split): Print the filename and line number where the
14189 splitter (or peephole2) was defined, to the dump file.
14190
14191 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14192
14193 PR tree-optimization/91665
14194 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14195 incompatible with the type of PHI result.
14196
14197 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14198
14199 PR target/91684
14200 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14201 gen_unaligned_storedi for 4-byte aligned addresses.
14202
14203 2019-09-06 Jim Wilson <jimw@sifive.com>
14204
14205 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14206 change.
14207
14208 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14209
14210 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14211
14212 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14213
14214 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14215 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14216
14217 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14218
14219 PR target/91654
14220 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14221 cost of SSE->integer and integer->SSE moves from 2 to 6.
14222 (core_cost): Ditto.
14223
14224 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14225
14226 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14227 before testing TYPE_TRANSPARENT_AGGR.
14228 * calls.c (initialize_argument_information, load_register_parameters):
14229 Likewise.
14230
14231 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14232
14233 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14234 high regs.
14235 (cmp_ior): Likewise.
14236
14237 2019-09-06 Martin Liska <mliska@suse.cz>
14238
14239 * doc/match-and-simplify.texi: Separate tuples with ;.
14240
14241 2019-09-06 Martin Liska <mliska@suse.cz>
14242
14243 PR c++/91125
14244 * Makefile.in: Remove tlink.o.
14245 * collect2.c (do_link): New function isolated
14246 from do_tlink.
14247 (main): Use.
14248 * collect2.h (do_tlink): Remove declaration of do_tlink.
14249 * doc/extend.texi: Remove documentation of -frepo.
14250 * doc/invoke.texi: Likewise.
14251 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14252 * tlink.c: Remove.
14253
14254 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14255 Jim Wilson <jimw@sifive.com>
14256
14257 PR target/91635
14258 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14259 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14260 paradoxical_subreg_p (operands[0]).
14261 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14262 use as intermediate value.
14263
14264 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14265
14266 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14267 (sync_compare_and_swap<mode>_insn): Likewise.
14268
14269 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14270
14271 PR middle-end/91615
14272 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14273 without movmisalign optab.
14274
14275 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14276
14277 PR middle-end/91001
14278 PR middle-end/91105
14279 PR middle-end/91106
14280 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14281 types, use type of their first field instead of type of
14282 args[i].tree_value.
14283
14284 2019-09-05 Richard Biener <rguenther@suse.de>
14285
14286 PR rtl-optimization/91656
14287 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14288 of early out.
14289
14290 2019-09-05 Richard Biener <rguenther@suse.de>
14291
14292 PR middle-end/90501
14293 * tree-inline.c (declare_return_variable): Mark the return
14294 slot as addressable after building an address of it.
14295
14296 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14297
14298 * doc/install.texi: Update and clarify requirements to build GNAT.
14299
14300 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14301
14302 PR middle-end/91577
14303 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14304 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14305 call to be in memory.
14306 (pass_expand::execute): Call discover_nonconstant_array_refs before
14307 setting currently_expanding_to_rtl.
14308
14309 2019-09-04 Caroline Tice <cmtice@google.com>
14310
14311 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14312 specified together.
14313
14314 2019-09-04 Marek Polacek <polacek@redhat.com>
14315
14316 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14317
14318 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14319
14320 PR target/32413
14321 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14322 for QI and HImode moves between SSE and general registers.
14323
14324 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14325
14326 PR c/78736
14327 * doc/invoke.texi: Document -Wenum-conversion.
14328
14329 2019-09-04 Richard Biener <rguenther@suse.de>
14330
14331 PR rtl-optimization/36262
14332 * postreload-gcse.c: Include intl.h and gcse.h.
14333 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14334 to avoid linear list walk.
14335 (record_last_mem_set_info): Gate off if not computing transparentness.
14336 (get_bb_avail_insn): If transparentness isn't computed give up
14337 early.
14338 (gcse_after_reload_main): Skip compute_transp and extended PRE
14339 if gcse_or_cprop_is_too_expensive says so.
14340
14341 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14342
14343 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14344 noinit section.
14345 (msp430_select_section): Handle decls with the "noinit" attribute with
14346 default_elf_select_section.
14347 Handle SECCAT_RODATA_MERGE_* section types with
14348 default_elf_select_section.
14349 Add comments about handling of unsupported section types.
14350 (msp430_section_type_flags): Remove handling of the noinit section.
14351
14352 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14353
14354 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14355 conflicting msp430-specific attributes.
14356 (msp430_section_attr): Likewise.
14357 Add warnings about conflicts with generic "noinit" and "section"
14358 attributes.
14359 Fix grammar in -mlarge error message.
14360 (msp430_data_attr): Rename to msp430_persist_attr.
14361 Add warnings about conflicts with generic "noinit" and "section"
14362 attributes.
14363 Add warning for when variable is not initialized.
14364 Chain conditionals which prevent the attribute being added.
14365 (ATTR_EXCL): New helper.
14366 (attr_reent_exclusions): New exclusion table.
14367 (attr_naked_exclusions): Likewise.
14368 (attr_crit_exclusions): Likewise.
14369 (attr_lower_exclusions): Likewise.
14370 (attr_upper_exclusions): Likewise.
14371 (attr_either_exclusions): Likewise.
14372 (attr_persist_exclusions): Likewise.
14373 (msp430_attribute_table): Update with exclusion rules.
14374 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14375 has a section.
14376
14377 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14378
14379 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14380 (msp430_handle_generic_attribute): New function.
14381 * doc/tm.texi: Regenerate.
14382 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14383 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14384 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14385 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14386
14387 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14388
14389 PR tree-optimization/91504
14390 * match.pd: Add ((~a & b) ^a) --> (a | b).
14391
14392 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14393
14394 PR target/91604
14395 * config/i386/i386-expand.c (split_double_mode): If there is more than
14396 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14397 already split matching MEM operand instead of calling adjust_address
14398 again.
14399
14400 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14401
14402 * config.gcc: Obsolete spu target. Remove references to spu.
14403 * configure.ac: Remove references to spu.
14404 * configure: Regenerate.
14405 * config/spu/: Remove directory.
14406 * common/config/spu/: Remove directory.
14407
14408 * doc/extend.texi: Remove references to spu.
14409 * doc/invoke.texi: Likewise.
14410 * doc/md.texi: Likewise.
14411 * doc/sourcebuild.texi: Likewise.
14412
14413 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14414
14415 PR middle-end/91603
14416 PR middle-end/91612
14417 PR middle-end/91613
14418 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14419 and SSA_NAME referring to CONSTANT_P correctly.
14420
14421 2019-09-03 Richard Biener <rguenther@suse.de>
14422
14423 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14424 (vn_nary_op_insert): Likewise.
14425 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14426 (vn_nary_op_lookup): Likewise.
14427 (vn_nary_op_insert): Likewise.
14428
14429 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14430
14431 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14432 (*op0, 1) instead of XEXP (*op1, 0).
14433
14434 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14435
14436 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14437 (aarch64_fjcvtzs): New define_insn.
14438 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14439 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14440 Add AARCH64_JSCVT.
14441 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14442 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14443 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14444 __ARM_FEATURE_JCVT where appropriate.
14445 * config/aarch64/arm_acle.h (__jcvt): Define.
14446
14447 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14448
14449 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14450 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14451 (aarch64_<frintnzs_op><mode>): New define_insn.
14452 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14453 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14454 __ARM_FEATURE_FRINT when appropriate.
14455 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14456 frint32x, frint64z, frint64x.
14457 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14458 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14459 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14460 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14461 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14462 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14463 * config/aarch64/iterators.md (VSFDF): Define.
14464 (FRINTNZX): Likewise.
14465 (frintnzs_op): Likewise.
14466
14467 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14468
14469 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14470 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14471 Cortex-A34.
14472 * config/aarch64/aarch64-tune.md: Regenerated.
14473 * doc/invoke.texi: Document the new processors.
14474
14475 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14476
14477 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14478 string.
14479 (ssbs): Likewise.
14480 (sve2): Likewise.
14481 (sve2-sm4): Likewise.
14482 (sveaes): Likewise.
14483 (svesha3): Likewise.
14484 (svebitperm): Likewise.
14485
14486 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14487 Richard Biener <rguenther@suse.de>
14488
14489 PR tree-optimization/91597
14490 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14491 BIT_AND_EXPR optimization for pointers, even if both operand
14492 ranges don't include NULL, the result can be NULL.
14493
14494 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14495
14496 PR middle-end/91605
14497 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14498 (non_mem_decl_p): ...this.
14499 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14500 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14501 unconditionally as before.
14502
14503 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14504
14505 PR target/91323
14506 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14507 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14508 * tree.def (LTGT_EXPR): Likewise.
14509 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14510
14511 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14512
14513 PR go/91617
14514 * fold-const.c (range_check_type): For enumeral and boolean
14515 type, pass 1 to type_for_size langhook instead of
14516 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14517 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14518 (build_range_check): Don't call unsigned_type_for for pointer types.
14519 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14520 range_check_type result.
14521
14522 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14523
14524 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14525 (replace_ref): Do not replace a chain of only two candidates which are
14526 valid memory references.
14527
14528 2019-09-02 Martin Liska <mliska@suse.cz>
14529
14530 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14531 Bail out when we'll end up with the same number of clusters as
14532 at the beginning.
14533 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14534 (jump_table_cluster::can_be_handled): Remove the guard
14535 as it's already handled in ::is_enabled. Allocate output
14536 after early bail out.
14537
14538 2019-09-02 Martin Liska <mliska@suse.cz>
14539
14540 PR gcov-profile/91601
14541 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14542 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14543 also negative edges.
14544 (circuit): Handle also negative edges as they can happen
14545 in some situations.
14546
14547 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14548
14549 PR target/91472
14550 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14551 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14552 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14553
14554 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14555
14556 PR middle-end/91623
14557 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14558 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14559 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14560 zero vector.
14561
14562 PR lto/91572
14563 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14564 GIMPLE_ASM TREE_LIST operands.
14565
14566 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14567
14568 * doc/generic.texi (Unary and Binary Expressions): Mark up
14569 an instance of TYPE_MIN.
14570
14571 2019-08-31 Stafford Horne <shorne@gmail.com>
14572
14573 * config/or1k/constraints.md (t): New constraint.
14574 * config/or1k/or1k.h (GOT_REGS): New register class.
14575 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14576
14577 2019-08-30 Jim Wilson <jimw@sifive.com>
14578
14579 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14580 and -fpic and -mplt then disable -msave-restore and warn.
14581
14582 2019-08-30 Martin Sebor <msebor@redhat.com>
14583
14584 PR middle-end/91599
14585 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14586 the statement doesn't have one.
14587 * gimple-pretty-print.c (percent_G_format): Same.
14588
14589 PR middle-end/91584
14590 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14591 before using them to validate MEM_REF offset.
14592
14593 2019-08-30 Marek Polacek <polacek@redhat.com>
14594
14595 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14596
14597 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14598
14599 * config/arm/arm.md (unaligned_loaddi,
14600 unaligned_storedi): New unspec insn patterns.
14601 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14602 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14603 and unaligned_storedi for 4-byte aligned memory.
14604 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14605 4-byte aligned memory.
14606
14607 2019-08-30 Martin Jambor <mjambor@suse.cz>
14608
14609 tree-optimization/91579
14610 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14611 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14612 appropriate.
14613 (arg_needs_copy_p): Removed.
14614 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14615 arg_needs_copy_p.
14616 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14617
14618 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14619
14620 * config/i386/i386-features.c
14621 (general_scalar_chain::compute_convert_gain):
14622 Correct cost for double-word shifts.
14623 (general_scalar_to_vector_candidate_p): Reject count operands
14624 greater or equal to mode bitsize.
14625
14626 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14627
14628 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14629 for moves between SSE and non-general registers and between
14630 mask and non-general registers.
14631 (ix86_register_move_cost): Remove stalled comment.
14632
14633 2019-08-29 Richard Biener <rguenther@suse.de>
14634
14635 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14636 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14637
14638 2019-08-29 Richard Biener <rguenther@suse.de>
14639
14640 PR bootstrap/91580
14641 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14642 Do not emit scalar copies for debug-insns, instead replace
14643 their uses with the reg copy used in the chain or reset them
14644 if there is a reaching definition outside of the chain as well.
14645
14646 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14647
14648 PR target/91560
14649 * config/i386/i386-expand.c (expand_vec_perm_movs,
14650 expand_vec_perm_blend, expand_vec_perm_vpermil,
14651 expand_vec_perm_pshufb, expand_vec_perm_1,
14652 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14653 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14654 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14655 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14656 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14657 comments - replace ix86_expand_vec_perm_builtin_1 with
14658 ix86_expand_vec_perm_const_1.
14659 (expand_vec_perm2_vperm2f128_vblend): New function.
14660 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14661 expand_vec_perm2_vperm2f128_vblend as last resort.
14662 (canonicalize_perm): Formatting fix.
14663
14664 PR tree-optimization/91351
14665 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14666 unsigned_type_for.
14667 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14668 range_check_type returns NULL.
14669 * tree-switch-conversion.c (switch_conversion::build_one_array):
14670 Use range_check_type instead of unsigned_type_for, don't perform
14671 linear opt if it returns NULL.
14672 (bit_test_cluster::find_bit_tests): Formatting fix.
14673 (bit_test_cluster::emit): Use range_check_type instead of
14674 unsigned_type_for.
14675 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14676 returns NULL.
14677
14678 2019-08-29 Richard Biener <rguenther@suse.de>
14679
14680 PR tree-optimization/91568
14681 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14682 (vect_update_max_nunits): Add overload for poly_uint64.
14683 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14684 (vect_build_slp_tree): Record max_nunits into the subtree
14685 and merge it upwards.
14686 (vect_print_slp_tree): Print max_nunits.
14687
14688 2019-08-28 Marek Polacek <polacek@redhat.com>
14689
14690 Implement P1152R4: Deprecating some uses of volatile.
14691 PR c++/91361
14692 * doc/invoke.texi: Document -Wvolatile.
14693
14694 2019-08-28 Marek Polacek <polacek@redhat.com>
14695
14696 PR c++/91360 - Implement C++20 P1143R2: constinit.
14697 * doc/invoke.texi: Document -Wc++20-compat.
14698
14699 2019-08-28 Martin Sebor <msebor@redhat.com>
14700
14701 PR tree-optimization/91457
14702 * builtins.c (component_size): New function.
14703 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14704 * builtins.h (compute_objsize): Add argument.
14705 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14706 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14707 (vrp_prop::check_mem_ref): Same.
14708 (vrp_prop::search_for_addr_array): Set no-warning bit.
14709 (check_array_bounds): Same.
14710
14711 2019-08-28 Martin Sebor <msebor@redhat.com>
14712
14713 PR driver/80545
14714 * opts-common.c (option_enabled): Correct checking for language
14715 options.
14716
14717 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14718
14719 * config/i386/i386.c (ix86_register_move_cost): Do not
14720 limit the cost of moves to/from XMM register to minimum 8.
14721
14722 2019-08-28 Martin Jambor <mjambor@suse.cz>
14723
14724 PR ipa/91468
14725 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14726 checking assert a normal assert to test it really is redundant.
14727 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14728 redundant test.
14729 (update_jump_functions_after_inlining): Removed combining unary
14730 arithmetic operations with an ancestor jump function.
14731 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14732 instead of t.
14733
14734 2019-08-28 Richard Biener <rguenther@suse.de>
14735
14736 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14737 add the MD problem.
14738
14739 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14740 Richard Biener <rguenther@suse.de>
14741
14742 * expr.c (expand_assignment): Handle misaligned DECLs.
14743 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14744 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14745 too.
14746 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14747 * varasm.c (build_constant_desc): Align constants of misaligned types.
14748 * config/arm/predicates.md (aligned_operand): New predicate.
14749 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14750 aligned_operand to check restrictions on memory addresses.
14751 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14752 * config/arm/vec-common.md (mov<VALL>): Likewise.
14753
14754 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14755
14756 PR libgomp/91530
14757 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14758 V_128 iterator instead of VI_128.
14759
14760 2019-08-28 Martin Liska <mliska@suse.cz>
14761
14762 PR tree-optimization/90970
14763 * builtins.c (check_access): Remove assignment to maxread
14764 as it hasn't been used since when it was introduced in r255755.
14765
14766 2019-08-27 Martin Sebor <msebor@redhat.com>
14767
14768 PR tree-optimization/91567
14769 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14770 of unknown strings.
14771 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14772 to PTRDIFF_MAX - 2.
14773
14774 2019-08-27 Jeff Law <law@redhat.com>
14775
14776 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14777 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14778
14779 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14780
14781 PR target/91528
14782 * config/i386/i386-features.c (convert_scalars_to_vector):
14783 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14784 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14785 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14786 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14787
14788 2019-08-27 Richard Biener <rguenther@suse.de>
14789
14790 * config/i386/i386-features.h
14791 (general_scalar_chain::~general_scalar_chain): Add.
14792 (general_scalar_chain::insns_conv): New bitmap.
14793 (general_scalar_chain::n_sse_to_integer): New.
14794 (general_scalar_chain::n_integer_to_sse): Likewise.
14795 (general_scalar_chain::make_vector_copies): Adjust signature.
14796 * config/i386/i386-features.c
14797 (general_scalar_chain::general_scalar_chain): Outline,
14798 initialize new members.
14799 (general_scalar_chain::~general_scalar_chain): New.
14800 (general_scalar_chain::mark_dual_mode_def): Record insns
14801 we need to insert conversions at and count them.
14802 (general_scalar_chain::compute_convert_gain): Account
14803 for conversion instructions at chain boundary.
14804 (general_scalar_chain::make_vector_copies): Generate a single
14805 copy for a def by a specific insn.
14806 (general_scalar_chain::convert_registers): First populate
14807 defs_map, then make copies at out-of chain insns.
14808
14809 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14810
14811 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14812 comment.
14813 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14814
14815 2019-08-27 Martin Liska <mliska@suse.cz>
14816
14817 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14818 loop.
14819 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14820 Enclose in anonymous namespace.
14821 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14822 hard_register initialization in braces.
14823 * tree-vrp.h (value_range_base::supports_type_p): Return false
14824 for function with boolean return type.
14825
14826 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14827
14828 * config/i386/i386.c (emit_i387_cw_initialization)
14829 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14830
14831 2019-08-26 Martin Sebor <msebor@redhat.com>
14832
14833 PR c++/83431
14834 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14835 (sprintf_dom_walker): Remove class.
14836 (get_int_range): Make argument const.
14837 (directive::fmtfunc, directive::set_precision): Same.
14838 (format_none): Same.
14839 (build_intmax_type_nodes): Same.
14840 (adjust_range_for_overflow): Same.
14841 (format_floating): Same.
14842 (format_character): Same.
14843 (format_string): Same.
14844 (format_plain): Same.
14845 (get_int_range): Cast away constness.
14846 (format_integer): Same.
14847 (get_string_length): Call get_range_strlen_dynamic. Handle
14848 null lendata.maxbound.
14849 (should_warn_p): Adjust argument scope qualifier.
14850 (maybe_warn): Same.
14851 (format_directive): Same.
14852 (parse_directive): Same.
14853 (is_call_safe): Same.
14854 (try_substitute_return_value): Same.
14855 (sprintf_dom_walker::handle_printf_call): Rename...
14856 (handle_printf_call): ...to this. Initialize target to host charmap
14857 here instead of in pass_sprintf_length::execute.
14858 (struct call_info): Make global.
14859 (sprintf_dom_walker::compute_format_length): Make global.
14860 (sprintf_dom_walker::handle_gimple_call): Same.
14861 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14862 * print-rtl.c (print_pattern): Reduce the number of spaces to
14863 avoid -Wformat-truncation.
14864 * tree-pass.h (make_pass_warn_printf): New function.
14865 * tree-ssa-strlen.c (strlen_optimize): New variable.
14866 (get_string_length): Add comments.
14867 (get_range_strlen_dynamic): New function.
14868 (check_and_optimize_call): New function.
14869 (handle_integral_assign): New function.
14870 (strlen_check_and_optimize_stmt): Factor code out into
14871 strlen_check_and_optimize_call and handle_integral_assign.
14872 (strlen_dom_walker::evrp): New member.
14873 (strlen_dom_walker::before_dom_children): Use evrp member.
14874 (strlen_dom_walker::after_dom_children): Use evrp member.
14875 (printf_strlen_execute): New function.
14876 (pass_strlen::gate): Update to handle printf calls.
14877 (dump_strlen_info): New function.
14878 (pass_data_warn_printf): New variable.
14879 (pass_warn_printf): New class.
14880 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14881 (handle_printf_call): Same.
14882 * tree-vrp.c (value_range_base::type): Adjust assertion.
14883 * vr-values.c (vr_values::update_value_range): Use type of the first
14884 argument rather than the second.
14885
14886 2019-08-26 Richard Biener <rguenther@suse.de>
14887
14888 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14889 Remove.
14890 (convert_scalars_to_vector): Do not call it.
14891
14892 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14893 Uros Bizjak <ubizjak@gmail.com>
14894
14895 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14896 CASE_MATHFN_FLOATN for roundeven.
14897 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14898 I387_ROUNDEVEN.
14899 (ix86_mode_needed): Likewise.
14900 (ix86_mode_after): Likewise.
14901 (ix86_mode_entry): Likewise.
14902 (ix86_mode_exit): Likewise.
14903 (ix86_emit_mode_set): Likewise.
14904 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14905 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14906 (ix86_entity): Add I387_ROUNDEVEN.
14907 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14908 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14909 (define_int_iterator): Likewise.
14910 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14911 (define_constant): Define ROUND_ROUNDEVEN mode.
14912 (define_attr): Add roundeven mode for i387_cw.
14913 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14914 * internal-fn.def (ROUNDEVEN): New builtin function.
14915 * optabs.def (roundeven_optab): New optab.
14916
14917 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14918
14919 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14920 for ROUNDEVEN.
14921 * builtins.def: Added function definitions for roundeven function
14922 variants.
14923 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14924 function call. Adjust condition for floor, ceil, trunc and round.
14925 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14926 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14927 (integer_valued_real_call_p): Added case for roundeven function.
14928 * real.c (is_even): New function. Returns true if real number is even,
14929 otherwise returns false.
14930 (is_halfway_below): New function. Returns true if real number is
14931 halfway between two integers, else return false.
14932 (real_roundeven): New function. Round real number to nearest integer,
14933 rounding halfway cases towards even.
14934 * real.h (real_value): Added descriptive comments. Added function
14935 declaration for roundeven function.
14936 * doc/extend.texi (Other Builtins): List roundeven variants among
14937 functions which can be handled as builtins.
14938
14939 2019-08-26 Richard Biener <rguenther@suse.de>
14940
14941 PR target/91522
14942 PR target/91527
14943 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14944 New member.
14945 (general_scalar_chain::replace_with_subreg): Remove.
14946 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14947 (general_scalar_chain::convert_reg): Adjust signature.
14948 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14949 iterate over all defs of a reg.
14950 (general_scalar_chain::replace_with_subreg): Remove.
14951 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14952 (general_scalar_chain::make_vector_copies): Populate defs_map,
14953 place copy only after defs that are used as vectors in the chain.
14954 (general_scalar_chain::convert_reg): Emit a copy for a specific
14955 def in a specific instruction.
14956 (general_scalar_chain::convert_op): All reg uses are converted here.
14957 (general_scalar_chain::convert_insn): Emit copies for scalar
14958 uses of defs here. Replace uses with the copies we created.
14959 Replace and convert the def. Adjust REG_DEAD notes, remove
14960 REG_EQUIV/EQUAL notes.
14961 (general_scalar_chain::convert_registers): Only handle copies
14962 into the chain here.
14963
14964 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14965
14966 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14967
14968 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14969
14970 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14971 Add nop_convert case.
14972 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14973 Fold all statements if requested.
14974 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14975 Allow to fold all statements.
14976 * tree-vrp.c (class vrp_folder):
14977 Let substitute_and_fold_engine fold all statements.
14978
14979 2019-08-26 Richard Biener <rguenther@suse.de>
14980
14981 PR tree-optimization/91526
14982 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14983 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14984 TODO_update_address_taken.
14985
14986 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14987
14988 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14989 __STDC_HOSTED__.
14990
14991 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14992
14993 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14994 machine mode for unspec_volatile operand.
14995
14996 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14997
14998 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14999 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15000 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15001 (prefer_neon_for_64bits): Remove.
15002 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15003 (tune_params): Remove PREF_NEON_64_FALSE uses.
15004 (arm_option_override): Remove prefer_neon selection code.
15005 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15006 * config/arm/arm-protos.h (tune_params): Remove
15007 prefer_neon_for_64bits.
15008 (prefer_neon_for_64bits): Remove.
15009
15010 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15011
15012 PR pch/61250
15013 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15014 and issue any diagnostics needed before collecting the pre-PCH
15015 state.
15016
15017 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15018
15019 PR middle-end/91283
15020 * common.opt (fexcess-precision=): Add Optimization flag. Use
15021 flag_excess_precision variable instead of
15022 flag_excess_precision_cmdline.
15023 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15024 member.
15025 (flag_excess_precision): Don't define.
15026 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15027 flag_excess_precision_cmdline. Remove comment.
15028 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15029 and x_flag_excess_precision instead of
15030 frontend_set_flag_excess_precision_cmdline and
15031 x_flag_excess_precision_cmdline.
15032 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15033 x_flag_excess_precision_cmdline.
15034 * toplev.c (init_excess_precision): Remove.
15035 (lang_dependent_init_target): Don't call it.
15036
15037 2019-08-23 Martin Liska <mliska@suse.cz>
15038
15039 * lto-wrapper.c (run_gcc): When setting jobserver
15040 set also parallel to 1. This was done so before r273908.
15041
15042 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15043
15044 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15045 (cortex-a76ae): Likewise.
15046 (cortex-a77): Likewise
15047 * config/arm/arm-tables.opt: Regenerate.
15048 * config/arm/arm-tune.md: Likewise.
15049 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15050 cortex-a77 CPU options.
15051
15052 2019-08-23 Martin Liska <mliska@suse.cz>
15053
15054 * profile.c (instrument_values): Do not set
15055 0 as last argument.
15056 * tree-profile.c (gimple_gen_interval_profiler): Remove
15057 last argument.
15058 (gimple_gen_pow2_profiler): Likewise.
15059 (gimple_gen_topn_values_profiler): Likewise.
15060 (gimple_gen_ic_profiler): Likewise.
15061 (gimple_gen_time_profiler): Likewise.
15062 (gimple_gen_average_profiler): Likewise.
15063 (gimple_gen_ior_profiler): Likewise.
15064 * value-prof.c (dump_histogram_value): Use default
15065 in switch statement instead of HIST_TYPE_MAX.
15066 (stream_in_histogram_value): Likewise.
15067 (gimple_duplicate_stmt_histograms): Do not
15068 use NULL for implicitly set arguments.
15069 (gimple_divmod_values_to_profile): Do not use
15070 reserve+quick_push.
15071 (gimple_indirect_call_to_profile): Likewise.
15072 (gimple_find_values_to_profile): Use implicit
15073 function call arguments.
15074 * value-prof.h (gimple_alloc_histogram_value):
15075 Set default values.
15076 (gimple_gen_interval_profiler): Remove last argument.
15077 (gimple_gen_pow2_profiler): Likewise.
15078 (gimple_gen_topn_values_profiler): Likewise.
15079 (gimple_gen_ic_profiler): Likewise.
15080 (gimple_gen_time_profiler): Likewise.
15081 (gimple_gen_average_profiler): Likewise.
15082 (gimple_gen_ior_profiler): Likewise.
15083
15084 2019-08-22 Martin Sebor <msebor@redhat.com>
15085
15086 PR middle-end/91490
15087 * builtins.c (c_strlen): Rename argument and introduce new local.
15088 Set no-warning bit on original argument.
15089 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15090 Fold empty and zero constructors into empty strings.
15091 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15092 for missing initializers.
15093 * tree.c (build_string_literal): Handle optional argument.
15094 * tree.h (build_string_literal): Add defaulted argument.
15095 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15096 no-warning bit on original expression.
15097
15098 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15099
15100 PR target/91481
15101 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15102 and UNSPEC_DARN_RAW.
15103 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15104 UNSPECV_DARN_RAW.
15105 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15106 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15107 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15108
15109 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15110
15111 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15112 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15113 * config/rs6000/rs6000.md (unspec): ... here.
15114 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15115 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15116 cmpeqb, *cmpeqb_internal): Delete, move to...
15117 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15118 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15119 cmpeqb, *cmpeqb_internal): ... here.
15120
15121 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15122
15123 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15124 intrinsics if __ARM_FP.
15125 Use __ARM_FEATURE_CRC32 ifdef guard.
15126
15127 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15128
15129 * config/arm/arm.md (neon_for_64bits): Remove.
15130 (avoid_neon_for_64bits): Remove.
15131 (arm_adddi3): Always split early.
15132 (arm_subdi3): Always split early.
15133 (negdi2): Remove Neon expansion.
15134 (split zero_extend): Split before reload.
15135 (split sign_extend): Split before reload.
15136
15137 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15138
15139 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15140 (qhs_extenddi_cstr): Likewise.
15141 * config/arm/arm.md (ashldi3): Always expand early.
15142 (ashlsi3): Likewise.
15143 (ashrsi3): Likewise.
15144 (zero_extend<mode>di2): Remove Neon variants.
15145 (extend<mode>di2): Likewise.
15146 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15147 (signed_shift_di3_neon): Likewise.
15148 (unsigned_shift_di3_neon): Likewise.
15149 (ashrdi3_neon_imm_noclobber): Likewise.
15150 (lshrdi3_neon_imm_noclobber): Likewise.
15151 (<shift>di3_neon): Likewise.
15152 (split extend): Remove DI extend split patterns.
15153
15154 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15155
15156 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15157 (split not): Add DImode not splitter.
15158 (anddi3): Remove pattern.
15159 (anddi3_insn): Likewise.
15160 (anddi_zesidi_di): Likewise.
15161 (anddi_sesdi_di): Likewise.
15162 (anddi_notdi_di): Likewise.
15163 (anddi_notzesidi_di): Likewise.
15164 (anddi_notsesidi_di): Likewise.
15165 (iordi3): Likewise.
15166 (iordi3_insn): Likewise.
15167 (iordi_zesidi_di): Likewise.
15168 (iordi_sesidi_di): Likewise.
15169 (xordi3): Likewise.
15170 (xordi3_insn): Likewise.
15171 (xordi_sesidi_di): Likewise.
15172 (xordi_zesidi_di): Likewise.
15173 (one_cmpldi2): Likewise.
15174 (one_cmpldi2_insn): Likewise.
15175 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15176 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15177 alternative.
15178 (iwmmxt_xordi3): Likewise.
15179 (iwmmxt_anddi3): Likewise.
15180 * config/arm/neon.md (orndi3_neon): Remove pattern.
15181 (anddi_notdi_di): Likewise.
15182 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15183 (arm_iordi_operand_neon): Likewise.
15184 (arm_xordi_operand_neon): Likewise.
15185 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15186 (iordi_notzesidi_di): Likewise.
15187 (iordi_notdi_zesidi): Likewise.
15188 (iordi_notsesidi_di): Likewise.
15189
15190 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15191
15192 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15193 insn.
15194 (iorsi3_compare0_scratch): Likewise.
15195
15196 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15197
15198 * config/aarch64/aarch64-simd-builtins.def:
15199 (ld1x4): New.
15200 (st1x4): Likewise.
15201 * config/aarch64/aarch64-simd.md:
15202 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15203 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15204 (aarch64_ld1_x4_<mode>): Likewise.
15205 (aarch64_st1_x4_<mode>): Likewise.
15206 * config/aarch64/arm_neon.h:
15207 (vld1_s8_x4): New function.
15208 (vld1q_s8_x4): Likewise.
15209 (vld1_s16_x4): Likewise.
15210 (vld1q_s16_x4): Likewise.
15211 (vld1_s32_x4): Likewise.
15212 (vld1q_s32_x4): Likewise.
15213 (vld1_u8_x4): Likewise.
15214 (vld1q_u8_x4): Likewise.
15215 (vld1_u16_x4): Likewise.
15216 (vld1q_u16_x4): Likewise.
15217 (vld1_u32_x4): Likewise.
15218 (vld1q_u32_x4): Likewise.
15219 (vld1_f16_x4): Likewise.
15220 (vld1q_f16_x4): Likewise.
15221 (vld1_f32_x4): Likewise.
15222 (vld1q_f32_x4): Likewise.
15223 (vld1_p8_x4): Likewise.
15224 (vld1q_p8_x4): Likewise.
15225 (vld1_p16_x4): Likewise.
15226 (vld1q_p16_x4): Likewise.
15227 (vld1_s64_x4): Likewise.
15228 (vld1_u64_x4): Likewise.
15229 (vld1_p64_x4): Likewise.
15230 (vld1q_s64_x4): Likewise.
15231 (vld1q_u64_x4): Likewise.
15232 (vld1q_p64_x4): Likewise.
15233 (vld1_f64_x4): Likewise.
15234 (vld1q_f64_x4): Likewise.
15235 (vst1_s8_x4): Likewise.
15236 (vst1q_s8_x4): Likewise.
15237 (vst1_s16_x4): Likewise.
15238 (vst1q_s16_x4): Likewise.
15239 (vst1_s32_x4): Likewise.
15240 (vst1q_s32_x4): Likewise.
15241 (vst1_u8_x4): Likewise.
15242 (vst1q_u8_x4): Likewise.
15243 (vst1_u16_x4): Likewise.
15244 (vst1q_u16_x4): Likewise.
15245 (vst1_u32_x4): Likewise.
15246 (vst1q_u32_x4): Likewise.
15247 (vst1_f16_x4): Likewise.
15248 (vst1q_f16_x4): Likewise.
15249 (vst1_f32_x4): Likewise.
15250 (vst1q_f32_x4): Likewise.
15251 (vst1_p8_x4): Likewise.
15252 (vst1q_p8_x4): Likewise.
15253 (vst1_p16_x4): Likewise.
15254 (vst1q_p16_x4): Likewise.
15255 (vst1_s64_x4): Likewise.
15256 (vst1_u64_x4): Likewise.
15257 (vst1_p64_x4): Likewise.
15258 (vst1q_s64_x4): Likewise.
15259 (vst1q_u64_x4): Likewise.
15260 (vst1q_p64_x4): Likewise.
15261 (vst1_f64_x4): Likewise.
15262 (vst1q_f64_x4): Likewise.
15263
15264 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15265
15266 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15267
15268 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15269 Richard Sandiford <richard.sandiford@arm.com>
15270
15271 PR target/88839
15272 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15273 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15274
15275 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15276
15277 PR target/90724
15278 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15279 in reg if it fails aarch64_plus_operand predicate.
15280
15281 2019-08-21 Richard Biener <rguenther@suse.de>
15282
15283 PR tree-optimization/91482
15284 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15285 BUILT_IN_ASSUME_ALIGNED calls.
15286
15287 2019-08-21 Richard Biener <rguenther@suse.de>
15288
15289 PR target/91498
15290 PR target/91503
15291 * config/i386/i386-features.c
15292 (general_scalar_chain::make_vector_copies): Copy stack temporary
15293 rtx when using it multiple times.
15294 (general_scalar_chain::convert_reg): Likewise.
15295
15296 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15297
15298 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15299
15300 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15301
15302 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15303 catch more redundant zero initialization cases.
15304 (dse_dom_walker::dse_optimize_stmt): Likewise.
15305
15306 2019-08-20 Richard Biener <rguenther@suse.de>
15307
15308 PR lto/91307
15309 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15310 by collect2 when targetm.have_ctors_dtors which avoids dragging
15311 in temporary filenames from LTO input objects.
15312
15313 2019-08-20 Richard Biener <rguenther@suse.de>
15314
15315 PR tree-optimization/37242
15316 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15317 to (T)a + (T)b if we know that a + b does not overflow.
15318
15319 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15320
15321 PR rtl-optimization/91347
15322 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15323 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15324
15325 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15326
15327 * calls.h (function_arg_info): Add a pass_by_reference field,
15328 defaulting to false.
15329 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15330 when applying pass-by-reference semantics.
15331 (initialize_argument_information): Likewise.
15332 (emit_library_call_value_1): Likewise.
15333 * function.c (assign_parm_data_one): Remove passed_pointer field.
15334 (assign_parm_find_data_types): Don't set it.
15335 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15336 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15337 arg.pass_by_reference instead of passed_pointer.
15338
15339 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15340
15341 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15342 into a single function_arg_info, updating its fields when we
15343 apply pass-by-reference and promotion semantics. Use the
15344 function_arg_info to track the mode rather than keeping it in
15345 a separate local variable.
15346 (initialize_argument_information): Likewise. Base the final
15347 arg_to_skip on this new function_arg_info rather than creating
15348 a new one from scratch.
15349
15350 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15351
15352 * function.c (assign_parm_data_one): Replace passed_type,
15353 promoted_mode and named_arg with a function_arg_info field.
15354 (assign_parm_find_data_types): Remove local variables and
15355 assign directly to "data". Make data->passed_mode shadow
15356 data->arg.mode until promotion, then assign the promoted
15357 mode to data->arg.mode.
15358 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15359 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15360 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15361 (assign_parm_setup_block, assign_parm_setup_reg)
15362 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15363 arg.mode instead of promoted_mode, arg.type instead of passed_type
15364 and arg.named instead of named_arg. Use data->arg for
15365 function_arg_info structures that had the field values passed_type,
15366 promoted_mode and named_arg. Base other function_arg_infos on
15367 data->arg, changing the necessary properties.
15368
15369 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15370
15371 * calls.h (apply_pass_by_reference_rules): Declare.
15372 * calls.c (apply_pass_by_reference_rules): New function.
15373 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15374 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15375 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15376 * function.c (assign_parm_find_data_types): Likewise.
15377 * var-tracking.c (prepare_call_arguments): Likewise.
15378
15379 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15380
15381 * target.def (must_pass_in_stack): Take a function_arg_info instead
15382 of a mode and a type.
15383 * doc/tm.texi: Regenerate.
15384 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15385 instead of a mode and a type.
15386 (must_pass_in_stack_var_size_or_pad): Likewise.
15387 * calls.c (must_pass_in_stack_var_size): Likewise.
15388 (must_pass_in_stack_var_size_or_pad): Likewise.
15389 (initialize_argument_information): Update call to
15390 targetm.calls.must_pass_in_stack.
15391 (must_pass_va_arg_on_stack): Likewise.
15392 * function.c (assign_parm_find_entry_rtl): Likewise.
15393 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15394 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15395 (alpha_function_arg_advance): Likewise.
15396 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15397 (cr16_function_arg_advance): Likewise.
15398 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15399 (cris_arg_partial_bytes): Likewise.
15400 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15401 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15402 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15403 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15404 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15405 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15406 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15407 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15408 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15409 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15410 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15411 instead of a mode and a type.
15412 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15413 (fr30_num_arg_regs): Likewise.
15414 (fr30_setup_incoming_varargs): Update calls accordingly.
15415 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15416 (fr30_function_arg_advance): Likewise.
15417 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15418 instead of a mode and a type.
15419 * config/gcn/gcn.c (num_arg_regs): Likewise.
15420 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15421 num_arg_regs and targetm.calls.must_pass_in_stack.
15422 (gcn_arg_partial_bytes): Likewise.
15423 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15424 function_arg_info instead of a mode and a type.
15425 (classify_argument): Update call accordingly.
15426 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15427 function_arg_info instead of a mode and a type.
15428 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15429 Likewise.
15430 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15431 (rs6000_parm_needs_stack): Update call accordingly.
15432 (setup_incoming_varargs): Likewise.
15433
15434 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15435
15436 * target.def (callee_copies): Take a function_arg_info instead
15437 of a mode, type and named flag.
15438 * doc/tm.texi: Regenerate.
15439 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15440 instead of a mode, type and named flag.
15441 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15442 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15443 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15444 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15445 instead of a mode, type and named flag.
15446 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15447 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15448 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15449 * calls.h (reference_callee_copied): Take a function_arg_info
15450 instead of a mode, type and named flag.
15451 * calls.c (reference_callee_copied): Likewise.
15452 (initialize_argument_information): Update call accordingly.
15453 (emit_library_call_value_1): Likewise.
15454 * function.c (gimplify_parameters): Likewise.
15455 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15456 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15457 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15458 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15459 (TARGET_CALLEE_COPIES): Define to
15460 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15461 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15462 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15463 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15464 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15465 instead of a mode, type and named flag.
15466 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15467 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15468 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15469 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15470 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15471 (TARGET_CALLEE_COPIES): Define to
15472 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15473 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15474 instead of a mode, type and named flag.
15475 * config/sh/sh.c (sh_callee_copies): Likewise.
15476 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15477 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15478 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15479
15480 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15481
15482 * target.def (function_arg_advance): Take a function_arg_info instead
15483 of a mode, type and named flag.
15484 * doc/tm.texi: Regenerate.
15485 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15486 instead of a mode, type and named flag.
15487 * targhooks.c (default_function_arg_advance): Likewise.
15488 * calls.c (initialize_argument_information): Update call to
15489 targetm.calls.function_arg_advance.
15490 (emit_library_call_value_1): Likewise.
15491 * dse.c (get_call_args): Likewise.
15492 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15493 * function.c (assign_parms, gimplify_parameters): Likewise.
15494 * var-tracking.c (prepare_call_arguments): Likewise.
15495 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15496 function_arg_info instead of a mode, type and named flag.
15497 (aarch64_setup_incoming_varargs): Update call accordingly.
15498 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15499 function_arg_info instead of a mode, type and named flag.
15500 (alpha_setup_incoming_varargs): Update call accordingly.
15501 * config/arc/arc.c (arc_function_arg_advance): Take a
15502 function_arg_info instead of a mode, type and named flag.
15503 (arc_setup_incoming_varargs): Update call accordingly.
15504 * config/arm/arm.c (arm_function_arg_advance): Take a
15505 function_arg_info instead of a mode, type and named flag.
15506 (cmse_func_args_or_return_in_stack): Update call accordingly.
15507 (arm_function_ok_for_sibcall): Likewise.
15508 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15509 * config/avr/avr.c (avr_function_arg_advance): Take a
15510 function_arg_info instead of a mode, type and named flag.
15511 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15512 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15513 (c6x_call_saved_register_used): Update call accordingly.
15514 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15515 function_arg_info instead of a mode, type and named flag.
15516 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15517 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15518 (csky_setup_incoming_varargs): Update call accordingly.
15519 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15520 function_arg_info instead of a mode, type and named flag.
15521 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15522 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15523 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15524 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15525 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15526 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15527 (ix86_setup_incoming_varargs): Update call accordingly.
15528 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15529 function_arg_info instead of a mode, type and named flag.
15530 (ia64_setup_incoming_varargs): Update call accordingly.
15531 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15532 function_arg_info instead of a mode, type and named flag.
15533 (iq2000_expand_prologue): Update call accordingly.
15534 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15535 function_arg_info instead of a mode, type and named flag.
15536 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15537 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15538 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15539 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15540 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15541 Likewise.
15542 (microblaze_expand_prologue): Update call accordingly.
15543 * config/mips/mips.c (mips_function_arg_advance): Take a
15544 function_arg_info instead of a mode, type and named flag.
15545 (mips_setup_incoming_varargs): Update call accordingly.
15546 (mips_output_args_xfer): Likewise.
15547 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15548 function_arg_info instead of a mode, type and named flag.
15549 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15550 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15551 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15552 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15553 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15554 (nios2_setup_incoming_varargs): Update call accordingly.
15555 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15556 function_arg_info instead of a mode, type and named flag.
15557 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15558 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15559 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15560 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15561 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15562 (riscv_setup_incoming_varargs): Update call accordingly.
15563 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15564 function_arg_info instead of a mode, type and named flag.
15565 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15566 Likewise.
15567 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15568 (rs6000_parm_needs_stack): Update call accordingly.
15569 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15570 instead of a mode, type and named flag.
15571 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15572 (s390_call_saved_register_used): Update call accordingly.
15573 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15574 instead of a mode, type and named flag.
15575 (sh_output_mi_thunk): Update call accordingly.
15576 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15577 function_arg_info instead of a mode, type and named flag.
15578 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15579 (spu_setup_incoming_varargs): Update call accordingly.
15580 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15581 function_arg_info instead of a mode, type and named flag.
15582 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15583 (tilegx_setup_incoming_varargs): Update call accordingly.
15584 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15585 function_arg_info instead of a mode, type and named flag.
15586 (tilegx_setup_incoming_varargs): Update call accordingly.
15587 * config/v850/v850.c (v850_function_arg_advance): Take a
15588 function_arg_info instead of a mode, type and named flag.
15589 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15590 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15591 (visium_setup_incoming_varargs): Update call accordingly.
15592 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15593 function_arg_info instead of a mode, type and named flag.
15594
15595 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15596
15597 * target.def (function_arg, function_incoming_arg): Take a
15598 function_arg_info instead of a mode, tree and named flag.
15599 * doc/tm.texi: Regenerate.
15600 * targhooks.h (default_function_arg): Take a function_arg_info
15601 instead of a mode, tree and named flag.
15602 (default_function_incoming_arg): Likewise.
15603 * targhooks.c (default_function_arg): Likewise.
15604 (default_function_incoming_arg): Likewise.
15605 * calls.h (function_arg_info::end_marker_p): New function.
15606 (function_arg_info::end_marker): Likewise.
15607 * calls.c (prepare_call_address, initialize_argument_information)
15608 (expand_call, emit_library_call_value_1): Update calls to
15609 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15610 * dse.c: Include calls.h.
15611 (get_call_args): Update call to targetm.calls.function_arg.
15612 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15613 * var-tracking.c (prepare_call_arguments): Likewise.
15614 * function.c (assign_parm_find_entry_rtl): Update call to
15615 targetm.calls.function_incoming_arg.
15616 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15617 function_arg_info instead of a mode, tree and named flag.
15618 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15619 * config/arc/arc.c (arc_function_arg): Likewise.
15620 * config/arm/arm.c (arm_function_arg): Likewise.
15621 (cmse_func_args_or_return_in_stack): Update call accordingly.
15622 (arm_function_ok_for_sibcall): Likewise.
15623 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15624 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15625 instead of a mode, tree and named flag.
15626 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15627 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15628 (c6x_call_saved_register_used): Update call accordingly.
15629 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15630 instead of a mode, tree and named flag.
15631 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15632 (cris_function_arg_1): Likewise.
15633 * config/csky/csky.c (csky_function_arg): Likewise.
15634 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15635 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15636 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15637 (frv_function_arg_1): Likewise.
15638 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15639 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15640 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15641 * config/i386/i386.c (ix86_function_arg): Likewise.
15642 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15643 (ia64_function_arg_1): Likewise.
15644 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15645 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15646 accordingly.
15647 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15648 instead of a mode, tree and named flag.
15649 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15650 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15651 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15652 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15653 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15654 (microblaze_expand_prologue): Update call accordingly.
15655 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15656 instead of a mode, tree and named flag.
15657 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15658 (mmix_function_arg_1): Likewise.
15659 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15660 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15661 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15662 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15663 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15664 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15665 (nvptx_function_incoming_arg): Likewise.
15666 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15667 * config/pa/pa.c (pa_function_arg): Likewise.
15668 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15669 * config/pru/pru.c (pru_function_arg): Likewise.
15670 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15671 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15672 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15673 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15674 (rs6000_parm_needs_stack): Update call accordingly.
15675 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15676 instead of a mode, tree and named flag.
15677 * config/s390/s390.c (s390_function_arg): Likewise.
15678 (s390_call_saved_register_used): Update call accordingly.
15679 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15680 instead of a mode, tree and named flag.
15681 (sh_output_mi_thunk): Update call accordingly.
15682 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15683 (sparc_function_incoming_arg): Take a function_arg_info instead of
15684 a mode, tree and named flag.
15685 * config/spu/spu.c (spu_function_arg): Likewise.
15686 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15687 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15688 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15689 * config/v850/v850.c (v850_function_arg): Likewise.
15690 * config/vax/vax.c (vax_function_arg): Likewise.
15691 * config/visium/visium.c (visium_function_arg): Likewise.
15692 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15693 (xtensa_function_incoming_arg): Likewise.
15694
15695 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15696
15697 * target.def (setup_incoming_varargs): Take a function_arg_info
15698 instead of a mode and tree.
15699 * doc/tm.texi: Regenerate.
15700 * targhooks.h (default_setup_incoming_varargs): Take a
15701 function_arg_info instead of a mode and tree.
15702 * targhooks.c (default_setup_incoming_varargs): Likewise.
15703 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15704 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15705 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15706 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15707 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15708 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15709 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15710 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15711 Likewise.
15712 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15713 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15714 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15715 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15716 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15717 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15718 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15719 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15720 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15721 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15722 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15723 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15724 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15725 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15726 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15727 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15728 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15729 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15730 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15731 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15732 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15733 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15734 * function.c (assign_parms_setup_varargs): Update call to
15735 targetm.calls.setup_incoming_varargs.
15736
15737 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15738
15739 * target.def (pass_by_reference): Take a function_arg_info instead
15740 of a mode, type and named flag.
15741 * doc/tm.texi: Regenerate.
15742 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15743 accordingly.
15744 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15745 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15746 function_arg_info instead of a mode, type and named flag.
15747 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15748 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15749 mode, type and named flag.
15750 * calls.c (pass_by_reference): Likewise.
15751 (pass_va_arg_by_reference): Update call accordingly.
15752 (initialize_argument_information): Likewise.
15753 (emit_library_call_value_1): Likewise.
15754 * function.c (assign_parm_find_data_types): Likewise.
15755 * var-tracking.c (prepare_call_arguments): Likewise.
15756 * stor-layout.c: Include calls.h.
15757 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15758 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15759 function_arg_info instead of a mode, type and named flag.
15760 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15761 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15762 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15763 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15764 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15765 (c6x_call_saved_register_used): Update call to pass_by_reference.
15766 * config/cris/cris.c (cris_pass_by_reference): Take a
15767 function_arg_info instead of a mode, type and named flag.
15768 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15769 function_arg_info instead of a mode, type and named flag.
15770 (epiphany_arg_partial_bytes): Update call accordingly.
15771 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15772 function_arg_info instead of a mode, type and named flag.
15773 (ft32_arg_partial_bytes): Update call accordingly.
15774 * config/i386/i386.c (ix86_pass_by_reference): Take a
15775 function_arg_info instead of a mode, type and named flag.
15776 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15777 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15778 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15779 (m32r_return_in_memory): Update call accordingly.
15780 * config/mips/mips.c (mips_pass_by_reference): Take a
15781 function_arg_info instead of a mode, type and named flag.
15782 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15783 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15784 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15785 (moxie_arg_partial_bytes): Update call accordingly.
15786 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15787 function_arg_info instead of a mode, type and named flag.
15788 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15789 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15790 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15791 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15792 (riscv_return_in_memory): Update call accordingly.
15793 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15794 function_arg_info instead of a mode, type and named flag.
15795 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15796 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15797 * config/s390/s390.c (s390_pass_by_reference): Take a
15798 function_arg_info instead of a mode, type and named flag.
15799 (s390_call_saved_register_used): Update call accordingly.
15800 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15801 instead of a mode, type and named flag.
15802 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15803 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15804 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15805 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15806 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15807 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15808
15809 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15810
15811 * target.def (arg_partial_bytes): Take a function_arg_info instead
15812 of a mode, type and named flag.
15813 * doc/tm.texi: Regenerate.
15814 * target.h (function_arg_info): Declare.
15815 * calls.h (function_arg_info): New class.
15816 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15817 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15818 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15819 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15820 * calls.c (initialize_argument_information): Update call to
15821 targetm.calls.partial_bytes.
15822 (emit_library_call_value_1): Likewise.
15823 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15824 * function.c (assign_parm_find_entry_rtl): Likewise.
15825 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15826 function_arg_info instead of a mode, type and named flag.
15827 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15828 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15829 (cmse_func_args_or_return_in_stack): Update accordingly.
15830 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15831 function_arg_info instead of a mode, type and named flag.
15832 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15833 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15834 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15835 * config/fr30/fr30.c: Include calls.h.
15836 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15837 type and named flag.
15838 * config/frv/frv.c: Include calls.h.
15839 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15840 type and named flag.
15841 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15842 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15843 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15844 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15845 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15846 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15847 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15848 Likewise.
15849 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15850 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15851 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15852 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15853 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15854 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15855 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15856 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15857 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15858 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15859 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15860 (rs6000_parm_needs_stack): Update call accordingly.
15861 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15862 function_arg_info instead of a mode, type and named flag.
15863 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15864 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15865
15866 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15867
15868 * calls.h (must_pass_va_arg_in_stack): Declare.
15869 * calls.c (must_pass_va_arg_in_stack): New function.
15870 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15871 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15872 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15873 Likewise.
15874 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15875
15876 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15877
15878 * calls.h (pass_va_arg_by_reference): Declare.
15879 * calls.c (pass_va_arg_by_reference): New function.
15880 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15881 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15882 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15883 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15884 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15885 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15886 (mips_gimplify_va_arg_expr): Likewise.
15887 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15888 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15889 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15890 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15891 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15892 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15893 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15894 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15895 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15896 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15897 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15898
15899 2019-08-20 Richard Biener <rguenther@suse.de>
15900
15901 PR target/91498
15902 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15903 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15904 (convert_scalars_to_vector): Add timode_p parameter and use it
15905 to guard TImode-only operation.
15906 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15907 (pass_stv::execute): Pass down timode_p.
15908
15909 2019-08-20 Lili Cui <lili.cui@intel.com>
15910
15911 * common/config/i386/i386-common.c
15912 (processor_names): Add tigerlake and cooperlake.
15913 (processor_alias_table): Add tigerlake and cooperlake.
15914 * config.gcc: Add -march=tigerlake and cooperlake.
15915 * config/i386/driver-i386.c
15916 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15917 Add "has_avx" to classify processor.
15918 * config/i386/i386-builtins.c (processor_model) :
15919 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15920 (arch_names_table): Add tigerlake and cooperlake.
15921 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15922 and PROCESSOR_COOPERLAKE.
15923 * config/i386/i386-c.c
15924 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15925 * config/i386/i386-options.c
15926 (m_TIGERLAKE): Define.
15927 (m_COOPERLAKE): Ditto.
15928 (m_CORE_AVX512): Ditto.
15929 (processor_cost_table): Add cascadelake.
15930 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15931 * config/i386/i386.h
15932 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15933 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15934 (PTA_MOVDIRI): Ditto.
15935 (PTA_MOVDIR64B): Ditto.
15936 (PTA_COOPERLAKE): Ditto.
15937 (PTA_TIGERLAKE): Ditto.
15938 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15939 * doc/extend.texi: Add tigerlake and cooperlake.
15940 * doc/invoke.texi: Add tigerlake and cooperlake.
15941
15942 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15943
15944 * doc/install.texi (Specific, alpha): Remove note to use
15945 binutils 2.11.2 or later.
15946
15947 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15948
15949 PR middle-end/89544
15950 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15951 when possible.
15952
15953 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15954
15955 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15956 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15957 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15958 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15959 * config/aarch64/constraints.md (Dt): New constraint
15960 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15961
15962 2019-08-19 Richard Biener <rguenther@suse.de>
15963
15964 PR tree-optimization/91403
15965 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15966 cases we can handle with tail-recursion...
15967 (follow_ssa_edge_expr): ... here. Do so.
15968
15969 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15970
15971 PR target/91441
15972 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15973 implemented for -fsanitize=kernel-address, and merge check logic
15974 with -fsanitize=address.
15975
15976 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15977
15978 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15979 for cpu and machine. Factor 64/32b builtins.
15980
15981 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15982
15983 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15984 gone, point to sourceforge.net.
15985
15986 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15987
15988 * doc/ux.texi (User Experience Guidelines): Update reference.
15989
15990 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15991
15992 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15993 not LGPL".
15994
15995 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15996
15997 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15998 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15999
16000 2019-08-16 Martin Sebor <msebor@redhat.com>
16001
16002 * tree.def (TYPE_SIZE): Clarify.
16003 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16004
16005 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16006
16007 PR tree-optimization/91109
16008 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16009 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16010 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16011
16012 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16013
16014 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16015 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16016 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16017 (uavg<mode>3_ceil): New expander.
16018 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16019 mode iterator when creating CONST1_RTX.
16020 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16021 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16022 mode iterator for const1_operand predicate.
16023
16024 2019-08-16 Richard Biener <rguenther@suse.de>
16025
16026 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16027 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16028 follow_ssa_edge.
16029 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16030 (analyze_evolution_in_loop): Likewise.
16031 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16032 (follow_ssa_edge_expr): ... here. Refactor code.
16033
16034 2019-08-16 Richard Biener <rguenther@suse.de>
16035
16036 PR target/91469
16037 * config/i386/i386-features.c
16038 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16039
16040 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16041
16042 PR other/91255
16043 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16044 only if subst_name matches curr_attr string.
16045
16046 2019-08-16 Richard Biener <rguenther@suse.de>
16047
16048 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16049 stmt at gsi_p, instead replace it with a NOP removed later.
16050 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16051 that became dead because of that.
16052
16053 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16054
16055 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16056 for which we can't represent a range.
16057 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16058 set_varying.
16059 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16060 Set VR_UNDEFINED if type is not supported.
16061 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16062 * tree-vrp.c (value_range_base::check): Assert that a varying has
16063 min/max set.
16064 (value_range_base::equal_p): Early bail for undefines.
16065 (value_range_base::set_varying): Accept a type.
16066 (value_range::set_varying): Same.
16067 (value_range_base::type): VARYING can have a type, while UNDEFINE
16068 is typeless.
16069 (value_range_base::dump): Print type for VARYING nodes.
16070 (value_range_base::set): Add type to VARYING.
16071 (extract_range_from_multiplicative_op): Pass type to set_varying.
16072 (extract_range_from_binary_expr): Same.
16073 (value_range_base::intersect_helper): Same.
16074 (value_range_base::union_helper): Same.
16075 (value_range_base::normalize_symbolics): Same.
16076 (determine_value_range_1): Same.
16077 * tree-vrp.h (class value_range_base): Add type to set_varying.
16078 Add prototype for dump(void).
16079 Add prototype for supports_type_p.
16080 (class value_range): Add type to set_varying.
16081 Add prototype for dump(void).
16082 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16083 set_varying.
16084 (vr_values::get_lattice_entry): Set varying even if propagation
16085 finished.
16086 Pass type to set_varying.
16087 (vr_values::get_value_range): Remove vr_const_varying.
16088 Reallocate the lattice if needed.
16089 (vr_values::update_value_range): Pass type to set_varying.
16090 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16091 (vr_values::extract_range_from_binary_expr): Same.
16092 (vr_values::extract_range_from_unary_expr): Same.
16093 (vr_values::extract_range_from_cond_expr): Same.
16094 (vr_values::check_for_binary_op_overflow): Same.
16095 (vr_values::extract_range_basic): Same.
16096 (vr_values::extract_range_from_assignment): Same.
16097 (vr_values::vr_values): Increase size of num_vr_values.
16098 (vr_values::extract_range_from_phi_node): Pass type to
16099 set_varying.
16100
16101 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16102
16103 PR target/90878
16104 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16105 for costs of hard register moves.
16106 (ix86_register_move_cost): Likewise.
16107 * config/i386/i386.h (processor_costs): Move costs of hard
16108 register moves to hard_register. Add int_load, int_store,
16109 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16110 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16111 for costs of RTL expressions.
16112 * config/i386/x86-tune-costs.h: Move costs of hard register
16113 moves to hard_register. Duplicate int_load, int_store,
16114 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16115 sse_load, sse_store for costs of RTL expressions.
16116
16117 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16118
16119 * target.def (setup_incoming_vararg_bounds): Remove.
16120 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16121 * doc/tm.texi: Regenerate.
16122 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16123 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16124 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16125 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16126
16127 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16128
16129 MSP430: Fix lines over 80 characters long in
16130 config/msp430/*.{c,h} files
16131
16132 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16133 specifier in string.
16134 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16135 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16136 redundant old comment.
16137 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16138 Split line more than 80 characters long.
16139 * config/msp430/msp430.c (msp430_option_override): Likewise.
16140 (msp430_return_in_memory): Likewise.
16141 (msp430_gimplify_va_arg_expr): Likewise.
16142 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16143 (msp430_legitimate_constant): Likewise.
16144 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16145 (msp430_attr): Likewise.
16146 (msp430_data_attr): Likewise.
16147 (msp430_start_function): Likewise.
16148 (gen_prefix): Likewise.
16149 (msp430_init_sections): Likewise.
16150 (msp430_select_section): Likewise.
16151 (msp430_function_section): Likewise.
16152 (msp430_unique_section): Likewise.
16153 (msp430_output_aligned_decl_common): Likewise.
16154 (msp430_do_not_relax_short_jumps): Likewise.
16155 (msp430_init_builtins): Likewise.
16156 (msp430_expand_delay_cycles): Likewise.
16157 (msp430_expand_prologue): Likewise.
16158 (msp430_expand_epilogue): Likewise.
16159 (msp430_expand_helper): Likewise.
16160 (msp430_split_movsi): Likewise.
16161 (msp430_print_operand): Likewise.
16162 (msp430_return_addr_rtx): Likewise.
16163 (msp430x_extendhisi): Likewise.
16164 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16165 (ASM_SPEC): Likewise.
16166 Remove very obvious comments.
16167 (LIB_SPEC): Split line more than 80 characters long.
16168 (EH_RETURN_HANDLER_RTX): Likewise.
16169 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16170
16171 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16172
16173 MSP430: Fix whitespace errors and incorrect indentation in
16174 config/msp430/*.{c,h} files
16175
16176 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16177 (msp430_select_hwmult_lib): Likewise.
16178 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16179 (msp430_extract_mcu_data): Likewise.
16180 (struct t_msp430_mcu_data): Likewise.
16181 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16182 before left square bracket.
16183 (msp430_option_override): Fix indentation.
16184 (msp430_hard_regno_nregs_with_padding): Likewise.
16185 (msp430_initial_elimination_offset): Likewise.
16186 (msp430_special_register_convention_p): Remove whitespace before left
16187 square bracket and after exclamation mark.
16188 (msp430_evaluate_arg): Likewise.
16189 (msp430_callee_copies): Fix indentation.
16190 (msp430_gimplify_va_arg_expr): Likewise.
16191 (msp430_function_arg_advance): Remove whitespace before left square
16192 bracket.
16193 (reg_ok_for_addr): Likewise.
16194 (msp430_preserve_reg_p): Likewise.
16195 (msp430_compute_frame_info): Likewise.
16196 (msp430_asm_output_addr_const_extra): Add space between function name
16197 and open parenthesis.
16198 (has_section_name): Fix indentation.
16199 (msp430_attr): Remove trailing whitespace.
16200 (msp430_section_attr): Likewise.
16201 (msp430_data_attr): Likewise.
16202 (struct msp430_attribute_table): Fix comment and whitespace.
16203 (msp430_start_function): Remove whitespace before left square bracket.
16204 Add space between function name and open parenthesis.
16205 (msp430_select_section): Remove trailing whitespace.
16206 (msp430_section_type_flags): Remove trailing whitespace.
16207 (msp430_unique_section): Remove space before closing parenthesis.
16208 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16209 (msp430_builtins): Remove whitespace before left square bracket.
16210 (msp430_init_builtins): Fix indentation.
16211 (msp430_expand_prologue): Remove whitespace before left square bracket.
16212 Remove space before closing parenthesis.
16213 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16214 (msp430_split_movsi): Remove space before closing parenthesis.
16215 (helper_function_name_mappings): Fix indentation.
16216 (msp430_use_f5_series_hwmult): Fix whitespace.
16217 (use_32bit_hwmult): Likewise.
16218 (msp430_no_hwmult): Likewise.
16219 (msp430_output_labelref): Remove whitespace before left square bracket.
16220 (msp430_print_operand_raw): Likewise.
16221 (msp430_print_operand_addr): Likewise.
16222 (msp430_print_operand): Add two spaces after '.' in comment.
16223 Fix trailing whitespace.
16224 (msp430x_extendhisi): Fix indentation.
16225 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16226 tab.
16227 (PC_REGNUM): Likewise.
16228 (STACK_POINTER_REGNUM): Likewise.
16229 (CC_REGNUM): Likewise.
16230
16231 2019-08-15 Richard Biener <rguenther@suse.de>
16232
16233 PR target/91454
16234 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16235 helper.
16236 (general_scalar_chain::make_vector_copies): Use it.
16237
16238 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16239
16240 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16241
16242 2019-08-15 Martin Liska <mliska@suse.cz>
16243
16244 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16245 operators with no arguments.
16246 (eliminate_unnecessary_stmts): Likewise here.
16247
16248 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16249
16250 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16251 <case COMPARE>: Revert 2019-08-14 change.
16252 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16253 for (TARGET_64BIT || mode != DImode).
16254
16255 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16256
16257 * tree-vrp.c (value_range_base::set): Merge in code from
16258 value_range_base::set_and_canonicalize.
16259 Enforce canonicalization at set time.
16260 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16261 (value_range_base::set_undefined): Inline call to set().
16262 (value_range_base::set_varying): Same.
16263 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16264 (vrp_val_max): New argument handle_pointers.
16265 (vrp_val_min): Same.
16266 (ranges_from_anti_range): Same.
16267 (extract_range_into_wide_ints): Use tree argument instead of sign
16268 and precision.
16269 (extract_range_from_multiplicative_op): Take in tree type instead
16270 of precision and sign. Adapt function for canonicalized ranges.
16271 (extract_range_from_binary_expr): Pass type to
16272 extract_range_from_multiplicative_op.
16273 Adapt for canonicalized ranges.
16274 (extract_range_from_unary_expr): Same.
16275 (value_range_base::intersect_helper): Adjust for canonicalized
16276 ranges.
16277 (value_range_base::union_helper): Same.
16278 (value_range_base::normalize_symbolics): New.
16279 * tree-vrp.h (class value_range_base): Remove
16280 set_and_canonicalize.
16281 New prototype for normalize_symbolics.
16282 (class value_range): Remove set_and_canonicalize.
16283 (vrp_val_min): Adjust prototype.
16284 (vrp_val_max): Same.
16285 * vr-values.c
16286 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16287 instead of set_and_canonicalize.
16288
16289 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16290
16291 PR middle-end/91444
16292 * tree-vect-stmts.c (vectorizable_call): Check that the function
16293 is a BUILT_IN_MD function before passing it to
16294 targetm.vectorize.builtin_md_vectorized_function.
16295
16296 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16297
16298 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16299 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16300 (aarch64_select_early_remat_modes): Use it.
16301
16302 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16303
16304 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16305 16 for SVE predicates even if they are fixed-length.
16306
16307 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16308
16309 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16310 operand order match the MOV /Z alias.
16311
16312 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16313
16314 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16315 the vector pattern as an aarch64_svpattern argument. Update the
16316 overloaded caller accordingly.
16317 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16318 (aarch64_output_sve_vector_inc_dec): Likewise.
16319
16320 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16321
16322 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16323 multiplication case, try to compute VG * (lowest set bit) directly
16324 rather than always basing the multiplication on VG. Use
16325 expand_mult for the multiplication if we can.
16326
16327 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16328
16329 * config/aarch64/aarch64-protos.h
16330 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16331 (aarch64_sve_inc_dec_immediate_p): Rename to...
16332 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16333 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16334 (aarch64_output_sve_scalar_inc_dec): Declare.
16335 (aarch64_output_sve_inc_dec_immediate): Rename to...
16336 (aarch64_output_sve_vector_inc_dec): ...this.
16337 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16338 (aarch64_output_sve_scalar_inc_dec): New functions.
16339 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16340 arguments. Only handle true ADDVL and ADDPL instructions;
16341 don't emit an INC or DEC.
16342 (aarch64_sve_inc_dec_immediate_p): Rename to...
16343 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16344 (aarch64_output_sve_inc_dec_immediate): Rename to...
16345 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16346 aarch64_sve_vector_inc_dec_immediate_p.
16347 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16348 (aarch64_sve_plus_immediate): New predicates.
16349 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16350 rather than aarch64_sve_addvl_addpl_immediate.
16351 (aarch64_sve_inc_dec_immediate): Rename to...
16352 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16353 aarch64_sve_vector_inc_dec_immediate_p.
16354 (aarch64_sve_add_operand): Update accordingly.
16355 * config/aarch64/constraints.md (Uai): New constraint.
16356 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16357 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16358 operand into a register if it satisfies aarch64_sve_plus_immediate.
16359 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16360 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16361 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16362 aarch64_output_sve_vector_inc_dec instead of
16363 aarch64_output_sve_inc_dec_immediate.
16364
16365 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16366
16367 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16368 (UNSPEC_REVW): New constants.
16369 (elem_bits): New mode attribute.
16370 (SVE_INT_UNARY): New int iterator.
16371 (optab): Handle UNSPEC_REV[BHW].
16372 (sve_int_op): New int attribute.
16373 (min_elem_bits): Handle VNx16QI and the predicate modes.
16374 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16375 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16376 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16377 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16378 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16379 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16380 unspecs based on the total width of the reversed data.
16381 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16382 reinterpret followed by a subreg on big-endian targets.
16383
16384 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16385 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16386
16387 * config/aarch64/aarch64-sve.md
16388 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16389 alternatives in which one of the inputs is in the same register
16390 as the output.
16391
16392 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16393
16394 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16395 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16396
16397 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16398
16399 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16400 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16401
16402 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16403 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16404
16405 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16406 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16407 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16408
16409 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16410 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16411
16412 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16413 Add an alternative that uses reversed shifts.
16414
16415 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16416
16417 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16418 struct.
16419
16420 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16421
16422 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16423 a commutativity marker.
16424
16425 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16426 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16427
16428 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16429 (aarch64_prepare_sve_cond_int_fma): Declare.
16430 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16431 (aarch64_prepare_sve_int_fma): New functions.
16432 (aarch64_prepare_sve_cond_int_fma): Likewise.
16433 * config/aarch64/aarch64-sve.md
16434 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16435 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16436 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16437 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16438 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16439 (*madd<mode>): Rename to...
16440 (*fma<mode>4): ...this.
16441 (*msub<mode>): Rename to...
16442 (*fnma<mode>4): ...this.
16443
16444 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16445 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16446
16447 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16448 Print 2.0 naturally.
16449 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16450 * config/aarch64/predicates.md
16451 (aarch64_sve_float_negated_arith_immediate): New predicate,
16452 renamed from aarch64_sve_float_arith_with_sub_immediate.
16453 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16454 positive and negative constants.
16455 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16456 or an aarch64_sve_float_arith_with_sub_immediate.
16457 * config/aarch64/constraints.md (vsN): Use
16458 aarch64_sve_float_negated_arith_immediate.
16459 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16460 iterator.
16461 (sve_pred_fp_rhs2_immediate): New int attribute.
16462 * config/aarch64/aarch64-sve.md
16463 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16464 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16465 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16466 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16467 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16468 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16469
16470 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16471 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16472
16473 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16474 (*aarch64_cond_abd<SVE_F:mode>_3)
16475 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16476
16477 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16478 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16479
16480 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16481 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16482
16483 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16484 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16485
16486 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16487 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16488 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16489 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16490 optabs.
16491 * optabs.h (create_convert_operand_from): Expand comment.
16492 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16493 when mapping scalar rtxes to vector operands.
16494 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16495 ashiftrt and lshiftrt.
16496 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16497 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16498 (*cond_<optab><mode>_any_const): New patterns.
16499
16500 2019-08-15 Martin Liska <mliska@suse.cz>
16501
16502 PR ipa/91438
16503 * cgraph.c (cgraph_node::remove): When setting
16504 n->origin = NULL for all nested functions, reset
16505 also next_nested.
16506
16507 2019-08-15 Martin Liska <mliska@suse.cz>
16508
16509 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16510 and next_nested.
16511
16512 2019-08-15 Martin Liska <mliska@suse.cz>
16513
16514 PR ipa/91404
16515 * passes.c (order): Remove.
16516 (uid_hash_t): Likewise).
16517 (remove_cgraph_node_from_order): Remove from set
16518 of pointers (cgraph_node *).
16519 (insert_cgraph_node_to_order): New.
16520 (duplicate_cgraph_node_to_order): New.
16521 (do_per_function_toporder): Register all 3 cgraph hooks.
16522 Skip removed_nodes now as we know about all of them.
16523
16524 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16525
16526 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16527 <case E_V8QImode>: Use vector_set path for
16528 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16529 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16530 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16531
16532 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16533
16534 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16535
16536 2019-08-14 Martin Sebor <msebor@redhat.com>
16537
16538 PR tree-optimization/91294
16539 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16540 source length as exact.
16541
16542 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16543
16544 * doc/extend.texi: Add "noinit" attribute documentation.
16545 * doc/sourcebuild.texi: Add noinit effective target documentation.
16546 * varasm.c (default_section_type_flags): Add support for "noinit"
16547 section.
16548 (default_elf_select_section): Add support for "noinit" attribute.
16549 * config/msp430/msp430.c (msp430_attribute_table): Remove
16550 "noinit" entry.
16551
16552 2019-08-14 Richard Biener <rguenther@suse.de>
16553 Uroš Bizjak <ubizjak@gmail.com>
16554
16555 PR target/91154
16556 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16557 mode arguments.
16558 (scalar_chain::smode): New member.
16559 (scalar_chain::vmode): Likewise.
16560 (dimode_scalar_chain): Rename to...
16561 (general_scalar_chain): ... this.
16562 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16563 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16564 base with TImode and V1TImode.
16565 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16566 (general_scalar_chain::vector_const_cost): Adjust for SImode
16567 chains.
16568 (general_scalar_chain::compute_convert_gain): Likewise. Add
16569 {S,U}{MIN,MAX} support.
16570 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16571 (general_scalar_chain::make_vector_copies): Likewise. Handle
16572 non-DImode chains appropriately.
16573 (general_scalar_chain::convert_reg): Likewise.
16574 (general_scalar_chain::convert_op): Likewise.
16575 (general_scalar_chain::convert_insn): Likewise. Add
16576 fatal_insn_not_found if the result is not recognized.
16577 (convertible_comparison_p): Pass in the scalar mode and use that.
16578 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16579 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16580 (scalar_to_vector_candidate_p): Remove by inlining into single
16581 caller.
16582 (general_remove_non_convertible_regs): Rename from
16583 dimode_remove_non_convertible_regs.
16584 (remove_non_convertible_regs): Remove by inlining into single caller.
16585 (convert_scalars_to_vector): Handle SImode and DImode chains
16586 in addition to TImode chains.
16587 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16588 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16589 (*<maxmin>di3_doubleword): Likewise.
16590
16591 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16592 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16593
16594 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16595 (*cond_bic<mode>_any): New patterns.
16596
16597 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16598
16599 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16600 take the equivalent mask, as well as a bit count.
16601 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16602 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16603 (aarch64_sve_pred_and_operand): New predicates.
16604 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16605 code attribute.
16606 * config/aarch64/aarch64-sve.md
16607 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16608 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16609
16610 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16611
16612 * config/aarch64/aarch64-sve.md
16613 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16614 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16615 New patterns.
16616
16617 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16618 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16619
16620 * config/aarch64/aarch64-sve.md
16621 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16622 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16623
16624 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16625 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16626
16627 * config/aarch64/aarch64-sve.md
16628 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16629 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16630
16631 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16632
16633 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16634 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16635 New pattern.
16636
16637 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16638 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16639
16640 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16641
16642 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16643 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16644
16645 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16646 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16647 (aarch64_print_operand): Add support for %I.
16648 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16649 Bitcast floating-point constants to the corresponding integer constant.
16650 (aarch64_float_const_representable_p): Handle vectors as well
16651 as scalars.
16652 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16653 for the new vcond_mask_<mode><vpred> expander.
16654 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16655 test aarch64_float_const_representable_p.
16656 (aarch64_sve_reg_or_dup_imm): New predicate.
16657 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16658 gen_vcond_mask_<mode><vpred> instead of
16659 gen_aarch64_sve_dup<mode>_const.
16660 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16661 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16662 for operands 1 and 2 respectively. Force operand 2 into a
16663 register if operand 1 is a register. Fold old define_insn...
16664 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16665 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16666 floating-point constants that can be moved as integers. Add
16667 alternatives for MOV /M and FMOV /M.
16668 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16669 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16670 1 and 2 respectively.
16671 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16672 as scalars.
16673 (vss): New constraint.
16674
16675 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16676
16677 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16678 (aarch64_sve_float_maxmin_operand): New predicates.
16679 * config/aarch64/constraints.md (vsB): New constraint.
16680 (vsM): Fix typo.
16681 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16682 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16683 UNSPEC_COND_FMINNM.
16684 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16685 Use aarch64_sve_float_maxmin_operand for operand 2.
16686 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16687 Add alternatives for the constant forms.
16688
16689 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16690
16691 * config/aarch64/constraints.md (vsb): New constraint.
16692 (vsm): Generalize description.
16693 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16694 iterator.
16695 (sve_imm_con): Handle smax, smin, umax and umin.
16696 (sve_imm_prefix): New code attribute.
16697 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16698 (aarch64_sve_vsb_operand): New predicates.
16699 (aarch64_sve_mul_immediate): Rename to...
16700 (aarch64_sve_vsm_immediate): ...this.
16701 (aarch64_sve_mul_operand): Rename to...
16702 (aarch64_sve_vsm_operand): ...this.
16703 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16704 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16705 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16706 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16707 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16708 add movprfx support for the immediate alternatives.
16709 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16710 of the above.
16711 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16712 for operand 3.
16713
16714 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16715
16716 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16717 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16718 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16719
16720 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16721
16722 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16723 (optab, sve_int_op): Handle them.
16724 * config/aarch64/aarch64-sve.md: Expand comment.
16725
16726 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16727
16728 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16729 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16730 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16731
16732 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16733
16734 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16735 (aarch64_expand_sve_const_pred_trn): New functions.
16736 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16737 use the above functions when the parameter is true.
16738 (aarch64_expand_sve_const_pred): Update call accordingly.
16739 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16740 Rename to...
16741 (@aarch64_sve_<perm_insn><mode>): ...this.
16742
16743 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16744
16745 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16746 Declare.
16747 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16748 (aarch64_sve_emit_int_cmp): New functions.
16749 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16750 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16751 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16752 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16753 (UNSPEC_PRED_Z): New unspec.
16754 (set_clobber_cc_nzc): Delete.
16755 * config/aarch64/aarch64-sve.md: Add a block comment about
16756 UNSPEC_PRED_Z.
16757 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16758 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16759 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16760 UNSPEC_MERGE_PTRUE.
16761 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16762 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16763 check for compatible predicates.
16764 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16765 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16766 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16767 comparisons above.
16768
16769 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16770
16771 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16772 * config/aarch64/aarch64-sve.md: Add a section describing it.
16773 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16774 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16775 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16776 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16777 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16778 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16779 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16780 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16781 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16782 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16783 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16784 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16785 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16786 (aarch64_evpc_rev_local): Update accordingly.
16787
16788 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16789
16790 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16791 iterators.
16792 (SVE_BHSI, SVE_SDI): Tweak comment.
16793 (SVE_HSDI): Likewise. Fix definition.
16794 (SVE_SDF): New mode iterator.
16795 (elem_bits): New mode attribute.
16796 (SVE_COND_FCVT): New int iterator.
16797 * config/aarch64/aarch64-sve.md
16798 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16799 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16800 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16801 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16802 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16803 ...these new patterns.
16804 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16805 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16806 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16807 Merge into...
16808 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16809 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16810 ...these new patterns.
16811 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16812 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16813 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16814 ...this new pattern.
16815 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16816 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16817 ...this new pattern.
16818 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16819
16820 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16821
16822 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16823 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16824 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16825 unspecs.
16826 (optab, su): Handle them.
16827 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16828 * config/aarch64/aarch64-sve.md
16829 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16830 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16831 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16832 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16833 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16834 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16835 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16836 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16837 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16838 FIXUORS.
16839 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16840 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16841 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16842 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16843 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16844 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16845 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16846 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16847 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16848 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16849 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16850 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16851 of UNSPEC_FLOAT_CONVERT.
16852 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16853 aarch64_sve_extend<mode><Vwide>2.
16854
16855 2019-08-14 Richard Biener <rguenther@suse.de>
16856
16857 PR target/91154
16858 * config/i386/i386-features.c
16859 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16860 individual instruction gain. Fix reg-reg copy GRP cost. Use
16861 ix86_cost->sse_op for vector instruction costs.
16862
16863 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16864
16865 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16866 (cmp_op): Handle it.
16867 (SVE_COND_FP_CMP): Rename to...
16868 (SVE_COND_FP_CMP_I0): ...this.
16869 (SVE_FP_CMP): Remove.
16870 * config/aarch64/aarch64-sve.md
16871 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16872 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16873 using unspecs to represent the comparison.
16874 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16875 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16876 accordingly.
16877 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16878 (aarch64_unspec_cond_code): Move after integer code. Handle
16879 UNORDERED.
16880 (aarch64_emit_sve_predicated_cond): Replace with...
16881 (aarch64_emit_sve_fp_cond): ...this new function.
16882 (aarch64_emit_sve_or_conds): Replace with...
16883 (aarch64_emit_sve_or_fp_conds): ...this new function.
16884 (aarch64_emit_sve_inverted_cond): Replace with...
16885 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16886 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16887
16888 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16889
16890 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16891 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16892 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16893 SVE_HSD instead of SVE_SD.
16894
16895 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16896 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16897
16898 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16899 iterator.
16900 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16901 attributes.
16902 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16903 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16904 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16905 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16906 (*div<SVE_F:mode>3): Generalize to...
16907 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16908
16909 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16910 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16911
16912 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16913 constants.
16914 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16915 predicate.
16916 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16917 Declare.
16918 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16919 function.
16920 * config/aarch64/aarch64-sve.md: Add a block comment about the
16921 handling of predicated FP operations.
16922 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16923 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16924 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16925 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16926 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16927 operand.
16928 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16929 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16930 operand.
16931 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16932 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16933 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16934 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16935 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16936 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16937 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16938 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16939 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16940 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16941 strictness operands. Use aarch64_sve_pred_dominates_p to check
16942 whether the predicate on the conditional operation is suitable
16943 for merging. Split patterns into the canonical equal-predicate form.
16944 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16945 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16946
16947 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16948 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16949
16950 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16951 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16952 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16953 rtx codes.
16954 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16955 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16956 unspecs.
16957
16958 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16959 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16960
16961 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16962 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16963 actually has, rather than relying on REG_EQUAL notes.
16964 Make the insn operand order match the SVE operand order.
16965 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16966 the SVE operand order.
16967
16968 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16969
16970 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16971 (aarch64_emit_set_immediate): Likewise.
16972 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16973 (aarch64_pfalse_reg): Likewise.
16974 (aarch64_convert_sve_data_to_pred): New function.
16975 (aarch64_sve_move_pred_via_while): Take an optional target register
16976 and the required register mode.
16977 (aarch64_expand_sve_const_pred_1): New function.
16978 (aarch64_expand_sve_const_pred): Likewise.
16979 (aarch64_expand_mov_immediate): Build an all-true predicate
16980 if the significant bits of the immediate are all true. Use
16981 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16982 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16983 before register allocation.
16984 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16985 a VNx16BI PTRUE when splitting the memory alternative.
16986 (vec_duplicate<mode>): Update accordingly.
16987 (*pred_cmp<cmp_op><mode>): Rename to...
16988 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16989
16990 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16991
16992 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16993 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16994 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16995 (UNSPEC_PTEST): New unspec.
16996 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16997 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16998 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16999 * config/aarch64/aarch64-sve.md: Add a new section describing the
17000 handling of UNSPEC_PTEST.
17001 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17002 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17003 (ptest_ptrue<mode>): Replace with...
17004 (aarch64_ptest<mode>): ...this new pattern.
17005 (cbranch<mode>4): Update after above changes.
17006 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17007 UNSPEC_PTEST_PTRUE.
17008 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17009 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17010 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17011
17012 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17013
17014 PR lto/91287
17015 * builtins.c (builtin_with_linkage_p): New function.
17016 * builtins.h (builtin_with_linkage_p): New function.
17017 * symtab.c (write_symbol): Remove redundant assert.
17018 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17019 Remove FIXME and use builtin_with_linkage_p.
17020
17021 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17022
17023 PR middle-end/91421
17024 * tree-core.h (function_decl::function_code): Change type to
17025 unsigned int.
17026 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17027 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17028 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17029 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17030 is BUILT_IN_NORMAL.
17031 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17032 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17033 (fndecl_built_in_p): Change the type of the "name" argument to
17034 unsigned int.
17035 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17036 after check for DECL_BUILT_IN_CLASS.
17037 * cgraphclones.c (build_function_decl_skip_args): Use
17038 set_decl_built_in_function.
17039 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17040 * ipa-split.c (split_function): Likewise.
17041 * langhooks.c (add_builtin_function_common): Likewise.
17042 * omp-simd-clone.c (simd_clone_create): Likewise.
17043 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17044 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17045 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17046 DECL_FUNCTION_CODE.
17047 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17048 instead of DECL_FUNCTION_CODE.
17049 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17050 instead of DECL_FUNCTION_CODE.
17051 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17052 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17053 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17054 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17055 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17056 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17057 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17058 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17059 (alpha_gimple_fold_builtin): Likewise.
17060 * config/arc/arc.c (arc_expand_builtin): Likewise.
17061 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17062 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17063 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17064 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17065 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17066 * config/frv/frv.c (frv_expand_builtin): Likewise.
17067 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17068 (gcn_expand_builtin): Likewise.
17069 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17070 (fold_builtin_cpu): Likewise.
17071 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17072 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17073 (ix86_gimple_fold_builtin): Likewise.
17074 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17075 (ia64_expand_builtin): Likewise.
17076 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17077 * config/mips/mips.c (mips_expand_builtin): Likewise.
17078 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17079 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17080 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17081 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17082 * config/pa/pa.c (pa_expand_builtin): Likewise.
17083 * config/pru/pru.c (pru_expand_builtin): Likewise.
17084 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17085 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17086 Likewise.
17087 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17088 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17089 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17090 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17091 (rs6000_builtin_reciprocal): Likewise.
17092 * config/rx/rx.c (rx_expand_builtin): Likewise.
17093 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17094 * config/s390/s390.c (s390_expand_builtin): Likewise.
17095 * config/sh/sh.c (sh_expand_builtin): Likewise.
17096 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17097 (sparc_fold_builtin): Likewise.
17098 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17099 * config/spu/spu.c (spu_expand_builtin): Likewise.
17100 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17101 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17102 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17103 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17104 (xtensa_expand_builtin): Likewise.
17105
17106 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17107
17108 PR middle-end/91421
17109 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17110 before the DECL_FUNCTION_CODE.
17111 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17112 to check for a BUILT_IN_ALLOCA call.
17113 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17114 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17115 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17116 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17117 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17118 for BUILT_IN_NORMAL functions.
17119 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17120 test for BUILT_IN_TM_ABORT.
17121 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17122 to check for a BUILT_IN_STACK_RESTORE call.
17123 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17124 * tree-ssa-threadedge.c
17125 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17126 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17127 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17128 test for a BUILT_IN_NORMAL call instead of a negative test for
17129 an internal function call.
17130
17131 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17132
17133 * tree.h (build_vector_a_then_b): Declare.
17134 * tree.c (build_vector_a_then_b): New function.
17135 * fold-const-call.c (fold_while_ult): Likewise.
17136 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17137 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17138 (aarch64_svpattern): New enum.
17139 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17140 constants through aarch64_expand_mov_immediate.
17141 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17142 than general_operand as the predicate for operand 1.
17143 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17144 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17145 insn_type.
17146 (simd_immediate_info::simd_immediate_info): New overload that
17147 takes a scalar_int_mode and an svpattern.
17148 (simd_immediate_info::u): Add a "pattern" field.
17149 (svpattern_token): New function.
17150 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17151 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17152 (aarch64_sve_move_pred_via_while): New functions.
17153 (aarch64_expand_mov_immediate): Try using
17154 aarch64_sve_move_pred_via_while for predicates that contain N ones
17155 followed by M zeros but that do not correspond to a VLnnn pattern.
17156 (aarch64_sve_pred_valid_immediate): New function.
17157 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17158 with PTRUE and PFALSE.
17159 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17160 forms.
17161
17162 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17163
17164 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17165 flag.
17166 (darwin_override_options): Likewise.
17167 * config/darwin.h: Likewise.
17168 * config/darwin.opt: Likewise.
17169 * config/i386/i386.c (output_pic_addr_const): Likewise.
17170 * config/rs6000/darwin.h: Likewise.
17171 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17172 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17173 ... this TARGET_MACHO_SYMBOL_STUBS.
17174 (FUNCTION_PROFILER):Likewise.
17175 * config/i386/i386.h: Likewise.
17176
17177 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17178
17179 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17180 <case E_V2SImode>: Use vec_extr path for
17181 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17182 <case E_V8QImode>: Ditto.
17183 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17184 Use SWI48 mode iterator. Use %k to output operand 0.
17185 (*mmx_pextrw): New insn pattern.
17186 (*mmx_pextrb): Ditto.
17187 (*mmx_pextrb_zext): Ditto.
17188
17189 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17190
17191 * target.def (libc_has_function, libc_has_fast_function): Improve
17192 documentation strings.
17193 * doc/tm.texi: Regenerate.
17194
17195 2019-08-13 Caroline Tice <cmtice@google.com>
17196
17197 PR other/91396
17198 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17199 vtv_end.o or vtv_end_preinit.o files if !static.
17200
17201 2019-08-13 Olivier Hainque <hainque@adacore.com>
17202
17203 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17204
17205 2019-08-13 Olivier Hainque <hainque@adacore.com>
17206
17207 * rtlanal.c (tablejump_casesi_pattern): New function, to
17208 determine if a tablejump insn is a casesi dispatcher. Extracted
17209 from patch_jump_insn.
17210 * rtl.h (tablejump_casesi_pattern): Declare.
17211 * cfgrtl.c (patch_jump_insn): Use it.
17212 * dwarf2cfi.c (create_trace_edges): Use it.
17213
17214 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17215
17216 PR target/81800
17217 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17218 operand is larger than a long int.
17219
17220 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17221
17222 * machmode.h (opt_mode::else_mode): New function.
17223 (opt_mode::else_blk): Use it.
17224 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17225 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17226 (aarch64_gen_stepped_int_parallel): Likewise.
17227 (aarch64_stepped_int_parallel_p): Likewise.
17228 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17229 argument.
17230 * config/aarch64/aarch64.c
17231 (aarch64_expand_sve_widened_duplicate): Delete.
17232 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17233 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17234 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17235 argument. Use early returns in the !CONST_INT_P handling.
17236 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17237 than handling some inline.
17238 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17239 from...
17240 (aarch64_simd_container_mode): ...here.
17241 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17242 (aarch64_sve_ld1rq_operand_p): New functions.
17243 * config/aarch64/predicates.md (descending_int_parallel)
17244 (aarch64_sve_ld1rq_operand): New predicates.
17245 * config/aarch64/constraints.md (UtQ): New constraint.
17246 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17247 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17248 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17249 (@aarch64_sve_reinterpret<mode>): New expander.
17250 (*aarch64_sve_reinterpret<mode>): New pattern.
17251 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17252 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17253 (*sve_ld1rq<Vesize>): Replace with...
17254 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17255
17256 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17257
17258 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17259 16:12.
17260
17261 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17262
17263 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17264 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17265 (msp430_check_path_for_devices): New.
17266 (parse_devices_csv_1): New.
17267 (parse_devices_csv): New.
17268 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17269 MCU data in devices.csv before using the hard-coded data.
17270 Warn if devices.csv isn't found and the MCU wasn't found in the
17271 hard-coded data either.
17272 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17273 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17274 Search for devices.csv on -I and -L paths.
17275 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17276 msp430_set_driver_var.
17277 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17278 -mdevices-csv-loc=.
17279 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17280 searched for devices.csv.
17281 (mwarn-devices-csv): Document option.
17282
17283 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17284
17285 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17286 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17287 Use a single Dn alternative instead of separate Dz and Dm
17288 alternatives. Use aarch64_output_sve_move_immediate.
17289 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17290 function.
17291 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17292 for predicates too.
17293 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17294 (aarch64_output_ptrue): Delete.
17295
17296 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17297
17298 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17299 INDEX.
17300 (simd_immediate_info::value, simd_immediate_info::step)
17301 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17302 with...
17303 (simd_immediate_info::u): ...this new union.
17304 (simd_immediate_info::simd_immediate_info): Update accordingly.
17305 (aarch64_output_simd_mov_immediate): Likewise.
17306 (aarch64_output_sve_mov_immediate): Likewise.
17307
17308 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17309
17310 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17311 extra_gcc_objs.
17312 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17313 (msp430_select_cpu): New spec function.
17314 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17315 MCU data.
17316 * config/msp430/msp430-devices.c: New file.
17317 * config/msp430/msp430-devices.h: New file.
17318 * config/msp430/msp430.c: Remove msp430_mcu_data.
17319 (msp430_option_override): Use msp430_extract_mcu_data to extract
17320 MCU data.
17321 (msp430_use_f5_series_hwmult): Likewise.
17322 (use_32bit_hwmult): Likewise.
17323 (msp430_no_hwmult): Likewise.
17324 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17325 assembler.
17326 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17327 and -mcpu option.
17328 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17329 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17330 Remove hard-coded MCU multilib data.
17331
17332 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17333
17334 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17335 based on the mode instead of testing properties of it.
17336
17337 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17338
17339 * doc/md.texi: Document the x and y constraints for AArch64.
17340 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17341 (FP_LO8_REGS): New reg_class.
17342 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17343 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17344 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17345 * config/aarch64/predicates.md (aarch64_simd_register): Use
17346 FP_REGNUM_P instead of checking the classes manually.
17347 * config/aarch64/constraints.md (y): New constraint.
17348
17349 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17350
17351 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17352 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17353 * config/aarch64/aarch64-simd.md
17354 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17355 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17356 from the asm template.
17357 * config/aarch64/aarch64-sve.md
17358 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17359 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17360 from the asm template.
17361 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17362 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17363 from the asm template.
17364 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17365
17366 2019-08-13 Martin Liska <mliska@suse.cz>
17367
17368 * value-prof.c (gimple_ic_transform): Add new line.
17369 Print details with MSG_NOTE.
17370
17371 2019-08-13 Martin Liska <mliska@suse.cz>
17372
17373 * doc/invoke.texi: Document automatic detection of jobserver.
17374 * lto-wrapper.c (run_gcc): Detect jobserver always.
17375
17376 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17377
17378 * config/i386/i386-expand.c (ix86_expand_vector_set)
17379 <case E_V2SImode>: Use vec_merge path for
17380 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17381 <case E_V8QImode>: Ditto.
17382 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17383 (*mmx_pinsrb): Ditto.
17384
17385 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17386
17387 PR target/83250
17388 PR target/91340
17389 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17390 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17391 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17392 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17393 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17394
17395 2019-08-12 Richard Biener <rguenther@suse.de>
17396
17397 PR lto/91375
17398 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17399 flag_devirtualize.
17400
17401 2019-08-12 Richard Biener <rguenther@suse.de>
17402
17403 PR driver/91130
17404 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17405 lang_mask option, always use CL_DRIVER.
17406 (get_options_from_collect_gcc_options): Adjust.
17407 (find_and_merge_options): Likewise.
17408 (run_gcc): Likewise.
17409
17410 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17411
17412 * ipa-predicate.c (add_condition): Restore inverted test.
17413
17414 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17415
17416 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17417 (enum omp_clause_device_type_kind): New enum.
17418 (struct tree_omp_clause): Add subcode.device_type_kind.
17419 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17420 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17421 for device_type clause.
17422 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17423 * tree-pretty-print.c (dump_omp_clause): Likewise.
17424
17425 PR target/91408
17426 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17427 vector_operand.
17428
17429 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17430
17431 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17432 handling spilled pseudos.
17433
17434 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17435
17436 PR target/91386
17437 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17438 to preserve the contents of the original insns.
17439
17440 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17441
17442 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17443 (addsi3_compare_op2): Likewise.
17444
17445 2019-08-09 Martin Liska <mliska@suse.cz>
17446
17447 * alias.c (alias_ptr_types_compatible_p): Strengten
17448 type comparison in LTO mode.
17449
17450 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17451
17452 PR middle-end/90313
17453 * tree-tailcall.c (find_tail_calls): Reject calls that might
17454 read from an escaped RESULT_DECL.
17455
17456 2019-08-09 Martin Liska <mliska@suse.cz>
17457
17458 * doc/invoke.texi: Document the option value.
17459 * lto-wrapper.c (run_gcc): Set auto_parallel
17460 only with -flto=auto.
17461
17462 2019-08-09 Martin Liska <mliska@suse.cz>
17463
17464 * opts.c (common_handle_option): Error for an invalid argument
17465 to -flto=.
17466
17467 2019-08-09 Martin Liska <mliska@suse.cz>
17468
17469 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17470 use dump_printf to report optimization.
17471 (sem_variable::merge): Likwise.
17472 (sem_item_optimizer::merge_classes): Use dump_printf to report
17473 ICF hits.
17474
17475 2019-08-09 Martin Liska <mliska@suse.cz>
17476
17477 * value-prof.c (gimple_divmod_fixed_value_transform):
17478 Use dump_printf_loc.
17479 (gimple_mod_pow2_value_transform): Likewise.
17480 (gimple_mod_subtract_transform): Likewise.
17481 (init_node_map): Likewise.
17482 (gimple_ic_transform): Likewise.
17483 (gimple_stringops_transform): Likewise.
17484
17485 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17486
17487 * doc/extend.texi: Add const qualifier to ld intrinsics.
17488
17489 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17490
17491 * config/rs6000/dfp.md (D64_D128): Rename to ...
17492 (DDTD): ... this, throughout.
17493 (dfp_suffix): Rename to ...
17494 (q): ... this, throughout.
17495
17496 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17497
17498 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17499 (dfp_suffix): Ditto.
17500 (adddd3, addtd3): Merge to ...
17501 (add<mode>3 for D64_D128): ... this.
17502 (subdd3, subtd3): Merge to ...
17503 (sub<mode>3 for D64_D128): ... this.
17504 (muldd3, multd3): Merge to ...
17505 (mul<mode>3 for D64_D128): ... this.
17506 (divdd3, divtd3): Merge to ...
17507 (div<mode>3 for D64_D128): ... this.
17508 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17509 (*cmp<mode>_internal1 for D64_D128): ... this.
17510 (ftruncdd2, ftrunctd2): Merge to ...
17511 (ftrunc<mode>2 for D64_D128): ... this.
17512 (fixdddi2, fixtddi2): Merge to ...
17513 (fix<mode>di2 for D64_D128): ... this.
17514
17515 2019-08-08 Jim Wilson <jimw@sifive.com>
17516
17517 PR target/91229
17518 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17519 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17520 Pass into recursive call.
17521 (riscv_flatten_aggregate_argument): New arg. Pass to
17522 riscv_flatten_aggregate_field.
17523 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17524 riscv_flatten_aggregate_argument twice, with false and true as last
17525 arg. Process result twice. Compare results and warn if different.
17526 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17527
17528 2019-08-08 Martin Liska <mliska@suse.cz>
17529
17530 PR bootstrap/91352
17531 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17532 * lto-wrapper.c (jobserver_active_p): Likewise.
17533
17534 2019-08-08 Martin Liska <mliska@suse.cz>
17535
17536 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17537 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17538 (create_version_clone_with_body): Likewise.
17539
17540 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17541
17542 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17543 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17544 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17545 GOVD_EXPLICIT flags.
17546 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17547 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17548 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17549 call install_var_field with mask 11 instead of 3.
17550 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17551 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17552
17553 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17554
17555 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17556 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17557
17558 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17559
17560 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17561 MOVPRFX alternatives. Make the GPR alternatives more expensive
17562 than the FPR ones.
17563
17564 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17565
17566 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17567 Disparage the GPR alternative relative to the FPR one.
17568 Fix handling of 8-bit and 16-bit FPR values.
17569
17570 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17571
17572 * config/aarch64/iterators.md (BITWISEV): Delete.
17573 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17574 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17575 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17576 UNSPEC_FMINNMV, UNSPEC_FMINV.
17577 (bit_reduc_op): Delete.
17578 (sve_int_op): New int attribute.
17579 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17580 UNSPEC_FMINNMV, UNSPEC_FMINV.
17581 * config/aarch64/aarch64-sve.md
17582 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17583 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17584 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17585 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17586 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17587 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17588 new patterns.
17589 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17590 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17591 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17592 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17593 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17594 new patterns.
17595
17596 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17597
17598 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17599 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17600 (fms<mode>4, *fms<mode>4): Replace with...
17601 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17602 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17603 Use unspecs instead of rtx codes.
17604 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17605 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17606
17607 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17608
17609 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17610 int iterator.
17611 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17612 * config/aarch64/aarch64-sve.md
17613 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17614 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17615 use a single unspec for the rhs.
17616 (*<su><maxmin><mode>3): Delete.
17617 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17618
17619 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17620
17621 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17622 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17623 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17624 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17625 (optab, sve_fp_op): Handle them.
17626 (SVE_FP_UNARY): Delete.
17627 (optab): Remove sqrt entry.
17628 (sve_fp_op): Remove neg, abs and sqrt entries.
17629 (SVE_COND_FP_UNARY): New int iterator.
17630 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17631 (*<frint_pattern><mode>2): Delete.
17632 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17633 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17634 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17635 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17636
17637 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17638
17639 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17640
17641 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17642
17643 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17644 (UNSPEC_COND_FADD): ...this.
17645 (UNSPEC_COND_SUB): Rename to...
17646 (UNSPEC_COND_FSUB): ...this.
17647 (UNSPEC_COND_MUL): Rename to...
17648 (UNSPEC_COND_FMUL): ...this.
17649 (UNSPEC_COND_DIV): Rename to...
17650 (UNSPEC_COND_FDIV): ...this.
17651 (UNSPEC_COND_MAX): Rename to...
17652 (UNSPEC_COND_FMAXNM): ...this.
17653 (UNSPEC_COND_MIN): Rename to...
17654 (UNSPEC_COND_FMINNM): ...this.
17655 (UNSPEC_COND_LT): Rename to...
17656 (UNSPEC_COND_FCMLT): ...this.
17657 (UNSPEC_COND_LE): Rename to...
17658 (UNSPEC_COND_FCMLE): ...this.
17659 (UNSPEC_COND_EQ): Rename to...
17660 (UNSPEC_COND_FCMEQ): ...this.
17661 (UNSPEC_COND_NE): Rename to...
17662 (UNSPEC_COND_FCMNE): ...this.
17663 (UNSPEC_COND_GE): Rename to...
17664 (UNSPEC_COND_FCMGE): ...this.
17665 (UNSPEC_COND_GT): Rename to...
17666 (UNSPEC_COND_FCMGT): ...this.
17667 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17668 (sve_fp_op_rev): Update accordingly.
17669 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17670
17671 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17672
17673 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17674 banner comments.
17675 * config/aarch64/check-sve-md.awk: New file.
17676 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17677 (insn-conditions.md): Depend on it.
17678
17679 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17680
17681 PR target/91385
17682 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17683 (*negsi2_cmpz_zext): Ditto.
17684
17685 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17686
17687 * config/aarch64/iterators.md (commutative): Remove.
17688
17689 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17690
17691 PR driver/91130
17692 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17693 processing COLLECT_GCC_OPTIONS.
17694 (run_gcc): Likewise.
17695
17696 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17697
17698 PR tree-optimization/91109
17699 * lra-remat.c (update_scratch_ops): Remove assignment of the
17700 hard register.
17701
17702 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17703
17704 * data-streamer.h (streamer_write_poly_uint64): Declare.
17705 (streamer_read_poly_uint64): Likewise.
17706 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17707 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17708 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17709 (add_condition): Take a poly_int64 size.
17710 * ipa-predicate.c (add_condition): Likewise.
17711 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17712 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17713 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17714 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17715 condition::size as a poly_int64.
17716 (unmodified_parm_1): Take a poly_int64 size pointer.
17717 (unmodified_parm): Likewise.
17718 (unmodified_parm_or_parm_agg_item): Likewise.
17719 (set_cond_stmt_execution_predicate): Update accordingly.
17720 (set_switch_stmt_execution_predicate): Likewise.
17721 (will_be_nonconstant_expr_predicate): Likewise.
17722 (will_be_nonconstant_predicate): Likewise.
17723 (inline_read_section): Stream condition::size as a poly_int.
17724 (ipa_fn_summary_write): Likewise.
17725
17726 2019-08-07 Martin Liska <mliska@suse.cz>
17727
17728 * fold-const.c (twoval_comparison_p): Replace int
17729 with bool as a return type.
17730 (simple_operand_p): Likewise.
17731 (operand_equal_p): Replace int with bool as a return type.
17732 * fold-const.h (operand_equal_p): Likewise.
17733
17734 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17735
17736 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17737 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17738 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17739 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17740 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17741 * tree-pretty-print.c (dump_omp_clause): Likewise.
17742 * tree-nested.c (convert_nonlocal_omp_clauses,
17743 convert_local_omp_clauses): Likewise.
17744 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17745 Likewise.
17746 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17747 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17748 clause with array or reference to array types, no matter what type
17749 except for reference it has.
17750
17751 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17752
17753 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17754
17755 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17756
17757 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17758 (arch_canonicalize): Support rv32g and rv64g and fix error
17759 handling.
17760
17761 2019-08-06 Martin Liska <mliska@suse.cz>
17762
17763 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17764 and DECL_IS_OPERATOR_DELETE_P.
17765
17766 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17767
17768 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17769 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17770 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17771 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17772 (gimplify_omp_for): Don't do C++ random access iterator clause
17773 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17774 don't predetermine the artificial iterator in case of C++ random
17775 access iterators as lastprivate, but private. For OMP_LOOP, force
17776 bind expr around simd body and force for_pre_body before the
17777 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17778 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17779 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17780 diff var of C++ random access iterators. Handle
17781 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17782 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17783 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17784 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17785 * omp-low.c (lower_rec_input_clauses): For
17786 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17787 variables instead of default constructing them.
17788 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17789 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17790 is_taskloop_ctx check from the assert to the guarding condition.
17791
17792 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17793
17794 * config/riscv/multilib-generator: (canonical_order): New.
17795 (arch_canonicalize): Dito.
17796 Apply arch_canonicalize for alts.
17797
17798 2019-08-05 Martin Sebor <msebor@redhat.com>
17799
17800 * doc/extend.texi (Common Variable Attributes): Document alias
17801 attribute.
17802
17803 2019-08-05 Marek Polacek <polacek@redhat.com>
17804
17805 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17806 * doc/invoke.texi: Document -Wcomma-subscript.
17807
17808 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17809
17810 * tree-core.h (tree_function_decl): Make function_code an
17811 independent field. Group the remaining bitfields into bytes
17812 and move decl_type so that it contines to be at a byte boundary.
17813 Leave 12 bits for future expansion.
17814
17815 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17816
17817 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17818 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17819 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17820 IFN_MASK_STORE.
17821
17822 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17823
17824 * gimple.h (gimple_move_vops): Declare.
17825 * gimple.c (gimple_move_vops): New function
17826 * gimple-fold.c (replace_call_with_call_and_fold)
17827 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17828 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17829 (gimple_fold_call): Use it.
17830 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17831 * tree-call-cdce.c (use_internal_fn): Likewise.
17832 * tree-if-conv.c (predicate_load_or_store): Likewise.
17833 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17834 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17835 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17836 (update_call_from_tree): Likewise.
17837 * tree-vect-stmts.c (vectorizable_load): Likewise.
17838 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17839
17840 2019-08-05 Martin Liska <mliska@suse.cz>
17841
17842 PR c++/91334
17843 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17844 with not arguments.
17845 (eliminate_unnecessary_stmts): Likewise.
17846
17847 2019-08-05 Richard Biener <rguenther@suse.de>
17848
17849 PR middle-end/91169
17850 * fold-const.c (get_array_ctor_element_at_index): Create
17851 offset_ints according to the sign of the index type and treat
17852 that as signed if it is obviously so.
17853
17854 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17855
17856 PR target/91341
17857 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17858 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17859 _mm256_storeu2_m128i): New function.
17860
17861 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17862
17863 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17864 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17865
17866 2019-08-05 Alan Modra <amodra@gmail.com>
17867
17868 PR target/91349
17869 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17870 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17871
17872 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17873
17874 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17875 bug that was fixed in Tcl 8.6.1.
17876
17877 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17878
17879 * config/rs6000/future.md: New file.
17880 * config/rs6000/rs6000.md: Include future.md.
17881 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17882
17883 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17884
17885 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17886 check to use targetm.slow_unaligned_access instead.
17887
17888 * function.c (assign_param_data_one): Remove unused data members.
17889
17890 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17891
17892 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17893 build_distinct_type_copy.
17894 (simd_clone_adjust_argument_types): Ditto.
17895 (simd_clone_adjust): Call build_distinct_type_copy here.
17896 (expand_simd_clones): Ditto.
17897
17898 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17899
17900 PR target/91201
17901 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17902
17903 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17904
17905 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17906 from 'const void *'.
17907 (sort_locs_in_loop_postorder_cmp): Likewise.
17908
17909 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17910
17911 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17912 (hot-bb-count-ws-permille): Likewise.
17913 (hot-bb-frequency-fraction): Likewise.
17914 (unlikely-bb-count-fraction): Likewise.
17915 * params.def (hot-bb-count-fraction): Rework description.
17916 (hot-bb-count-ws-permille): Likewise.
17917 (hot-bb-frequency-fraction): Likewise.
17918 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17919 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17920
17921 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17922
17923 PR target/91323
17924 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17925 Return false.
17926
17927 2019-08-02 Richard Biener <rguenther@suse.de>
17928
17929 * vec.h (vec::sort): Add gcc_qsort_r support.
17930 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17931 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17932 to gcc_qsort_r style callback.
17933 (sort_locs_in_loop_postorder_cmp): Likewise.
17934 (analyze_memory_references): Use gcc_sort_r interfaces.
17935 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17936
17937 2019-08-02 Martin Liska <mliska@suse.cz>
17938
17939 PR lto/91313
17940 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17941 to detect working job server.
17942 (driver::detect_jobserver): Test whether jobserver
17943 is active from GCC driver. That will prevent situation where
17944 GCC is invoked from a LD plugin and the linker already uses
17945 file descriptors suggested by make. That leads to a wrong
17946 detection.
17947 * gcc.h (driver): Add detect_jobserver.
17948 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17949 not scanning for --jobserver-auth prefix.
17950
17951 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17952
17953 PR tree-optimization/91201
17954 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17955 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17956 extraction.
17957
17958 2019-08-01 Martin Sebor <msebor@redhat.com>
17959
17960 PR c++/90947
17961 * tree.c (type_initializer_zero_p): Define.
17962 * tree.h (type_initializer_zero_p): New function.
17963
17964 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17965
17966 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17967
17968 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17969
17970 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17971 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17972 * predict.c (maybe_hot_count_p): Likewise.
17973 (maybe_hot_bb_p): Tweak comment.
17974 (maybe_hot_edge_p): Likewise.
17975 (probably_never_executed): Likewise. Minor tweak.
17976 (probably_never_executed_bb_p): Likewise.
17977 (unlikely_executed_edge_p): Likewise.
17978 (probably_never_executed_edge_p): Likewise.
17979 (optimize_function_for_size_p): Likewise.
17980 (optimize_function_for_speed_p): Likewise.
17981 (function_optimization_type): Likewise.
17982 (optimize_bb_for_size_p): Likewise.
17983 (optimize_bb_for_speed_p): Likewise.
17984 (bb_optimization_type): Likewise.
17985 (optimize_edge_for_size_p): Likewise.
17986 (optimize_edge_for_speed_p): Likewise.
17987 (optimize_insn_for_size_p): Likewise.
17988 (optimize_insn_for_speed_p): Likewise.
17989 (optimize_loop_for_size_p): Likewise.
17990 (optimize_loop_for_speed_p): Likewise.
17991 (optimize_loop_nest_for_speed_p): Likewise.
17992 (optimize_loop_nest_for_size_p): Likewise.
17993 (predictable_edge_p): Likewise.
17994 (handle_missing_profiles): Minor tweak.
17995
17996 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17997
17998 * config/rs6000/predicates.md (pcrel_external_address): Update
17999 comment.
18000
18001 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18002
18003 PR target/85693
18004 * config/i386/mmx.md (usadv8qi): New expander.
18005
18006 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18007
18008 PR c++/90590
18009 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18010 with reserved names that are in a system header.
18011
18012 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18013
18014 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18015 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18016 (*vec_extractv2si_0_zext): Ditto.
18017 (*vec_extractv2si_1): Add (rm,x) alternative.
18018 (*vec_extractv2si_1_zext): New insn pattern.
18019 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18020 insn constraint.
18021
18022 2019-08-01 Richard Biener <rguenther@suse.de>
18023
18024 * domwalk.c (bb_postorder): Remove static variable.
18025 (cmp_bb_postorder): Adjust.
18026 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18027 (dom_walker::walk): Adjust.
18028
18029 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18030
18031 * sort.cc (sort_r_ctx): New struct.
18032 (reorder23): Make templated on context type.
18033 (reorder45): Ditto.
18034 (cmp1): Ditto. Adjust signature.
18035 (netsort): Ditto.
18036 (mergesort): Ditto.
18037 [CHECKING_P] (cmp2to3): New static function. Use it...
18038 (gcc_qsort) [CHECKING_P]: ...here.
18039 (gcc_sort_r): New function.
18040 * system.h (sort_r_cmp_fn): New function typedef.
18041 (qsort_chk): Adjust signature.
18042 (gcc_sort_r): Declare.
18043 * vec.c (qsort_chk_error): Adjust.
18044 (qsort_chk): Adjust.
18045
18046 2019-08-01 Richard Biener <rguenther@suse.de>
18047
18048 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18049 (compute_antic): Localize it here.
18050
18051 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18052
18053 * common/config/riscv/riscv-common.c: Check -march string ends
18054 with null.
18055
18056 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18057
18058 * ipa-devirt.c (type_warning_cmp): Make static.
18059 (decl_warning_cmp): Ditto.
18060
18061 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18062
18063 PR target/91050
18064 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18065 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18066 use of deleted rs6000_dejagnu_cpu_index variable.
18067 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18068 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18069 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18070 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18071 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18072 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18073
18074 2019-07-31 Richard Biener <rguenther@suse.de>
18075
18076 PR tree-optimization/91280
18077 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18078 Decompose MEM_REF manually for offset handling.
18079
18080 2019-07-31 Richard Biener <rguenther@suse.de>
18081
18082 PR tree-optimization/91293
18083 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18084 of reduction stmts.
18085
18086 2019-07-31 Matt Thomas <matt@3am-software.com>
18087 Nick Hudson <nick@nthcliff.demon.co.uk>
18088 Matthew Green <mrg@eterna.com.au>
18089 Maya Rashish <coypu@sdf.org>
18090
18091 * config.gcc (hppa*-*-netbsd*): New target.
18092 * config/pa/pa-netbsd.h: New file.
18093 * config/pa/pa32-netbsd.h: New file.
18094
18095 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18096
18097 PR tree-optimization/91201
18098 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18099
18100 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18101
18102 * config/gcn/gcn-valu.md
18103 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18104 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18105 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18106 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18107 struct ilist. Add nops for delayeduse insns.
18108 * config/gcn/gcn.md (delayeduse): New attribute.
18109 (*movbi): Remove s_waitcnt from stores.
18110 (*mov<mode>_insn): Likewise.
18111 (*movti_insn): Likewise. Add delayeduse attribute.
18112 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18113 (atomic_store<mode>): Remove or adjust s_waitcnt.
18114
18115 2019-07-31 Richard Biener <rguenther@suse.de>
18116
18117 * vr-values.h (vr_values::swap_vr_value): New.
18118 (vr_values::free_value_range): likewise.
18119 * vr-values.c (vr_values::swap_vr_value): Implement.
18120 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18121 Do not return a range or take a var.
18122 (evrp_range_analyzer::stack): Change back to recording a non-const
18123 value_range *.
18124 * gimple-ssa-evrp-analyze.c
18125 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18126 value-range.
18127 (evrp_range_analyzer::pop_to_marker): Adjust.
18128 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18129 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18130 no longer needed value-range.
18131
18132 2019-07-31 Martin Liska <mliska@suse.cz>
18133
18134 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18135 have size and (or) alignment as 2nd and later arguments.
18136 Mark all of them as necessary.
18137
18138 2019-07-31 Richard Biener <rguenther@suse.de>
18139
18140 PR tree-optimization/91178
18141 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18142 Use tail-recursion.
18143
18144 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18145
18146 PR tree-optimization/91201
18147 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18148 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18149 TARGET_AVX512F.
18150 (reduc_plus_scal_<mode>): Improve formatting by introducing
18151 a temporary.
18152
18153 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18154
18155 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18156 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18157 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18158 (aarch64_init_tme_builtins): New.
18159 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18160 (aarch64_expand_builtin_tme): New.
18161 (aarch64_expand_builtin): Handle TME builtins.
18162 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18163 __ARM_FEATURE_TME when enabled.
18164 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18165 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18166 (TARGET_TME): New.
18167 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18168 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18169 UNSPECV_TCANCEL.
18170 (tstart, ttest, tcommit, tcancel): New instructions.
18171 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18172 (__tcancel, __ttest): New.
18173 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18174 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18175 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18176 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18177 * config/arm/types.md: Add new tme type attr.
18178 * doc/invoke.texi: Document "tme".
18179
18180 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18181
18182 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18183 warn_unused_result attribute.
18184 (cmse_check_address_range): Add warn_unused_result attribute.
18185
18186 2019-07-31 Richard Biener <rguenther@suse.de>
18187
18188 PR tree-optimization/91257
18189 * tree-vrp.c (union_ranges): Unify equality and less tests
18190 by using compare_values. Re-order cheap tests first.
18191
18192 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18193
18194 PR middle-end/91301
18195 * gimplify.c (gimplify_omp_for): If for class iterator on
18196 distribute parallel for there is no data sharing clause
18197 on inner_for_stmt, look for private clause on combined
18198 parallel too and if found, move it to inner_for_stmt.
18199
18200 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18201
18202 * lra-int.h (lra_operand_data): Remove early_clobber field.
18203 (lra_insn_reg): Likewise.
18204 * lra.c (debug_operand_data): Update accordingly.
18205 (setup_operand_alternative): Likewise.
18206 (new_insn_reg): Likewise. Remove early_clobber parameter.
18207 (collect_non_operand_hard_regs): Update call accordingly.
18208 Don't assign to lra_insn_reg::early_clobber.
18209 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18210 and update calls to new_insn_reg.
18211 (lra_update_insn_regno_info): Update calls accordingly.
18212 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18213 alternative number as a parameter and test whether the operand
18214 is earlyclobbered in that particular alternative.
18215 (process_alt_operands): Update call accordingly. Use per-alternative
18216 checks for earyclobber here too.
18217 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18218 against zero for IRA_UNKNOWN_ALT.
18219
18220 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18221
18222 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18223
18224 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18225
18226 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18227 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18228
18229 2019-07-30 Martin Liska <mliska@suse.cz>
18230
18231 PR ipa/89330
18232 * cgraph.c (cgraph_edge::make_direct): Use
18233 edge->indirect_unknown_callee as edge->resolve_speculation can
18234 deallocate edge which is this pointer.
18235
18236 2019-07-30 Richard Biener <rguenther@suse.de>
18237
18238 PR tree-optimization/91257
18239 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18240
18241 2019-07-30 Martin Liska <mliska@suse.cz>
18242
18243 * doc/invoke.texi: Document new behavior.
18244 * lto-wrapper.c (cpuset_popcount): New function
18245 is a copy of libgomp/config/linux/proc.c.
18246 (init_num_threads): Likewise.
18247 (run_gcc): Automatically detect core count for -flto.
18248 (jobserver_active_p): New function.
18249
18250 2019-07-30 Richard Biener <rguenther@suse.de>
18251
18252 PR tree-optimization/91257
18253 * bitmap.h (bitmap_ior_into_and_free): Declare.
18254 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18255 whether to add the unliked element to the freelist.
18256 (bitmap_list_insert_element_after): Add defaulted param for
18257 an already allocated element.
18258 (bitmap_ior_into_and_free): New function.
18259 * tree-ssa-structalias.c (condense_visit): Reduce the
18260 ponts-to and edge bitmaps of the SCC members in a
18261 logarithmic fashion rather than all to one.
18262
18263 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18264
18265 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18266 parameter. When nonnull, make sure that the addition or subtraction
18267 has the same condition.
18268 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18269 for CFN_COND_MUL too.
18270
18271 2019-07-30 Richard Biener <rguenther@suse.de>
18272
18273 PR tree-optimization/91291
18274 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18275 constant values.
18276
18277 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18278
18279 PR middle-end/91216
18280 * omp-low.c (global_nonaddressable_vars): New variable.
18281 (use_pointer_for_field): For global decls, if they are non-addressable,
18282 remember it in the global_nonaddressable_vars bitmap, if they are
18283 addressable and in the global_nonaddressable_vars bitmap, ignore their
18284 TREE_ADDRESSABLE bit.
18285 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18286 vars in global_nonaddressable_vars bitmap.
18287 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18288
18289 PR target/91150
18290 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18291 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18292 comparison to unsigned HOST_WIDE_INT before shifting it left.
18293
18294 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18295
18296 * config/i386/i386.md (movstrict<mode>): Use register_operand
18297 predicate for operand 0. Add expander condition. Assert that
18298 operand 0 is a SUBREG RTX.
18299 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18300 Update operand constraints and insn condition.
18301 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18302 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18303 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18304 Update operand 0 constraints.
18305 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18306
18307 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18308
18309 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18310 when -m{code,data}-region are used without -mlarge.
18311 * config/msp430/msp430.c (msp430_option_override): Error when a
18312 non-default code or data region is used without -mlarge.
18313 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18314 attributes when they are used without -mlarge.
18315
18316 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18317
18318 PR target/70320
18319 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18320
18321 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18322
18323 PR middle-end/91242
18324 * wide-int.h (generic_wide_int::sext_elt): New function.
18325 * inchash.h (hash::add_wide_int): Use it instead of elt.
18326
18327 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18328
18329 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18330 CODE_FOR_arm_##.
18331 * config/arm/arm.md (<crc_variant>): Rename to...
18332 (arm_<crc_variant>): ... This.
18333 (<cdp>): Rename to...
18334 (arm_<cdp>): ... This.
18335 (<ldc>): Rename to...
18336 (arm_<ldc>): ... This.
18337 (<stc>): Rename to...
18338 (arm_<stc>): ... This.
18339 (<mcr>): Rename to...
18340 (arm_<mcr>): ... This.
18341 (<mrc>): Rename to...
18342 (arm_<mrc>): ... This.
18343 (<mcrr>): Rename to...
18344 (arm_<mcrr>): ... This.
18345 (<mrrc>): Rename to...
18346 (arm_<mrrc>): ... This.
18347
18348 2019-07-29 Richard Biener <rguenther@suse.de>
18349
18350 PR tree-optimization/91257
18351 * tree-ssa-sccvn.h (struct vn_avail): New.
18352 (struct vn_ssa_aux): Add avail member.
18353 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18354 member, add m_avail_freelist one.
18355 (rpo_elim::~rpo_elim): Remove.
18356 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18357 data structure.
18358 (rpo_elim::eliminate_push_avail): Likewise.
18359 (do_unwind): Likewise.
18360 (do_rpo_vn): Likewise.
18361
18362 2019-07-29 Richard Biener <rguenther@suse.de>
18363
18364 PR tree-optimization/91257
18365 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18366 most cases, instead call compare_values which handles the
18367 symbolic ranges we handle specially.
18368 (compare_values_warnv): Do not call operand_less_p but open-code
18369 the effective fold calls. Avoid converting so much.
18370
18371 2019-07-29 Martin Liska <mliska@suse.cz>
18372
18373 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18374 remove LHS of operator new call. It's handled latter.
18375
18376 2019-07-29 Richard Biener <rguenther@suse.de>
18377
18378 PR tree-optimization/91267
18379 * vr-values.c (vr_values::update_value_range): Add early return
18380 for effectively VARYING lattice entry.
18381
18382 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18383
18384 PR debug/86638
18385 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18386 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18387 necessary if keep_all_vdefs_p is true.
18388 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18389 that keep_all_vdefs_p is false.
18390 (mark_all_reaching_defs_necessary): Likewise.
18391 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18392
18393 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18394
18395 * common.opt (Og): Change the initial value of flag_dse to 0.
18396 * opts.c (default_options_table): Move OPT_ftree_dse from
18397 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18398 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18399 entry before the OPT_ftree_sra entry.
18400 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18401 of flags disabled by Og.
18402
18403 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18404
18405 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18406 variables for -Og.
18407
18408 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18409
18410 * doc/sourcebuild.texi (check-function-bodies): Document.
18411
18412 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18413
18414 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18415 VEC_DUPLICATE of a fixed-length vector even if the result
18416 is variable-length. Likewise fold a duplicate of a
18417 variable-length vector if the variable-length vector is
18418 itself a duplicate of a fixed-length sequence.
18419 (test_vector_ops_duplicate): Test more cases.
18420
18421 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18422
18423 * vector-builder.h (vector_builder): Add a shape template parameter.
18424 (vector_builder::new_unary_operation): New function, generalizing
18425 the old tree_vector_builder function.
18426 (vector_builder::new_binary_operation): Likewise.
18427 (vector_builder::binary_encoded_nelts): Likewise.
18428 * int-vector-builder.h (int_vector_builder): Update template
18429 parameters to vector_builder.
18430 (int_vector_builder::shape_nelts): New function.
18431 * rtx-vector-builder.h (rtx_vector_builder): Update template
18432 parameters to vector_builder.
18433 (rtx_vector_builder::shape_nelts): New function.
18434 (rtx_vector_builder::nelts_of): Likewise.
18435 (rtx_vector_builder::npatterns_of): Likewise.
18436 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18437 * tree-vector-builder.h (tree_vector_builder): Update template
18438 parameters to vector_builder.
18439 (tree_vector_builder::shape_nelts): New function.
18440 (tree_vector_builder::nelts_of): Likewise.
18441 (tree_vector_builder::npatterns_of): Likewise.
18442 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18443 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18444 (tree_vector_builder::new_binary_operation): Delete.
18445 (tree_vector_builder::binary_encoded_nelts): Likewise.
18446 * simplify-rtx.c: Include rtx-vector-builder.h.
18447 (distributes_over_addition_p): New function.
18448 (simplify_const_unary_operation)
18449 (simplify_const_binary_operation): Generalize handling of vector
18450 constants to include variable-length vectors.
18451 (test_vector_ops_series): Add more tests.
18452
18453 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18454
18455 PR lto/91222
18456 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18457 than INDENTIFIER_POINTER.
18458
18459 2019-07-28 Martin Liska <mliska@suse.cz>
18460
18461 PR ipa/89330
18462 * cgraph.c (symbol_table::create_edge): Always allocate
18463 a cgraph_edge.
18464 (symbol_table::free_edge): Store summary_id to
18465 edge_released_summary_ids if != -1;
18466 * cgraph.h (NEXT_FREE_NODE): Remove.
18467 (SET_NEXT_FREE_NODE): Likewise.
18468 (NEXT_FREE_EDGE): Likewise.
18469 (symbol_table::release_symbol): Store summary_id to
18470 cgraph_released_summary_ids if != -1;
18471 (symbol_table::allocate_cgraph_symbol): Always allocate
18472 a cgraph_node.
18473
18474 2019-07-28 Alan Modra <amodra@gmail.com>
18475
18476 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18477 gen_sibcall.
18478
18479 2019-07-28 Alan Modra <amodra@gmail.com>
18480
18481 PR target/91135
18482 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18483 define.
18484 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18485 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18486 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18487
18488 2019-07-28 Alan Modra <amodra@gmail.com>
18489
18490 PR target/91050
18491 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18492 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18493 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18494 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18495 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18496 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18497 in asm_default spec.
18498 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18499 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18500
18501 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18502
18503 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18504
18505 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18506
18507 PR target/89517
18508 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18509 * config/aarch64/aarch64-option-extensions.def: Add new comments
18510 and restore easier to read options.
18511
18512 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18513
18514 * convert.c (convert_to_real_1): Move part of conversion code...
18515 * match.pd: ...To here.
18516
18517 2019-07-26 Martin Jambor <mjambor@suse.cz>
18518
18519 PR ipa/89330
18520 * ipa-inline-transform.c (check_speculations_1): New function.
18521 (push_all_edges_in_set_to_vec): Likewise.
18522 (check_speculations): Use check_speculations_1, new parameter
18523 new_edges.
18524 (inline_call): Pass new_edges to check_speculations.
18525 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18526 NULL.
18527 (speculation_useful_p): Early return true if edge is inlined, remove
18528 later checks for inline_failed.
18529
18530 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18531
18532 PR rtl-optimization/91223
18533 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18534 matching with INOUT operand.
18535
18536 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18537
18538 * stmt.c (expand_case): Try to narrow the index type if it's larger
18539 than a word. Tidy up.
18540
18541 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18542
18543 * cif-code.def (NEVER_CALL): New code.
18544 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18545 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18546
18547 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18548
18549 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18550 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18551
18552 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18553
18554 * ipa-devirt.c (add_type_duplicate): Fix return value.
18555
18556 2019-07-25 Richard Biener <rguenther@suse.de>
18557
18558 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18559 type parameter and use it instead of guessing expression
18560 type from the first operand.
18561 (extract_range_from_binary_expr): Pass expr_type down.
18562
18563 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18564
18565 * config/arm/arm.md (SATrev): Change to code attribute.
18566 (*satsi_<SAT:code>): Adjust for the above.
18567 (*satsi_<SAT:code>_shift): Likewise.
18568
18569 2019-07-25 Richard Biener <rguenther@suse.de>
18570
18571 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18572 Make value_range * temporary const.
18573 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18574 Likewise.
18575 (evrp_range_analyzer::record_ranges_from_): Likewise.
18576 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18577 deal with having recorded a const one.
18578 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18579 Return a const value_range *.
18580 (evrp_range_analyzer::pop_value_range): Likewise.
18581 (evrp_range_analyzer::stack): Record const value_range *s.
18582 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18583 Adjust.
18584 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18585 (format_integer): Likewise.
18586 (sprintf_dom_walker::handle_gimple_call): Likewise.
18587 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18588 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18589 (vrp_prop::get_value_range): Adjust.
18590 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18591 modifying the lattice in-place.
18592 (vrp_prop::visit_stmt): Likewise.
18593 * vr-values.c (vr_values::get_lattice_entry): New private method.
18594 (vr_values::get_value_range): Wrap it and return a const
18595 value_range *.
18596 (vr_values::set_def_to_varying): New.
18597 (vr_values::set_defs_to_varying): Use it.
18598 (vr_values::update_value_range): Likewise.
18599 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18600 (values::op_with_constant_singleton_va): Likewise.
18601 (vr_values::extract_range_for_var_from_co): Likewise.
18602 (vr_values::extract_range_from_ssa_name): Likewise.
18603 (vr_values::extract_range_from_cond_expr): Likewise.
18604 (vr_values::extract_range_basic): Likewise.
18605 (compare_ranges): Take const value_range *, adjust.
18606 (compare_range_with_value): Likewise.
18607 (vrp_valueize): Adjust.
18608 (vrp_valueize_1): Likewise.
18609 (vr_values::get_vr_for_comparison): Return a const value_range *.
18610 (vr_values::compare_name_with_value): Adjust.
18611 (vr_values::compare_names): Likewise.
18612 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18613 Likewise.
18614 (vr_values::vrp_evaluate_conditional): Likewise.
18615 (find_case_label_ranges): Take a const value_range *.
18616 (vr_values::vrp_visit_switch_stmt): Adjust.
18617 (vr_values::extract_range_from_phi_node): Likewise.
18618 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18619 (vr_values::simplify_abs_using_ranges): Likewise.
18620 (test_for_singularity): Take a const value_range *.
18621 (range_fits_type_p): Likewise.
18622 (vr_values::simplify_cond_using_ranges_1): Adjust.
18623 (vr_values::simplify_cond_using_ranges_2): Likewise.
18624 (vr_values::simplify_switch_using_ranges): Likewise.
18625 (vr_values::simplify_float_conversion_usi): Likewise.
18626 (vr_values::two_valued_val_range_p): Likewise.
18627 * vr-values.h (vr_values::get_value_range): Return a const
18628 value_range *.
18629 (vr_values::set_def_to_varying): New.
18630 (vr_values::get_lattice_entry): New private method.
18631 (vr_values::get_vr_for_comparison): Return a const value_range *.
18632
18633 2019-07-25 Martin Liska <mliska@suse.cz>
18634 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18635
18636 PR c++/23383
18637 * common.opt: Add -fallocation-dce
18638 * gimple.c (gimple_call_operator_delete_p): New.
18639 * gimple.h (gimple_call_operator_delete_p): Likewise.
18640 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18641 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18642 DECL_IS_OPERATOR_DELETE_P.
18643 (mark_all_reaching_defs_necessary_1): Likewise.
18644 (propagate_necessity): Likewise.
18645 (eliminate_unnecessary_stmts): Handle
18646 gimple_call_operator_delete_p.
18647 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18648 Add packing of OPERATOR_DELETE.
18649 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18650 Similarly here.
18651 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18652 (DECL_SET_IS_OPERATOR_DELETE): New.
18653 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18654
18655 2019-07-25 Martin Liska <mliska@suse.cz>
18656
18657 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18658 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18659 * coverage.c (coverage_begin_function): Likewise.
18660 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18661 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18662 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18663 (sem_item::hash_referenced_symbol_properties): Likewise.
18664 * lto-streamer-out.c (hash_tree): Likewise.
18665 * predict.c (expr_expected_value_1): Likewise.
18666 * tree-inline.c (expand_call_inline): Likewise.
18667 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18668 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18669 * tree-core.h (enum function_decl_type): New enum.
18670 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18671 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18672 (set_function_decl_type): Likewise.
18673 (DECL_IS_OPERATOR_NEW_P): New.
18674 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18675 (DECL_LAMBDA_FUNCTION): Likewise.
18676 (DECL_LAMBDA_FUNCTION_P): Likewise.
18677 (DECL_IS_OPERATOR_NEW): Remove.
18678 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18679
18680 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18681
18682 * ipa-profile.c (get_most_common_single_value): Use
18683 get_nth_most_common_value.
18684 * profile.c (sort_hist_value): New function.
18685 (compute_value_histograms): Call sort_hist_value to sort the
18686 values after loading from disk.
18687 * value-prof.c (get_most_common_single_value): Rename to ...
18688 get_nth_most_common_value. Add input params n, return
18689 the n_th value and count.
18690 (gimple_divmod_fixed_value_transform): Use
18691 get_nth_most_common_value.
18692 (gimple_ic_transform): Likewise.
18693 (gimple_stringops_transform): Likewise.
18694 * value-prof.h (get_most_common_single_value): Add input params
18695 n, default to 0.
18696
18697 2019-07-25 Richard Biener <rguenther@suse.de>
18698
18699 PR tree-optimization/91236
18700 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18701 size of CONSTRUCTOR write. Fix buffer size we pass to
18702 native_encode_expr.
18703
18704 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18705
18706 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18707 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18708 r273773.
18709
18710 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18711
18712 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18713 explicitly disabled with --disable-initfini-array.
18714
18715 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18716
18717 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18718 if-exists.
18719
18720 2019-07-24 Martin Sebor <msebor@redhat.com>
18721
18722 PR tree-optimization/91183
18723 PR tree-optimization/86688
18724 * builtins.c (compute_objsize): Handle MEM_REF.
18725 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18726 (get_min_string_length): Remove.
18727 (count_nonzero_bytes): New function.
18728 (handle_char_store): Rename...
18729 (handle_store): to this. Handle multibyte stores via integer types.
18730 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18731 function name.
18732
18733 2019-07-24 Martin Sebor <msebor@redhat.com>
18734
18735 PR driver/80545
18736 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18737 (diagnostic_report_diagnostic): Same.
18738 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18739 (diagnostic_context::lang_mask): New data member.
18740 * ipa-pure-const.c (suggest_attribute): Use
18741 lang_hooks.option_lang_mask ().
18742 * opts-common.c (option_enabled): Handle new argument.
18743 (get_option_state): Pass an additional argument.
18744 * opts.c (print_filtered_help): Print supported languages for
18745 unsupported options. Adjust printing of current state.
18746 * opts.h (option_enabled): Add argument.
18747 * toplev.c (print_switch_values): Use lang_mask.
18748 (general_init): Set global_dc->lang_mask.
18749
18750 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18751
18752 PR bootstrap/87030
18753 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18754
18755 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18756
18757 * cgraphunit.c (symbol_table::compile): Start and stop
18758 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18759 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18760
18761 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18762
18763 * gimplify.c (flag_instrument_functions_exclude_p): Include
18764 namespace/class information in the printable name.
18765 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18766 to tokens entered into the vector.
18767
18768 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18769
18770 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18771 (get_static_chain): Call it instead of build_simple_mem_ref.
18772 (get_frame_field): Likewise.
18773 (get_nonlocal_debug_decl): Likewise.
18774 (convert_nonlocal_reference_op): Likewise.
18775
18776 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18777
18778 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18779 declaration.
18780 (arc_compute_frame_size): Millicode is disabled when compiling
18781 ISR.
18782 (arc_return_address_register): Likewise.
18783 (arc_compute_function_type): Likewise.
18784 (arc_compute_frame_size): Likewise.
18785 (secondary_reload_info): Likewise.
18786 (arc_get_unalign): Likewise.
18787 (arc_can_use_return_insn): Declare.
18788 * config/arc/arc.c (AUX_LP_START): Define
18789 (AUX_LP_END): Likewise.
18790 (arc_frame_info): Update gmask member to 64-bit datum.
18791 (GMASK_LEN): Update.
18792 (arc_compute_function_type): Make it static, move it forward.
18793 (arc_must_save_register): Update, consider the extra regs.
18794 (arc_compute_millicode_save_restore_regs): Update to use the 64
18795 bit gmask.
18796 (arc_compute_frame_size): Likewise.
18797 (arc_enter_leave_p): Likewise.
18798 (arc_save_callee_saves): Likewise.
18799 (arc_restore_callee_saves): Likewise.
18800 (arc_save_callee_enter): Likewise.
18801 (arc_restore_callee_leave): Likewise.
18802 (arc_save_callee_milli): Likewise.
18803 (arc_restore_callee_milli): Likewise.
18804 (arc_expand_prologue): Add new interrupt handling.
18805 (arc_return_address_register): Make it static, move it forward.
18806 (arc_expand_epilogue): Add new interrupt handling.
18807 (arc_get_unalign): Delete.
18808 (arc_epilogue_uses): Make sure we do not remove the extra
18809 saved/restored registers when interrupt.
18810 (arc_can_use_return_insn): New function.
18811 (push_reg): Likewise.
18812 (pop_reg): Likewise.
18813 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18814 procedures.
18815 (arc_restore_callee_saves): Likewise, but restoring.
18816 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18817 (R33_REG): Likewise.
18818 (R34_REG): Likewise.
18819 (R35_REG): Likewise.
18820 (R36_REG): Likewise.
18821 (R37_REG): Likewise.
18822 (R38_REG): Likewise.
18823 (R39_REG): Likewise.
18824 (R45_REG): Likewise.
18825 (R46_REG): Likewise.
18826 (R47_REG): Likewise.
18827 (R48_REG): Likewise.
18828 (R49_REG): Likewise.
18829 (R50_REG): Likewise.
18830 (R51_REG): Likewise.
18831 (R52_REG): Likewise.
18832 (R53_REG): Likewise.
18833 (R54_REG): Likewise.
18834 (R55_REG): Likewise.
18835 (R56_REG): Likewise.
18836 (R58_REG): Likewise.
18837 (type): Add rtie attribute.
18838 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18839 (movsi_insn): Accept moves to lp_count.
18840 (rtie): Update pattern.
18841 (simple_return): Simplify it, don't use this pattern as a return
18842 from an interrupt.
18843 (arc600_rtie): New pattern.
18844 (p_return_i): Clean up.
18845 (return): Likewise.
18846 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18847 family CPUs.
18848 * config/arc/predicates.md (move_src_operand): Consider lp_count
18849 as a register.
18850
18851 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18852
18853 * config/s390/predicates.md (addv_const_operand): New predicate.
18854 * config/s390/s390-modes.def (CCO): New condition code mode.
18855 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18856 (s390_branch_condition_mask): Likewise.
18857 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18858 ("mulv<mode>4"): New expanders.
18859 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18860 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18861 pattern definitions.
18862
18863 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18864
18865 PR middle-end/91166
18866 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18867 (define_predicates): Add entry for uniform_vector_p.
18868 (vec_same_elem_p): New match pattern.
18869
18870 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18871
18872 PR bootstrap/87030
18873 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18874 * config/i386/darwin32-biarch.h .. to here.
18875 * config/i386/darwin64-biarch.h: Adjust comments.
18876 * config/rs6000/darwin32-biarch.h: Likewise.
18877 * config/rs6000/darwin64-biarch.h: Likewise.
18878 * config.gcc: Missed commit from r273746
18879 (*-*-darwin*): Don't include CPU t-darwin here.
18880 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18881 an error message if i686-darwin configuration is attempted for
18882 Darwin >= 18.
18883
18884 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18885
18886 PR bootstrap/87030
18887 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18888 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18889 an error message if i686-darwin configuration is attempted for
18890 Darwin >= 18.
18891 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18892 (powerpc-*-darwin*): Use biarch files where needed.
18893 (powerpc64-*-darwin*): Likewise.
18894 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18895 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18896 arch case.
18897 * config/i386/darwin32-biarch.h: New.
18898 * config/i386/darwin64.h: Rename.
18899 * config/i386/darwin64-biarch.h: To this.
18900 * config/i386/t-darwin: Rename.
18901 * config/i386/t-darwin32-biarch: To this.
18902 * config/i386/t-darwin64: Rename.
18903 * config/i386/t-darwin64-biarch: To this.
18904 * config/rs6000/darwin32-biarch.h: New.
18905 * config/rs6000/darwin64.h: Rename.
18906 * config/rs6000/darwin64-biarch.h: To this.
18907 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18908 arch case.
18909 * config/rs6000/t-darwin8: Rename.
18910 * config/rs6000/t-darwin32-biarch: To this.
18911 * config/rs6000/t-darwin64 Rename.
18912 * config/rs6000/t-darwin64-biarch: To this.
18913
18914 2019-07-23 Martin Sebor <msebor@redhat.com>
18915
18916 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18917
18918 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18919
18920 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18921 (rh): New alias for it.
18922
18923 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18924
18925 * gdbhooks.py: Pass replace=True to
18926 gdb.printing.register_pretty_printer.
18927
18928 2019-07-23 Richard Biener <rguenther@suse.de>
18929
18930 PR debug/91231
18931 * lto-streamer-in.c (input_function): Drop inline-entry markers
18932 that ended up with an unknown location block.
18933
18934 2019-07-23 Richard Biener <rguenther@suse.de>
18935
18936 PR tree-optimization/83518
18937 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18938 init from a constant even when partial defs are already recorded.
18939
18940 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18941
18942 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18943 * config/i386/znver1.md: Enable patterns for znver2 and add store
18944 variants which use extra AGU unit.
18945
18946 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18947
18948 * config/i386/i386-options.c (ix86_option_override_internal): Default
18949 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18950 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18951 for ZNVER2.
18952
18953 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18954
18955 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18956 (znver2_costs): Update 256 bit SSE costs and multiplication.
18957
18958 2019-07-23 Jan Beulich <jbeulich@suse.com>
18959
18960 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18961 Require only AVX512F.
18962 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18963 alternative expanding to vpternlog.
18964
18965 2019-07-23 Martin Liska <mliska@suse.cz>
18966
18967 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18968 to -flto in dwarf producer string.
18969
18970 2019-07-23 Richard Biener <rguenther@suse.de>
18971
18972 * tree-cfg.c (label_for_bb): Remove global var.
18973 (main_block_label): Take label_for_bb as argument.
18974 (cleanup_dead_labels_eh): Likewise, adjust.
18975 (cleanup_dead_labels): Adjust.
18976
18977 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18978
18979 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18980 Configurations): Add documentation for __builtin_mtfsf.
18981
18982 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18983
18984 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18985 * config/riscv/riscv.c (riscv_constant_alignment): Use
18986 riscv_align_data_type.
18987 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18988 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18989 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18990 * config/riscv/riscv.opt (malign-data): New.
18991 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18992
18993 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18994
18995 * cgraph.c (dump_graphviz): New function.
18996 * cgraph.h (dump_graphviz): New function.
18997 * symtab.c (dump_graphviz): New function.
18998
18999 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19000
19001 * config/aarch64/aarch64-simd.md
19002 (*aarch64_simd_sra<mode>): New.
19003 * config/aarch64/iterators.md
19004 (SHIFTRT): New iterator.
19005 (sra_op): New attribute.
19006
19007 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19008
19009 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19010 callee-saved regs R4->R10 in an interrupt function that calls another
19011 function.
19012
19013 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19014
19015 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19016 (_mm_blendv_epi8): New.
19017
19018 2019-07-22 Richard Biener <rguenther@suse.de>
19019
19020 PR tree-optimization/91221
19021 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19022 restrict partial-def handling of empty constructors and
19023 memset to refs with known offset.
19024
19025 2019-07-22 Jan Beulich <jbeulich@suse.com>
19026
19027 * config/i386/sse.md (ternlogsuffix): New.
19028 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19029 AVX512F is in use.
19030 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19031
19032 2019-07-22 Martin Liska <mliska@suse.cz>
19033
19034 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19035 comment.
19036 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19037
19038 2019-07-22 Martin Liska <mliska@suse.cz>
19039
19040 * lto-section-in.c (lto_get_section_data):
19041 Use new function get_compression.
19042 * lto-streamer-out.c (produce_lto_section): Use
19043 set_compression to encode compression algorithm.
19044 * lto-streamer.h (struct lto_section): Do not
19045 use bitfields in the format.
19046
19047 2019-07-22 Martin Liska <mliska@suse.cz>
19048
19049 PR driver/91172
19050 * opts-common.c (decode_cmdline_option): Decode
19051 argument of -Werror and check it for a wrong language.
19052 * opts-global.c (complain_wrong_lang): Remove such case.
19053
19054 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19055
19056 * config/arc/arc.c (prepare_move_operands): Always use an
19057 intermediate register when storing a TLS symbols.
19058
19059 2019-07-22 Stafford Horne <shorne@gmail.com>
19060
19061 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19062 force_reg.
19063
19064 2019-07-22 Stafford Horne <shorne@gmail.com>
19065
19066 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19067 and munordered-float validations.
19068 * config/or1k/constraints.md (d): New register constraint.
19069 * config/or1k/predicates.md (fp_comparison_operator): New.
19070 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19071 operands.
19072 (or1k_expand_compare): Normalize unordered comparisons.
19073 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19074 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19075 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19076 * config/or1k/or1k.md (type): Add fpu.
19077 (fpu): New instruction reservation.
19078 (F, f, fr, fi, FI, FOP, fop): New.
19079 (<fop><F:mode>3): New ALU instruction definition.
19080 (float<fi><F:mode>2): New conversion instruction definition.
19081 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19082 (fpcmpcc): New code iterator.
19083 (*sf_fp_insn): New instruction definition.
19084 (cstore<F:mode>4): New expand definition.
19085 (cbranch<F:mode>4): New expand definition.
19086 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19087 munordered-float): New options.
19088 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19089 munordered-float.
19090
19091 2019-07-22 Stafford Horne <shorne@gmail.com>
19092
19093 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19094 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19095 documenation to be more clear.
19096 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19097 more clear.
19098 * config/or1k/or1k.opt (mrori): New option.
19099 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19100 msfimm, mshftimm): Rewrite documentation to be more clear.
19101 * config/or1k/or1k.md (insn_support): Add ror and rori.
19102 (enabled): Add conditions for ror and rori.
19103 (rotrsi3): Replace condition for shftimm with ror and rori.
19104
19105 2019-07-22 Stafford Horne <shorne@gmail.com>
19106
19107 PR target/90363
19108 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19109 (extend<mode>si2): Update predicate.
19110 * config/or1k/predicates.md (volatile_mem_operand): New.
19111 (reg_or_mem_operand): New.
19112
19113 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19114
19115 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19116 * config/rs6000/rs6000-call.c: ... to here.
19117
19118 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19119
19120 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19121 memory.
19122
19123 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19124
19125 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19126
19127 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19128
19129 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19130
19131 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19132
19133 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19134 (any_memory_operand): New predicate.
19135 (reg_or_mem_operand): Use it.
19136
19137 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19138
19139 PR target/91204
19140 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19141
19142 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19143
19144 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19145 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19146
19147 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19148
19149 * tree.def (OMP_LOOP): New tree code.
19150 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19151 (enum omp_clause_bind_kind): New enum.
19152 (struct tree_omp_clause): Add subcode.bind_kind.
19153 * tree.h (OMP_LOOP_CHECK): Rename to ...
19154 (OMP_LOOPING_CHECK): ... this.
19155 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19156 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19157 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19158 (OMP_CLAUSE_BIND_KIND): Define.
19159 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19160 bind clause entries.
19161 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19162 * tree-pretty-print.c (dump_omp_clause): Likewise.
19163 (dump_generic_node): Handle OMP_LOOP.
19164 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19165 (in_omp_construct): New variable.
19166 (is_gimple_stmt): Handle OMP_LOOP.
19167 (gimplify_scan_omp_clauses): For lastprivate don't set
19168 check_non_private if code == OMP_LOOP. For reduction clause
19169 on OMP_LOOP combined with parallel or teams propagate as shared
19170 on the combined construct. Handle OMP_CLAUSE_BIND.
19171 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19172 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19173 for constructs from a loop construct to gimplify_scan_omp_clauses.
19174 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19175 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19176 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19177 to match the implicit ORT_TARGET construct around whole body.
19178 Temporarily clear in_omp_construct when processing body.
19179 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19180 etc. temporarily set in_omp_construct when processing body.
19181 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19182 * omp-low.c (struct omp_context): Add loop_p.
19183 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19184 in that the original var might be private.
19185 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19186 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19187 addition of loop construct.
19188 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19189
19190 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19191 lastprivate non-addressable iterator of a collapse(1) simd.
19192
19193 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19194
19195 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19196 as in rs6000.c.
19197
19198 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19199
19200 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19201 refer to default conditions. Warn for the 'y' spec which is ignored
19202 by current linkers.
19203
19204 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19205
19206 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19207 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19208 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19209 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19210 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19211 init_cumulative_args, rs6000_promote_function_mode,
19212 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19213 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19214 rs6000_function_arg_boundary, rs6000_parm_offset,
19215 rs6000_parm_start, rs6000_arg_size,
19216 rs6000_darwin64_record_arg_advance_flush,
19217 rs6000_darwin64_record_arg_advance_recurse,
19218 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19219 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19220 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19221 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19222 rs6000_finish_function_arg, rs6000_function_arg,
19223 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19224 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19225 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19226 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19227 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19228 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19229 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19230 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19231 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19232 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19233 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19234 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19235 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19236 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19237 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19238 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19239 get_element_number, altivec_expand_vec_set_builtin,
19240 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19241 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19242 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19243 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19244 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19245 rs6000_expand_builtin, rs6000_vector_type,
19246 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19247 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19248 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19249 to rs6000-call.c.
19250 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19251 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19252 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19253 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19254 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19255 init_cumulative_args, rs6000_promote_function_mode,
19256 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19257 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19258 rs6000_function_arg_boundary, rs6000_parm_offset,
19259 rs6000_parm_start, rs6000_arg_size,
19260 rs6000_darwin64_record_arg_advance_flush,
19261 rs6000_darwin64_record_arg_advance_recurse,
19262 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19263 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19264 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19265 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19266 rs6000_finish_function_arg, rs6000_function_arg,
19267 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19268 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19269 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19270 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19271 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19272 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19273 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19274 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19275 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19276 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19277 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19278 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19279 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19280 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19281 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19282 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19283 get_element_number, altivec_expand_vec_set_builtin,
19284 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19285 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19286 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19287 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19288 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19289 rs6000_expand_builtin, rs6000_vector_type,
19290 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19291 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19292 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19293 to here from rs6000.c.
19294 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19295 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19296 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19297 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19298 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19299 rs6000_return_in_memory, rs6000_return_in_msb,
19300 rs6000_pass_by_reference, setup_incoming_varargs,
19301 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19302 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19303 rs6000_function_arg_padding, rs6000_function_arg,
19304 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19305 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19306 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19307 rs6000_passes_long_double, rs6000_passes_vector,
19308 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19309 altivec_builtin_mask_for_load) Add declarations.
19310 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19311 * config/config.gcc: Add new source file rs6000-call.c to garbage
19312 collector and extra_objs.
19313
19314 2019-07-19 Jeff Law <law@redhat.com>
19315
19316 PR tree-optimization/86061
19317 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19318 strncpy. Drop some trivial dead code.
19319 (maybe_trim_memstar_call): Handle strncpy.
19320
19321 2019-07-19 Richard Biener <rguenther@suse.de>
19322
19323 PR tree-optimization/91211
19324 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19325 memset encoding size.
19326
19327 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19328
19329 PR target/91204
19330 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19331
19332 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19333
19334 PR ipa/91194
19335 * ipa-inline.c (recursive_inlining): Fix limits check.
19336
19337 2019-07-19 Richard Biener <rguenther@suse.de>
19338
19339 PR tree-optimization/91200
19340 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19341 no PHI nodes in middle-bb.
19342
19343 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19344
19345 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19346 to +sve-bitperm.
19347 * config/aarch64/aarch64-option-extensions.def: Likewise.
19348
19349 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19350
19351 PR middle-end/91190
19352 * function.c (insert_temp_slot_address): Store into the hash table
19353 a copy of address to avoid RTL sharing issues.
19354
19355 2019-07-19 Richard Biener <rguenther@suse.de>
19356
19357 PR tree-optimization/91207
19358 Revert
19359 2019-07-17 Richard Biener <rguenther@suse.de>
19360
19361 PR tree-optimization/91178
19362 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19363 loads with a gap larger than the vector size always use
19364 VMAT_STRIDED_SLP.
19365 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19366 avoid loading vectors that are only contained in the gap
19367 and thus are not needed.
19368
19369 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19370
19371 * config/i386/i386.md (*addqi_2_slp): Remove.
19372 (*<code>qi_2_slp): Ditto.
19373
19374 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19375
19376 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19377 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19378 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19379 Rename function from rs6000_prefixed_address.
19380 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19381 TARGET_HAS_TOC.
19382 (TARGET_TOC): Likewise.
19383 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19384 rs6000.h.
19385 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19386 TARGET_HAS_TOC.
19387 (TARGET_TOC): Likewise.
19388 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19389 rs6000.h.
19390 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19391 TARGET_HAS_TOC.
19392 (TARGET_TOC): Likewise.
19393 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19394 check to require -mcmodel=medium for pc-relative addressing.
19395 (create_TOC_reference): Add assertion for TARGET_TOC.
19396 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19397 TARGET_NO_TOC.
19398 (rs6000_emit_move): Likewise.
19399 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19400 to 'TOC_alias_set'.
19401 (get_TOC_alias_set): Likewise.
19402 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19403 TARGET_NO_TOC.
19404 (rs6000_can_eliminate): Likewise.
19405 (rs6000_prefixed_address_mode_p): Rename function from
19406 rs6000_prefixed_address.
19407 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19408 TARGET_HAS_TOC and not pc-relative.
19409 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19410 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19411 TARGET_HAS_TOC.
19412 (TARGET_TOC): Likewise.
19413 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19414 rs6000.h.
19415
19416 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19417
19418 PR target/91188
19419 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19420 for operand 0. Do not use (match_dup) to match operand 1 with
19421 operand 0. Add check in insn constraint that either input operand
19422 matches operand 0. Use SWI12 mode iterator to also handle
19423 HImode operands.
19424 (*and<mode>_1_slp): Ditto.
19425 (*<code>qi_1_slp): Ditto.
19426 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19427 Do not use (match_dup) to match operand 1 with operand 0. Add
19428 check in insn constraint that operand 1 matches operand 0.
19429 Use SWI12 mode iterator to also handle HImode operands.
19430 (*ashl<mode>3_1_slp): Ditto.
19431 (*<shift_insn><mode>3_1_slp): Ditto.
19432 (*<rotate_insn><mode>3_1_slp): Ditto.
19433
19434 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19435
19436 * config/arm/arm-builtins.c
19437 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19438 (arm_expand_unop_builtin): Likewise.
19439 * config/arm/crypto.md
19440 (crypto_sha1h): Convert from define_insn to define_expand.
19441 (crypto_<crypto_pattern>): Likewise.
19442 (crypto_sha1h_lb): New define_insn.
19443 (crypto_<crypto_pattern>_lb): Likewise.
19444
19445 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19446
19447 PR target/90317
19448 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19449 (vsha1cq_u32): Likewise.
19450 (vsha1pq_u32): Likewise.
19451 (vsha1mq_u32): Likewise.
19452 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19453 vec select.
19454 (crypto_sha1c): Correct vec select.
19455 (crypto_sha1m): Likewise.
19456 (crypto_sha1p): Likewise.
19457
19458 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19459
19460 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19461 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19462 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19463 (subdi_zesidi_zesidi): Likewise.
19464 (negdi2_compare, negdi2_insn): Likewise.
19465 (negdi_extensidi): Likewise.
19466 (negdi_zero_extendsidi): Likewise.
19467 (arm_cmpdi_insn): Likewise.
19468 (subsi3_carryin): Use arm_borrow_operation.
19469 (subsi3_carryin_const): Likewise.
19470 (subsi3_carryin_const0): Likewise.
19471 (subsi3_carryin_compare): Likewise.
19472 (subsi3_carryin_compare_const): Likewise.
19473 (subsi3_carryin_compare_const0): Likewise.
19474 (subsi3_carryin_shift): Likewise.
19475 (rsbsi3_carryin_shift): Likewise.
19476 (negsi2_carryin_compare): Likewise.
19477
19478 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19479
19480 PR tree-optimization/91137
19481 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19482 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19483 Init, use and fini the above new field.
19484 (determine_base_object_1): New function.
19485 (determine_base_object): Reimplement using walk_tree.
19486
19487 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19488
19489 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19490 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19491 CLEANUP_FORCE_FAST_DCE is set.
19492 * ifcvt.c (rest_of_handle_if_conversion): Pass
19493 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19494 if-conversion succeeded.
19495
19496 2019-07-18 Richard Biener <rguenther@suse.de>
19497
19498 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19499 branches to make code less indented.
19500
19501 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19502
19503 PR middle-end/81824
19504 * attribs.c (decls_mismatched_attributes): Simplify the logic
19505 that avoids duplicates and false positives.
19506
19507 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19508
19509 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19510 data into data section when generating PIC code.
19511 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19512 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19513 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19514 return 2 for SOM and 0 for other targets.
19515
19516 2019-07-17 Jeff Law <law@redhat.com>
19517
19518 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19519 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19520 avoid unexpected switch statement fallthru.
19521
19522 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19523
19524 * config/i386/i386.md (*add<dwi>3_doubleword):
19525 Remove redundant constraints.
19526 (*add<mode>_1): Ditto.
19527 (*addhi_1): Ditto.
19528 (*addqi_1): Ditto.
19529 (*addqi_1_slp): Ditto.
19530 (*add<mode>_2): Ditto.
19531 (*addv<mode>4): Ditto.
19532 (*sub<dwi>3_doubleword): Ditto.
19533 (*sub<mode>_1): Ditto.
19534 (*subqi_1_slp): Ditto.
19535 (*sub<mode>_2): Ditto.
19536 (*subv<mode>4): Ditto.
19537 (*sub<mode>_3): Ditto.
19538 (@add<mode>3_carry): Ditto.
19539 (@sub<mode>3_carry): Ditto.
19540 (*add<mode>3_cc_overflow_1): Ditto.
19541 (*add<mode>3_zext_cc_overflow_2): Ditto.
19542 (*anddi_1): Ditto.
19543 (*and<mode>_1): Ditto.
19544 (*andqi_1): Ditto.
19545 (*andqi_1_slp): Ditto.
19546 (*anddi_2): Ditto.
19547 (*andqi_2_maybe_si): Ditto.
19548 (*and<mode>_2): Ditto.
19549 (*andqi_2_slp): Ditto.
19550 (*<code><mode>_1): Ditto.
19551 (*<code>qi_1): Ditto.
19552 (*<code>qi_1_slp): Ditto.
19553 (*<code><mode>_2): Ditto.
19554 (*<code>qi_2_slp): Ditto.
19555
19556 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19557
19558 * alias.c (record_component_aliases): Do not simplify pointed-to
19559 types of ODR types.
19560
19561 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19562
19563 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19564 partial reg stall on alternative 2.
19565
19566 2019-07-17 Richard Biener <rguenther@suse.de>
19567
19568 PR tree-optimization/91178
19569 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19570 lower SSA names to avoid quadratic behavior in the common case.
19571 * tree-data-ref.c (split_constant_offset): Add limit argument
19572 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19573 (split_constant_offset_1): Add limit argument and use it to
19574 limit SSA def walking. Optimize the common plus/minus case.
19575
19576 2019-07-17 Richard Biener <rguenther@suse.de>
19577
19578 PR tree-optimization/91178
19579 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19580 loads with a gap larger than the vector size always use
19581 VMAT_STRIDED_SLP.
19582 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19583 avoid loading vectors that are only contained in the gap
19584 and thus are not needed.
19585
19586 2019-07-17 Richard Biener <rguenther@suse.de>
19587
19588 PR tree-optimization/91180
19589 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19590 computation for memset partial defs.
19591
19592 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19593
19594 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19595 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19596 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19597 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19598 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19599 * omp-grid.c (grid_process_grid_body,
19600 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19601 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19602 == GF_OMP_FOR_KIND_SIMD.
19603 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19604 check_omp_nesting_restrictions, scan_omp_1_stmt,
19605 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19606 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19607 omp_find_scan): Likewise.
19608 * omp-expand.c (expand_omp_for): Likewise.
19609 * omp-general.c (omp_extract_for_data): Likewise.
19610
19611 PR tree-optimization/91157
19612 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19613 a vector boolean with scalar mode.
19614 (expand_vector_condition): Handle first operand being a vector boolean
19615 with scalar mode.
19616 (expand_vector_operations_1): For comparisons, don't bail out early
19617 if the return type is vector boolean with scalar mode, but comparison
19618 operand type is not.
19619
19620 2019-07-17 Richard Biener <rguenther@suse.de>
19621
19622 PR tree-optimization/91181
19623 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19624 IFN_LOADs as calls.
19625
19626 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19627
19628 * config/i386/i386.md (*testdi_1): Match CCZmode for
19629 constants that might have the SImode sign bit set.
19630 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19631 Use correct constraints for pentium pairing.
19632 (*test<mode>_1): Ditto.
19633
19634 2019-07-16 Jeff Law <law@redhat.com>
19635
19636 PR rtl-optimization/91173
19637 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19638 SSA_NAME with a constant value, fold its value into the offset
19639 and clear the base before calling gen_addr_rtx.
19640
19641 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19642
19643 PR rtl-optimization/91164
19644 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19645 invalidate dominance info.
19646
19647 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19648
19649 * read-md.h (md_reader::record_potential_iterator_use): Add a
19650 file_location parameter.
19651 * read-rtl.c (attribute_use::loc): New field.
19652 (map_attr_string): Take a file_location parameter. Report cases
19653 in which attributes map to multiple distinct values.
19654 (apply_attribute_uses): Update call accordingly.
19655 (md_reader::handle_overloaded_name): Likewise.
19656 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19657 nonnull strings.
19658 (record_attribute_use): Take a file_location parameter.
19659 Initialize attribute_use::loc.
19660 (md_reader::record_potential_iterator_use): Take a file_location
19661 parameter. Update call to record_attribute_use.
19662 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19663 (rtx_reader::read_rtx_code): Likewise.
19664 (rtx_reader::read_rtx_operand): Likewise. Record a location
19665 for implicitly-expanded empty strings.
19666
19667 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19668
19669 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19670 Use file_location instead of separate fields.
19671 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19672 separate filename and line number.
19673 * read-md.c (ptr_loc): As above.
19674 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19675 (md_reader::fprint_md_ptr_loc): Likewise.
19676 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19677 instead of a separate filename and line number.
19678 (md_reader::read_string): Update call accordingly.
19679
19680 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19681
19682 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19683 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19684 leaving the choice between SFDF and P implicit.
19685 (*mov<mode>_update2): Likewise.
19686 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19687 rather than leaving the choice betweem IBM128 and GPR implicit.
19688 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19689 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19690 QHSI implicit.
19691 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19692 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19693 * config/rs6000/vsx.md
19694 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19695 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19696 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19697 and VSX_EXTRACT_I implicit.
19698
19699 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19700
19701 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19702 Explicitly use <MOVEP1:MODE> for the mode attribute.
19703
19704 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19705
19706 PR bootstrap/91176
19707 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19708
19709 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19710
19711 PR target/91050
19712 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19713 .machine directive.
19714
19715 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19716
19717 * config/i386/i386.md (@test<mode>_ccno_1):
19718 Rename from test<mode>_ccno_1.
19719 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19720 (*testqi_1_maybe_si): Remove modrm attribute.
19721 (*test<mode>_1): Ditto.
19722 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19723 gen_test_ccno_1 and gen_extend_insn.
19724
19725 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19726
19727 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19728 to 0.
19729
19730 2019-07-15 Richard Biener <rguenther@suse.de>
19731
19732 PR middle-end/91162
19733 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19734 node make sure to replace all uses with something valid.
19735
19736 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19737
19738 PR tree-optimization/88497
19739 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19740 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19741 function undistribute_bitref_for_vector.
19742 (undistribute_bitref_for_vector): New function.
19743 (cleanup_vinfo_map): Likewise.
19744 (sort_by_mach_mode): Likewise.
19745
19746 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19747
19748 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19749 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19750 and testdi_ccno_1 using SWI48 mode attribute.
19751 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19752 x86_64_szext_general_operand.
19753 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19754 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19755 instead of genera_operand mode attribute.
19756
19757 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19758
19759 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19760 fopen and fclose to their respective types.
19761 (DotFn.invoke): Ditto.
19762
19763 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19764
19765 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19766 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19767 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19768 (array_index_predicate): Remove.
19769 (analyze_function_body): Account cost for variable ofsetted array
19770 indexing.
19771 (estimate_node_size_and_time): Do not compute array index hint.
19772 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19773 (inline_read_section): Do not read array index hint.
19774 (ipa_fn_summary_write): Do not write array index hint.
19775 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19776 * ipa-cp.c (hint_time_bonus): Remove.
19777 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19778 (ipa_fnsummary): Remove array_index.
19779 * ipa-inline.c (want_inline_small_function_p): Do not use
19780 array_index.
19781 (edge_badness): Likewise.
19782 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19783
19784 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19785
19786 PR target/91148
19787 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19788 superfluous "builtin function" phrasing.
19789
19790 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19791
19792 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19793 Break out from ...
19794 (aliasing_component_refs_walk): Break out from ...
19795 (aliasing_component_refs_p): ... here.
19796
19797 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19798
19799 PR target/91148
19800 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19801 "builtin function" phrasing.
19802
19803 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19804
19805 PR target/90723
19806 * recog.h (temporary_volatile_ok): New class.
19807 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19808 volatile_ok temporarily to true using temporary_volatile_ok.
19809 * expr.c (emit_block_move_via_cpymem): Likewise.
19810 * optabs.c (maybe_legitimize_operand): Likewise.
19811
19812 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19813
19814 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19815 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19816 uses inside of order(concurrent) constructs.
19817 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19818 OMP_CLAUSE_ORDER is seen.
19819 * omp-low.c (struct omp_context): Add order_concurrent member.
19820 (scan_sharing_clauses): Set ctx->order_concurrent if
19821 OMP_CLAUSE_ORDER is seen.
19822 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19823 of simd order(concurrent). Diagnose constructs not allowed inside of
19824 for order(concurrent).
19825 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19826 complaining about static double setjmp (double); or class static
19827 methods or non-global namespace setjmps.
19828 (omp_runtime_api_call): New function.
19829 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19830 order(concurrent) loops.
19831
19832 2019-07-12 Martin Sebor <msebor@redhat.com>
19833
19834 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19835 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19836 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19837 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19838
19839 2019-07-12 Jan Hubicka <jh@suse.cz>
19840
19841 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19842 (indirect_refs_may_alias_p): ... here.
19843 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19844 mem refs in the access paths.
19845
19846 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19847
19848 PR tree-optimization/89430
19849 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19850 store elimination for local variable without address escape.
19851
19852 2019-07-12 Jeff Law <law@redhat.com>
19853
19854 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19855 for the ".far" section.
19856
19857 2019-07-12 Richard Biener <rguenther@suse.de>
19858
19859 PR tree-optimization/91145
19860 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19861 chain check.
19862
19863 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19864
19865 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19866 rather than this_state as the lowering context for the ELSE
19867 seq in a GIMPLE_EH_ELSE.
19868
19869 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19870
19871 * vector-builder.h (vector_builder::elt): Allow already-supplied
19872 elements to be read back before building is complete.
19873
19874 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19875
19876 PR rtl-optimization/91136
19877 * df-core.c (ACCESSING REFS): Fix typos in comment.
19878 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19879 the beginning of the block to the initial set of live registers.
19880
19881 2019-07-12 Richard Biener <rguenther@suse.de>
19882
19883 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19884 * fold-const.c (get_array_ctor_element_at_index): Add
19885 ctor_idx output parameter informing the caller where in
19886 the constructor the element was (not) found. Add early exit
19887 for when the ctor is sorted.
19888 * gimple-fold.c (fold_array_ctor_reference): Support constant
19889 folding across multiple array elements.
19890
19891 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19892
19893 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19894 doesn't have location, set the current location to the function's end.
19895
19896 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19897
19898 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19899 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19900 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19901 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19902 * config/aarch64/aarch64-simd.md
19903 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19904 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19905 * config/aarch64/aarch64-sve.md
19906 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19907 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19908
19909 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19910
19911 * doc/md.texi: Document that @ patterns can have different
19912 numbers of operands.
19913 * genemit.c (handle_overloaded_gen): Handle this case.
19914 * genopinit.c (handle_overloaded_gen): Likewise.
19915 * gensupport.c (replace_operands_with_dups): Iterate over
19916 the new rtx's format rather than the old one's.
19917
19918 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19919
19920 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19921 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19922 order clause entries.
19923 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19924 * tree-pretty-print.c (dump_omp_clause): Likewise.
19925 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19926 Likewise.
19927 * omp-low.c (scan_sharing_clauses): Likewise.
19928 * tree-nested.c (convert_nonlocal_omp_clauses,
19929 convert_local_omp_clauses): Likewise.
19930
19931 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19932
19933 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19934 fallthrough target of current basic block isn't the placed
19935 right next.
19936
19937 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19938
19939 PR target/90980
19940 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19941 (_mm512_storeu_epi64): Likewise.
19942 (_mm512_loadu_epi32): Likewise.
19943 (_mm512_storeu_epi32): Likewise.
19944 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19945 (_mm_storeu_epi64): Likewise.
19946 (_mm256_storeu_epi32): Likewise.
19947 (_mm_storeu_epi32): Likewise.
19948
19949 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19950
19951 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19952
19953 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19954
19955 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19956 Handle Modula-2.
19957
19958 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19959
19960 PR target/91124
19961 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19962 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19963 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19964 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19965 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19966 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19967 define_insns.
19968 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19969 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19970 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19971 define_insns.
19972 (sse2_cvttpd2dq<mask_name>): Change into ...
19973 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19974 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19975 (*sse2_cvtpd2dq<mask_name>): Change into ...
19976 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19977 Add "C" constraint to const0_operand.
19978 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19979 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19980 changes.
19981
19982 PR target/91124
19983 * config/i386/i386-builtin-types.def
19984 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19985 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19986 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19987 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19988 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19989 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19990 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19991 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19992 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19993 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19994 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19995 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19996 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19997 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19998 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19999 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20000 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20001 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20002 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20003 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20004 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20005 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20006 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20007 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20008 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20009 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20010 __builtin_ia32_vpdpbusd_v4si_maskz,
20011 __builtin_ia32_vpdpbusds_v16si_mask,
20012 __builtin_ia32_vpdpbusds_v16si_maskz,
20013 __builtin_ia32_vpdpbusds_v8si_mask,
20014 __builtin_ia32_vpdpbusds_v8si_maskz,
20015 __builtin_ia32_vpdpbusds_v4si_mask,
20016 __builtin_ia32_vpdpbusds_v4si_maskz,
20017 __builtin_ia32_vpdpwssd_v16si_mask,
20018 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20019 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20020 __builtin_ia32_vpdpwssd_v4si_maskz,
20021 __builtin_ia32_vpdpwssds_v16si_mask,
20022 __builtin_ia32_vpdpwssds_v16si_maskz,
20023 __builtin_ia32_vpdpwssds_v8si_mask,
20024 __builtin_ia32_vpdpwssds_v8si_maskz,
20025 __builtin_ia32_vpdpwssds_v4si_mask,
20026 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20027 suffixed types rather than *_INT.
20028 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20029 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20030 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20031 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20032 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20033 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20034
20035 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20036
20037 * tree-vrp.c (intersect_ranges): If we know the intersection is
20038 empty, there is no need to conservatively add anything else to
20039 the set.
20040
20041 2019-07-11 Richard Biener <rguenther@suse.de>
20042
20043 PR middle-end/91131
20044 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20045 when the object is volatile and we have not cleared it even though
20046 there are no nonzero elements.
20047
20048 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20049
20050 * config/rs6000/predicates.md (cint34_operand): Update
20051 SIGNED_34BIT_OFFSET_P call.
20052 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20053 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20054 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20055 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20056 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20057 argument.
20058 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20059 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20060 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20061 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20062 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20063
20064 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20065
20066 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20067 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20068 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20069 (DEF_MIN_OSX_VERSION): New.
20070
20071 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20072
20073 * fold-const.c (fold_relational_const): Fix folding of
20074 vector-to-scalar NE_EXPRs.
20075 (test_vector_folding): Add more tests.
20076
20077 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20078
20079 PR target/91060
20080 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20081 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20082 (vec_setv2di_internal): Reexpress as...
20083 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20084 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20085 rather than gen_neon_vset_lane<mode>.
20086
20087 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20088
20089 PR target/91102
20090 * lra-constraints.c (process_alt_operands): Don't match user
20091 defined regs only if they are early clobbers.
20092
20093 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20094
20095 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20096
20097 2019-07-10 Richard Biener <rguenther@suse.de>
20098
20099 PR tree-optimization/91126
20100 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20101 native encoding offset for BYTES_BIG_ENDIAN.
20102 (vn_reference_lookup_3): Likewise.
20103
20104 2019-07-10 Richard Biener <rguenther@suse.de>
20105
20106 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20107 LHS whenever possible.
20108
20109 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20110
20111 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20112 from ...; work also on duplicated types.
20113 (nonoverlapping_component_refs_since_match): ... here
20114 (ncr_type_uid): Break out from ...
20115 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20116 available.
20117 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20118 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20119
20120 2019-07-09 Martin Sebor <msebor@redhat.com>
20121
20122 PR tree-optimization/90989
20123 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20124 optimization to just single character stores.
20125
20126 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20127
20128 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20129 Swap operands only once.
20130
20131 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20132
20133 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20134 for both call instructions.
20135
20136 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20137
20138 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20139 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20140
20141 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20142
20143 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20144 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20145 function from rs6000-logue.c back to rs6000.c.
20146 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20147
20148 2019-07-09 Martin Sebor <msebor@redhat.com>
20149
20150 PR c++/61339
20151 * auto-profile.c: Change class-key of PODs to struct and others
20152 to class.
20153 * basic-block.h: Same.
20154 * bitmap.c (bitmap_alloc): Same.
20155 * bitmap.h: Same.
20156 * builtins.c (expand_builtin_prefetch): Same.
20157 (expand_builtin_interclass_mathfn): Same.
20158 (expand_builtin_strlen): Same.
20159 (expand_builtin_mempcpy_args): Same.
20160 (expand_cmpstr): Same.
20161 (expand_builtin___clear_cache): Same.
20162 (expand_ifn_atomic_bit_test_and): Same.
20163 (expand_builtin_thread_pointer): Same.
20164 (expand_builtin_set_thread_pointer): Same.
20165 * caller-save.c (setup_save_areas): Same.
20166 (replace_reg_with_saved_mem): Same.
20167 (insert_restore): Same.
20168 (insert_save): Same.
20169 (add_used_regs): Same.
20170 * cfg.c (get_bb_copy): Same.
20171 (set_loop_copy): Same.
20172 * cfg.h: Same.
20173 * cfganal.h: Same.
20174 * cfgexpand.c (alloc_stack_frame_space): Same.
20175 (add_stack_var): Same.
20176 (add_stack_var_conflict): Same.
20177 (add_scope_conflicts_1): Same.
20178 (update_alias_info_with_stack_vars): Same.
20179 (expand_used_vars): Same.
20180 * cfghooks.c (redirect_edge_and_branch_force): Same.
20181 (delete_basic_block): Same.
20182 (split_edge): Same.
20183 (make_forwarder_block): Same.
20184 (force_nonfallthru): Same.
20185 (duplicate_block): Same.
20186 (lv_flush_pending_stmts): Same.
20187 * cfghooks.h: Same.
20188 * cfgloop.c (flow_loops_cfg_dump): Same.
20189 (flow_loop_nested_p): Same.
20190 (superloop_at_depth): Same.
20191 (get_loop_latch_edges): Same.
20192 (flow_loop_dump): Same.
20193 (flow_loops_dump): Same.
20194 (flow_loops_free): Same.
20195 (flow_loop_nodes_find): Same.
20196 (establish_preds): Same.
20197 (flow_loop_tree_node_add): Same.
20198 (flow_loop_tree_node_remove): Same.
20199 (flow_loops_find): Same.
20200 (find_subloop_latch_edge_by_profile): Same.
20201 (find_subloop_latch_edge_by_ivs): Same.
20202 (mfb_redirect_edges_in_set): Same.
20203 (form_subloop): Same.
20204 (merge_latch_edges): Same.
20205 (disambiguate_multiple_latches): Same.
20206 (disambiguate_loops_with_multiple_latches): Same.
20207 (flow_bb_inside_loop_p): Same.
20208 (glb_enum_p): Same.
20209 (get_loop_body_with_size): Same.
20210 (get_loop_body): Same.
20211 (fill_sons_in_loop): Same.
20212 (get_loop_body_in_dom_order): Same.
20213 (get_loop_body_in_custom_order): Same.
20214 (release_recorded_exits): Same.
20215 (get_loop_exit_edges): Same.
20216 (num_loop_branches): Same.
20217 (remove_bb_from_loops): Same.
20218 (find_common_loop): Same.
20219 (delete_loop): Same.
20220 (cancel_loop): Same.
20221 (verify_loop_structure): Same.
20222 (loop_preheader_edge): Same.
20223 (loop_exit_edge_p): Same.
20224 (single_exit): Same.
20225 (loop_exits_to_bb_p): Same.
20226 (loop_exits_from_bb_p): Same.
20227 (get_loop_location): Same.
20228 (record_niter_bound): Same.
20229 (get_estimated_loop_iterations_int): Same.
20230 (max_stmt_executions_int): Same.
20231 (likely_max_stmt_executions_int): Same.
20232 (get_estimated_loop_iterations): Same.
20233 (get_max_loop_iterations): Same.
20234 (get_max_loop_iterations_int): Same.
20235 (get_likely_max_loop_iterations): Same.
20236 * cfgloop.h (simple_loop_desc): Same.
20237 (get_loop): Same.
20238 (loop_depth): Same.
20239 (loop_outer): Same.
20240 (loop_iterator::next): Same.
20241 (loop_outermost): Same.
20242 * cfgloopanal.c (mark_irreducible_loops): Same.
20243 (num_loop_insns): Same.
20244 (average_num_loop_insns): Same.
20245 (expected_loop_iterations_unbounded): Same.
20246 (expected_loop_iterations): Same.
20247 (mark_loop_exit_edges): Same.
20248 (single_likely_exit): Same.
20249 * cfgloopmanip.c (fix_bb_placement): Same.
20250 (fix_bb_placements): Same.
20251 (remove_path): Same.
20252 (place_new_loop): Same.
20253 (add_loop): Same.
20254 (scale_loop_frequencies): Same.
20255 (scale_loop_profile): Same.
20256 (create_empty_if_region_on_edge): Same.
20257 (create_empty_loop_on_edge): Same.
20258 (loopify): Same.
20259 (unloop): Same.
20260 (fix_loop_placements): Same.
20261 (copy_loop_info): Same.
20262 (duplicate_loop): Same.
20263 (duplicate_subloops): Same.
20264 (loop_redirect_edge): Same.
20265 (can_duplicate_loop_p): Same.
20266 (duplicate_loop_to_header_edge): Same.
20267 (mfb_keep_just): Same.
20268 (has_preds_from_loop): Same.
20269 (create_preheader): Same.
20270 (create_preheaders): Same.
20271 (lv_adjust_loop_entry_edge): Same.
20272 (loop_version): Same.
20273 * cfgloopmanip.h: Same.
20274 * cgraph.h: Same.
20275 * cgraphbuild.c: Same.
20276 * combine.c (make_extraction): Same.
20277 * config/i386/i386-features.c: Same.
20278 * config/i386/i386-features.h: Same.
20279 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20280 (ix86_emit_outlined_ms2sysv_restore): Same.
20281 (ix86_noce_conversion_profitable_p): Same.
20282 (ix86_init_cost): Same.
20283 (ix86_simd_clone_usable): Same.
20284 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20285 Wstruct-not-pod.
20286 * coretypes.h: Same.
20287 * data-streamer-in.c (string_for_index): Change class-key of PODs
20288 to struct and others to class.
20289 (streamer_read_indexed_string): Same.
20290 (streamer_read_string): Same.
20291 (bp_unpack_indexed_string): Same.
20292 (bp_unpack_string): Same.
20293 (streamer_read_uhwi): Same.
20294 (streamer_read_hwi): Same.
20295 (streamer_read_gcov_count): Same.
20296 (streamer_read_wide_int): Same.
20297 * data-streamer.h (streamer_write_bitpack): Same.
20298 (bp_unpack_value): Same.
20299 (streamer_write_char_stream): Same.
20300 (streamer_write_hwi_in_range): Same.
20301 (streamer_write_record_start): Same.
20302 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20303 (add_cross_iteration_register_deps): Same.
20304 (build_intra_loop_deps): Same.
20305 * df-core.c (df_analyze): Same.
20306 (loop_post_order_compute): Same.
20307 (loop_inverted_post_order_compute): Same.
20308 * df-problems.c (df_rd_alloc): Same.
20309 (df_rd_simulate_one_insn): Same.
20310 (df_rd_local_compute): Same.
20311 (df_rd_init_solution): Same.
20312 (df_rd_confluence_n): Same.
20313 (df_rd_transfer_function): Same.
20314 (df_rd_free): Same.
20315 (df_rd_dump_defs_set): Same.
20316 (df_rd_top_dump): Same.
20317 (df_lr_alloc): Same.
20318 (df_lr_reset): Same.
20319 (df_lr_local_compute): Same.
20320 (df_lr_init): Same.
20321 (df_lr_confluence_n): Same.
20322 (df_lr_free): Same.
20323 (df_lr_top_dump): Same.
20324 (df_lr_verify_transfer_functions): Same.
20325 (df_live_alloc): Same.
20326 (df_live_reset): Same.
20327 (df_live_init): Same.
20328 (df_live_confluence_n): Same.
20329 (df_live_finalize): Same.
20330 (df_live_free): Same.
20331 (df_live_top_dump): Same.
20332 (df_live_verify_transfer_functions): Same.
20333 (df_mir_alloc): Same.
20334 (df_mir_reset): Same.
20335 (df_mir_init): Same.
20336 (df_mir_confluence_n): Same.
20337 (df_mir_free): Same.
20338 (df_mir_top_dump): Same.
20339 (df_word_lr_alloc): Same.
20340 (df_word_lr_reset): Same.
20341 (df_word_lr_init): Same.
20342 (df_word_lr_confluence_n): Same.
20343 (df_word_lr_free): Same.
20344 (df_word_lr_top_dump): Same.
20345 (df_md_alloc): Same.
20346 (df_md_simulate_one_insn): Same.
20347 (df_md_reset): Same.
20348 (df_md_init): Same.
20349 (df_md_free): Same.
20350 (df_md_top_dump): Same.
20351 * df-scan.c (df_insn_delete): Same.
20352 (df_insn_rescan): Same.
20353 (df_notes_rescan): Same.
20354 (df_sort_and_compress_mws): Same.
20355 (df_install_mws): Same.
20356 (df_refs_add_to_chains): Same.
20357 (df_ref_create_structure): Same.
20358 (df_ref_record): Same.
20359 (df_def_record_1): Same.
20360 (df_find_hard_reg_defs): Same.
20361 (df_uses_record): Same.
20362 (df_get_conditional_uses): Same.
20363 (df_get_call_refs): Same.
20364 (df_recompute_luids): Same.
20365 (df_get_entry_block_def_set): Same.
20366 (df_entry_block_defs_collect): Same.
20367 (df_get_exit_block_use_set): Same.
20368 (df_exit_block_uses_collect): Same.
20369 (df_mws_verify): Same.
20370 (df_bb_verify): Same.
20371 * df.h (df_scan_get_bb_info): Same.
20372 * doc/tm.texi: Same.
20373 * dse.c (record_store): Same.
20374 * dumpfile.h: Same.
20375 * emit-rtl.c (const_fixed_hasher::equal): Same.
20376 (set_mem_attributes_minus_bitpos): Same.
20377 (change_address): Same.
20378 (adjust_address_1): Same.
20379 (offset_address): Same.
20380 * emit-rtl.h: Same.
20381 * except.c (dw2_build_landing_pads): Same.
20382 (sjlj_emit_dispatch_table): Same.
20383 * explow.c (allocate_dynamic_stack_space): Same.
20384 (emit_stack_probe): Same.
20385 (probe_stack_range): Same.
20386 * expmed.c (store_bit_field_using_insv): Same.
20387 (store_bit_field_1): Same.
20388 (store_integral_bit_field): Same.
20389 (extract_bit_field_using_extv): Same.
20390 (extract_bit_field_1): Same.
20391 (emit_cstore): Same.
20392 * expr.c (emit_block_move_via_cpymem): Same.
20393 (expand_cmpstrn_or_cmpmem): Same.
20394 (set_storage_via_setmem): Same.
20395 (emit_single_push_insn_1): Same.
20396 (expand_assignment): Same.
20397 (store_constructor): Same.
20398 (expand_expr_real_2): Same.
20399 (expand_expr_real_1): Same.
20400 (try_casesi): Same.
20401 * flags.h: Same.
20402 * function.c (try_fit_stack_local): Same.
20403 (assign_stack_local_1): Same.
20404 (assign_stack_local): Same.
20405 (cut_slot_from_list): Same.
20406 (insert_slot_to_list): Same.
20407 (max_slot_level): Same.
20408 (move_slot_to_level): Same.
20409 (temp_address_hasher::equal): Same.
20410 (remove_unused_temp_slot_addresses): Same.
20411 (assign_temp): Same.
20412 (combine_temp_slots): Same.
20413 (update_temp_slot_address): Same.
20414 (preserve_temp_slots): Same.
20415 * function.h: Same.
20416 * fwprop.c: Same.
20417 * gcc-rich-location.h: Same.
20418 * gcov.c: Same.
20419 * genattrtab.c (check_attr_test): Same.
20420 (check_attr_value): Same.
20421 (convert_set_attr_alternative): Same.
20422 (convert_set_attr): Same.
20423 (check_defs): Same.
20424 (copy_boolean): Same.
20425 (get_attr_value): Same.
20426 (expand_delays): Same.
20427 (make_length_attrs): Same.
20428 (min_fn): Same.
20429 (make_alternative_compare): Same.
20430 (simplify_test_exp): Same.
20431 (tests_attr_p): Same.
20432 (get_attr_order): Same.
20433 (clear_struct_flag): Same.
20434 (gen_attr): Same.
20435 (compares_alternatives_p): Same.
20436 (gen_insn): Same.
20437 (gen_delay): Same.
20438 (find_attrs_to_cache): Same.
20439 (write_test_expr): Same.
20440 (walk_attr_value): Same.
20441 (write_attr_get): Same.
20442 (eliminate_known_true): Same.
20443 (write_insn_cases): Same.
20444 (write_attr_case): Same.
20445 (write_attr_valueq): Same.
20446 (write_attr_value): Same.
20447 (write_dummy_eligible_delay): Same.
20448 (next_comma_elt): Same.
20449 (find_attr): Same.
20450 (make_internal_attr): Same.
20451 (copy_rtx_unchanging): Same.
20452 (gen_insn_reserv): Same.
20453 (check_tune_attr): Same.
20454 (make_automaton_attrs): Same.
20455 (handle_arg): Same.
20456 * genextract.c (gen_insn): Same.
20457 (VEC_char_to_string): Same.
20458 * genmatch.c (print_operand): Same.
20459 (lower): Same.
20460 (parser::parse_operation): Same.
20461 (parser::parse_capture): Same.
20462 (parser::parse_c_expr): Same.
20463 (parser::parse_simplify): Same.
20464 (main): Same.
20465 * genoutput.c (output_operand_data): Same.
20466 (output_get_insn_name): Same.
20467 (compare_operands): Same.
20468 (place_operands): Same.
20469 (process_template): Same.
20470 (validate_insn_alternatives): Same.
20471 (validate_insn_operands): Same.
20472 (gen_expand): Same.
20473 (note_constraint): Same.
20474 * genpreds.c (write_one_predicate_function): Same.
20475 (add_constraint): Same.
20476 (process_define_register_constraint): Same.
20477 (write_lookup_constraint_1): Same.
20478 (write_lookup_constraint_array): Same.
20479 (write_insn_constraint_len): Same.
20480 (write_reg_class_for_constraint_1): Same.
20481 (write_constraint_satisfied_p_array): Same.
20482 * genrecog.c (optimize_subroutine_group): Same.
20483 * gensupport.c (process_define_predicate): Same.
20484 (queue_pattern): Same.
20485 (remove_from_queue): Same.
20486 (process_rtx): Same.
20487 (is_predicable): Same.
20488 (change_subst_attribute): Same.
20489 (subst_pattern_match): Same.
20490 (alter_constraints): Same.
20491 (alter_attrs_for_insn): Same.
20492 (shift_output_template): Same.
20493 (alter_output_for_subst_insn): Same.
20494 (process_one_cond_exec): Same.
20495 (subst_dup): Same.
20496 (process_define_cond_exec): Same.
20497 (mnemonic_htab_callback): Same.
20498 (gen_mnemonic_attr): Same.
20499 (read_md_rtx): Same.
20500 * ggc-page.c: Same.
20501 * gimple-loop-interchange.cc (dump_reduction): Same.
20502 (dump_induction): Same.
20503 (loop_cand::~loop_cand): Same.
20504 (free_data_refs_with_aux): Same.
20505 (tree_loop_interchange::interchange_loops): Same.
20506 (tree_loop_interchange::map_inductions_to_loop): Same.
20507 (tree_loop_interchange::move_code_to_inner_loop): Same.
20508 (compute_access_stride): Same.
20509 (compute_access_strides): Same.
20510 (proper_loop_form_for_interchange): Same.
20511 (tree_loop_interchange_compute_ddrs): Same.
20512 (prune_datarefs_not_in_loop): Same.
20513 (prepare_data_references): Same.
20514 (pass_linterchange::execute): Same.
20515 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20516 (unroll_jam_possible_p): Same.
20517 (fuse_loops): Same.
20518 (adjust_unroll_factor): Same.
20519 (tree_loop_unroll_and_jam): Same.
20520 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20521 (loop_versioning::expensive_stmt_p): Same.
20522 (loop_versioning::version_for_unity): Same.
20523 (loop_versioning::dump_inner_likelihood): Same.
20524 (loop_versioning::find_per_loop_multiplication): Same.
20525 (loop_versioning::analyze_term_using_scevs): Same.
20526 (loop_versioning::record_address_fragment): Same.
20527 (loop_versioning::analyze_expr): Same.
20528 (loop_versioning::analyze_blocks): Same.
20529 (loop_versioning::prune_conditions): Same.
20530 (loop_versioning::merge_loop_info): Same.
20531 (loop_versioning::add_loop_to_queue): Same.
20532 (loop_versioning::decide_whether_loop_is_versionable): Same.
20533 (loop_versioning::make_versioning_decisions): Same.
20534 (loop_versioning::implement_versioning_decisions): Same.
20535 * gimple-ssa-evrp-analyze.c
20536 (evrp_range_analyzer::record_ranges_from_phis): Same.
20537 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20538 (count_multiple_uses): Same.
20539 (split_group): Same.
20540 (imm_store_chain_info::output_merged_store): Same.
20541 (pass_store_merging::process_store): Same.
20542 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20543 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20544 (is_max): Same.
20545 (alloca_call_type): Same.
20546 (pass_walloca::execute): Same.
20547 * gimple-streamer-in.c (input_phi): Same.
20548 (input_gimple_stmt): Same.
20549 * gimple-streamer.h: Same.
20550 * godump.c (go_force_record_alignment): Same.
20551 (go_format_type): Same.
20552 (go_output_type): Same.
20553 (go_output_fndecl): Same.
20554 (go_output_typedef): Same.
20555 (keyword_hash_init): Same.
20556 (find_dummy_types): Same.
20557 * graph.c (draw_cfg_nodes_no_loops): Same.
20558 (draw_cfg_nodes_for_loop): Same.
20559 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20560 * hsa-brig.c: Same.
20561 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20562 * hsa-dump.c (dump_hsa_cfun): Same.
20563 * hsa-gen.c (gen_function_def_parameters): Same.
20564 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20565 * input.c (dump_line_table_statistics): Same.
20566 (test_lexer): Same.
20567 * input.h: Same.
20568 * internal-fn.c (get_multi_vector_move): Same.
20569 (expand_load_lanes_optab_fn): Same.
20570 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20571 (expand_GOMP_SIMT_EXIT): Same.
20572 (expand_GOMP_SIMT_LAST_LANE): Same.
20573 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20574 (expand_GOMP_SIMT_VOTE_ANY): Same.
20575 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20576 (expand_GOMP_SIMT_XCHG_IDX): Same.
20577 (expand_addsub_overflow): Same.
20578 (expand_neg_overflow): Same.
20579 (expand_mul_overflow): Same.
20580 (expand_call_mem_ref): Same.
20581 (expand_mask_load_optab_fn): Same.
20582 (expand_scatter_store_optab_fn): Same.
20583 (expand_gather_load_optab_fn): Same.
20584 * ipa-cp.c (ipa_get_parm_lattices): Same.
20585 (print_all_lattices): Same.
20586 (ignore_edge_p): Same.
20587 (build_toporder_info): Same.
20588 (free_toporder_info): Same.
20589 (push_node_to_stack): Same.
20590 (ipcp_lattice<valtype>::set_contains_variable): Same.
20591 (set_agg_lats_to_bottom): Same.
20592 (ipcp_bits_lattice::meet_with): Same.
20593 (set_single_call_flag): Same.
20594 (initialize_node_lattices): Same.
20595 (ipa_get_jf_ancestor_result): Same.
20596 (ipcp_verify_propagated_values): Same.
20597 (propagate_scalar_across_jump_function): Same.
20598 (propagate_context_across_jump_function): Same.
20599 (propagate_bits_across_jump_function): Same.
20600 (ipa_vr_operation_and_type_effects): Same.
20601 (propagate_vr_across_jump_function): Same.
20602 (set_check_aggs_by_ref): Same.
20603 (set_chain_of_aglats_contains_variable): Same.
20604 (merge_aggregate_lattices): Same.
20605 (agg_pass_through_permissible_p): Same.
20606 (propagate_aggs_across_jump_function): Same.
20607 (call_passes_through_thunk_p): Same.
20608 (propagate_constants_across_call): Same.
20609 (devirtualization_time_bonus): Same.
20610 (good_cloning_opportunity_p): Same.
20611 (context_independent_aggregate_values): Same.
20612 (gather_context_independent_values): Same.
20613 (perform_estimation_of_a_value): Same.
20614 (estimate_local_effects): Same.
20615 (value_topo_info<valtype>::add_val): Same.
20616 (add_all_node_vals_to_toposort): Same.
20617 (value_topo_info<valtype>::propagate_effects): Same.
20618 (ipcp_propagate_stage): Same.
20619 (ipcp_discover_new_direct_edges): Same.
20620 (same_node_or_its_all_contexts_clone_p): Same.
20621 (cgraph_edge_brings_value_p): Same.
20622 (gather_edges_for_value): Same.
20623 (create_specialized_node): Same.
20624 (find_more_scalar_values_for_callers_subset): Same.
20625 (find_more_contexts_for_caller_subset): Same.
20626 (copy_plats_to_inter): Same.
20627 (intersect_aggregates_with_edge): Same.
20628 (find_aggregate_values_for_callers_subset): Same.
20629 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20630 (decide_about_value): Same.
20631 (decide_whether_version_node): Same.
20632 (spread_undeadness): Same.
20633 (identify_dead_nodes): Same.
20634 (ipcp_store_vr_results): Same.
20635 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20636 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20637 (redirect_to_unreachable): Same.
20638 (edge_set_predicate): Same.
20639 (evaluate_conditions_for_known_args): Same.
20640 (evaluate_properties_for_edge): Same.
20641 (ipa_fn_summary_t::duplicate): Same.
20642 (ipa_call_summary_t::duplicate): Same.
20643 (dump_ipa_call_summary): Same.
20644 (ipa_dump_fn_summary): Same.
20645 (eliminated_by_inlining_prob): Same.
20646 (set_cond_stmt_execution_predicate): Same.
20647 (set_switch_stmt_execution_predicate): Same.
20648 (compute_bb_predicates): Same.
20649 (will_be_nonconstant_expr_predicate): Same.
20650 (phi_result_unknown_predicate): Same.
20651 (analyze_function_body): Same.
20652 (compute_fn_summary): Same.
20653 (estimate_edge_devirt_benefit): Same.
20654 (estimate_edge_size_and_time): Same.
20655 (estimate_calls_size_and_time): Same.
20656 (estimate_node_size_and_time): Same.
20657 (remap_edge_change_prob): Same.
20658 (remap_edge_summaries): Same.
20659 (ipa_merge_fn_summary_after_inlining): Same.
20660 (ipa_fn_summary_generate): Same.
20661 (inline_read_section): Same.
20662 (ipa_fn_summary_read): Same.
20663 (ipa_fn_summary_write): Same.
20664 * ipa-fnsummary.h: Same.
20665 * ipa-hsa.c (ipa_hsa_read_section): Same.
20666 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20667 * ipa-icf.c (sem_function::param_used_p): Same.
20668 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20669 * ipa-inline.c (edge_badness): Same.
20670 (inline_small_functions): Same.
20671 * ipa-polymorphic-call.c
20672 (ipa_polymorphic_call_context::stream_out): Same.
20673 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20674 (predicate::remap_after_inlining): Same.
20675 (predicate::stream_out): Same.
20676 * ipa-predicate.h: Same.
20677 * ipa-profile.c (ipa_profile_read_summary): Same.
20678 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20679 (count_formal_params): Same.
20680 (ipa_dump_param): Same.
20681 (ipa_alloc_node_params): Same.
20682 (ipa_print_node_jump_functions_for_edge): Same.
20683 (ipa_print_node_jump_functions): Same.
20684 (ipa_load_from_parm_agg): Same.
20685 (get_ancestor_addr_info): Same.
20686 (ipa_compute_jump_functions_for_edge): Same.
20687 (ipa_analyze_virtual_call_uses): Same.
20688 (ipa_analyze_stmt_uses): Same.
20689 (ipa_analyze_params_uses_in_bb): Same.
20690 (update_jump_functions_after_inlining): Same.
20691 (try_decrement_rdesc_refcount): Same.
20692 (ipa_impossible_devirt_target): Same.
20693 (update_indirect_edges_after_inlining): Same.
20694 (combine_controlled_uses_counters): Same.
20695 (ipa_edge_args_sum_t::duplicate): Same.
20696 (ipa_write_jump_function): Same.
20697 (ipa_write_indirect_edge_info): Same.
20698 (ipa_write_node_info): Same.
20699 (ipa_read_edge_info): Same.
20700 (ipa_prop_read_section): Same.
20701 (read_replacements_section): Same.
20702 * ipa-prop.h (ipa_get_param_count): Same.
20703 (ipa_get_param): Same.
20704 (ipa_get_type): Same.
20705 (ipa_get_param_move_cost): Same.
20706 (ipa_set_param_used): Same.
20707 (ipa_get_controlled_uses): Same.
20708 (ipa_set_controlled_uses): Same.
20709 (ipa_get_cs_argument_count): Same.
20710 * ipa-pure-const.c (analyze_function): Same.
20711 (pure_const_read_summary): Same.
20712 * ipa-ref.h: Same.
20713 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20714 * ipa-split.c (test_nonssa_use): Same.
20715 (dump_split_point): Same.
20716 (dominated_by_forbidden): Same.
20717 (split_part_set_ssa_name_p): Same.
20718 (find_split_points): Same.
20719 * ira-build.c (finish_loop_tree_nodes): Same.
20720 (low_pressure_loop_node_p): Same.
20721 * ira-color.c (ira_reuse_stack_slot): Same.
20722 * ira-int.h: Same.
20723 * ira.c (setup_reg_equiv): Same.
20724 (print_insn_chain): Same.
20725 (ira): Same.
20726 * loop-doloop.c (doloop_condition_get): Same.
20727 (add_test): Same.
20728 (record_reg_sets): Same.
20729 (doloop_optimize): Same.
20730 * loop-init.c (loop_optimizer_init): Same.
20731 (fix_loop_structure): Same.
20732 * loop-invariant.c (merge_identical_invariants): Same.
20733 (compute_always_reached): Same.
20734 (find_exits): Same.
20735 (may_assign_reg_p): Same.
20736 (find_invariants_bb): Same.
20737 (find_invariants_body): Same.
20738 (replace_uses): Same.
20739 (can_move_invariant_reg): Same.
20740 (free_inv_motion_data): Same.
20741 (move_single_loop_invariants): Same.
20742 (change_pressure): Same.
20743 (mark_ref_regs): Same.
20744 (calculate_loop_reg_pressure): Same.
20745 * loop-iv.c (biv_entry_hasher::equal): Same.
20746 (iv_extend_to_rtx_code): Same.
20747 (check_iv_ref_table_size): Same.
20748 (clear_iv_info): Same.
20749 (latch_dominating_def): Same.
20750 (iv_get_reaching_def): Same.
20751 (iv_constant): Same.
20752 (iv_subreg): Same.
20753 (iv_extend): Same.
20754 (iv_neg): Same.
20755 (iv_add): Same.
20756 (iv_mult): Same.
20757 (get_biv_step): Same.
20758 (record_iv): Same.
20759 (analyzed_for_bivness_p): Same.
20760 (record_biv): Same.
20761 (iv_analyze_biv): Same.
20762 (iv_analyze_expr): Same.
20763 (iv_analyze_def): Same.
20764 (iv_analyze_op): Same.
20765 (iv_analyze): Same.
20766 (iv_analyze_result): Same.
20767 (biv_p): Same.
20768 (eliminate_implied_conditions): Same.
20769 (simplify_using_initial_values): Same.
20770 (shorten_into_mode): Same.
20771 (canonicalize_iv_subregs): Same.
20772 (determine_max_iter): Same.
20773 (check_simple_exit): Same.
20774 (find_simple_exit): Same.
20775 (get_simple_loop_desc): Same.
20776 * loop-unroll.c (report_unroll): Same.
20777 (decide_unrolling): Same.
20778 (unroll_loops): Same.
20779 (loop_exit_at_end_p): Same.
20780 (decide_unroll_constant_iterations): Same.
20781 (unroll_loop_constant_iterations): Same.
20782 (compare_and_jump_seq): Same.
20783 (unroll_loop_runtime_iterations): Same.
20784 (decide_unroll_stupid): Same.
20785 (unroll_loop_stupid): Same.
20786 (referenced_in_one_insn_in_loop_p): Same.
20787 (reset_debug_uses_in_loop): Same.
20788 (analyze_iv_to_split_insn): Same.
20789 * lra-eliminations.c (lra_debug_elim_table): Same.
20790 (setup_can_eliminate): Same.
20791 (form_sum): Same.
20792 (lra_get_elimination_hard_regno): Same.
20793 (lra_eliminate_regs_1): Same.
20794 (eliminate_regs_in_insn): Same.
20795 (update_reg_eliminate): Same.
20796 (init_elimination): Same.
20797 (lra_eliminate): Same.
20798 * lra-int.h: Same.
20799 * lra-lives.c (initiate_live_solver): Same.
20800 * lra-remat.c (create_remat_bb_data): Same.
20801 * lra-spills.c (lra_spill): Same.
20802 * lra.c (lra_set_insn_recog_data): Same.
20803 (lra_set_used_insn_alternative_by_uid): Same.
20804 (init_reg_info): Same.
20805 (expand_reg_info): Same.
20806 * lto-cgraph.c (output_symtab): Same.
20807 (read_identifier): Same.
20808 (get_alias_symbol): Same.
20809 (input_node): Same.
20810 (input_varpool_node): Same.
20811 (input_ref): Same.
20812 (input_edge): Same.
20813 (input_cgraph_1): Same.
20814 (input_refs): Same.
20815 (input_symtab): Same.
20816 (input_offload_tables): Same.
20817 (output_cgraph_opt_summary): Same.
20818 (input_edge_opt_summary): Same.
20819 (input_cgraph_opt_section): Same.
20820 * lto-section-in.c (lto_free_raw_section_data): Same.
20821 (lto_create_simple_input_block): Same.
20822 (lto_free_function_in_decl_state_for_node): Same.
20823 * lto-streamer-in.c (lto_tag_check_set): Same.
20824 (lto_location_cache::revert_location_cache): Same.
20825 (lto_location_cache::input_location): Same.
20826 (lto_input_location): Same.
20827 (stream_input_location_now): Same.
20828 (lto_input_tree_ref): Same.
20829 (lto_input_eh_catch_list): Same.
20830 (input_eh_region): Same.
20831 (lto_init_eh): Same.
20832 (make_new_block): Same.
20833 (input_cfg): Same.
20834 (fixup_call_stmt_edges): Same.
20835 (input_struct_function_base): Same.
20836 (input_function): Same.
20837 (lto_read_body_or_constructor): Same.
20838 (lto_read_tree_1): Same.
20839 (lto_read_tree): Same.
20840 (lto_input_scc): Same.
20841 (lto_input_tree_1): Same.
20842 (lto_input_toplevel_asms): Same.
20843 (lto_input_mode_table): Same.
20844 (lto_reader_init): Same.
20845 (lto_data_in_create): Same.
20846 * lto-streamer-out.c (output_cfg): Same.
20847 * lto-streamer.h: Same.
20848 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20849 (generate_prolog_epilog): Same.
20850 (mark_loop_unsched): Same.
20851 (dump_insn_location): Same.
20852 (loop_canon_p): Same.
20853 (sms_schedule): Same.
20854 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20855 (expand_omp_for_generic): Same.
20856 (expand_omp_for_static_nochunk): Same.
20857 (expand_omp_for_static_chunk): Same.
20858 (expand_omp_simd): Same.
20859 (expand_omp_taskloop_for_inner): Same.
20860 (expand_oacc_for): Same.
20861 (expand_omp_atomic_pipeline): Same.
20862 (mark_loops_in_oacc_kernels_region): Same.
20863 * omp-offload.c (oacc_xform_loop): Same.
20864 * omp-simd-clone.c (simd_clone_adjust): Same.
20865 * optabs-query.c (get_traditional_extraction_insn): Same.
20866 * optabs.c (expand_vector_broadcast): Same.
20867 (expand_binop_directly): Same.
20868 (expand_twoval_unop): Same.
20869 (expand_twoval_binop): Same.
20870 (expand_unop_direct): Same.
20871 (emit_indirect_jump): Same.
20872 (emit_conditional_move): Same.
20873 (emit_conditional_neg_or_complement): Same.
20874 (emit_conditional_add): Same.
20875 (vector_compare_rtx): Same.
20876 (expand_vec_perm_1): Same.
20877 (expand_vec_perm_const): Same.
20878 (expand_vec_cond_expr): Same.
20879 (expand_vec_series_expr): Same.
20880 (maybe_emit_atomic_exchange): Same.
20881 (maybe_emit_sync_lock_test_and_set): Same.
20882 (expand_atomic_compare_and_swap): Same.
20883 (expand_atomic_load): Same.
20884 (expand_atomic_store): Same.
20885 (maybe_emit_op): Same.
20886 (valid_multiword_target_p): Same.
20887 (create_integer_operand): Same.
20888 (maybe_legitimize_operand_same_code): Same.
20889 (maybe_legitimize_operand): Same.
20890 (create_convert_operand_from_type): Same.
20891 (can_reuse_operands_p): Same.
20892 (maybe_legitimize_operands): Same.
20893 (maybe_gen_insn): Same.
20894 (maybe_expand_insn): Same.
20895 (maybe_expand_jump_insn): Same.
20896 (expand_insn): Same.
20897 * optabs.h (create_expand_operand): Same.
20898 (create_fixed_operand): Same.
20899 (create_output_operand): Same.
20900 (create_input_operand): Same.
20901 (create_convert_operand_to): Same.
20902 (create_convert_operand_from): Same.
20903 * optinfo.h: Same.
20904 * poly-int.h: Same.
20905 * predict.c (optimize_insn_for_speed_p): Same.
20906 (optimize_loop_for_size_p): Same.
20907 (optimize_loop_for_speed_p): Same.
20908 (optimize_loop_nest_for_speed_p): Same.
20909 (get_base_value): Same.
20910 (predicted_by_loop_heuristics_p): Same.
20911 (predict_extra_loop_exits): Same.
20912 (predict_loops): Same.
20913 (predict_paths_for_bb): Same.
20914 (predict_paths_leading_to): Same.
20915 (propagate_freq): Same.
20916 (pass_profile::execute): Same.
20917 * predict.h: Same.
20918 * profile-count.c (profile_count::differs_from_p): Same.
20919 (profile_probability::differs_lot_from_p): Same.
20920 * profile-count.h: Same.
20921 * profile.c (branch_prob): Same.
20922 * regrename.c (free_chain_data): Same.
20923 (mark_conflict): Same.
20924 (create_new_chain): Same.
20925 (merge_overlapping_regs): Same.
20926 (init_rename_info): Same.
20927 (merge_chains): Same.
20928 (regrename_analyze): Same.
20929 (regrename_do_replace): Same.
20930 (scan_rtx_reg): Same.
20931 (record_out_operands): Same.
20932 (build_def_use): Same.
20933 * regrename.h: Same.
20934 * reload.h: Same.
20935 * reload1.c (init_reload): Same.
20936 (maybe_fix_stack_asms): Same.
20937 (copy_reloads): Same.
20938 (count_pseudo): Same.
20939 (count_spilled_pseudo): Same.
20940 (find_reg): Same.
20941 (find_reload_regs): Same.
20942 (select_reload_regs): Same.
20943 (spill_hard_reg): Same.
20944 (fixup_eh_region_note): Same.
20945 (set_reload_reg): Same.
20946 (allocate_reload_reg): Same.
20947 (compute_reload_subreg_offset): Same.
20948 (reload_adjust_reg_for_icode): Same.
20949 (emit_input_reload_insns): Same.
20950 (emit_output_reload_insns): Same.
20951 (do_input_reload): Same.
20952 (inherit_piecemeal_p): Same.
20953 * rtl.h: Same.
20954 * sanopt.c (maybe_get_dominating_check): Same.
20955 (maybe_optimize_ubsan_ptr_ifn): Same.
20956 (can_remove_asan_check): Same.
20957 (maybe_optimize_asan_check_ifn): Same.
20958 (sanopt_optimize_walker): Same.
20959 * sched-deps.c (add_dependence_list): Same.
20960 (chain_to_prev_insn): Same.
20961 (add_insn_mem_dependence): Same.
20962 (create_insn_reg_set): Same.
20963 (maybe_extend_reg_info_p): Same.
20964 (sched_analyze_reg): Same.
20965 (sched_analyze_1): Same.
20966 (get_implicit_reg_pending_clobbers): Same.
20967 (chain_to_prev_insn_p): Same.
20968 (deps_analyze_insn): Same.
20969 (deps_start_bb): Same.
20970 (sched_free_deps): Same.
20971 (init_deps): Same.
20972 (init_deps_reg_last): Same.
20973 (free_deps): Same.
20974 * sched-ebb.c: Same.
20975 * sched-int.h: Same.
20976 * sched-rgn.c (add_branch_dependences): Same.
20977 (concat_insn_mem_list): Same.
20978 (deps_join): Same.
20979 (sched_rgn_compute_dependencies): Same.
20980 * sel-sched-ir.c (reset_target_context): Same.
20981 (copy_deps_context): Same.
20982 (init_id_from_df): Same.
20983 (has_dependence_p): Same.
20984 (change_loops_latches): Same.
20985 (bb_top_order_comparator): Same.
20986 (make_region_from_loop_preheader): Same.
20987 (sel_init_pipelining): Same.
20988 (get_loop_nest_for_rgn): Same.
20989 (make_regions_from_the_rest): Same.
20990 (sel_is_loop_preheader_p): Same.
20991 * sel-sched-ir.h (inner_loop_header_p): Same.
20992 (get_all_loop_exits): Same.
20993 * selftest.h: Same.
20994 * sese.c (sese_build_liveouts): Same.
20995 (sese_insert_phis_for_liveouts): Same.
20996 * sese.h (defined_in_sese_p): Same.
20997 * sreal.c (sreal::stream_out): Same.
20998 * sreal.h: Same.
20999 * streamer-hooks.h: Same.
21000 * target-globals.c (save_target_globals): Same.
21001 * target-globals.h: Same.
21002 * target.def: Same.
21003 * target.h: Same.
21004 * targhooks.c (default_has_ifunc_p): Same.
21005 (default_empty_mask_is_expensive): Same.
21006 (default_init_cost): Same.
21007 * targhooks.h: Same.
21008 * toplev.c: Same.
21009 * tree-affine.c (aff_combination_mult): Same.
21010 (aff_combination_expand): Same.
21011 (aff_combination_constant_multiple_p): Same.
21012 * tree-affine.h: Same.
21013 * tree-cfg.c (build_gimple_cfg): Same.
21014 (replace_loop_annotate_in_block): Same.
21015 (replace_uses_by): Same.
21016 (remove_bb): Same.
21017 (dump_cfg_stats): Same.
21018 (gimple_duplicate_sese_region): Same.
21019 (gimple_duplicate_sese_tail): Same.
21020 (move_block_to_fn): Same.
21021 (replace_block_vars_by_duplicates): Same.
21022 (move_sese_region_to_fn): Same.
21023 (print_loops_bb): Same.
21024 (print_loop): Same.
21025 (print_loops): Same.
21026 (debug): Same.
21027 (debug_loops): Same.
21028 * tree-cfg.h: Same.
21029 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21030 (chrec_fold_multiply_poly_poly): Same.
21031 (chrec_evaluate): Same.
21032 (chrec_component_in_loop_num): Same.
21033 (reset_evolution_in_loop): Same.
21034 (is_multivariate_chrec): Same.
21035 (chrec_contains_symbols): Same.
21036 (nb_vars_in_chrec): Same.
21037 (chrec_convert_1): Same.
21038 (chrec_convert_aggressive): Same.
21039 * tree-chrec.h: Same.
21040 * tree-core.h: Same.
21041 * tree-data-ref.c (dump_data_dependence_relation): Same.
21042 (canonicalize_base_object_address): Same.
21043 (data_ref_compare_tree): Same.
21044 (prune_runtime_alias_test_list): Same.
21045 (get_segment_min_max): Same.
21046 (create_intersect_range_checks): Same.
21047 (conflict_fn_no_dependence): Same.
21048 (object_address_invariant_in_loop_p): Same.
21049 (analyze_ziv_subscript): Same.
21050 (analyze_siv_subscript_cst_affine): Same.
21051 (analyze_miv_subscript): Same.
21052 (analyze_overlapping_iterations): Same.
21053 (build_classic_dist_vector_1): Same.
21054 (add_other_self_distances): Same.
21055 (same_access_functions): Same.
21056 (build_classic_dir_vector): Same.
21057 (subscript_dependence_tester_1): Same.
21058 (subscript_dependence_tester): Same.
21059 (access_functions_are_affine_or_constant_p): Same.
21060 (get_references_in_stmt): Same.
21061 (loop_nest_has_data_refs): Same.
21062 (graphite_find_data_references_in_stmt): Same.
21063 (find_data_references_in_bb): Same.
21064 (get_base_for_alignment): Same.
21065 (find_loop_nest_1): Same.
21066 (find_loop_nest): Same.
21067 * tree-data-ref.h (dr_alignment): Same.
21068 (ddr_dependence_level): Same.
21069 * tree-if-conv.c (fold_build_cond_expr): Same.
21070 (add_to_predicate_list): Same.
21071 (add_to_dst_predicate_list): Same.
21072 (phi_convertible_by_degenerating_args): Same.
21073 (idx_within_array_bound): Same.
21074 (all_preds_critical_p): Same.
21075 (pred_blocks_visited_p): Same.
21076 (predicate_bbs): Same.
21077 (build_region): Same.
21078 (if_convertible_loop_p_1): Same.
21079 (is_cond_scalar_reduction): Same.
21080 (predicate_scalar_phi): Same.
21081 (remove_conditions_and_labels): Same.
21082 (combine_blocks): Same.
21083 (version_loop_for_if_conversion): Same.
21084 (versionable_outer_loop_p): Same.
21085 (ifcvt_local_dce): Same.
21086 (tree_if_conversion): Same.
21087 (pass_if_conversion::gate): Same.
21088 * tree-if-conv.h: Same.
21089 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21090 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21091 (free_rdg): Same.
21092 (stmt_has_scalar_dependences_outside_loop): Same.
21093 (copy_loop_before): Same.
21094 (create_bb_after_loop): Same.
21095 (const_with_all_bytes_same): Same.
21096 (generate_memset_builtin): Same.
21097 (generate_memcpy_builtin): Same.
21098 (destroy_loop): Same.
21099 (build_rdg_partition_for_vertex): Same.
21100 (compute_access_range): Same.
21101 (data_ref_segment_size): Same.
21102 (latch_dominated_by_data_ref): Same.
21103 (compute_alias_check_pairs): Same.
21104 (fuse_memset_builtins): Same.
21105 (finalize_partitions): Same.
21106 (find_seed_stmts_for_distribution): Same.
21107 (prepare_perfect_loop_nest): Same.
21108 * tree-parloops.c (lambda_transform_legal_p): Same.
21109 (loop_parallel_p): Same.
21110 (reduc_stmt_res): Same.
21111 (add_field_for_name): Same.
21112 (create_call_for_reduction_1): Same.
21113 (replace_uses_in_bb_by): Same.
21114 (transform_to_exit_first_loop_alt): Same.
21115 (try_transform_to_exit_first_loop_alt): Same.
21116 (transform_to_exit_first_loop): Same.
21117 (num_phis): Same.
21118 (gen_parallel_loop): Same.
21119 (gather_scalar_reductions): Same.
21120 (get_omp_data_i_param): Same.
21121 (try_create_reduction_list): Same.
21122 (oacc_entry_exit_single_gang): Same.
21123 (parallelize_loops): Same.
21124 * tree-pass.h: Same.
21125 * tree-predcom.c (determine_offset): Same.
21126 (last_always_executed_block): Same.
21127 (split_data_refs_to_components): Same.
21128 (suitable_component_p): Same.
21129 (valid_initializer_p): Same.
21130 (find_looparound_phi): Same.
21131 (insert_looparound_copy): Same.
21132 (add_looparound_copies): Same.
21133 (determine_roots_comp): Same.
21134 (predcom_tmp_var): Same.
21135 (initialize_root_vars): Same.
21136 (initialize_root_vars_store_elim_1): Same.
21137 (initialize_root_vars_store_elim_2): Same.
21138 (finalize_eliminated_stores): Same.
21139 (initialize_root_vars_lm): Same.
21140 (remove_stmt): Same.
21141 (determine_unroll_factor): Same.
21142 (execute_pred_commoning_cbck): Same.
21143 (base_names_in_chain_on): Same.
21144 (combine_chains): Same.
21145 (pcom_stmt_dominates_stmt_p): Same.
21146 (try_combine_chains): Same.
21147 (prepare_initializers_chain_store_elim): Same.
21148 (prepare_initializers_chain): Same.
21149 (prepare_initializers): Same.
21150 (prepare_finalizers_chain): Same.
21151 (prepare_finalizers): Same.
21152 (insert_init_seqs): Same.
21153 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21154 (compute_overall_effect_of_inner_loop): Same.
21155 (add_to_evolution_1): Same.
21156 (add_to_evolution): Same.
21157 (follow_ssa_edge_binary): Same.
21158 (follow_ssa_edge_expr): Same.
21159 (backedge_phi_arg_p): Same.
21160 (follow_ssa_edge_in_condition_phi_branch): Same.
21161 (follow_ssa_edge_in_condition_phi): Same.
21162 (follow_ssa_edge_inner_loop_phi): Same.
21163 (follow_ssa_edge): Same.
21164 (analyze_evolution_in_loop): Same.
21165 (analyze_initial_condition): Same.
21166 (interpret_loop_phi): Same.
21167 (interpret_condition_phi): Same.
21168 (interpret_rhs_expr): Same.
21169 (interpret_expr): Same.
21170 (interpret_gimple_assign): Same.
21171 (analyze_scalar_evolution_1): Same.
21172 (analyze_scalar_evolution): Same.
21173 (analyze_scalar_evolution_for_address_of): Same.
21174 (get_instantiated_value_entry): Same.
21175 (loop_closed_phi_def): Same.
21176 (instantiate_scev_name): Same.
21177 (instantiate_scev_poly): Same.
21178 (instantiate_scev_binary): Same.
21179 (instantiate_scev_convert): Same.
21180 (instantiate_scev_not): Same.
21181 (instantiate_scev_r): Same.
21182 (instantiate_scev): Same.
21183 (resolve_mixers): Same.
21184 (initialize_scalar_evolutions_analyzer): Same.
21185 (scev_reset_htab): Same.
21186 (scev_reset): Same.
21187 (derive_simple_iv_with_niters): Same.
21188 (simple_iv_with_niters): Same.
21189 (expression_expensive_p): Same.
21190 (final_value_replacement_loop): Same.
21191 * tree-scalar-evolution.h (block_before_loop): Same.
21192 * tree-ssa-address.h: Same.
21193 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21194 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21195 (record_edge_info): Same.
21196 * tree-ssa-live.c (var_map_base_fini): Same.
21197 (remove_unused_locals): Same.
21198 * tree-ssa-live.h: Same.
21199 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21200 (pass_ch_vect::execute): Same.
21201 (pass_ch::process_loop_p): Same.
21202 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21203 (movement_possibility): Same.
21204 (outermost_invariant_loop): Same.
21205 (stmt_cost): Same.
21206 (determine_max_movement): Same.
21207 (invariantness_dom_walker::before_dom_children): Same.
21208 (move_computations): Same.
21209 (may_move_till): Same.
21210 (force_move_till_op): Same.
21211 (force_move_till): Same.
21212 (memref_free): Same.
21213 (record_mem_ref_loc): Same.
21214 (set_ref_stored_in_loop): Same.
21215 (mark_ref_stored): Same.
21216 (sort_bbs_in_loop_postorder_cmp): Same.
21217 (sort_locs_in_loop_postorder_cmp): Same.
21218 (analyze_memory_references): Same.
21219 (mem_refs_may_alias_p): Same.
21220 (find_ref_loc_in_loop_cmp): Same.
21221 (rewrite_mem_ref_loc::operator): Same.
21222 (first_mem_ref_loc_1::operator): Same.
21223 (sm_set_flag_if_changed::operator): Same.
21224 (execute_sm_if_changed_flag_set): Same.
21225 (execute_sm): Same.
21226 (hoist_memory_references): Same.
21227 (ref_always_accessed::operator): Same.
21228 (refs_independent_p): Same.
21229 (record_dep_loop): Same.
21230 (ref_indep_loop_p_1): Same.
21231 (ref_indep_loop_p): Same.
21232 (can_sm_ref_p): Same.
21233 (find_refs_for_sm): Same.
21234 (loop_suitable_for_sm): Same.
21235 (store_motion_loop): Same.
21236 (store_motion): Same.
21237 (fill_always_executed_in): Same.
21238 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21239 (estimated_unrolled_size): Same.
21240 (loop_edge_to_cancel): Same.
21241 (remove_exits_and_undefined_stmts): Same.
21242 (remove_redundant_iv_tests): Same.
21243 (unloop_loops): Same.
21244 (estimated_peeled_sequence_size): Same.
21245 (try_peel_loop): Same.
21246 (canonicalize_loop_induction_variables): Same.
21247 (canonicalize_induction_variables): Same.
21248 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21249 (name_info): Same.
21250 (stmt_after_inc_pos): Same.
21251 (contains_abnormal_ssa_name_p): Same.
21252 (niter_for_exit): Same.
21253 (find_bivs): Same.
21254 (mark_bivs): Same.
21255 (find_givs_in_bb): Same.
21256 (find_induction_variables): Same.
21257 (find_interesting_uses_cond): Same.
21258 (outermost_invariant_loop_for_expr): Same.
21259 (idx_find_step): Same.
21260 (add_candidate_1): Same.
21261 (add_iv_candidate_derived_from_uses): Same.
21262 (alloc_use_cost_map): Same.
21263 (prepare_decl_rtl): Same.
21264 (generic_predict_doloop_p): Same.
21265 (computation_cost): Same.
21266 (determine_common_wider_type): Same.
21267 (get_computation_aff_1): Same.
21268 (get_use_type): Same.
21269 (determine_group_iv_cost_address): Same.
21270 (iv_period): Same.
21271 (difference_cannot_overflow_p): Same.
21272 (may_eliminate_iv): Same.
21273 (determine_set_costs): Same.
21274 (cheaper_cost_pair): Same.
21275 (compare_cost_pair): Same.
21276 (iv_ca_cand_for_group): Same.
21277 (iv_ca_recount_cost): Same.
21278 (iv_ca_set_remove_invs): Same.
21279 (iv_ca_set_no_cp): Same.
21280 (iv_ca_set_add_invs): Same.
21281 (iv_ca_set_cp): Same.
21282 (iv_ca_add_group): Same.
21283 (iv_ca_cost): Same.
21284 (iv_ca_compare_deps): Same.
21285 (iv_ca_delta_reverse): Same.
21286 (iv_ca_delta_commit): Same.
21287 (iv_ca_cand_used_p): Same.
21288 (iv_ca_delta_free): Same.
21289 (iv_ca_new): Same.
21290 (iv_ca_free): Same.
21291 (iv_ca_dump): Same.
21292 (iv_ca_extend): Same.
21293 (iv_ca_narrow): Same.
21294 (iv_ca_prune): Same.
21295 (cheaper_cost_with_cand): Same.
21296 (iv_ca_replace): Same.
21297 (try_add_cand_for): Same.
21298 (get_initial_solution): Same.
21299 (try_improve_iv_set): Same.
21300 (find_optimal_iv_set_1): Same.
21301 (create_new_iv): Same.
21302 (rewrite_use_compare): Same.
21303 (remove_unused_ivs): Same.
21304 (determine_scaling_factor): Same.
21305 * tree-ssa-loop-ivopts.h: Same.
21306 * tree-ssa-loop-manip.c (create_iv): Same.
21307 (compute_live_loop_exits): Same.
21308 (add_exit_phi): Same.
21309 (add_exit_phis): Same.
21310 (find_uses_to_rename_use): Same.
21311 (find_uses_to_rename_def): Same.
21312 (find_uses_to_rename_in_loop): Same.
21313 (rewrite_into_loop_closed_ssa): Same.
21314 (check_loop_closed_ssa_bb): Same.
21315 (split_loop_exit_edge): Same.
21316 (ip_end_pos): Same.
21317 (ip_normal_pos): Same.
21318 (copy_phi_node_args): Same.
21319 (gimple_duplicate_loop_to_header_edge): Same.
21320 (can_unroll_loop_p): Same.
21321 (determine_exit_conditions): Same.
21322 (scale_dominated_blocks_in_loop): Same.
21323 (niter_for_unrolled_loop): Same.
21324 (tree_transform_and_unroll_loop): Same.
21325 (rewrite_all_phi_nodes_with_iv): Same.
21326 * tree-ssa-loop-manip.h: Same.
21327 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21328 (number_of_iterations_ne): Same.
21329 (assert_no_overflow_lt): Same.
21330 (assert_loop_rolls_lt): Same.
21331 (number_of_iterations_lt): Same.
21332 (adjust_cond_for_loop_until_wrap): Same.
21333 (tree_simplify_using_condition): Same.
21334 (simplify_using_initial_conditions): Same.
21335 (simplify_using_outer_evolutions): Same.
21336 (loop_only_exit_p): Same.
21337 (ssa_defined_by_minus_one_stmt_p): Same.
21338 (number_of_iterations_popcount): Same.
21339 (number_of_iterations_exit): Same.
21340 (find_loop_niter): Same.
21341 (finite_loop_p): Same.
21342 (chain_of_csts_start): Same.
21343 (get_val_for): Same.
21344 (loop_niter_by_eval): Same.
21345 (derive_constant_upper_bound_ops): Same.
21346 (do_warn_aggressive_loop_optimizations): Same.
21347 (record_estimate): Same.
21348 (get_cst_init_from_scev): Same.
21349 (record_nonwrapping_iv): Same.
21350 (idx_infer_loop_bounds): Same.
21351 (infer_loop_bounds_from_ref): Same.
21352 (infer_loop_bounds_from_array): Same.
21353 (infer_loop_bounds_from_pointer_arith): Same.
21354 (infer_loop_bounds_from_signedness): Same.
21355 (bound_index): Same.
21356 (discover_iteration_bound_by_body_walk): Same.
21357 (maybe_lower_iteration_bound): Same.
21358 (estimate_numbers_of_iterations): Same.
21359 (estimated_loop_iterations): Same.
21360 (estimated_loop_iterations_int): Same.
21361 (max_loop_iterations): Same.
21362 (max_loop_iterations_int): Same.
21363 (likely_max_loop_iterations): Same.
21364 (likely_max_loop_iterations_int): Same.
21365 (estimated_stmt_executions_int): Same.
21366 (max_stmt_executions): Same.
21367 (likely_max_stmt_executions): Same.
21368 (estimated_stmt_executions): Same.
21369 (stmt_dominates_stmt_p): Same.
21370 (nowrap_type_p): Same.
21371 (loop_exits_before_overflow): Same.
21372 (scev_var_range_cant_overflow): Same.
21373 (scev_probably_wraps_p): Same.
21374 (free_numbers_of_iterations_estimates): Same.
21375 * tree-ssa-loop-niter.h: Same.
21376 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21377 (idx_analyze_ref): Same.
21378 (analyze_ref): Same.
21379 (gather_memory_references_ref): Same.
21380 (mark_nontemporal_store): Same.
21381 (emit_mfence_after_loop): Same.
21382 (may_use_storent_in_loop_p): Same.
21383 (mark_nontemporal_stores): Same.
21384 (should_unroll_loop_p): Same.
21385 (volume_of_dist_vector): Same.
21386 (add_subscript_strides): Same.
21387 (self_reuse_distance): Same.
21388 (insn_to_prefetch_ratio_too_small_p): Same.
21389 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21390 (patch_loop_exit): Same.
21391 (find_or_create_guard_phi): Same.
21392 (easy_exit_values): Same.
21393 (connect_loop_phis): Same.
21394 (connect_loops): Same.
21395 (compute_new_first_bound): Same.
21396 (split_loop): Same.
21397 (tree_ssa_split_loops): Same.
21398 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21399 (is_maybe_undefined): Same.
21400 (tree_may_unswitch_on): Same.
21401 (simplify_using_entry_checks): Same.
21402 (tree_unswitch_single_loop): Same.
21403 (tree_unswitch_loop): Same.
21404 (tree_unswitch_outer_loop): Same.
21405 (empty_bb_without_guard_p): Same.
21406 (used_outside_loop_p): Same.
21407 (get_vop_from_header): Same.
21408 (hoist_guard): Same.
21409 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21410 (get_lsm_tmp_name): Same.
21411 * tree-ssa-loop.h: Same.
21412 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21413 (build_and_add_sum): Same.
21414 (no_side_effect_bb): Same.
21415 (get_ops): Same.
21416 (linearize_expr): Same.
21417 (should_break_up_subtract): Same.
21418 (linearize_expr_tree): Same.
21419 * tree-ssa-scopedtables.c: Same.
21420 * tree-ssa-scopedtables.h: Same.
21421 * tree-ssa-structalias.c (condense_visit): Same.
21422 (label_visit): Same.
21423 (dump_pred_graph): Same.
21424 (perform_var_substitution): Same.
21425 (move_complex_constraints): Same.
21426 (remove_preds_and_fake_succs): Same.
21427 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21428 (determine_bb_domination_status): Same.
21429 (duplicate_thread_path): Same.
21430 (thread_through_all_blocks): Same.
21431 * tree-ssa-threadupdate.h: Same.
21432 * tree-streamer-in.c (streamer_read_string_cst): Same.
21433 (input_identifier): Same.
21434 (unpack_ts_type_common_value_fields): Same.
21435 (unpack_ts_block_value_fields): Same.
21436 (unpack_ts_translation_unit_decl_value_fields): Same.
21437 (unpack_ts_omp_clause_value_fields): Same.
21438 (streamer_read_tree_bitfields): Same.
21439 (streamer_alloc_tree): Same.
21440 (lto_input_ts_common_tree_pointers): Same.
21441 (lto_input_ts_vector_tree_pointers): Same.
21442 (lto_input_ts_poly_tree_pointers): Same.
21443 (lto_input_ts_complex_tree_pointers): Same.
21444 (lto_input_ts_decl_minimal_tree_pointers): Same.
21445 (lto_input_ts_decl_common_tree_pointers): Same.
21446 (lto_input_ts_decl_non_common_tree_pointers): Same.
21447 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21448 (lto_input_ts_field_decl_tree_pointers): Same.
21449 (lto_input_ts_function_decl_tree_pointers): Same.
21450 (lto_input_ts_type_common_tree_pointers): Same.
21451 (lto_input_ts_type_non_common_tree_pointers): Same.
21452 (lto_input_ts_list_tree_pointers): Same.
21453 (lto_input_ts_vec_tree_pointers): Same.
21454 (lto_input_ts_exp_tree_pointers): Same.
21455 (lto_input_ts_block_tree_pointers): Same.
21456 (lto_input_ts_binfo_tree_pointers): Same.
21457 (lto_input_ts_constructor_tree_pointers): Same.
21458 (lto_input_ts_omp_clause_tree_pointers): Same.
21459 (streamer_read_tree_body): Same.
21460 * tree-streamer.h: Same.
21461 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21462 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21463 (vect_analyze_possibly_independent_ddr): Same.
21464 (vect_analyze_data_ref_dependence): Same.
21465 (vect_compute_data_ref_alignment): Same.
21466 (vect_enhance_data_refs_alignment): Same.
21467 (vect_analyze_data_ref_access): Same.
21468 (vect_check_gather_scatter): Same.
21469 (vect_find_stmt_data_reference): Same.
21470 (vect_create_addr_base_for_vector_ref): Same.
21471 (vect_setup_realignment): Same.
21472 (vect_supportable_dr_alignment): Same.
21473 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21474 (adjust_phi_and_debug_stmts): Same.
21475 (vect_set_loop_mask): Same.
21476 (add_preheader_seq): Same.
21477 (vect_maybe_permute_loop_masks): Same.
21478 (vect_set_loop_masks_directly): Same.
21479 (vect_set_loop_condition_masked): Same.
21480 (vect_set_loop_condition_unmasked): Same.
21481 (slpeel_duplicate_current_defs_from_edges): Same.
21482 (slpeel_add_loop_guard): Same.
21483 (slpeel_can_duplicate_loop_p): Same.
21484 (create_lcssa_for_virtual_phi): Same.
21485 (iv_phi_p): Same.
21486 (vect_update_ivs_after_vectorizer): Same.
21487 (vect_gen_vector_loop_niters_mult_vf): Same.
21488 (slpeel_update_phi_nodes_for_loops): Same.
21489 (slpeel_update_phi_nodes_for_guard1): Same.
21490 (find_guard_arg): Same.
21491 (slpeel_update_phi_nodes_for_guard2): Same.
21492 (slpeel_update_phi_nodes_for_lcssa): Same.
21493 (vect_do_peeling): Same.
21494 (vect_create_cond_for_alias_checks): Same.
21495 (vect_loop_versioning): Same.
21496 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21497 (vect_inner_phi_in_double_reduction_p): Same.
21498 (vect_analyze_scalar_cycles_1): Same.
21499 (vect_fixup_scalar_cycles_with_patterns): Same.
21500 (vect_get_loop_niters): Same.
21501 (bb_in_loop_p): Same.
21502 (vect_get_max_nscalars_per_iter): Same.
21503 (vect_verify_full_masking): Same.
21504 (vect_compute_single_scalar_iteration_cost): Same.
21505 (vect_analyze_loop_form_1): Same.
21506 (vect_analyze_loop_form): Same.
21507 (vect_active_double_reduction_p): Same.
21508 (vect_analyze_loop_operations): Same.
21509 (neutral_op_for_slp_reduction): Same.
21510 (vect_is_simple_reduction): Same.
21511 (vect_model_reduction_cost): Same.
21512 (get_initial_def_for_reduction): Same.
21513 (get_initial_defs_for_reduction): Same.
21514 (vect_create_epilog_for_reduction): Same.
21515 (vectorize_fold_left_reduction): Same.
21516 (vectorizable_reduction): Same.
21517 (vectorizable_induction): Same.
21518 (vectorizable_live_operation): Same.
21519 (loop_niters_no_overflow): Same.
21520 (vect_get_loop_mask): Same.
21521 (vect_transform_loop_stmt): Same.
21522 (vect_transform_loop): Same.
21523 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21524 (vect_determine_precisions): Same.
21525 (vect_pattern_recog_1): Same.
21526 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21527 * tree-vect-stmts.c (stmt_vectype): Same.
21528 (process_use): Same.
21529 (vect_init_vector_1): Same.
21530 (vect_truncate_gather_scatter_offset): Same.
21531 (get_group_load_store_type): Same.
21532 (vect_build_gather_load_calls): Same.
21533 (vect_get_strided_load_store_ops): Same.
21534 (vectorizable_simd_clone_call): Same.
21535 (vectorizable_store): Same.
21536 (permute_vec_elements): Same.
21537 (vectorizable_load): Same.
21538 (vect_transform_stmt): Same.
21539 (supportable_widening_operation): Same.
21540 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21541 (vec_info::free_stmt_vec_info): Same.
21542 (vect_free_loop_info_assumptions): Same.
21543 (vect_loop_vectorized_call): Same.
21544 (set_uid_loop_bbs): Same.
21545 (vectorize_loops): Same.
21546 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21547 * tree.c (add_tree_to_fld_list): Same.
21548 (fld_type_variant_equal_p): Same.
21549 (fld_decl_context): Same.
21550 (fld_incomplete_type_of): Same.
21551 (free_lang_data_in_binfo): Same.
21552 (need_assembler_name_p): Same.
21553 (find_decls_types_r): Same.
21554 (get_eh_types_for_runtime): Same.
21555 (find_decls_types_in_eh_region): Same.
21556 (find_decls_types_in_node): Same.
21557 (assign_assembler_name_if_needed): Same.
21558 * value-prof.c (stream_out_histogram_value): Same.
21559 * value-prof.h: Same.
21560 * var-tracking.c (use_narrower_mode): Same.
21561 (prepare_call_arguments): Same.
21562 (vt_expand_loc_callback): Same.
21563 (resolve_expansions_pending_recursion): Same.
21564 (vt_expand_loc): Same.
21565 * varasm.c (const_hash_1): Same.
21566 (compare_constant): Same.
21567 (tree_output_constant_def): Same.
21568 (simplify_subtraction): Same.
21569 (get_pool_constant): Same.
21570 (output_constant_pool_2): Same.
21571 (output_constant_pool_1): Same.
21572 (mark_constants_in_pattern): Same.
21573 (mark_constant_pool): Same.
21574 (get_section_anchor): Same.
21575 * vr-values.c (compare_range_with_value): Same.
21576 (vr_values::extract_range_from_phi_node): Same.
21577 * vr-values.h: Same.
21578 * web.c (unionfind_union): Same.
21579 * wide-int.h: Same.
21580
21581 2019-07-09 Martin Sebor <msebor@redhat.com>
21582
21583 PR c++/61339
21584 * align.h: Change class-key from class to struct and vice versa
21585 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21586 * alloc-pool.h: Same.
21587 * asan.c (shadow_mem_size): Same.
21588 * auto-profile.c: Same.
21589 * basic-block.h: Same.
21590 * bitmap.h: Same.
21591 * cfgexpand.c (set_rtl): Same.
21592 (expand_one_stack_var_at): Same.
21593 * cfghooks.h: Same.
21594 * cfgloop.h: Same.
21595 * cgraph.h: Same.
21596 * config/i386/i386.h: Same.
21597 * df-problems.c (df_print_bb_index): Same.
21598 * df-scan.c: Same.
21599 * df.h (df_single_use): Same.
21600 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21601 (layout::annotation_line_showed_range_p): Same.
21602 (get_printed_columns): Same.
21603 (correction::ensure_terminated): Same.
21604 (line_corrections::~line_corrections): Same.
21605 * dojump.h: Same.
21606 * dse.c: Same.
21607 * dump-context.h: Same.
21608 * dumpfile.h: Same.
21609 * dwarf2out.c: Same.
21610 * edit-context.c: Same.
21611 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21612 * flags.h: Same.
21613 * function.c (assign_stack_local): Same.
21614 * function.h: Same.
21615 * gcc.c: Same.
21616 * gcov.c (block_info::block_info): Same.
21617 * genattrtab.c: Same.
21618 * genextract.c: Same.
21619 * genmatch.c (comparison_code_p): Same.
21620 (id_base::id_base): Same.
21621 (decision_tree::print): Same.
21622 * genoutput.c: Same.
21623 * genpreds.c (write_one_predicate_function): Same.
21624 * genrecog.c (validate_pattern): Same.
21625 (find_operand_positions): Same.
21626 (optimize_subroutine_group): Same.
21627 (merge_pattern_transition::merge_pattern_transition): Same.
21628 (merge_pattern_info::merge_pattern_info): Same.
21629 (merge_state_result::merge_state_result): Same.
21630 (merge_into_state): Same.
21631 * gensupport.c: Same.
21632 * gensupport.h: Same.
21633 * ggc-common.c (init_ggc_heuristics): Same.
21634 * ggc-tests.c (test_union): Same.
21635 * gimple-loop-interchange.cc (dump_induction): Same.
21636 * gimple-loop-versioning.cc: Same.
21637 * gimple-match.h (gimple_match_cond::any_else): Same.
21638 * gimple-ssa-backprop.c: Same.
21639 * gimple-ssa-sprintf.c: Same.
21640 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21641 Same.
21642 (store_immediate_info::store_immediate_info): Same.
21643 (merged_store_group::apply_stores): Same.
21644 (get_location_for_stmts): Same.
21645 * gimple-ssa-strength-reduction.c: Same.
21646 * gimple-ssa-warn-alloca.c: Same.
21647 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21648 * godump.c (go_type_decl): Same.
21649 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21650 * hash-map.h: Same.
21651 * hash-set-tests.c (test_set_of_strings): Same.
21652 * hsa-brig.c: Same.
21653 * hsa-common.h: Same.
21654 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21655 * input.c (assert_loceq): Same.
21656 * input.h: Same.
21657 * ipa-cp.c: Same.
21658 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21659 * ipa-fnsummary.h: Same.
21660 * ipa-inline.h: Same.
21661 * ipa-prop.h: Same.
21662 * ipa-split.c (visit_bb): Same.
21663 * ira-int.h (minmax_set_iter_next): Same.
21664 * loop-invariant.c: Same.
21665 * loop-iv.c: Same.
21666 * lra-eliminations.c: Same.
21667 * lra-int.h: Same.
21668 * lra-lives.c (mark_regno_dead): Same.
21669 * lra-remat.c: Same.
21670 * lra-spills.c: Same.
21671 * lto-streamer.h: Same.
21672 * mem-stats.h: Same.
21673 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21674 * omp-low.c (omp_clause_aligned_alignment): Same.
21675 * optabs-query.h (get_vcond_eq_icode): Same.
21676 * optabs.h: Same.
21677 * opts.c (wrap_help): Same.
21678 * poly-int.h: Same.
21679 * predict.c (predict_paths_leading_to_edge): Same.
21680 * pretty-print.h: Same.
21681 * profile-count.h: Same.
21682 * read-md.h: Same.
21683 * read-rtl-function.c: Same.
21684 * ree.c: Same.
21685 * reginfo.c: Same.
21686 * regrename.c: Same.
21687 * regrename.h: Same.
21688 * reload.h: Same.
21689 * rtl-iter.h: Same.
21690 * rtl.h (costs_add_n_insns): Same.
21691 * sanopt.c: Same.
21692 * sched-int.h: Same.
21693 * sel-sched-ir.h: Same.
21694 * selftest.h: Same.
21695 * sese.h (vec_find): Same.
21696 * stmt.c: Same.
21697 * target-globals.h: Same.
21698 * tree-affine.c (aff_combination_find_elt): Same.
21699 * tree-affine.h: Same.
21700 * tree-data-ref.h: Same.
21701 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21702 * tree-predcom.c: Same.
21703 * tree-scalar-evolution.c (find_var_scev_info): Same.
21704 * tree-ssa-alias.h: Same.
21705 * tree-ssa-ccp.c: Same.
21706 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21707 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21708 (rewrite_mem_refs): Same.
21709 (execute_sm_if_changed): Same.
21710 (hoist_memory_references): Same.
21711 * tree-ssa-loop-ivopts.c (operator<=): Same.
21712 * tree-ssa-loop.h: Same.
21713 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21714 * tree-ssa-structalias.c: Same.
21715 * tree-switch-conversion.h (cluster::cluster): Same.
21716 (simple_cluster::simple_cluster): Same.
21717 * tree-vect-patterns.c (type_conversion_p): Same.
21718 * tree-vectorizer.c (dump_stmt_cost): Same.
21719 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21720 * tree.c (protected_set_expr_location): Same.
21721 * tree.h (desired_pro_or_demotion_p): Same.
21722 (fndecl_built_in_p): Same.
21723 * unique-ptr-tests.cc: Same.
21724 * var-tracking.c (delete_variable_part): Same.
21725 * varasm.c (assemble_real): Same.
21726 (tree_output_constant_def): Same.
21727 * vec.c: Same.
21728 * wide-int-bitmask.h: Same.
21729 * wide-int.h (decompose): Same.
21730
21731 2019-07-09 Richard Biener <rguenther@suse.de>
21732
21733 PR tree-optimization/91114
21734 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21735 find a vector type isn't fatal.
21736
21737 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21738
21739 * config/aarch64/aarch64-simd.md
21740 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21741 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21742 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21743 (*aarch64_crypto_aese_fused,
21744 *aarch64_crypto_aesd_fused): Update to new definition.
21745 * config/aarch64/aarch64.c
21746 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21747
21748 2019-07-09 Richard Biener <rguenther@suse.de>
21749
21750 * gimple-match.h (gimple_match_op::resimplify): New.
21751 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21752 gimple_resimplify4, gimple_resimplify5): Remove.
21753 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21754 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21755 Make static.
21756 (gimple_match_op::resimplify): New.
21757 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21758 according to availability. Use gimple_match_op::resimplify.
21759
21760 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21761
21762 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21763
21764 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21765
21766 * config/arm/crypto.md:
21767 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21768 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21769 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21770 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21771 * config/arm/arm.c
21772 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21773 * config/arm/aarch-common-protos.h
21774 (aarch_crypto_can_dual_issue): Remove.
21775 * config/arm/aarch-common.c
21776 (aarch_crypto_can_dual_issue): Likewise.
21777 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21778 * config/arm/cortex-a53.md: Likewise.
21779 * config/arm/cortex-a57.md: Likewise.
21780 * config/arm/iterators.md:
21781 (CRYPTO_BINARY): Redefine.
21782 (CRYPTO_UNARY): Removed.
21783 (CRYPTO_AES, CRYPTO_AESMC): New.
21784
21785 2019-07-09 Richard Biener <rguenther@suse.de>
21786
21787 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21788 (vn_reference_lookup_3): If the main ref has no access path recorded
21789 but orig_ref has use it to do access-path based disambiguation.
21790 (vn_reference_lookup_pieces): Adjust.
21791 (vn_reference_lookup): Pass down original ref if we valueized.
21792
21793 2019-07-09 Martin Liska <mliska@suse.cz>
21794
21795 * doc/extend.texi: Document influence on loop
21796 optimizers.
21797
21798 2019-07-09 Martin Liska <mliska@suse.cz>
21799
21800 * lto-compress.c (lto_normalized_zstd_level): Do not use
21801 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21802 of libzstd. One can use 0 as a default compression level.
21803
21804 2019-07-09 Martin Liska <mliska@suse.cz>
21805
21806 * doc/invoke.texi: Add link from -fprofile-dir option.
21807 Use better wording for 'gcno filename'.
21808
21809 2019-07-08 Martin Sebor <msebor@redhat.com>
21810
21811 PR middle-end/71924
21812 PR middle-end/90549
21813 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21814 comment.
21815 (args_loc_t): New type.
21816 (args_loc_t, locmap_t): same.
21817 (diag_returned_locals): New function.
21818 (is_addr_local): Same.
21819 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21820 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21821 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21822
21823 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21824
21825 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21826 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21827 and casts in offset when different, both through gimple stmts
21828 and through trees. Rewritten using loops to minimize code duplication
21829 for each operand.
21830
21831 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21832
21833 * emit-rtl.c (set_insn_locations): New function moved from...
21834 * function.c (set_insn_locations): ...here.
21835 * ira-emit.c (emit_moves): Propagate location of the first instruction
21836 to the inserted move instructions.
21837 * reg-stack.c (compensate_edge): Set the location if the sequence is
21838 inserted on the edge.
21839 * rtl.h (set_insn_locations): Declare.
21840
21841 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21842
21843 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21844 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21845 .machine string.
21846
21847 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21848
21849 PR rtl-optimization/88233
21850 * common.opt (fsplit-wide-types-early): New option.
21851 * common/config/rs6000/rs6000-common.c
21852 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21853 OPT_LEVELS_ALL.
21854 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21855 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21856 flag_split_wide_types_early.
21857 (pass_data_lower_subreg3): New.
21858 (pass_lower_subreg3): New.
21859 (make_pass_lower_subreg3): New.
21860 * passes.def (pass_lower_subreg2): Move after the loop passes.
21861 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21862 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21863 the pass pipeline; its previous place is taken by ...
21864 (make_pass_lower_subreg3): ... this.
21865
21866 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21867
21868 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21869 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21870
21871 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21872
21873 * config/s390/constraints.md: Add new jsc constraint.
21874 * config/s390/predicates.md: New predicates.
21875 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21876 * config/s390/s390.c (s390_valid_shift_count): New function.
21877 (print_shift_count_operand): Use s390_valid_shift_count.
21878 (print_operand): Likewise.
21879 * config/s390/s390.md: Use new predicate.
21880 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21881 * config/s390/vector.md: Use new predicate.
21882
21883 2019-07-08 Andrew Waterman <andrew@sifive.com>
21884 Jim Wilson <jimw@sifive.com>
21885
21886 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21887 bitsize instead of BITS_PER_WORD.
21888
21889 2019-07-08 Martin Liska <mliska@suse.cz>
21890
21891 * collect2.c (defined): Revert to before r254460.
21892 (scan_prog_file): Revert to before r254460.
21893
21894 2019-07-08 Richard Biener <rguenther@suse.de>
21895
21896 PR tree-optimization/83518
21897 * tree-ssa-sccvn.c: Include splay-tree.h.
21898 (struct pd_range, struct pd_data): New.
21899 (struct vn_walk_cb_data): Add data to track partial definitions.
21900 (vn_walk_cb_data::~vn_walk_cb_data): New.
21901 (vn_walk_cb_data::push_partial_def): New.
21902 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21903 (vn_reference_lookup_2): When partial defs are registered give up.
21904 (vn_reference_lookup_3): Track partial defs for memset and
21905 constructor zeroing and for defs from constants.
21906
21907 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21908
21909 * doc/install.texi (bootstrap-Og): Document.
21910
21911 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21912
21913 * config/riscv/pic.md (*local_pic_load_s<mode>)
21914 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21915 referenced by <mode>, giving...
21916 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21917 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21918 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21919 use <X:MODE> for the mode attribute.
21920
21921 2019-07-07 Jeff Law <law@redhat.com>
21922
21923 PR tree-optimization/91090
21924 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21925 in handling of ranges to simplify switch statements.
21926
21927 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21928
21929 * config/darwin.c (darwin_override_options): Make a final check on PIC
21930 options.
21931
21932 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21933
21934 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21935 on for kernel code.
21936
21937 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21938
21939 PR target/91068
21940 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21941 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21942 instead of matching them to "l" output operands.
21943
21944 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21945
21946 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21947 and check whether addr.reg is nonnull before using it.
21948
21949 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21950
21951 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21952 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21953 variable(s). For conditional lastprivate look through outer
21954 GIMPLE_OMP_SCAN context.
21955 (lower_omp_1): For conditional lastprivate look through outer
21956 GIMPLE_OMP_SCAN context.
21957
21958 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21959 member to combined_into_simd_safelen1.
21960 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21961 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21962 clauses if ctx->combined_into_simd_safelen1 put statements after the
21963 predicate conditionalized block rather than into it.
21964
21965 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21966
21967 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21968 operand 1.
21969 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21970 Make the choice of <mode> explicit, giving...
21971 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21972
21973 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21974
21975 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21976 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21977 of .md attributes.
21978 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21979 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21980 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21981 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21982 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21983 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21984 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21985 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21986 (*avx512f_scatterdi<mode>): Likewise.
21987 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21988
21989 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21990
21991 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21992 specify the mode iterator referenced by <mode>, giving...
21993 (*push1_h8300hs_<QHI:mode>): ...this.
21994
21995 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21996
21997 * config/gcn/gcn-valu.md
21998 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21999 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22000 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22001 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22002 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22003 but using the _exec comparison patterns.
22004 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22005 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22006 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22007 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22008 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22009 but using the _exec comparison patterns.
22010
22011 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22012
22013 * config/arm/sync.md
22014 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22015 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22016 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22017 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22018 <SIDI:cas_cmp_str>.
22019
22020 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22021
22022 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22023 (maybe_lookup_ctx): Add forward declaration.
22024 (omp_find_scan): Likewise. Walk into body of simd if composited
22025 with worksharing loop.
22026 (scan_omp_simd_scan): New function.
22027 (scan_omp_1_stmt): Call it.
22028 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22029 ctx->for_simd_scan_phase.
22030 (lower_rec_input_clauses): Do much less work for inscan reductions
22031 in ctx->for_simd_scan_phase is_simd regions.
22032 (lower_omp_scan): Set is_simd also on simd constructs composited
22033 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22034 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22035 emit their body after in simd constructs composited with worksharing
22036 loop.
22037 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22038
22039 * omp-low.c (omp_find_scan): Make static.
22040 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22041 the second loop, var2 represents the first partial sum and so needs
22042 to go before rprivb[ivar].
22043
22044 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22045
22046 * config/rs6000/rs6000-logue.c: Remove unused code.
22047
22048 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22049
22050 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22051
22052 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22053
22054 PR target/90712
22055 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22056 check with a frame laid out check.
22057
22058 2019-07-05 Richard Biener <rguenther@suse.de>
22059
22060 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22061 when comparing against a store with possibly the same value.
22062
22063 2019-07-05 Richard Biener <rguenther@suse.de>
22064
22065 PR tree-optimization/91091
22066 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22067 (walk_non_aliased_vuses): Likewise.
22068 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22069 (get_continuation_for_phi): New tbaa_p parameter and pass
22070 it down.
22071 (walk_non_aliased_vuses): Likewise.
22072 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22073 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22074 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22075 Likewise.
22076 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22077 (adjust_offsets_for_equal_base_address): New function.
22078 (vn_reference_lookup_3): Use it to catch more base equivalences.
22079 Handle and pass down tbaa_p flag.
22080 (vn_reference_lookup_pieces): Adjust.
22081 (vn_reference_lookup): Remove alias-set altering, instead pass
22082 down false as tbaa_p.
22083
22084 2019-07-05 Richard Biener <rguenther@suse.de>
22085
22086 PR tree-optimization/91091
22087 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22088 accesses can happen with -fno-strict-aliasing.
22089
22090 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22091
22092 * tree-ssa-alias.c (alias_stats): Add
22093 nonoverlapping_component_refs_since_match_p_must_overlap.
22094 (dump_alias_stats): Print it.
22095 (nonoverlapping_component_refs_since_match_p): Add early exit.
22096 (nonoverlapping_component_refs_p): Do not account early exit.
22097
22098 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22099
22100 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22101 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22102 (emit_eh_dispatch): Delete.
22103 (lower_catch): Emit the eh_dispatch manually and set the location of
22104 the first catch statement onto it.
22105 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22106 (lower_eh_dispatch): Propagate location.
22107 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22108 (eliminate_build): Likewise.
22109
22110 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22111
22112 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22113 phi nodes if possible.
22114 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22115 location info on the newly created statement.
22116 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22117 newly created increment if needed.
22118
22119 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22120
22121 PR middle-end/78884
22122 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22123 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22124 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22125 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22126 ctx->add_safelen1 is set.
22127
22128 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22129 GOMP_loop_start at the start of second worksharing loop in a scan.
22130 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22131 worksharing loop in a scan even if there are conditional lastprivates,
22132 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22133
22134 2019-07-04 Jan Hubicka <jh@suse.cz>
22135
22136 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22137 Fix check for match in the ref walk.
22138
22139 2019-07-04 Martin Liska <mliska@suse.cz>
22140
22141 * tree-ssa-loop-niter.c
22142 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22143 (estimate_numbers_of_iterations):
22144 Support __builtin_expect_with_probability for analysis
22145 of # of loop iterations.
22146
22147 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22148
22149 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22150 * except.c: Likewise.
22151 * expr.c (expand_expr_real_1): Reject it.
22152 * gimplify.c (gimplify_expr): Gimplify it, within
22153 TRY_FINALLY_EXPR.
22154 * tree-dump.c (dequeue_and_dump): Dump it.
22155 * tree-pretty-print.c (dump_generic_node): Likewise.
22156 * tree.c (block_may_fallthru): Handle it.
22157 * tree.def (EH_ELSE_EXPR): Introduce it.
22158 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22159 with GIMPLE_EH_ELSE as try/finally/else.
22160
22161 2019-07-04 Richard Biener <rguenther@suse.de>
22162
22163 PR ipa/91062
22164 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22165 parameter whether to disable GC collection.
22166 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22167 honor it.
22168 (execute_all_ipa_transforms): Likewise and pass it down.
22169 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22170 collection from applying IPA transforms.
22171 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22172 from applying IPA transforms.
22173
22174 2019-07-04 Richard Biener <rguenther@suse.de>
22175
22176 PR tree-optimization/90911
22177 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22178 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22179 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22180 scalar_loop_scaling.
22181 (vect_transform_loop): Scale scalar loop profile if needed.
22182 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22183 the loop copy from if-conversion adjust edge probabilities
22184 and scale the vectorized loop body profile, queue the scalar
22185 profile for updating after peeling.
22186
22187 2019-07-04 Jan Hubicka <jh@suse.cz>
22188
22189 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22190 parameters; return early for must-alias.
22191 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22192 outer types match, try nonoverlapping_component_refs
22193 if must-alias is not obvious.
22194 (indirect_refs_may_alias_p): Likewise.
22195 (refs_may_alias_p_2): Likewise.
22196
22197 2019-07-04 Richard Biener <rguenther@suse.de>
22198
22199 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22200 argument.
22201 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22202 globals into...
22203 (struct vn_walk_cb_data): New callback data struct.
22204 (vn_reference_lookup_2): Adjust.
22205 (vn_reference_lookup_3): Likewise.
22206 (vn_reference_lookup_pieces): Likewise.
22207 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22208 (visit_reference_op_load): Adjust.
22209
22210 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22211
22212 PR tree-optimization/91063
22213 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22214 stmt from stmts sequence before calling vect_init_vector_1.
22215 Formatting fix.
22216
22217 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22218
22219 PR target/88833
22220 * fwprop.c (reg_single_def_p): New function.
22221 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22222 (forward_propagate_into): New parameter reg_prop_only
22223 with default value false.
22224 Propagate def's src into loop only if SET_SRC and SET_DEST
22225 of def_set have single definitions.
22226 Likewise if reg_prop_only is set to true.
22227 (fwprop): New param fwprop_addr_p.
22228 Integrate fwprop_addr into fwprop.
22229 (fwprop_addr): Remove.
22230 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22231 to true.
22232 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22233 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22234 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22235
22236 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22237
22238 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22239 in worksharing loop scans.
22240
22241 PR tree-optimization/91074
22242 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22243 temporary.
22244
22245 PR rtl-optimization/90756
22246 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22247 for VECTOR_TYPE_P.
22248
22249 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22250
22251 * config/aarch64/aarch64.md: Remove redundant constraints from
22252 define_expand but keep some patterns untouched if they are
22253 specially selected by TARGET_SECONDARY_RELOAD hook.
22254 * config/aarch64/aarch64-sve.md: Likewise.
22255 * config/aarch64/atomics.md: Remove redundant constraints from
22256 define_expand.
22257 * config/aarch64/aarch64-simd.md: Likewise.
22258
22259 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22260
22261 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22262 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22263 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22264 clauses.
22265 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22266 DARWIN_NOPIE_SPEC.
22267
22268 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22269
22270 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22271 (STARTFILE_SPEC): Split crt3 into a separate spec.
22272 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22273 (DARWIN_CRT2_SPEC): New.
22274 (DARWIN_CRT3_SPEC): New.
22275 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22276 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22277 (DARWIN_CRT3_SPEC): New.
22278
22279 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22280
22281 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22282 Change the RTL attribute "length" from "4" to "*" to allow the
22283 length attribute to be adjusted automatically for prefixed load,
22284 store, and add immediate instructions.
22285 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22286 Likewise.
22287 (extendsi<mode>2, EXTSI iterator): Likewise.
22288 (movsi_internal1): Likewise.
22289 (movsi_from_sf): Likewise.
22290 (movdi_from_sf_zero_ext): Likewise.
22291 (mov<mode>_internal): Likewise.
22292 (movcc_internal1, QHI iterator): Likewise.
22293 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22294 (movsf_from_si): Likewise.
22295 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22296 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22297 (mov<mode>, FMOVE128 iterator): Likewise.
22298 (movdi_internal64): Likewise.
22299 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22300 Likewise.
22301 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22302 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22303 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22304 (vsx_splat_v4sf): Likewise.
22305
22306 2019-07-03 Mark Wielaard <mark@klomp.org>
22307
22308 PR debug/90981
22309 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22310 DW_AT_addr_base if there is actually a .debug_addr section with
22311 addresses.
22312 (output_addr_table): Add DWARF5 table header generation here after
22313 checking there are actually any addresses from...
22314 (dwarf2out_finish): ...here.
22315
22316 2019-07-03 Richard Biener <rguenther@suse.de>
22317
22318 PR middle-end/91069
22319 * match.pd (vec_perm -> bit_insert): Fix element read from
22320 first vector.
22321
22322 2019-07-03 Martin Liska <mliska@suse.cz>
22323
22324 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22325 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22326 condition.
22327 * generic-match-head.c: Include dbgcnt.h.
22328 * gimple-match-head.c: Likewise.
22329
22330 2019-07-03 Martin Liska <mliska@suse.cz>
22331
22332 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22333 (GCOV_COUNTER_V_TOPN): New.
22334 (GCOV_COUNTER_V_INDIR): Use _topn.
22335 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22336 (GCOV_TOPN_VALUES): New.
22337 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22338 (GCOV_TOPN_VALUES_COUNTERS): New.
22339 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22340 * tree-profile.c:
22341 (gimple_init_gcov_profiler): Rename variables from one_value
22342 to topn_values.
22343 (gimple_gen_one_value_profiler): Remove.
22344 (gimple_gen_topn_values_profiler): New function.
22345 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22346 names instead of SINGLE_VALUE.
22347 (stream_out_histogram_value): Likewise.
22348 (stream_in_histogram_value): Likewise.
22349 (get_most_common_single_value): Likewise.
22350 (gimple_divmod_fixed_value_transform): Likewise.
22351 (gimple_stringops_transform): Likewise.
22352 (gimple_divmod_values_to_profile): Likewise.
22353 (gimple_stringops_values_to_profile): Likewise.
22354 (gimple_find_values_to_profile): Likewise.
22355 * value-prof.h (enum hist_type): Rename to TOPN.
22356 (gimple_gen_one_value_profiler): Remove.
22357 (gimple_gen_topn_values_profiler): New.
22358
22359 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22360
22361 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22362 if it has the DW_AT_data_member_location attribute.
22363
22364 2019-07-03 Richard Biener <rguenther@suse.de>
22365
22366 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22367 dumping.
22368
22369 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22370
22371 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22372 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22373 (tlsdesc_small_sve_<mode>): Likewise.
22374
22375 2019-07-03 Martin Liska <mliska@suse.cz>
22376
22377 * Makefile.in: Define ZSTD_LIB.
22378 * common.opt: Adjust compression level
22379 to support also zstd levels.
22380 * config.in: Regenerate.
22381 * configure: Likewise.
22382 * configure.ac: Add --with-zstd and --with-zstd-include options
22383 and detect ZSTD.
22384 * doc/install.texi: Mention zstd dependency.
22385 * gcc.c: Print supported LTO compression algorithms.
22386 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22387 (lto_compression_zstd): Likewise.
22388 (lto_uncompression_zstd): Likewise.
22389 (lto_end_compression): Dispatch in between zlib and zstd.
22390 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22391 (lto_uncompression_zlib): Make it static.
22392 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22393 * lto-section-in.c (lto_get_section_data): Pass info
22394 about used compression.
22395 * lto-streamer-out.c: By default use zstd when possible.
22396 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22397 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22398
22399 2019-07-03 Martin Liska <mliska@suse.cz>
22400
22401 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22402 * lto-section-out.c (lto_destroy_simple_output_block): Never
22403 compress LTO_section_lto section.
22404 * lto-streamer-out.c (produce_asm): Do not set major_version
22405 and minor_version.
22406 (lto_output_toplevel_asms): Likewise.
22407 (produce_lto_section): New function.
22408 (lto_output): Call produce_lto_section.
22409 (lto_write_mode_table): Do not set major_version and
22410 minor_version.
22411 (produce_asm_for_decls): Likewise.
22412 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22413 type.
22414 (struct lto_header): Remove.
22415 (struct lto_section): New struct.
22416 (struct lto_simple_header): Do not inherit from lto_header.
22417 (struct lto_file_decl_data): Add lto_section_header field.
22418
22419 2019-07-03 Martin Liska <mliska@suse.cz>
22420
22421 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22422 dead assignemts.
22423 * reg-stack.c (check_asm_stack_operands): Likewise.
22424 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22425 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22426 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22427 force_expand_binop.
22428
22429 2019-07-03 Martin Liska <mliska@suse.cz>
22430
22431 PR tree-optimization/90892
22432 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22433 in string constants.
22434
22435 2019-07-03 Martin Liska <mliska@suse.cz>
22436
22437 PR middle-end/90899
22438 * multiple_target.c (create_dispatcher_calls): Add to comdat
22439 group only if set for ifunc.
22440
22441 2019-07-03 Martin Liska <mliska@suse.cz>
22442
22443 PR target/88056
22444 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22445 Define local_object_name in outer scope in order to handle
22446 use-after-scope issue.
22447
22448 2019-07-03 Martin Liska <mliska@suse.cz>
22449
22450 * common.opt: Add fprofile-note.
22451 * coverage.c (coverage_init): Append the option
22452 to bbg_file_name.
22453 * doc/invoke.texi: Document -fprofile-note.
22454
22455 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22456
22457 PR tree-optimization/91033
22458 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22459 vect_analyze_data_refs): Add bool * arguments.
22460 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22461 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22462 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22463 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22464 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22465 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22466 vect_analyze_data_refs caller.
22467
22468 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22469 clause.
22470 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22471 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22472 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22473 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22474 OMP_CLAUSE__SCANTEMP_ entry.
22475 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22476 * tree-pretty-print.c (dump_omp_clause): Likewise.
22477 * tree-nested.c (convert_nonlocal_omp_clauses,
22478 convert_local_omp_clauses): Likewise.
22479 * omp-general.h (struct omp_for_data): Add have_scantemp and
22480 have_nonctrl_scantemp members.
22481 * omp-general.c (omp_extract_for_data): Initialize them.
22482 * omp-low.c (struct omp_context): Add scan_exclusive member.
22483 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22484 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22485 ctx->scan_exclusive.
22486 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22487 of !ctx->scan_inclusive.
22488 (lower_rec_input_clauses): Simplify gimplification of dtors using
22489 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22490 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22491 loops. Don't add barrier for reduction_omp_orig_ref if
22492 ctx->scan_??xclusive.
22493 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22494 (lower_omp_scan): Use ctx->scan_exclusive instead
22495 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22496 reductions. Use new_vard != new_var instead of repeated
22497 omp_is_reference calls.
22498 (omp_find_scan, lower_omp_for_scan): New functions.
22499 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22500 inscan reductions.
22501 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22502 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22503 and fd->have_scantemp.
22504
22505 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22506 on worksharing loop propagate it as shared clause to containing
22507 combined parallel.
22508
22509 * omp-expand.c (expand_omp_for_static_nochunk,
22510 expand_omp_for_static_chunk): For nowait worksharing loop with
22511 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22512 at the end.
22513
22514 2019-07-02 qing zhao <qing.zhao@oracle.com>
22515
22516 PR preprocessor/90581
22517 * doc/cppopts.texi: Add document for -fmax-include-depth.
22518 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22519
22520 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22521
22522 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22523 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22524 (mmx_packssdw): Ditto.
22525 (mmx_punpckhbw): Ditto.
22526 (mmx_punpcklbw): Ditto.
22527 (mmx_punpckhwd): Ditto.
22528 (mmx_punpcklwd): Ditto.
22529 (mmx_punpckhdq): Ditto.
22530 (mmx_punpckldq): Ditto.
22531 (*vec_dupv4hi): Ditto.
22532 (*vec_dupv2si): Ditto.
22533 (mmx_pmovmskb): Ditto.
22534 * config/i386/sse.md (sse_cvtpi2ps): Use
22535 TARGET_SSE2 && SSE_REG_P in split condition.
22536 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22537 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22538 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22539 (ssse3_pshufbv8qi3): Ditto.
22540 (ssse3_palignrdi): Ditto.
22541
22542 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22543
22544 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22545 with inlined save and restore.
22546
22547 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22548
22549 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22550 to be inserted on single successor edge of the entry block. Then call
22551 commit_edge_insertions instead of inserting the instructions manually.
22552 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22553 RTL expansion and rebuild jump labels chain.
22554
22555 2019-07-02 Richard Biener <rguenther@suse.de>
22556
22557 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22558 TI_CHREC_KNOWN.
22559 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22560 Define here.
22561 * tree.c (build_common_tree_nodes): Initialize them.
22562 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22563 Make declarations comments.
22564 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22565 chrec_known): Remove definitions.
22566 (initialize_scalar_evolutions_analyzer): Remove.
22567 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22568 * tree-streamer.c (preload_common_nodes): Do not preload
22569 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22570
22571 2019-07-02 Jan Hubicka <jh@suse.cz>
22572
22573 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22574 sanity check.
22575
22576 2019-07-02 Jan Hubicka <jh@suse.cz>
22577
22578 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22579 to ..
22580 (nonoverlapping_component_refs_since_match_p): ... this one;
22581 handle also non-decl bases; return -1 if search gave up.
22582 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22583 nonoverlapping_component_refs_of_decl_p_no_alias to
22584 nonoverlapping_component_refs_since_match_p_may_alias,
22585 nonoverlapping_component_refs_since_match_p_no_alias.
22586 (dump_alias_stats): Update dumping.
22587 (aliasing_matching_component_refs_p): Break out from ...;
22588 dispatch to nonoverlapping_component_refs_for_decl_p
22589 and nonoverlapping_component_refs_since_match_p.
22590 (aliasing_component_refs_p): ... here; call
22591 nonoverlapping_component_refs_p in scenarios where we can not
22592 precisely determine base match.
22593 (decl_refs_may_alias_p): Use
22594 nonoverlapping_component_refs_since_match_p.
22595 (indirect_ref_may_alias_decl_p): Do not call
22596 nonoverlapping_component_refs_p.
22597 (indirect_refs_may_alias_p): Likewise.
22598
22599 2019-07-02 Jan Hubicka <jh@suse.cz>
22600
22601 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22602 to clobber of return value.
22603
22604 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22605
22606 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22607 for is_neon_type instructions that have not already been categorized.
22608
22609 2019-07-02 Richard Biener <rguenther@suse.de>
22610
22611 PR tree-optimization/58483
22612 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22613 for MEM_REF base hashing.
22614 (equal_mem_array_ref_p): Likewise for base comparison.
22615
22616 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22617
22618 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22619 parameterized name.
22620 (signbit<mode>2): Use that name. Simplify.
22621
22622 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22623
22624 PR middle-end/66726
22625 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22626 Tune heuristic from PR71016 to allow MIN / MAX.
22627
22628 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22629
22630 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22631 parameterized name.
22632 (abs<mode>2): Use that name. Simplify.
22633
22634 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22635
22636 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22637 parameterized name.
22638 (neg<mode>2): Use that name. Simplify.
22639
22640 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22641
22642 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22643 name.
22644 (abs<mode>2): Use that name. Simplify.
22645
22646 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22647
22648 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22649 name.
22650 (neg<mode>2): Use that name. Simplify.
22651
22652 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22653
22654 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22655 ("enabled" attribute): Handle sse_noavx isa attribute.
22656 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22657 Use TARGET_SSE && SSE_REGNO_P in split condition.
22658 (*vec_dupv2sf): Ditto.
22659
22660 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22661
22662 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22663 name.
22664 (floatsi<mode>2): Use that name. Simplify.
22665
22666 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22667
22668 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22669 parameterized name.
22670 (extenddf<mode>2_vsx): Make this a parameterized name.
22671 (extenddf<mode>2): Use those names. Simplify.
22672
22673 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22674
22675 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22676 name.
22677 (eh_return): Use that name. Simplify.
22678
22679 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22680
22681 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22682 (doloop_end): Use that name. Simplify.
22683
22684 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22685
22686 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22687 parameterized name.
22688 (indirect_jump): Use that name. Simplify.
22689
22690 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22691
22692 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22693 parameterized name.
22694 (abs<mode>2): Use that name. Simplify.
22695
22696 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22697
22698 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22699 parameterized name.
22700 (fix_trunc<mode>si2): Use that name. Simplify.
22701
22702 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22703
22704 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22705 (allocate_stack): Use that name. Simplify.
22706
22707 2019-07-01 Martin Sebor <msebor@redhat.com>
22708
22709 PR middle-end/90923
22710 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22711 (hash_map::get_or_insert): Same. Reformat comment.
22712 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22713 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22714 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22715 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22716 (hash_table::hash_table (const hash_table&)): Use copy ctor
22717 instead of assignment to copy elements.
22718
22719 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22720 John David Anglin <danglin@gcc.gnu.org>
22721
22722 PR target/90963
22723 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22724 using saved frame pointer.
22725
22726 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22727
22728 PR middle-end/64242
22729 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22730 Add frame clobber and schedule blockage.
22731
22732 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22733
22734 * doc/invoke.texi (Link Options): Further editorial changes to
22735 -flinker-output docs.
22736
22737 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22738
22739 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22740 Load both operands of a PLUS into registers separately.
22741
22742 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22743
22744 * config/s390/vector.md: Fix shift count operand printing.
22745
22746 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22747
22748 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22749
22750 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22751
22752 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22753 Use recog_data to test for an output operand.
22754
22755 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22756
22757 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22758 exclude any others that are disparaged or that are bound to need
22759 a reload or spill.
22760 (ira_get_dup_out_num): Expand comment.
22761
22762 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22763
22764 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22765 constraint string for each operand/alternative combo. Only handle
22766 '%' at the start of constraint strings, and look for it outside
22767 the main loop.
22768
22769 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22770
22771 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22772 alternative_mask instead of HARD_REG_SET to represent a
22773 bitmask of alternatives.
22774 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22775 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22776
22777 2019-07-01 Martin Liska <mliska@suse.cz>
22778
22779 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22780 use () for a constructor call.
22781 (test_applying_fixits_line_out_of_range): Likewise.
22782 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22783 argument.
22784 (free_page): Likewise.
22785
22786 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22787
22788 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22789 parameter names to match usage (no functional change).
22790 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22791
22792 2019-07-01 Richard Biener <rguenther@suse.de>
22793
22794 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22795 pass parameter.
22796 (pass_fre::execute): Honor it.
22797 * passes.def: Adjust pass_fre invocations to allow iterating,
22798 add non-iterating pass_fre before late threading/dom.
22799
22800 2019-07-01 Richard Biener <rguenther@suse.de>
22801
22802 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22803 TARGET_MEM_REF handling to also handle address-taken ones.
22804
22805 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22806
22807 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22808 hardware attributes): Document avx512vp2intersect.
22809
22810 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22811
22812 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22813 (abs<mode>2): New expander.
22814 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22815 Use CODE_FOR_ssse3_absv8qi2.
22816 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22817 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22818
22819 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22820
22821 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22822 to sse, sse_noavx and avx. Update all uses.
22823
22824 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22825
22826 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22827 (*mmx_<plusminus_insn><mode>3): Ditto.
22828 (*mmx_mulv4hi3"): Ditto.
22829 (*mmx_smulv4hi3_highpart): Ditto.
22830 (*mmx_umulv4hi3_highpart): Ditto.
22831 (*mmx_pmaddwd): Ditto.
22832 (*sse2_umulv1siv1di3): Ditto.
22833 (*mmx_<code>v4hi3): Ditto.
22834 (*mmx_<code>v8qi3): Ditto.
22835 (mmx_ashr<mode>3): Ditto.
22836 ("mmx_<shift_insn><mode>3): Ditto.
22837 (*mmx_eq<mode>3): Ditto.
22838 (mmx_gt<mode>3): Ditto.
22839 (mmx_andnot<mode>3): Ditto.
22840 (*mmx_<code><mode>3): Ditto.
22841 (*mmx_pinsrw): Ditto.
22842 (*mmx_pextrw): Ditto.
22843 (mmx_pshufw_1): Ditto.
22844 (*mmx_uavgv8qi3): Ditto.
22845 (*mmx_uavgv4hi3): Ditto.
22846 ("mmx_psadbw): Ditto.
22847 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22848 (sse_cvttps2pi): Ditto.
22849 (ssse3_pmaddubsw): Ditto.
22850 (*ssse3_pmulhrswv4hi3): Ditto.
22851 (ssse3_psign<mode>3): Ditto.
22852
22853 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22854
22855 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22856 adjustment for bit-fields to all aggregate types.
22857
22858 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22859
22860 * config/rs6000/predicates.md (pcrel_address): Use
22861 SYMBOL_REF_LOCAL_P to determine if a label is local.
22862 (pcrel_external_address): New predicate.
22863 (non_prefixed_mem_operand): Delete, predicate not used.
22864 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22865 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22866 addressing.
22867 (SYMBOL_REF_PCREL_P): Likewise.
22868
22869 PR target/91009
22870 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22871 alternative.
22872 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22873 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22874 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22875
22876 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22877
22878 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22879 override on extra_headers.
22880
22881 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22882
22883 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22884 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22885 from warning.
22886 (darwin_driver_init): Likewise.
22887
22888 2019-06-28 Jan Beulich <jbeulich@suse.com>
22889
22890 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22891 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22892 Eliminate redundant alternative.
22893
22894 2019-06-28 Jan Beulich <jbeulich@suse.com>
22895
22896 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22897 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22898 Use vector_operand.
22899
22900 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22901
22902 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22903 having a lower cost regardless of the speed option.
22904
22905 2019-06-28 Jan Beulich <jbeulich@suse.com>
22906
22907 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22908 vector_operand plus, on both alternatives, "Bm" constraint.
22909
22910 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22911
22912 * config/arm/arm.md: Remove redundant constraints from
22913 define_expand but leave reload_inm and reload_outm patterns
22914 untouched since they need special constraints to work.
22915 * config/arm/arm-fixed.md: Remove redundant constraints from
22916 define_expand.
22917 * config/arm/iwmmxt.md: Likewise.
22918 * config/arm/neon.md: Likewise.
22919 * config/arm/sync.md: Likewise.
22920 * config/arm/thumb1.md: Likewise.
22921 * config/arm/vec-common.md: Likewise.
22922
22923 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22924
22925 * doc/install.texi: Document --disable-tm-clone-registry.
22926
22927 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22928
22929 PR c++/91024
22930 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22931 statements.
22932
22933 PR tree-optimization/91010
22934 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22935 return true. Otherwise, don't call operand_equal_p if offset1 or
22936 offset2 is NULL and just return false.
22937
22938 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22939
22940 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22941 user-specified float mode choice for kernel mode code.
22942
22943 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22944
22945 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22946 spec.
22947
22948 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22949
22950 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22951 use longcall for 64b code.
22952
22953 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22954
22955 * builtins.c (get_memory_rtx): Fix comment.
22956 * optabs.def (movmem_optab): Change to cpymem_optab.
22957 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22958 (emit_block_move_hints): Change movmem to cpymem.
22959 * defaults.h: Change movmem to cpymem.
22960 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22961 (default_use_by_pieces_infrastructure_p): Ditto.
22962 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22963 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22964 to cpymem.
22965 * config/aarch64/aarch64.h: Change movmem to cpymem.
22966 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22967 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22968 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22969 movmem to cpymem.
22970 * config/arc/arc-protos.h: Change movmem to cpymem.
22971 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22972 * config/arc/arc.h: Change movmem to cpymem in comment.
22973 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22974 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22975 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22976 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22977 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22978 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22979 * config/avr/avr-protos.h: Change movmem to cpymem.
22980 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22981 avr_out_movmem): Change movmem to cpymem.
22982 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22983 Change movmem to cpymem.
22984 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22985 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22986 Change movmem to cpymem.
22987 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22988 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22989 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22990 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22991 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22992 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22993 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22994 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22995 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22996 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22997 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22998 expand_small_cpymem_or_setmem,
22999 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23000 expand_set_or_cpymem_constant_prologue,
23001 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23002 * config/i386/i386-protos.h: Change movmem to cpymem.
23003 * config/i386/i386.h: Change movmem to cpymem in comment.
23004 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23005 (setmem<mode>): Change expansion function name.
23006 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23007 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23008 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23009 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23010 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23011 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23012 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23013 to cpymem.
23014 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23015 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23016 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23017 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23018 Change movmem to cpymem.
23019 * config/mips/mips.h: Change movmem to cpymem.
23020 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23021 * config/nds32/nds32-memory-manipulation.c
23022 (nds32_expand_movmemsi_loop_unknown_size,
23023 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23024 nds32_expand_movmemsi_unroll,
23025 nds32_expand_movmemsi): Change movmem to cpymem.
23026 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23027 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23028 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23029 (pa_adjust_insn_length): Change call to compute_movmem_length.
23030 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23031 movmemdi, movmemdi_prereload,
23032 movmemdi_postreload): Change movmem to cpymem.
23033 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23034 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23035 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23036 * config/riscv/riscv.h: Change movmem to cpymem.
23037 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23038 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23039 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23040 movmem to cpymem.
23041 * config/s390/s390-protos.h: Change movmem to cpymem.
23042 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23043 s390_expand_insv): Change movmem to cpymem.
23044 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23045 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23046 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23047 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23048 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23049 for nonexistent function.
23050 * config/vax/vax.h: Change movmem to cpymem in comment.
23051 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23052 * config/visium/visium.h: Change movmem to cpymem in comment.
23053 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23054 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23055 * doc/md.texi: Change movmem to cpymem and update description to match.
23056 * doc/rtl.texi: Change movmem to cpymem.
23057 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23058 * doc/tm.texi: Regenerate.
23059
23060 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23061
23062 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23063 -fvariable-expansion-in-unroller by default.
23064 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23065 default for Power.
23066
23067 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23068
23069 Revert
23070 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23071 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23072
23073 * config.gcc(rs6000-*-*): Define target_gtfiles.
23074
23075 2019-06-27 Jan Hubicka <jh@suse.cz>
23076
23077 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23078 (add_type_duplicate): When odr hash is not allocated, to nothing.
23079 (odr_based_tbaa_p): New function.
23080 (set_type_canonical_for_odr_type): New function.
23081 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23082 set_type_canonical_for_odr_type): New.
23083 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23084 ODR based TBAA are not equivalent to non-ODR types.
23085
23086 2019-06-27 Martin Liska <mliska@suse.cz>
23087
23088 PR tree-optimization/90974
23089 PR rtl-optimization/90975
23090 PR rtl-optimization/90976
23091 PR target/91016
23092 PR tree-optimization/91017
23093 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23094 unused tmp.
23095 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23096 initial commit of IRA.
23097 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23098 of op0 and op1.
23099 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23100 Remove unused mode1.
23101 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23102 to new_stmt_info.
23103
23104 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23105
23106 PR target/90991
23107 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23108 instead of register_operand for operands[1], add m to its constraints
23109 if operands[2] uses "C" constraint. Ensure in condition that if
23110 operands[2] is not 0, then operands[1] is not a MEM. For last two
23111 alternatives, use unaligned loads instead of aligned if operands[1] is
23112 misaligned_operand.
23113
23114 2019-06-27 Martin Liska <mliska@suse.cz>
23115
23116 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23117 dead assignments.
23118 * bt-load.c (move_btr_def): Likewise.
23119 * builtins.c (expand_builtin_apply_args_1): Likewise.
23120 (expand_builtin_apply): Likewise.
23121 * cfgexpand.c (expand_asm_stmt): Likewise.
23122 (construct_init_block): Likewise.
23123 * cfghooks.c (verify_flow_info): Likewise.
23124 * cfgloopmanip.c (remove_path): Likewise.
23125 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23126 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23127 * combine.c (simplify_if_then_else): Likewise.
23128 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23129 (choose_basereg): Likewise.
23130 (ix86_expand_prologue): Likewise.
23131 (ix86_preferred_output_reload_class): Likewise.
23132 * cselib.c (cselib_record_sets): Likewise.
23133 * df-scan.c (df_scan_alloc): Likewise.
23134 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23135 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23136 * emit-rtl.c (try_split): Likewise.
23137 * graphite-scop-detection.c (assign_parameter_index_in_region):
23138 Likewise.
23139 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23140 * ira-color.c (setup_profitable_hard_regs): Likewise.
23141 * ira.c (rtx_moveable_p): Likewise.
23142 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23143 * read-rtl.c (read_subst_mapping): Likewise.
23144 * regrename.c (scan_rtx): Likewise.
23145 * reorg.c (fill_slots_from_thread): Likewise.
23146 * tree-inline.c (tree_function_versioning): Likewise.
23147 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23148 * tree-ssa-sink.c (statement_sink_location): Likewise.
23149 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23150 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23151 (vect_create_epilog_for_reduction): Likewise.
23152 * tree.c (build_nonstandard_integer_type): Likewise.
23153
23154 2019-06-27 Richard Biener <rguenther@suse.de>
23155
23156 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23157
23158 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23159
23160 PR tree-optimization/89772
23161 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23162 out-of-bound accesses checking.
23163
23164 2019-06-27 Martin Liska <mliska@suse.cz>
23165
23166 PR tree-optimization/91014
23167 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23168 when LHS is NULL_TREE.
23169
23170 2019-06-27 Martin Liska <mliska@suse.cz>
23171
23172 * symbol-summary.h (traverse): Pass
23173 argument a to the call of callback.
23174 (gt_ggc_mx): Mark arguments as unused.
23175 (gt_pch_nx): Likewise.
23176
23177 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23178
23179 PR target/62147
23180 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23181 finiteness.
23182
23183 2019-06-26 Jeff Law <law@redhat.com>
23184
23185 PR tree-optimization/90883
23186 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23187 (delete_dead_or_redundant_assignment): Likewise.
23188
23189 PR tree-optimization/90883
23190 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23191 * tree-ssa-dse.c: Update various comments to distinguish between
23192 dead and redundant stores.
23193 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23194 (dse_optimize_redundant_stores): New function.
23195 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23196 Distinguish between dead and redundant calls in dump output. All
23197 callers updated.
23198 (delete_dead_or_redundant_assignment): Similarly for assignments.
23199 (dse_optimize_stmt): Handle _CHK variants. For statements which
23200 store 0 into multiple memory locations, try to prove a subsequent
23201 store is redundant.
23202
23203 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23204
23205 PR target/89021
23206 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23207 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23208
23209 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23210
23211 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23212 (branch_islands): New extern.
23213 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23214 * config/rs6000/rs6000.c: .. here.
23215
23216 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23217
23218 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23219 (powerpc*-*-*) ... to here.
23220
23221 2019-06-26 Jeff Law <law@redhat.com>
23222
23223 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23224 memcpy, memmove and memset builtins.
23225 (maybe_trim_memstar_call): Likewise.
23226
23227 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23228
23229 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23230
23231 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23232
23233 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23234
23235 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23236
23237 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23238 declaration.
23239 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23240 "static".
23241 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23242 declaration.
23243
23244 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23245
23246 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23247
23248 2019-06-26 Richard Biener <rguenther@suse.de>
23249
23250 PR ipa/90982
23251 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23252
23253 2019-06-26 Richard Biener <rguenther@suse.de>
23254
23255 * lto-streamer.h (lto_bitmap_alloc): Remove.
23256 (lto_bitmap_free): Likewise.
23257 * lto-streamer.c (lto_bitmap_alloc): Remove.
23258 (lto_bitmap_free): Likewise.
23259 (lto_obstack): Likewise.
23260 (lto_obstack_initialized): Likewise.
23261 * lto-streamer-out.c (lto_output): Use own obstack for local
23262 bitmap, free it consistently.
23263
23264 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23265
23266 PR target/90991
23267 * config/i386/sse.md
23268 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23269 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23270 insns if operands[2] is misaligned_operand.
23271
23272 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23273
23274 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23275 TARGET_POWERPC64.
23276 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23277 to GPR.
23278
23279 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23280
23281 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23282
23283 2019-06-26 Martin Liska <mliska@suse.cz>
23284
23285 PR tree-optimization/90973
23286 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23287 epilogue_cost_vec instead of prologue_cost_vec for
23288 a epilogue cost.
23289
23290 2019-06-26 Martin Liska <mliska@suse.cz>
23291
23292 * bb-reorder.c (connect_better_edge_p): Add missing else
23293 statement in the middle of if-else statements.
23294
23295 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23296 H.J. Lu <hongjiu.lu@intel.com>
23297 Olga Makhotina <olga.makhotina@intel.com>
23298
23299 * common/config/i386/i386-common.c
23300 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23301 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23302 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23303 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23304 (ix86_handle_option): Handle -mavx512vp2intersect.
23305 * config/i386/avx512vp2intersectintrin.h: New.
23306 * config/i386/avx512vp2intersectvlintrin.h: New.
23307 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23308 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23309 AVX512VP2INTERSECT.
23310 * config/i386/i386-builtin-types.def: Add new types.
23311 * config/i386/i386-builtin.def: Add new builtins.
23312 * config/i386/i386-builtins.c: (enum processor_features): Add
23313 F_AVX512VP2INTERSECT.
23314 (static const _isa_names_table isa_names_table): Ditto.
23315 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23316 __AVX512VP2INTERSECT__.
23317 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23318 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23319 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23320 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23321 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23322 * config/i386/i386-options.c (ix86_target_string): Add
23323 -mavx512vp2intersect.
23324 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23325 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23326 P2HImode and P2QImode.
23327 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23328 number for P2QImode and P2HImode.
23329 (ix86_regmode_natural_size): New function.
23330 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23331 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23332 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23333 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23334 * config/i386/i386.opt: Add -mavx512vp2intersect.
23335 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23336 avx512vp2intersectvlintrin.h.
23337 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23338 (define_mode_iterator VI48_AVX512VP2VL): New.
23339 (avx512vp2intersect_2intersect<mode>,
23340 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23341 * config.gcc: Add avx512vp2intersectvlintrin.h and
23342 avx512vp2intersectintrin.h to extra_headers.
23343 * doc/invoke.texi: Document -mavx512vp2intersect.
23344
23345 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23346
23347 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23348
23349 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23350
23351 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23352 savres_routine_syms, savres_routine_name, morestack_ref,
23353 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23354 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23355 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23356 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23357 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23358 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23359 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23360 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23361 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23362 get_stack_clash_protection_probe_interval,
23363 get_stack_clash_protection_guard_size,
23364 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23365 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23366 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23367 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23368 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23369 gen_frame_mem_offset, rs6000_savres_routine_name,
23370 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23371 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23372 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23373 rs6000_global_entry_point_prologue_needed_p,
23374 rs6000_get_separate_components, rs6000_components_for_bb,
23375 rs6000_disqualify_components, rs6000_emit_prologue_components,
23376 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23377 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23378 rs6000_output_savres_externs, rs6000_output_function_prologue,
23379 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23380 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23381 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23382 rs6000_output_function_epilogue, gen_add3_const,
23383 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23384 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23385 to rs6000-logue.c.
23386 (machine_function): Moved to rs6000.h.
23387 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23388 rs6000-internal.h.
23389 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23390 savres_routine_syms, savres_routine_name, morestack_ref,
23391 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23392 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23393 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23394 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23395 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23396 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23397 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23398 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23399 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23400 get_stack_clash_protection_probe_interval,
23401 get_stack_clash_protection_guard_size,
23402 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23403 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23404 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23405 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23406 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23407 gen_frame_mem_offset, rs6000_savres_routine_name,
23408 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23409 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23410 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23411 rs6000_global_entry_point_prologue_needed_p,
23412 rs6000_get_separate_components, rs6000_components_for_bb,
23413 rs6000_disqualify_components, rs6000_emit_prologue_components,
23414 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23415 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23416 rs6000_output_savres_externs, rs6000_output_function_prologue,
23417 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23418 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23419 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23420 rs6000_output_function_epilogue, gen_add3_const,
23421 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23422 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23423 to here from rs6000.c.
23424 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23425 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23426 quad_address_offset_p) Moved to here from rs6000.c.
23427 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23428 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23429 collector.
23430
23431 2019-06-25 Martin Liska <mliska@suse.cz>
23432
23433 * hash-table.c (hashtab_chk_error): Move here from ...
23434 * hash-table.h (hashtab_chk_error): ... here.
23435
23436 2019-06-25 Martin Liska <mliska@suse.cz>
23437
23438 PR tree-optimization/90978
23439 * df-scan.c (df_update_entry_block_defs): Remove dead else
23440 branch.
23441 (df_update_exit_block_uses): Likewise.
23442
23443 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23444 Andrew Stubbs <ams@codesourcery.com>
23445
23446 * config.gcc (thread_file): Set to gcn for AMD GCN.
23447 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23448 (TARGET_EMUTLS_VAR_INIT): New hook.
23449
23450 2019-06-25 Martin Jambor <mjambor@suse.cz>
23451
23452 PR ipa/90939
23453 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23454
23455 2019-06-25 Richard Biener <rguenther@suse.de>
23456
23457 PR tree-optimization/90930
23458 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23459 into parallel form in the last pass instance.
23460
23461 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23462
23463 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23464 (arc_legitimize_pic_address): Simplify and cleanup the function.
23465 (SYMBOLIC_CONST): Remove.
23466 (prepare_pic_move): Likewise.
23467 (prepare_move_operands): Handle complex mov cases here.
23468 (arc_legitimize_address_0): Remove call to
23469 arc_legitimize_pic_address.
23470 (arc_legitimize_address): Remove call to
23471 arc_legitimize_tls_address.
23472 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23473 (movhi_insn): Likewise.
23474
23475 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23476
23477 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23478 PTRDIFF_TYPE.
23479 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23480 format of "__intN" types for UINTMAX_TYPE.
23481 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23482 format of "__intN" types for SIZETYPE.
23483 * tree.c (build_common_tree_nodes): Accept "__intN__"
23484 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23485 * doc/invoke.texi: Document that __intN__ disables pedantic
23486 warnings.
23487
23488 2019-06-25 Jan Hubicka <jh@suse.cz>
23489
23490 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23491 base2_alias_set is non-zero before doing TBAA based disambiguation.
23492
23493 2019-06-25 Martin Liska <mliska@suse.cz>
23494
23495 PR tree-optimization/90973
23496 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23497 of prologue and epilogue.
23498
23499 2019-06-24 Jan Hubicka <jh@suse.cz>
23500
23501 * ipa-utils.h (type_with_linkage_p): Verify that type is
23502 CXX_ODR_P.
23503 (odr_type_p): Remove extra return.
23504 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23505 hash STRING_FLAG only for arrays and integers.
23506 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23507 Update analogously.
23508 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23509 Likewise.
23510 * print-tree.c (print_node): Print cxx-odr-p
23511 and string-flag.
23512 * tree.c (need_assembler_name_p): Also check that type
23513 is CXX_ODR_TYPE_P
23514 (verify_type_variant): Update verification of SRING_FLAG;
23515 also check CXX_ODR_P.
23516 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23517 (TYPE_STRING_FLAG): Use it.
23518 (TYPE_CXX_ODR_P): New macro.
23519 * dwarf2out.c (gen_array_type_die): First check that type
23520 is an array and then test string flag.
23521
23522 2019-06-24 Richard Biener <rguenther@suse.de>
23523
23524 PR tree-optimization/90972
23525 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23526 in common code, dealing with STRING_CST properly.
23527
23528 2019-06-24 Richard Biener <rguenther@suse.de>
23529
23530 PR tree-optimization/90930
23531 PR tree-optimization/90316
23532 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23533 decrement of limit.
23534
23535 2019-06-24 Martin Sebor <msebor@redhat.com>
23536
23537 * tree-pretty-print.h: Remove unnecessary punctuation characters
23538 from a diagnostic.
23539 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23540
23541 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23542
23543 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23544 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23545 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23546
23547 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23548
23549 * config/rs6000/darwin.h: Handle GCC target pragma.
23550
23551 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23552
23553 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23554
23555 2019-06-22 Jeff Law <law@redhat.com>
23556
23557 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23558
23559 2019-06-22 Jan Hubicka <jh@suse.cz>
23560
23561 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23562 give up on bitfields; continue searching for different refs
23563 appearing later.
23564
23565 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23566
23567 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23568 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23569 containing the offset as possible simd lane access. Look through
23570 widening conversion. Move the
23571 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23572
23573 2019-06-21 Richard Biener <rguenther@suse.de>
23574
23575 PR tree-optimization/90930
23576 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23577 flag on new stmts to avoid re-processing them.
23578
23579 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23580
23581 PR c++/90875 - added -Wswitch-outside-range option
23582 * doc/invoke.texi (Wswitch-outside-range): Document.
23583
23584 2019-06-21 Jeff Law <law@redhat.com>
23585
23586 PR tree-optimization/90949
23587 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23588 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23589
23590 2019-06-21 Richard Biener <rguenther@suse.de>
23591
23592 PR debug/90914
23593 * dwarf2out.c (prune_unused_types_walk): Always consider
23594 function-local extern declarations as used.
23595
23596 2019-06-21 Richard Biener <rguenther@suse.de>
23597
23598 PR tree-optimization/90913
23599 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23600 the scalar variant of if-conversion versioning.
23601
23602 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23603
23604 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23605 create another "omp scan inscan exclusive" array if
23606 !ctx->scan_inclusive.
23607 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23608 (lower_omp_scan): Likewise.
23609 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23610 2-bit bitfield for simd_lane_access_p member.
23611 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23612 aux == (void *)-4 as simd lane access.
23613 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23614 comment with permutations to show the canonical permutation order.
23615 (vectorizable_scan_store): Handle exclusive scan.
23616 (vectorizable_store): Call vectorizable_scan_store even for
23617 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23618
23619 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23620 "omp simd array" arrays with one byte elements.
23621
23622 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23623
23624 * config/alpha/alpha.md (@unaligned_store<mode>):
23625 Rename from unaligned_store<mode>.
23626 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23627 * config/alpha/sync.md (@load_locked_<mode>): Rename
23628 from load_locked_<mode>.
23629 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23630 (@atomic_compare_and_swap<mode>_1): Rename
23631 from atomic_compare_and_swap<mode>_1.
23632 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23633 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23634 Use gen_reload_in_aligned and gen_unaligned_store.
23635 (emit_load_locked): Remove.
23636 (emit_store_conditional): Ditto.
23637 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23638 (alpha_split_compare_and_swap): Ditto.
23639 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23640 (alpha_split_compare_and_swap_12): Use gen_load_locked
23641 and gen_store_conditional.
23642 (alpha_split_atomic_exchange): Ditto.
23643 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23644 (alpha_split_atomic_exchange_12): Use gen_load_locked
23645 and gen_store_conditional.
23646
23647 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23648
23649 * config/aarch64/aarch64-errata.h: New file.
23650 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23651 (CA53_ERR_843419_SPEC): Delete.
23652 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23653 * config/aarch64/aarch64-linux.h: Likewise.
23654 * config/aarch64/aarch64-netbsd.h: Likewise.
23655 * config/aarch64/aarch64-freebsd.h: Likewise.
23656
23657 2019-06-20 Marek Polacek <polacek@redhat.com>
23658
23659 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23660
23661 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23662
23663 * config/rs6000/rs6000.md (isa attribute): Add support for
23664 for a future processor.
23665
23666 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23667
23668 PR target/54855
23669 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23670 standard scalar operation pattern for V2DF.
23671 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23672 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23673 (*ieee_<ieee_maxmin><mode>3): Likewise.
23674 (vec_setv2df_0): Likewise.
23675
23676 2019-06-20 Jan Hubicka <jh@suse.cz>
23677
23678 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23679 parameter; it has no use in gimple memory model.
23680 (indirect_ref_may_alias_decl_p): Update.
23681
23682 2019-06-20 Martin Liska <mliska@suse.cz>
23683
23684 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23685 to 10.
23686
23687 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23688
23689 * tree-vect-stmts.c (enum scan_store_kind): New type.
23690 (scan_store_can_perm_p): Change last argument from int * to
23691 vec<enum scan_store_kind> *, record precisely which permutations
23692 need whole vector left shift or that plus VEC_COND_EXPR.
23693 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23694 and additional VEC_COND_EXPR only for those iterations that need it.
23695
23696 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23697
23698 * config.gcc: Fix ARM --with-fpu checking and error message.
23699
23700 2019-06-19 Marek Polacek <polacek@redhat.com>
23701
23702 PR c++/60364 - noreturn after first decl not diagnosed.
23703 * attribs.c (get_attribute_namespace): No longer static.
23704 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23705 attributes.
23706 (attr_noreturn_exclusions): Make it extern.
23707 * attribs.h (get_attribute_namespace): Declare.
23708 * tree-inline.c (function_attribute_inlinable_p): Use
23709 get_attribute_name.
23710
23711 2019-06-19 Martin Sebor <msebor@redhat.com>
23712
23713 PR tree-optimization/90626
23714 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23715
23716 PR tree-optimization/90626
23717 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23718 (handle_builtin_string_cmp): Call it.
23719
23720 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23721
23722 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23723 and DARWIN_NOPIE_SPEC.
23724 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23725 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23726 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23727 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23728 (DARWIN_EXPORT_DYNAMIC): Delete.
23729 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23730 and pie options processing to darwin.h.
23731 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23732
23733 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23734
23735 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23736 in computing the number of options to be moved.
23737
23738 2019-06-19 Maya Rashish <coypu@sdf.org>
23739
23740 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23741 (CLEAR_INSN_CACHE) Use it.
23742
23743 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23744
23745 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23746
23747 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23748
23749 PR middle-end/84521
23750 * builtins.c (expand_builtin_setjmp_setup): Save
23751 hard_frame_pointer_rtx.
23752 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23753 restore fp.
23754 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23755 non-local goto.
23756 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23757 elimination code.
23758 (remove_reg_equal_offset_note): Remove unused function.
23759 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23760 code.
23761 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23762 (arc_builtin_setjmp_frame_value): Remove function.
23763 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23764 (avr_builtin_setjmp_frame_value): Remove function.
23765 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23766 (ix86_builtin_setjmp_frame_value): Remove function.
23767 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23768 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23769 (sparc_builtin_setjmp_frame_value): Remove function.
23770 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23771 (vax_builtin_setjmp_frame_value): Remove function.
23772 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23773 pointer if has_nonlocal_label.
23774
23775 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23776
23777 * doc/md.texi: Document vec_shl_<mode> pattern.
23778 * optabs.def (vec_shl_optab): New optab.
23779 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23780 argument, if == vec_shl_optab, check for left whole vector shift
23781 pattern rather than right shift.
23782 (expand_vec_perm_const): Add vec_shl_optab support.
23783 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23784 in the comment.
23785 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23786 can be handled by vec_shl_optab.
23787 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23788 (check_scan_store): Use it.
23789 (vectorizable_scan_store): If target can't do normal permutations,
23790 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23791 after it.
23792 * config/i386/sse.md (vec_shl_<mode>): New expander.
23793
23794 * omp-low.c (lower_rec_input_clauses): Handle references properly
23795 in inscan clauses.
23796 (lower_omp_scan): Likewise.
23797
23798 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23799
23800 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23801 mem_mode is BLKmode.
23802
23803 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23804
23805 PR target/90922
23806 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23807 pointer adjustment for the case of no callee-saved registers and
23808 stack frame bigger than 128 bytes.
23809
23810 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23811
23812 PR middle-end/90862
23813 * omp-low.c (check_omp_nesting_restrictions): Handle
23814 GF_OMP_TARGET_KIND_OACC_DECLARE.
23815
23816 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23817
23818 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23819 (@add<mode>3_carry): Rename from add<mode>3_carry.
23820 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23821 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23822 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23823 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23824 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23825 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23826 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23827 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23828 (cmpstrnsi): Use gen_cmp_1.
23829 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23830 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23831 (@umonitor_<mode>): Rename from umonitor_<mode>.
23832 * config/i386/i386-expand.c (ix86_expand_copysign):
23833 Use gen_copysign3_const and gen_copysign3_var.
23834 (ix86_expand_xorsign): Use gen_xorsign3_1.
23835 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23836 gen_sub3_carry_ccgz and gen_cmp1.
23837 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23838 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23839 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23840 (ix86_split_lshr): Ditto.
23841 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23842
23843 2019-06-18 Jason Merrill <jason@redhat.com>
23844
23845 * tree.c (build_constructor): Add MEM_STAT_DECL.
23846
23847 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23848
23849 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23850 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23851 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23852 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23853 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23854 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23855 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23856 Use CC_NZC instead of CC.
23857 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23858 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23859 (aarch64_print_operand): Handle E_CC_NZCmode.
23860 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23861 of gen_set_clobber_cc.
23862
23863 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23864
23865 * config/aarch64/aarch64-sve.md: Tabify file.
23866
23867 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23868
23869 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23870 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23871 * config/aarch64/aarch64-sve.md: Use it.
23872
23873 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23874
23875 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23876 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23877 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23878 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23879 (aarch64_expand_sve_vec_cmp_int): Use it.
23880 (aarch64_expand_sve_vec_cmp_float): Likewise.
23881 * config/aarch64/aarch64-sve.md: Likewise throughout.
23882
23883 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23884 Kugan Vivekanandarajah <kuganv@linaro.org>
23885
23886 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23887 (*cond_<optab><mode>_z): Fold into...
23888 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23889 operand 4 can be tied to operand 0 (either inherently or via RA).
23890
23891 2019-06-18 Richard Biener <rguenther@suse.de>
23892
23893 PR debug/90900
23894 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23895 as if optimized away.
23896
23897 2019-06-18 Tom de Vries <tdevries@suse.de>
23898
23899 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23900 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23901 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23902 Rename to ...
23903 (define_insn "@set_softstack_<mode>"): ... this.
23904 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23905 (define_insn "@omp_simt_enter_<mode>"): ... this.
23906 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23907 (define_insn "@omp_simt_exit_<mode>"): ... this.
23908
23909 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23910
23911 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23912 vf parameter. Restore the previous iv step of nscalars_step,
23913 but give it iv_type rather than compare_type. Tweak code order
23914 to match the comments.
23915 (vect_set_loop_condition_masked): Update accordingly.
23916 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23917 for iv_precision. Tweak comment formatting.
23918
23919 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23920
23921 * config/darwin.c: Strip trailing whitespace.
23922
23923 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23924
23925 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23926 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23927
23928 2019-06-18 Martin Jambor <mjambor@suse.cz>
23929
23930 PR ipa/90889
23931 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23932 caller does not have flag_ipa_cp set.
23933
23934 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23935
23936 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23937 from "*fold_left_plus_<mode>", updated operands order.
23938 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23939 * internal-fn.c (mask_fold_left_direct): New define.
23940 (expand_mask_fold_left_optab_fn): Likewise.
23941 (direct_mask_fold_left_optab_supported_p): Likewise.
23942 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23943 * optabs.def (mask_fold_left_plus_optab): New optab.
23944 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23945 masked internal_fn for a reduction ifn.
23946 (vectorize_fold_left_reduction): Add support for masking reductions.
23947
23948 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23949
23950 PR middle-end/80791
23951 * target.def (predict_doloop_p): New hook.
23952 * targhooks.h (default_predict_doloop_p): New declaration.
23953 * targhooks.c (default_predict_doloop_p): New function.
23954 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23955 * doc/tm.texi: Regenerate.
23956 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23957 (TARGET_PREDICT_DOLOOP_P): New macro.
23958 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23959
23960 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23961
23962 * omp-low.c (struct omp_context): Add scan_inclusive field.
23963 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23964 if inclusive scan.
23965 (struct omplow_simd_context): Add lastlane member.
23966 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23967 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23968 1 or 2 argument.
23969 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23970 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23971 (lower_omp_scan): New function.
23972 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23973 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23974 check 3rd argument if present rather than 2nd.
23975 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23976 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23977 2-bit bitfield.
23978 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23979 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23980 than 2nd.
23981 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23982 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23983 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23984 init.
23985 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23986 IFN_GOMP_SIMD_LANE argument.
23987 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23988 encoded ->aux value.
23989 * tree-vect-stmts.c: Include attribs.h.
23990 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23991 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23992 functions.
23993 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23994 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23995
23996 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23997
23998 PR target/62055
23999 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24000 (*nabs<mode>2_1): Ditto.
24001 (nabs sse-reg splitter): New splitter.
24002 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24003
24004 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24005
24006 PR bootstrap/90873.
24007 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24008 TMR index check.
24009
24010 2019-06-17 Tom de Vries <tdevries@suse.de>
24011
24012 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24013 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24014 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24015 ...
24016 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24017 match_operand 0.
24018 (define_insn "omp_simt_enter_insn"): Rename to ...
24019 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24020 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24021 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24022 gen_omp_simt_enter_si.
24023 (define_expand "omp_simt_exit"): New.
24024 (define_insn "omp_simt_exit"): Rename to ...
24025 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24026 match_operand 0.
24027
24028 2019-06-17 Matthew Green <mrg@eterna.com.au>
24029 Maya Rashish <coypu@sdf.org>
24030
24031 * config.gcc (aarch64*-*-netbsd*): New target.
24032 * config/aarch64/aarch64-netbsd.h: New file.
24033 * config/aarch64/t-aarch64-netbsd: Likewise.
24034
24035 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24036
24037 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24038 the access path from base to first VIEW_CONVERT_EXPR or
24039 BIT_FIELD_REF.
24040
24041 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24042
24043 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24044 access path on BIT_FIELD_REFs.
24045
24046 2019-06-17 Martin Liska <mliska@suse.cz>
24047
24048 PR ipa/90874
24049 * ipa-utils.h (odr_type_p): Remove dead code.
24050
24051 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24052
24053 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24054 alternative Solaris 11.4 format.
24055 * configure: Regenerate.
24056
24057 2019-06-17 Tom de Vries <tdevries@suse.de>
24058
24059 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24060 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24061 match_operand 0.
24062 (define_insn "call_value_insn"): Rename to ...
24063 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24064 match_operand 0.
24065 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24066 DI.
24067
24068 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24069
24070 PR middle-end/64242
24071 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24072 frame clobbers and schedule block.
24073 (builtin_longjmp): Likewise.
24074
24075 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24076
24077 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24078 describe how to perform MSPABI compliant 64-bit shift.
24079 * config/msp430/msp430.md (ashldi3): New define_expand.
24080 (ashrdi3): New define_expand.
24081 (lshrdi3): New define_expand.
24082
24083 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24084
24085 * doc/sourcebuild.texi: Document new effective target keyword
24086 longlong64.
24087
24088 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24089
24090 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24091 indirect_refs_may_alias_p): Revert accidental commits.
24092
24093 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24094 at the end of structures.
24095
24096 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24097
24098 * config/darwin.c (machopic_indirect_call_target): Use renamed
24099 darwin_picsymbol_stubs to decide on output.
24100 (darwin_override_options): Handle darwin_picsymbol_stubs.
24101 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24102 (LD64_VERSION): Revise default.
24103 * config/darwin.opt: (mpic-symbol-stubs): New option.
24104 (darwin_picsymbol_stubs): New variable.
24105 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24106 rename to TARGET_MACHO_PICSYM_STUBS.
24107 * config/i386/i386.c (output_pic_addr_const): Likewise.
24108 * config/i386/i386.h Likewise.
24109 * config/rs6000/darwin.h: Likewise.
24110 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24111 darwin_picsymbol_stubs.
24112
24113 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24114
24115 * config/darwin.opt (prebind, noprebind, seglinkedit,
24116 noseglinkedit): Add RejectNegative.
24117
24118 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24119
24120 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24121 in my previous patch.
24122
24123 2019-06-16 Tom de Vries <tdevries@suse.de>
24124
24125 PR tree-optimization/89376
24126 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24127
24128 2019-06-15 Maya Rashish <coypu@sdf.org>
24129
24130 * doc/invoke.texi (Spec Files): Update location of the
24131 Fortran spec file.
24132
24133 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24134
24135 * doc/extend.texi (Common Function Attributes): Clarify
24136 no_sanitize. Fix grammar.
24137
24138 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24139
24140 * tree-ssa-alias.c (alias_stats): Add
24141 nonoverlapping_component_refs_p_may_alias,
24142 nonoverlapping_component_refs_p_no_alias,
24143 nonoverlapping_component_refs_of_decl_p_may_alias,
24144 nonoverlapping_component_refs_of_decl_p_no_alias.
24145 (dump_alias_stats): Dump them.
24146 (nonoverlapping_component_refs_of_decl_p): Add stats.
24147 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24148 ARRAY_REF.
24149
24150 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24151
24152 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24153 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24154 only.
24155 (*anddi3_doubleword): Split before reload. Merge with
24156 anddi->zext pre-reload splitter.
24157 (*andndi3_doubleword): Split before reload.
24158 (*<code>di3_doubleword): Ditto.
24159 (*one_cmpldi2_doubleword): Ditto.
24160
24161 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24162
24163 PR middle-end/90779
24164 * gimplify.c: Include omp-offload.h and context.h.
24165 (gimplify_bind_expr): Add "omp declare target" attributes
24166 to static block scope variables inside of target region or target
24167 functions.
24168
24169 2019-06-15 Tom de Vries <tdevries@suse.de>
24170
24171 PR tree-optimization/90009
24172 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24173 Return NULL if bb contains IFN_UNIQUE.
24174
24175 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24176
24177 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24178 (un): New define_mode_attr.
24179 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24180 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24181 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24182 merge into ...
24183 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24184
24185 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24186
24187 * config/darwin.opt: Add RejectNegative where needed, reorder
24188 and add minimal functional descriptions.
24189
24190 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24191
24192 PR rtl-optimization/90765
24193 * calls.c (update_stack_alignment_for_call): New function.
24194 (expand_call): Call update_stack_alignment_for_call when
24195 outgoing parameter is passed in the stack.
24196 (emit_library_call_value_1): Likewise.
24197 * function.c (locate_and_pad_parm): Don't update
24198 stack_alignment_needed and preferred_stack_boundary.
24199
24200 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24201
24202 PR target/90877
24203 * config/i386/i386-features.c
24204 (dimode_scalar_chain::compute_convert_gain): Replace
24205 mmxsse_to_integer with sse_to_integer.
24206 * config/i386/i386.c (ix86_register_move_cost): Verify that
24207 moves between MMX and non-MMX units require secondary memory.
24208 Correct costs of moves between SSE and integer units.
24209 * config/i386/i386.h (processor_costs): Rename cost of moving
24210 SSE register to integer to sse_to_integer. Rename cost of
24211
24212 2019-06-14 Matt Thomas <matt@3am-software.com>
24213 Matthew Green <mrg@eterna.com.au>
24214 Nick Hudson <skrll@netbsd.org>
24215 Maya Rashish <coypu@sdf.org>
24216 Richard Earnshaw <rearnsha@arm.com>
24217
24218 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24219 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24220 * config/arm/netbsd-eabi.h: New file.
24221 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24222 redefining.
24223 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24224 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24225 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24226 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24227
24228 2019-06-14 Richard Biener <rguenther@suse.de>
24229
24230 * tree-loop-distribution.c (classify_partition): Return
24231 whether a reduction appeared in all partitions and do not
24232 stop builtin detection because of this.
24233 (distribute_loop): Sort a non-builtin partition last if
24234 there's a reduction in all partitions and make sure the
24235 partition prevailing as last is not a builtin.
24236
24237 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24238
24239 PR ipa/90401
24240 * ipa-prop.c (add_to_agg_contents_list): New function.
24241 (clobber_by_agg_contents_list_p): Likewise.
24242 (extract_mem_content): Likewise.
24243 (get_place_in_agg_contents_list): Delete.
24244 (determine_known_aggregate_parts): Renamed from
24245 determine_locally_known_aggregate_parts. New parameter
24246 aa_walk_budget_p.
24247
24248 2019-06-13 Martin Sebor <msebor@redhat.com>
24249
24250 PR tree-optimization/90662
24251 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24252 to the same type.
24253
24254 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24255
24256 PR bootstrap/90873
24257 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24258 dbase is not TARGET_MEM_REF.
24259
24260 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24261
24262 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24263 Update all uses.
24264 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24265 Do not generate DImode extends for 32bit targets.
24266 (and->zext post-reload splitter): Use gen_extend_insn
24267 instead of indirect functions.
24268 (anddi->zext pre-reload splitter): New.
24269 (*zext<mode>_doubleword_and): Remove.
24270 (*zext<mode>_doubleword): Ditto.
24271 (*zextsi_doubleword): Dittto.
24272
24273 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24274
24275 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24276 Use gen_sub3_insn instead of indirect function.
24277 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24278 indirect function.
24279 (ix86_adjust_counter): Ditto.
24280
24281 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24282 Lijia He <helijia@linux.ibm.com>
24283
24284 PR tree-optimization/77820
24285 * tree-ssa-threadedge.c
24286 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24287 function.
24288 (thread_across_edge): Add call to
24289 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24290
24291 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24292
24293 * config/darwin-driver.c (validate_macosx_version_min): New.
24294 (darwin_default_min_version): Cleanup and validate supplied version.
24295 (darwin_driver_init): Likewise and push cleaned version into opts.
24296
24297 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24298
24299 PR tree-optimization/90869
24300 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24301 converts in MEM_REF referencing decl rather than view converts
24302 from decl type to MEM_REF type.
24303
24304 2019-06-13 Richard Biener <rguenther@suse.de>
24305
24306 PR tree-optimization/90856
24307 * tree-sra.c (build_ref_for_model): Only use
24308 build_reconstructed_reference when address-spaces are the same.
24309
24310 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24311
24312 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24313 wrap ei variable name in the declaration in ()s.
24314 (nvptx_single): Actually use mode_label variable. Formatting fix.
24315
24316 2019-06-13 Richard Biener <rguenther@suse.de>
24317
24318 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24319 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24320 also return the condition stmt.
24321 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24322 loop we can version and version that, reusing the loop version
24323 created by if-conversion instead of versioning again.
24324
24325 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24326
24327 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24328 may_contain_p.
24329 * tree-vrp (value_range_base::may_contain_p): Call into
24330 value_inside_range.
24331 (value_inside_range): Make private inside value_range_base class.
24332 Take min/max from *this.
24333 (range_includes_p): Remove.
24334 * tree-vrp.h (value_range_base): Add value_inside_range.
24335 (range_includes_p): Remove.
24336 (range_includes_zero_p): Call may_contain_p.
24337 * vr-values.c (compare_range_with_value): Same.
24338
24339 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24340
24341 * doc/extend.texi (ARC Function Attributes): Update info.
24342
24343 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24344
24345 PR tree-optimization/89713
24346 * doc/invoke.texi (-ffinite-loops): Document new option.
24347 * common.opt (-ffinite-loops): New option.
24348 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24349 IFN_GOACC_LOOP calls as necessary.
24350 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24351 is finite.
24352 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24353 IFN_GOACC_LOOP call is not used.
24354 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24355
24356 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24357
24358 PR target/88838
24359 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24360 compare_type is not with Pmode size, we will create an IV with
24361 Pmode size with truncated use (i.e. converted to the correct type).
24362 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24363 (vect_iv_limit_for_full_masking): New. Factored out of
24364 vect_set_loop_condition_masked.
24365 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24366 (vect_iv_limit_for_full_masking): Declare.
24367
24368 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24369
24370 PR target/88834
24371 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24372 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24373 (get_alias_ptr_type_for_ptr_address): Likewise.
24374 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24375 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24376 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24377 allow_reg_index_p.
24378
24379 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24380
24381 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24382
24383 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24384
24385 * common/config/pru/pru-common.c: New file.
24386 * config.gcc: Add PRU target.
24387 * config/pru/alu-zext.md: New file.
24388 * config/pru/constraints.md: New file.
24389 * config/pru/predicates.md: New file.
24390 * config/pru/pru-opts.h: New file.
24391 * config/pru/pru-passes.c: New file.
24392 * config/pru/pru-pragma.c: New file.
24393 * config/pru/pru-protos.h: New file.
24394 * config/pru/pru.c: New file.
24395 * config/pru/pru.h: New file.
24396 * config/pru/pru.md: New file.
24397 * config/pru/pru.opt: New file.
24398 * config/pru/t-pru: New file.
24399 * doc/extend.texi: Document PRU pragmas.
24400 * doc/invoke.texi: Document PRU-specific options.
24401 * doc/md.texi: Document PRU asm constraints.
24402
24403 2019-06-12 Martin Sebor <msebor@redhat.com>
24404
24405 PR middle-end/90676
24406 * tree-pretty-print.c (dump_mem_ref): New function. Include
24407 MEM_REF type in output when different size than operand.
24408 (dump_generic_node): Move code to dump_mem_ref and call it.
24409
24410 2019-06-12 Martin Sebor <msebor@redhat.com>
24411
24412 PR tree-optimization/90662
24413 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24414 to arrays.
24415
24416 2019-06-12 Tom de Vries <tdevries@suse.de>
24417
24418 PR tree-optimization/90009
24419 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24420
24421 2019-06-12 Martin Liska <mliska@suse.cz>
24422
24423 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24424 the created map.
24425 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24426 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24427 Do not sanitize created maps.
24428
24429 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24430
24431 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24432 value_range::singleton_p.
24433 * tree-vrp.c (value_range_constant_singleton): Remove.
24434 * tree-vrp.h (value_range_constant_singleton): Remove.
24435 * vr-values.c (vr_values::singleton): Use
24436 value_range::singleton_p.
24437
24438 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24439
24440 PR target/90811
24441 * cfgexpand.c (align_local_variable): Add really_expand argument,
24442 don't SET_DECL_ALIGN if it is false.
24443 (add_stack_var): Add really_expand argument, pass it through to
24444 align_local_variable.
24445 (expand_one_stack_var_1): Pass true as really_expand to
24446 align_local_variable.
24447 (expand_one_ssa_partition): Pass true as really_expand to
24448 add_stack_var.
24449 (expand_one_var): Pass really_expand through to add_stack_var.
24450
24451 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24452
24453 * config/arm/iterators.md (VABAL): New int iterator.
24454 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24455 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24456 UNSPEC_VABAL_U values.
24457
24458 2019-06-12 Martin Liska <mliska@suse.cz>
24459
24460 * value-prof.c (stream_out_histogram_value): Only first value
24461 can't be negative.
24462
24463 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24464
24465 PR c/90760
24466 * symtab.c (symtab_node::set_section): Allow being called on aliases
24467 as long as they aren't analyzed yet.
24468
24469 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24470
24471 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24472 to `mips_set_text_contents_type' to indicate whether a
24473 non-debug insn follows.
24474
24475 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24476
24477 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24478 enabling -mpcrel by default.
24479 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24480 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24481 that the test against -mcpu=future is done first. Then test if
24482 -mprefixed-addr is on for -mpcrel.
24483 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24484
24485 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24486
24487 PR target/90811
24488 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24489 instead of and.u%d.
24490
24491 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24492
24493 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24494
24495 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24496
24497 PR c++/90449 - add -Winaccessible-base option.
24498 * doc/invoke.texi (Winaccessible-base): Document.
24499
24500 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24501
24502 PR tree-optimization/62041
24503 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24504
24505 2019-06-11 Jason Merrill <jason@redhat.com>
24506
24507 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24508 * tree.c (get_tree_code_name): Likewise.
24509 * print-tree.c (print_node): Only briefly print a node with an
24510 invalid code.
24511
24512 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24513
24514 PR bootstrap/90819
24515 * trans-mem.c (tm_memopt_compute_available): Add assertion
24516 that blocks is not empty. Formatting fix.
24517
24518 2019-06-11 Martin Liska <mliska@suse.cz>
24519
24520 PR c++/87847
24521 * hash-table.h: Extend create_gcc, add one parameter
24522 that is passed into hash_table::hash_table.
24523
24524 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24525
24526 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24527 New prototype.
24528 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24529 Emit clobber also for non-sse operations.
24530 (ix86_split_fp_absneg_operator): New function.
24531 * config/i386/i386.md (SSEMODEF): New mode iterator.
24532 (ssevecmodef): New mode attribute.
24533 (<code>tf2): Use absneg code iterator.
24534 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24535 Add three-operand AVX alternatives.
24536 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24537 Use absneg code iterator and X87MODEF mode iterator.
24538 (absneg fp_reg non-sse splitter): Call absneg code iterator
24539 and X87MODEF mode iterator.
24540 (absneg general_reg non-sse splitter): Use absneg code iterator
24541 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24542 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24543 code iterator. Add three-operand AVX alternative.
24544 (absneg sse_reg splitter): Use absneg code iterator
24545 and SSEMODEF mode iterator. Handle AVX operands.
24546 (absneg fp_reg splitter): Use absneg code iterator
24547 and MODEF mode iterator.
24548 (absneg general_reg splitter): Merge splitters using MODEF mode
24549 iterator. Use absneg code iterator. Call
24550 ix86_split_fp_absneg_operator.
24551 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24552 Do not enable for non-sse modes before reload.
24553 (CSGNMODE): Remove.
24554 (CSGNVMODE): Ditto.
24555 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24556 ssevecmodef mode attribute instaed of CSGNVMODE.
24557 (copysign<mode>3_const): Ditto.
24558 (copysign<mode>3_var): Ditto.
24559 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24560 Use absneg code iterator. Simplify code using std::swap.
24561 * config/i386/predicates.md (absneg_operator): Remove.
24562
24563 2019-06-10 Martin Sebor <msebor@redhat.com>
24564
24565 * gimple-fold.c (get_range_strlen): Update comment that didn't
24566 make it into r267503 or related commits.
24567
24568 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24569
24570 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24571 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24572
24573 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24574
24575 * tree.def (OMP_SCAN): New tree code.
24576 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24577 OMP_CLAUSE_EXCLUSIVE.
24578 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24579 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24580 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24581 OMP_CLAUSE_{IN,EX}CLUSIVE.
24582 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24583 * tree-nested.c (convert_nonlocal_reference_stmt,
24584 convert_local_reference_stmt, convert_gimple_call): Handle
24585 GIMPLE_OMP_SCAN.
24586 * tree-pretty-print.c (dump_omp_clause): Handle
24587 OMP_CLAUSE_{IN,EX}CLUSIVE.
24588 (dump_generic_node): Handle OMP_SCAN.
24589 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24590 * gimple.h (gomp_scan): New type.
24591 (is_a_helper <gomp_scan *>::test,
24592 is_a_helper <const gomp_scan *>::test): New templates.
24593 (gimple_build_omp_scan): Declare.
24594 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24595 gimple_omp_scan_set_clauses): New inline functions.
24596 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24597 * gimple.c (gimple_build_omp_scan): New function.
24598 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24599 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24600 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24601 GIMPLE_OMP_TASKGROUP.
24602 (dump_gimple_omp_scan): New function.
24603 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24604 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24605 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24606 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24607 (is_gimple_stmt): Handle OMP_SCAN.
24608 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24609 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24610 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24611 mentioned in nested #pragma omp scan. Handle
24612 OMP_CLAUSE_{IN,EX}CLUSIVE.
24613 (gimplify_expr): Handle OMP_SCAN.
24614 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24615 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24616 simd constructs.
24617 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24618 GIMPLE_OMP_SCAN.
24619
24620 2019-06-10 Martin Liska <mliska@suse.cz>
24621
24622 * ipa-cp.c (ignore_edge_p): New function.
24623 (build_toporder_info): Use it.
24624 * ipa-inline.c (ignore_edge_p): New function.
24625 (inline_small_functions): Use it.
24626 * ipa-pure-const.c (ignore_edge_for_nothrow):
24627 Verify opt_for_fn for caller and callee.
24628 (ignore_edge_for_pure_const): Likewise.
24629 * ipa-reference.c (ignore_edge_p): Extend to check
24630 for opt_for_fn.
24631 * ipa-utils.c (searchc): Refactor.
24632 * ipa-utils.h: Fix coding style.
24633
24634 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24635
24636 * config/arc/arc.c (arc_rtx_costs): Update costs.
24637
24638 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24639
24640 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24641 (arc_split_ior): Likewise.
24642 (arc_check_mov_const): Likewise.
24643 (arc_split_mov_const): Likewise.
24644 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24645 (arc_rtx_costs): Replace check Crr with Cax constraint.
24646 (prepare_move_operands): Cleanup, remove unused code.
24647 (arc_split_ior): New function.
24648 (arc_check_ior_const): Likewise.
24649 (arc_split_mov_const): Likewise.
24650 (arc_check_mov_const): Likewise.
24651 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24652 in define_insn_and_split pattern.
24653 (iorsi3): Likewise.
24654 (mulsi3_v2): Add new matching variant.
24655 (andsi3_i): Cleanup pattern.
24656 (rotrsi3_cnt1): Update pattern.
24657 (rotrsi3_cnt8): New pattern.
24658 (ashlsi2_cnt8): Likewise.
24659 (ashlsi2_cnt16): Likewise.
24660 * config/arc/constraints.md (C0p): Update constraint.
24661 (Crr): Remove it.
24662 (C0x): New pattern.
24663 (Cax): New pattern.
24664
24665 2019-06-10 Martin Liska <mliska@suse.cz>
24666
24667 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24668 Update coding style.
24669 (sem_item_optimizer::dump_cong_classes):
24670 Print how many items are in a non-singular class. Improve
24671 coding style.
24672
24673 2019-06-10 Martin Liska <mliska@suse.cz>
24674
24675 * value-prof.c (dump_histogram_value): Change dump format.
24676 (gimple_mod_subtract_transform): Remove legacy comment.
24677
24678 2019-06-10 Martin Liska <mliska@suse.cz>
24679
24680 * value-prof.c (dump_histogram_value): Print histogram values
24681 only if present.
24682
24683 2019-06-10 Martin Liska <mliska@suse.cz>
24684
24685 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24686 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24687 * ipa-profile.c (ipa_profile_generate_summary):
24688 Use get_most_common_single_value.
24689 * tree-profile.c (gimple_init_gcov_profiler):
24690 Instrument with __gcov_one_value_profiler_v2
24691 and __gcov_indirect_call_profiler_v4.
24692 * value-prof.c (dump_histogram_value):
24693 Print all values for HIST_TYPE_SINGLE_VALUE.
24694 (stream_out_histogram_value): Update assert for
24695 N values.
24696 (stream_in_histogram_value): Set number of
24697 counters for HIST_TYPE_SINGLE_VALUE.
24698 (get_most_common_single_value): New.
24699 (gimple_divmod_fixed_value_transform):
24700 Use get_most_common_single_value.
24701 (gimple_ic_transform): Likewise.
24702 (gimple_stringops_transform): Likewise.
24703 (gimple_find_values_to_profile): Set number
24704 of counters for HIST_TYPE_SINGLE_VALUE.
24705 * value-prof.h (get_most_common_single_value): New.
24706
24707 2019-06-10 Martin Liska <mliska@suse.cz>
24708
24709 * hash-map.h: Pass default value to hash_table ctor.
24710 * hash-table.h: Add default value to call of a ctor.
24711
24712 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24713
24714 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24715 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24716
24717 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24718
24719 PR target/90751
24720 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24721 Call pa_output_function_label.
24722 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24723 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24724 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24725 to declaration.
24726 (pa_linux_output_function_prologue): Declare.
24727 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24728 (pa_output_function_label): New.
24729 (pa_output_function_prologue): Revise to use pa_output_function_label.
24730 (pa_linux_output_function_prologue): New.
24731 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24732
24733 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24734
24735 * tree-vrp.h (value_range_base::intersect): New.
24736 (value_range::intersect_helper): Move from here...
24737 (value_range_base::intersect_helper): ...to here.
24738 * tree-vrp.c (value_range::intersect_helper): Rename to...
24739 (value_range_base::intersect_helper): ...this, and rewrite to
24740 return a value instead of modifying THIS in place.
24741 Also, move equivalence handling...
24742 (value_range::intersect): ...here, while calling intersect_helper.
24743 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24744 calling intersect.
24745 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24746 Same.
24747 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24748
24749 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24750
24751 * Makefile.in (genprogerr): Add condmd.
24752 (genprog): Remove it here.
24753
24754 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24755
24756 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24757
24758 2019-06-07 Richard Biener <rguenther@suse.de>
24759
24760 PR debug/90574
24761 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24762 that appear after user labels.
24763
24764 2019-06-07 Martin Liska <mliska@suse.cz>
24765
24766 * cselib.c (cselib_init): Disable hash table
24767 sanitization.
24768 * hash-set.h: Pass new default argument to m_table.
24769 * hash-table.c: Add global variable with hash table
24770 sanitization limit.
24771 * hash-table.h (Allocator>::hash_table): Add new argument
24772 to ctor.
24773 (hashtab_chk_error): New.
24774 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24775 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24776 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24777
24778 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24779
24780 * common.opt (flto-odr-type-merging): Ignore.
24781 * invoke.texi (-flto-odr-type-merging): Remove.
24782 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24783 (can_be_vtable_hashed_p): Remove.
24784 (hash_odr_vtable): Remove.
24785 (odr_vtable_hasher::hash): Remove.
24786 (types_same_for_odr): Remove.
24787 (types_odr_comparable): Remove.
24788 (odr_vtable_hasher::equal): Remove.
24789 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24790 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24791 (get_odr_type): Do not use vtable hash.
24792 (dump_odr_type): Remove commented out code.
24793 (build_type_inheritance_graph): Do not allocate vtable hash.
24794 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24795 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24796 (odr_type_p): Likewise.
24797 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24798 test.
24799
24800 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24801
24802 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24803 immediately after same_types_for_tbaa_p returns -1 and continue
24804 looking for possible exact match; if matching types are arrays
24805 watch for partial overlaps.
24806 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24807 (indirect_refs_may_alias_p): Do type based disambiguation first;
24808 update comment.
24809
24810 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24811
24812 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24813
24814 2019-06-07 Martin Liska <mliska@suse.cz>
24815
24816 * doc/invoke.texi: Remove param.
24817 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24818 Remove.
24819 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24820 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24821 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24822 * profile.c (instrument_values): Remove
24823 HIST_TYPE_INDIR_CALL_TOPN.
24824 * tree-profile.c (init_ic_make_global_vars):
24825 Always build __gcov_indirect_call only.
24826 (gimple_init_gcov_profiler): Remove usage
24827 of PARAM_INDIR_CALL_TOPN_PROFILE.
24828 (gimple_gen_ic_profiler): Likewise.
24829 * value-prof.c (dump_histogram_value): Likewise.
24830 (stream_in_histogram_value): Likewise.
24831 (gimple_indirect_call_to_profile): Likewise.
24832 (gimple_find_values_to_profile): Likewise.
24833 * value-prof.h (enum hist_type): Likewise.
24834
24835 2019-06-07 Martin Liska <mliska@suse.cz>
24836
24837 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24838 function.
24839
24840 2019-06-07 Martin Liska <mliska@suse.cz>
24841
24842 PR tree-optimization/78902
24843 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24844 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24845 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24846 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24847 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24848 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24849 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24850 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24851 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24852 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24853 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24854 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24855 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24856 New.
24857 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24858 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24859 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24860 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24861 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24862 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24863 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24864 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24865 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24866 warn_unused_result attribute.
24867 (BUILT_IN_STRDUP): Likewise.
24868 (BUILT_IN_STRNDUP): Likewise.
24869 (BUILT_IN_ALLOCA): Likewise.
24870 (BUILT_IN_CALLOC): Likewise.
24871 (BUILT_IN_MALLOC): Likewise.
24872 (BUILT_IN_REALLOC): Likewise.
24873
24874 2019-06-06 Jim Wilson <jimw@sifive.com>
24875
24876 PR target/89955
24877 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24878 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24879 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24880
24881 2019-06-06 Martin Sebor <msebor@redhat.com>
24882
24883 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24884 (handle_builtin_malloc): Remove trailing spaces.
24885 (handle_builtin_memset): Same.
24886 (handle_builtin_memcmp): Same.
24887 (compute_string_length): Same.
24888 (determine_min_objsize): Same.
24889 (handle_builtin_string_cmp): Same.
24890 (handle_char_store): Same. Break up excessively long line.
24891
24892 2019-06-06 Martin Jambor <mjambor@suse.cz>
24893
24894 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24895 check.
24896
24897 2019-06-06 Martin Jambor <mjambor@suse.cz>
24898
24899 * tree-sra.c (struct access): New field grp_same_access_path.
24900 (dump_access): Dump it.
24901 (build_reconstructed_reference): New function.
24902 (build_ref_for_model): Use it if possible.
24903 (path_comparable_for_same_access): New function.
24904 (same_access_path_p): Likewise.
24905 (sort_and_splice_var_accesses): Set the new flag.
24906 (analyze_access_subtree): Likewise.
24907 (propagate_subaccesses_across_link): Propagate zero value of the new
24908 flag down the access tree.
24909
24910 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24911
24912 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24913 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24914 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24915 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24916 Add gfx906.
24917
24918 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24919
24920 PR tree-optimization/90332
24921 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24922 Handle VALS containing two vectors.
24923 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24924 to...
24925 (@aarch64_combinez<mode>): ... This.
24926 (*aarch64_combinez_be<mode>): Rename to...
24927 (@aarch64_combinez_be<mode>): ... This.
24928 (vec_init<mode><Vhalf>): New define_expand.
24929 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24930
24931 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24932
24933 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24934 library functions only when not optimizing for size.
24935 (ashlsi3): Likewise.
24936 (ashrhi3): Likewise.
24937 (ashrsi3): Likewise.
24938 (lshrhi3): Likewise.
24939 (lshrsi3): Likewise.
24940
24941 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24942
24943 PR rtl-optimization/88751
24944 * ira.c (ira): Use the number of the actually referenced registers
24945 when calculating the threshold.
24946
24947 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24948
24949 * configure: Regenerate.
24950
24951 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24952
24953 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24954 register if it is in memory, so the shift can be emulated with a rotate
24955 instruction.
24956 (ashrhi3): Likewise.
24957 (lshrhi3): Likewise.
24958
24959 2019-06-06 Martin Liska <mliska@suse.cz>
24960
24961 PR tree-optimization/87954
24962 * match.pd: Simplify mult where both arguments are 0 or 1.
24963
24964 2019-06-06 Richard Biener <rguenther@suse.de>
24965
24966 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24967 put equivalences on UNDEFINED ranges.
24968 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24969 Make sure to drop defs of stmts added during simplification
24970 to VARYING.
24971
24972 2019-06-06 Richard Biener <rguenther@suse.de>
24973
24974 * tree-ssa-structalias.c: Include tree-cfg.h.
24975 (make_heapvar): Do not make heap vars artificial.
24976 (find_func_aliases_for_builtin_call): Handle stack allocation
24977 functions.
24978 (find_func_aliases): Delay processing of simple enough returns
24979 in non-IPA mode.
24980 (set_uids_in_ptset): Adjust.
24981 (find_what_var_points_to): Likewise.
24982 (solve_constraints): Do not dump points-to sets here.
24983 (compute_points_to_sets): Post-process return statements,
24984 amending the escaped solution. Dump points-to sets afterwards.
24985 (ipa_pta_execute): Dump points-to sets.
24986
24987 2019-06-06 Martin Liska <mliska@suse.cz>
24988
24989 PR web/87933
24990 * doc/install.texi: Fix HTML headers and
24991 titles for 'Installing GCC' pages.
24992
24993 2019-06-06 Martin Liska <mliska@suse.cz>
24994
24995 * ipa-icf-gimple.h (dump_message_1): Remove.
24996 (dump_message): Likewise.
24997 (return_false_with_message_1): Print also file.
24998 (return_false_with_msg): Likewise.
24999 (return_with_result): Likewise.
25000 (return_with_debug): Likewise.
25001 * ipa-icf.c (sem_function::equals_private): Remove call
25002 to dump_message.
25003
25004 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25005
25006 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25007 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25008 memory operand for it.
25009 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25010
25011 2019-06-05 Martin Sebor <msebor@redhat.com>
25012
25013 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25014 Adjust quoting and hyphenation.
25015 * convert.c (convert_to_real_1): Same.
25016 * gcc.c (driver_wrong_lang_callback): Same.
25017 (driver::handle_unrecognized_options): Same.
25018 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25019 * opts-common.c (cmdline_handle_error): Same.
25020 (read_cmdline_option): Same.
25021 * opts-global.c (complain_wrong_lang): Same.
25022 (print_ignored_options): Same.
25023 (handle_common_deferred_options): Same.
25024 * pretty-print.h: Same.
25025 * print-rtl.c (debug_bb_n_slim): Same.
25026 * sched-rgn.c (make_pass_sched_fusion): Same.
25027 * tree-cfg.c (verify_gimple_assign_unary): Same.
25028 (verify_gimple_label): Same.
25029 * tree-ssa-operands.c (verify_ssa_operands): Same.
25030 * varasm.c (do_assemble_alias): Same.
25031 (assemble_alias): Same.
25032
25033 2019-06-05 Richard Henderson <rth@twiddle.net>
25034
25035 * config/alpha/alpha.c (direct_return): Move down after
25036 struct machine_function definition; use saved frame_size;
25037 return bool.
25038 (struct machine_function): Add sa_mask, sa_size, frame_size.
25039 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25040 (alpha_compute_frame_layout): ... new function.
25041 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25042 (alpha_initial_elimination_offset): Use saved sa_size.
25043 (alpha_vms_initial_elimination_offset): Likewise.
25044 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25045 (alpha_expand_prologue): Use saved frame data. Merge integer
25046 and fp register save loops.
25047 (alpha_expand_epilogue): Likewise.
25048 (alpha_start_function): Use saved frame data.
25049 * config/alpha/alpha-protos.h (direct_return): Update.
25050 (alpha_sa_size): Remove.
25051
25052 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25053
25054 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25055 multiplication by a power-of-two value.
25056 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25057 and turn the modulo operation into a masking operation.
25058
25059 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25060
25061 PR debug/90733
25062 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25063 with VOIDmode inner operands.
25064
25065 2019-06-05 Richard Biener <rguenther@suse.de>
25066
25067 PR middle-end/90726
25068 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25069 turn an expression graph into a tree.
25070
25071 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25072
25073 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25074 member.
25075 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25076 treat it like explicit monotonic schedule modifier.
25077 (expand_omp_for): Initialize has_lastprivate_conditional.
25078 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25079 schedule modifier.
25080
25081 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25082 references, lookup in in hash map MEM_REF operand instead of the
25083 MEM_REF itself.
25084 (lower_omp_1): When looking for lastprivate conditional assignments,
25085 handle MEM_REFs with REFERENCE_TYPE operands.
25086
25087 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25088 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25089 and references a VLA. Handle references to non-VLAs if is_simd
25090 all privatization clauses like reductions.
25091 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25092 If omp_is_reference, use always omp simd arrays and set
25093 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25094 fails, emit reference initialization.
25095
25096 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25097
25098 PR target/89803
25099 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25100 _mm_mask_fpclass_sd_mask): New intrinsics.
25101 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25102 * config/i386/i386-builtin.def
25103 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25104 New builtins.
25105 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25106 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25107 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25108 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25109 case QI_FTYPE_V2SF_INT): Ditto.
25110 * config/i386/sse.md
25111 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25112 Extended to insnstructions with mask operands.
25113
25114 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25115
25116 * config/rs6000/constraints.md (define_register_constraint "wp"):
25117 Delete.
25118 (define_register_constraint "wq"): Delete.
25119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25120 (rs6000_init_hard_regno_mode_ok): Adjust.
25121 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25122 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25123 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25124 (define_mode_attr VSa): Delete.
25125 (define_mode_attr VSisa): New.
25126 (rest of file): Adjust.
25127 * doc/md.texi (Machine Constraints): Adjust.
25128
25129 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25130
25131 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25132 (define_attr "enabled"): Handle those new isa values.
25133
25134 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25135
25136 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25137 (define_mode_attr VSr5): Delete.
25138 (define_mode_attr VStype_sqrt): Delete.
25139 (define_mode_iterator VSX_SPDP): Delete.
25140 (define_mode_attr VS_spdp_res): Delete.
25141 (define_mode_attr VS_spdp_insn): Delete.
25142 (define_mode_attr VS_spdp_type): Delete.
25143 (*vsx_sqrt<mode>2): Adjust.
25144 (vsx_<VS_spdp_insn>): Delete, split to...
25145 (vsx_xscvdpsp): ... this. New. And...
25146 (vsx_xvcvspdp): ... this. New. And...
25147 (vsx_xvcvdpsp): ... this. New.
25148
25149 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25150
25151 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25152 and V2DF.
25153 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25154 (rest of file): Adjust.
25155
25156 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25157
25158 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25159 (vsx_extract_<mode>_var): Ditto.
25160
25161 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25162
25163 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25164 with just "wa".
25165
25166 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25167
25168 * config/rs6000/constraints.md (define_register_constraint "ww"):
25169 Delete.
25170 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25171 (rs6000_init_hard_regno_mode_ok): Adjust.
25172 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25173 RS6000_CONSTRAINT_ww.
25174 * config/rs6000/rs6000.md: Adjust.
25175 * config/rs6000/vsx.md: Adjust.
25176 * doc/md.texi (Machine Constraints): Adjust.
25177
25178 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25179
25180 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25181 (define_mode_attr sd): New.
25182 (define_mode_attr s): New.
25183 (define_mode_attr Ftrad): Delete.
25184 (define_mode_attr Fvsx): Delete.
25185 (define_mode_attr Fs): Delete.
25186 (rest of file): Use the new mode attributes.
25187 * config.rs6000/vsx.md: Use the new mode attributes.
25188
25189 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25190
25191 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25192 with just "wa".
25193
25194 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25195
25196 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25197 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25198 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25199
25200 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25201
25202 PR target/78263
25203 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25204 C++ with strict ANSI requirements.
25205
25206 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25207
25208 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25209 computations when step is 1.
25210
25211 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25212
25213 * config/rs6000/constraints.md (define_register_constraint "wf"):
25214 Delete.
25215 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25216 (rs6000_init_hard_regno_mode_ok): Adjust.
25217 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25218 RS6000_CONSTRAINT_wf.
25219 * config/rs6000/rs6000.md: Adjust.
25220 * config/rs6000/vsx.md: Adjust.
25221 * doc/md.texi (Machine Constraints): Adjust.
25222
25223 2019-06-04 Andrew Pinski <apinski@marvell.com>
25224
25225 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25226 Fix ILP32 value.
25227
25228 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25229
25230 * config/rs6000/constraints.md (define_register_constraint "wd"):
25231 Delete.
25232 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25233 (rs6000_init_hard_regno_mode_ok): Adjust.
25234 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25235 RS6000_CONSTRAINT_wd.
25236 * config/rs6000/rs6000.md: Adjust.
25237 * config/rs6000/vsx.md: Adjust.
25238 * doc/md.texi (Machine Constraints): Adjust.
25239
25240 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25241
25242 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25243 (rest of file): Adjust.
25244
25245 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25246
25247 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25248 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25249 (vsx_splat_<mode>_reg): Adjust.
25250
25251 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25252
25253 * config/rs6000/constraints.md (define_register_constraint "ws"):
25254 Delete.
25255 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25256 (rs6000_init_hard_regno_mode_ok): Adjust.
25257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25258 RS6000_CONSTRAINT_ws.
25259 * config/rs6000/rs6000.md: Adjust.
25260 * config/rs6000/vsx.md: Adjust.
25261 * doc/md.texi (Machine Constraints): Adjust.
25262
25263 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25264
25265 * config/rs6000/constraints.md (define_register_constraint "wv"):
25266 Delete.
25267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25268 (rs6000_init_hard_regno_mode_ok): Adjust.
25269 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25270 RS6000_CONSTRAINT_wv.
25271 * config/rs6000/rs6000.md: Adjust.
25272 * config/rs6000/vsx.md: Adjust.
25273 * doc/md.texi (Machine Constraints): Adjust.
25274
25275 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25276
25277 * config/rs6000/constraints.md (define_register_constraint "wi"):
25278 Delete.
25279 (define_register_constraint "wt"): Delete.
25280 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25281 (rs6000_init_hard_regno_mode_ok): Adjust.
25282 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25283 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25284 * config/rs6000/rs6000.md: Adjust.
25285 * config/rs6000/vsx.md: Adjust.
25286 * doc/md.texi (Machine Constraints): Adjust.
25287
25288 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25289
25290 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25291 const.
25292 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25293 default_elf_asm_output_external.
25294
25295 2019-06-04 Martin Liska <mliska@suse.cz>
25296
25297 * ipa-icf.c (INCLUDE_LIST): Remove.
25298 (sem_item_optimizer::execute): Remove call to init_wpa.
25299 * ipa-icf.h (init_wpa): Remove.
25300
25301 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25302
25303 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25304 conditional on combined for simd.
25305 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25306 member.
25307 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25308 constructs, don't remove lastprivate_conditional_map, but instead set
25309 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25310 to parent construct temporaries.
25311 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25312 like !ctx->lastprivate_conditional_map.
25313 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25314 use up->outer context instead of up.
25315 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25316 gimple_omp_for_combined_p.
25317 (expand_omp_for_static_nochunk): Likewise.
25318 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25319 probably moved over into expand_omp_for_generic rather than being copied
25320 there.
25321
25322 2019-06-04 Martin Liska <mliska@suse.cz>
25323
25324 * value-prof.c (dump_histogram_value): Fix typo.
25325 (gimple_mod_subtract_transform): Likewise.
25326
25327 2019-06-04 Richard Biener <rguenther@suse.de>
25328
25329 PR middle-end/90726
25330 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25331 (tree_contains_chrecs): Likewise.
25332 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25333 exponential behaivor from ...
25334 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25335 ... here.
25336 (expression_expensive_p): Avoid exponential behavior and compute
25337 expanded size, rejecting any expansion.
25338 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25339 (idx_contains_abnormal_ssa_name_p): Likewise.
25340 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25341 (contains_abnormal_ssa_name_p): Simplify and use
25342 walk_tree_without_duplicates.
25343
25344 2019-06-04 Richard Biener <rguenther@suse.de>
25345
25346 PR tree-optimization/90738
25347 Revert
25348 2019-06-03 Richard Biener <rguenther@suse.de>
25349
25350 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25351 full reference tree and record in ref->ref.
25352 (vn_reference_lookup_3): Pass in original ref to
25353 ao_ref_init_from_vn_reference.
25354 (vn_reference_lookup): Likewise.
25355 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25356 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25357 Handle non-decl bases in the original reference.
25358
25359 2019-06-04 Martin Liska <mliska@suse.cz>
25360
25361 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25362 number of references.
25363 (sem_item_optimizer::do_congruence_step):
25364 (sem_item_optimizer::worklist_push): Dump how references
25365 a class has.
25366 (sem_item_optimizer::worklist_pop): Use heap.
25367 (sem_item_optimizer::process_cong_reduction): Likewise.
25368 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25369
25370 2019-06-04 Martin Liska <mliska@suse.cz>
25371
25372 * ipa-icf.h (struct sem_usage_pair_hash): New.
25373 (sem_usage_pair_hash::hash): Likewise.
25374 (sem_usage_pair_hash::equal): Likewise.
25375 (struct sem_usage_hash): Likewise.
25376 * ipa-icf.c (sem_item::sem_item): Initialize
25377 referenced_by_count.
25378 (sem_item::add_reference): Register a reference
25379 in ref_map and not in target->usages.
25380 (sem_item::setup): Remove initialization of
25381 dead vectors.
25382 (sem_item::~sem_item): Remove usage of dead vectors.
25383 (sem_item::dump): Remove dump of references.
25384 (sem_item_optimizer::sem_item_optimizer): Initialize
25385 m_references.
25386 (sem_item_optimizer::read_section): Remove useless
25387 dump.
25388 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25389 (sem_item_optimizer::build_graph): Pass m_references
25390 to ::add_reference.
25391 (sem_item_optimizer::verify_classes): Remove usage of dead
25392 vectors.
25393 (sem_item_optimizer::traverse_congruence_split): Return true
25394 when a class is split.
25395 (sem_item_optimizer::do_congruence_step_for_index): Use
25396 hash_map for look up of (sem_item *, index). That brings
25397 significant speed up.
25398 (sem_item_optimizer::do_congruence_step): Return true
25399 when a split is done.
25400 (congruence_class::is_class_used): Use referenced_by_count.
25401
25402 2019-06-04 Alan Modra <amodra@gmail.com>
25403
25404 PR target/90689
25405 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25406 error.
25407
25408 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25409
25410 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25411 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25412 (rs6000_secondary_reload_simple_move): Adjust.
25413 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25414 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25415 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25416 comment.
25417 (power6x): Adjust.
25418 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25419 (floatunssi<mode>2_lfiwzx): Adjust.
25420 (fix_trunc<mode>si2_stfiwx): Adjust.
25421 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25422 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25423 (mfpgpr): Mark as deprecated.
25424 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25425 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25426 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25427
25428 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25429
25430 * config/rs6000/constraints.md (define_register_constraint "wg"):
25431 Delete.
25432 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25433 RS6000_CONSTRAINT_wg.
25434 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25435 (rs6000_init_hard_regno_mode_ok): Adjust.
25436 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25437 Delete "wg" alternatives.
25438 * doc/md.texi (Machine Constraints): Adjust.
25439
25440 2019-06-03 Alan Modra <amodra@gmail.com>
25441
25442 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25443 (get_uncond_jump_length): Assert length less than INT_MAX and
25444 non-negative.
25445
25446 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25447
25448 PR middle-end/64242
25449 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25450 block.
25451 (expand_builtin_nonlocal_goto): Likewise.
25452
25453 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25454
25455 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25456 (aarch64_asm_output_external): Declare.
25457 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25458 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25459 (aarch64_asm_output_alias): New.
25460 (aarch64_asm_output_external): New.
25461 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25462 (ASM_OUTPUT_EXTERNAL): Define.
25463
25464 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25465 * tree-vrp.h (value_range_base::nonzero_p): New.
25466 (value_range_base::set_nonnull): Rename to...
25467 (value_range_base::set_nonzero): ...this.
25468 (value_range_base::set_null): Rename to...
25469 (value_range_base::set_zero): ...this.
25470 (value_range::set_nonnull): Remove.
25471 (value_range::set_null): Remove.
25472 * tree-vrp.c (range_is_null): Remove.
25473 (range_is_nonnull): Remove.
25474 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25475 instead of range_is_*null.
25476 (extract_range_from_unary_expr): Same.
25477 (value_range_base::set_nonnull): Rename to...
25478 (value_range_base::set_nonzero): ...this.
25479 (value_range::set_nonnull): Remove.
25480 (value_range_base::set_null): Rename to...
25481 (value_range_base::set_zero): ...this.
25482 (value_range::set_null): Remove.
25483 (extract_range_from_binary_expr): Rename set_*null uses to
25484 set_*zero.
25485 (extract_range_from_unary_expr): Same.
25486 (union_helper): Same.
25487 * vr-values.c (get_value_range): Use set_*zero instead of
25488 set_*null.
25489 (vr_values::extract_range_from_binary_expr): Same.
25490 (vr_values::extract_range_basic): Same.
25491
25492 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25493
25494 PR driver/90684
25495 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25496
25497 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25498
25499 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25500 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25501 Rename to...
25502 (aarch64_<su>abd<mode>_3): ... This.
25503 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25504
25505 2019-06-03 Richard Biener <rguenther@suse.de>
25506
25507 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25508 full reference tree and record in ref->ref.
25509 (vn_reference_lookup_3): Pass in original ref to
25510 ao_ref_init_from_vn_reference.
25511 (vn_reference_lookup): Likewise.
25512 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25513 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25514 Handle non-decl bases in the original reference.
25515
25516 2019-06-03 Martin Liska <mliska@suse.cz>
25517
25518 * doc/generic.texi: Remove Java Trees.
25519
25520 2019-06-03 Martin Liska <mliska@suse.cz>
25521
25522 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25523 returns 0 when operands are equal.
25524
25525 2019-06-03 Richard Biener <rguenther@suse.de>
25526
25527 PR tree-optimization/90716
25528 * tree-loop-distribution.c (destroy_loop): Process blocks in
25529 correct order.
25530
25531 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25532
25533 PR target/88837
25534 * vector-builder.h (vector_builder::count_dups): New method.
25535 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25536 Declare prototype.
25537 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25538 (vec_init<mode><Vel>): New pattern.
25539 * config/aarch64/aarch64.c (emit_insr): New function.
25540 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25541 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25542 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25543 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25544
25545 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25546
25547 PR tree-optimization/90681
25548 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25549 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25550 special case for SLP, but fail on non-groupped loads.
25551
25552 2019-06-03 Martin Liska <mliska@suse.cz>
25553
25554 * cfg.c (debug): Use TDF_DETAILS for debug and
25555 print edge info only once.
25556
25557 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25558
25559 PR fortran/90539
25560 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25561
25562 2019-06-01 Martin Sebor <msebor@redhat.com>
25563
25564 PR middle-end/90694
25565 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25566
25567 2019-05-31 Jan Hubicka <jh@suse.cz>
25568
25569 * alias.c: Include ipa-utils.h.
25570 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25571 * ipa-devirt.c (prevailing_odr_type): New.
25572 * ipa-utils.h (previaling_odr_type): Declare.
25573
25574 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25575 Hongtao Liu <hongtao.liu@intel.com>
25576
25577 PR target/89355
25578 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25579 NOTE_INSN_DELETED_LABEL check.
25580
25581 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25582 Robert Suchanek <robert.suchanek@mips.com>
25583
25584 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25585 and 3rd operands of the fmadd/fmsub/maddv builtin.
25586
25587 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25588
25589 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25590 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25591 on OMP_SIMD if not nested inside of worksharing loop that also has
25592 lastprivate conditional clause for the same decl.
25593 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25594 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25595 on simd.
25596 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25597 on simd construct.
25598 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25599 on simd construct.
25600 (lower_lastprivate_clauses): Likewise.
25601 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25602 calling lower_rec_input_clauses.
25603 (lower_omp_for): Likewise.
25604 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25605 clause on simd construct.
25606 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25607 OMP_CLAUSE__CONDTEMP_ clause is present.
25608
25609 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25610 ivar and lvar.
25611
25612 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25613
25614 PR c/43673
25615 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25616 TEX_D32, TEX_D64 or TEX_D128.
25617
25618 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25619
25620 * match.pd (~(vec?cst1:cst2)): New transformation.
25621
25622 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25623
25624 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25625 ((size_t)(A /[ex] B) CMP C): New transformation.
25626
25627 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25628
25629 * doc/md.texi: Document define_insn_and_rewrite.
25630 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25631 * gensupport.c (queue_elem): Update comment.
25632 (replace_operands_with_dups): New function.
25633 (gen_rewrite_sequence): Likewise.
25634 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25635 * read-rtl.c (apply_subst_iterator): Likewise.
25636 (add_condition_to_rtx, named_rtx_p): Likewise.
25637 (rtx_reader::read_rtx_operand): Likewise.
25638 * config/aarch64/aarch64-sve.md
25639 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25640 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25641 define_insn_and_rewrite.
25642 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25643 Remove separate define_split.
25644
25645 2019-05-31 Jan Hubicka <jh@suse.cz>
25646
25647 * tree-ssa-alias.c (type_has_components_p): New function.
25648 (aliasing_component_refs_p): Use it.
25649
25650 2019-05-31 Martin Liska <mliska@suse.cz>
25651
25652 * gdbhooks.py: Add const_tree to TreePrinter.
25653
25654 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25655
25656 PR debug/86964
25657 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25658 * doc/invoke.texi (Debugging Options): Document new default of
25659 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25660
25661 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25662
25663 PR tree-optimization/90671
25664 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25665 template_block used to be empty on the first call, don't use
25666 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25667 seq with bb_seq and set it with set_bb_seq.
25668
25669 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25670
25671 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25672
25673 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25674 Michael Meissner <meissner@linux.ibm.com>
25675
25676 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25677 (prefixed_mem_operand): Likewise.
25678 (non_prefixed_mem_operand): Likewise.
25679 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25680 prototype.
25681 * config/rs6000/rs6000.c (print_operand_address): Handle
25682 PC-relative addresses.
25683 (mode_supports_prefixed_address_p): New function.
25684 (rs6000_prefixed_address): New function.
25685 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25686 (SYMBOL_REF_PCREL_P): Likewise.
25687
25688 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25689
25690 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25691 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25692 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25693 is nested inside of parallel region, add _condtemp_ clause to both.
25694 * tree-nested.c (convert_nonlocal_omp_clauses,
25695 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25696 assertion failure.
25697 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25698 member.
25699 * omp-general.c (omp_extract_for_data): Compute it.
25700 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25701 (lower_rec_input_clauses): Likewise.
25702 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25703 clause is already present, just add one further one after it.
25704 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25705 (lower_send_shared_vars): Clear _condtemp_ vars.
25706 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25707 or section or taskgroup.
25708 * omp-expand.c (determine_parallel_type): Disallow combining only if
25709 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25710 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25711 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25712 expand_omp_for_static_chunk, expand_omp_for): Use
25713 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25714 determine if a special set of API routines are needed and if condtemp
25715 needs to be initialized, while always initialize cond_var if
25716 fd->lastprivate_conditional is non-zero.
25717
25718 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25719 Michael Meissner <meissner@linux.ibm.com>
25720
25721 * config/rs6000/constraints.md (eI): New constraint.
25722 * config/rs6000/predicates.md (cint34_operand): New predicate.
25723 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25724 (SIGNED_34BIT_OFFSET_P): Likewise.
25725 * doc/md.texi (eI): Document constraint.
25726
25727 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25728
25729 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25730
25731 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25732 Michael Meissner <meissner@linux.ibm.com>
25733
25734 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25735 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25736 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25737 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25738 (OTHER_FUTURE_MASKS): Likewise.
25739 (POWERPC_MASKS): Likewise.
25740 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25741 specified without -mprefixed-addr or -mcpu=future. Error if
25742 -mprefixed-addr is specified without -mcpu=future.
25743 (rs6000_opt_masks): Add entry for prefixed-addr.
25744 * rs6000.opt (mprefixed-addr): New option.
25745
25746 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25747
25748 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25749 cfun->is_thunk check.
25750
25751 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25752
25753 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25754 to length.
25755
25756 2019-05-30 Martin Liska <mliska@suse.cz>
25757
25758 * gdbinit.in: Fix 'ptc' command. Add trt
25759 that prints TREE_TYPE($).
25760
25761 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25762 Alan Modra <amodra@gmail.com>
25763
25764 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25765 calls here...
25766 (rs6000_indirect_call_template_1): ...and here.
25767 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25768 plt16_ha, plt16_lo, mtctr indirect calls. Use
25769 rs6000_pltseq_enum.
25770 (rs6000_decl_ok_for_sibcall): New function.
25771 (rs6000_function_ok_for_sibcall): Refactor.
25772 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25773 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25774 when pcrel. Reorganize.
25775 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25776 * rs6000.h (rs6000_pltseq_enum): New enum.
25777 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25778 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25779 (*pltseq_plt16_ha): Likewise.
25780 (*pltseq_plt16_lo): Likewise.
25781 (*pltseq_mtctr): Likewise.
25782 (*pltseq_plt_pcrel): New insn.
25783 (*call_local_aix): Handle @notoc calls.
25784 (*call_value_local_aix): Likewise.
25785 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25786 (*call_value_nonlocal_aix): Likewise.
25787 (*call_indirect_pcrel): New insn.
25788 (*call_value_indirect_pcrel): Likewise.
25789
25790 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25791
25792 * config/i386/sse.md (*save_multiple<mode>): Rename from
25793 save_multiple<mode>.
25794 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25795 (*restore_multiple_and_return<mode>): Rename from
25796 restore_multiple_and_return<mode>.
25797 (*restore_multiple_leave_return<mode>): Rename from
25798 restore_multiple_leave_return<mode>.
25799
25800 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25801
25802 * config.gcc (rx-*-linux*): New target.
25803 * config/rx/elf.opt: New file.
25804 * config/rx/linux.h: Likewise.
25805 * config/rx/t-linux: Likewise.
25806 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25807 make it zero.
25808 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25809 (ASM_APP_OFF): Likewise.
25810 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25811 moved elsewhere.
25812
25813 2019-05-29 Jan Hubicka <jh@suse.cz>
25814
25815 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25816 variants are pointer equivalent.
25817
25818 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25819
25820 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25821 * config/aarch64/aarch64-sve2.md: New file.
25822 (<u>avg<mode>3_floor): New pattern.
25823 (<u>avg<mode>3_ceil): Likewise.
25824 (*<sur>h<addsub><mode>): Likewise.
25825 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25826 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25827
25828 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25829
25830 PR bootstrap/90543
25831 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25832 for var_opt_string printing. In cl_optimization_print_diff, print
25833 (null) instead of invoking undefined behavior if one of the
25834 var_opt_string pointers is NULL and use && instead of first || in the
25835 guarding condition. For var_target_other options, handle const char *
25836 target variables similarly to const char * optimize node variables.
25837
25838 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25839
25840 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25841 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25842 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25843 Add autib1716 and pacib1716 initialisation.
25844 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25845 for autib1716 and pacib1716.
25846 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25847 aarch64_post_cfi_startproc): Define.
25848 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25849 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25850 aarch64_handle_pac_ret_protection): Set default sign key to A.
25851 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25852 aarch64_expand_prologue): Add check for b-key.
25853 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25854 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25855 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25856 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25857 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25858 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25859 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25860 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25861 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25862 pauth_hint_num_a with pauth_hint_num.
25863 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25864 pauth_hint_num_a with pauth_hint_num.
25865 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25866 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25867 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25868 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25869 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25870 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25871 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25872 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25873 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25874 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25875 UNSPEC_AUTIA1716 respectively.
25876 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25877 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25878 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25879 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25880 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25881 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25882
25883 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25884
25885 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25886 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25887 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25888 explicit clause on combined parallel into implicit shared clause.
25889 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25890 and firstprivate if the decl has one too from combined parallel to
25891 the worksharing construct.
25892
25893 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25894 Michael Meissner <meissner@linux.ibm.com>
25895
25896 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25897
25898 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25899
25900 * rtl.h (LABEL_REF_P): New #define.
25901
25902 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25903
25904 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25905
25906 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25907
25908 * internal-fn.c: Marked mask_load_direct as vectorizable.
25909 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25910 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25911 combined even if masks different with allow_slp_p param.
25912 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25913 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25914 dissolve SLP-only vectorizable groups when SLP has been discarded.
25915 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25916 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25917 masks.
25918 (vect_build_slp_tree_1): Fixed comment typo.
25919 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25920 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25921 loads for SLP only.
25922 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25923 vectorizable.
25924 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25925
25926 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25927
25928 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25929 Remove obsolete use_thunk reference.
25930 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25931 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25932 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25933 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25934 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25935 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25936 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25937 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25938 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25939
25940 2019-05-28 Nathan Sidwell <nathan@acm.org>
25941
25942 * tree.h (IDENTIFIER_ANON_P): New.
25943 (anon_aggrname_format, anon_aggname_p): Don't declare.
25944 (make_anon_name): Declare.
25945 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25946 (hash_tree): Likewise.
25947 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25948 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25949 (anon_cnt, make_anon_name): New.
25950
25951 2019-05-28 Martin Liska <mliska@suse.cz>
25952
25953 PR other/90315
25954 * opts-global.c (decode_options): Print help for all
25955 help_option_arguments.
25956 * opts.c (print_help): Add new argument.
25957 (common_handle_option): Remember all values into
25958 help_option_arguments.
25959 * opts.h (print_help): Add new argument.
25960
25961 2019-05-28 Martin Liska <mliska@suse.cz>
25962
25963 PR ipa/90555
25964 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25965 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25966 (func_checker::compare_bb): Call compare_loops.
25967
25968 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25969
25970 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25971 on sections construct.
25972 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25973 construct.
25974 (lower_omp_sections): Handle lastprivate conditional.
25975 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25976 lastprivate_conditional_map.
25977 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25978
25979 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25980 critical, taskgroup and section regions when looking for a region
25981 with non-NULL lastprivate_conditional_map.
25982
25983 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25984
25985 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25986 (*ix86_gen_sub3): Ditto.
25987 (*ix86_gen_sub3_carry): Ditto.
25988 (*ix86_gen_one_cmpl2): Ditto.
25989 (*ix86_gen_andsp): Ditto.
25990 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25991 (gen_and2_insn): New static function.
25992 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25993 Use gen_add3_insn instead of ix86_gen_add3.
25994 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25995 instead of ix86_gen_add3.
25996 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25997 Use gen_sub3_insn instead of ix86_gen_sub3.
25998 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25999 instead of ix86_gen_add3.
26000 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26001 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26002 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26003 * config/i386/i386-options.c (ix86_option_override_internal):
26004 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26005 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26006
26007 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26008
26009 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26010 and DW_OP_GNU_const_index opcodes.
26011
26012 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26013
26014 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26015
26016 2019-05-27 Richard Biener <rguenther@suse.de>
26017
26018 PR tree-optimization/90637
26019 * tree-ssa-sink.c (statement_sink_location): Honor the
26020 computed sink location for single-uses.
26021
26022 2019-05-27 Richard Biener <rguenther@suse.de>
26023
26024 PR middle-end/90610
26025 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26026 a bit-insert.
26027
26028 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26029
26030 * config/i386/i386.md (@sub<mode>3_carry): Rename
26031 from sub<mode>3_carry.
26032 (@leave_<mode>): New expander.
26033 (*leave): Rename from leave.
26034 (*leave_rex64): Rename from leave_rex64.
26035 (@monitorx_<mode>): Rename from monitorx_<mode>.
26036 (@clzero_<mode>): Rename from clzero_<mode>.
26037 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26038 from sse3_monitor_<mode>.
26039 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26040 (*ix86_gen_leave): Ditto.
26041 (*ix86_gen_monitor): Ditto.
26042 (*ix86_gen_monitorx): Ditto.
26043 (*ix86_gen_clzero): Ditto.
26044 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26045 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26046 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26047 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26048 Use gen_sse3_monitor instead of ix86_gen_monitor.
26049 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26050 instead of ix86_gen_monitorx.
26051 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26052 instead of ix86_gen_clzero.
26053 * config/i386/i386-options.c (ix86_option_override_internal):
26054 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26055 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26056
26057 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26058
26059 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26060 Rename from tls_global_dynamic_64_<mode>.
26061 (@tls_local_dynamic_base_64_<mode>): Rename from
26062 tls_local_dynamic_base_64_<mode>.
26063 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26064 Remove indirect function.
26065 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26066 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26067 instead of ix86_gen_tls_global_dynamic_64.
26068 Use gen_tls_local_dynamic_base_64 instead of
26069 ix86_gen_tls_local_dynamic_base_64.
26070 * config/i386/i386-options.c (ix86_option_override_internal):
26071 Do not initialize ix86_gen_tls_global_dynamic_64 and
26072 ix86_gen_tls_local_dynamic_base_64.
26073
26074 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26075
26076 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26077 Rename from pro_epilogue_adjust_stack_<mode>_add.
26078 (@pro_epilogue_adjust_stack_sub_<mode>)
26079 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26080 (@allocate_stack_worker_probe_<mode>):
26081 Rename from allocate_stack_worker_probe_<mode>.
26082 (allocate_stack): Use gen_allocate_stack_worker_probe.
26083 (probe_stack): Use gen_probe_stack_1.
26084 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26085 (@adjust_stack_and_probe_<mode>): Rename from
26086 adjust_stack_and_probe<mode>.
26087 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26088 (stack_protect_set): Use gen_stack_protect_set_1.
26089 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26090 (stack_protect_test): Use gen_stack_protect_test_1.
26091 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26092 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26093 Remove indirect function.
26094 (*ix86_gen_adjust_stack_and_probe): Ditto.
26095 (*ix86_gen_probe_stack_range): Ditto.
26096 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26097 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26098 (ix86_adjust_stack_and_probe_stack_clash): Use
26099 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26100 (ix86_adjust_stack_and_probe): Ditto.
26101 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26102 of ix86_gen_probe_stack_range.
26103 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26104 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26105 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26106 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26107 CODE_FOR_stack_protect_test_{si,di}.
26108 * config/i386/i386-options.c (ix86_option_override_internal):
26109 Do not initialize ix86_gen_allocate_stack_worker,
26110 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26111
26112 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26113
26114 * doc/invoke.texi (Link Options): Many editorial changes around
26115 -flinker-output.
26116
26117 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26118
26119 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26120 pre-Solaris 11 referene and most Studio compiler details.
26121
26122 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26123
26124 PR target/90530
26125 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26126 DImode to SImode in floating-point registers on 64-bit target.
26127 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26128 register_operand in xmpyu patterns.
26129
26130 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26131
26132 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26133 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26134 OMP_CLAUSE__REDUCTEMP_.
26135 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26136 OMP_CLAUSE__CONDTEMP_.
26137 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26138 * tree-pretty-print.c (dump_omp_clause): Likewise.
26139 * tree-nested.c (convert_nonlocal_omp_clauses,
26140 convert_local_omp_clauses): Likewise.
26141 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26142 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26143 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26144 on OMP_FOR.
26145 (gimplify_omp_for): Warn and disable conditional modifier from
26146 lastprivate on loop iterators.
26147 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26148 member.
26149 * omp-general.c (omp_extract_for_data): Initialize it.
26150 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26151 member.
26152 (delete_omp_context): Delete it.
26153 (lower_lastprivate_conditional_clauses): New function.
26154 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26155 handle lastprivate conditional clauses.
26156 (lower_reduction_clauses): Add CLIST argument, emit it into
26157 the critical section if any.
26158 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26159 lower_reduction_clauses callers.
26160 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26161 to lower_lastprivate_clauses.
26162 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26163 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26164 clist into a critical section if not emitted there already by
26165 lower_reduction_clauses.
26166 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26167 callers.
26168 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26169 conditional variables.
26170 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26171 clause is present.
26172 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26173 expand_omp_for_static_chunk): Handle lastprivate conditional.
26174 (expand_omp_for): Handle fd.lastprivate_conditional like
26175 fd.have_reductemp.
26176
26177 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26178
26179 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26180 kernel does not exit cleanly.
26181 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26182
26183 2019-05-24 Jason Merrill <jason@redhat.com>
26184
26185 Revert:
26186 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26187
26188 2019-05-24 Richard Biener <rguenther@suse.de>
26189
26190 PR testsuite/90607
26191 * tree-loop-distribution.c (struct partition): Add location
26192 member.
26193 (partition_alloc): Initialize all fields.
26194 (generate_memset_builtin): Use the location recorded in the
26195 partition for the generated call.
26196 (generate_memcpy_builtin): Likewise.
26197 (classify_partition): Record the location of a single store
26198 as location for the partition.
26199
26200 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26201
26202 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26203 for lo-part.
26204
26205 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26206
26207 PR target/90588
26208 * common/config/aarch64/aarch64-common.c
26209 (aarch64_rewrite_selected_cpu): Change local temporary variable
26210 type from unsigned long to uint64_t.
26211 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26212 aarch64_get_extension_string_for_isa_flags): Change declaration to
26213 match new definition by replacing unsigned long with uint64_t.
26214
26215 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26216
26217 PR target/90568
26218 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26219 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26220 Handle stack_protect_test_<mode> codegen similarly to corresponding
26221 sub instruction.
26222
26223 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26224
26225 * config/i386/darwin.h: Reject -mfentry*.
26226 * doc/sourcebuild.texi: Document mfentry target support.
26227
26228 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26229
26230 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26231 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26232 false for PC-relative functions.
26233 (rs6000_output_function_prologue): Change called function name to
26234 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26235 name,1" for PC-relative functions.
26236 (rs6000_elf_declare_function_name): Change called function name to
26237 rs6000_global_entry_point_prologue_needed_p.
26238
26239 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26240
26241 PR target/90552
26242 * config/i386/i386.c (gen_rtx_cost):
26243 Use ix86_tune_cost instead of ix86_cost.
26244
26245 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26246 Michael Meissner <meissner@linux.ibm.com>
26247 Segher Boessenkool <segher@kernel.crashing.org>
26248
26249 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26250 OPTION_MASK_PCREL.
26251 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26252 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26253 (rs6000_fndecl_pcrel_p): Likewise.
26254 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26255 error if -mpcrel is requested without -mcpu=future.
26256 (rs6000_opt_masks): Add entry for pcrel.
26257 (rs6000_fndecl_pcrel_p): New function.
26258 (rs6000_pcrel_p): Likewise.
26259 * config/rs6000/rs6000.opt (mpcrel): New option.
26260 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26261
26262 2019-05-23 Jan Hubicka <jh@suse.cz>
26263 Martin Liska <mliska@suse.cz>
26264
26265 PR tree-optimization/90576
26266 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26267 poly_int_tree_p.
26268 (aliasing_component_refs_p): Fix three way size compare conditional;
26269 give up earlier in case we can not decide on equivalence.
26270
26271 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26272 Michael Meissner <meissner@linux.ibm.com>
26273 Segher Boessenkool <segher@kernel.crashing.org>
26274
26275 * config.gcc: Add future cpu.
26276 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26277 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26278 #define.
26279 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26280 (RS6000_CPU): New instantiation for future cpu.
26281 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26282 PROCESSOR_FUTURE.
26283 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26284 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26285 * config/rs6000/rs6000-tables.opt: Regenerate.
26286 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26287 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26288 (rs6000_machine_from_flags): Handle future cpu.
26289 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26290 PROCESSOR_POWER9 for now.
26291 (rs6000_adjust_cost): Likewise.
26292 (rs6000_issue_rate): Likewise.
26293 (rs6000_register_move_cost): Likewise.
26294 (rs6000_opt_masks): Add entry for future.
26295 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26296 (MASK_FUTURE): New #define.
26297 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26298 * config/rs6000/rs6000.opt (mfuture): New target option.
26299 * doc/invoke.texi (mcpu): Add future cpu.
26300
26301 2019-05-23 Martin Liska <mliska@suse.cz>
26302
26303 PR c++/90587
26304 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26305 operation points to a temporary (pointed via tree_to_wide_ref)
26306 that is out of scope after the &.
26307
26308 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26309
26310 PR c++/90592
26311 * doc/extend.texi (Function Names): Add missing word.
26312
26313 2019-05-23 Richard Biener <rguenther@suse.de>
26314
26315 PR tree-optimization/88440
26316 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26317 at -O[2s]+.
26318 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26319 generated call.
26320 (generate_memcpy_builtin): Likewise.
26321 (distribute_loop): Pass in whether to only distribute patterns.
26322 (prepare_perfect_loop_nest): Also allow size optimization.
26323 (pass_loop_distribution::execute): When optimizing a loop
26324 nest for size allow pattern replacement.
26325
26326 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26327
26328 PR target/90568
26329 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26330 of xor.
26331
26332 2019-05-23 Martin Liska <mliska@suse.cz>
26333
26334 PR sanitizer/90570
26335 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26336 expression similarly to gimplify_decl_expr.
26337
26338 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26339
26340 * cse.c (cse_dump_path): s/dump_file/f.
26341
26342 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26343
26344 PR c++/90462
26345 * diagnostic-format-json.cc: Include "selftest.h".
26346 (json_from_expanded_location): Only add "file" key for non-NULL
26347 file strings.
26348 (json_from_location_range): Don't add "start" and "finish"
26349 children if they are UNKNOWN_LOCATION.
26350 (selftest::test_unknown_location): New selftest.
26351 (selftest::test_bad_endpoints): New selftest.
26352 (selftest::diagnostic_format_json_cc_tests): New function.
26353 * json.cc (json::object::get): New function.
26354 (selftest::test_object_get): New selftest.
26355 (selftest::json_cc_tests): Call it.
26356 * json.h (json::object::get): New decl.
26357 * selftest-run-tests.c (selftest::run_tests): Call
26358 selftest::diagnostic_format_json_cc_tests.
26359 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26360 decl.
26361
26362 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26363 Andrew Stubbs <amd@codesourcery.com>
26364
26365 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26366 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26367 (kernel): Rename to...
26368 (main_kernel): ... this.
26369 (load_image): Load _init_array and _fini_array kernels.
26370 (run): Add argument for kernel to run.
26371 (main): Run init_array_kernel before main_kernel, and
26372 fini_array_kernel after.
26373 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26374 amdgpu_hsa_kernel attribute on functions.
26375 (gcn_disable_constructors): Delete.
26376 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26377 * config/gcn/crt0.c (size_t): Define.
26378 (_init_array, _fini_array): New.
26379 (__preinit_array_start, __preinit_array_end,
26380 __init_array_start, __init_array_end,
26381 __fini_array_start, __fini_array_end): Declare weak references.
26382
26383 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26384
26385 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26386
26387 2019-05-22 Jason Merrill <jason@redhat.com>
26388
26389 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26390
26391 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26392
26393 PR target/88483
26394 * config/i386/i386-options.c (ix86_init_machine_status): Set
26395 stack_frame_required to true.
26396 * config/i386/i386.c (ix86_get_frame_size): New function.
26397 (ix86_frame_pointer_required): Replace get_frame_size with
26398 ix86_get_frame_size.
26399 (ix86_compute_frame_layout): Likewise.
26400 (ix86_find_max_used_stack_alignment): Changed to void. Set
26401 stack_frame_required.
26402 (ix86_finalize_stack_frame_flags): Always call
26403 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26404 ix86_get_frame_size.
26405 * config/i386/i386.h (machine_function): Add stack_frame_required.
26406
26407 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26408
26409 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26410
26411 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26412
26413 * common/config/aarch64/aarch64-common.c
26414 (struct aarch64_option_extension, struct processor_name_to_arch,
26415 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26416 aarch64_contains_opt,
26417 aarch64_get_extension_string_for_isa_flags): Change type of
26418 variables storing flags to uint64_t.
26419 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26420 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26421 * config/aarch64/aarch64.c (struct processor,
26422 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26423 aarch64_validate_march, aarch64_override_options,
26424 aarch64_option_print, aarch64_handle_attr_isa_flags,
26425 aarch64_declare_function_name, aarch64_start_file): Make flag
26426 variables uint64_t.
26427 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26428 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26429 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26430 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26431 * config/aarch64/driver-aarch64.c
26432 (struct aarch64_arch_extension, struct aarch64_core_data,
26433 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26434 flag variables uint64_t.
26435 * doc/invoke.texi: Add documentation for new arguments.
26436
26437 2019-05-22 Richard Biener <rguenther@suse.de>
26438
26439 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26440 rewrite ...
26441 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26442
26443 2019-05-22 Martin Liska <mliska@suse.cz>
26444
26445 PR lto/90500
26446 * doc/extend.texi: Document the change.
26447
26448 2019-05-22 Richard Biener <rguenther@suse.de>
26449
26450 PR tree-optimization/90450
26451 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26452 (mem_ref_hasher::equal): Check it.
26453 (mem_ref_alloc): Initialize it.
26454 (gather_mem_refs_stmt): Set it.
26455
26456 2019-05-22 Richard Biener <rguenther@suse.de>
26457
26458 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26459 Add ABS_EXPR.
26460 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26461 as ABSU_EXPR.
26462
26463 2019-05-22 Alan Modra <amodra@gmail.com>
26464
26465 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26466 (ASM_CPU_SPEC): Conditionally add -many.
26467 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26468 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26469 (rs6000_file_start): ..extracted from here, and modified to
26470 test all ISA bits.
26471 (rs6000_output_function_prologue): Emit .machine as necessary.
26472
26473 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26474
26475 PR middle-end/90553
26476 * ira-lives.c (process_bb_node_lives): Consider defs
26477 for a call insn to be die before the call, not after.
26478
26479 * function.c (assign_parm_setup_block): Raise alignment of
26480 stacked parameter only for STRICT_ALIGNMENT targets.
26481
26482 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26483
26484 * config/rs6000/constraints.md (define_register_constraint "wz"):
26485 Delete.
26486 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26487 RS6000_CONSTRAINT_wz.
26488 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26489 (rs6000_init_hard_regno_mode_ok): Adjust.
26490 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26491 * doc/md.texi (Machine Constraints): Adjust.
26492
26493 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26494
26495 * config/rs6000/constraints.md (define_register_constraint "wl"):
26496 Delete.
26497 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26498 RS6000_CONSTRAINT_wl.
26499 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26500 (rs6000_init_hard_regno_mode_ok): Adjust.
26501 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26502 * doc/md.texi (Machine Constraints): Adjust.
26503
26504 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26505
26506 * config/rs6000/constraints.md (define_register_constraint "wm"):
26507 Delete.
26508 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26509 RS6000_CONSTRAINT_wm.
26510 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26511 (rs6000_init_hard_regno_mode_ok): Adjust.
26512 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26513 * doc/md.texi (Machine Constraints): Adjust.
26514
26515 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26516
26517 * config/rs6000/constraints.md (define_register_constraint "wk"):
26518 Delete.
26519 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26520 RS6000_CONSTRAINT_wk.
26521 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26522 (rs6000_init_hard_regno_mode_ok): Adjust.
26523 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26524 * doc/md.texi (Machine Constraints): Adjust.
26525
26526 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26527
26528 * config/rs6000/constraints.md (define_register_constraint "wj"):
26529 Delete.
26530 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26531 RS6000_CONSTRAINT_wj.
26532 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26533 (rs6000_init_hard_regno_mode_ok): Adjust.
26534 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26535 (VS_64dm): Delete.
26536 * config/rs6000/vsx.md: Ditto.
26537 * doc/md.texi (Machine Constraints): Adjust.
26538
26539 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26540
26541 * config/rs6000/constraints.md (define_register_constraint "wh"):
26542 Delete.
26543 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26544 RS6000_CONSTRAINT_wh.
26545 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26546 (rs6000_init_hard_regno_mode_ok): Adjust.
26547 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26548 * doc/md.texi (Machine Constraints): Adjust.
26549
26550 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26551
26552 PR target/90547
26553 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26554 Avoid calling gen_lowpart with CONST operand.
26555
26556 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26557
26558 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26559 field template_last_to_copy.
26560 (ssa_create_duplicates): Set it, and use it. Attempt to
26561 preserve more debug stmts.
26562
26563 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26564
26565 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26566 (signbit<mode>2): New expander
26567
26568 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26569
26570 PR bootstrap/87338
26571 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26572 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26573
26574 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26575
26576 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26577 %ebx and %ecx bafore calling cpuid with leaf 1 or
26578 non-constant leaf argument.
26579
26580 2019-05-21 Alan Modra <amodra@gmail.com>
26581
26582 PR target/90545
26583 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26584 power9 direct move cost.
26585
26586 2019-05-21 Richard Biener <rguenther@suse.de>
26587
26588 PR middle-end/90510
26589 * fold-const.c (fold_read_from_vector): New function.
26590 * fold-const.h (fold_read_from_vector): Declare.
26591 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26592 single-element insert permutations. Canonicalize selector
26593 further and fix issue with last commit.
26594
26595 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26596
26597 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26598 parameter with default value false to declaration.
26599 (split_edges_for_insertion): New inline function. Wrapper for
26600 split_critical_edges with for_edge_insertion_p = true.
26601 * tree-cfg.c (split_critical_edges): Don't split non-critical
26602 edges if for_edge_insertion_p is false. Fix whitespace.
26603 * tree-ssa-pre.c (pass_pre::execute): Call
26604 split_edges_for_insertion instead of split_critical_edges.
26605 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26606 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26607 (pass_data_sink_code): Update function name in the comment.
26608
26609 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26610
26611 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26612 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26613 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26614 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26615 positives.
26616
26617 2019-05-21 Martin Liska <mliska@suse.cz>
26618
26619 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26620 an extra newline.
26621 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26622 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26623 vec_lvsr.
26624 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26625 Quote a C type.
26626 (rs6000_function_arg): Likewise.
26627 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26628 (rs6000_expand_ternop_builtin): Use interval syntax.
26629 (get_element_number): Likewise.
26630 (altivec_expand_builtin): Likewise.
26631 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26632
26633 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26634
26635 PR c++/59813
26636 PR target/90418
26637 * function.h (struct function): Add calls_eh_return member.
26638 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26639 gimplifying __builtin_eh_return call.
26640 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26641 to cfun.
26642 (expand_call_inline): Or in src_cfun->calls_eh_return into
26643 dst_cfun->calls_eh_return.
26644 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26645 cfun->calls_eh_return.
26646 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26647 * lto-streamer-out.c (output_struct_function_base): Write
26648 calls_eh_return.
26649
26650 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26651
26652 PR rtl-optimization/43147
26653 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26654 IX86_BUILTIN_SHUFPD.
26655
26656 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26657
26658 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26659 (refs_may_alias_p_1): ... here; update stats.
26660 (refs_may_alias_p): Do not update stats here.
26661
26662 2019-05-20 Richard Biener <rguenther@suse.de>
26663
26664 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26665 doesn't produce pointers.
26666 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26667 the first operand points to.
26668
26669 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26670
26671 * tree-ssa-alias.c (compare_sizes): New function.
26672 (sompare_type_sizes): New function
26673 (aliasing_component_refs_p): Use it.
26674 (indirect_ref_may_alias_decl_p): Likewise.
26675
26676 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26677
26678 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26679
26680 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26681
26682 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26683 (LIBLSAN_EARLY_SPEC): Likewise.
26684 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26685
26686 2019-05-20 Martin Liska <mliska@suse.cz>
26687
26688 * config/i386/i386.c (ix86_libc_has_fast_function):
26689 Add ATTRIBUTE_UNUSED for the argument.
26690
26691 2019-05-20 Richard Biener <rguenther@suse.de>
26692
26693 * gimple-match-head.c: Include vec-perm-indices.h.
26694 * generic-match-head.c: Likewise.
26695 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26696 is included.
26697 * fold-const.c (fold_vec_perm): Export.
26698 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26699 (match.pd): ...here.
26700
26701 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26702
26703 * cfgloop.h (struct loop): Add simdlen member.
26704 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26705 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26706 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26707 as new argument to autovectorize_vector_sizes target hook. If
26708 loop->simdlen, pick up vector size where the vectorization factor
26709 is equal to loop->simd, and if there is none, fall back to the first
26710 successful one.
26711 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26712 caller.
26713 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26714 * omp-general.c (omp_max_vf): Likewise.
26715 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26716 * tree-vect-slp.c (vect_slp_bb): Likewise.
26717 * target.def (autovectorize_vector_sizes): Add ALL argument and
26718 document it.
26719 * doc/tm.texi: Adjust documentation.
26720 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26721 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26722 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26723 bool argument.
26724 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26725 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26726 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26727 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26728 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26729 preferred vector size is not 512-bit or 256-bit, just put those
26730 unpreferred ones last.
26731
26732 2019-05-20 Martin Liska <mliska@suse.cz>
26733
26734 * targhooks.c (default_libc_has_fast_function): New function.
26735 * targhooks.h (default_libc_has_fast_function): Likewise.
26736
26737 2019-05-20 Martin Liska <mliska@suse.cz>
26738
26739 PR middle-end/90263
26740 * builtins.c (expand_builtin_memory_copy_args): When having a
26741 target with fast mempcpy implementation do now use memcpy.
26742 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26743 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26744 * doc/tm.texi: Likewise.
26745 * doc/tm.texi.in: Likewise.
26746 * target.def:
26747 * expr.c (emit_block_move_hints): Add 2 new arguments.
26748 * expr.h (emit_block_move_hints): Bail out when libcall
26749 to memcpy would be used.
26750
26751 2019-05-20 Martin Liska <mliska@suse.cz>
26752
26753 * profile-count.c: Add vertical spacing in order
26754 to separate functions.
26755 * profile-count.h: Likewise.
26756
26757 2019-05-20 Martin Liska <mliska@suse.cz>
26758
26759 * profile-count.h: Do not use full qualified
26760 names if possible.
26761 * profile-count.c (profile_count::to_frequency): Likewise.
26762
26763 2019-05-20 Martin Liska <mliska@suse.cz>
26764
26765 * profile-count.h (enum profile_quality): Use capital letters
26766 for enum value names. Use the adjusted names.
26767 * profile-count.c: Use the adjusted names.
26768
26769 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26770
26771 * config/rs6000/constraints.md (define_register_constraint "wH"):
26772 Delete.
26773 (define_register_constraint "wI"): Delete.
26774 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26775 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26776 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26777 (rs6000_init_hard_regno_mode_ok): Adjust.
26778 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26779 resp. "d", or with "wa" as appropriate, all with "p8v".
26780 * config/rs6000/vsx.md: Ditto.
26781 * doc/md.texi (Machine Constraints): Adjust.
26782
26783 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26784
26785 * config/rs6000/constraints.md (define_register_constraint "wy"):
26786 Delete.
26787 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26788 RS6000_CONSTRAINT_wy.
26789 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26790 (rs6000_init_hard_regno_mode_ok): Adjust.
26791 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26792 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26793 (define_mode_attr Fisa): New.
26794 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26795 * doc/md.texi (Machine Constraints): Adjust.
26796
26797 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26798
26799 * config/rs6000/constraints.md (define_register_constraint "wu"):
26800 Delete.
26801 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26802 RS6000_CONSTRAINT_wu.
26803 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26804 (rs6000_init_hard_regno_mode_ok): Adjust.
26805 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26806 both with "p8v".
26807 (define_mode_attr Fa): Delete.
26808 * config/rs6000/vsx.md: Ditto.
26809 * doc/md.texi (Machine Constraints): Adjust.
26810
26811 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26812
26813 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26814 Delete.
26815 (define_register_constraint "wK"): Delete.
26816 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26817 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26818 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26819 (rs6000_init_hard_regno_mode_ok): Adjust.
26820 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26821 Replace "wK" constraint by "wH" with "p9v".
26822 * config/rs6000/vsx.md: Ditto.
26823 * doc/md.texi (Machine Constraints): Adjust.
26824
26825 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26826
26827 * config/rs6000/constraints.md (define_register_constraint "wb"):
26828 Delete.
26829 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26830 RS6000_CONSTRAINT_wb.
26831 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26832 (rs6000_init_hard_regno_mode_ok): Adjust.
26833 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26834 * config/rs6000/vsx.md: Ditto.
26835 * doc/md.texi (Machine Constraints): Adjust.
26836
26837 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26838
26839 * config/rs6000/constraints.md (define_register_constraint "wo"):
26840 Delete.
26841 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26842 RS6000_CONSTRAINT_wo.
26843 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26844 (rs6000_init_hard_regno_mode_ok): Adjust.
26845 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26846 * config/rs6000/altivec.md: Ditto.
26847 * doc/md.texi (Machine Constraints): Adjust.
26848
26849 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26850
26851 * config/darwin-c.c (darwin_register_objc_includes): Do not
26852 prepend the sysroot when building gnu-runtime header search
26853 paths.
26854
26855 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26856
26857 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26858 instead of direct output of the asm.
26859
26860 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26861
26862 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26863 argument to be type bool (was int before).
26864 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26865 at first use. Use type bool for some variables. Fix a theoretical
26866 eh_return bug for svr4.
26867
26868 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26869
26870 * config/rs6000/rs6000.md (isa): New attribute.
26871 (enabled): New attribute.
26872
26873 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26874
26875 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26876 assemble_start_function and assemble_end_function.
26877
26878 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26879
26880 PR middle-end/89433
26881 * omp-general.c (oacc_verify_routine_clauses): Change formal
26882 parameters. Add checking if already marked with an OpenACC
26883 'routine' directive. Adjust all users.
26884
26885 PR middle-end/89433
26886 * omp-general.c (oacc_build_routine_dims): Move some of its
26887 processing into...
26888 (oacc_verify_routine_clauses): ... this new function.
26889 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26890
26891 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26892
26893 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26894 formating of picbase labels to match other ports.
26895
26896 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26897
26898 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26899 in the generated code.
26900
26901 2019-05-16 Martin Sebor <msebor@redhat.com>
26902
26903 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26904 identifiers, keywords, operators, and types in diagnostics. Correct
26905 quoting, spelling, and sentence capitalization issues.
26906 (expand_builtin_atomic_is_lock_free): Same.
26907 (fold_builtin_next_arg): Same.
26908 * cfgexpand.c (expand_one_var): Same.
26909 (tree_conflicts_with_clobbers_p): Same.
26910 (expand_asm_stmt): Same.
26911 (verify_loop_structure): Same.
26912 * cgraphunit.c (process_function_and_variable_attributes): Same.
26913 * collect-utils.c (collect_execute): Same.
26914 * collect2.c (maybe_run_lto_and_relink): Same.
26915 (is_lto_object_file): Same.
26916 (scan_prog_file): Same.
26917 * convert.c (convert_to_real_1): Same.
26918 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26919 * except.c (verify_eh_tree): Same.
26920 * gcc.c (execute): Same.
26921 (eval_spec_function): Same.
26922 (run_attempt): Same.
26923 (driver::set_up_specs): Same.
26924 (compare_debug_auxbase_opt_spec_function): Same.
26925 * gcov-tool.c (unlink_gcda_file): Same.
26926 (do_merge): Same.
26927 (do_rewrite): Same.
26928 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26929 * gimplify.c (gimplify_asm_expr): Same.
26930 (gimplify_adjust_omp_clauses): Same.
26931 * hsa-gen.c (gen_hsa_addr_insns): Same.
26932 (gen_hsa_insns_for_load): Same.
26933 (gen_hsa_cmp_insn_from_gimple): Same.
26934 (gen_hsa_insns_for_operation_assignment): Same.
26935 (gen_get_level): Same.
26936 (gen_hsa_alloca): Same.
26937 (omp_simple_builtin::generate): Same.
26938 (gen_hsa_atomic_for_builtin): Same.
26939 (gen_hsa_insns_for_call): Same.
26940 * input.c (dump_location_info): Same.
26941 * ipa-devirt.c (compare_virtual_tables): Same.
26942 * ira.c (ira_setup_eliminable_regset): Same.
26943 * lra-assigns.c (lra_assign): Same.
26944 * lra-constraints.c (lra_constraints): Same.
26945 * lto-streamer-in.c (lto_input_mode_table): Same.
26946 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26947 (merge_and_complain): Same.
26948 (compile_offload_image): Same.
26949 (compile_images_for_offload_targets): Same.
26950 (debug_objcopy): Same.
26951 (run_gcc): Same.
26952 (main): Same.
26953 * opts.c (print_specific_help): Same.
26954 (parse_no_sanitize_attribute): Same.
26955 (print_help): Same.
26956 (handle_param): Same.
26957 * plugin.c (add_new_plugin): Same.
26958 (parse_plugin_arg_opt): Same.
26959 (try_init_one_plugin): Same.
26960 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26961 operators, and types in diagnostics. Correct quoting and spelling
26962 issues.
26963 * read-rtl-function.c (parse_edge_flag_token): Same.
26964 (function_reader::parse_enum_value): Same.
26965 * reg-stack.c (check_asm_stack_operands): Same.
26966 * regcprop.c (validate_value_data): Same.
26967 * sched-rgn.c (make_pass_sched_fusion): Same.
26968 * stmt.c (check_unique_operand_names): Same.
26969 * targhooks.c (default_target_option_pragma_parse): Same.
26970 * tlink.c (recompile_files): Same.
26971 * toplev.c (process_options): Same.
26972 (do_compile): Same.
26973 * trans-mem.c (diagnose_tm_1): Same.
26974 (ipa_tm_scan_irr_block): Same.
26975 (ipa_tm_diagnose_transaction): Same.
26976 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26977 format a tree code name in a diagnostic.
26978 (verify_types_in_gimple_min_lval): Same.
26979 (verify_types_in_gimple_reference): Same.
26980 (verify_gimple_call): Same.
26981 (verify_gimple_assign_unary): Same.
26982 (verify_gimple_assign_binary): Same.
26983 (verify_gimple_assign_ternary): Same.
26984 (verify_gimple_assign_single): Same.
26985 (verify_gimple_switch): Same.
26986 (verify_gimple_label): Same.
26987 (verify_gimple_phi): Same.
26988 (verify_gimple_in_seq): Same.
26989 (verify_eh_throw_stmt_node): Same.
26990 (collect_subblocks): Same.
26991 (gimple_verify_flow_info): Same.
26992 (do_warn_unused_result): Same.
26993 * tree-inline.c (expand_call_inline): Same.
26994 * tree-into-ssa.c (update_ssa): Same.
26995 * tree.c (tree_int_cst_elt_check_failed): Same.
26996 (tree_vec_elt_check_failed): Same.
26997 (omp_clause_operand_check_failed): Same.
26998 (verify_type_variant): Same.
26999 (verify_type): Same.
27000 * value-prof.c (verify_histograms): Same.
27001 * varasm.c (assemble_start_function): Same.
27002
27003 2019-05-16 Martin Sebor <msebor@redhat.com>
27004
27005 * config/i386/i386-expand.c (get_element_number): Quote keywords
27006 and other internal names in diagnostics. Adjust other diagnostic
27007 formatting issues noted by -Wformat-diag.
27008 * config/i386/i386-features.c
27009 (ix86_mangle_function_version_assembler_name): Same.
27010 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27011 * config/i386/i386.c (ix86_function_type_abi): Same.
27012 (ix86_function_ms_hook_prologue): Same.
27013 (classify_argument): Same.
27014 (ix86_expand_prologue): Same.
27015 (ix86_md_asm_adjust): Same.
27016 (ix86_memmodel_check): Same.
27017
27018 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27019
27020 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27021 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27022 and fpxx modes.
27023
27024 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 PR target/90497
27027 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27028 intrinsics without SSE/SSE2/SSSE3.
27029 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27030 check.
27031 (*mmx_uavgv8qi3): Likewise.
27032
27033 2019-05-17 Richard Biener <rguenther@suse.de>
27034
27035 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27036 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27037
27038 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27039
27040 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27041 vec_sldw insn pattern.
27042
27043 2019-05-17 Richard Biener <rguenther@suse.de>
27044
27045 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27046
27047 2019-05-17 Martin Liska <mliska@suse.cz>
27048
27049 PR driver/90496
27050 * toplev.c (output_stack_usage): With LTO and sanitizer it
27051 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27052 has no file location.
27053
27054 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27055
27056 PR c++/90484
27057 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27058 sz0 is equal to sz1, instead return false in that case.
27059
27060 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27061 has non-constant expression, force sctx.lane and use two
27062 argument IFN_GOMP_SIMD_LANE instead of single argument.
27063 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27064 two argument IFN_GOMP_SIMD_LANE without lhs.
27065 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27066 member.
27067 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27068 Define.
27069 (LOOP_REQUIRES_VERSIONING): Or in
27070 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27071 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27072 simd_if_cond.
27073 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27074 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27075 from simd if clause if needed.
27076
27077 2019-05-16 Richard Biener <rguenther@suse.de>
27078
27079 * tree-affine.c (expr_to_aff_combination): New function split
27080 out from...
27081 (tree_to_aff_combination): ... here.
27082 (aff_combination_expand): Avoid building a GENERIC tree.
27083
27084 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27085
27086 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27087 assemble_start_function and assemble_end_function calls.
27088 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27089 assemble_start_function and assemble_end_function.
27090 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27091 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27092 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27093 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27094 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27095 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27096 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27097 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27098 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27099 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27100 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27101 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27102 Likewise.
27103 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27104 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27105 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27106 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27107 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27108 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27109 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27110 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27111 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27112 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27113 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27114 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27115 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27116 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27117 Likewise.
27118 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27119 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27120 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27121
27122 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27123
27124 * tree-ssa-alias.c (alias_stats): Add
27125 aliasing_component_refs_p_may_alias and
27126 aliasing_component_refs_p_no_alias.
27127 (dump_alias_stats): Print aliasing_component_refs_p stats.
27128 (aliasing_component_refs_p): Update stats.
27129
27130 2019-05-16 Martin Liska <mliska@suse.cz>
27131
27132 PR lto/90500
27133 * multiple_target.c (expand_target_clones): Do not allow
27134 target_clones being used with a symbol that is an alias.
27135
27136 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27137
27138 PR tree-optimization/90394
27139 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27140 positives rather than ICE for cases where (code2 == NE_EXPR
27141 && code1 == BIT_AND_EXPR).
27142
27143 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27144
27145 PR fortran/90329
27146 * tree-core.h (struct tree_decl_common): Document
27147 decl_nonshareable_flag for PARM_DECLs.
27148 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27149 * calls.c (expand_call): Don't try tail call if caller
27150 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27151 passed on the stack and callee needs to pass any arguments on the
27152 stack.
27153 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27154 else if instead of series of mutually exclusive ifs. Handle
27155 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27156 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27157
27158 * lto-streamer.h (LTO_major_version): Bump to 9.
27159
27160 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27161
27162 PR tree-optimization/90106
27163 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27164 new parameter as new internal function call, also move it to new
27165 basic block.
27166 (use_internal_fn): Pass internal function call to
27167 shrink_wrap_one_built_in_call_with_conds.
27168
27169 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27170
27171 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27172 max_vf to 1.
27173 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27174 safelen_int and set loop->dont_vectorize.
27175
27176 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27177
27178 PR target/89021
27179 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27180 SSE/SSE2/SSSE3.
27181 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27182 Likewise.
27183 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27184 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27185 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27186 is defined.
27187
27188 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 PR target/89021
27191 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27192 define_insn_and_split to support SSE emulation.
27193 (*vec_extractv2sf_0): Likewise.
27194 (*vec_extractv2sf_1): Likewise.
27195 (*vec_extractv2si_0): Likewise.
27196 (*vec_extractv2si_1): Likewise.
27197 (*vec_extractv2si_zext_mem): Likewise.
27198 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27199 (vec_extractv2sf_1 splitter): Likewise.
27200 (vec_extractv2sfsf): Likewise.
27201 (vec_setv2si): Likewise.
27202 (vec_extractv2si_1 splitter): Likewise.
27203 (vec_extractv2sisi): Likewise.
27204 (vec_setv4hi): Likewise.
27205 (vec_extractv4hihi): Likewise.
27206 (vec_setv8qi): Likewise.
27207 (vec_extractv8qiqi): Likewise.
27208 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27209 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27210 (vec_extractv2sisi): Likewise.
27211 (vec_extractv4hihi): Likewise.
27212 (vec_extractv8qiqi): Likewise.
27213 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27214 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27215 (vec_initv2sisi): Likewise.
27216 (vec_initv4hihi): Likewise.
27217 (vec_initv8qiqi): Likewise.
27218 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27219 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27220 (vec_setv4hi): Likewise.
27221 (vec_setv8qi): Likewise.
27222
27223 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27224
27225 PR target/89021
27226 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27227 TARGET_MMX_WITH_SSE.
27228 (MMXMODE:*mov<mode>_internal): Likewise.
27229 (MMXMODE:movmisalign<mode>): Likewise.
27230
27231 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27232
27233 PR target/89021
27234 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27235 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27236 (sse2_cvtpd2pi): Ditto.
27237 (sse2_cvttpd2pi): Ditto.
27238 (*vec_concatv2sf_sse4_1): Ditto.
27239 (*vec_concatv2sf_sse): Ditto.
27240 (*vec_concatv2si_sse4_1): Ditto.
27241 (*vec_concatv2si): Ditto.
27242 (*vec_concatv4si_0): Ditto.
27243 (*vec_concatv2di_0): Ditto.
27244
27245 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27246
27247 PR target/89021
27248 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27249
27250 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27251
27252 PR target/89021
27253 * config/i386/sse.md (ssse3_palignrdi): Changed to
27254 define_insn_and_split to support SSE emulation.
27255
27256 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27257
27258 PR target/89021
27259 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27260
27261 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27262
27263 PR target/89021
27264 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27265 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27266 SSE emulation.
27267
27268 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27269
27270 PR target/89021
27271 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27272 or TARGET_MMX_WITH_SSE.
27273 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27274
27275 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27276
27277 PR target/89021
27278 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27279
27280 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27281
27282 PR target/89021
27283 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27284 Changed to define_insn_and_split to support SSE emulation.
27285
27286 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27287
27288 PR target/89021
27289 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27290 Changed to define_insn_and_split to support SSE emulation.
27291
27292 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27293
27294 PR target/89021
27295 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27296 (*mmx_<emms>): This.
27297 (mmx_<emms>): New expander.
27298
27299 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27300
27301 PR target/89021
27302 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27303 support.
27304 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27305
27306 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27307
27308 PR target/89021
27309 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27310
27311 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27312
27313 PR target/89021
27314 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27315
27316 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27317
27318 PR target/89021
27319 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27320 TARGET_MMX_WITH_SSE.
27321 (*mmx_uavgv4hi3): Add SSE emulation.
27322
27323 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27324
27325 PR target/89021
27326 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27327 and TARGET_MMX_WITH_SSE.
27328 (*mmx_uavgv8qi3): Add SSE emulation.
27329
27330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27331
27332 PR target/89021
27333 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27334 maskmovdqu for __MMX_WITH_SSE__.
27335
27336 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27337
27338 PR target/89021
27339 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27340 TARGET_MMX and TARGET_MMX_WITH_SSE.
27341 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27342
27343 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27344
27345 PR target/89021
27346 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27347 define_insn_and_split to support SSE emulation.
27348
27349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27350
27351 PR target/89021
27352 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27353 and TARGET_MMX_WITH_SSE.
27354 (mmx_<code>v8qi3): Likewise.
27355 (smaxmin:<code>v4hi3): New.
27356 (umaxmin:<code>v8qi3): Likewise.
27357 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27358 (umaxmin:*mmx_<code>v8qi3): Likewise.
27359
27360 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27361
27362 PR target/89021
27363 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27364 TARGET_MMX_WITH_SSE.
27365 (*mmx_pinsrw): Add SSE emulation.
27366
27367 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27368
27369 PR target/89021
27370 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27371
27372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27373
27374 PR target/89021
27375 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27376 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27377 SSE emulation.
27378
27379 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27380
27381 PR target/89021
27382 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27383 (sse_cvttps2pi): Likewise.
27384
27385 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27386
27387 PR target/89021
27388 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27389 TARGET_MMX_WITH_SSE.
27390 (mmx_pshufw_1): Add SSE emulation.
27391 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27392 TARGET_MMX_WITH_SSE to support SSE emulation.
27393
27394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27395
27396 PR target/89021
27397 * config/i386/constraints.md (Yw): New constraint.
27398 * config/i386/mmx.md (*vec_dupv2si): Changed to
27399 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27400 support SSE emulation.
27401
27402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27403
27404 PR target/89021
27405 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27406 TARGET_MMX_WITH_SSE.
27407 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27408 support.
27409 (mmx_gt<mode>3): Likewise.
27410
27411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27412
27413 PR target/89021
27414 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27415 TARGET_MMX_WITH_SSE. Add SSE support.
27416
27417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27418
27419 PR target/89021
27420 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27421 TARGET_MMX_WITH_SSE.
27422 (any_logic:<code><mode>3): New.
27423 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27424 Add SSE support.
27425
27426 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27427
27428 PR target/89021
27429 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27430 TARGET_MMX_WITH_SSE. Add SSE emulation.
27431 (mmx_<shift_insn><mode>3): Likewise.
27432 (ashr<mode>3): New.
27433 (<shift_insn><mode>3): Likewise.
27434
27435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27436
27437 PR target/89021
27438 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27439 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27440
27441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27442
27443 PR target/89021
27444 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27445 TARGET_MMX_WITH_SSE.
27446 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27447 SSE support.
27448
27449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27450
27451 PR target/89021
27452 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27453 TARGET_MMX_WITH_SSE.
27454 (mulv4hi3): New.
27455 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27456 support.
27457
27458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27459
27460 PR target/89021
27461 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27462 (plusminus:mmx_<plusminus_insn><mode>3): Check
27463 TARGET_MMX_WITH_SSE.
27464 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27465 (<plusminus_insn><mode>3): New.
27466 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27467 (*mmx_<plusminus_insn><mode>3): Likewise.
27468
27469 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27470
27471 PR target/89021
27472 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27473 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27474 prototype.
27475 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27476 define_insn_and_split to support SSE emulation.
27477 (mmx_punpcklbw): Likewise.
27478 (mmx_punpckhwd): Likewise.
27479 (mmx_punpcklwd): Likewise.
27480 (mmx_punpckhdq): Likewise.
27481 (mmx_punpckldq): Likewise.
27482
27483 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27484 Uros Bizjak <ubizjak@gmail.com>
27485
27486 PR target/89021
27487 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27488 New function.
27489 (ix86_split_mmx_pack): Likewise.
27490 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27491 New prototype.
27492 (ix86_split_mmx_pack): Likewise.
27493 * config/i386/i386.md (mmx_isa): New.
27494 (enabled): Also check mmx_isa.
27495 * config/i386/mmx.md (any_s_truncate): New code iterator.
27496 (s_trunsuffix): New code attr.
27497 (mmx_packsswb): Removed.
27498 (mmx_packssdw): Likewise.
27499 (mmx_packuswb): Likewise.
27500 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27501 MMX packsswb/packuswb with SSE2.
27502 (mmx_packssdw): Likewise.
27503 * config/i386/predicates.md (register_mmxmem_operand): New.
27504
27505 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27506
27507 PR target/89021
27508 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27509 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27510 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27511 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27512 (ix86_vector_mode_supported_p): Likewise.
27513 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27514
27515 2019-05-15 Martin Liska <mliska@suse.cz>
27516
27517 PR middle-end/90478
27518 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27519 Check for overflow.
27520
27521 2019-05-15 Richard Biener <rguenther@suse.de>
27522
27523 * tree-into-ssa.c (pass_build_ssa::execute): Run
27524 update_address_taken before going into SSA.
27525
27526 2019-05-15 Richard Biener <rguenther@suse.de>
27527
27528 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27529 as __BIT_FIELD_REF with type with -gimple.
27530
27531 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27532
27533 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27534 semantically equivalent branches (left over after prior refactorings).
27535
27536 2019-05-15 Richard Biener <rguenther@suse.de>
27537
27538 PR tree-optimization/88828
27539 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27540 bogus check.
27541
27542 2019-05-14 Richard Biener <rguenther@suse.de>
27543
27544 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27545 as __VIEW_CONVERT with -gimple.
27546
27547 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27548
27549 PR target/82920
27550 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27551 Darwin.
27552
27553 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27554
27555 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27556 define_split to become a define_insn_and_split.
27557
27558 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27559
27560 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27561 arguments.
27562 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27563 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27564 (sibcall_epilogue): Adjust.
27565 (epilogue): Adjust.
27566
27567 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27568
27569 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27570 to unsupported ones.
27571 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27572 * config.host: Likewise.
27573 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27574 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27575 __svr4__]: Remove "brand" fallback.
27576 [!KSTAT_DATA_STRING]: Remove.
27577 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27578 to *-*-solaris2*.
27579 (comdat_group): Likewise.
27580 (set_have_as_tls): Likewise.
27581 (gcc_cv_target_dl_iterate_phdr): Likewise.
27582 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27583 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27584 * configure: Regenerate.
27585 * doc/install.texi: Simplify Solaris target triplets.
27586 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27587 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27588 Remove Solaris 10 references.
27589 Remove obsolete Solaris bug reference.
27590 (Specific, sparc-sun-solaris2.10): Remove.
27591
27592 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27593
27594 * config/i386/i386.md (any_div): New code iterator.
27595 (paired_mod): New code attribute.
27596 (sgnprefix): Handle DIV and UDIV RTXes.
27597 (u): Ditto.
27598 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27599 and udivmod<mode>4 patterns using any_div code iterator.
27600 (divmod splitters): Macroize splitters using any_div code iterator.
27601 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27602 (*udivmodsi4_pow2_zext_2): Ditto.
27603 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27604 and *udivmod<mode>4_noext patterns using any_div code iterator.
27605 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27606 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27607 patterns using any_div code iterator.
27608 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27609 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27610 patterns using any_div code iterator.
27611 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27612 udivmodhiqi3 patterns using any_extend code iterator.
27613
27614 2019-05-14 Richard Biener <rguenther@suse.de>
27615 H.J. Lu <hongjiu.lu@intel.com>
27616
27617 PR tree-optimization/88828
27618 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27619 permuting in a single non-constant element not extracted
27620 from a vector.
27621
27622 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27623
27624 * internal-fn.def (SIGNBIT): New.
27625 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27626 defined.
27627 (signbitv4sf2): Likewise.
27628
27629 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27630
27631 PR target/90357
27632 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27633 next insn when the SRC reg is dead.
27634
27635 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27636
27637 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27638 (alloc_cand_and_find_basis): Ditto.
27639 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27640 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27641 (create_add_imm_cand, slsr_process_cast): Ditto.
27642 (slsr_process_copy, replace_mult_candidate): Ditto.
27643 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27644 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27645 (pass_strength_reduction::execute): Init the first NULL element.
27646
27647 2019-05-13 Nathan Sidwell <nathan@acm.org>
27648
27649 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27650 (run_attempt): Reformat line break.
27651
27652 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27653
27654 PR target/90418
27655 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27656 data registers in sibcall epilogues.
27657 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27658
27659 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27660
27661 PR target/89221
27662 * configure.ac (--enable-frame-pointer):
27663 Disable by default for cygwin and mingw.
27664 * configure: Regenerate.
27665
27666 2019-05-13 Nathan Sidwell <nathan@acm.org>
27667
27668 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27669 piece of code.
27670 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27671 (gen_member_die): Move abstract origin check earlier. Only VARs
27672 can be static_inline_p. Simplify splicing control flow.
27673
27674 2019-05-13 Richard Biener <rguenther@suse.de>
27675
27676 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27677 VIEW_CONVERT_EXPR.
27678 (vect_build_slp_tree_1): Likewise.
27679
27680 2019-05-13 Richard Biener <rguenther@suse.de>
27681
27682 PR tree-optimization/90402
27683 * tree-if-conv.c (tree_if_conversion): Value number only
27684 the loop body by making the latch an exit of the region
27685 as well.
27686 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27687 processing PHIs.
27688 (do_rpo_vn): Deal with multiple edges into the entry block
27689 that are not backedges inside the region by skipping PHIs
27690 of the entry block.
27691
27692 2019-05-13 Richard Biener <rguenther@suse.de>
27693
27694 PR tree-optimization/90316
27695 * tree-ssa-pre.c (insert_aux): Fold into ...
27696 (insert): ... this function. Use a RPO walk to reduce the
27697 number of required iterations.
27698
27699 2019-05-13 Martin Liska <mliska@suse.cz>
27700
27701 PR tree-optimization/90416
27702 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27703 string instead of passing the second part as va_arg argument.
27704
27705 2019-05-13 Martin Liska <mliska@suse.cz>
27706
27707 PR gcov-profile/90380
27708 * gcov.c (handle_cycle): Do not support zero cycle count,
27709 it should not be possible.
27710 (path_contains_zero_cycle_arc): New function.
27711 (circuit): Ignore zero cycle arc counts.
27712
27713 2019-05-13 Martin Liska <mliska@suse.cz>
27714
27715 PR gcov-profile/90380
27716 * gcov.c (enum loop_type): Remove the enum and
27717 the operator.
27718 (handle_cycle): Assert that we should not reach
27719 a negative count.
27720 (circuit): Use loop_found instead of a tri-state loop_type.
27721 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27722 happen.
27723
27724 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27725
27726 PR target/82920
27727 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27728 (ix86_output_indirect_branch_via_reg): Use output mechanism
27729 accounting for __USER_LABEL_PREFIX__.
27730 (ix86_output_indirect_branch_via_push): Likewise.
27731 (ix86_output_function_return): Likewise.
27732 (ix86_output_indirect_function_return): Likewise.
27733
27734 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27735
27736 * doc/md.texi: Document use of code attributes in rtx patterns.
27737 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27738 * read-rtl.c (find_code): Split out search loops into...
27739 (maybe_find_code): ...this new function.
27740 (check_code_iterator): Make the error message more informative.
27741 (check_code_attribute): New function.
27742 (rtx_reader::rtx_alloc_for_name): Likewise.
27743 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27744 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27745 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27746 <max_opp> directly as an rtx code instead of via a match_operator.
27747 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27748 (<su>abd<mode>_3): Update accordingly.
27749
27750 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27751
27752 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27753 is given, print the state of the EH "save world" computation for
27754 Darwin.
27755
27756 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27757
27758 PR c++/59813
27759 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27760 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27761
27762 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27763
27764 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27765 Use pinsrd for TARGET_SSE4_1.
27766 * config/i386/sse.md (movdi_to_sse): Ditto.
27767
27768 2019-05-10 Richard Biener <rguenther@suse.de>
27769
27770 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27771 (do_rpo_vn): Initialize next_value_id.
27772
27773 2019-05-10 Martin Liska <mliska@suse.cz>
27774
27775 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27776 Fix plural form.
27777
27778 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27779
27780 PR tree-optimization/90385
27781 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27782 arguments of the exit phis.
27783
27784 PR c++/90383
27785 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27786 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27787 id->do_not_fold.
27788 (copy_tree_body_r): Likewise.
27789 (copy_fn): Set id.do_not_fold to true.
27790
27791 2019-05-10 Martin Liska <mliska@suse.cz>
27792
27793 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27794 Reapply changes from r269790.
27795
27796 2019-05-10 Martin Liska <mliska@suse.cz>
27797
27798 PR middle-end/90340
27799 * doc/invoke.texi: New params.
27800 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27801 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27802 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27803 Use it.
27804 * tree-switch-conversion.h (struct jump_table_cluster):
27805 Likewise.
27806
27807 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27808
27809 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27810
27811 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27812
27813 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27814
27815 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27816
27817 PR rtl-optimization/88879
27818 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27819
27820 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27821
27822 PR target/90405
27823 * config/arm/arm.c (callee_saved_reg_p): Move before
27824 thumb_find_work_register.
27825 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27826 thumb_find_work_register. Only call df_get_live_out once.
27827 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27828 (thumb_find_work_register): Use
27829 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27830 algorithms to locate a spare call clobbered reg.
27831
27832 2019-05-09 Martin Liska <mliska@suse.cz>
27833
27834 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27835 and MAX_EXPR in GIMPLE FE format.
27836
27837 2019-05-09 Martin Liska <mliska@suse.cz>
27838
27839 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27840 * gimple-pretty-print.c (dump_gimple_bb_header):
27841 Dump BB count.
27842 (pp_cfg_jump): Dump edge probability.
27843 * profile-count.c (profile_quality_as_string): Simplify
27844 with a static array.
27845 (parse_profile_quality): New function.
27846 (profile_count::dump): Simplify with a static array.
27847 (profile_count::from_gcov_type): Add new argument.
27848 * profile-count.h (parse_profile_quality): Likewise.
27849 * predict.h (set_hot_bb_threshold): New.
27850 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27851 New param.
27852 * predict.c (get_hot_bb_threshold): Set from the new param.
27853 (set_hot_bb_threshold): New.
27854
27855 2019-05-09 Richard Biener <rguenther@suse.de>
27856
27857 PR tree-optimization/90395
27858 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27859 rewrite vector stores that throw internally.
27860
27861 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27862
27863 * cif-code.def (CHKP): Remove.
27864
27865 PR target/89221
27866 * configure.ac (--enable-frame-pointer): Disable by default for
27867 GNU systems.
27868 * configure: Regenerate.
27869
27870 2019-05-09 Alan Modra <amodra@gmail.com>
27871
27872 PR target/89271
27873 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27874 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27875 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27876 cost for general <-> vsx when direct moves are available.
27877 Cost union classes at minimal cost for any reg in the class.
27878 Correct calculation for moves between vsx, float, and altivec.
27879 Don't return a low cost for moves between special regs. Don't
27880 use hard coded register numbers.
27881 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27882 (rs6000_ira_change_pseudo_allocno_class): New function.
27883 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27884 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27885 alternatives.
27886 (movsi_internal1): Don't disparage vector alternatives.
27887 (mov<mode>_internal): Likewise, excepting alternative that
27888 will be split.
27889 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27890 we <- b alternative.
27891
27892 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27893
27894 PR c++/59813
27895 PR tree-optimization/89060
27896 * tree-ssa-live.h (live_vars_map): New typedef.
27897 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27898 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27899 (struct compute_live_vars_data): New type.
27900 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27901 live_vars_at_stmt, destroy_live_vars): New functions.
27902 * tree-tailcall.c: Include tree-ssa-live.h.
27903 (live_vars, live_vars_vec): New global variables.
27904 (find_tail_calls): Perform variable life analysis before punting.
27905 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27906 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27907 member.
27908 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27909 Perform variable life analysis to select variables that really need
27910 clobbers added.
27911 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27912 instead set id->eh_landing_pad_dest and assert it is the same.
27913 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27914
27915 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27916 Richard Earnshaw <rearnsha@arm.com>
27917
27918 PR target/88167
27919 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27920 function.
27921 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27922 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27923 register if both the epilogue and prologue can use call-clobbered
27924 regs.
27925 (thumb1_unexpanded_epilogue): Use
27926 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27927 picking temporaries for restoring high regs to match that of the
27928 prologue where possible.
27929 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27930 the list of work registers. Detect if the return address is still live
27931 at the end of the prologue and avoid using it for a work register if so.
27932 If the return address is not live, add LR to the list of pushable regs
27933 after the first pass.
27934
27935 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27936
27937 PR tree-optimization/90078
27938 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27939 (INFTY): Increase the value for infinite cost.
27940 (struct comp_cost): Promote type of members to int64_t.
27941 (infinite_cost): Don't set complexity in initialization.
27942 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27943 overflows to infinite_cost.
27944 (adjust_setup_cost): Promote type of parameter and cost computation
27945 to int64_t.
27946 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27947 int64_t.
27948 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27949 cost computation to int64_t.
27950 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27951 int64_t's format specifier in dump.
27952
27953 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27954
27955 PR tree-optimization/90240
27956 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27957 with respect to scaling factor pre-computed for each basic block.
27958 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27959 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27960 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27961 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27962 live range for array of loop's basic blocks. Cleanup aux field of
27963 loop's basic blocks.
27964
27965 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27966
27967 PR tree-optimization/90356
27968 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27969
27970 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27971
27972 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27973 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27974 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27975 (ix86_handle_option): Handle -mavx512bf16.
27976 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27977 to extra_headers.
27978 * config/i386/avx512bf16vlintrin.h: New.
27979 * config/i386/avx512bf16intrin.h: New.
27980 * config/i386/cpuid.h (bit_AVX512BF16): New.
27981 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27982 * config/i386/i386-builtin-types.def: Add new types.
27983 * config/i386/i386-builtin.def: Add new builtins.
27984 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27985 __AVX512BF16__.
27986 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27987 (ix86_option_override_internal): Handle BF16.
27988 (ix86_valid_target_attribute_inner_p): Ditto.
27989 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27990 * config/i386/i386-builtin.c (enum processor_features): Add
27991 F_AVX512BF16.
27992 (static const _isa_names_table isa_names_table): Ditto.
27993 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27994 (PTA_AVX512BF16): Ditto.
27995 * config/i386/i386.opt: Add -mavx512bf16.
27996 * config/i386/immintrin.h: Include avx512bf16intrin.h
27997 and avx512bf16vlintrin.h.
27998 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27999 avx512f_cvtneps2bf16_<mode><mask_name>,
28000 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28001 * config/i386/subst.md (mask_half): Add new subst.
28002 * doc/invoke.texi: Document -mavx512bf16.
28003
28004 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28005
28006 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28007 Delete declaration.
28008 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28009 (rs6000_debug_legitimize_reload_address): Delete.
28010 (rs6000_legitimize_reload_address_ptr): Delete.
28011 (rs6000_option_override_internal): Adjust.
28012 (mem_operand_gpr): Adjust comment.
28013 (legitimate_lo_sum_address_p): Ditto.
28014 (rs6000_legitimize_reload_address): Delete.
28015 (rs6000_debug_legitimize_reload_address): Delete.
28016 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28017
28018 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28019
28020 PR target/89765
28021 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28022 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28023 to compute vector element selector for both constant and variable
28024 operands.
28025
28026 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28027
28028 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28029 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28030 ashrdi3_cvt using SWI48 mode iterator.
28031
28032 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28033
28034 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28035 (aarch64_<su>abd<mode>_3): Likewise.
28036 (*aarch64_<su>abd<mode>_3): New define_insn.
28037 (<sur>sad<vsi2qi>): New define_expand.
28038 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28039 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28040 (build_vect_cond_expr): Likewise.
28041
28042 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28043
28044 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28045 clobbers outside of accessible_reg_set.
28046 * config/i386/i386.c (ix86_conditional_register_usage):
28047 Disable register sets by clearing corresponding bits in
28048 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28049 call_used_regs and don't clear corresponding reg_names array members.
28050
28051 2019-05-07 Richard Biener <rguenther@suse.de>
28052
28053 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28054 not specified still compute a comp_vectype for invariant
28055 compares.
28056
28057 2019-05-07 Richard Biener <rguenther@suse.de>
28058
28059 PR tree-optimization/90316
28060 * tree-ssa-pre.c (translate_vuse_through_block): When
28061 same_valid is NULL do not bother to search for a virtual
28062 PHI continuation.
28063 (phi_translate_1): When operands changed we cannot keep
28064 the same value-number so do not bother to ask whether
28065 that's possible from translate_vuse_through_block.
28066
28067 2019-05-07 Martin Liska <mliska@suse.cz>
28068
28069 * bitmap.c (bitmap_register): Come up with
28070 alloc_descriptor_max_uid and assign it for
28071 a new bitmap.
28072 (register_overhead): Use get_descriptor as
28073 a descriptor.
28074 (release_overhead): New.
28075 (bitmap_elem_to_freelist): Call it.
28076 (bitmap_elt_clear_from): Likewise.
28077 (bitmap_obstack_free): Likewise.
28078 (bitmap_move): Sensitively release memory.
28079 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28080 (bitmap_initialize): Initialize alloc_descriptor to zero.
28081 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28082
28083 2019-05-07 Richard Biener <rguenther@suse.de>
28084
28085 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28086 we build a SLP node. Remove max_size and limiting.
28087 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28088
28089 2019-05-07 Richard Biener <rguenther@suse.de>
28090
28091 PR tree-optimization/90316
28092 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28093 limit by reference.
28094 (walk_non_aliased_vuses): Take walking limit argument.
28095 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28096 walking if it is reached instead of just counting.
28097 (get_continuation_for_phi): Likewise.
28098 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28099 limiting to the callback.
28100 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28101 (vn_reference_lookup_3): Likewise.
28102 (vn_reference_lookup_pieces): Likewise.
28103 (vn_reference_lookup): Likewise.
28104 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28105 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28106 (avail_exprs_stack::lookup_avail_expr): Likewise.
28107
28108 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28109
28110 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28111 for comparaible types in the second direction even if first one
28112 hits incomparable type.
28113
28114 2019-05-07 Richard Biener <rguenther@suse.de>
28115
28116 PR lto/90369
28117 * lto-wrapper.c (debug_objcopy): Use the original filename
28118 including archive offset for the filename used for -save-temps.
28119
28120 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28121
28122 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28123 detection.
28124
28125 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28126 Hongtao Liu <hongtao.liu@intel.com>
28127
28128 PR target/89750
28129 PR target/86444
28130 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28131 Modified, original implementation isn't correct.
28132
28133 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28134
28135 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28136 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28137 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28138 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28139 (FRAME_POINTER_REGNUM): Change numbering.
28140 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28141 (alt_reg_names): Adjust.
28142 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28143 fixed.
28144 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28145 (DWARF_FRAME_REGISTERS): Delete.
28146 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28147 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28148 Adjust.
28149 (REG_ALLOC_ORDER): Adjust.
28150 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28151 (REG_CLASS_CONTENTS): Adjust.
28152 (RETURN_ADDR_RTX): Change comment.
28153 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28154 instead of 67.
28155 (REGISTER_NAMES): Adjust.
28156 (ADDITIONAL_REGISTER_NAMES): Adjust.
28157 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28158
28159 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28160
28161 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28162 Delete.
28163 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28164 (DWARF_FRAME_REGISTERS): Adjust.
28165 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28166 Adjust.
28167 (REG_ALLOC_ORDER): Adjust.
28168 (enum reg_class): Delete SPR_REGS.
28169 (REG_CLASS_NAMES): Delete SPR_REGS.
28170 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28171 (REGISTER_NAMES): Adjust.
28172 (ADDITIONAL_REGISTER_NAMES): Adjust.
28173 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28174 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28175 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28176 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28177 (htm_spr_regno): Delete.
28178 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28179 argument.
28180 (rs6000_dbx_register_number): Adjust.
28181
28182 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28183
28184 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28185
28186 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28187
28188 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28189 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28190
28191 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28192
28193 PR tree-optimization/88709
28194 PR tree-optimization/90271
28195 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28196 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28197 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28198 variable.
28199 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28200 of the store merging group is larger than
28201 PARAM_STORE_MERGING_MAX_SIZE parameter.
28202 (split_group): Add bzero_first argument. If set, always emit first
28203 the first store which must be = {} of the whole area and then for the
28204 rest of the stores consider all zero bytes as paddings.
28205 (imm_store_chain_info::output_merged_store): Check if first store
28206 is = {} of the whole area and if yes, determine which setting of
28207 bzero_first for split_group gives smaller number of stores. Adjust
28208 split_group callers.
28209 (lhs_valid_for_store_merging_p): Allow decls.
28210 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28211 no elts.
28212 (pass_store_merging::process_store): Likewise.
28213
28214 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28215
28216 PR target/89424
28217 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28218 handling of V1TImode.
28219
28220 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28221
28222 PR target/89221
28223 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28224 and enable_frame_pointer ...
28225 * configure.ac: ... here. Update help strings for
28226 --enable-frame-pointer.
28227 * configure: Regenerate.
28228 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28229 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28230 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28231 (USE_X86_64_FRAME_POINTER): Ditto.
28232
28233 2019-05-06 Martin Liska <mliska@suse.cz>
28234
28235 * config.gcc: Append to target_gtfiles and fix indentation.
28236
28237 2019-05-06 Richard Biener <rguenther@suse.de>
28238
28239 PR tree-optimization/90358
28240 * tree-vect-stmts.c (get_group_load_store_type): Properly
28241 detect unused upper half of load.
28242 (vectorizable_load): Likewise.
28243
28244 2019-05-06 Richard Biener <rguenther@suse.de>
28245
28246 PR tree-optimization/88828
28247 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28248 (simplify_vector_constructor): ...here. Handle constants in
28249 the constructor.
28250
28251 2019-05-06 Richard Biener <rguenther@suse.de>
28252
28253 PR tree-optimization/90328
28254 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28255 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28256 is valid in the loop nest before using it.
28257 (initialize_data_dependence_relation): Adjust.
28258 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28259 loop as loop-nest to dr_may_alias_p.
28260
28261 2019-05-06 Richard Biener <rguenther@suse.de>
28262
28263 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28264
28265 2019-05-06 Richard Biener <rguenther@suse.de>
28266
28267 PR tree-optimization/90316
28268 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28269 compute target on demand.
28270 (get_continuation_for_phi): Remove code walking stmts to
28271 get to a target virtual operand which could end up being
28272 quadratic.
28273
28274 2019-05-06 Martin Liska <mliska@suse.cz>
28275
28276 PR sanitizer/90312
28277 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28278 when -mabi is selected to a non-default version.
28279
28280 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28281 Martin Liska <mliska@suse.cz>
28282
28283 * Makefile.in: Add lto-dump.texi.
28284 * cgraph.h: Add new functions get_visibility_string and
28285 get_symtab_type_string.
28286 * doc/gcc.texi: Include lto-dump section.
28287 * doc/lto-dump.texi: New file.
28288 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28289 (parse_dump_option): Factor out this function.
28290 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28291 (parse_dump_option): Export the function.
28292 * symtab.c (symtab_node::get_visibility_string): New function.
28293 (symtab_node::get_symtab_type_string): Likewise.
28294
28295 2019-05-06 Martin Liska <mliska@suse.cz>
28296
28297 * config/i386/i386-builtins.c: New file.
28298 * config/i386/i386-builtins.h: New file.
28299 * config/i386/i386-expand.c: New file.
28300 * config/i386/i386-expand.h: New file.
28301 * config/i386/i386-features.c: New file.
28302 * config/i386/i386-features.h: New file.
28303 * config/i386/i386-options.c: New file.
28304 * config/i386/i386-options.h: New file.
28305 * config.gcc: Add new files into extra_objs and
28306 target_gtfiles.
28307 * config/i386/i386.c: Split content of the file
28308 into newly introduced files.
28309 * config/i386/i386.h: Declare common variables
28310 and macros.
28311 * config/i386/t-i386: Define dependencies for new files.
28312
28313 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28314
28315 PR target/89400
28316 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28317 Restrict 'all' variant to 32-bit configurations.
28318 (unaligned_loadhiu): Likewise.
28319 (unaligned_storehi): Likewise.
28320 (unaligned_storesi): Likewise.
28321 (unaligned_loadhis): Disable when compiling for thumb1.
28322
28323 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28324
28325 PR tree-optimization/90269
28326 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28327 Ignore clobbers.
28328
28329 2019-05-03 Martin Liska <mliska@suse.cz>
28330
28331 * hash-map.h: Add is_empty function.
28332 * hash-set.h: Likewise.
28333 * hash-table.h: Likewise.
28334 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28335 elements () == 0 (and similar usages).
28336 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28337 * gimplify.c (gimplify_bind_expr): Likewise.
28338 (gimplify_switch_expr): Likewise.
28339 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28340 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28341 * postreload-gcse.c (dump_hash_table): Likewise.
28342 (gcse_after_reload_main): Likewise.
28343 * predict.c (combine_predictions_for_bb): Likewise.
28344 * tree-parloops.c (reduction_phi): Likewise.
28345 (separate_decls_in_region): Likewise.
28346 (transform_to_exit_first_loop): Likewise.
28347 (gen_parallel_loop): Likewise.
28348 (gather_scalar_reductions): Likewise.
28349 (try_create_reduction_list): Likewise.
28350 * var-tracking.c (dump_vars): Likewise.
28351 (emit_notes_for_changes): Likewise.
28352 (vt_emit_notes): Likewise.
28353
28354 2019-05-03 Richard Biener <rguenther@suse.de>
28355
28356 PR tree-optimization/90316
28357 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28358 before running VN.
28359
28360 2019-05-03 Richard Biener <rguenther@suse.de>
28361
28362 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28363 peeling for gaps by loading only lower halves of vectors
28364 if possible.
28365 (vectorizable_load): Likewise.
28366
28367 2019-05-03 Richard Biener <rguenther@suse.de>
28368
28369 PR middle-end/89518
28370 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28371
28372 2019-05-03 Richard Biener <rguenther@suse.de>
28373
28374 PR middle-end/87314
28375 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28376 Handle STRING_CST vs DECL or STRING_CST.
28377
28378 2019-05-03 Richard Biener <rguenther@suse.de>
28379
28380 PR tree-optimization/88963
28381 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28382 vector loads feeding only BIT_FIELD_REFs to component
28383 loads. Rewrite stores fed by CONSTRUCTORs to component
28384 stores.
28385
28386 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28387
28388 * opts.h (finish_options): Remove lang_mask argument.
28389 (print_help, help_option_argument): Declare.
28390 * opts.c (print_help): Remove forward declaration, no longer static.
28391 (finish_options): Remove lang_mask argument, don't call print_help
28392 here.
28393 * opts-global.c (decode_options): Adjust finish_option caller, call
28394 print_help here.
28395
28396 PR tree-optimization/90303
28397 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28398 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28399
28400 2019-05-03 Richard Biener <rguenther@suse.de>
28401
28402 PR tree-optimization/89698
28403 * gimple-fold.c (canonicalize_constructor_val): Early out
28404 for constants, handle unfolded INTEGER_CSTs as they appear in
28405 C++ virtual table ctors.
28406
28407 2019-05-03 Richard Biener <rguenther@suse.de>
28408
28409 * passes.c (execute_function_todo): Remove dead code.
28410
28411 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28412
28413 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28414 the internal register number, for any "real" register.
28415
28416 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28417
28418 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28419 correct numbers for TFHAR, TFIAR, TEXASR.
28420
28421 2019-05-02 Richard Biener <rguenther@suse.de>
28422
28423 PR tree-optimization/89653
28424 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28425 update-address-taken before the pass.
28426 * passes.def (pass_tree_loop_init): Put comment before it.
28427
28428 2019-05-02 Richard Biener <rguenther@suse.de>
28429
28430 PR tree-optimization/89509
28431 * tree-ssa-structalias.c (compute_dependence_clique): Look
28432 at the first subvar when determining whether it is restrict.
28433
28434 2019-05-02 Richard Biener <rguenther@suse.de>
28435
28436 PR tree-optimization/90273
28437 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28438 useless debug stmts.
28439
28440 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28441
28442 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28443 ACLE branch.
28444 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28445 SVE ACLE branch.
28446 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28447 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28448 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28449 (vectorizable_reduction): Use the functions above to vectorize in a
28450 fully masked loop codes that don't have a conditional internal
28451 function.
28452
28453 2019-05-02 Martin Liska <mliska@suse.cz>
28454
28455 * cgraphclones.c: Call valid_attribute_p with 1 for
28456 target_clone.
28457 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28458 it's for target attribute.
28459 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28460 Add new boolean argument.
28461 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28462 Likewise.
28463 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28464 to ix86_valid_target_attribute_inner_p.
28465 (ix86_valid_target_attribute_p): Pass flags argument to
28466 ix86_valid_target_attribute_inner_p.
28467 (get_builtin_code_for_version): Use 0 as it's target attribute.
28468
28469 2019-05-02 Martin Liska <mliska@suse.cz>
28470
28471 * gcc.c (process_command): Add dummy file only
28472 if n_infiles == 0.
28473 * opts-global.c (decode_options): Pass lang_mask.
28474 * opts.c (print_help): New function.
28475 (finish_options): Print --help if help_option_argument
28476 is set.
28477 (common_handle_option): Factor out content of OPT__help_
28478 into print_help.
28479 * opts.h (finish_options): Add new argument.
28480
28481 2019-05-02 Martin Liska <mliska@suse.cz>
28482
28483 PR target/88809
28484 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28485 With -minline-all-stringops use inline expansion using 4B loop.
28486 * doc/invoke.texi: Document the change of
28487 -minline-all-stringops.
28488
28489 2019-05-01 Jeff Law <law@redhat.com>
28490
28491 PR tree-optimization/88797
28492 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28493 PHI feeds a conditional on the RHS of an assignment.
28494
28495 2019-04-30 Andrew Waterman <andrew@sifive.com>
28496 Jim Wilson <jimw@sifive.com>
28497
28498 * config/riscv/constraints.md (L): New.
28499 * config/riscv/predicates.md (lui_operand): New.
28500 (sfb_alu_operand): New.
28501 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28502 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28503 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28504 * config/riscv/risc.md (type): Add sfb_alu.
28505 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28506 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28507 (branch_zero<mode>): Delete.
28508 (mov<mode>cc): New.
28509 (mov<GPR:mode><X:mode>cc): Likewise.
28510 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28511
28512 2019-04-30 Nathan Sidwell <nathan@acm.org>
28513
28514 * tree.h (MARK_TS_EXP): New.
28515
28516 2019-04-30 Martin Liska <mliska@suse.cz>
28517
28518 * opts.c (enable_warning_as_error): Provide hints
28519 for unknown options.
28520
28521 2019-04-30 Martin Liska <mliska@suse.cz>
28522
28523 PR debug/90288
28524 * doc/invoke.texi: Add missing dash for gas-locview-support
28525 and gno-as-locview-support.
28526
28527 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28528
28529 PR target/89093
28530 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28531 whitespace at the start of target attribute string.
28532
28533 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28534
28535 PR target/86538
28536 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28537 Define __ARM_FEATURE_ATOMICS.
28538
28539 2019-04-30 Martin Liska <mliska@suse.cz>
28540
28541 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28542 into built_in_function enum. Remove code for endp == 2 and
28543 use BUILT_IN_* constants.
28544 (gimple_fold_builtin): Call the function with fcode.
28545
28546 2019-04-30 Martin Liska <mliska@suse.cz>
28547
28548 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28549 DECL_FUNCTION_CODE into ix86_builtins enum before
28550 the switch statement.
28551
28552 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28553
28554 PR tree-optimization/89475
28555 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28556 calls.
28557
28558 2019-04-30 Martin Liska <mliska@suse.cz>
28559
28560 PR translation/90274
28561 * opts.c (print_filtered_help): Wrap string in _(...).
28562
28563 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28564
28565 PR tree-optimization/90240
28566 Revert:
28567 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28568
28569 PR tree-optimization/90078
28570 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28571 checks for infinite_cost overflow.
28572
28573 2019-04-29 Jeff Law <law@redhat.com>
28574
28575 * passes.def: Move -Wrestrict pass after copy propagation.
28576
28577 2019-04-29 Maya Rashish <coypu@sdf.org>
28578
28579 * config.gcc (default_gnu_indirect_function): Default to yes
28580 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28581 sparc*-*-netbsd*, x86_64-*-netbsd*.
28582
28583 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28584
28585 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28586 where cond2 is NE_EXPR.
28587 (is_value_included_in): Update comment.
28588
28589 2019-04-29 Richard Biener <rguenther@suse.de>
28590
28591 PR tree-optimization/90278
28592 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28593 EH on comparison simplification.
28594
28595 2019-04-29 Jason Merrill <jason@redhat.com>
28596
28597 PR c++/82081 - tail call optimization breaks noexcept
28598 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28599 nothrow function to a might-throw function into a tail call.
28600
28601 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28602
28603 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28604 (DDR_INNER_LOOP): Likewise.
28605 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28606 (initialize_data_dependence_relation): Likewise.
28607 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28608
28609 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28610
28611 PR rtl-optimization/90257
28612 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28613 return value.
28614
28615 Revert the revert:
28616 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28617
28618 PR target/90178
28619 Revert:
28620 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28621
28622 Revert the revert:
28623 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28624
28625 Revert:
28626 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28627
28628 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28629
28630 2019-04-29 Richard Biener <rguenther@suse.de>
28631
28632 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28633 rhs issue a reset.
28634
28635 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28636
28637 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28638 varasm.h, and netbsd-protos.h.
28639
28640 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28641
28642 PR target/89261
28643 * config/i386/i386-protos.h (ix86_data_alignment): Change
28644 the second argument type to unsigned int.
28645 * config/i386/i386.c (ix86_data_alignment): Change "align"
28646 argument type to unsigned int.
28647
28648 2019-04-27 Martin Liska <mliska@suse.cz>
28649
28650 PR middle-end/90258
28651 * opt-suggestions.c (option_proposer::build_option_suggestions):
28652 When get_valid_option_values returns empty values, add the
28653 misspelling candidate.
28654
28655 2019-04-26 Jim Wilson <jimw@sifive.com>
28656
28657 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28658 parameter.
28659 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28660 Pass orig_mode to riscv_build_integer.
28661 (riscv_split_integer): Pass mode to riscv_move_integer.
28662 (riscv_legitimize_const_move): Likewise.
28663 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28664 promoted_mode. Replace force_reg call with code to load constant into
28665 promoted reg and then subreg it for the store.
28666 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28667 riscv_move_integer.
28668
28669 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28670
28671 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28672 corrupt codes.
28673
28674 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28675
28676 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28677 commentary about the encoding of precision.
28678
28679 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28680
28681 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28682 * config/i386/t-freebsd64: New file.
28683 * config.gcc: Add the t-freebsd64 for multilib support.
28684
28685 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28686
28687 * doc/extend.texi (vector_size): Add missing comma after @xref.
28688
28689 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28690
28691 * BASE-VER: Set to 10.0.0.
28692
28693 2019-04-25 Richard Biener <rguenther@suse.de>
28694
28695 PR middle-end/89765
28696 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28697 VIEW_CONVERT_EXPR into one operating on an rvalue.
28698
28699 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28700
28701 PR target/89929
28702 * config/i386/i386.c (feature_priority): Moved to file scope.
28703 (processor_features): Likewise.
28704 (processor_model): Likewise.
28705 (_arch_names_table): Likewise.
28706 (arch_names_table): Likewise.
28707 (_feature_list): Removed.
28708 (feature_list): Likewise.
28709 (_isa_names_table): Moved to file scope. Add priority.
28710 (isa_names_table): Likewise.
28711 (get_builtin_code_for_version): Replace feature_list with
28712 isa_names_table. Update error message for P_ZERO priority.
28713
28714 2019-04-25 Richard Biener <rguenther@suse.de>
28715
28716 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28717 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28718
28719 2019-04-24 Jeff Law <law@redhat.com>
28720
28721 PR tree-optimization/90037
28722 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28723 * passes.def: Replace all instance of phi-only cprop with the
28724 lattice propagator. Move propagation pass from after erroneous
28725 path isolation to before erroneous path isolation.
28726 * tree-ssa-phionlycprop.c: Remove.
28727
28728 2019-04-24 Richard Biener <rguenther@suse.de>
28729
28730 PR middle-end/90213
28731 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28732 by size and BITS_PER_UNIT on poly-wide-ints.
28733
28734 2019-04-25 Richard Biener <rguenther@suse.de>
28735
28736 PR middle-end/90194
28737 * match.pd: Add pattern to simplify view-conversion of an
28738 empty constructor.
28739
28740 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28741
28742 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28743 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28744 for Go on 32 bit AIX.
28745 * config/rs6000/aix72.h: Likewise.
28746
28747 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28748
28749 PR target/90193
28750 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28751 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28752
28753 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28754
28755 PR target/89952
28756 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28757 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28758 for restored hard frame pointer.
28759 (s390_sched_dependencies_evaluation): Implement new target hook.
28760 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28761
28762 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28763
28764 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28765 * config/arc/arc.c (arc_init): Cleanup warning message.
28766 (arc_override_options): Likewise.
28767
28768 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28769
28770 PR target/90187
28771 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28772 a register if both if_true and if_false are MEMs.
28773
28774 PR tree-optimization/90208
28775 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28776 after labels of new_bb, not before them.
28777
28778 PR tree-optimization/90211
28779 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28780 which are not SSA_NAMEs.
28781
28782 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28783
28784 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28785 AArch64.
28786 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28787
28788 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28789
28790 PR rtl-optimization/87979
28791 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28792 not equal zero.
28793
28794 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28795
28796 PR rtl-optimization/84032
28797 * modulo-sched.c (ps_insn_find_column): Change condition so that
28798 branch will always be the last insn in a row inside partial
28799 schedule.
28800
28801 2019-04-23 Richard Biener <rguenther@suse.de>
28802
28803 PR debug/90131
28804 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28805 dest_single_pred_p argument.
28806 (remove_forwarder_block): Adjust.
28807 (remove_forwarder_block_with_phi): Likewise.
28808
28809 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28810 Bernd Edlinger <bernd.edlinger@hotmail.de>
28811 Jakub Jelinek <jakub@redhat.com>
28812
28813 PR target/89093
28814 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28815 if used with general-regs-only.
28816 (arm_conditional_register_usage): Don't add non-general regs if
28817 general-regs-only.
28818 (arm_valid_target_attribute_rec): Handle general-regs-only.
28819 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28820 general-regs-only.
28821 (TARGET_HARD_FLOAT_SUB): Define.
28822 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28823 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28824 (TARGET_REALLY_IWMMXT2): Likewise.
28825 * config/arm/arm.opt: Add -mgeneral-regs-only.
28826 * doc/extend.texi: Document ARM general-regs-only target.
28827 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28828
28829 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28830
28831 PR tree-optimization/90078
28832 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28833 checks for infinite_cost overflow.
28834
28835 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28836
28837 PR tree-optimization/90021
28838 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28839 and check univariate against it.
28840 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28841 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28842
28843 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28844
28845 PR target/90178
28846 Revert:
28847 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28848
28849 Revert the revert:
28850 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28851
28852 Revert:
28853 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28854
28855 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28856
28857 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28858
28859 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28860 names using operand format, rather than hard-wired.
28861 (speculation_barrier): Likewise.
28862
28863 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28864
28865 PR tree-optimization/88055
28866 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28867 (gen_one_condition): Use it if !HONOR_NANS.
28868
28869 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28870
28871 PR middle-end/90139
28872 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28873 assign_temp instead of gen_reg_rtx.
28874
28875 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28876
28877 PR translation/90118
28878 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28879 Add missing space before %<.
28880
28881 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28882
28883 PR rtl-optimization/87871
28884 * ira-lives.c (make_object_dead): Don't add conflicts to
28885 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28886
28887 2019-04-18 Martin Sebor <msebor@redhat.com>
28888
28889 PR middle-end/89797
28890 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28891 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28892 assuming type size fits in SHWI.
28893
28894 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28895
28896 PR ipa/85051
28897 * ipa-inline.c (flatten_function): New parameter UPDATE.
28898 (ipa_inline, early_inliner): Use it.
28899
28900 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28901
28902 * fold-const.c (int_const_binop): Return early on failure.
28903
28904 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28905
28906 PR middle-end/85164
28907 * combine.c (force_int_to_mode): Cast the argument rather than
28908 the result of known_alignment.
28909 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28910
28911 2019-04-18 Richard Biener <rguenther@suse.de>
28912
28913 PR debug/90131
28914 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28915 out from ...
28916 (remove_forwarder_block): ... here.
28917 (remove_forwarder_block_with_phi): Also move debug stmts here.
28918
28919 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28920
28921 PR translation/79183
28922 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28923 inform where appropriate.
28924
28925 2019-04-18 Richard Biener <rguenther@suse.de>
28926
28927 * tree.c (get_qualified_type): Put found type variants at the
28928 head of the variant list.
28929
28930 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28931
28932 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28933
28934 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28935
28936 PR target/90125
28937 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28938 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28939 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28940 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28941 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28942
28943 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28944
28945 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28946 even for allocno's with no conflicts.
28947 (print_conflicts): Print an extra newline.
28948
28949 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28950
28951 * auto-inc-dec.c (attempt_change): Set the alignment of the
28952 temporary memory to that of the original.
28953
28954 2019-04-17 Joao Moreira <jmoreira@suse.de>
28955
28956 * targhooks.c (default_print_patchable_function_entry): Emit
28957 __patchable_function_entries section with writable flags to allow
28958 relocation resolution.
28959
28960 2019-04-17 Jonny Grant <jg@jguk.org>
28961
28962 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28963
28964 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28965
28966 PR middle-end/90095
28967 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28968 on lowpart SUBREGs.
28969
28970 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28971
28972 * config/arc/arc.c (arc_init): Format diagnostic string.
28973 (arc_override_options): Likewise.
28974 (check_if_valid_regno_const): Likewise.
28975 (arc_reorg): Likewise.
28976
28977 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28978
28979 PR target/17108
28980 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28981 name.
28982 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28983 name.
28984 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28985 (*movdi_update1): Use Pmode.
28986 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28987 (movdi_<mode>_update_stack): Rename to ...
28988 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28989 use Pmode.
28990 (*movsi_update1): Use Pmode.
28991 (*movsi_update2): Use Pmode.
28992 (movsi_update): Rename to ...
28993 (movsi_<mode>_update): ... this. Use Pmode.
28994 (movsi_update_stack): Fix condition.
28995 (*movhi_update1): Use Pmode. Fix argument to
28996 avoiding_indexed_address_p.
28997 (*movhi_update2): Ditto.
28998 (*movhi_update3): Ditto.
28999 (*movhi_update4): Ditto.
29000 (*movqi_update1): Ditto.
29001 (*movqi_update2): Ditto.
29002 (*movqi_update3): Ditto.
29003 (*movsf_update1, *movdf_update1): Merge, rename to...
29004 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29005 avoiding_indexed_address_p. Add "size" attribute.
29006 (*movsf_update2, *movdf_update2): Merge, rename to...
29007 (*mov<mode>_update2): This. Ditto.
29008 (*movsf_update3): Use Pmode. Fix argument to
29009 avoiding_indexed_address_p.
29010 (*movsf_update4): Ditto.
29011 (allocate_stack): Simplify condition. Adjust pattern names.
29012
29013 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29014
29015 PR target/89093
29016 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29017 whitespace at the start of target attribute string.
29018
29019 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29020
29021 PR target/84369
29022 * config/rs6000/power9.md: Add store forwarding bypass.
29023
29024 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29025
29026 PR debug/89528
29027 * valtrack.c (dead_debug_insert_temp): Reset debug references
29028 to the return value of a call being removed.
29029
29030 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29031
29032 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29033 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29034 implement target hook.
29035 (arc_memory_move_cost): New function.
29036 (TARGET_REGISTER_MOVE_COST): Define.
29037 (TARGET_MEMORY_MOVE_COST): Likewise.
29038 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29039 (MEMORY_MOVE_COST): Likewise.
29040
29041 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29042
29043 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29044 (sibcall_value_insn): Likewise.
29045 * config/arc/constraints.md (Rs5): Remove.
29046
29047 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29048
29049 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29050 for last two fake registers.
29051 (arc_conditional_register_usage): Make sure fake frame and arg
29052 pointer regs are in general regs class.
29053 (FRAME_POINTER_MASK): Remove.
29054 (RETURN_ADDR_MASK): Remove.
29055 (arc_must_save_register): Use hard frame regnum.
29056 (frame_restore_reg): Use hard_frame_pointer_rtx.
29057 (arc_save_callee_saves): Likewise.
29058 (arc_restore_callee_saves): Likewise.
29059 (arc_save_callee_enter): Likewise.
29060 (arc_restore_callee_leave): Likewise.
29061 (arc_save_callee_milli): Likewise.
29062 (arc_eh_return_address_location): Likewise.
29063 (arc_check_multi): Use hard frame regnum.
29064 (arc_can_eliminate): Likewise.
29065 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29066 for register allocator.
29067 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29068 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29069 (FRAME_POINTER_REGNUM): Change it to a fake register.
29070 (HARD_FRAME_POINTER_REGNUM): Defined.
29071 (ARG_POINTER_REGNUM): Change it to a new fake register.
29072 (ELIMINABLE_REGS): Update.
29073 (REGISTER_NAMES): Update names.
29074 * config/arc/arc.md (LP_START): Remove.
29075 (LP_END): Likewise.
29076 (shift_si3_loop): Update pattern.
29077
29078 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29079
29080 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29081 to avoid delay slot scheduling.
29082 (arc_must_save_register): Don't save SP.
29083 * config/arc/arc.md (stack_tie): Remove.
29084 (UNSPEC_ARC_STKTIE): Likewise.
29085
29086 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29087 Shiva Chen <shiva0217@gmail.com>
29088
29089 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29090 code gen with large shift amount.
29091
29092 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29093
29094 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29095 subreg.
29096
29097 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29098
29099 PR target/90096
29100 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29101 print -m64/-mx32/-m32 if it is true.
29102 (ix86_debug_options, ix86_function_specific_print): Pass true as
29103 ADD_ABI_P to ix86_target_string.
29104 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29105 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29106 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29107
29108 PR rtl-optimization/90082
29109 * dce.c (can_delete_call): New function.
29110 (deletable_insn_p, mark_insn): Use it.
29111
29112 PR tree-optimization/90090
29113 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29114 throw internally.
29115 (is_division_by_square): Likewise. Formatting fix.
29116
29117 2019-04-16 Richard Biener <rguenther@suse.de>
29118
29119 PR tree-optimization/56049
29120 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29121 equality check if alias-set zero will prevail.
29122
29123 2019-04-15 Jeff Law <law@redhat.com>
29124
29125 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29126 size and alignment as unsigned.
29127
29128 2019-04-15 Richard Biener <rguenther@suse.de>
29129
29130 PR debug/90074
29131 * tree-loop-distribution.c (destroy_loop): Preserve correct
29132 debug info.
29133
29134 2019-04-15 Richard Biener <rguenther@suse.de>
29135
29136 PR tree-optimization/90071
29137 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29138 abnormal operands from def stmts.
29139
29140 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29141
29142 PR rtl-optimization/89794
29143 * combine.c (count_auto_inc): New function.
29144 (try_combine): Count how many auto_inc expressions there were in the
29145 original instructions. Ensure we have the same number in the new
29146 instructions. Remove the code that tried to ensure auto_inc side
29147 effects on i1 and i0 are not lost.
29148
29149 2019-04-15 Richard Biener <rguenther@suse.de>
29150
29151 PR ipa/88936
29152 * tree.h (auto_var_p): Declare.
29153 * tree.c (auto_var_p): New function, split out from ...
29154 (auto_var_in_fn_p): ... here.
29155 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29156 member.
29157 (new_var_info): Initialize it.
29158 (set_uids_in_ptset): Also set the shadow variable uid if required.
29159 (ipa_pta_execute): Postprocess points-to solutions assigning
29160 shadow variable uids for locals that may reach their containing
29161 function recursively.
29162 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29163 assert but instead check whether the points-to solution is
29164 a singleton.
29165
29166 2019-04-15 Martin Jambor <mjambor@suse.cz>
29167
29168 PR ipa/pr89693
29169 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29170 the thunk chain.
29171
29172 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29173
29174 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29175
29176 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29177 Kito Cheng <kito.cheng@gmail.com>
29178 Shiva Chen <shiva0217@gmail.com>
29179
29180 * config/nds32/nds32-md-auxiliary.c
29181 (nds32_legitimize_pic_address): Use new PIC pattern.
29182 (nds32_legitimize_tls_address): Use new TLS pattern.
29183 (nds32_output_symrel): New.
29184 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29185 (nds32_alloc_relax_group_id): Ditto.
29186 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29187 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29188 relax_group_id.
29189 (nds32_group_tls_insn): Ditto.
29190 (nds32_group_float_insns): Ditto.
29191 * config/nds32/nds32.md (tls_le): New.
29192 (sym_got): Ditto.
29193
29194 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29195
29196 * configure: Add nds32 target for dwarf2 debug_line checking.
29197 * configure.ac: Regenerated.
29198
29199 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29200
29201 PR lto/89358
29202 * ipa-devirt.c (skip_in_fields_list_p): New.
29203 (odr_types_equivalent_p): Use it.
29204
29205 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29206
29207 PR target/89093
29208 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29209 instead of strncmp when checking for thumb and arm. Formatting fixes.
29210
29211 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29212
29213 * doc/install.texi: Document --with-target-system-zlib.
29214
29215 2019-04-12 Martin Sebor <msebor@redhat.com>
29216
29217 PR c/88383
29218 PR c/89288
29219 PR c/89798
29220 PR c/89797
29221 * targhooks.c (default_vector_alignment): Avoid assuming
29222 argument fits in SHWI.
29223 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29224 a shift expression.
29225 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29226
29227 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29228
29229 PR rtl-optimization/89965
29230 * dce.c: Include rtl-iter.h.
29231 (struct check_argument_load_data): New type.
29232 (check_argument_load): New function.
29233 (find_call_stack_args): Check for loads from stack slots still tracked
29234 in sp_bytes and punt if any is found.
29235
29236 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29237
29238 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29239
29240 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29241 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29242
29243 2019-04-12 Martin Liska <mliska@suse.cz>
29244
29245 PR middle-end/89970
29246 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29247 in error message.
29248 (separate_attrs): Handle multiple 'default's.
29249 (expand_target_clones): Rework error handling code.
29250
29251 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29252
29253 PR target/87532
29254 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29255 mode of vector rather than mode of destination for move instruction.
29256 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29257 Use QI inner mode with V16QI vector mode.
29258
29259 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29260
29261 PR target/52726
29262 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29263 "invalid %%t operand" in output_operand_lossage message.
29264
29265 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29266
29267 * config/s390/predicates.md (permute_pattern_operand): New
29268 predicate.
29269 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29270 operand for the permute pattern.
29271 ("*vec_perm<mode>"): New insn definition.
29272 ("bswap<mode>"): Generate the permute pattern operand in the
29273 expander and perform the operand reloads for pre arch13 level
29274 already.
29275 ("*bswap<mode>_emu"): Rename to ...
29276 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29277 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29278 Add the USE operand for the permute pattern.
29279 ("*vec_set_bswap_vec<mode>"): Likewise.
29280
29281 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29282
29283 PR c/89946
29284 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29285 and gcc_unreachable if it fails, just call tree_to_uhwi which
29286 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29287 Start warning message with a lower-case letter. Formatting fixes.
29288
29289 PR rtl-optimization/90026
29290 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29291 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29292 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29293 in cfglayout mode, use emit_barrier_after_bb.
29294
29295 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29296
29297 PR rtl-optimization/87763
29298 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29299 New Instruction.
29300
29301 2019-04-11 Tom de Vries <tdevries@suse.de>
29302
29303 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29304 max macro using statement expression.
29305
29306 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29307
29308 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29309 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29310 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29311 read_only_private_data_section using xcoff_private_rodata_section_name.
29312 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29313
29314 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29315
29316 PR target/90016
29317 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29318
29319 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29320
29321 PR rtl-optimization/89965
29322 * dce.c (sp_based_mem_offset): New function.
29323 (find_call_stack_args): Use sp_based_mem_offset.
29324
29325 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29326
29327 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29328
29329 2019-04-11 Richard Biener <rguenther@suse.de>
29330
29331 PR tree-optimization/90020
29332 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29333 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29334 * tree-ssa-pre.c (compute_avail): Use it to not put
29335 possibly trapping references after a call that might not
29336 return into EXP_GEN.
29337 * gcse.c (compute_hash_table_work): Do not elide
29338 marking a block containing a call if the call might not
29339 return.
29340
29341 2019-04-11 Richard Biener <rguenther@suse.de>
29342
29343 PR tree-optimization/90018
29344 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29345 Test both SLP and interleaving variants.
29346
29347 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29348
29349 * config/s390/8561.md: New file.
29350 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29351 Add arch13 cpu model.
29352 * config/s390/s390-opts.h (enum processor_type): Likewise.
29353 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29354 (s390_get_unit_mask): Likewise.
29355 (s390_is_fpd): Likewise.
29356 (s390_is_fxd): Likewise.
29357 * config/s390/s390.h (s390_tune_attr): Likewise.
29358 * config/s390/s390.md: Include arch13 pipeline description.
29359 * config/s390/s390.opt: Add arch13.
29360
29361 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29362
29363 PR rtl-optimization/87763
29364 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29365 New prototype.
29366 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29367 New function.
29368 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29369 New instruction.
29370 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29371 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29372 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29373 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29374
29375 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29376
29377 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29378 "Although" in -fipa-icf documentation.
29379
29380 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29381 of using multiple -g options.
29382
29383 2019-04-10 Martin Liska <mliska@suse.cz>
29384
29385 PR gcov-profile/89959
29386 * doc/gcov.texi: Make documentation of -x option
29387 more precise.
29388
29389 2019-04-10 Richard Biener <rguenther@suse.de>
29390
29391 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29392 member.
29393 (DR_GROUP_SAME_DR_STMT): Remove.
29394 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29395 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29396 replace with assert.
29397 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29398 (vect_record_grouped_load_vectors): Remove unreachable code.
29399
29400 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29401
29402 PR target/90016
29403 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29404 obsolete reference to N.
29405
29406 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29407
29408 PR middle-end/90025
29409 * expr.c (store_expr): Set properly size on the MEM passed to
29410 clear_storage.
29411
29412 PR c++/90010
29413 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29414 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29415 translation is needed, and when translation is needed, only append
29416 ... if the string length is hostsz or more bytes long. Avoid using
29417 strncpy or strcat.
29418
29419 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29420
29421 PR target/90024
29422 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29423 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29424 into three.
29425 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29426 differences directly.
29427 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29428
29429 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29430
29431 PR translation/90011
29432 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29433 from diagnostics.
29434 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29435 diagnostics.
29436 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29437 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29438 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29439 trailing space from -gsplit-dwarf diagnostics.
29440
29441 PR tree-optimization/89998
29442 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29443 instead of integer_type_node if possible, don't add ranges if return
29444 type is not compatible with int.
29445 * gimple-fold.c (gimple_fold_builtin_sprintf,
29446 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29447 integer_type_node.
29448
29449 2019-04-09 Martin Liska <mliska@suse.cz>
29450
29451 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29452 * doc/install.texi: Document the new config.
29453
29454 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29455
29456 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29457 use gimple_expr_type for load and store calls. Skip over the
29458 condition argument in a conditional internal function.
29459 Protect use of TREE_INT_CST_LOW.
29460
29461 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29462
29463 PR target/90015
29464 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29465 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29466 trailing period from it too.
29467
29468 2019-04-08 wu yuan <wuyuan5@huawei.com>
29469
29470 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29471 * config/aarch64/aarch64.md: Add "tsv110.md".
29472 * config/aarch64/tsv110.md: New file.
29473
29474 2019-04-08 Richard Biener <rguenther@suse.de>
29475
29476 PR tree-optimization/90006
29477 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29478 calls like lrint.
29479
29480 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29481
29482 PR target/83033
29483 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29484 construction.
29485 (fma_root_node): Likewise.
29486 (func_fma_steering): Likewise.
29487
29488 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29489
29490 PR rtl-optimization/89865
29491 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29492
29493 PR rtl-optimization/89865
29494 * config/i386/i386.md
29495 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29496 numbers not to clash with the additional operands[4].
29497 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29498 with extra register copy in the middle.
29499
29500 2019-04-08 Martin Liska <mliska@suse.cz>
29501
29502 PR gcov-profile/89961
29503 * doc/gcov.texi: Document data_file.
29504 * gcov.c (generate_results): Add data_info into JSON output.
29505
29506 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29507
29508 PR tree-optimization/89725
29509 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29510 loop's chrec as invariant symbol.
29511 * tree-chrec.h (chrec_contains_symbols): New parameter.
29512 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29513 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29514 function of loops not in DDR's loop_nest.
29515 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29516
29517 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29518
29519 PR target/89623
29520 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29521 Mask.
29522
29523 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29524
29525 PR target/89945
29526 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29527 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29528
29529 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29530
29531 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29532 targetm.fixed_condition_code_regs.
29533
29534 2019-04-05 Richard Biener <rguenther@suse.de>
29535
29536 PR debug/89892
29537 PR debug/89905
29538 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29539 debug bind stmts but reset them if they are not valid at the
29540 destination.
29541
29542 2019-04-05 Martin Liska <mliska@suse.cz>
29543
29544 PR translation/89936
29545 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29546 order to wrap keywords or arguments.
29547 * collect2.c (main): Likewise.
29548 (scan_prog_file): Likewise.
29549 (scan_libraries): Likewise.
29550 * common/config/riscv/riscv-common.c
29551 (riscv_subset_list::parsing_subset_version): Likewise.
29552 (riscv_subset_list::parse_std_ext): Likewise.
29553 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29554 Likewise.
29555 * config/arm/arm.c (arm_option_override): Likewise.
29556 * config/cris/cris.c (cris_print_operand): Likewise.
29557 * config/darwin-c.c (darwin_pragma_options): Likewise.
29558 (darwin_pragma_unused): Likewise.
29559 (darwin_pragma_ms_struct): Likewise.
29560 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29561 * config/i386/i386.c (print_reg): Likewise.
29562 (ix86_print_operand): Likewise.
29563 * config/i386/xm-djgpp.h: Likewise.
29564 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29565 * config/m32c/m32c.c (m32c_option_override): Likewise.
29566 * config/msp430/msp430.c (msp430_option_override): Likewise.
29567 * config/nds32/nds32.c (nds32_option_override): Likewise.
29568 * config/nvptx/mkoffload.c (main): Likewise.
29569 * config/rx/rx.c (rx_print_operand): Likewise.
29570 (valid_psw_flag): Likewise.
29571 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29572 (vms_pragma_nomember_alignment): Likewise.
29573 (vms_pragma_extern_model): Likewise.
29574 * lto-wrapper.c (compile_offload_image): Likewise.
29575 * omp-offload.c (oacc_parse_default_dims): Likewise.
29576 * symtab.c (symtab_node::verify_base): Likewise.
29577 * tlink.c (recompile_files): Likewise.
29578 (start_tweaking): Likewise.
29579 * tree-profile.c (parse_profile_filter): Likewise.
29580
29581 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29582
29583 PR tree-optimization/89956
29584 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29585 multiple negates of the same value.
29586
29587 2019-04-04 Martin Sebor <msebor@redhat.com>
29588
29589 PR middle-end/89957
29590 PR middle-end/89911
29591 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29592 have the same precision since the function crashes otherwise.
29593 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29594 has non-zero arguments.
29595
29596 2019-04-04 Martin Sebor <msebor@redhat.com>
29597
29598 PR middle-end/89934
29599 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29600 out if the number of arguments is less than expected.
29601
29602 2019-04-04 Jeff Law <law@redhat.com>
29603
29604 PR rtl-optimization/89399
29605 * ree.c (combine_set_extension): Use single_set rather than
29606 digging into PATTERN for items on the candidate list.
29607 (combine_reaching_defs): Likewise.
29608
29609 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29610
29611 PR rtl-optimization/46590
29612 * loop-invariant.c (find_defs): Move df_remove_problem and
29613 df_process_deferred_rescans to move_invariants.
29614 Move df_live_add_problem and df_live_set_all_dirty calls
29615 to move_invariants.
29616 (move_invariants): Likewise.
29617 (move_loop_invariants): Likewise, making the df_live calls
29618 conditional on -O. Remove the problem again if we added it
29619 locally.
29620
29621 2019-04-03 qing zhao <qing.zhao@oracle.com>
29622
29623 PR tree-optimization/89730
29624 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29625 -flive-patching=inline-only-static.
29626 (can_inline_edge_by_limits_p): Add the checking for
29627 -flive-patching=inline-only-static and grant always_inline
29628 even when -flive-patching=inline-only-static is specified.
29629
29630 2019-04-03 Jeff Law <law@redhat.com>
29631
29632 PR rtl-optimization/81025
29633 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29634
29635 2019-04-03 Richard Biener <rguenther@suse.de>
29636
29637 PR tree-optimization/84101
29638 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29639 regs.h for hard_regno_nregs.
29640 (cfun_returns): New helper.
29641 (vect_model_store_cost): When vectorizing a store to a decl
29642 we return and the function ABI returns in a multi-reg location
29643 account for the possible spilling that will happen.
29644
29645 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29646
29647 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29648 displacement addresses for vector mode operands.
29649
29650 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29651
29652 * config/arc/arc.c (GMASK_LEN): Define.
29653 (arc_restore_callee_saves): Restore first blink when
29654 !optimize_size.
29655
29656 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29657
29658 * doc/extend.texi: Add deprecated comment on sign-return-address
29659 function attribute and add mbranch-protection.
29660 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29661
29662 2019-04-03 Richard Biener <rguenther@suse.de>
29663
29664 PR lto/89896
29665 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29666 the all target phony.
29667
29668 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29669
29670 PR target/89902
29671 PR target/89903
29672 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29673 Return false for variable DImode shifts.
29674 (dimode_scalar_chain::compute_convert_gain): Do not handle
29675 register count operand in variable DImode shifts.
29676 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29677 count argument of a variable shift instruction to a vector register.
29678 (dimode_scalar_chain::convert_reg): Remove support to convert
29679 count argument of a variable shift instruction.
29680
29681 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29682
29683 PR rtl-optimization/84206
29684 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29685 iterating over loop headers.
29686
29687 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29688
29689 PR rtl-optimization/85876
29690 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29691 beyond the original fence.
29692
29693 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29694
29695 * config.gcc: Mark spu* targets as deprecated/obsolete.
29696
29697 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29698
29699 * config/s390/s390-builtin-types.def: New builtin function type
29700 definitions. Remove unused types.
29701 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29702 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29703 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29704 overloaded builtins.
29705 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29706 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29707 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29708 (vec_double, vec_signed, vec_unsigned): Define to use the new
29709 overloaded builtins.
29710 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29711 Remove expanders.
29712
29713 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29714
29715 * config/s390/s390-builtin-types.def: New builtin function type
29716 definitions.
29717 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29718 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29719 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29720 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29721 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29722 constant definitions.
29723 * config/s390/vecintrin.h (vec_search_string_cc)
29724 (vec_search_string_until_zero_cc): New builtin name definitions.
29725 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29726 expanders.
29727 ("vec_vstrs<mode>"): New insn definition.
29728
29729 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29730
29731 * config/s390/s390-builtin-types.def: Add new builtin function
29732 types.
29733 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29734 New overloaded builtins.
29735 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29736 s390_vsrd.
29737 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29738 (UNSPEC_VEC_SLDBYTE): ... this.
29739 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29740 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29741 definitions.
29742 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29743 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29744 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29745
29746 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29747
29748 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29749 New insn definition.
29750 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29751 * config/s390/vector.md (V_HW_HSD): ... here.
29752
29753 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29754
29755 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29756 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29757 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29758 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29759 New insn definitions.
29760
29761 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29762
29763 * config/s390/s390-builtin-types.def: Add new builtin function type.
29764 * config/s390/s390-builtins.def: Add overloaded builtin
29765 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29766 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29767 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29768 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29769 ("eltswap<mode>"): New expander.
29770 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29771 insn definitions.
29772
29773 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29774
29775 * config/s390/s390-builtin-types.def: Add new builtin function types.
29776 * config/s390/s390-builtins.def: Add overloaded builtin
29777 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29778 instructions.
29779 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29780 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29781 ("bswap<mode>"): New expander.
29782 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29783
29784 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29785
29786 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29787 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29788 vector builtin version number in __VEC__.
29789
29790 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29791
29792 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29793 iterators.
29794 (SFSI): New mode attribute.
29795 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29796 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29797 rename to ...
29798 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29799 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29800 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29801 ("floatsi<mode>2"): Add wcefb instruction.
29802
29803 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29804
29805 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29806 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29807 mode iterators.
29808 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29809 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29810 support 32 bit fp-int conversions. Rename to ...
29811 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29812 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29813 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29814 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29815 ... to these.
29816
29817 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29818
29819 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29820 if-then-else constructs if we can use the select instruction.
29821 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29822
29823 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29824
29825 * config/s390/s390.md ("*popcountdi_arch13_cc")
29826 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29827 definition.
29828 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29829 Append _z196 to make it ...
29830 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29831 ("popcounthi2_z196"): ... this.
29832 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29833 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29834
29835 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29836
29837 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29838 certain compares for arch13 in order to make use of the condition
29839 code result produced by the new instructions.
29840 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29841 nxrk, and nxgrk instruction patterns.
29842 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29843 (inv_no): Add new code iterator together with some attributes.
29844 ("*andc_split_<mode>"): Disable splitter for arch13.
29845 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29846 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29847 ("*<ANDOR:bitops_name>c<GPR:mode>")
29848 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29849 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29850 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29851 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29852
29853 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29854
29855 * common/config/s390/s390-common.c (processor_flags_table): New
29856 entry for arch13.
29857 * config.gcc: Support arch13 with the --with-arch= configure flag.
29858 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29859 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29860 * config/s390/s390.c (s390_get_sched_attrmask)
29861 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29862 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29863 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29864 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29865 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29866 definitions.
29867 * config/s390/s390.opt: Support arch13 as processor type in
29868 command line options.
29869
29870 2019-04-02 Martin Liska <mliska@suse.cz>
29871
29872 PR translation/89912
29873 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29874 Fix param description of graphite-max-arrays-per-scop.
29875
29876 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29877
29878 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29879 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29880 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29881
29882 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29883
29884 PR rtl-optimization/85412
29885 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29886 sel_sched_region_1, not after.
29887
29888 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29889
29890 PR rtl-optimization/86928
29891 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29892 compute_live if necessary.
29893 (sel_redirect_edge_and_branch): Likewise.
29894
29895 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29896
29897 PR rtl-optimization/89865
29898 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29899 register if it is a part of small class.
29900
29901 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29902
29903 PR rtl-optimization/87273
29904 * sel-sched-ir.c (merge_fences): Remove assert.
29905
29906 2019-04-01 Richard Biener <rguenther@suse.de>
29907
29908 PR tree-optimization/46590
29909 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29910 (dom_walker::m_reachability): Add in place of...
29911 (dom_walker::m_skip_unreachable_blocks): ...this.
29912 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29913 Move complex initialization ...
29914 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29915 lazily and initialize edge flags on each invocation.
29916 (dom_walker::bb_reachable): Use m_reachability.
29917
29918 2019-04-01 Martin Liska <mliska@suse.cz>
29919
29920 PR driver/89861
29921 * opt-suggestions.c (option_proposer::build_option_suggestions):
29922 Add variant without any argument in order to provide better
29923 hints.
29924
29925 2019-04-01 Richard Biener <rguenther@suse.de>
29926
29927 PR c/71598
29928 * gimple.c: Include langhooks.h.
29929 (gimple_get_alias_set): Treat enumeral types as the underlying
29930 integer type.
29931
29932 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29933 Eric Botcazou <ebotcazou@adacore.com>
29934
29935 PR rtl-optimization/89862
29936 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29937 that operates on the full registers for WORD_REGISTER_OPERATIONS
29938 architectures.
29939
29940 2019-03-29 Jim Wilson <jimw@sifive.com>
29941
29942 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29943 Clear MASK_RVC and then set if C subset supported.
29944
29945 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29946
29947 PR c/89872
29948 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29949 non-addressable complit into its initializer if it is volatile.
29950
29951 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29952
29953 * opts-common.c (integral_argument): Set errno properly in one case.
29954
29955 2019-03-29 Martin Liska <mliska@suse.cz>
29956
29957 * doc/invoke.texi: Remove -Wchkp from documentation.
29958
29959 2019-03-29 Martin Liska <mliska@suse.cz>
29960
29961 * dbgcnt.c (print_limit_reach): New function.
29962 (dbg_cnt): Use it.
29963
29964 2019-03-29 Martin Liska <mliska@suse.cz>
29965
29966 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29967 (dbg_cnt_process_opt): Parse first tokens aas
29968 dbg_cnt_process_single_pair is also using strtok.
29969
29970 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29971
29972 PR rtl-optimization/87485
29973 * function.c (expand_function_end): Move stack_protect_epilogue
29974 before loading of return value into hard register(s).
29975
29976 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29977
29978 PR middle-end/89621
29979 * tree-inline.h (struct copy_body_data): Add
29980 dont_remap_vla_if_no_change flag.
29981 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29982 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29983 and remap_type_2 returns false.
29984 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29985 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29986 only from where it is copied to nested contexts.
29987
29988 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29989
29990 PR target/89865
29991 * config/i386/i386.md (RMW operation with LEA peephole):
29992 Use LEAMODE mode attribute instead of SWI mode iterator for
29993 LEA pattern.
29994
29995 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29996
29997 PR target/89848
29998 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29999 Also process XEXP (src, 0) of a shift insn.
30000
30001 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30002
30003 PR middle-end/89725
30004 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30005 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30006
30007 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30008
30009 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30010 test.
30011 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30012 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30013 immediately after first one with df_analyze in between, but rather
30014 process all bbs, queueing ones that need second pass in a worklist,
30015 df_analyze, process queued debug insn changes and if second pass is
30016 needed, process bbs from worklist, df_analyze, process queued debug
30017 insns again.
30018
30019 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30020 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30021 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30022
30023 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30024
30025 PR c/79022
30026 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30027 definition.
30028
30029 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30030
30031 PR target/85667
30032 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30033 function for 32-bit MS_ABI.
30034 (function_value_ms_32): New function.
30035
30036 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30037
30038 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30039 (movdi): Call gen_movdi_symbol_save_scc.
30040 (gen_movdi_symbol_save_scc): New insn and split.
30041
30042 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30043
30044 PR rtl-optimization/89313
30045 * function.c (matching_constraint_num): New static function.
30046 (match_asm_constraints_1): Use it. Fixup white space and comment.
30047 Don't replace inputs with non-matching constraints which conflict
30048 with early clobber outputs.
30049
30050 2019-03-27 Jeff Law <law@redhat.com>
30051
30052 PR rtl-optimization/87761
30053 PR rtl-optimization/89826
30054 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30055 slightly later.
30056 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30057 note problem to get REG_DEAD/REG_UNUSED notes updated.
30058
30059 2019-03-27 Richard Biener <rguenther@suse.de>
30060
30061 PR tree-optimization/89463
30062 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30063 queue edges to remove.
30064 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30065 dead stmts. Delay edge removal until PHIs are removed to
30066 make debug-stmt creation not confused by seemingly degenerate
30067 PHIs.
30068
30069 2019-03-27 Alan Modra <amodra@gmail.com>
30070
30071 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30072 throughout file.
30073 * config/rs6000/darwin.h: Likewise.
30074 * config/rs6000/rs6000.c: Likewise.
30075
30076 2019-03-27 Alan Modra <amodra@gmail.com>
30077
30078 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30079 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30080
30081 2019-03-26 Andrew Waterman <andrew@sifive.com>
30082 Jim Wilson <jimw@sifive.com>
30083
30084 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30085 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30086 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30087 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30088 (generic_alu): Add auipc to type list.
30089 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30090 (riscv_microarchitecture): Declare.
30091 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30092 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30093 field.
30094 (riscv_microarchitecture): New.
30095 (sifive_7_tune_info): New.
30096 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30097 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30098 entries.
30099 (riscv_store_data_bypass_p): New.
30100 (riscv_option_override): Set riscv_microarchitecture from
30101 cpu->microarchitecture.
30102 * config/riscv/riscv.md: Include sifive-7.md.
30103 (type): Add auipc.
30104 (tune): New.
30105 (auipc<mode>): Change type to auipc.
30106 (restore_stack_nonlocal): New.
30107 * config/riscv/sifive-7.md: New.
30108 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30109
30110 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30111
30112 PR target/89827
30113 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30114 Also process XEXP (src, 0) of a shift insn.
30115
30116 2019-03-26 Richard Biener <rguenther@suse.de>
30117
30118 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30119 (copy_debug_stmt): Likewise.
30120 (expand_call_inline): Likewise.
30121 (copy_bb): Avoid redundant lookup & set of gimple_block.
30122 * gimple-low.c (lower_gimple_return): Likewise.
30123 (lower_builtin_setjmp): Likewise.
30124
30125 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30126
30127 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30128 is constant 0, turn into static const data member initialized to false.
30129 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30130 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30131
30132 2019-03-26 Jason Merrill <jason@redhat.com>
30133 Jakub Jelinek <jakub@redhat.com>
30134
30135 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30136 method.
30137 (mem_alloc_description::release_object_overhead): Fix comment typos.
30138 * hash-table.h (hash_table::~hash_table): Call
30139 release_instance_overhead only if m_entries is non-NULL, otherwise
30140 call unregister_descriptor.
30141
30142 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30143
30144 PR tree-optimization/81740
30145 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30146 In case of outer loop vectorization, check for backward dependence
30147 at the inner loop if outer loop dependence is reversed.
30148
30149 2019-03-26 Alan Modra <amodra@gmail.com>
30150
30151 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30152 rs6000_vector_mem init. Correct wI and wJ comment.
30153
30154 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30155
30156 PR rtl-optimization/88347
30157 PR rtl-optimization/88423
30158 * sched-deps.c (sched_analyze_insn): Take into account that for
30159 tablejumps the barrier appears after a label and a jump_table_data.
30160
30161 2019-03-25 Martin Sebor <msebor@redhat.com>
30162
30163 PR c/89812
30164 * c-common.c (check_user_alignment): Rename local. Correct maximum
30165 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30166 convert it to UHWI when it fits.
30167
30168 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30169
30170 PR debug/86964
30171 * dwarf2out.c (premark_used_variables): New function.
30172 (prune_unused_types_walk): Do not mark not premarked external
30173 variables.
30174 (prune_unused_types): Call premark_used_variables.
30175
30176 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30177
30178 PR rtl-optimization/89676
30179 * lra-constraints.c (curr_insn_transform): Do match reload for
30180 early clobbers when the match was successful only for different
30181 registers.
30182
30183 2019-03-25 Martin Sebor <msebor@redhat.com>
30184
30185 * doc/extend.texi (Common Type Attributes): Document vector_size.
30186 (Common Variable Attributes): Mention size constraint. Correct
30187 quoting and typos.
30188 (Vector Extensions): Use @dfn when defining bas type. Clarify
30189 base type and size constraints.
30190
30191 2019-03-25 Richard Biener <rguenther@suse.de>
30192
30193 PR tree-optimization/89789
30194 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30195 changes from non-undefined back to undefined.
30196
30197 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30198
30199 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30200 heap string and a gc string, but since this variable is unknown to
30201 ggc the gc string might get reused and corrupted. Fixed by always
30202 using a heap string.
30203
30204 2019-03-25 Richard Biener <rguenther@suse.de>
30205
30206 PR tree-optimization/89779
30207 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30208 to remove IV defs, delay actual removal.
30209 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30210 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30211 very end, properly also reset loop control IV information.
30212
30213 2019-03-25 Richard Biener <rguenther@suse.de>
30214
30215 PR tree-optimization/89802
30216 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30217 move EH data to folded stmt.
30218
30219 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30220
30221 * config/s390/s390-builtin-types.def: Remove few unused types and
30222 fix sort order for others.
30223
30224 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30225
30226 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30227 expected and found types with -mdebug during builtin matching.
30228
30229 2019-03-25 Richard Biener <rguenther@suse.de>
30230
30231 PR middle-end/89790
30232 * fold-const.c (operand_equal_p): Revert last change with
30233 updated comment.
30234
30235 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30236
30237 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30238 notes for the result of the __tls_get_addr calls.
30239 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30240
30241 2019-03-24 Jeff Law <law@redhat.com>
30242
30243 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30244
30245 PR rtl-optimization/87761
30246 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30247 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30248 as needed.
30249 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30250 rescans. Reprocess blocks as needed, calling df_analyze before
30251 reprocessing. Always call df_analyze before fixing up debug bind
30252 insns.
30253
30254 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30255
30256 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30257 big endian.
30258
30259 2019-03-22 Andrew Pinski <apinski@marvell.com>
30260
30261 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30262 attrribute for uxtw.
30263
30264 2019-03-26 Jeff Law <law@redhat.com>
30265
30266 PR rtl-optimization/87761
30267 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30268 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30269 (mips_split_move): Accept new INSN argument. Try to forward SRC
30270 into the next instruction.
30271 (mips_split_move_insn): Pass INSN through to mips_split_move.
30272
30273 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30274
30275 PR rtl-optimization/89676
30276 * lra-constraints.c (curr_insn_transform): Do match reload for
30277 early clobbers even if the match was successful.
30278
30279 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30280
30281 PR c++/87481
30282 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30283
30284 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30285
30286 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30287
30288 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30289
30290 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30291 <avx512>_fmsub_<mode>_mask3<round_name>,
30292 <avx512>_fnmadd_<mode>_mask3<round_name>,
30293 <avx512>_fnmsub_<mode>_mask3<round_name>,
30294 avx512f_vmfmadd_<mode>_mask3<round_name>,
30295 avx512f_vmfmsub_<mode>_mask3<round_name>,
30296 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30297 instead of register_operand and %v instead of v for match_operand 1.
30298 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30299 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30300 <round_nimm_predicate> instead of register_operand and %v instead of v
30301 for match_operand 1.
30302
30303 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30304 <avx512>_fmadd_<mode>_mask3<round_name>,
30305 <avx512>_fmsub_<mode>_mask<round_name>,
30306 <avx512>_fmsub_<mode>_mask3<round_name>,
30307 <avx512>_fnmadd_<mode>_mask<round_name>,
30308 <avx512>_fnmadd_<mode>_mask3<round_name>,
30309 <avx512>_fnmsub_<mode>_mask<round_name>,
30310 <avx512>_fnmsub_<mode>_mask3<round_name>,
30311 <avx512>_fmaddsub_<mode>_mask<round_name>,
30312 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30313 <avx512>_fmsubadd_<mode>_mask<round_name>,
30314 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30315 <round_nimm_predicate> instead of nonimmediate_operand.
30316 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30317 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30318 Use register_operand instead of <round_nimm_predicate> for the
30319 operand that needs to match output.
30320 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30321 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30322 Likewise. Formatting fixes.
30323
30324 PR target/89784
30325 * config/i386/i386.c (enum ix86_builtins): Remove
30326 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30327 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30328 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30329 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30330 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30331 __builtin_ia32_vfmsubss3_mask3): New builtins.
30332 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30333 avx512f_vmfmadd_<mode>_mask3<round_name>,
30334 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30335 *avx512f_vmfmsub_<mode>_mask<round_name>,
30336 avx512f_vmfmsub_<mode>_mask3<round_name>,
30337 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30338 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30339 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30340 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30341 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30342 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30343 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30344 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30345 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30346 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30347 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30348 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30349 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30350 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30351 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30352 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30353 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30354 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30355 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30356 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30357 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30358 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30359 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30360 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30361 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30362 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30363 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30364 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30365
30366 2019-03-21 Martin Sebor <msebor@redhat.com>
30367
30368 PR tree-optimization/89350
30369 * builtins.c (compute_objsize): Also ignore offsets whose upper
30370 bound is negative.
30371 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30372 (builtin_memref::builtin_memref): Initialize new member.
30373 Allow EXPR to be null.
30374 (builtin_memref::extend_offset_range): Replace local with a member.
30375 Avoid assuming pointer offsets are unsigned.
30376 (builtin_memref::set_base_and_offset): Determine base object
30377 before computing offset range.
30378 (builtin_access::builtin_access): Handle memset.
30379 (builtin_access::generic_overlap): Replace local with a member.
30380 (builtin_access::strcat_overlap): Same.
30381 (builtin_access::overlap): Same.
30382 (maybe_diag_overlap): Same.
30383 (maybe_diag_access_bounds): Same.
30384 (wrestrict_dom_walker::check_call): Handle memset.
30385 (check_bounds_or_overlap): Same.
30386
30387 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30388 Jakub Jelinek <jakub@redhat.com>
30389
30390 PR lto/89692
30391 * tree.c (fld_type_variant, fld_incomplete_type_of,
30392 fld_process_array_type): Call fld->pset.add and don't call
30393 add_tree_to_fld_list if it returns true.
30394 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30395 non-marked types from TYPE_NEXT_VARIANT list.
30396 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30397
30398 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30399
30400 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30401 to false, if true, don't alloc_entries during construction, but defer
30402 it to the first method that needs m_entries allocated.
30403 (hash_table::hash_table, hash_table::~hash_table,
30404 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30405 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30406 hash_table::clear_slot, hash_table::traverse_noresize,
30407 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30408 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30409 false.
30410 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30411 NO_INSERT instead of find_with_hash.
30412 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30413 hash_set::m_table): Add Lazy to template params of hash_table.
30414 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30415 * attribs.c (test_attribute_exclusions): Likewise.
30416 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30417 hash_set. Add tests for hash_set with Lazy = true.
30418
30419 2019-03-21 Richard Biener <rguenther@suse.de>
30420
30421 PR tree-optimization/89779
30422 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30423 checks with respect to released SSA names now having error_mark_node
30424 type.
30425 * fold-const.c (operand_equal_p): Likewise.
30426
30427 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30428
30429 PR target/89775
30430 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30431 available to ...
30432 (s390_optimize_register_info): Use global_not_special_regno_p to
30433 check for global regs.
30434
30435 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30436
30437 PR target/89752
30438 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30439 update this_alternative nor this_alternative_set.
30440
30441 2019-03-19 Jim Wilson <jimw@sifive.com>
30442
30443 PR target/89411
30444 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30445 align, size, offset. Use them to handle a BLKmode reference. Update
30446 comment.
30447 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30448
30449 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30450
30451 PR rtl-optimization/89768
30452 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30453 instead of GEN_INT.
30454 (unroll_loop_runtime_iterations): Likewise.
30455
30456 2019-03-19 Martin Sebor <msebor@redhat.com>
30457
30458 PR tree-optimization/89644
30459 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30460 rather than endptr as an indicator of nul-termination.
30461
30462 PR tree-optimization/89644
30463 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30464 arrays in determining sequence sizes in strncpy and stpncpy.
30465
30466 2019-03-19 Martin Liska <mliska@suse.cz>
30467
30468 PR middle-end/89737
30469 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30470 unlikely_edges if there's an edge that belongs to both these sets.
30471
30472 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30473
30474 PR target/89746
30475 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30476 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30477 go via a stack temporary.
30478
30479 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30480
30481 PR target/89378
30482 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30483 instead of gen_rtx_SUBREG.
30484 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30485
30486 2019-03-19 Richard Biener <rguenther@suse.de>
30487
30488 PR debug/88389
30489 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30490
30491 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30492
30493 PR lto/87809
30494 PR lto/89335
30495 * tree.c (free_lang_data_in_decl): Do not free context of C++
30496 destrutors.
30497
30498 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30499
30500 PR target/89506
30501 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30502 subs for the first alternative except when operands[3] is 1.
30503
30504 PR target/89752
30505 * gimplify.c (gimplify_asm_expr): For output argument with
30506 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30507 diagnose error.
30508
30509 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30510
30511 PR rtl-optimization/89753
30512 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30513 explicit unrolling factor even more robust.
30514
30515 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30516
30517 PR target/89726
30518 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30519 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30520 signed zeros, do another copysign after the compensation.
30521
30522 2019-03-18 Martin Sebor <msebor@redhat.com>
30523
30524 PR tree-optimization/89720
30525 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30526 more conservatively, the same as anti-range.
30527
30528 2019-03-18 Richard Biener <rguenther@suse.de>
30529
30530 PR middle-end/88945
30531 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30532 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30533 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30534 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30535
30536 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30537
30538 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30539 Extend queue to 1024 entries.
30540 Add "consumed" field.
30541 (gomp_print_output): Remove print_index parameter.
30542 Add final parameter.
30543 Change limit to unsigned.
30544 Use consumed field to implement circular buffer.
30545 Detect interrupted print in final pass.
30546 Flush output at the end.
30547 (run): Update gomp_print_output usage.
30548 (main): Initialize kernargs->output_data.consumed.
30549
30550 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30551
30552 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30553 calculation of the minimum number of scalar iterations for
30554 fully-predicated loops.
30555
30556 2019-03-18 Martin Jambor <mjambor@suse.cz>
30557
30558 PR tree-optimization/89546
30559 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30560 any propagation to its children took place.
30561
30562 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30563
30564 PR target/89627
30565 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30566 parameter, and make use of it.
30567 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30568
30569 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30570
30571 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30572 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30573 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30574 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30575 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30576 match what the ops is doing.
30577 (push_multi_fp_blink): Likewise.
30578 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30579 compiling for size and elf target.
30580 (arc_save_callee_enter): Adjust note to match what enter/leave
30581 operation does.
30582
30583 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30584
30585 * config/arc/arc.md (tst_movb): Fix constraint.
30586
30587 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30588
30589 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30590
30591 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30592
30593 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30594 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30595 reg_alloc_order references.
30596 (size_alloc_order): Define.
30597 (arc_adjust_reg_alloc_order): New function.
30598 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30599 order.
30600 (ADJUST_REG_ALLOC_ORDER): Define.
30601 (HONOR_REG_ALLOC_ORDER): Likewise.
30602
30603 2019-03-18 Richard Biener <rguenther@suse.de>
30604
30605 PR target/87561
30606 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30607 loads and stores a bit more.
30608
30609 2019-03-18 Richard Biener <rguenther@suse.de>
30610
30611 PR target/87561
30612 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30613 load pessimization to stores as well.
30614
30615 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30616
30617 PR middle-end/86979
30618 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30619 successor, use NULL as its av set.
30620
30621 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30622
30623 PR rtl-optimization/89721
30624 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30625
30626 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30627
30628 PR target/87532
30629 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30630 When handling vec_extract, use modular arithmetic to allow
30631 constant selectors greater than vector length.
30632 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30633 V1TImode vectors to have constant selector values greater than 0.
30634 Use modular arithmetic to compute vector index.
30635 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30636 index for in-memory vectors. Correct code generation for
30637 in-register vectors.
30638 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30639 compute index.
30640
30641 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30642
30643 PR c++/88534
30644 PR c++/88537
30645 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30646 VAR_DECL args.
30647
30648 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30649
30650 PR c++/89709
30651 * tree.c (inchash::add_expr): Strip any location wrappers.
30652 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30653 after hash verification.
30654
30655 PR debug/89704
30656 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30657 SIGN_EXTEND and ZERO_EXTEND.
30658
30659 2019-03-14 Jason Merrill <jason@redhat.com>
30660 Jakub Jelinek <jakub@redhat.com>
30661
30662 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30663 than if is_empty (*slot).
30664 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30665 existing elt and for elt removal.
30666 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30667 of already removed elt.
30668
30669 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30670
30671 PR target/89650
30672 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30673 REG_EH_REGION note.
30674
30675 2019-03-14 Martin Liska <mliska@suse.cz>
30676
30677 PR other/89712
30678 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30679
30680 2019-03-14 Richard Biener <rguenther@suse.de>
30681
30682 PR target/89711
30683 * config/i386/i386.c (make_resolver_func): Properly set
30684 DECL_CONTEXT on the RESULT_DECL.
30685 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30686
30687 2019-03-14 Richard Biener <rguenther@suse.de>
30688
30689 * gimple-pretty-print.c: Include cfgloop.h.
30690 (dump_gimple_phi): Adjust.
30691 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30692 (pp_cfg_jump): Adjust.
30693 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30694 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30695 (lower_phi_internal_fn): Remove.
30696 (verify_gimple_call): Remove IFN_PHI special-casing.
30697 (dump_function_to_file): Dump IL state.
30698 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30699 done to deal with PHI nodes being present in non-SSA state.
30700
30701 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30702
30703 PR ipa/89684
30704 * multiple_target.c (create_dispatcher_calls): Change
30705 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30706 In the node->iterate_referring loop, push *ref rather than ref, call
30707 ref->remove_reference () and always pass 0 to iterate_referring.
30708
30709 PR rtl-optimization/89679
30710 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30711 would contain a paradoxical SUBREG.
30712
30713 2019-03-14 Richard Biener <rguenther@suse.de>
30714
30715 PR tree-optimization/89710
30716 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30717 safe_dyn_cast.
30718
30719 2019-03-14 Martin Liska <mliska@suse.cz>
30720
30721 * coverage.c (coverage_begin_function): Stream also
30722 end_column.
30723 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30724 documentation about function declaration location.
30725 * gcov-dump.c (tag_function): Print whole range
30726 of function declaration.
30727 * gcov.c (struct function_info): Add end_column field.
30728 (function_info::function_info): Initialize it.
30729 (output_json_intermediate_file): Output {start,end}_column
30730 fields.
30731 (read_graph_file): Read end_column.
30732
30733 2019-03-14 Richard Biener <rguenther@suse.de>
30734
30735 PR middle-end/89698
30736 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30737 that the access types are similar.
30738
30739 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30740
30741 PR tree-optimization/89703
30742 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30743 aren't compatible also with builtin_decl_explicit. Check pure
30744 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30745 and BUILT_IN_STPNCPY{,_CHK}.
30746
30747 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30748
30749 PR target/89523
30750 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30751 addr32 prefix to VSIB address for X32.
30752 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30753 "%M2" to opcode.
30754 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30755 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30756 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30757 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30758 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30759 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30760 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30761 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30762 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30763 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30764 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30765 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30766 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30767 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30768 (*avx512f_scatterdi<mode>): Likewise.
30769
30770 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30771
30772 PR target/85860
30773 * lra-constraints.c (inherit_in_ebb): Update
30774 potential_reload_hard_regs along with live_hard_regs.
30775
30776 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30777
30778 PR debug/89498
30779 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30780 DWARF_OFFSET_SIZE.
30781 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30782
30783 2019-03-13 Martin Sebor <msebor@redhat.com>
30784
30785 PR tree-optimization/89662
30786 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30787 has a size.
30788
30789 2019-03-13 Richard Biener <rguenther@suse.de>
30790
30791 PR middle-end/89677
30792 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30793 throw FP expressions at tree-affine.
30794
30795 2019-03-14 Richard Biener <rguenther@suse.de>
30796
30797 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30798 dump negative integer constants using _Literal (type) -num.
30799
30800 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30801
30802 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30803 nonlocal_value member.
30804
30805 PR middle-end/88588
30806 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30807 (ipa_simd_modify_function_body): Handle PHIs.
30808
30809 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30810
30811 * config/s390/s390.c (s390_option_override_internal): Use more
30812 aggressive inlining parameters.
30813
30814 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30815
30816 * config/s390/3906.md: New file.
30817 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30818 (LONGRUNNING_THRESHOLD): Remove.
30819 (MAX_SCHED_MIX_SCORE): Decrease.
30820 (MAX_SCHED_MIX_DISTANCE): Decrease.
30821 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30822 (struct s390_sched_state): New struct to hold scheduling state.
30823 (S390_SCHED_STATE_NORMAL): Remove.
30824 (S390_SCHED_STATE_CRACKED): Remove.
30825 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30826 (s390_get_sched_attrmask): Use new attribute.
30827 (s390_get_unit_mask): Use new units.
30828 (s390_is_fpd): New function.
30829 (s390_is_fxd): New function.
30830 (s390_is_longrunning): New function.
30831 (s390_sched_score): Use new functions.
30832 (s390_sched_reorder): Likewise.
30833 (s390_sched_variable_issue): Rework and use new functions.
30834 (s390_sched_init): Use new functions.
30835 * config/s390/s390.h (s390_tune_attr): Add z14.
30836 * config/s390/s390.md: Add z14.
30837
30838 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30839
30840 * config/s390/2964.md: Update pipeline description.
30841 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30842 (LONGRUNNING_THRESHOLD): Remove.
30843 (LATENCY_FACTOR): Remove.
30844 (s390_get_unit_mask): Add unit.
30845 (s390_sched_score): Use fxd/fpd.
30846 (s390_sched_variable_issue): Use fxd/fpd.
30847
30848 2019-03-12 Martin Liska <mliska@suse.cz>
30849
30850 * config/i386/i386.c: Reword an error message.
30851
30852 2019-03-12 Martin Jambor <mjambor@suse.cz>
30853
30854 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30855 terminate with newline.
30856
30857 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30858
30859 PR target/52726
30860 * config/s390/s390.md (tabort): Use %wd instead of
30861 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30862 letters and periods.
30863 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30864 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30865 's with %< and %>.
30866
30867 PR middle-end/89663
30868 * builtins.c (expand_builtin_int_roundingfn,
30869 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30870 gcc_unreachable if validate_arglist fails.
30871
30872 2019-03-12 Richard Biener <rguenther@suse.de>
30873
30874 PR tree-optimization/89664
30875 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30876 free the occurance tree after the early out.
30877
30878 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30879
30880 PR middle-end/89655
30881 PR bootstrap/89656
30882 * vr-values.c (vr_values::update_value_range): If
30883 old_vr->varying_p (), don't update it, make new_vr also VARYING
30884 and return false.
30885
30886 2019-03-11 Martin Liska <mliska@suse.cz>
30887
30888 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30889 Fix double string quoting.
30890
30891 2019-03-11 Martin Liska <mliska@suse.cz>
30892
30893 * collect-utils.c (collect_wait): Wrap apostrophes
30894 in gcc internal format with %'.
30895 * collect2.c (main): Likewise.
30896 (scan_prog_file): Likewise.
30897 (scan_libraries): Likewise.
30898 * config/i386/i386.c (ix86_expand_call): Likewise.
30899 (ix86_handle_interrupt_attribute): Likewise.
30900 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30901 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30902 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30903 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30904 * symtab.c (symtab_node::verify_base): Likewise.
30905 * tree-cfg.c (verify_gimple_label): Likewise.
30906 * tree.c (verify_type_variant): Likewise.
30907
30908 2019-03-11 Martin Liska <mliska@suse.cz>
30909
30910 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30911 in a string format message and fix GNU coding style.
30912 (expand_builtin_set_thread_pointer): Likewise.
30913 * common/config/aarch64/aarch64-common.c
30914 (aarch64_rewrite_selected_cpu): Likewise.
30915 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30916 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30917 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30918 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30919 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30920 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30921 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30922 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30923 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30924 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30925 Likewise.
30926 * common/config/riscv/riscv-common.c
30927 (riscv_subset_list::parsing_subset_version): Likewise.
30928 (riscv_subset_list::parse_std_ext): Likewise.
30929 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30930 (riscv_subset_list::parse): Likewise.
30931 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30932 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30933 (aarch64_override_options_internal): Likewise.
30934 (aarch64_validate_mcpu): Likewise.
30935 (aarch64_validate_march): Likewise.
30936 (aarch64_validate_mtune): Likewise.
30937 (aarch64_override_options): Likewise.
30938 * config/alpha/alpha.c (alpha_option_override): Likewise.
30939 * config/arc/arc.c (arc_init): Likewise.
30940 (parse_mrgf_banked_regs_option): Likewise.
30941 (arc_override_options): Likewise.
30942 (arc_expand_builtin_aligned): Likewise.
30943 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30944 (arm_expand_builtin): Likewise.
30945 * config/arm/arm.c (arm_option_check_internal): Likewise.
30946 (arm_configure_build_target): Likewise.
30947 (arm_option_override): Likewise.
30948 (arm_options_perform_arch_sanity_checks): Likewise.
30949 (arm_handle_cmse_nonsecure_entry): Likewise.
30950 (arm_handle_cmse_nonsecure_call): Likewise.
30951 (arm_tls_referenced_p): Likewise.
30952 (thumb1_expand_prologue): Likewise.
30953 * config/avr/avr.c (avr_option_override): Likewise.
30954 * config/bfin/bfin.c (bfin_option_override): Likewise.
30955 * config/c6x/c6x.c (c6x_option_override): Likewise.
30956 * config/cr16/cr16.c (cr16_override_options): Likewise.
30957 * config/cris/cris.c (cris_option_override): Likewise.
30958 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30959 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30960 * config/darwin.c (darwin_override_options): Likewise.
30961 * config/frv/frv.c (frv_expand_builtin): Likewise.
30962 * config/h8300/h8300.c (h8300_option_override): Likewise.
30963 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30964 (ix86_option_override_internal): Likewise.
30965 (warn_once_call_ms2sysv_xlogues): Likewise.
30966 (ix86_expand_prologue): Likewise.
30967 (split_stack_prologue_scratch_regno): Likewise.
30968 (ix86_warn_parameter_passing_abi): Likewise.
30969 * config/ia64/ia64.c (fix_range): Likewise.
30970 * config/m68k/m68k.c (m68k_option_override): Likewise.
30971 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30972 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30973 (mips_set_compression_mode): Likewise.
30974 * config/mmix/mmix.c (mmix_option_override): Likewise.
30975 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30976 * config/msp430/msp430.c (msp430_option_override): Likewise.
30977 * config/nds32/nds32.c (nds32_option_override): Likewise.
30978 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30979 (nios2_option_override): Likewise.
30980 (nios2_expand_custom_builtin): Likewise.
30981 * config/nvptx/mkoffload.c (main): Likewise.
30982 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30983 * config/pa/pa.c (fix_range): Likewise.
30984 (pa_option_override): Likewise.
30985 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30986 (riscv_option_override): Likewise.
30987 * config/rl78/rl78.c (rl78_option_override): Likewise.
30988 * config/rs6000/aix61.h: Likewise.
30989 * config/rs6000/aix71.h: Likewise.
30990 * config/rs6000/aix72.h: Likewise.
30991 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30992 * config/rs6000/freebsd64.h: Likewise.
30993 * config/rs6000/linux64.h: Likewise.
30994 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30995 (rs6000_expand_zeroop_builtin): Likewise.
30996 (rs6000_expand_mtfsb_builtin): Likewise.
30997 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30998 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30999 (rs6000_invalid_builtin): Likewise.
31000 (rs6000_expand_split_stack_prologue): Likewise.
31001 * config/rs6000/rtems.h: Likewise.
31002 * config/rx/rx.c (valid_psw_flag): Likewise.
31003 (rx_expand_builtin): Likewise.
31004 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31005 * config/s390/s390.c (s390_expand_builtin): Likewise.
31006 (s390_function_profiler): Likewise.
31007 (s390_option_override_internal): Likewise.
31008 (s390_option_override): Likewise.
31009 * config/sh/sh.c (sh_option_override): Likewise.
31010 (sh_builtin_saveregs): Likewise.
31011 (sh_fix_range): Likewise.
31012 * config/sh/vxworks.h: Likewise.
31013 * config/sparc/sparc.c (sparc_option_override): Likewise.
31014 * config/spu/spu.c (spu_option_override): Likewise.
31015 (fix_range): Likewise.
31016 * config/visium/visium.c (visium_option_override): Likewise.
31017 (visium_handle_interrupt_attr): Likewise.
31018 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31019 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31020 (dbg_cnt_process_opt): Likewise.
31021 * dwarf2out.c (output_dwarf_version): Likewise.
31022 * except.c (expand_eh_return): Likewise.
31023 * gcc.c (defined): Likewise.
31024 (driver_handle_option): Likewise.
31025 (process_command): Likewise.
31026 (compare_files): Likewise.
31027 (driver::prepare_infiles): Likewise.
31028 (driver::do_spec_on_infiles): Likewise.
31029 (driver::maybe_run_linker): Likewise.
31030 * omp-offload.c (oacc_parse_default_dims): Likewise.
31031 * opts-global.c (handle_common_deferred_options): Likewise.
31032 * opts.c (parse_sanitizer_options): Likewise.
31033 (common_handle_option): Likewise.
31034 (enable_warning_as_error): Likewise.
31035 * passes.c (enable_disable_pass): Likewise.
31036 * plugin.c (parse_plugin_arg_opt): Likewise.
31037 (default_plugin_dir_name): Likewise.
31038 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31039 (default_pch_valid_p): Likewise.
31040 * toplev.c (init_asm_output): Likewise.
31041 (process_options): Likewise.
31042 (toplev::run_self_tests): Likewise.
31043 * tree-cfg.c (verify_gimple_call): Likewise.
31044 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31045 (tree_inlinable_function_p): Likewise.
31046 * var-tracking.c (vt_find_locations): Likewise.
31047
31048 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31049
31050 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31051 only on the else branch.
31052
31053 2019-03-11 Martin Liska <mliska@suse.cz>
31054
31055 * gcov.c (output_intermediate_json_line): Print function
31056 name of each line.
31057 (output_json_intermediate_file): Add new argument.
31058 * doc/gcov.texi: Document the change.
31059
31060 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31061
31062 PR rtl-optimization/89588
31063 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31064 explicit unrolling factor more robust.
31065
31066 2019-03-11 Richard Biener <rguenther@suse.de>
31067
31068 PR tree-optimization/89649
31069 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31070 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31071 on the prolog and epilog loops.
31072 (vect_loop_versioning): Return copy of loop.
31073 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31074 on the non-vectorized version of the loop.
31075
31076 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31077
31078 PR target/68924
31079 * config/i386/sse.md (*vec_extractv2di_0_sse):
31080 Add (=r,x) alternative and corresponding splitter.
31081
31082 2019-03-10 Martin Jambor <mjambor@suse.cz>
31083
31084 PR tree-optimization/85762
31085 PR tree-optimization/87008
31086 PR tree-optimization/85459
31087 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31088 it points to if there is a type changing MEM_REF. Adjust all callers.
31089 (build_accesses_from_assign): Disable total scalarization if
31090 contains_vce_or_bfcref_p returns true through the new parameter, for
31091 both rhs and lhs.
31092
31093 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31094
31095 PR c/88568
31096 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31097 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31098
31099 PR target/79645
31100 * common.opt (fdiagnostics-show-labels,
31101 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31102 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31103 gas-locview-support, ginline-points, ginternal-reset-location-views):
31104 Terminate description text with a dot.
31105 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31106 * config/mcore/mcore.opt (m210, m340): Likewise.
31107 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31108 mnops=): Start description text with a capital letter.
31109 * config/arc/arc.opt (msize-level=): Likewise.
31110 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31111 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31112 mnewlib): Likewise.
31113 * config/ft32/ft32.opt (msim): Likewise.
31114 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31115 (mnodiv, mnopm): Terminate description text with a dot.
31116 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31117 a colon.
31118 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31119 Likewise.
31120 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31121 text.
31122
31123 PR rtl-optimization/89634
31124 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31125 are modified in BB_END (e->src) instruction.
31126
31127 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31128
31129 PR target/79926
31130 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31131 messages more amenable to translation, and improve wording.
31132
31133 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31134
31135 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31136 ud- and du-chains between phases.
31137
31138 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31139
31140 PR debug/89631
31141 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31142 instead of POLY_INT_CST.
31143
31144 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31145
31146 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31147 requirement.
31148
31149 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31150
31151 PR target/68924
31152 PR target/78782
31153 PR target/87558
31154 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31155 (_mm_storeu_si64): Ditto.
31156
31157 2019-03-08 Martin Liska <mliska@suse.cz>
31158
31159 PR target/86952
31160 * config/i386/i386.c (ix86_option_override_internal): Disable
31161 jump tables when retpolines are used.
31162
31163 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31164
31165 PR go/63560
31166 * ipa-split.c (execute_split_functions): Do not split
31167 'noinline' or 'section' function.
31168
31169 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31170
31171 PR target/79846
31172 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31173 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31174 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31175
31176 PR ipa/80000
31177 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31178 from diagnostics. Formatting fixes.
31179
31180 PR target/85665
31181 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31182 warn_odr diagnostics.
31183
31184 PR other/80058
31185 * lra-constraints.c (process_alt_operands): Avoid one space before
31186 " at the end of line and another after " on another line in a string
31187 literal.
31188 * attribs.c (handle_dll_attribute): Likewise.
31189 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31190
31191 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31192 warning_at or inform messages in G_() if there is no ?:.
31193
31194 PR tree-optimization/89550
31195 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31196 returned true. Formatting fixes.
31197 (expand_builtin_strnlen): Formatting fixes.
31198 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31199 if warning_at returned true.
31200 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31201
31202 2019-03-08 Richard Biener <rguenther@suse.de>
31203
31204 PR middle-end/89578
31205 * cfgloop.h (struct loop): Add owned_clique field.
31206 * cfgloopmanip.c (copy_loop_info): Copy it.
31207 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31208 cliques.
31209 * tree-inline.c (copy_loops): Remap owned_clique.
31210 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31211 * lto-streamer-out.c (output_cfg): Likewise.
31212
31213 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31214
31215 PR target/80190
31216 * config/darwin.c: Include intl.h.
31217 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31218 composing the message out of two separate parts.
31219
31220 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31221
31222 PR target/80003
31223 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31224 doesn't start with a capital letter and doesn't end with a dot.
31225 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31226 with a capital letter.
31227 (ix86_mangle_function_version_assembler_name): Likewise.
31228 (ix86_generate_version_dispatcher_body): Likewise.
31229 (fold_builtin_cpu): Likewise.
31230 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31231 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31232 translators, wrap full type name in %qs.
31233
31234 PR translation/79999
31235 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31236 depend clause with source (or sink) modifier.
31237 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31238
31239 PR target/89602
31240 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31241 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31242 (avx512f_load<mode>_mask): New define_expand.
31243 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31244 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31245 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31246 __builtin_ia32_movess_mask): New builtins.
31247 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31248 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31249 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31250 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31251
31252 2019-03-07 Martin Jambor <mjambor@suse.cz>
31253
31254 PR lto/87525
31255 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31256 for extern inline functions.
31257
31258 2019-03-07 Martin Jambor <mjambor@suse.cz>
31259
31260 PR ipa/88235
31261 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31262 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31263 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31264 have multiple callees. At the end check if declarations match as
31265 opposed to cgraph_nodes.
31266
31267 2019-03-07 Martin Liska <mliska@suse.cz>
31268
31269 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31270 which is equivalent to searching for this in clones chain.
31271 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31272 names with a neighbour and special case first node in a chain.
31273
31274 2019-01-25 Jason Merrill <jason@redhat.com>
31275
31276 PR c++/80916 - spurious "static but not defined" warning.
31277 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31278 for an internal symbol with DECL_EXTERNAL.
31279
31280 2019-04-07 Richard Biener <rguenther@suse.de>
31281
31282 PR middle-end/89618
31283 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31284 * tree-inline.c (copy_loops): Simplify.
31285
31286 2019-03-07 Martin Liska <mliska@suse.cz>
31287
31288 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31289
31290 2019-03-07 Richard Biener <rguenther@suse.de>
31291
31292 PR tree-optimization/89595
31293 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31294 stmt iterator as reference, take boolean output parameter to
31295 indicate whether the stmt was removed and thus the iterator
31296 already advanced.
31297 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31298 stmts created by folding.
31299
31300 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31301
31302 PR c++/89585
31303 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31304 at toplevel.
31305
31306 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31307
31308 PR rtl-optimization/88845
31309 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31310 LRA.
31311 * lra.c (remove_scratches_1): New function.
31312 (remove_scratches): Use it.
31313 (lra_emit_move): Likewise.
31314
31315 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31316
31317 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31318 unaligned_access variable.
31319 * config/arc/arc.c (arc_override_options): Set unaligned access
31320 default on for HS CPUs.
31321 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31322
31323 2019-03-06 Martin Liska <mliska@suse.cz>
31324
31325 PR gcov-profile/89577
31326 * doc/gcov.texi: Prefer to use --coverage.
31327 * doc/sourcebuild.texi: Likewise.
31328
31329 2019-03-02 Jason Merrill <jason@redhat.com>
31330
31331 PR c++/86485 - -Wmaybe-unused with empty class ?:
31332 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31333
31334 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31335
31336 PR target/89587
31337 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31338 if_multiarch.
31339
31340 PR middle-end/89590
31341 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31342 exactly one argument.
31343
31344 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31345 Richard Sandiford <richard.sandiford@arm.com>
31346
31347 PR tree-optimization/89570
31348 * match.pd (vec_cond into cond_op simplification): Don't use
31349 get_conditional_internal_fn, use as_internal_fn (cond_op).
31350
31351 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31352
31353 PR target/89222
31354 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31355 to decide when to split off a non-zero offset from a symbol.
31356 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31357 in function symbols.
31358
31359 2019-03-05 Richard Biener <rguenther@suse.de>
31360
31361 PR tree-optimization/89594
31362 * tree-if-conv.c (pass_if_conversion::execute): Handle
31363 case where .LOOP_VECTORIZED_FUNCTION was removed.
31364
31365 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31366
31367 PR bootstrap/89560
31368 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31369 instead alloca it only when needed with the needed size.
31370
31371 PR tree-optimization/89570
31372 * match.pd (vec_cond into cond_op simplification): Guard with
31373 vectorized_internal_fn_supported_p test and #if GIMPLE.
31374
31375 PR tree-optimization/89566
31376 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31377 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31378 Punt if get_user_idx_format succeeds, but idx_format argument is
31379 not provided or doesn't have pointer type, or if idx_args is above
31380 number of provided arguments.
31381
31382 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31383
31384 PR tree-optimization/89437
31385 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31386
31387 2019-03-04 Richard Biener <rguenther@suse.de>
31388
31389 PR middle-end/89572
31390 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31391 safe_dyn_cast.
31392
31393 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31394
31395 PR tree-optimization/89487
31396 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31397 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31398 (distribute_loop): Don't do runtime alias check if there is non-
31399 addressable data reference.
31400 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31401 is a register variable.
31402
31403 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31404
31405 PR target/89506
31406 * config/arm/arm.md (cmpsi2_addneg): Use
31407 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31408 If operands[2] is 0 or INT_MIN, force use of subs.
31409 (*compare_scc splitter): Use gen_int_mode.
31410 (*negscc): Likewise.
31411 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31412
31413 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31414 Monk Chiang <sh.chiang04@gmail.com>
31415
31416 * common/config/riscv/riscv-common.c: Include sstream.
31417 (riscv_subset_list::to_string): New.
31418 (riscv_arch_str): Likewise.
31419 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31420 * config.in: Regen.
31421 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31422 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31423 (riscv_emit_attribute): New.
31424 (riscv_file_start): Emit attribute if needed.
31425 (riscv_option_override): Init riscv_emit_attribute_p.
31426 * config/riscv/riscv.opt (mriscv-attribute): New option.
31427 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31428 * configure: Regen.
31429 * doc/install.texi: Document --with-riscv-attribute.
31430 * doc/invoke.texi: Document -mriscv-attribute.
31431
31432 * common/config/riscv/riscv-common.c:
31433 Include config/riscv/riscv-protos.h.
31434 (INCLUDE_STRING): Defined.
31435 (RISCV_DONT_CARE_VERSION): Defined.
31436 (riscv_subset_t): Declare.
31437 (riscv_subset_t::riscv_subset_t): New.
31438 (riscv_subset_list): Declare.
31439 (riscv_subset_list::riscv_subset_list): New.
31440 (riscv_subset_list::~riscv_subset_list): Likewise.
31441 (riscv_subset_list::parsing_subset_version): Likewise.
31442 (riscv_subset_list::parse_std_ext): Likewise.
31443 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31444 (riscv_subset_list::add): Likewise.
31445 (riscv_subset_list::lookup): Likewise.
31446 (riscv_subset_list::xlen): Likewise.
31447 (riscv_subset_list::parse): Likewise.
31448 (riscv_supported_std_ext): Likewise.
31449 (current_subset_list): Likewise.
31450 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31451 parse.
31452
31453 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31454
31455 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31456 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31457 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31458
31459 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31460
31461 PR rtl-optimization/85899
31462 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31463 fallthru edges leading to the exit block.
31464
31465 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31466
31467 PR target/89517
31468 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31469 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31470
31471 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31472
31473 PR tree-optimization/89535
31474 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31475 for each operand. Calculate the fallback choice for mask operands
31476 and pass it to vect_get_vec_def_for_operand.
31477
31478 2019-03-01 Richard Biener <rguenther@suse.de>
31479
31480 PR middle-end/89541
31481 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31482 get virtual operands.
31483 (get_expr_operands): Handle CONST_DECL like other decls.
31484
31485 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31486
31487 PR middle-end/89503
31488 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31489 on DECL_P and EXPR_P.
31490
31491 2019-03-01 Richard Biener <rguenther@suse.de>
31492
31493 PR middle-end/89497
31494 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31495 argument, defaulted to zero.
31496 * passes.c (execute_function_todo): Pass down SSA update flags
31497 to cleanup_tree_cfg.
31498 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31499 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31500 form if requested.
31501 (cleanup_tree_cfg): Get and pass down SSA update flags.
31502
31503 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31504
31505 PR bootstrap/89539
31506 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31507 early_lto_debug argument.
31508
31509 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31510
31511 PR tree-optimization/89536
31512 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31513 only whether bit #0 of the value is 0 instead of the entire value.
31514
31515 2019-02-28 Marek Polacek <polacek@redhat.com>
31516
31517 PR c++/87068 - missing diagnostic with fallthrough statement.
31518 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31519 at the end of a seq, save its location to walk_stmt_info.
31520 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31521 a switch.
31522
31523 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31524
31525 PR lto/88585
31526 * tree.c (find_atomic_core_type): Move ahead in file.
31527 (check_base_type): Correctly compare alignments of atomic types.
31528
31529 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31530
31531 PR target/89455
31532 * config/i386/i386.c (get_builtin_code_for_version): Identify
31533 Westmere from PCLMUL, instead of AES.
31534
31535 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31536
31537 PR target/89434
31538 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31539 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31540 -UINTVAL (...).
31541
31542 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31543
31544 PR target/88530
31545 * config/aarch64/aarch64-option-extensions.def: Document it.
31546 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31547 if empty hwcaps.
31548
31549 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31550
31551 PR c/89520
31552 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31553 builtins if they don't have a single scalar floating point argument.
31554 Formatting fixes.
31555
31556 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31557
31558 PR rtl-optimization/89490
31559 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31560 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31561 block section is not mergeable.
31562
31563 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31564
31565 PR target/70341
31566 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31567 old define_insn to ...
31568 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31569 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31570 Rename old define_insn to ...
31571 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31572 (thumb2_casesi_internal_pic): New define_expand. Rename old
31573 define_insn to ...
31574 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31575 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31576 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31577
31578 2019-02-27 Richard Biener <rguenther@suse.de>
31579
31580 PR debug/88878
31581 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31582
31583 2019-02-27 Richard Biener <rguenther@suse.de>
31584
31585 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31586 building.
31587
31588 2019-02-27 Richard Biener <rguenther@suse.de>
31589
31590 PR debug/88878
31591 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31592 parameter, prefix section name with .gnu.debuglto_ if true.
31593 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31594 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31595
31596 2019-02-27 Richard Biener <rguenther@suse.de>
31597
31598 PR debug/89514
31599 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31600 rather than on use_debug_types, doing what output_die does.
31601 (value_format): Likewise.
31602
31603 2019-02-27 Martin Jambor <mjambor@suse.cz>
31604 Martin Sebor <msebor@redhat.com>
31605
31606 * doc/invoke.texi (Warning Options): Reword description of
31607 -Wno-absolute-value.
31608
31609 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31610
31611 PR tree-optimization/89280
31612 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31613 builtin_setjmp_setup_bb): New functions.
31614 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31615 When visiting __builtin_setjmp_setup block, queue in special
31616 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31617 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31618 from visited after the loop if they don't have any visited successor
31619 blocks.
31620
31621 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31622
31623 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31624 New function.
31625 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31626
31627 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31628
31629 PR c++/89507
31630 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31631 with types other than sizetype/ssizetype.
31632
31633 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31634
31635 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31636 (enum sparc_processor_type): ...this.
31637 (enum sparc_code_model_type): New enumeration type.
31638 (enum sparc_memory_model_type): Tweak comments.
31639 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31640 (mtune): Likewise.
31641 (mcmodel): Use sparc_code_model enumeration and variable.
31642 (sparc_code_model): New enumeration.
31643 (mdebug): Add Undocumented marker.
31644 * config/sparc/sparc.h (enum cmodel): Delete.
31645 (sparc_cmodel): Likewise.
31646 (TARGET_CM_MEDLOW): Adjust to above renaming.
31647 (TARGET_CM_MEDMID): Likewise.
31648 (TARGET_CM_MEDANY): Likewise.
31649 (TARGET_CM_EMBMEDANY): Likewise.
31650 * config/sparc/sparc.c (sparc_cmodel): Delete.
31651 (sparc_option_override): Remove string/value mapping support for the
31652 code model. Move code and memory model support to after the handling
31653 of target flags. Do private machine setup last.
31654 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31655 (sparc_legitimize_reload_address): Likewise.
31656 (sparc_output_mi_thunk): Likewise.
31657 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31658
31659 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31660
31661 PR tree-optimization/89500
31662 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31663 (handle_builtin_strlen): Remove noncst_bound variable. Always
31664 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31665 cst if the first cst bytes starting at x are known to be non-zero,
31666 even if the string is not zero terminated. Don't try to modify
31667 *si for strnlen. Update strlen_to_stridx only for strlen or if
31668 we can prove strnlen returns the same value as strlen would.
31669
31670 2019-02-26 Martin Liska <mliska@suse.cz>
31671
31672 * alloc-pool.h (struct pool_usage): Remove extra
31673 print_dash_line.
31674 * bitmap.h (struct bitmap_usage): Likewise.
31675 * ggc-common.c (struct ggc_usage): Likewise.
31676 * mem-stats.h (struct mem_usage): Likewise.
31677 (mem_alloc_description::dump): Print dash lines
31678 here and repeat header at the end of a table report.
31679 It's then more readable.
31680 * tree-phinodes.c (phinodes_print_statistics): Make
31681 horizontal alignment.
31682 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31683 * vec.c (struct vec_usage): Remove extra print_dash_line.
31684 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31685
31686 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31687
31688 * doc/extend.texi (__builtin_object_size):
31689 Use @pxref instead of @xref inside parenthesis.
31690 (__builtin_has_attribute): Add missing comma after @xref.
31691 (__builtin_object_size): Ditto.
31692 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31693
31694 2019-02-26 Jeff Law <law@redhat.com>
31695
31696 PR rtl-optimization/87761
31697 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31698 detect obviously dead insns and delete them.
31699
31700 2019-02-26 Richard Biener <rguenther@suse.de>
31701
31702 PR tree-optimization/89505
31703 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31704 to handle restrict pointed-to vars with multiple subvars
31705 correctly.
31706
31707 2019-02-26 Richard Biener <rguenther@suse.de>
31708
31709 PR tree-optimization/89489
31710 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31711
31712 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31713
31714 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31715 and move around comment.
31716 <BIT_AND_EXPR>: Likewise.
31717 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31718
31719 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31720
31721 PR target/89474
31722 * config/i386/i386.c (remove_partial_avx_dependency): Call
31723 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31724 after changing possibly many instructions to use that pseudo. Fix up
31725 insertion of v4sf_const0 setter at the start of bb.
31726
31727 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31728
31729 PR c/80409
31730 * doc/extend.texi (Variadic Pointer Args): New section.
31731
31732 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31733 Martin Sebor <msebor@gmail.com>
31734
31735 * common.opt (Wattribute-alias): Likewise.
31736 * doc/invoke.texi (Option Summary): List general form of
31737 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31738 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31739 Add cross-references.
31740 (-Wattribute-alias): Rewrite and correct default. Mention
31741 considered attributes (same as for -Wmissing-attributes).
31742
31743 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31744
31745 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31746 (_mm_cvtpd_ps): Likewise.
31747 (_mm_cvttpd_epi32): Likewise.
31748
31749 PR target/89338
31750 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31751 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31752
31753 PR target/89339
31754 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31755
31756 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31757
31758 PR target/88530
31759 * common/config/aarch64/aarch64-common.c
31760 (struct aarch64_option_extension): Add is_synthetic.
31761 (all_extensions): Use it.
31762 (TARGET_OPTION_INIT_STRUCT): Define hook.
31763 (struct gcc_targetm_common): Moved to end.
31764 (all_extensions_by_on): New.
31765 (opt_ext_cmp, typedef opt_ext): New.
31766 (aarch64_option_init_struct): New.
31767 (aarch64_contains_opt): New.
31768 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31769 * config/aarch64/aarch64-option-extensions.def
31770 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31771 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31772 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31773 Set is_synthetic to false.
31774 (crypto): Set is_synthetic to true.
31775 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31776 SYNTHETIC.
31777
31778 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31779
31780 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31781 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31782 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31783 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31784 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31785 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31786 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31787 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31788 Rename ...
31789 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31790 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31791 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31792 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31793 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31794 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31795 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31796 vfmlsl_laneq_high_f16): ... To this.
31797 * config/arm/neon.md: Update comments.
31798
31799 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31800
31801 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31802 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31803 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31804 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31805 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31806 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31807 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31808 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31809 Rename ...
31810 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31811 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31812 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31813 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31814 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31815 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31816 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31817 vfmlslq_laneq_high_f16): ... To this.
31818
31819 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31820
31821 PR rtl-optimization/86096
31822 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31823 comparing mw_order values.
31824
31825 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31826
31827 PR target/89434
31828 * config/arm/arm.md (*subsi3_carryin_const): Use
31829 arm_neg_immediate_operand predicate instead of
31830 arm_not_immediate_operand, "L" constraint instead of "K" and
31831 print it using %n2 instead of %B2.
31832 (*subsi3_carryin_const0): New define_insn.
31833 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31834 instead of arm_not_operand and "I" constraint instead of "K" and
31835 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31836 another match_operand and in the condition check that it is negation
31837 of operands[2].
31838 (*subsi3_carryin_compare_const0): New define_ins.
31839 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31840 *subsi3_carryin_const.
31841 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31842 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31843
31844 PR target/89438
31845 * config/arm.vfp.md (*negdf2_vfp): Use
31846 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31847 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31848
31849 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31850
31851 PR rtl-optimization/89445
31852 * simplify-rtx.c (simplify_ternary_operation): Don't use
31853 simplify_merge_mask on operands that may trap.
31854 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31855 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31856 second operand is CONST_VECTOR, check if any element could be zero.
31857 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31858 their operands can trap.
31859
31860 2019-02-23 Martin Sebor <msebor@redhat.com>
31861
31862 * gimple-ssa-sprintf.c (target_strtol): Rename...
31863 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31864 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31865 check for range error.
31866
31867 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31868
31869 PR driver/69471
31870 * opts-common.c (prune_options): Also prune joined switches
31871 with Negative and RejectNegative.
31872 * config/i386/i386.opt (march=): Add Negative(march=).
31873 (mtune=): Add Negative(mtune=).
31874 * doc/options.texi: Document Negative used together with Joined
31875 and RejectNegative.
31876
31877 2019-02-22 Martin Sebor <msebor@redhat.com>
31878
31879 * doc/extend.texi (Other Builtins): Add
31880 __builtin_is_constant_evaluated.
31881
31882 2019-02-22 Richard Biener <rguenther@suse.de>
31883
31884 PR tree-optimization/87609
31885 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31886
31887 2019-02-22 Jeff Law <law@redhat.com>
31888
31889 PR rtl-optimization/87761
31890 * config/mips/mips.md: Add new combiner pattern to recognize
31891 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31892
31893 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31894
31895 PR target/89324
31896 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31897 destination register in peepholes generating patterns for ADDS/SUBS.
31898 (add<mode>3_compare0,
31899 *addsi3_compare0_uxtw, add<mode>3_compareC,
31900 add<mode>3_compareV_imm, add<mode>3_compareV,
31901 *adds_<optab><ALLX:mode>_<GPI:mode>,
31902 *subs_<optab><ALLX:mode>_<GPI:mode>,
31903 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31904 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31905 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31906 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31907 sub<mode>3_compare1): Allow stack pointer for source register.
31908 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31909
31910 2019-02-22 Martin Sebor <msebor@redhat.com>
31911
31912 PR tree-optimization/88993
31913 PR tree-optimization/88853
31914 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31915 New helper.
31916 (sprintf_dom_walker::call_info::is_string_func): New helper.
31917 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31918 for formatted string functions.
31919 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31920
31921 2019-02-22 Martin Sebor <msebor@redhat.com>
31922
31923 PR c/89425
31924 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31925 unreachable subexpressions.
31926
31927 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31928 Hongtao Liu <hongtao.liu@intel.com>
31929 Sunil K Pandey <sunil.k.pandey@intel.com>
31930
31931 PR target/87007
31932 * config/i386/i386-passes.def: Add
31933 pass_remove_partial_avx_dependency.
31934 * config/i386/i386-protos.h
31935 (make_pass_remove_partial_avx_dependency): New.
31936 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31937 New function.
31938 (pass_data_remove_partial_avx_dependency): New.
31939 (pass_remove_partial_avx_dependency): Likewise.
31940 (make_pass_remove_partial_avx_dependency): Likewise.
31941 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31942 (*extendsfdf2): Add avx_partial_xmm_update.
31943 (truncdfsf2): Likewise.
31944 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31945 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31946
31947 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31948
31949 PR middle-end/85598
31950 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31951 analysis for pass.
31952
31953 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31954
31955 PR target/89444
31956 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31957 (PTA_SKYLAKE): Add PTA_AES.
31958 (PTA_GOLDMONT): Likewise.
31959
31960 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31961
31962 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31963 instruction if enabled.
31964 (aarch64_override_options): Remove reference to return address key.
31965
31966 2019-02-22 Richard Biener <rguenther@suse.de>
31967
31968 PR tree-optimization/89440
31969 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31970 not necessary assert.
31971
31972 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31973
31974 PR fortran/72741
31975 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31976 (oacc_replace_fn_attrib_attr): ... this new function.
31977 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31978 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31979
31980 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31981
31982 * config/arm/arm-cpus.in (ares): Rename to...
31983 (neoverse-n1): ... This. Add ares as alias.
31984 * config/arm/arm-tables.opt: Regenerate.
31985 * config/arm/arm-tune.md: Likewise.
31986 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31987
31988 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31989
31990 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31991 * config/aarch64/aarch64-tune.md: Regenerate.
31992 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31993
31994 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31995
31996 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31997 (neoversen1_tunings): ... This.
31998 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31999 (neoverse-n1): New CPU.
32000 * config/aarch64/aarch64-tune.md: Regenerate.
32001 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32002
32003 2019-02-22 Richard Biener <rguenther@suse.de>
32004
32005 PR middle-end/87609
32006 * cfghooks.h (dependence_hash): New typedef.
32007 (struct copy_bb_data): New type.
32008 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32009 (duplicate_block): Likewise.
32010 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32011 (copy_bbs): Create and pass down copy_bb_data.
32012 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32013 (rtl_duplicate_bb): Likewise.
32014 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32015 remap dependence info.
32016
32017 2019-02-22 Richard Biener <rguenther@suse.de>
32018
32019 PR tree-optimization/87609
32020 * tree-core.h (tree_base): Document special clique values.
32021 * tree-inline.c (remap_dependence_clique): Do not use the
32022 special clique value of one.
32023 (maybe_set_dependence_info): Use clique one.
32024 (clear_dependence_clique): New callback.
32025 (compute_dependence_clique): Clear clique one from all refs
32026 before assigning it (again).
32027
32028 2019-02-21 Martin Sebor <msebor@redhat.com>
32029
32030 * doc/extend.texi (__clear_cache): Correct signature.
32031
32032 2019-02-21 Ian Lance Taylor <iant@golang.org>
32033
32034 PR go/89170
32035 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32036 than output_constant_def.
32037 (add_constant_to_table): New static function.
32038 (output_constant_def): Call add_constant_to_table.
32039 (tree_output_constant_def): Likewise.
32040
32041 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32042
32043 PR c++/89285
32044 * builtins.c (fold_builtin_arith_overflow): If first two args are
32045 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32046 to ifn.
32047
32048 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32049
32050 PR target/87412
32051 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32052 error for -mindirect-branch/-mfunction-return with incompatible
32053 -fcf-protection.
32054
32055 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32056
32057 PR bootstrap/88714
32058 * constraints.md (q): Remove.
32059 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32060 instead of q.
32061
32062 2019-02-21 Martin Jambor <mjambor@suse.cz>
32063
32064 PR hsa/89302
32065 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32066 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32067 (omp_adjust_for_condition): ...here. Added necessary parameters.
32068 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32069 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32070 proper values to new parameters of omp_adjust_for_condition.
32071
32072 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32073
32074 PR middle-end/89412
32075 * expr.c (expand_assignment): If result is a MEM, use change_address
32076 instead of simplify_gen_subreg.
32077
32078 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32079 David Malcolm <dmalcolm@redhat.com>
32080
32081 PR middle-end/89091
32082 * fold-const.c (decode_field_reference): Return NULL_TREE if
32083 lang_hooks.types.type_for_size returns NULL. Check it before
32084 overwriting *exp_. Use return NULL_TREE instead of return 0.
32085
32086 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32087
32088 PR middle-end/88074
32089 PR middle-end/89415
32090 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32091 buggy mpc_norm.
32092
32093 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32094
32095 PR target/89397
32096 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32097 TARGET_SSE in addition to TARGET_SSE_MATH.
32098
32099 (ix86_excess_precision): Ditto.
32100 (ix86_float_exceptions_rounding_supported_p): Ditto.
32101 (use_rsqrt_p): Ditto.
32102 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32103
32104 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32105
32106 PR c/89410
32107 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32108 linenum_arith_t when determining if two adjacent line spans are
32109 close enough to merge.
32110 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32111 lines within each line_span.
32112
32113 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32114
32115 PR target/86487
32116 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32117 paradoxical SUBREGS.
32118
32119 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32120
32121 PR target/88100
32122 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32123 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32124 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32125 range checking it.
32126
32127 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32128
32129 * config/gcn/gcn.c (print_operand): Fix typo.
32130
32131 2019-02-19 Richard Biener <rguenther@suse.de>
32132
32133 PR middle-end/88074
32134 * toplev.c (do_compile): Initialize mpfr's exponent range
32135 based on available float modes.
32136
32137 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32138
32139 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32140 as long as the epilogue isn't completed.
32141
32142 2019-02-18 Martin Sebor <msebor@redhat.com>
32143
32144 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32145 __has_cpp_attribute, and __has_include.
32146
32147 2019-02-18 Martin Sebor <msebor@redhat.com>
32148
32149 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32150
32151 2019-02-18 Martin Sebor <msebor@redhat.com>
32152
32153 PR middle-end/89294
32154 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32155 expression.
32156 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32157
32158 2019-02-18 Richard Biener <rguenther@suse.de>
32159
32160 PR tree-optimization/89296
32161 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32162 of no-warning flag to cases that might emit the bogus warning.
32163
32164 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32165
32166 PR bootstrap/88714
32167 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32168 "q" constraint.
32169 * config/arm/vfp.md (*movdi_vfp): Likewise.
32170 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32171 "q" constraint for operands[0].
32172
32173 PR target/89369
32174 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32175 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32176 pattern in a temporary buffer.
32177 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32178 than 64-operands[2].
32179
32180 PR target/89361
32181 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32182 s390_indirect_branch_settings): Define unconditionally.
32183 (s390_set_current_function): Likewise, but guard the whole body except
32184 the s390_indirect_branch_settings call with
32185 #if S390_USE_TARGET_ATTRIBUTE.
32186 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32187
32188 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32189 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32190 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32191 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32192 HOST_WIDE_INT_1U instead of 1ULL.
32193 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32194 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32195 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32196 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32197 instead of 1UL.
32198 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32199 instead of 1ul.
32200
32201 2019-02-18 Martin Jambor <mjambor@suse.cz>
32202
32203 PR tree-optimization/89209
32204 * tree-sra.c (create_access_replacement): New optional parameter
32205 reg_tree. Use it as a type if non-NULL and access type is not of
32206 a register type.
32207 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32208 to create_access_replacement.
32209 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32210 Check lacc is non-NULL before attempting to re-create it on the RHS.
32211
32212 2019-02-18 Martin Liska <mliska@suse.cz>
32213
32214 PR ipa/89306
32215 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32216 by default.
32217 (symbol_table::free_edge): Recycle m_summary_id.
32218 * cgraph.h (get_summary_id): New.
32219 (symbol_table::release_symbol): Set m_summary_id to -1
32220 by default.
32221 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32222 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32223 function_summary to fast_function_summary.
32224 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32225 * ipa-pure-const.c (class funct_state_summary_t):
32226 Switch from function_summary to fast_function_summary.
32227 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32228 (class ipa_ref_opt_summary_t): Switch from function_summary
32229 to fast_function_summary.
32230 * symbol-summary.h (class function_summary_base): New class
32231 that is created from base of former function_summary.
32232 (function_summary_base::unregister_hooks): New.
32233 (class function_summary): Inherit from function_summary_base.
32234 (class call_summary_base): New class
32235 that is created from base of former call_summary.
32236 (class call_summary): Inherit from call_summary_base.
32237 (struct is_same): New.
32238 (class fast_function_summary): New summary class.
32239 (class fast_call_summary): New summary class.
32240 * vec.h (vec_safe_grow_cleared): New function.
32241
32242 2019-02-18 Martin Liska <mliska@suse.cz>
32243
32244 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32245 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32246 * doc/tm.texi: Document new target hook.
32247 * doc/tm.texi.in: Likewise.
32248 * target.def: Add new target macro.
32249 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32250 suffixes.
32251
32252 2019-02-17 Alan Modra <amodra@gmail.com>
32253
32254 PR target/89271
32255 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32256 output reg on add insn.
32257 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32258
32259 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32260
32261 PR target/89372
32262 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32263 (PMULHRSW): Likewise.
32264 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32265 TARGET_AVX2.
32266 (ssse3_pmulhrswv4hi3): New expander.
32267
32268 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32269
32270 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32271 MMX. Add isa attribute.
32272
32273 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32274
32275 PR rtl-optimization/66152
32276 * builtins.h (c_readstr): Declare.
32277 * builtins.c (c_readstr): Remove forward declaration. Add
32278 null_terminated_p argument, if false, read all bytes from the
32279 string instead of stopping after '\0'.
32280 * expr.c (string_cst_read_str): New function.
32281 (store_expr): Use string_cst_read_str instead of
32282 builtin_strncpy_read_str. Try to store by pieces the whole
32283 exp_len first, and only if that fails, split it up into
32284 store by pieces followed by clear_storage. Formatting fix.
32285
32286 * config/i386/i386.md (*movqi_internal): Remove static from
32287 buf variable. Use output_asm_insn (buf, operands); return "";
32288 instead of return buf;.
32289 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32290 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32291 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32292
32293 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32294
32295 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32296 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32297 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32298 (CC1_SPEC): Likewise.
32299 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32300
32301 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32302
32303 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32304 the base address on 64-bit strict-alignment platforms.
32305
32306 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32307
32308 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32309
32310 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32311
32312 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32313
32314 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32315
32316 PR rtl-optimization/88308
32317 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32318 on copied instruction.
32319
32320 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32321
32322 * final.c (insn_current_reference_address): Replace test on JUMP_P
32323 with test on jump_to_label_p.
32324 * config/visium/visium-passes.def: New file.
32325 * config/visium/t-visium (PASSES_EXTRA): Define.
32326 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32327 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32328 (TRAMPOLINE_ALIGNMENT): Define.
32329 * config/visium/visium.c (visium_option_override): Do not register
32330 the machine-specific reorg pass here.
32331 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32332 for the GR6.
32333 (output_branch): Adjust threshold for long branch instruction.
32334 * config/visium/visium.md (cpu): Move around.
32335 (length): Adjust for the GR6.
32336
32337 2019-02-15 Richard Biener <rguenther@suse.de>
32338 Jakub Jelinek <jakub@redhat.com>
32339
32340 PR tree-optimization/89278
32341 * tree-loop-distribution.c: Include tree-eh.h.
32342 (generate_memset_builtin, generate_memcpy_builtin): Call
32343 rewrite_to_non_trapping_overflow on builtin->size before passing it
32344 to force_gimple_operand_gsi.
32345
32346 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32347
32348 PR other/89342
32349 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32350 optimize_debug.
32351 * opth-gen.awk: Likewise.
32352
32353 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32354
32355 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32356 Enable MMX, SSE and SSE2 by default.
32357 * config/i386/i386.c (ix86_option_override_internal): Do not
32358 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32359
32360 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32361
32362 PR rtl-optimization/89354
32363 * combine.c (make_extraction): Punt if extraction_mode is narrower
32364 than len bits.
32365
32366 2019-02-14 Maya Rashish <coypu@sdf.org>
32367
32368 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32369 * config/netbsd-d.c: New file.
32370 * config/t-netbsd: Add netbsd-d.o
32371
32372 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32373
32374 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32375 affects_type_identity to true for aarch64_vector_pcs.
32376 (aarch64_comp_type_attributes): New function.
32377 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32378
32379 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32380
32381 PR target/88850
32382 * config/arm/iterators.md (ANY64): Add V4HF.
32383
32384 2019-02-14 Martin Liska <mliska@suse.cz>
32385
32386 PR rtl-optimization/89242
32387 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32388 process a transformation.
32389
32390 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32391
32392 PR tree-optimization/89314
32393 * fold-const.c (fold_binary_loc): Cast strlen argument to
32394 const char * before dereferencing it. Formatting fixes.
32395
32396 PR middle-end/89284
32397 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32398
32399 2019-02-13 Ian Lance Taylor <iant@golang.org>
32400
32401 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32402 and set current index for other optimizations.
32403
32404 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32405
32406 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32407 nonimmediate_operand as operand 2 predicate.
32408 (vec_set<VF2_512_256:mode>_0): Ditto.
32409 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32410 (*vec_concatv2si): Remove alternative 2.
32411 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32412 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32413 (vec_concatv2di): Split alternatives 4,5,6 to ...
32414 (*vec_concatv2di_0) ... new pattern.
32415
32416 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32417
32418 PR target/89190
32419 * config/arm/arm.c (ldm_stm_operation_p) Set
32420 addr_reg_in_reglist correctly for first register.
32421 (load_multiple_sequence): Remove dead base check.
32422 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32423
32424 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32425
32426 PR target/88847
32427 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32428 Expose as @aarch64_pred_mov.
32429 * config/aarch64/aarch64.c (aarch64_classify_address):
32430 Use expand_insn which legitimizes operands.
32431
32432 2019-02-13 Martin Liska <mliska@suse.cz>
32433
32434 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32435 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32436 and pointer_offset fields.
32437 (initialize_argument_information): Remove usage of dead
32438 fields.
32439 * cgraph.h (struct cgraph_thunk_info): Remove
32440 add_pointer_bounds_args.
32441 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32442 fields.
32443 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32444 fields.
32445 * config/i386/i386.c (ix86_function_arg_advance): Remove
32446 unrelated comment.
32447 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32448 (def_builtin): Remove usage of dead fields.
32449 (ix86_add_new_builtins): Likewise.
32450 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32451 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32452 (sem_function::init): Likewise.
32453 (sem_variable::merge): Likewise.
32454 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32455 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32456 * lto-cgraph.c (lto_output_node): Likewise.
32457 (lto_output_varpool_node): Likewise.
32458 (input_node): Likewise.
32459 (input_varpool_node): Likewise.
32460 * lto-streamer-out.c (lto_output): Likewise.
32461 * tree-inline.c (expand_call_inline): Remove usage of
32462 assign_stmts.
32463 * tree-inline.h (struct copy_body_data): Likewise.
32464 * varpool.c (varpool_node::dump): Likewise.
32465
32466 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32467
32468 PR middle-end/89303
32469 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32470 into pt->vars_contains_escaped_heap instead of setting
32471 pt->vars_contains_escaped_heap to it.
32472
32473 PR middle-end/89281
32474 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32475 INTVAL (size), compare it to GET_MODE_MASK instead of
32476 1 << GET_MODE_BITSIZE.
32477
32478 PR target/89290
32479 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32480 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32481 -mcmodel=large.
32482
32483 2019-02-13 Martin Liska <mliska@suse.cz>
32484
32485 PR lto/88858
32486 * cfgrtl.c (remove_barriers_from_footer): New function.
32487 (try_redirect_by_replacing_jump): Use it.
32488 (cfg_layout_redirect_edge_and_branch): Likewise.
32489
32490 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32491
32492 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32493 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32494 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32495 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32496 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32497 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32498 New BU_CRYPTO_2.
32499 * config/rs6000/rs6000.c (builtin_function_type)
32500 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32501 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32502 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32503 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32504 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32505
32506 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32507
32508 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32509 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32510
32511 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32512
32513 PR target/89229
32514 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32515 268678 and revision 268657.
32516 (*movti_internal): Likewise.
32517
32518 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32519
32520 PR target/89233
32521 * config/s390/s390.c (s390_decompose_address): Update comment.
32522 (s390_check_qrst_address): Reject invalid address forms after
32523 LRA.
32524
32525 2019-02-12 Martin Liska <mliska@suse.cz>
32526
32527 PR lto/88876
32528 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32529 we need default values of funct_state for a function that
32530 is not optimized.
32531
32532 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32533
32534 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32535 the object to pick the size of stores on strict-alignment platforms.
32536
32537 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32538 (*movdi_insn_sp32): Likewise.
32539 (*movdi_insn_sp64): Likewise.
32540
32541 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32542
32543 PR lto/88677
32544 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32545 types that needs constructiong.
32546 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32547
32548 2019-02-12 Richard Biener <rguenther@suse.de>
32549
32550 PR tree-optimization/89253
32551 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32552 duplicate the loop.
32553
32554 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32555
32556 PR lto/88147
32557 * input.c (selftest::test_line_offset_overflow): New selftest.
32558 (selftest::input_c_tests): Call it.
32559
32560 2019-02-11 Martin Sebor <msebor@redhat.com>
32561
32562 PR tree-optimization/88771
32563 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32564 when -Wstringop-overflow is set.
32565 (builtin_memref::builtin_memref): Adjust excessive upper bound
32566 only when lower bound is not excessive.
32567 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32568 -Wstringop-ovefflow.
32569 (maybe_diag_offset_bounds): Rename...
32570 (maybe_diag_access_bounds): ...to this.
32571 (check_bounds_or_overlap): Adjust for name change above.
32572
32573 2019-02-11 Martin Sebor <msebor@redhat.com>
32574
32575 PR c++/87996
32576 * builtins.c (max_object_size): Move from here...
32577 * builtins.h (max_object_size): ...and here...
32578 * tree.c (max_object_size): ...to here...
32579 * tree.h (max_object_size): ...and here.
32580
32581 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32582
32583 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32584 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32585 for correct semantics.
32586
32587 2019-02-11 Alan Modra <amodra@gmail.com>
32588
32589 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32590 -mlongcall and -mpltseq.
32591 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32592 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32593 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32594 * config/rs6000/sysv4.opt (mpltseq): New option.
32595 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32596 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32597 support is lacking. Don't allow -mpltseq with -mbss-plt.
32598 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32599 -mpltseq given for ELFv1.
32600 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32601 Only use UNSPEC_PLTSEQ for inline PLT calls.
32602 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32603 use UNSPEC_PLTSEQ for inline PLT calls.
32604 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32605 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32606 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32607 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32608 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32609 (pltseq_mtctr_<mode>): Likewise.
32610
32611 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32612
32613 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32614 Solaris ld.
32615 * configure: Regenerate.
32616
32617 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32618
32619 PR bootstrap/88714
32620 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32621 instead of r.
32622
32623 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32624
32625 * function.c (assign_parm_setup_block): Use the stored
32626 size, not the passed size, when allocating stack-space,
32627 also for a parameter with alignment larger than
32628 MAX_SUPPORTED_STACK_ALIGNMENT.
32629
32630 2019-02-11 Martin Liska <mliska@suse.cz>
32631
32632 PR ipa/89009
32633 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32634 * ipa-inline.c (inline_small_functions): Likewise.
32635 * ipa-pure-const.c (propagate_pure_const): Likewise.
32636 (propagate_nothrow): Likewise.
32637 * ipa-reference.c (propagate): Likewise.
32638 * ipa-utils.c (struct searchc_env): Remove unused field.
32639 (searchc): Always search across AVAIL_INTERPOSABLE.
32640 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32641 the only called IPA pure const can properly not propagate
32642 across interposable boundary.
32643 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32644
32645 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32646
32647 * config/nds32/nds32.md (call_internal, call_value_internal,
32648 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32649
32650 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32651
32652 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32653 typo.
32654
32655 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32656
32657 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32658 in comments
32659
32660 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32661
32662 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32663
32664 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32665
32666 PR tree-optimization/89268
32667 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32668 if preds is non-NULL.
32669
32670 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32671
32672 PR lto/89272
32673 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32674 polymorphic types.
32675
32676 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32677
32678 * config/nds32/nds32.md (trap): New pattern.
32679
32680 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32681
32682 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32683 dwarf span.
32684
32685 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32686
32687 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32688 to split POST_INC.
32689
32690 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32691
32692 * ipa-visibility.c (localize_node): Also do not localize
32693 LDPR_PREVAILING_DEF_IRONLY_EXP.
32694
32695 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32696
32697 PR lto/87957
32698 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32699 instead of type_with_linkage.
32700
32701 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32702
32703 PR ipa/88755
32704 * params.def (uninlined-function-insns, uninlined-function-time,
32705 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32706 bound so we don't get overflows.
32707
32708 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32709
32710 * config/rs6000/rs6000-string.c (expand_compare_loop,
32711 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32712 memcmp/strncmp.
32713
32714 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32715
32716 PR middle-end/89246
32717 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32718 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32719 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32720
32721 2019-02-09 Alan Modra <amodra@gmail.com>
32722
32723 PR target/88343
32724 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32725 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32726 setup.
32727
32728 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32729
32730 PR middle-end/88560
32731 * lra-constraints.c (process_alt_operands): Don't increase reject
32732 for memory when offset memory is required.
32733
32734 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32735
32736 * config/s390/vector.md: Implement vector copysign.
32737
32738 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32739
32740 * expr.c (expand_constructor): Correct indentations.
32741
32742 2019-02-08 Richard Biener <rguenther@suse.de>
32743
32744 PR tree-optimization/89247
32745 * tree-if-conv.c: Include tree-cfgcleanup.h.
32746 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32747 (tree_if_conversion): Pass through predicate vector.
32748 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32749 inline, see if any if-converted loops we refrece in
32750 LOOP_VECTORIZED calls vanished and fixup.
32751 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32752
32753 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32754
32755 * config/s390/constraints.md (jdd): New constraint.
32756
32757 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32758
32759 PR target/89229
32760 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32761 upper 16 vector registers without TARGET_AVX512VL.
32762 (*movti_internal): Likewise.
32763
32764 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32765
32766 PR rtl-optimization/89234
32767 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32768 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32769 (copy_reg_eh_region_note_backward): Likewise.
32770
32771 2019-02-08 Richard Biener <rguenther@suse.de>
32772
32773 PR middle-end/89223
32774 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32775 doesn't fit in HWI.
32776 (analyze_subscript_affine_affine): Handle failure from
32777 initialize_matrix_A.
32778
32779 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32780
32781 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32782 cfun everywhere.
32783
32784 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32785
32786 PR tree-optimization/86637
32787 PR tree-optimization/89235
32788 * tree-vect-loop.c (optimize_mask_stores): Add an
32789 auto_purge_vect_location sentinel to ensure that vect_location is
32790 purged on exit.
32791 * tree-vectorizer.c
32792 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32793 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32794 to ensure that vect_location is purged on exit.
32795 (pass_slp_vectorize::execute): Likewise, replacing the manual
32796 reset.
32797 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32798
32799 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32800
32801 * config/aarch64/iterators.md (max_opp): New code_attr.
32802 (USMAX): New code iterator.
32803 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32804 (aarch64_smax): Likewise.
32805 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32806 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32807 MINUS (MAX MIN).
32808
32809 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32810
32811 PR target/89229
32812 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32813 for TARGET_AVX512VL.
32814 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32815
32816 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32817
32818 * config/s390/s390-builtin-types.def: Add new types.
32819 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32820 (s390_vec_xlw4): Make the memory operand into a const pointer.
32821 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32822 float.
32823 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32824 a new vector type with the alignment of the scalar memory operand.
32825
32826 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32827 Jakub Jelinek <jakub@redhat.com>
32828
32829 PR bootstrap/88714
32830 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32831 arm_count_ldrdstrd_insns): New declarations.
32832 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32833 MINUS.
32834 (valid_operands_ldrd_strd): New function.
32835 (arm_count_ldrdstrd_insns): New function.
32836 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32837 sets instead of single DImode set and define new insns to match this.
32838
32839 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32840
32841 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32842 Make it a C initializer.
32843
32844 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32845
32846 PR/target 88850
32847 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32848
32849 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32850
32851 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32852 Use neon_dot<q> for type.
32853 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32854
32855 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32856
32857 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32858 Use neon_dot<q> for type.
32859 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32860 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32861
32862 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32863
32864 PR rtl-optimization/89225
32865 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32866 sizes check.
32867
32868 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32869
32870 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32871 after restoring registers saved to allocate the frame on Windows.
32872
32873 2019-02-06 Richard Biener <rguenther@suse.de>
32874
32875 PR tree-optimization/89182
32876 * graphite.h (cached_scalar_evolution_in_region): Declare.
32877 * graphite.c (struct seir_cache_key): New.
32878 (struct sese_scev_hash): Likewise.
32879 (seir_cache): New global.
32880 (cached_scalar_evolution_in_region): New function.
32881 (graphite_transform_loops): Allocate and release seir_cache.
32882 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32883 cached_scalar_evolution_in_region.
32884 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32885 Simplify.
32886 (scop_detection::graphite_can_represent_expr: Use
32887 cached_scalar_evolution_in_region.
32888 (scop_detection::stmt_simple_for_scop_p): Likewise.
32889 (find_params_in_bb): Likewise.
32890 (gather_bbs::before_dom_children): Likewise.
32891 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32892 (add_loop_constraints): Likewise.
32893
32894 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32895
32896 PR middle-end/89210
32897 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32898 operand to new_unary_operation only if both element types are integral
32899 and it isn't a widening conversion. Return NULL_TREE if
32900 new_unary_operation failed.
32901
32902 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32903
32904 PR target/88856
32905 * config/s390/s390.md: Remove load and test FP splitter.
32906
32907 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32908
32909 PR target/89112
32910 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32911 expand_compare_loop, expand_block_compare_gpr,
32912 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32913 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32914 #include "profile-count.h" and "predict.h" for types and functions
32915 needed to work with REG_BR_PROB notes.
32916
32917 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32918
32919 PR target/89112
32920 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32921 for the long branch case.
32922
32923 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32924
32925 PR target/89188
32926 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32927 can throw, non-call exceptions are enabled and we can't delete
32928 dead exceptions or alter cfg. Set must_clean if
32929 delete_insn_and_edges returns true, don't set it blindly for calls.
32930 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32931
32932 PR rtl-optimization/89195
32933 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32934 of the original MEM.
32935
32936 2019-02-05 Martin Liska <mliska@suse.cz>
32937
32938 PR gcov-profile/89000
32939 * gcov.c (function_summary): Remove argument.
32940 (file_summary): New function.
32941 (print_usage): Replace tabs with spaces.
32942 (generate_results): Use new function file_summary.
32943
32944 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32945
32946 PR target/89186
32947 * optabs.c (prepare_cmp_insn): Pass x and y to
32948 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32949
32950 2019-02-05 Richard Biener <rguenther@suse.de>
32951
32952 PR middle-end/89150
32953 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32954 (struct bitmap_element): Drop chain_prev so we properly recurse on
32955 the prev member, supporting tree views.
32956 (struct bitmap_head): GTY skip the obstack member.
32957
32958 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32959
32960 PR c/88698
32961 * doc/extend.texi (Vector Extensions): Add an example of using vector
32962 types together with x86 intrinsics.
32963
32964 2019-02-04 Alan Modra <amodra@gmail.com>
32965
32966 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32967 str[] size to 160, and comment.
32968
32969 2019-02-04 Alan Modra <amodra@gmail.com>
32970
32971 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32972 (rs6000_pltseq_template): Guard output of TLS markers with
32973 TARGET_TLS_MARKERS.
32974 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32975 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32976 to use inline PLT sequences.
32977 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32978 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32979 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32980
32981 2019-02-04 Martin Liska <mliska@suse.cz>
32982
32983 PR ipa/88985
32984 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32985 out when ipa_fn_summaries does not contain entry for callee.
32986
32987 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32988
32989 * config/sparc/sparc.h: Remove superfluous blank lines.
32990 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32991 (got_register_rtx): ...this.
32992 (sparc_got): Adjust to above renaming.
32993 (sparc_tls_got): Likewise.
32994 (sparc_delegitimize_address): Likewise.
32995 (sparc_output_mi_thunk): Likewise.
32996 (sparc_init_pic_reg): Likewise.
32997 (save_local_or_in_reg_p): Fix test on the GOT register.
32998 (USE_HIDDEN_LINKONCE): Move around.
32999 (get_pc_thunk_name): Likewise.
33000 (gen_load_pcrel_sym): Likewise.
33001 (load_got_register): Likewise.
33002
33003 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33004
33005 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33006 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33007
33008 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33009
33010 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33011 into consideration.
33012
33013 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33014
33015 * config.gcc (with_nds32_lib, glibc):
33016 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33017 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33018 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33019
33020 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33021
33022 PR target/89071
33023 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33024 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33025 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33026 (*rcpsf2_sse): Ditto.
33027 (*rsqrtsf2_sse): Ditto.
33028 (sse4_1_round<mode<2): Ditto.
33029
33030 2019-02-03 Richard Biener <rguenther@suse.de>
33031
33032 PR debug/87295
33033 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33034 orig.
33035
33036 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33037
33038 PR middle-end/87887
33039 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33040 Punt with warning on aggregate return or argument types. Ignore
33041 type/mode checking for uniform arguments.
33042
33043 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33044
33045 * combine.c (try_combine): Do not print "Can't combine" messages unless
33046 printing failed combination attempts.
33047
33048 2019-02-01 Martin Jambor <mjambor@suse.cz>
33049
33050 PR hsa/87863
33051 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33052 segment and global segment variables before making them static.
33053
33054 2019-02-01 Martin Jambor <mjambor@suse.cz>
33055
33056 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33057 missed optimization dump with dump_enabled_p.
33058
33059 2019-02-01 Richard Biener <rguenther@suse.de>
33060
33061 PR middle-end/88597
33062 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33063 the instantiate cache.
33064 (instantiate_scev_binary): Elide second operand procesing
33065 if equal to the first.
33066 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33067 (chrec_contains_undetermined): Likewise.
33068 (tree_contains_chrecs): Likewise.
33069
33070 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33071
33072 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33073
33074 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33075
33076 PR tree-optimization/89143
33077 * wide-int-range.h (wide_int_range_absu): Declare.
33078 * wide-int-range.cc (wide_int_range_absu): New function.
33079 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33080
33081 PR tree-optimization/88107
33082 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33083 instead of assertion that eh_region_outermost is non-NULL, if it
33084 is NULL, set *ALL to true and return NULL.
33085 (move_sese_region_to_fn): Adjust caller, if all is set, call
33086 duplicate_eh_regions with NULL region.
33087
33088 2019-02-01 Richard Biener <rguenth@suse.de>
33089
33090 PR rtl-optimization/88593
33091 * mode-switching.c (optimize_mode_switching): Free dominators before
33092 calling cleanup_cfg.
33093
33094 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33095
33096 PR tree-optimization/88932
33097 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33098
33099 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33100
33101 PR middle-end/89137
33102 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33103 bogus clang warning.
33104
33105 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33106
33107 PR target/89071
33108 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33109 alternative to avoid partial SSE register stall for TARGET_AVX.
33110 (truncdfsf2): Ditto.
33111 (sse4_1_round<mode>2): Ditto.
33112
33113 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33114
33115 PR tree-optimization/89008
33116 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33117 process anything of the form X * 0.
33118
33119 2019-01-31 Richard Biener <rguenther@suse.de>
33120
33121 PR tree-optimization/89135
33122 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33123 with abnormal preds.
33124
33125 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33126
33127 PR sanitizer/89124
33128 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33129 always_inline callees into no_sanitize_address callers.
33130
33131 2019-01-31 Richard Biener <rguenther@suse.de>
33132
33133 PR rtl-optimization/89115
33134 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33135
33136 2019-01-30 Martin Sebor <msebor@redhat.com>
33137
33138 PR other/89106
33139 * doc/extend.texi (cast to a union): Correct and expand.
33140
33141 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33142
33143 PR rtl-optimization/87246
33144 * lra-constraints.c (simplify_operand_subreg): Reload memory
33145 in subreg if the address became invalid.
33146
33147 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33148
33149 PR target/87064
33150 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33151 Disable for little-endian.
33152
33153 2019-01-30 Richard Biener <rguenther@suse.de>
33154
33155 PR rtl-optimization/89115
33156 * opts.c (default_options_optimization): Reduce
33157 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33158 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33159 to the default.
33160
33161 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33162
33163 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33164 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33165 type of vector element when vec_extract is implemented by direct
33166 move.
33167
33168 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33169
33170 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33171
33172 2019-01-30 Richard Biener <rguenther@suse.de>
33173
33174 PR tree-optimization/89111
33175 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33176 canonicalization to appropriately sized access types.
33177
33178 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33179
33180 PR c++/89105
33181 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33182 for arguments to functions that are TU-local and shouldn't be
33183 referenced by assembly.
33184
33185 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33186
33187 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33188 after '='.
33189
33190 2019-01-29 Martin Sebor <msebor@redhat.com>
33191
33192 PR c/88956
33193 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33194
33195 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33196
33197 PR c++/66676
33198 PR ipa/89104
33199 * omp-simd-clone.c (simd_clone_clauses_extract)
33200 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33201 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33202
33203 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33204
33205 * config.gcc: Force .init_array for ARC.
33206
33207 2019-01-29 Richard Biener <rguenther@suse.de>
33208
33209 PR debug/87295
33210 * dwarf2out.c (collect_skeleton_dies): New helper.
33211 (copy_decls_for_unworthy_types): Call it.
33212 (build_abbrev_table): Assert we do not try to replace
33213 DW_AT_signature refs with local refs.
33214
33215 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33216
33217 PR middle-end/89002
33218 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33219 for lastprivate/linear IV, push gimplify context around gimplify_assign
33220 and, if it needed any temporaries, pop it into a gimple bind around the
33221 sequence.
33222
33223 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33224
33225 * common.opt (-Wattribute-alias): Remove "no-" from name.
33226 Make -Wattribute-alias command line option and
33227 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33228
33229 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33230
33231 PR target/89073
33232 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33233 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33234 x86 ISA options.
33235 (bmi2): Add missing @opindex.
33236 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33237 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33238 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33239 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33240 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33241 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33242 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33243 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33244 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33245 xsavec, xsaveopt and xsaves options.
33246
33247 2019-01-28 Richard Biener <rguenther@suse.de>
33248
33249 PR debug/89076
33250 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33251 support removal.
33252
33253 2019-01-28 Richard Biener <rguenther@suse.de>
33254
33255 PR tree-optimization/88739
33256 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33257 BIT_FIELD_REFs only are applied to mode-precision operands
33258 when they are integral.
33259 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33260 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33261 BIT_FIELD_REFs of non-mode-precision integral operands.
33262
33263 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33264
33265 PR target/87214
33266 * config/i386/sse.md
33267 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33268 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33269 first constants in pairs are multiples of 2. Formatting fixes.
33270 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33271 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33272 first constants in each quadruple are multiples of 4. Formatting fixes.
33273
33274 2019-01-26 Martin Jambor <mjambor@suse.cz>
33275
33276 PR ipa/88933
33277 * tree-inline.c: Include tree-cfgcleanup.h.
33278 (delete_unreachable_blocks_update_callgraph): Move...
33279 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33280 ...here, make externally visible, make second argument bool, adjust
33281 all callers.
33282 * tree-cfgcleanup.c: Include cgraph.h.
33283 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33284 Declare.
33285 * ipa-prop.c: Include tree-cfgcleanup.h.
33286 (ipcp_transform_function): Call
33287 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33288
33289 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33290
33291 PR rtl-optimization/88846
33292 * ira.c (process_set_for_memref_referenced_p): New.
33293 (memref_referenced_p): Add new param. Use
33294 process_set_for_memref_referenced_p. Add new switch cases.
33295 (memref_used_between_p): Pass new arg to memref_referenced_p.
33296
33297 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33298
33299 PR target/88469
33300 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33301 argument ABI_BREAK. Set to true if the calculated alignment has
33302 changed in gcc-9. Check bit-fields for their base type alignment.
33303 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33304 (aarch64_function_arg_boundary): Likewise.
33305 (aarch64_gimplify_va_arg_expr): Likewise.
33306
33307 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33308
33309 PR middle-end/89037
33310 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33311 instead of accessing TREE_INT_CST_ELT directly.
33312
33313 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33314
33315 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33316 fenv_exceptions description.
33317
33318 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33319
33320 PR rtl-optimization/87763
33321 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33322 Allow SUBREG when matching CC_NZmode compare.
33323
33324 2019-01-25 Richard Biener <rguenther@suse.de>
33325
33326 PR tree-optimization/89049
33327 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33328 Look at the pattern stmt to determine if the stmt is vectorized.
33329
33330 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33331
33332 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33333 (pred_mov<mode>): Handle all-register forms using both a new
33334 alternative and a split.
33335
33336 2019-01-25 Richard Biener <rguenther@suse.de>
33337
33338 PR tree-optimization/86865
33339 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33340 Reject non-do-while loops.
33341
33342 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33343
33344 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33345 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33346 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33347 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33348 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33349 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33350 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33351 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33352 vlogical_operand, gpc_reg_operand, int_reg_operand,
33353 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33354 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33355 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33356 (save_world_operation, restore_world_operation, lmw_operation,
33357 stmw_operation): Use MEM_P and REG_P.
33358 (tie_operand): Use MEM_P.
33359 (vrsave_operation, crsave_operation): Use REG_P.
33360 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33361 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33362 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33363 (call_operand): Use HARD_REGISTER_P.
33364 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33365 Use CONST_INT_P.
33366 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33367 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33368 quad_aligned_load_p, replace_swapped_aligned_store,
33369 recombine_lvx_pattern, replace_swapped_aligned_load,
33370 recombine_stvx_pattern): Use MEM_P.
33371 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33372 Use MEM_P and SYMBOL_REF_P.
33373 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33374 (insn_is_swappable_p): Use REG_P and MEM_P.
33375 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33376 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33377 Use CONST_INT_P.
33378 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33379 Use CONST_DOUBLE_P.
33380 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33381 CONST_WIDE_INT_P.
33382 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33383 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33384 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33385 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33386 reg_or_subregno:
33387 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33388 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33389 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33390 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33391 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33392 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33393 rs6000_split_logical_di): Use CONST_INT_P.
33394 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33395 REG_P and SYMBOL_REF_P.
33396 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33397 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33398 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33399 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33400 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33401 (small_data_operand, print_operand_address): Use CONST_INT_P and
33402 SYMBOL_REF_P.
33403 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33404 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33405 Use HARD_REGISTER_NUM_P.
33406 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33407 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33408 SUBREG_P and SYMBOL_REF_P.
33409 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33410 and HARD_REGISTER_NUM_P.
33411 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33412 reg_or_subregno.
33413 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33414 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33415 MEM_P and REG_P.
33416 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33417 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33418 find_addr_reg): Use REG_P.
33419 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33420 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33421 (offsettable_ok_by_alignment, constant_pool_expr_p,
33422 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33423 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33424 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33425 rs6000_assemble_integer, create_TOC_reference,
33426 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33427 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33428 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33429 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33430 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33431 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33432 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33433 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33434 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33435 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33436 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33437 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33438 and cbranch<mode>4): Use CONST_INT_P.
33439 (multiple define_splits): Use REG_P and SUBREG_P.
33440 (define_expands call, call_value): Use MEM_P.
33441 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33442 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33443 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33444 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33445 and HARD_REGISTER_NUM_P.
33446 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33447
33448 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33449
33450 PR rtl-optimization/88948
33451 * rtl.h (prepare_copy_insn): New prototype.
33452 * gcse.c (prepare_copy_insn): New function, split out from
33453 process_insert_insn.
33454 (process_insert_insn): Use prepare_copy_insn.
33455 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33456 instead of gen_move_insn.
33457
33458 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33459
33460 PR debug/89006
33461 * config/i386/i386.c (ix86_pic_register_p): Return true for
33462 UNSPEC_SET_GOT too.
33463
33464 PR tree-optimization/88964
33465 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33466 punt if HONOR_SNANS (chrec).
33467
33468 PR middle-end/89015
33469 * tree-nested.c (convert_nonlocal_reference_stmt,
33470 convert_local_reference_stmt, convert_tramp_reference_stmt,
33471 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33472 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33473 or GIMPLE_OMP_TASK.
33474
33475 PR tree-optimization/89027
33476 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33477 for "omp simd array" variables.
33478
33479 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33480
33481 PR target/88469
33482 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33483 force the alignment of m_val.
33484
33485 2019-01-24 Richard Biener <rguenther@suse.de>
33486
33487 PR lto/87187
33488 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33489 When in "legacy" debug mode make sure to reset self-origins.
33490
33491 2019-01-24 Martin Liska <mliska@suse.cz>
33492
33493 PR gcov-profile/88994
33494 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33495 result will be always smaller or equal to the original.
33496 * gcov.c (mangle_name): Fix else branch where we should
33497 also copy to PTR and shift the pointer.
33498
33499 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33500
33501 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33502 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33503
33504 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33505
33506 * common/config/i386/i386-common.c
33507 (OPTION_MASK_ISA_ENQCMD_SET,
33508 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33509 (ix86_handle_option): Handle -menqcmd.
33510 * config.gcc (enqcmdintrin.h): New header file.
33511 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33512 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33513 -menqcmd.
33514 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33515 function type.
33516 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33517 __builtin_ia32_enqcmds): New builtins.
33518 * config/i386/i386-c.c (__ENQCMD__): New macro.
33519 * config/i386/i386-option.c (ix86_target_string): Add
33520 -menqcmd.
33521 (ix86_valid_target_attribute_inner_p): Likewise.
33522 * config/i386/i386-expand.c
33523 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33524 IX86_BUILTIN_ENQCMDS.
33525 * config/i386/i386.h (TARGET_ENQCMD): New.
33526 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33527 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33528 (movdir64b_<mode>): Parameterize to enable share expansion code
33529 with ENQCMD in function ix86_expand_builtin.
33530 * config/i386/i386.opt: Add -menqcmd.
33531 * config/i386/immintrin.h: Include enqcmdintrin.h.
33532 * config/i386/enqcmdintrin.h: New intrinsic file.
33533 * doc/invoke.texi: Add -menqcmd.
33534
33535 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33536 Steve Ellcey <sellcey@marvell.com>
33537
33538 PR target/85711
33539 * recog.c (address_operand): Return false on wrong mode for address.
33540 (constrain_operands): Check for mode with 'p' constraint.
33541
33542 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33543
33544 PR target/88998
33545 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33546 Disparage MMX alternative.
33547 (sse2_cvtpd2pi): Ditto.
33548 (sse2_cvttpd2pi): Ditto.
33549
33550 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33551
33552 PR driver/89014
33553 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33554 use-after-free of the result of
33555 aarch64_get_extension_string_for_isa_flags.
33556
33557 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33558
33559 PR c/44715
33560 * doc/extend.texi: Document break and continue behavior in
33561 statement expressions.
33562
33563 2019-01-23 Richard Biener <rguenther@suse.de>
33564
33565 PR tree-optimization/89008
33566 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33567 not leave another stray operand.
33568
33569 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33570
33571 * BASE-VER: Bump to 9.0.1.
33572
33573 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33574
33575 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33576 thunk that returns by reference, use the type of the return object
33577 of the thunk instead of that of the alias to build the dereference.
33578
33579 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33580
33581 * config/arc/atomic.md: Add operand to DMB instruction.
33582
33583 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33584
33585 PR tree-optimization/88964
33586 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33587 build_zero_cst instead of build_int_cst. Return false for loop
33588 invariants which honor signed zeros.
33589
33590 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33591
33592 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33593
33594 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33595
33596 PR target/88965
33597 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33598 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33599 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33600
33601 PR middle-end/88968
33602 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33603 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33604
33605 PR target/87064
33606 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33607 Disable for little endian.
33608
33609 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33610
33611 PR target/88469
33612 * config/arm/arm.c (arm_needs_double_word_align): Check
33613 DECL_BIT_FIELD_TYPE.
33614
33615 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33616 H.J. Lu <hongjiu.lu@intel.com>
33617
33618 PR target/88909
33619 * config/i386/i386-builtin.def: Add mask2 to all builtin
33620 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33621 SPECIAL_ARGS.
33622 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33623 (BDESC_FIRST): Likewise.
33624 (define_builtin): Add an argument for mask2. Updated to handle
33625 both ix86_isa_flags and ix86_isa_flags2.
33626 (define_builtin_const): Likewise.
33627 (define_builtin_pure): Likewise.
33628 (define_builtin2): Deleted.
33629 (define_builtin_const2): Likewise.
33630 (builtin_description): Add a member, mask2.
33631 (bdesc_*): Add mask2 to builtin initializations.
33632 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33633 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33634 support.
33635 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33636
33637 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33638
33639 PR target/88954
33640 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33641 noplt attribute.
33642
33643 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33644
33645 PR target/88469
33646 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33647 alignment is dominated by a bitfield with 64-bit aligned base type.
33648 (arm_function_arg): Emit a warning if the alignment has changed since
33649 earlier GCC releases.
33650 (arm_function_arg_boundary): Likewise.
33651 (arm_setup_incoming_varargs): Likewise.
33652
33653 2019-01-22 Richard Biener <rguenther@suse.de>
33654
33655 PR tree-optimization/88862
33656 * graphite-scop-detection.c
33657 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33658
33659 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33660
33661 * doc/extend.tex (AMD GCN Function Attributes): New section.
33662 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33663 * doc/invoke.texi (AMD GCN Options): New section.
33664 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33665
33666 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33667
33668 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33669 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33670
33671 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33672
33673 PR tree-optimization/88044
33674 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33675 is false in the first iteration, but !every_iteration, return false
33676 instead of true with niter->niter zero.
33677
33678 PR rtl-optimization/88904
33679 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33680 any nonequal registers before processing BB_END (b).
33681
33682 PR target/88905
33683 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33684 GET_MODE (op0).
33685 (expand_binop_directly, expand_doubleword_clz,
33686 expand_doubleword_popcount, expand_ctz, expand_ffs,
33687 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33688
33689 PR rtl-optimization/49429
33690 PR target/49454
33691 PR rtl-optimization/86334
33692 PR target/88906
33693 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33694 addressable from here...
33695 (emit_block_op_via_libcall): ... to here.
33696
33697 2019-01-22 Richard Biener <rguenther@suse.de>
33698
33699 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33700 auto_vec for cost vector to fix memleak.
33701 (vectorize_fold_left_reduction): Properly gather SLP defs.
33702 (vectorizable_comparison): Do not swap operands to properly
33703 gather SLP defs.
33704
33705 2019-01-22 Alan Modra <amodra@gmail.com>
33706
33707 PR target/88614
33708 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33709 stays a reg. Allow a const_int.
33710 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33711 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33712 (IS_NOMARK_TLSGETADDR): Define.
33713 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33714 (rs6000_output_tlsargs): New function.
33715 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33716 __tls_get_addr call takes an arg.
33717 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33718 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33719 delete split..
33720 (call_value_nonlocal_sysv): ..or here, delete split.
33721 (tls_gdld_nomark): Delete.
33722 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33723 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33724 (call_value_nonlocal_sysv): Likewise.
33725 (call_value_nonlocal_sysv_secure): Likewise.
33726 (call_value_nonlocal_aix): Likewise.
33727 (call_value_indirect_aix): Likewise.
33728 (call_value_indirect_elfv2): Likewise.
33729 (call_value_local32, call_value_local64): Disable for no-mark tls.
33730 (call_value_local_aix): Likewise.
33731
33732 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33733
33734 PR target/88938
33735 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33736 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33737
33738 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33739
33740 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33741 string contents as hash_map keys.
33742
33743 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33744
33745 PR c/88928
33746 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33747 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33748 instead of TYPE_ALIGN.
33749 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33750 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33751 pointer from TYPE_STUB_DECL.
33752
33753 2019-01-21 Richard Biener <rguenther@suse.de>
33754
33755 PR tree-optimization/88934
33756 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33757 at the possibly non-constant operand.
33758 (vect_get_constant_vectors): Adjust.
33759
33760 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33761
33762 PR target/71659
33763 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33764 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33765 instead of _X86INTRIN_H_INCLUDED.
33766 * onfig/i386/clwbintrin.h: Likewise.
33767 * config/i386/pkuintrin.h: Likewise.
33768 * config/i386/prfchwintrin.h: Likewise.
33769 * config/i386/rdseedintrin.h: Likewise.
33770 * config/i386/wbnoinvdintrin.h: Likewise.
33771 * config/i386/xsavecintrin.h: Likewise.
33772 * config/i386/xsavesintrin.h: Likewise.
33773 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33774 * config/i386/xsaveintrin.h: Likewise.
33775 * config/i386/xsaveoptintrin.h: Likewise.
33776 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33777 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33778 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33779 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33780 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33781 * config/i386/immintrin.h: Here.
33782
33783 2019-01-20 Martin Jambor <mjambor@suse.cz>
33784
33785 PR ipa/87615
33786 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33787 with aa_walk_budget.
33788 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33789 aa_walk_budget_p parameter.
33790 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33791 walk. Updated all callers.
33792 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33793 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33794 unmodified_parm.
33795 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33796 parameter info. Extract info from fbi. Pass fbi to recursive calls
33797 and to unmodified_parm.
33798 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33799 info, updated call to will_be_nonconstant_expr_predicate.
33800 (param_change_prob): New parameter fbi, limit AA walking.
33801 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33802 calls to various above functions.
33803 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33804 parameter. Use it to limit AA walking.
33805 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33806 fbi, limit AA walk.
33807 (detect_type_change): New parameter fbi, pass it on to
33808 detect_type_change_from_memory_writes.
33809 (detect_type_change_ssa): Likewise.
33810 (aa_overwalked): Removed.
33811 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33812 accordingly, adjust to the neew AA limiting scheme.
33813 (parm_ref_data_preserved_p): Likewise.
33814 (ipa_compute_jump_functions_for_edge): Adjust call to
33815 get_dynamic_type.
33816 (ipa_analyze_call_uses): Likewise.
33817 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33818 (ipa_analyze_node): Initialize aa_walk_budget.
33819 (ipcp_transform_function): Likewise.
33820 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33821 to get_dynamic_type.
33822
33823 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33824
33825 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33826 outside of #if CHECKING_P code.
33827
33828 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33829
33830 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33831 New function, split out from...
33832 (loop_versioning::analyze_stride): ...here.
33833 (loop_versioning::find_per_loop_multiplication): Use gassign.
33834 (loop_versioning::analyze_term_using_scevs): Return a success code.
33835 (loop_versioning::analyze_arbitrary_term): New function.
33836 (loop_versioning::analyze_address_fragment): Use
33837 analyze_arbitrary_term if all else fails.
33838
33839 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33840
33841 PR target/88892
33842 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33843 operands.
33844
33845 2019-01-18 Richard Biener <rguenther@suse.de>
33846
33847 PR tree-optimization/88903
33848 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33849 scalar stmts a SLP shift amount is composed of when detecting
33850 shifts by scalars.
33851
33852 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33853
33854 PR target/88799
33855 * config/arm/arm-cpus.in (mp): New feature.
33856 (sec): New feature.
33857 (fgroup ARMv7ve): Add mp and sec features.
33858 (arch armv7-a): Add options to allow mp and sec extensions.
33859 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33860 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33861 extenstions to the base architecture.
33862 (cpu cortex-a8): Add sec extension to the base architecture.
33863 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33864 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33865 variants down to the base v7-a varaint.
33866 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33867 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33868 of permitted extensions for -march=armv7-a and for
33869 -mcpu=generic-armv7-a.
33870
33871 2019-01-18 Martin Liska <mliska@suse.cz>
33872
33873 * params.def: Fix comment.
33874 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33875 name.
33876 (gimple_gen_ic_func_profiler): Likewise.
33877
33878 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33879
33880 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33881 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33882 and put in error checks for stack protector guard options.
33883 (aarch64_stack_protect_guard): New.
33884 (TARGET_STACK_PROTECT_GUARD): Define.
33885 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33886 (reg_stack_protect_address<mode>): New.
33887 (stack_protect_set): Adjust for SSP_GLOBAL.
33888 (stack_protect_test): Likewise.
33889 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33890 (-mstack-protector-guard): Likewise.
33891 (-mstack-protector-guard-offset): Likewise.
33892
33893 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33894
33895 PR tree-optimization/86214
33896 * tree-inline.h (struct copy_body_data): Add
33897 add_clobbers_to_eh_landing_pads member.
33898 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33899 (copy_edges_for_bb): Call it if EH edge destination is <
33900 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33901 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33902 if flag_stack_reuse != SR_NONE and clear it afterwards.
33903
33904 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33905
33906 PR target/85596
33907 * doc/install.texi (with-multilib-list): Document for aarch64.
33908
33909 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33910
33911 PR target/88734
33912 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33913 (("..."))) with ("...").
33914
33915 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33916
33917 * doc/extend.texi (Built-in Functions for Memory Model Aware
33918 Atomic Operations): Document atomic fetch and nand.
33919
33920 2019-01-18 Martin Liska <mliska@suse.cz>
33921 Richard Biener <rguenther@suse.de>
33922
33923 PR middle-end/88587
33924 * cgraph.h (create_version_clone_with_body): Add new argument
33925 with attributes.
33926 * cgraphclones.c (cgraph_node::create_version_clone): Add
33927 DECL_ATTRIBUTES to a newly created decl. And call
33928 valid_attribute_p so that proper cl_target_optimization_node
33929 is set for the newly created declaration.
33930 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33931 for declaration.
33932 (expand_target_clones): Do not call valid_attribute_p, it must
33933 be already done.
33934 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33935 vector types.
33936
33937 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33938
33939 PR target/88734
33940 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33941 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33942 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33943
33944 2019-01-17 Martin Sebor <msebor@redhat.com>
33945
33946 PR middle-end/88273
33947 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33948 Handle anti-ranges the same as no range at all.
33949
33950 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33951
33952 * config/aarch64/aarch64.c (cgraph.h): New include.
33953 (intl.h): New include.
33954 (supported_simd_type): New function.
33955 (currently_supported_simd_type): Ditto.
33956 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33957 (aarch64_simd_clone_adjust): Ditto.
33958 (aarch64_simd_clone_usable): Ditto.
33959 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33960 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33961 (TARGET_SIMD_CLONE_USABLE): Ditto.
33962 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33963 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33964 call.
33965
33966 2019-01-17 Martin Sebor <msebor@redhat.com>
33967
33968 PR tree-optimization/88800
33969 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33970 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33971 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33972 redundant argument. Add new argument and issue diagnostics under
33973 its control. Detect out-of-bounds access even with warnings
33974 disabled.
33975 (check_bounds_or_overlap): Change return type. Add argument.
33976 (wrestrict_dom_walker::check_call): Adjust.
33977 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33978 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33979 check_bounds_or_overlap's return value.
33980 (handle_builtin_stxncpy): Same.
33981 (handle_builtin_strcat): Same.
33982
33983 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33984 Kwok Cheung Yeung <kcy@codesourcery.com>
33985 Julian Brown <julian@codesourcery.com>
33986 Tom de Vries <tom@codesourcery.com>
33987
33988 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33989
33990 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33991
33992 * doc/sourcebuild.texi: Document dg-require-effective-target
33993 llvm_binutils and offload_gcn.
33994
33995 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33996 Kwok Cheung Yeung <kcy@codesourcery.com>
33997 Julian Brown <julian@codesourcery.com>
33998 Tom de Vries <tom@codesourcery.com>
33999
34000 * doc/sourcebuild.texi: Document dg-required-effective-target
34001 exceptions.
34002
34003 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34004 Kwok Cheung Yeung <kcy@codesourcery.com>
34005 Julian Brown <julian@codesourcery.com>
34006 Tom de Vries <tom@codesourcery.com>
34007 Jan Hubicka <hubicka@ucw.cz>
34008 Martin Jambor <mjambor@suse.cz>
34009
34010 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34011 * configure.ac: Check for dlopen.
34012 * configure: Regenerate.
34013
34014 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34015 Kwok Cheung Yeung <kcy@codesourcery.com>
34016 Julian Brown <julian@codesourcery.com>
34017 Tom de Vries <tom@codesourcery.com>
34018 Jan Hubicka <hubicka@ucw.cz>
34019 Martin Jambor <mjambor@suse.cz>
34020
34021 * common/config/gcn/gcn-common.c: New file.
34022 * config/gcn/driver-gcn.c: New file.
34023 * config/gcn/gcn-builtins.def: New file.
34024 * config/gcn/gcn-hsa.h: New file.
34025 * config/gcn/gcn-modes.def: New file.
34026 * config/gcn/gcn-opts.h: New file.
34027 * config/gcn/gcn-passes.def: New file.
34028 * config/gcn/gcn-protos.h: New file.
34029 * config/gcn/gcn-run.c: New file.
34030 * config/gcn/gcn-tree.c: New file.
34031 * config/gcn/gcn.c: New file.
34032 * config/gcn/gcn.h: New file.
34033 * config/gcn/gcn.opt: New file.
34034 * config/gcn/t-gcn-hsa: New file.
34035
34036 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34037 Kwok Cheung Yeung <kcy@codesourcery.com>
34038 Julian Brown <julian@codesourcery.com>
34039 Tom de Vries <tom@codesourcery.com>
34040 Jan Hubicka <hubicka@ucw.cz>
34041 Martin Jambor <mjambor@suse.cz>
34042
34043 * config/gcn/constraints.md: New file.
34044 * config/gcn/gcn-valu.md: New file.
34045 * config/gcn/gcn.md: New file.
34046 * config/gcn/predicates.md: New file.
34047
34048 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34049
34050 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34051 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34052 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34053 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34054
34055 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34056
34057 PR target/88851
34058 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34059 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34060 it and document registers.
34061
34062 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34063
34064 * config/aarch64/aarch64.c (ares_tunings): Define.
34065 * config/aarch64/aarch64-cores.def (ares): Use the above.
34066
34067 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34068
34069 PR target/88794
34070 Revert:
34071 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34072
34073 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34074 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34075 (_mm512_maskz_fixupimm_round_pd): Ditto.
34076 (_mm512_fixupimm_round_ps): Ditto.
34077 (_mm512_maskz_fixupimm_round_ps): Ditto.
34078 (_mm_fixupimm_round_sd): Ditto.
34079 (_mm_maskz_fixupimm_round_sd): Ditto.
34080 (_mm_fixupimm_round_ss): Ditto.
34081 (_mm_maskz_fixupimm_round_ss): Ditto.
34082 (_mm512_fixupimm_pd): Ditto.
34083 (_mm512_maskz_fixupimm_pd): Ditto.
34084 (_mm512_fixupimm_ps): Ditto.
34085 (_mm512_maskz_fixupimm_ps): Ditto.
34086 (_mm_fixupimm_sd): Ditto.
34087 (_mm_maskz_fixupimm_sd): Ditto.
34088 (_mm_fixupimm_ss): Ditto.
34089 (_mm_maskz_fixupimm_ss): Ditto.
34090 (_mm512_mask_fixupimm_round_pd): Update builtin.
34091 (_mm512_mask_fixupimm_round_ps): Ditto.
34092 (_mm_mask_fixupimm_round_sd): Ditto.
34093 (_mm_mask_fixupimm_round_ss): Ditto.
34094 (_mm512_mask_fixupimm_pd): Ditto.
34095 (_mm512_mask_fixupimm_ps): Ditto.
34096 (_mm_mask_fixupimm_sd): Ditto.
34097 (_mm_mask_fixupimm_ss): Ditto.
34098 * config/i386/avx512vlintrin.h:
34099 (_mm256_fixupimm_pd): Update parameters and builtin.
34100 (_mm256_maskz_fixupimm_pd): Ditto.
34101 (_mm256_fixupimm_ps): Ditto.
34102 (_mm256_maskz_fixupimm_ps): Ditto.
34103 (_mm_fixupimm_pd): Ditto.
34104 (_mm_maskz_fixupimm_pd): Ditto.
34105 (_mm_fixupimm_ps): Ditto.
34106 (_mm_maskz_fixupimm_ps): Ditto.
34107 (_mm256_mask_fixupimm_pd): Update builtin.
34108 (_mm256_mask_fixupimm_ps): Ditto.
34109 (_mm_mask_fixupimm_pd): Ditto.
34110 (_mm_mask_fixupimm_ps): Ditto.
34111 * config/i386/i386-builtin-types.def: Add new types and remove
34112 useless ones.
34113 * config/i386/i386-builtin.def: Update builtin definitions.
34114 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34115 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34116 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34117 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34118 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34119 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34120 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34121 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34122 * config/i386/subst.md:
34123 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34124 (round_saeonly_sd_mask_op4): Ditto.
34125 (round_saeonly_expand_operand5): Ditto.
34126 (round_saeonly_expand): Update.
34127
34128 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34129
34130 PR target/88794
34131 Revert:
34132 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34133
34134 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34135 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34136 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34137 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34138 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34139 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34140 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34141
34142 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34143
34144 PR target/88794
34145 Revert:
34146 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34147
34148 PR target/88489
34149 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34150 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34151 instead of UNSPEC_FIXUPIMM.
34152
34153 2019-01-17 Richard Biener <rguenther@suse.de>
34154
34155 PR lto/86736
34156 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34157 and friends for the LTO part of debug info.
34158
34159 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34160
34161 PR tree-optimization/86214
34162 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34163 if x == y.
34164
34165 PR rtl-optimization/88870
34166 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34167 throw if we can't alter the cfg or delete dead exceptions.
34168 (mark_insn): Don't call find_call_stack_args for such calls.
34169
34170 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34171
34172 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34173 prototypes for vec_st.
34174 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34175 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34176 mainly on signed/unsigned long long and double.
34177
34178 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34179
34180 PR target/88861
34181 * combine.c (delete_noop_moves): Convert to "bool" return,
34182 returning true if any edges are eliminated.
34183 (combine_instructions): Also return true if delete_noop_moves
34184 returns true.
34185
34186 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34187
34188 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34189 correct max nunits for endian swap.
34190 (aarch64_expand_fcmla_builtin): Correct subreg code.
34191 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34192 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34193 lane endianness.
34194
34195 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34196
34197 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34198 Handle split indirect COMPLEX_TYPE arguments.
34199
34200 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34201
34202 PR target/86891
34203 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34204 bit is set by add and compare.
34205 (CC_ADC): New CC_MODE.
34206 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34207 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34208 comparison. Add detection for CC_ADCmode.
34209 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34210 CC_ADCmode.
34211 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34212 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34213 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34214 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34215 to eliminate the need for zero-extending the operands.
34216 (add<mode>3_compareC_imm): Delete. Merge into ...
34217 (add<mode>3_compareC): ... this. Restructure the comparison to
34218 eliminate the need for zero-extending the operands.
34219 (add<mode>3_carryin): Use LTU for the overflow detection.
34220 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34221 Reexpress comparison for overflow.
34222 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34223 (add<mode>3_carryinC): Likewise.
34224 (add<mode>3_carryinV): Use LTU for carry between partials.
34225 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34226 handling of CC_Cmode and add CC_ADCmode.
34227 (aarch64_borrow_operation): Likewise.
34228
34229 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34230
34231 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34232 Remove patternmode.
34233 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34234 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34235 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34236 Remove endianness conversion.
34237
34238 2019-01-16 Martin Liska <mliska@suse.cz>
34239
34240 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34241 for GCC driver.
34242 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34243 a new argument.
34244 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34245 (path_prefix_reset): Move up in the source file.
34246 (find_fortran_preinclude_file): Make complex search for the
34247 fortran header files.
34248
34249 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34250
34251 * godump.c (go_output_typedef): When outputting a typedef, refer
34252 to the underlying type by its name and not its structure.
34253
34254 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34255
34256 PR c++/88795
34257 * tree.c (build_function_type): Assert that arg_types is not
34258 error_mark_node.
34259
34260 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34261
34262 PR inline-asm/52813
34263 * doc/extend.texi: Document that listing the stack pointer in the
34264 clobber list of an asm is a deprecated feature.
34265 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34266 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34267 warning instead of an error for clobbers of the stack pointer.
34268 Add a note explaining why.
34269
34270 2019-01-15 Richard Biener <rguenther@suse.de>
34271
34272 PR debug/88046
34273 * dwarf2out.c (gen_member_die): Do not generate inheritance
34274 DIEs late.
34275
34276 2019-01-15 Richard Biener <rguenther@suse.de>
34277
34278 PR tree-optimization/88855
34279 * tree-if-conv.c (combine_blocks): Collect
34280 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34281
34282 2019-01-15 Tom de Vries <tdevries@suse.de>
34283
34284 PR target/80547
34285 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34286 lhs == NULL_TREE for gang-level reduction.
34287
34288 2019-01-15 Richard Biener <rguenther@suse.de>
34289 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34290
34291 PR ipa/88788
34292 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34293 return true if SSA_NAME is already marked in visited bitmap.
34294 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34295
34296 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34297
34298 PR tree-optimization/88775
34299 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34300 equal == 0 equality pointer comparisons some more if compared in
34301 integral types and either one points to an automatic var and the
34302 other to a global, or we can prove at least one points to the middle
34303 or both point to start or both point to end.
34304
34305 2019-01-14 Andi Kleen <ak@linux.intel.com>
34306
34307 * Makefile.in: Lower autofdo sampling rate by 10x.
34308 * Makefile.tpl: Dito.
34309
34310 2019-01-14 Tom Honermann <tom@honermann.net>
34311
34312 * defaults.h: Define CHAR8_TYPE.
34313
34314 2019-01-14 Martin Sebor <msebor@redhat.com>
34315
34316 PR target/88638
34317 * doc/extend.texi (Darwin Format Checks): Clarify.
34318
34319 2019-01-14 Richard Biener <rguenther@suse.de>
34320
34321 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34322 whether we are in (simplify ...) or (match ...) context.
34323
34324 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34325
34326 PR rtl-optimization/88796
34327 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34328 * cfgexpand.c (stack_protect_prologue): Initialize
34329 crtl->stack_protect_guard_decl.
34330 * function.c (stack_protect_epilogue): Use it instead of calling
34331 targetm.stack_protect_guard again.
34332 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34333 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34334 crtl->stack_protect_guard_decl.
34335 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34336 on the returned MEM_EXPR.
34337
34338 2019-01-12 Tom de Vries <tdevries@suse.de>
34339
34340 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34341 vector length using -fopenacc-dim.
34342
34343 2019-01-12 Tom de Vries <tdevries@suse.de>
34344
34345 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34346 lengths into account.
34347
34348 2019-01-12 Svante Signell <svante.signell@gmail.com>
34349
34350 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34351 (TARGET_CAN_SPLIT_STACK): Define.
34352 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34353
34354 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34355
34356 * params.def (inline-unit-growth): Set to 40.
34357
34358 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34359
34360 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34361
34362 2019-01-12 Tom de Vries <tdevries@suse.de>
34363
34364 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34365 region calling vector-partitionable routine, set default_vector_length
34366 to WARP_SIZE.
34367
34368 2019-01-12 Tom de Vries <tdevries@suse.de>
34369
34370 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34371 variable default_vector_length.
34372
34373 2019-01-12 Tom de Vries <tdevries@suse.de>
34374
34375 PR middle-end/88703
34376 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34377 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34378 dimensions limits.
34379
34380 2019-01-12 Tom de Vries <tdevries@suse.de>
34381
34382 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34383 (nvptx_goacc_validate_dims): Add used parameter.
34384 * doc/tm.texi: Regenerate.
34385 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34386 argument to call to targetm.goacc.validate_dims.
34387 (default_goacc_validate_dims): Add used
34388 parameter.
34389 * target.def (validate_dims): Add used parameter in DEFHOOK.
34390 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34391
34392 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34393
34394 PR middle-end/85956
34395 PR lto/88733
34396 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34397 field.
34398 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34399 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34400 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34401 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34402
34403 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34404
34405 PR rtl-optimization/87305
34406 * lra-assigns.c
34407 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34408 for little endian pseudos used as paradoxical subreg.
34409
34410 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34411
34412 PR tree-optimization/88693
34413 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34414 for STRING_CSTs that don't contain any NUL characters in the first
34415 TREE_STRING_LENGTH bytes.
34416
34417 2019-01-11 Alan Modra <amodra@gmail.com>
34418
34419 PR 88777
34420 PR 88614
34421 * genattrtab.c (min_fn): Don't translate values.
34422 (min_attr_value): Return INT_MAX when the value can't be calculated.
34423 Return minimum among any values that can be calculated.
34424 (max_attr_value): Adjust.
34425
34426 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34427
34428 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34429
34430 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34431
34432 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34433 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34434 (aarch64_return_call_with_max_clobbers): New function.
34435 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34436 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34437 argument.
34438 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34439 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34440 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34441 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34442 * cselib.c (cselib_process_insn): Add argument to
34443 targetm.hard_regno_call_part_clobbered call.
34444 * ira-conflicts.c (ira_build_conflicts): Ditto.
34445 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34446 * lra-constraints.c (inherit_reload_reg): Ditto.
34447 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34448 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34449 argument. Call targetm.return_call_with_max_clobbers.
34450 Add argument to targetm.hard_regno_call_part_clobbered call.
34451 (calls_have_same_clobbers_p): New function.
34452 (process_bb_lives): Add call_insn and last_call_insn variables.
34453 Pass call_insn to check_pseudos_live_through_calls.
34454 Modify if stmt to check targetm.return_call_with_max_clobbers.
34455 Update setting of flush variable.
34456 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34457 to false.
34458 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34459 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34460 targetm.hard_regno_call_part_clobbered call.
34461 * reginfo.c (choose_hard_reg_mode): Ditto.
34462 * regrename.c (check_new_reg_p): Ditto.
34463 * reload.c (find_equiv_reg): Ditto.
34464 * reload1.c (emit_reload_insns): Ditto.
34465 * sched-deps.c (deps_analyze_insn): Ditto.
34466 * sel-sched.c (init_regs_for_mode): Ditto.
34467 (mark_unavailable_hard_regs): Ditto.
34468 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34469 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34470 (return_call_with_max_clobbers): New target function.
34471 * doc/tm.texi: Regenerate.
34472 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34473 * hooks.c (hook_bool_uint_mode_false): Change to
34474 hook_bool_insn_uint_mode_false.
34475 * hooks.h (hook_bool_uint_mode_false): Ditto.
34476
34477 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34478
34479 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34480 (aarch64_remove_extra_call_preserved_regs): New function.
34481 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34482 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34483 * doc/tm.texi: Regenerate.
34484 * final.c (get_call_reg_set_usage): Call new hook.
34485 * target.def (remove_extra_call_preserved_regs): New hook.
34486 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34487 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34488
34489 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34490
34491 PR bootstrap/88714
34492 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34493 inside of pass_combine_1 dump rather than pass_profile_1.
34494
34495 2019-01-11 Tom de Vries <tdevries@suse.de>
34496
34497 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34498 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34499 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34500 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34501 num_workers 16.
34502
34503 2019-01-11 Tom de Vries <tdevries@suse.de>
34504
34505 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34506
34507 2019-01-11 Jan Beulich <jbeulich@suse.com>
34508
34509 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34510 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34511 sse2_cvtsi2sd): Add {l}.
34512 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34513 syntax.
34514
34515 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34516
34517 PR target/88785
34518 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34519 define_expand.
34520 (*float<floatunssuffix>v2div2sf2): New define_insn.
34521 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34522 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34523 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34524 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34525 match_operands with "const0_operand" "C".
34526
34527 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34528
34529 * config/aarch64/aarch64-builtins.c
34530 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34531 (aarch64_init_simd_builtins): ...Here
34532
34533 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34534
34535 PR rtl-optimization/87305
34536 * lra-assigns.c
34537 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34538 allocation for big endian pseudos used as paradoxical subregs and
34539 spill them if it is wrong.
34540 * lra-constraints.c (lra_constraints): Add a comment.
34541
34542 2019-01-10 Richard Biener <rguenther@suse.de>
34543
34544 PR tree-optimization/88792
34545 * tree-ssa-pre.c (get_representative_for): Do not return a
34546 value-number here.
34547
34548 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34549
34550 PR middle-end/84877
34551 PR bootstrap/88450
34552 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34553 (assign_parm_setup_block): Do the argument slot realignment here
34554 instead.
34555
34556 2019-01-10 Stefan Agner <stefan@agner.ch>
34557
34558 PR target/88648
34559 * config/arm/arm.c (arm_option_override_internal): Force
34560 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34561
34562 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34563
34564 PR c/88568
34565 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34566 DECL_EXTERNAL.
34567
34568 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34569
34570 * config/arm/arm-builtins.c
34571 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34572 (MAC_LANE_PAIR_QUALIFIERS): New.
34573 (arm_expand_builtin_args): Use it.
34574 (arm_expand_builtin_1): Likewise.
34575 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34576 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34577 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34578 * config/arm/arm_neon.h:
34579 (vcadd_rot90_f16): New.
34580 (vcaddq_rot90_f16): New.
34581 (vcadd_rot270_f16): New.
34582 (vcaddq_rot270_f16): New.
34583 (vcmla_f16): New.
34584 (vcmlaq_f16): New.
34585 (vcmla_lane_f16): New.
34586 (vcmla_laneq_f16): New.
34587 (vcmlaq_lane_f16): New.
34588 (vcmlaq_laneq_f16): New.
34589 (vcmla_rot90_f16): New.
34590 (vcmlaq_rot90_f16): New.
34591 (vcmla_rot90_lane_f16): New.
34592 (vcmla_rot90_laneq_f16): New.
34593 (vcmlaq_rot90_lane_f16): New.
34594 (vcmlaq_rot90_laneq_f16): New.
34595 (vcmla_rot180_f16): New.
34596 (vcmlaq_rot180_f16): New.
34597 (vcmla_rot180_lane_f16): New.
34598 (vcmla_rot180_laneq_f16): New.
34599 (vcmlaq_rot180_lane_f16): New.
34600 (vcmlaq_rot180_laneq_f16): New.
34601 (vcmla_rot270_f16): New.
34602 (vcmlaq_rot270_f16): New.
34603 (vcmla_rot270_lane_f16): New.
34604 (vcmla_rot270_laneq_f16): New.
34605 (vcmlaq_rot270_lane_f16): New.
34606 (vcmlaq_rot270_laneq_f16): New.
34607 (vcadd_rot90_f32): New.
34608 (vcaddq_rot90_f32): New.
34609 (vcadd_rot270_f32): New.
34610 (vcaddq_rot270_f32): New.
34611 (vcmla_f32): New.
34612 (vcmlaq_f32): New.
34613 (vcmla_lane_f32): New.
34614 (vcmla_laneq_f32): New.
34615 (vcmlaq_lane_f32): New.
34616 (vcmlaq_laneq_f32): New.
34617 (vcmla_rot90_f32): New.
34618 (vcmlaq_rot90_f32): New.
34619 (vcmla_rot90_lane_f32): New.
34620 (vcmla_rot90_laneq_f32): New.
34621 (vcmlaq_rot90_lane_f32): New.
34622 (vcmlaq_rot90_laneq_f32): New.
34623 (vcmla_rot180_f32): New.
34624 (vcmlaq_rot180_f32): New.
34625 (vcmla_rot180_lane_f32): New.
34626 (vcmla_rot180_laneq_f32): New.
34627 (vcmlaq_rot180_lane_f32): New.
34628 (vcmlaq_rot180_laneq_f32): New.
34629 (vcmla_rot270_f32): New.
34630 (vcmlaq_rot270_f32): New.
34631 (vcmla_rot270_lane_f32): New.
34632 (vcmla_rot270_laneq_f32): New.
34633 (vcmlaq_rot270_lane_f32): New.
34634 (vcmlaq_rot270_laneq_f32): New.
34635 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34636 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34637 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34638 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34639 vcmlaq_lane270): New.
34640 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34641 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34642 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34643 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34644 (arm_option_reconfigure_globals): Use them.
34645 * config/arm/iterators.md (VDF, VQ_HSF): New.
34646 (VCADD, VCMLA): New.
34647 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34648 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34649 New.
34650 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34651 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34652
34653 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34654
34655 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34656 Add qualifier_lane_pair_index.
34657 (emit-rtl.h): Include.
34658 (TYPES_QUADOP_LANE_PAIR): New.
34659 (aarch64_simd_expand_args): Use it.
34660 (aarch64_simd_expand_builtin): Likewise.
34661 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34662 New.
34663 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34664 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34665 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34666 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34667 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34668 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34669 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34670 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34671 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34672 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34673 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34674 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34675 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34676 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34677 Add __ARM_FEATURE_COMPLEX.
34678 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34679 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34680 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34681 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34682 fcmlaq_lane270): New.
34683 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34684 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34685 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34686 * config/aarch64/arm_neon.h:
34687 (vcadd_rot90_f16): New.
34688 (vcaddq_rot90_f16): New.
34689 (vcadd_rot270_f16): New.
34690 (vcaddq_rot270_f16): New.
34691 (vcmla_f16): New.
34692 (vcmlaq_f16): New.
34693 (vcmla_lane_f16): New.
34694 (vcmla_laneq_f16): New.
34695 (vcmlaq_lane_f16): New.
34696 (vcmlaq_rot90_lane_f16): New.
34697 (vcmla_rot90_laneq_f16): New.
34698 (vcmla_rot90_lane_f16): New.
34699 (vcmlaq_rot90_f16): New.
34700 (vcmla_rot90_f16): New.
34701 (vcmlaq_laneq_f16): New.
34702 (vcmla_rot180_laneq_f16): New.
34703 (vcmla_rot180_lane_f16): New.
34704 (vcmlaq_rot180_f16): New.
34705 (vcmla_rot180_f16): New.
34706 (vcmlaq_rot90_laneq_f16): New.
34707 (vcmlaq_rot270_laneq_f16): New.
34708 (vcmlaq_rot270_lane_f16): New.
34709 (vcmla_rot270_laneq_f16): New.
34710 (vcmlaq_rot270_f16): New.
34711 (vcmla_rot270_f16): New.
34712 (vcmlaq_rot180_laneq_f16): New.
34713 (vcmlaq_rot180_lane_f16): New.
34714 (vcmla_rot270_lane_f16): New.
34715 (vcadd_rot90_f32): New.
34716 (vcaddq_rot90_f32): New.
34717 (vcaddq_rot90_f64): New.
34718 (vcadd_rot270_f32): New.
34719 (vcaddq_rot270_f32): New.
34720 (vcaddq_rot270_f64): New.
34721 (vcmla_f32): New.
34722 (vcmlaq_f32): New.
34723 (vcmlaq_f64): New.
34724 (vcmla_lane_f32): New.
34725 (vcmla_laneq_f32): New.
34726 (vcmlaq_lane_f32): New.
34727 (vcmlaq_laneq_f32): New.
34728 (vcmla_rot90_f32): New.
34729 (vcmlaq_rot90_f32): New.
34730 (vcmlaq_rot90_f64): New.
34731 (vcmla_rot90_lane_f32): New.
34732 (vcmla_rot90_laneq_f32): New.
34733 (vcmlaq_rot90_lane_f32): New.
34734 (vcmlaq_rot90_laneq_f32): New.
34735 (vcmla_rot180_f32): New.
34736 (vcmlaq_rot180_f32): New.
34737 (vcmlaq_rot180_f64): New.
34738 (vcmla_rot180_lane_f32): New.
34739 (vcmla_rot180_laneq_f32): New.
34740 (vcmlaq_rot180_lane_f32): New.
34741 (vcmlaq_rot180_laneq_f32): New.
34742 (vcmla_rot270_f32): New.
34743 (vcmlaq_rot270_f32): New.
34744 (vcmlaq_rot270_f64): New.
34745 (vcmla_rot270_lane_f32): New.
34746 (vcmla_rot270_laneq_f32): New.
34747 (vcmlaq_rot270_lane_f32): New.
34748 (vcmlaq_rot270_laneq_f32): New.
34749 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34750 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34751 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34752 (FCADD, FCMLA): New.
34753 (rot): New.
34754 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34755
34756 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34757
34758 PR other/16615
34759
34760 * config/pa/pa.c: Change "can not" to "cannot".
34761 * gimple-ssa-evrp-analyze.c: Likewise.
34762 * ipa-icf.c: Likewise.
34763 * ipa-polymorphic-call.c: Likewise.
34764 * ipa-pure-const.c: Likewise.
34765 * lra-constraints.c: Likewise.
34766 * lra-remat.c: Likewise.
34767 * reload1.c: Likewise.
34768 * reorg.c: Likewise.
34769 * tree-ssa-uninit.c: Likewise.
34770
34771 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34772
34773 PR other/16615
34774
34775 * Makefile.in: Mechanically replace "can not" with "cannot".
34776 * alias.c: Likewise.
34777 * builtins.c: Likewise.
34778 * calls.c: Likewise.
34779 * cgraph.c: Likewise.
34780 * cgraph.h: Likewise.
34781 * cgraphclones.c: Likewise.
34782 * cgraphunit.c: Likewise.
34783 * combine-stack-adj.c: Likewise.
34784 * combine.c: Likewise.
34785 * common/config/i386/i386-common.c: Likewise.
34786 * config/aarch64/aarch64.c: Likewise.
34787 * config/alpha/sync.md: Likewise.
34788 * config/arc/arc.c: Likewise.
34789 * config/arc/predicates.md: Likewise.
34790 * config/arm/arm-c.c: Likewise.
34791 * config/arm/arm.c: Likewise.
34792 * config/arm/arm.h: Likewise.
34793 * config/arm/arm.md: Likewise.
34794 * config/arm/cortex-r4f.md: Likewise.
34795 * config/csky/csky.c: Likewise.
34796 * config/csky/csky.h: Likewise.
34797 * config/darwin-f.c: Likewise.
34798 * config/epiphany/epiphany.md: Likewise.
34799 * config/i386/i386.c: Likewise.
34800 * config/i386/sol2.h: Likewise.
34801 * config/m68k/m68k.c: Likewise.
34802 * config/mcore/mcore.h: Likewise.
34803 * config/microblaze/microblaze.md: Likewise.
34804 * config/mips/20kc.md: Likewise.
34805 * config/mips/sb1.md: Likewise.
34806 * config/nds32/nds32.c: Likewise.
34807 * config/nds32/predicates.md: Likewise.
34808 * config/pa/pa.c: Likewise.
34809 * config/rs6000/e300c2c3.md: Likewise.
34810 * config/rs6000/rs6000.c: Likewise.
34811 * config/s390/s390.h: Likewise.
34812 * config/sh/sh.c: Likewise.
34813 * config/sh/sh.md: Likewise.
34814 * config/spu/vmx2spu.h: Likewise.
34815 * cprop.c: Likewise.
34816 * dbxout.c: Likewise.
34817 * df-scan.c: Likewise.
34818 * doc/cfg.texi: Likewise.
34819 * doc/extend.texi: Likewise.
34820 * doc/fragments.texi: Likewise.
34821 * doc/gty.texi: Likewise.
34822 * doc/invoke.texi: Likewise.
34823 * doc/lto.texi: Likewise.
34824 * doc/md.texi: Likewise.
34825 * doc/objc.texi: Likewise.
34826 * doc/rtl.texi: Likewise.
34827 * doc/tm.texi: Likewise.
34828 * dse.c: Likewise.
34829 * emit-rtl.c: Likewise.
34830 * emit-rtl.h: Likewise.
34831 * except.c: Likewise.
34832 * expmed.c: Likewise.
34833 * expr.c: Likewise.
34834 * fold-const.c: Likewise.
34835 * genautomata.c: Likewise.
34836 * gimple-fold.c: Likewise.
34837 * hard-reg-set.h: Likewise.
34838 * ifcvt.c: Likewise.
34839 * ipa-comdats.c: Likewise.
34840 * ipa-cp.c: Likewise.
34841 * ipa-devirt.c: Likewise.
34842 * ipa-fnsummary.c: Likewise.
34843 * ipa-icf.c: Likewise.
34844 * ipa-inline-transform.c: Likewise.
34845 * ipa-inline.c: Likewise.
34846 * ipa-polymorphic-call.c: Likewise.
34847 * ipa-profile.c: Likewise.
34848 * ipa-prop.c: Likewise.
34849 * ipa-pure-const.c: Likewise.
34850 * ipa-reference.c: Likewise.
34851 * ipa-split.c: Likewise.
34852 * ipa-visibility.c: Likewise.
34853 * ipa.c: Likewise.
34854 * ira-build.c: Likewise.
34855 * ira-color.c: Likewise.
34856 * ira-conflicts.c: Likewise.
34857 * ira-costs.c: Likewise.
34858 * ira-int.h: Likewise.
34859 * ira-lives.c: Likewise.
34860 * ira.c: Likewise.
34861 * ira.h: Likewise.
34862 * loop-invariant.c: Likewise.
34863 * loop-unroll.c: Likewise.
34864 * lower-subreg.c: Likewise.
34865 * lra-assigns.c: Likewise.
34866 * lra-constraints.c: Likewise.
34867 * lra-eliminations.c: Likewise.
34868 * lra-lives.c: Likewise.
34869 * lra-remat.c: Likewise.
34870 * lra-spills.c: Likewise.
34871 * lra.c: Likewise.
34872 * lto-cgraph.c: Likewise.
34873 * lto-streamer-out.c: Likewise.
34874 * postreload-gcse.c: Likewise.
34875 * predict.c: Likewise.
34876 * profile-count.h: Likewise.
34877 * profile.c: Likewise.
34878 * recog.c: Likewise.
34879 * ree.c: Likewise.
34880 * reload.c: Likewise.
34881 * reload1.c: Likewise.
34882 * reorg.c: Likewise.
34883 * resource.c: Likewise.
34884 * rtl.def: Likewise.
34885 * rtl.h: Likewise.
34886 * rtlanal.c: Likewise.
34887 * sched-deps.c: Likewise.
34888 * sched-ebb.c: Likewise.
34889 * sched-rgn.c: Likewise.
34890 * sel-sched-ir.c: Likewise.
34891 * sel-sched.c: Likewise.
34892 * shrink-wrap.c: Likewise.
34893 * simplify-rtx.c: Likewise.
34894 * symtab.c: Likewise.
34895 * target.def: Likewise.
34896 * toplev.c: Likewise.
34897 * tree-call-cdce.c: Likewise.
34898 * tree-cfg.c: Likewise.
34899 * tree-complex.c: Likewise.
34900 * tree-core.h: Likewise.
34901 * tree-eh.c: Likewise.
34902 * tree-inline.c: Likewise.
34903 * tree-loop-distribution.c: Likewise.
34904 * tree-nrv.c: Likewise.
34905 * tree-profile.c: Likewise.
34906 * tree-sra.c: Likewise.
34907 * tree-ssa-alias.c: Likewise.
34908 * tree-ssa-dce.c: Likewise.
34909 * tree-ssa-dom.c: Likewise.
34910 * tree-ssa-forwprop.c: Likewise.
34911 * tree-ssa-loop-im.c: Likewise.
34912 * tree-ssa-loop-ivcanon.c: Likewise.
34913 * tree-ssa-loop-ivopts.c: Likewise.
34914 * tree-ssa-loop-niter.c: Likewise.
34915 * tree-ssa-phionlycprop.c: Likewise.
34916 * tree-ssa-phiopt.c: Likewise.
34917 * tree-ssa-propagate.c: Likewise.
34918 * tree-ssa-threadedge.c: Likewise.
34919 * tree-ssa-threadupdate.c: Likewise.
34920 * tree-ssa-uninit.c: Likewise.
34921 * tree-ssanames.c: Likewise.
34922 * tree-streamer-out.c: Likewise.
34923 * tree.c: Likewise.
34924 * tree.h: Likewise.
34925 * vr-values.c: Likewise.
34926
34927 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34928
34929 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34930 (ix86_split_xorsign): Ditto.
34931 * config/i386/i386.c (ix86_expand_xorsign): New function.
34932 (ix86_split_xorsign): Ditto.
34933 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34934 (xorsign<mode>3): New expander.
34935 (xorsign<mode>3_1): New insn_and_split pattern.
34936 * config/i386/sse.md (xorsign<mode>3): New expander.
34937
34938 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34939
34940 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34941 (*tablejump_sp64): Likewise.
34942 (*tablejump<P:mode>): ...this.
34943 (*call_address_sp32): Merge into...
34944 (*call_address_sp64): Likewise.
34945 (*call_address<P:mode>): ...this.
34946 (*call_symbolic_sp32): Merge into...
34947 (*call_symbolic_sp64): Likewise.
34948 (*call_symbolic<P:mode>): ...this.
34949 (call_value): Remove constraint and add predicate.
34950 (*call_value_address_sp32): Merge into...
34951 (*call_value_address_sp64): Likewise.
34952 (*call_value_address<P:mode>): ...this.
34953 (*call_value_symbolic_sp32): Merge into...
34954 (*call_value_symbolic_sp64): Likewise.
34955 (*call_value_symbolic<P:mode>): ...this.
34956 (*sibcall_symbolic_sp32): Merge into...
34957 (*sibcall_symbolic_sp64): Likewise.
34958 (*sibcall_symbolic<P:mode>): ...this.
34959 (sibcall_value): Remove constraint and add predicate.
34960 (*sibcall_value_symbolic_sp32): Merge into...
34961 (*sibcall_value_symbolic_sp64): Likewise.
34962 (*sibcall_value_symbolic<P:mode>): ...this.
34963 (window_save): Minor tweak.
34964 (*branch_sp32): Merge into...
34965 (*branch_sp64): Likewise.
34966 (*branch<P:mode>): ...this.
34967
34968 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34969 James Clarke <jrtc27@jrtc27.com>
34970
34971 PR target/84010
34972 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34973 consistently in TLS address generation and adjust code to the renaming
34974 of patterns. Mark calls to __tls_get_addr as const.
34975 * config/sparc/sparc.md (tgd_hi22): Turn into...
34976 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34977 (tgd_lo10): Turn into...
34978 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34979 (tgd_add32): Merge into...
34980 (tgd_add64): Likewise.
34981 (tgd_add<P:mode>): ...this and use Pmode throughout.
34982 (tldm_hi22): Turn into...
34983 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34984 (tldm_lo10): Turn into...
34985 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34986 (tldm_add32): Merge into...
34987 (tldm_add64): Likewise.
34988 (tldm_add<P:mode>): ...this and use Pmode throughout.
34989 (tldm_call32): Merge into...
34990 (tldm_call64): Likewise.
34991 (tldm_call<P:mode>): ...this and use Pmode throughout.
34992 (tldo_hix22): Turn into...
34993 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34994 (tldo_lox10): Turn into...
34995 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34996 (tldo_add32): Merge into...
34997 (tldo_add64): Likewise.
34998 (tldo_add<P:mode>): ...this and use Pmode throughout.
34999 (tie_hi22): Turn into...
35000 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35001 (tie_lo10): Turn into...
35002 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35003 (tie_ld64): Use DImode throughout.
35004 (tie_add32): Merge into...
35005 (tie_add64): Likewise.
35006 (tie_add<P:mode>): ...this and use Pmode throughout.
35007 (tle_hix22_sp32): Merge into...
35008 (tle_hix22_sp64): Likewise.
35009 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35010 (tle_lox22_sp32): Merge into...
35011 (tle_lox22_sp64): Likewise.
35012 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35013 (*tldo_ldub_sp32): Merge into...
35014 (*tldo_ldub_sp64): Likewise.
35015 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35016 (*tldo_ldub1_sp32): Merge into...
35017 (*tldo_ldub1_sp64): Likewise.
35018 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35019 (*tldo_ldub2_sp32): Merge into...
35020 (*tldo_ldub2_sp64): Likewise.
35021 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35022 (*tldo_ldsb1_sp32): Merge into...
35023 (*tldo_ldsb1_sp64): Likewise.
35024 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35025 (*tldo_ldsb2_sp32): Merge into...
35026 (*tldo_ldsb2_sp64): Likewise.
35027 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35028 (*tldo_ldub3_sp64): Use DImode throughout.
35029 (*tldo_ldsb3_sp64): Likewise.
35030 (*tldo_lduh_sp32): Merge into...
35031 (*tldo_lduh_sp64): Likewise.
35032 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35033 (*tldo_lduh1_sp32): Merge into...
35034 (*tldo_lduh1_sp64): Likewise.
35035 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35036 (*tldo_ldsh1_sp32): Merge into...
35037 (*tldo_ldsh1_sp64): Likewise.
35038 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35039 (*tldo_lduh2_sp64): Use DImode throughout.
35040 (*tldo_ldsh2_sp64): Likewise.
35041 (*tldo_lduw_sp32): Merge into...
35042 (*tldo_lduw_sp64): Likewise.
35043 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35044 (*tldo_lduw1_sp64): Use DImode throughout.
35045 (*tldo_ldsw1_sp64): Likewise.
35046 (*tldo_ldx_sp64): Likewise.
35047 (*tldo_stb_sp32): Merge into...
35048 (*tldo_stb_sp64): Likewise.
35049 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35050 (*tldo_sth_sp32): Merge into...
35051 (*tldo_sth_sp64): Likewise.
35052 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35053 (*tldo_stw_sp32): Merge into...
35054 (*tldo_stw_sp64): Likewise.
35055 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35056 (*tldo_stx_sp64): Use DImode throughout.
35057
35058 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35059
35060 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35061 check configure option to set BTI and Return Address Signing.
35062 * configure.ac: Add --enable-standard-branch-protection and
35063 --disable-standard-branch-protection.
35064 * configure: Regenerated.
35065 * doc/install.texi: Document the same.
35066
35067 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35068 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35069
35070 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35071 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35072 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35073 if bti is enabled.
35074 * config/aarch64/aarch64-bti-insert.c: New file.
35075 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35076 pass.
35077 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35078 new bti pass.
35079 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35080 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35081 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35082 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35083
35084 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35085
35086 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35087 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35088 Disable bti for -mbranch-protection=none.
35089 (aarch64_handle_standard_branch_protection): Enable bti for
35090 -mbranch-protection=standard.
35091 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35092 -mbranch-protection.
35093 (aarch64_bti_enabled): Check if bti is enabled.
35094 * config/aarch64/aarch64.opt: Declare target variable.
35095 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35096
35097 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35098
35099 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35100 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35101 (aarch64_expand_epilogue): Likewise.
35102 (aarch64_output_mi_thunk): Likewise.
35103 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35104 TAILCALL_ADDR_REGS to x16 and x17.
35105 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35106
35107 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35108
35109 * config/aarch64/aarch64-option-extensions.def: Define
35110 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35111 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35112 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35113 (AARCH64_FL_PREDRES): New.
35114 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35115 AARCH64_FL_PREDRES by default.
35116 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35117
35118 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35119
35120 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35121 ARMv8.5-A.
35122 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35123 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35124 * doc/invoke.texi: Document ARMv8.5-A.
35125
35126 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35127
35128 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35129 (xorsign<mode>3): Likewise.
35130
35131 2019-01-09 Jelinek <jakub@redhat.com>
35132
35133 PR middle-end/88758
35134 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35135 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35136
35137 PR rtl-optimization/88331
35138 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35139 not currently_expanding_to_rtl.
35140
35141 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35142
35143 * doc/invoke.texi (-Os): Remove trailing spaces.
35144 (-finline-functions): Remove reference to -O2.
35145
35146 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35147
35148 PR rtl-optimization/79593
35149 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35150
35151 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35152 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35153
35154 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35155
35156 PR bootstrap/88721
35157 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35158 to -1 on entry.
35159
35160 PR debug/88723
35161 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35162 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35163
35164 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35165
35166 PR target/88717
35167 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35168 ix86_avx_u128_mode_entry.
35169
35170 2019-01-08 Martin Liska <mliska@suse.cz>
35171
35172 PR tree-optimization/88753
35173 * tree-switch-conversion.c (switch_conversion::build_one_array):
35174 Come up with local variable constructor. Convert first to
35175 type of constructor values.
35176
35177 2019-01-08 Richard Biener <rguenther@suse.de>
35178
35179 PR tree-optimization/86554
35180 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35181 rpo_avail): Move earlier.
35182 (visit_nary_op): When value-numbering to expressions
35183 with different overflow behavior make sure there's an
35184 available expression on the path.
35185
35186 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35187
35188 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35189 aarch64_parse_branch_protection,
35190 struct aarch64_branch_protect_type,
35191 aarch64_handle_no_branch_protection,
35192 aarch64_handle_standard_branch_protection,
35193 aarch64_validate_mbranch_protection,
35194 aarch64_handle_pac_ret_protection,
35195 aarch64_handle_attr_branch_protection,
35196 accepted_branch_protection_string,
35197 aarch64_pac_ret_subtypes,
35198 aarch64_branch_protect_types,
35199 aarch64_handle_pac_ret_leaf): Define.
35200 (aarch64_override_options_after_change_1, aarch64_override_options):
35201 Add check for accepted_branch_protection_string.
35202 (aarch64_option_save): Save accepted_branch_protection_string.
35203 (aarch64_option_restore): Save accepted_branch_protection_string.
35204 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35205 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35206 msign-return-address.
35207 * doc/invoke.texi: Add mbranch-protection.
35208
35209 2019-01-08 Alan Modra <amodra@gmail.com>
35210
35211 PR target/88614
35212 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35213 Delete "unknownp" parameter. Adjust callers. Handle
35214 CONST_INT, PLUS, MINUS, and MULT.
35215 (attr_value_aligned): Renamed from or_attr_value.
35216 (min_attr_value): Return INT_MIN for unhandled rtl case..
35217 (min_fn): ..and translate to INT_MAX here.
35218 (write_length_unit_log): Modify to cope without "unknown".
35219 (write_attr_value): Handle IF_THEN_ELSE.
35220
35221 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35222
35223 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35224 optimization for masked stores.
35225
35226 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35227
35228 PR middle-end/88567
35229 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35230 output vector directly to duplicate_and_interleave instead of
35231 going through a temporary. Postpone insertion of ctor_seq to
35232 the end of the loop.
35233
35234 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35235
35236 PR target/86891
35237 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35238 unsigned_p. Handle signed and unsigned overflow correction as
35239 required.
35240 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35241 prototype.
35242 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35243 for operand 2.
35244 (add<mode>3_compareV_imm): Make this callable for expanding.
35245 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35246 aarch64_plus_operand for operand 2.
35247 (subv<GPI:mode>_insn): New insn pattern.
35248 (subv<GPI:mode>_imm): Likewise.
35249 (negv<GPI:mode>3): New expand pattern.
35250 (negv<GPI:mode>_insn): New insn pattern.
35251 (negv<GPI:mode>_cmp_only): Likewise.
35252 (cmpv<GPI:mode>_insn): Likewise.
35253 (subvti4): Use register_operand for operand 1. Update call to
35254 aarch64_expand_subvti.
35255 (usubvti4): Likewise.
35256 (negvti3): New expand pattern.
35257 (negdi_carryout): New insn pattern.
35258 (negvdi_carryinV): New insn pattern.
35259 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35260 version the named version.
35261 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35262 operands.
35263 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35264 patterns.
35265 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35266 patterns.
35267 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35268 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35269 (sub<mode>3_carryinCV): Delete.
35270 (sub<GPI:mode>3_carryinV): New expand pattern.
35271 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35272
35273 2019-01-07 Richard Biener <rguenther@suse.de>
35274
35275 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35276 of tree_operand_hash.
35277
35278 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35279
35280 PR tree-optimization/88598
35281 * tree.h (single_nonzero_element): Declare.
35282 * tree.c (single_nonzero_element): New function.
35283 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35284 if I is the only nonzero element of CST.
35285
35286 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35287
35288 PR tree-optimization/88598
35289 * tree.h (initializer_each_zero_or_onep): Declare.
35290 * tree.c (initializer_each_zero_or_onep): New function.
35291 (signed_or_unsigned_type_for): Handle float types too.
35292 (unsigned_type_for, signed_type_for): Update comments accordingly.
35293 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35294 x & { 0 or -1, 0 or -1, ... }.
35295
35296 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35297
35298 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35299 with x86_64-pc-linux-gnu.
35300
35301 2019-01-07 Tom de Vries <tdevries@suse.de>
35302
35303 PR target/85486
35304 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35305 function.
35306 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35307 routines.
35308
35309 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35310
35311 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35312 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35313 TARGET_AVX512F as condition.
35314
35315 PR debug/88723
35316 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35317 const_not_ok_for_debug_p target hook.
35318 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35319 on UNSPEC and subexpressions thereof if all subexpressions of the
35320 UNSPEC are CONSTANT_P.
35321
35322 PR tree-optimization/88676
35323 * tree-ssa-phiopt.c (two_value_replacement): New function.
35324 (tree_ssa_phiopt_worker): Call it.
35325
35326 PR sanitizer/88619
35327 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35328 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35329
35330 PR c++/85052
35331 * tree-vect-generic.c: Include insn-config.h and recog.h.
35332 (expand_vector_piecewise): Add defaulted ret_type argument,
35333 if non-NULL, use that in preference to type for the result type.
35334 (expand_vector_parallel): Formatting fix.
35335 (do_vec_conversion, do_vec_narrowing_conversion,
35336 expand_vector_conversion): New functions.
35337 (expand_vector_operations_1): Call expand_vector_conversion
35338 for VEC_CONVERT ifn calls.
35339 * internal-fn.def (VEC_CONVERT): New internal function.
35340 * internal-fn.c (expand_VEC_CONVERT): New function.
35341 * fold-const-call.c (fold_const_vec_convert): New function.
35342 (fold_const_call): Use it for CFN_VEC_CONVERT.
35343 * doc/extend.texi (__builtin_convertvector): Document.
35344
35345 2019-01-07 Tom de Vries <tdevries@suse.de>
35346
35347 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35348 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35349 vector_red_partition, vector_red_sym): New global variables.
35350 (nvptx_option_override): Initialize vector_red_sym.
35351 (nvptx_declare_function_name): Restore red_partition register.
35352 (nvptx_file_end): Emit code to declare the vector reduction variables.
35353 (nvptx_output_red_partition): New function.
35354 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35355 large vector reductions.
35356 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35357 (nvptx_init_builtins): Add VECTOR_ADDR.
35358 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35359 Handle nvptx_expand_shared_addr.
35360 (nvptx_get_shared_red_addr): Add vector argument and handle large
35361 vectors.
35362 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35363 large vectors.
35364 (nvptx_goacc_reduction_init): Likewise.
35365 (nvptx_goacc_reduction_fini): Likewise.
35366 (nvptx_goacc_reduction_teardown): Likewise.
35367 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35368 init,fini,teardown}.
35369 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35370 (nvptx_set_current_function): Init vector_red_partition.
35371 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35372 (nvptx_red_partition): New insn.
35373 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35374
35375 2019-01-07 Tom de Vries <tdevries@suse.de>
35376
35377 PR target/85381
35378 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35379 empty loops.
35380
35381 2019-01-07 Tom de Vries <tdevries@suse.de>
35382
35383 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35384 (nvptx_option_override): Init oacc_bcast_partition.
35385 (nvptx_init_oacc_workers): New function.
35386 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35387 (nvptx_needs_shared_bcast): New function.
35388 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35389 to propagate state.
35390 (nvptx_shared_propagate): Initialize vector bcast partition and
35391 synchronization state.
35392 (nvptx_single): Generalize to enable vectors to use shared-memory
35393 to propagate state.
35394 (nvptx_process_pars): Likewise.
35395 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35396 * config/nvptx/nvptx.h (struct machine_function): Add
35397 bcast_partition and sync_bar members.
35398
35399 2019-01-07 Tom de Vries <tdevries@suse.de>
35400
35401 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35402 (nvptx_apply_dim_limits): New function.
35403 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35404 PTX_WARP_SIZE.
35405
35406 2019-01-07 Tom de Vries <tdevries@suse.de>
35407
35408 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35409 as late as possible.
35410
35411 2019-01-07 Tom de Vries <tdevries@suse.de>
35412
35413 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35414 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35415 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35416 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35417 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35418
35419 2019-01-07 Tom de Vries <tdevries@suse.de>
35420
35421 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35422
35423 2019-01-07 Tom de Vries <tdevries@suse.de>
35424
35425 * omp-offload.c (oacc_get_min_dim): New function.
35426 * omp-offload.h (oacc_get_min_dim): Declare.
35427
35428 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35429
35430 PR target/88521
35431 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35432 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35433
35434 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35435
35436 PR tree-opt/86020
35437 Revert:
35438 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35439
35440 * ipa-inline.c (edge_badness): Use inlined_time instead of
35441 inline_summaries->get.
35442
35443 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35444
35445 * opts.c (enable_fdo_optimizations): Enable
35446 version-loops-for-strides, loop-interchange, unrol-and-jam
35447 and tree-loop-distribution.
35448 * invoke.texi: Document newly enabled options.
35449
35450 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35451
35452 * doc/invoke.texi (max-inline-insns-small): New parameters.
35453 * ipa-inline.c (want_early_inline_function_p): simplify.
35454 (want_inline_small_function_p): Fix pasto from previous patch;
35455 use max-inline-insns-small bound.
35456 * params.def (max-inline-insns-small): New param.
35457 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35458 variables correctly.
35459
35460 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35461
35462 * doc/invoke.texi: Document max-inline-insns-size,
35463 uninlined-function-insns, uninlined-function-time,
35464 uninlined-thunk-insns and uninlined-thunk-time.
35465 * params.def: Add max-inline-insns-size,
35466 uninlined-function-insns, uninlined-function-time,
35467 uninlined-thunk-insns and uninlined-thunk-time.
35468 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35469 new parameters.
35470 * ipa-inline.c (can_inline_edge_by_limits_p,
35471 want_inline_small_function_p): Use new parameters.
35472
35473 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35474
35475 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35476
35477 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35478
35479 PR middle-end/82564
35480 PR target/88620
35481 * expr.c (expand_assignment): For calls returning VLA structures
35482 if to_rtx is not a MEM, force it into a stack temporary.
35483
35484 PR debug/88635
35485 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35486 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35487 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35488 subexpressions of both operands.
35489 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35490 subrtxes are CONSTANT_P.
35491 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35492 2018-11-09 changes.
35493
35494 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35495
35496 * params.def (hot-bb-count-ws-permille): Set to 990.
35497
35498 2019-01-04 Martin Sebor <msebor@redhat.com>
35499
35500 PR c/88546
35501 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35502 leaf.
35503
35504 2019-01-04 Martin Sebor <msebor@redhat.com>
35505
35506 PR c/88363
35507 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35508
35509 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35510
35511 * gdbinit.in: Turn off pagination for the skip commands, restore
35512 it to previous state afterwards.
35513
35514 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35515
35516 PR target/88594
35517 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35518 of GET_MODE (opN) as modes of the libcall arguments.
35519
35520 2019-01-04 Jan Beulich <jbeulich@suse.com>
35521
35522 * config/i386/sse.md
35523 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35524 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35525 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35526 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35527 avx512f_vmcmp<mode>3<round_saeonly_name>,
35528 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35529 avx512f_maskcmp<mode>3,
35530 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35531 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35532 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35533 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35534 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35535 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35536 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35537 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35538 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35539 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35540 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35541 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35542 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35543 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35544 avx512cd_maskb_vec_dup<mode>,
35545 avx512cd_maskw_vec_dup<mode>,
35546 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35547 avx512dq_vmfpclass<mode>,
35548 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35549 instead of =Yk.
35550
35551 2019-01-03 Martin Sebor <msebor@redhat.com>
35552
35553 PR tree-optimization/88659
35554 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35555
35556 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35557
35558 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35559 unaligned vsx and avoid lxvd2x/stxvd2x.
35560 (gen_lvx_v4si_move): New function.
35561
35562 2019-01-03 Tom de Vries <tdevries@suse.de>
35563
35564 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35565 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35566 function.
35567 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35568
35569 2019-01-03 Tom de Vries <tdevries@suse.de>
35570
35571 * config/nvptx/nvptx.c (struct offload_attrs): New.
35572 (populate_offload_attrs): New function. Factor mask extraction out of
35573 nvptx_reorg. Add extraction of dimensions.
35574 (nvptx_reorg): Use populate_offload_attrs.
35575
35576 2019-01-03 Tom de Vries <tdevries@suse.de>
35577
35578 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35579 cases for oacc_min_dims_p and routine_p. Add asserts for
35580 oacc_default_dims_p and offload_region_p.
35581
35582 2019-01-03 Tom de Vries <tdevries@suse.de>
35583
35584 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35585 factored out of ...
35586 (nvptx_goacc_validate_dims): ... here.
35587
35588 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35589
35590 PR tree-optimization/85574
35591 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35592 structure.
35593 (struct ssa_equip_hash_traits): Declare.
35594 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35595
35596 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35597
35598 PR debug/88644
35599 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35600 change it to qualified_type.
35601
35602 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35603
35604 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35605 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35606
35607 2019-01-02 Martin Sebor <msebor@redhat.com>
35608 Jeff Law <law@redhat.com>
35609
35610 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35611 (get_range_strlen_tree): Update appropriately.
35612 (get_range_strlen)
35613 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35614
35615 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35616 rather than set_range_info.
35617 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35618 maybe_set_strlen_range. Handle potentially boundary crossing
35619 cases more conservatively.
35620 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35621 Call set_strlen_range.
35622 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35623
35624 PR middle-end/88663
35625 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35626 need the flexp argument.
35627 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35628 from calls to get_range_strlen. Update comments. Just update
35629 VAL for an unterminated const char array and let the reset of the
35630 code handle it normally. No longer try to set *flexp. Adjust
35631 return value.
35632 (get_range_strlen): Update for the new get_range_strlen API.
35633 (get_maxval_strlen): Similarly.
35634 (gimple_fold_builtin_strlen): Handle update meaning of return value
35635 from get_range_strlen.
35636 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35637 get_range_strlen API.
35638
35639 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35640
35641 PR lto/88130
35642 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35643 false at WPA time when body was removed.
35644
35645 2019-01-02 Martin Liska <mliska@suse.cz>
35646
35647 PR tree-optimization/88650
35648 * predict.c (set_even_probabilities): Calculate probability
35649 remainer only when really used.
35650
35651 2019-01-02 Richard Biener <rguenther@suse.de>
35652
35653 PR middle-end/88651
35654 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35655 widest_ints when mangling max_stmt_execution results.
35656
35657 2019-01-02 Richard Biener <rguenther@suse.de>
35658
35659 PR tree-optimization/88621
35660 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35661 bitfields when canoncalizing.
35662
35663 2019-01-02 Richard Biener <rguenther@suse.de>
35664
35665 PR target/87545
35666 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35667 cost of cheap SSE instruction.
35668
35669 2019-01-02 Richard Biener <rguenther@suse.de>
35670
35671 PR ipa/85574
35672 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35673 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35674 function.
35675 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35676 set after UIDs before splitting them.
35677
35678 2019-01-01 Martin Sebor <msebor@redhat.com>
35679 Jeff Law <law@redhat.com>
35680
35681 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35682 length is optimistic. If it is, then arrange to compute the
35683 conservative length as well.
35684
35685 * gimple-fold.h (get_range_strlen): Update prototype.
35686 * builtins.c (check_access): Update call to get_range_strlen to use
35687 c_strlen_data pointer. Change various variable accesses to instead
35688 pull data from the c_strlen_data structure.
35689 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35690 * calls.c (maybe_warn_nonstring_arg): Likewise.
35691 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35692 minimum length if maximum lengh is unknown.
35693 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35694 that used c_strlen, it's no longer needed. Restructure slightly.
35695 (format_string): Set unlikely range appropriately.
35696 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35697 formatting issues.
35698 (get_range_strlen): Accept c_strlen_data pointer for external
35699 call sites as well. Pass through to call to internal get_range_strlen.
35700 Adjust minlen, maxlen and maxbound as needed.
35701 (get_maxval_strlen): Update comments.
35702 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35703 to use c_strlen_data pointer. Change variable accesses to instead
35704 use c_strlen_data data members.
35705
35706 * gimple-fold.c (get_range_strlen): Update prototype.
35707 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35708 local variables. Use pdata to return information to caller.
35709 Update calls to get_range_strlen. Update pdata->maxbound.
35710 (get_range_strlen -- static version): Similarly.
35711 (get_range_strlen -- extern version): Update for internal
35712 get_range_strlen API change. Convert to external data format.
35713 (get_maxval_strlen): Similarly.
35714
35715 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35716
35717 * coverage.c (get_coverage_counts): Use current_function_decl.
35718 * profile.c (read_thunk_profile): New function.
35719 (branch_prob): Add THUNK parameter.
35720 * tree-profile.c (tree_profiling): Handle thunks.
35721 * value-prof.c (init_node_map): Handle thunks.
35722 * value-prof.h (branch_prob): Upate prototype.
35723 (read_thunk_profile): Declare.
35724
35725 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35726
35727 Update copyright years.
35728
35729 * gcc.c (process_command): Update copyright notice dates.
35730 * gcov-dump.c (print_version): Ditto.
35731 * gcov.c (print_version): Ditto.
35732 * gcov-tool.c (print_version): Ditto.
35733 * gengtype.c (create_file): Ditto.
35734 * doc/cpp.texi: Bump @copying's copyright year.
35735 * doc/cppinternals.texi: Ditto.
35736 * doc/gcc.texi: Ditto.
35737 * doc/gccint.texi: Ditto.
35738 * doc/gcov.texi: Ditto.
35739 * doc/install.texi: Ditto.
35740 * doc/invoke.texi: Ditto.
35741 \f
35742 Copyright (C) 2019 Free Software Foundation, Inc.
35743
35744 Copying and distribution of this file, with or without modification,
35745 are permitted in any medium without royalty provided the copyright
35746 notice and this notice are preserved.