Remove gcc/ prefix
[gcc.git] / gcc / ChangeLog
1 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
4 on a-profile.
5
6 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
7
8 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
9 set<mode>_cc.
10 (unnamed define_insn_and_split): Delete.
11 (unnamed define_insn): Delete.
12 (unnamed define_insn): Delete.
13 (unnamed define_split): Delete.
14
15 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
16
17 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
18 avoid a warning.
19
20 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
21
22 PR middle-end/92410
23 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
24 dataflow luids once basic blocks have been reordered.
25 * haifa-sched.c (reemit_notes): Create df insn record for each
26 new note.
27 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
28 insn has an insn record before trying to use it.
29
30 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
31
32 * common/config/i386/i386-common.c
33 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
34 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
35 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
36 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
37 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
38 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
39 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
40 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
41 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
42 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
43 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
44 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
45 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
46 OPTION_MASK_ISA_AVX512BF16_UNSET,
47 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
48 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
49 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
50 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
51 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
52 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
53 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
54 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
55 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
56 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
57 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
58 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
59 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
60 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
61 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
62 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
63 OPTION_MASK_ISA_ENQCMD): Ditto.
64 * config/i386/i386-builtin.def
65 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
66 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
67 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
68 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
69 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
70 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
71 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
72 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
73 * config/i386/i386-c.c
74 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
75 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
76 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
77 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
78 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
79 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
80 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
81 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
82 OPTION_MASK_ISA_ENQCMD): Ditto.
83 * config/i386/i386-option.c: Ditto
84 * config/i386/i386.opt: Ditto..
85 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
86 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
87 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
88 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
89 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
90 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
91 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
92 TARGET_ISA_ENQCMD): Ditto.
93
94 2019-12-09 Sudakshina Das <sudi.das@arm.com>
95 Richard Sandiford <richard.sandiford@arm.com>
96
97 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
98 vect_model_simple_cost call on scalar_shift_arg.
99
100 2019-12-09 Jakub Jelinek <jakub@redhat.com>
101
102 PR tree-optimization/92834
103 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
104 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
105
106 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
107
108 PR tree-optimization/89007
109 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
110 target support available, generate code to distribute rshift over plus
111 and add a carry.
112
113 2019-12-09 Martin Liska <mliska@suse.cz>
114
115 PR ipa/92737
116 * cgraph.c (symbol_table_test::symbol_table_test): Fix
117 coding style.
118 * cgraph.h (symtab_node::symtab_node): New constructor.
119 (cgraph_node::cgraph_node): Likewise.
120 (varpool_node::varpool_node): Likewise.
121 (symbol_table::allocate_cgraph_symbol): Use newly
122 created constructor.
123 (symbol_table::allocate_cgraph_symbol): Remove.
124 * cgraphunit.c (symtab_terminator): Likewise.
125 * varpool.c (varpool_node::create_empty): Use newly
126 created constructor.
127
128 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
129
130 PR target/92686
131 * config/i386/sse.md
132 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
133 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
134 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
135 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
136 * config/i386/i386.c (ix86_print_operand): New operand substitution.
137 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
138 New function.
139 (ix86_expand_sse_cmp): Relax condition for integer mask from
140 512-bit vector to all 128/256/512-bit vector. Delete code gen
141 for avx512f compare patterns since we have generic pattern now.
142 (ix86_expand_sse_movcc): Adjust condition and codegen for
143 maskcmp.
144 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
145 when corresponding vector compare is available.
146
147 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
148
149 Revert:
150 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
151
152 * config/nios2/linux.h (LINK_EH_SPEC): Define.
153
154 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
155
156 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
157 * cgraph.h (cgrpah_node): Likewise.
158 (tp_first_run_node_cmp): Deeclare.
159 * cgraphunit.c (node_cmp): Rename to ...
160 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
161 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
162 (expand_all_functions): Collect tp_first_run and normal functions to
163 two vectors so the other functions remain sorted. Do not check for
164 flag_profile_reorder_functions it is function local flag.
165 * profile.c (compute_value_histograms): Update tp_first_run printing.
166
167 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
168
169 * opts.c (common_handle_option): Do not clear ipa_reference for
170 -fprofile-use.
171
172 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
173
174 * ipa-split.c (split_function): Preserve 0 tp_first_run.
175
176 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
177
178 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
179 sanity check.
180
181 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
182
183 PR tree-optimization/92860
184 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
185 Optimization flag.
186
187 2019-12-07 Marek Polacek <polacek@redhat.com>
188
189 PR c++/91678 - wrong error with decltype and location wrapper.
190 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
191
192 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
193
194 PR middle-end/90840
195 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
196 sure to pass a valid inner mode in calls to simplify_gen_subreg.
197
198 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
199 David Malcolm <dmalcolm@redhat.com>
200 Jakub Jelinek <jakub@redhat.com>
201
202 PR c/87488
203 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
204 instead of ST sequence to terminate OSC 8 strings.
205
206 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
207 Vladimir Makarov <vmakarov@redhat.com>
208
209 PR rtl-optimization/92176
210 * lra.c (simplify_subreg_regno): Don't permit unconditional
211 changing mode for LRA too.
212
213 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
214
215 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
216 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
217 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
218 Handle them.
219
220 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
221
222 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
223 in the asm output.
224
225 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
226
227 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
228 (VEC_1REG_ALT): Likewise.
229 (VEC_ALL1REG_MODE): New mode iterator.
230 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
231 (VEC_1REG_INT_ALT): Likewise.
232 (VEC_ALL1REG_INT_MODE): New mode interator.
233 (VEC_ALL1REG_INT_ALT): Likewise.
234 (VEC_REG_MODE): Remove V64QI and V64HI.
235 (VEC_ALLREG_MODE): New mode interator.
236 (vec_merge): Change to VEC_ALLREG_MODE.
237 (vec_merge_with_clobber): Likewise.
238 (vec_merge_with_vcc): Likewise.
239 (mov<mode>): Likewise.
240 (mov<mode>_unspec): Likewise.
241 (*mov<mode>): Change to VEC_ALL1REG_MODE.
242 (mov<mode>_exec): Likewise.
243 (*mov<mode>_exec_match): Likewise.
244 (mov<mode>_sgprbase): Likewise.
245 (reload_in<mode>): Change to VEC_ALLREG_MODE.
246 (reload_out<mode>): Likewise.
247 (scalar address splits): Likewise.
248 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
249 (vec_set<mode>): Change to VEC_ALLREG_MODE.
250 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
251 (vec_duplicate<mode><exec>): Likewise.
252 (vec_extract<mode><scalar_mode>): Likewise.
253 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
254 (gather_load<mode>): Likewise.
255 (gather<mode>_exec): Likewise.
256 (gather<mode>_expr<exec>): Likewise.
257 (gather<mode>_insn_1offset<exec>): Likewise.
258 (gather<mode>_insn_1offset_ds<exec>): Likewise.
259 (gather<mode>_insn_2offsets<exec>): Likewise.
260 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
261 (VEC_INT_MODE): Remove V64QI and V64HI.
262 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
263 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
264 VEC_ALL1REG_MODE.
265 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
266 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
267 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
268 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
269 (maskstore<mode>di): Likewise.
270 (mask_gather_load<mode>): Likewise.
271 (mov_from_lane63_<mode>): Likewise.
272 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
273 and V64HImode vectorization.
274 (gcn_related_vector_mode): New function.
275 (TARGET_VECTORIZE_RELATED_MODE): New define.
276
277 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
278 Kwok Cheung Yeung <kcy@codesourcery.com>
279
280 * omp-low.c (lower_omp_target): For optional arguments, deref once
281 more to obtain the type.
282
283 2019-12-06 Richard Biener <rguenther@suse.de>
284
285 * match.pd (nop_convert): Remove empty match. Use nop_convert?
286 everywhere.
287
288 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
289
290 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
291 for empty vectors. Avoid using ordered_remove and instead
292 shuffle the vector as we go.
293
294 2019-12-06 Richard Biener <rguenther@suse.de>
295
296 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
297 VIEW_CONVERT{0,1,2}.
298 (expr::opt_grp): Add and initialize.
299 (lower_opt_convert): Rename to ...
300 (lower_opt): ... and work on opt_grp, simply switching operations
301 from being optional to being present or not.
302 (has_opt_convert): Rename to ...
303 (has_opt): ... and adjust.
304 (parser::parse_operation): Return the optional opt_grp,
305 remove special-casing of conditional operations and more generally
306 parse [digit]'?'.
307 (parser::parse_expr): Stick on the parsed opt_grp and perform
308 rough verification.
309 (parser::parse_for): Remove now unnecessary code.
310 (main): Likewise.
311 * doc/match-and-simplify.texi: Mention ? now works on all
312 unary operations and also match predicates.
313
314 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
315
316 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
317 functions, not inline clones.
318
319 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
320
321 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
322
323 2019-12-06 Richard Biener <rguenther@suse.de>
324
325 * genmatch.c (c_expr::gen_transform): Emit newlines from line
326 number changes rather than after every semicolon.
327
328 2019-12-06 Richard Biener <rguenther@suse.de>
329
330 PR tree-optimization/92819
331 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
332 into the last lane. For two-element vectors try inserting
333 into the last lane when inserting into the first fails.
334
335 2019-12-06 Jakub Jelinek <jakub@redhat.com>
336
337 * common.opt (fprofile-partial-training): Terminate description with
338 full stop.
339
340 2019-12-05 Martin Sebor <msebor@redhat.com>
341
342 PR middle-end/92622
343 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
344 left uninitialized by get_addr_base_and_unit_offset on failure.
345
346 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
347
348 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
349 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
350 (detect_type_change): Likewise.
351 (detect_type_change_ssa): Likewise.
352 (ipa_analyze_virtual_call_uses): Update.
353
354 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
355
356 * config/nios2/linux.h (LINK_EH_SPEC): Define.
357
358 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
359
360 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
361
362 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
363
364 * cgraphclones.c (localize_profile): New function.
365 (cgraph_node::create_clone): Use it for partial profiles.
366 * common.opt (fprofile-partial-training): New flag.
367 * doc/invoke.texi (-fprofile-partial-training): Document.
368 * ipa-cp.c (update_profiling_info): For partial profiles do not
369 set function profile to zero.
370 * profile.c (compute_branch_probabilities): With partial profile
371 watch if edge count is zero and turn all probabilities to guessed.
372 (compute_branch_probabilities): For partial profiles do not apply
373 profile when entry count is zero.
374 * tree-profile.c (tree_profiling): Only do value_profile_transformations
375 when profile is read.
376
377 2019-12-05 Sudakshina Das <sudi.das@arm.com>
378
379 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
380 check from if condition.
381
382 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
383
384 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
385 and Fortran's optional arguments, unconditionally add the is-present
386 condition before the libgomp call.
387
388 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
389
390 PR middle-end/92768
391 * tree-core.h (OEP_BITWISE): New flag.
392 * fold-const.c (operand_compare::operand_equal_p): Handle it.
393 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
394
395 2019-12-05 Richard Biener <rguenther@suse.de>
396
397 PR middle-end/92818
398 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
399 heuristics on what don't care element to choose.
400 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
401
402 2019-12-05 Martin Liska <mliska@suse.cz>
403
404 PR gcov-profile/92817
405 * coverage.c (build_gcov_exit_decl): Remove superfluous
406 void_type_node.
407
408 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
409
410 * config/msp430/msp430.md (cbranch<mode>4): Use
411 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
412 dest operand of CMP instruction.
413 (cbranchpsi4_real): Likewise.
414 (cbranchqi4_real): Likewise.
415 (cbranchhi4_real): Likewise.
416 (cbranchpsi4_reversed): Likewise.
417 (cbranchqi4_reversed): Likewise.
418 (cbranchhi4_reversed): Likewise.
419
420 2019-12-05 Richard Biener <rguenther@suse.de>
421
422 PR tree-optimization/92803
423 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
424 invariant vector construction.
425
426 2019-12-05 Martin Liska <mliska@suse.cz>
427
428 PR gcov-profile/91971
429 * coverage.c (coverage_init): Mangle full path
430 only when -fprofile-dir is used.
431
432 2019-12-05 Jakub Jelinek <jakub@redhat.com>
433
434 PR target/92791
435 * config/i386/i386.md (movstrict<mode>): Move test for
436 TARGET_PARTIAL_REG_STALL and not optimizing for size from
437 expander's condition to the body - FAIL; in that case.
438
439 2019-12-03 Martin Sebor <msebor@redhat.com>
440
441 PR middle-end/91582
442 * builtins.c (gimple_call_alloc_size): New function.
443 (compute_objsize): Add argument. Call gimple_call_alloc_size.
444 Handle variable offsets and indices.
445 * builtins.h (gimple_call_alloc_size): Declare.
446 (compute_objsize): Add argument.
447 * gimple-ssa-warn-restrict.c: Remove assertions.
448 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
449
450 2019-12-04 Julian Brown <julian@codesourcery.com>
451
452 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
453
454 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
455
456 PR bootstrap/92661
457 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
458 rs6000.h.
459 (altivec_overloaded_builtins): Move to rs6000-call.c.
460 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
461 rs6000-c.c.
462 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
463 (altivec_overloaded_builtins): Moved from rs6000-c.c.
464 (rs6000_common_init_builtins): Do no define builtins that overload
465 builtins that have been disabled.
466
467 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
468
469 * config/arm/arm.c (arm_option_override_internal):
470 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
471
472 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
473
474 * config/aarch64/aarch64.c
475 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
476 (thunderx_tunings): Likewise.
477 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
478 (thunderx2t99_tunings): Likewise.
479 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
480 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
481
482 2019-12-04 Richard Biener <rguenther@suse.de>
483
484 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
485 empty CTOR and memset partial-def registering. Take advantage
486 of fancy offset analysis in memset handling.
487
488 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
489
490 * fold-const.c (native_encode_vector_part): Handle
491 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
492 (native_decode_vector_tree): Delete, moving the bulk of the code to...
493 (native_interpret_vector_part): ...this new function. Use a pointer
494 and length instead of a vec<> and start index.
495 (native_interpret_vector): Use native_interpret_vector_part.
496 (fold_view_convert_vector_encoding): Likewise.
497
498 2019-12-04 Richard Biener <rguenther@suse.de>
499
500 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
501 non-constant defs in the most trivial way.
502 (vn_reference_lookup_3): Also push down SSA partial defs.
503
504 2019-12-04 Martin Liska <mliska@suse.cz>
505
506 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
507 Initialize count of newly created BB.
508
509 2019-12-04 Jakub Jelinek <jakub@redhat.com>
510
511 PR tree-optimization/92734
512 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
513 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
514
515 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
516
517 PR target/92760
518 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
519 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
520
521 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
522
523 * ipa-fnsummary.c: Include tree-into-ssa.h.
524 (compute_fn_summary): Call update_ssa.
525
526 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
527
528 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
529 is set only for symbol in comdat group.
530 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
531
532 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
533
534 * cgraph.c: Include tree-into-ssa.h
535 (cgraph_node::get_body): Call update_ssa.
536 * cgraphunit.c (cgraph_node::expand): Likewise.
537 * lto-streamer-in.c (input_function): Do not call update_ssa.
538
539 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
540
541 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
542 an array element size if array_element_size is already an invariant.
543 Similarly don't gimplify and install a field offset if
544 component_ref_field_offset is already an invariant.
545
546 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
547
548 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
549 with POLY_INT_CST size is made to a fixed-size object, force the
550 object to live in memory.
551
552 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
553
554 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
555 for the data mode.
556
557 2019-12-03 Richard Biener <rguenther@suse.de>
558
559 PR tree-optimization/92758
560 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
561 operation on uniform vectors.
562
563 2019-12-03 Richard Biener <rguenther@suse.de>
564
565 PR tree-optimization/92645
566 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
567 from or to a properly aligned register variable.
568
569 2019-12-03 Matthias Klose <doko@ubuntu.com>
570
571 * Makefile.in (SOURCES): Add doc/lto-dump.1.
572 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
573 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
574
575 2019-12-03 Richard Biener <rguenther@suse.de>
576
577 PR tree-optimization/92751
578 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
579 when a clobber ends up in the partial-def vector.
580 (vn_reference_lookup_3): Let clobbers be handled by the
581 assignment from CTOR handling.
582
583 2019-12-03 Jakub Jelinek <jakub@redhat.com>
584
585 PR tree-optimization/92734
586 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
587 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
588 inner subtraction.
589
590 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
591 Jakub Jelinek <jakub@redhat.com>
592
593 PR target/92744
594 * config/i386/i386.md (peephole2 for *swap<mode>): Use
595 general_reg_operand predicates instead of register_operand.
596
597 2019-12-03 Richard Biener <rguenther@suse.de>
598
599 PR tree-optimization/92645
600 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
601 a full def of a vector via a BIT_INSERT_EXPR.
602
603 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
604
605 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
606 static.
607 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
608 decl.
609
610 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
611
612 PR middle-end/92741
613 * fold-const.c (fold_convertible_p): Check vector types more
614 thoroughly.
615
616 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
617
618 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
619 (aarch64_expand_mov_immediate): Use it when attempting to measure
620 the length of an SVE vector.
621 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
622 SVE is enabled.
623
624 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
625
626 * config/aarch64/aarch64-sve-builtins.h
627 (gimple_folder::force_vector): Declare.
628 * config/aarch64/aarch64-sve-builtins.cc
629 (gimple_folder::force_vector): New function.
630 * config/aarch64/aarch64-sve-builtins-base.cc
631 (svcmp_impl::fold): Likewise.
632 (svdup_impl::fold): Handle svdup_z too.
633
634 2019-12-02 Martin Liska <mliska@suse.cz>
635
636 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
637 function.
638 (debug_tree_odr_name): New.
639 * ipa-utils.h (get_odr_name_for_type): New.
640
641 2019-12-02 Richard Biener <rguenther@suse.de>
642
643 PR tree-optimization/92742
644 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
645 touch the def-type but verify it is consistent with the
646 original stmts.
647
648 2019-12-02 Jakub Jelinek <jakub@redhat.com>
649
650 PR tree-optimization/92712
651 * match.pd ((A * B) +- A -> (B +- 1) * A,
652 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
653 even when we don't know anything about range of A, but do know
654 something about range of B and the simplification won't introduce
655 new UB.
656
657 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
658
659 PR ipa/92133
660 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
661 (ipa-cp-min-recursive-probability): Likewise.
662 * params.opt (ipa-cp-max-recursive-depth): New.
663 (ipa-cp-min-recursive-probability): Likewise.
664 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
665 val_p and unlimited.
666 (self_recursively_generated_p): New function.
667 (get_val_across_arith_op): Likewise.
668 (propagate_vals_across_arith_jfunc): Add constant propagation for
669 self-recursive function.
670 (incorporate_penalties): Do not penalize pure self-recursive function.
671 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
672 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
673 (get_info_about_necessary_edges): Relax hotness check for edge to
674 self-recursive function.
675 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
676
677 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
678
679 PR target/92499
680
681 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
682 objects of flexible types to be small if they have internal linkage
683 or are declared extern.
684 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
685 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
686 instead of the size of the object initializer.
687 * tree.c (flexible_array_type_p): Move from C front end, and
688 generalize to handle fields in non-C structures.
689 * tree.h (flexible_array_type_p): Declare.
690
691 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
692
693 * profile-count.h (profile_count::operator<): Use IPA value for
694 comparsion.
695 (profile_count::operator>): Likewise.
696 (profile_count::operator<=): Likewise.
697 (profile_count::operator>=): Likewise.
698 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
699
700 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
701
702 * ipa-inline.c (compute_max_insns): Return int64_t.
703 (inline_small_functions): Simplify.
704
705 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
706
707 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
708 scaling happen.
709
710 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
711
712 * cgraph.h (symtab_node): Add symver flag.
713 * cgraphunit.c (process_symver_attribute): New.
714 (process_common_attributes): Use process_symver_attribute.
715 * lto-cgraph.c (lto_output_node): Stream symver.
716 (lto_output_varpool_node): Stream symver.
717 (input_overwrite_node): Stream symver.
718 (input_varpool_node): Stream symver.
719 * output.h (do_assemble_symver): Decalre.
720 * symtab.c (symtab_node::dump_base): Dump symver.
721 (symtab_node::verify_base): Verify symver.
722 (symtab_node::resolve_alias): Handle symver.
723 * varasm.c (do_assemble_symver): New function.
724 * varpool.c (varpool_node::assemble_aliases): Use it.
725 * doc/extend.texi: (symver attribute): Document.
726 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
727
728 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
729
730 * target.h (type_context_kind): New enum.
731 (verify_type_context): Declare.
732 * target.def (verify_type_context): New target hook.
733 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
734 * doc/tm.texi: Regenerate.
735 * tree.c (verify_type_context): New function.
736 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
737 Declare.
738 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
739 New function.
740 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
741 (TARGET_VERIFY_TYPE_CONTEXT): Define.
742
743 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
744
745 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
746 * cgraph.h (cgraph_node): Add unit_id and
747 merged_extern_inline.
748 (symbol_table): Add max_unit.
749 (symbol_table::symbol_table): Initialize it.
750 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
751 merged_comdat, merged_extern_inline.
752 (cgraph_node::create_clone): Likewise.
753 (cgraph_node::create_version_clone): Likewise.
754 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
755 calls.
756 * ipa-fnsummary.h (cross_module_call_p): New inline function.
757 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
758 * ipa-inline.c (inline_small_functions): Likewise.
759 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
760 copy merged_comdat and merged_extern_inline.
761 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
762 merged_extern_inline and unit_id.
763 (input_overwrite_node): Stream in these.
764 (input_cgraph_1): Set unit_base.
765 * lto-streamer.h (lto_file_decl_data): Add unit_base.
766 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
767
768 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
769
770 * gcc.c (process_command): Only warn about an ineffective `-x'
771 option if any input files have actually been supplied.
772
773 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
774
775 * doc/install.texi (Options specification): Remove the list of
776 target library subdirectories supporting
777 `--enable-version-specific-runtime-libs'. Document defaults for
778 the option.
779
780 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
781
782 PR rtl-optimization/92283
783 * lra.c (lra): Update reg notes after inheritance sub-pass and
784 before constraint sub-pass.
785
786 2019-11-29 Richard Biener <rguenther@suse.de>
787
788 PR tree-optimization/91003
789 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
790 operand number, avoid handling the non-condition operands of
791 COND_EXPRs as comparisons.
792 (vect_get_constant_vectors): Pass down the operand number.
793 (vect_get_slp_defs): Likewise.
794
795 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
796
797 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
798 generic_expr_could_trap_p to check if the condition of COND_EXPR or
799 VEC_COND_EXPR can trap.
800
801 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
802
803 PR tree-optimization/92677
804 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
805 to zero when dissolving a group of strided accesses.
806
807 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
808
809 PR tree-optimization/92596
810 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
811 operations.
812 (vectorizable_operation): Likewise, instead of relying on
813 vect_get_mask_type_for_stmt to do this.
814 (vect_get_vector_types_for_stmt): Always return a vector type
815 immediately, rather than deferring the choice for boolean results.
816 Use a vector mask type instead of a normal vector if
817 vect_use_mask_type_p.
818 (vect_get_mask_type_for_stmt): Delete.
819 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
820 mask_producers argument and special boolean_type_node handling.
821 (vect_determine_vf_for_stmt): Remove mask_producers argument and
822 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
823 (vect_determine_vectorization_factor): Update call accordingly.
824 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
825 boolean_type_node handling.
826 (vect_slp_analyze_node_operations_1): Likewise.
827
828 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
829
830 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
831 (vect_use_mask_type_p): New function.
832 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
833 mask precision to the pattern statement.
834 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
835 and use it to initialize the new stmt's mask precision.
836 (search_type_for_mask_1): Delete.
837 (search_type_for_mask): Replace with...
838 (integer_type_for_mask): ...this new function. Use the information
839 cached in the stmt_vec_info.
840 (vect_recog_bool_pattern): Update accordingly.
841 (build_mask_conversion): Pass the scalar type associated with the
842 mask type to append_pattern_def_seq.
843 (vect_recog_mask_conversion_pattern): Likewise. Call
844 integer_type_for_mask instead of search_type_for_mask.
845 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
846 of search_type_for_mask.
847 (possible_vector_mask_operation_p): New function.
848 (vect_determine_mask_precision): Likewise.
849 (vect_determine_stmt_precisions): Call it.
850
851 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
852
853 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
854 the slp_tree parameter with a group size parameter.
855 (vect_get_mask_type_for_stmt): Likewise.
856 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
857 (vect_get_mask_type_for_stmt): Likewise.
858 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
859 call accordingly.
860
861 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
862
863 * tree-vect-stmts.c (vectorizable_operation): Punt early
864 on codes that are handled elsewhere.
865
866 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
867
868 * doc/sourcebuild.texi (vect_bool_cmp): Document.
869 * tree-vect-patterns.c (search_type_for_mask_1): If neither
870 operand to a boolean comparison is a natural vector mask,
871 handle both operands like normal integers instead.
872
873 2019-11-29 Richard Biener <rguenther@suse.de>
874
875 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
876 out early for too large objects.
877
878 2019-11-29 Martin Jambor <mjambor@suse.cz>
879
880 PR ipa/92476
881 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
882 the summary only if the summary exists.
883 (find_more_scalar_values_for_callers_subset): Check node_dead in
884 the summary only if the summary exists.
885 (ipcp_store_bits_results): Ignore nodes without lattices.
886 (ipcp_store_vr_results): Likewise.
887 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
888 header files required by them.
889 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
890
891 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
892
893 PR tree-optimization/92710
894 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
895 vector mask arguments.
896
897 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
898
899 * profile-count.c (profile_count::to_cgraph_frequency,
900 profile_count::to_sreal_scale): Check for compaibility of counts.
901 * profile-count.h (compatible_p): Make public; add checking for
902 global0 versus global types.
903 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
904
905 2019-11-29 Richard Biener <rguenther@suse.de>
906
907 PR tree-optimization/92715
908 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
909 out for uniform vectors and source vectors with less elements
910 than the destination.
911
912 2019-11-29 Martin Liska <mliska@suse.cz>
913
914 PR lto/91574
915 * ipa-devirt.c (types_same_for_odr): Check for existence
916 of TYPE_NAMEs first.
917
918 2019-11-29 Richard Biener <rguenther@suse.de>
919
920 PR tree-optimization/92704
921 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
922 in loops performing only loads.
923
924 2019-11-29 Julian Brown <julian@codesourcery.com>
925
926 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
927 BT_DFLOAT128_PTR) Remove.
928 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
929 TI_DFLOAT128_PTR_TYPE): Remove.
930 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
931 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
932 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
933 dfloat128_ptr_type_node): Remove macros.
934
935 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
936
937 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
938 formatting.
939 (*movdi_internal64): Ditto.
940
941 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
942
943 PR target/92602
944 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
945 indexed_or_indirect_operand to be memory_operand.
946 (bswap<mode>2_store for HSI): Ditto.
947 (bswapdi2_load): Ditto.
948 (bswapdi2_store): Ditto.
949
950 2019-11-28 Martin Liska <mliska@suse.cz>
951
952 PR debug/46558
953 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
954 headers for translation.
955
956 2019-11-28 Martin Liska <mliska@suse.cz>
957
958 PR lto/92609
959 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
960 consistently.
961
962 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
963
964 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
965 checks.
966
967 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
968
969 * profile-count.c (profile_count::combine_with_ipa_count): Return
970 uninitialized count if called on ininitialized count.
971
972 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
973
974 * ipa-inline-transform.c (inline_transform): Scale profile before
975 redirecting.
976
977 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
978
979 * profile-count.h (profile_count::max): Work on profiles of different
980 type.
981 (profile_count::apply_scale): Be sure that ret is not local or global0
982 type if num is global.
983
984 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
985
986 * profile-count.h (profile_count::max): Work on profiles of different
987 type.
988 (profile_count::apply_scale): Be sure that ret is not local or global0
989 type if num is global.
990
991 2019-11-28 Martin Jambor <mjambor@suse.cz>
992
993 PR ipa/92697
994 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
995 ifunc_resolvers.
996 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
997 Removed trailig whitespace.
998
999 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1000
1001 * profile-count.h (profile_count::combine_with_ipa_count_within):
1002 Declare.
1003 * profile-count.c (profile_count::combine_with_ipa_count_within):
1004 New.
1005 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1006 it.
1007
1008 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1009
1010 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1011 of counters are done same way.
1012
1013 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1014
1015 * ipa-cp.c (update_profiling_info): Fix scaling.
1016
1017 2019-11-28 Richard Biener <rguenther@suse.de>
1018
1019 PR tree-optimization/92645
1020 * tree-inline.c (remap_gimple_stmt): When the return value
1021 is not wanted, elide GIMPLE_RETURN.
1022
1023 2019-11-28 Richard Biener <rguenther@suse.de>
1024
1025 PR tree-optimization/92645
1026 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1027 conversions inside a mode class. Remove restriction on
1028 preserving the element size.
1029 (simplify_vector_constructor): Deal with the above and for
1030 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1031 and VEC_PACK_TRUNC_EXPR.
1032
1033 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1034
1035 Must use push insn to pass varargs arguments of DFmode because
1036 otherwise the middle-end generates wrong code.
1037
1038 PR target/92055
1039 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1040
1041 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1042
1043 PR tree-optimization/92691
1044 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1045 in function comment.
1046 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1047 calls, return !handle_printf_call rather than always returning true.
1048 (check_and_optimize_stmt): Describe return value meaning in function
1049 comment. Formatting fix.
1050
1051 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1052
1053 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1054 combination of globa0 and global counters..
1055
1056 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1057
1058 PR target/92566
1059 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1060 by VECTOR_UNIT_NONE_P instead.
1061
1062 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1063
1064 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1065 Refine VF to VF_AVX512VL.
1066
1067 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1068
1069 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1070 (movdi_internal64): Reformat.
1071
1072 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1073
1074 PR bootstrap/92661
1075 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1076 builtin if we don't have an actual type.
1077 (builtin_function_type): If the builtin function uses a DFP type
1078 and decimal float has been disabled, then return NULL_TREE.
1079
1080 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1081
1082 PR rtl-optimization/92510
1083 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1084 of comparison into a comparison with different mode if both imode and
1085 omode are scalar integral modes.
1086
1087 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1088
1089 PR rtl-optimization/90007
1090 * recog.c (constrain_operands): Permit hard registers too for
1091 memory when LRA is used.
1092
1093 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1094
1095 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1096 between Coldfire and regular m68k.
1097 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1098
1099 2019-11-27 Richard Biener <rguenther@suse.de>
1100
1101 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1102 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1103 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1104 * optabs-tree.c (supportable_convert_operation): Do not call
1105 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1106 * optabs-tree.h (supportable_convert_operation): Adjust.
1107 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1108 * doc/tm.texi: Regenerate.
1109 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1110 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1111 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1112 unused decl parameter and adjust.
1113 (vect_create_vectorized_promotion_stmts): Likewise.
1114 (vectorizable_conversion): Adjust.
1115
1116 2019-11-27 Richard Biener <rguenther@suse.de>
1117
1118 PR tree-optimization/92690
1119 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1120 converting elements not originally converted.
1121
1122 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1123
1124 PR middle-end/92463
1125 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1126 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1127 mpfr_rnd_t instead of mp_rnd_t.
1128 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1129 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1130 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1131 Use mpfr_exp_t instead of mp_exp_t.
1132 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1133 MPFR_RNDx instead of GMP_RNDx.
1134 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1135 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1136 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1137 of mp_rnd_t and remove MPFR_RNDx poisoning.
1138 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1139
1140 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1141
1142 PR tree-optimization/91790
1143 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1144 DR for vect_setup_realignment when first_stmt_info is different
1145 from first_stmt_info_for_drptr.
1146
1147 2019-11-27 Richard Biener <rguenther@suse.de>
1148
1149 PR tree-optimization/92645
1150 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1151 CTORs with just a subset of the original vectors.
1152
1153 2019-11-27 Richard Biener <rguenther@suse.de>
1154
1155 PR middle-end/92674
1156 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1157 edges and instead record blocks in bitmap.
1158 (gimple_expand_calls_inline): Adjust.
1159 (fold_marked_statements): Delay EH cleanup until all folding is
1160 done.
1161 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1162 inlining finished.
1163
1164 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1165
1166 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1167 LRA is enabled.
1168 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1169 disabled.
1170
1171 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1172
1173 PR debug/92664
1174 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1175
1176 2019-11-26 Martin Sebor <msebor@redhat.com>
1177
1178 PR tree-optimization/92683
1179 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1180 inadvertently removed in a previous change. Rename local variable
1181 for clarity.
1182
1183 2019-11-26 Richard Biener <rguenther@suse.de>
1184
1185 PR middle-end/92669
1186 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1187 NULL pre_order.
1188
1189 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1190
1191 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1192
1193 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1194
1195 PR tree-optimization/92644
1196 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1197 next to INTEGER_CST checks.
1198
1199 2019-11-26 Richard Biener <rguenther@suse.de>
1200
1201 PR tree-optimization/92645
1202 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1203 do not build the operation from scalars if the operand is.
1204
1205 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1206
1207 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1208 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1209 definitions.
1210
1211 2019-11-25 Martin Liska <mliska@suse.cz>
1212
1213 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1214 up used dump message.
1215
1216 2019-11-25 Martin Liska <mliska@suse.cz>
1217
1218 PR bootstrap/92653
1219 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1220 too strict checking assert.
1221
1222 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1223
1224 PR c/91985
1225 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1226 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1227 error_mark_node if corresponding global tree node is NULL.
1228 * tree.c (build_common_tree_nodes): Do not initialize
1229 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1230 decimal floating-point not supported.
1231
1232 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1233
1234 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1235 types.
1236
1237 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1238
1239 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1240 Replace code for non-CONST_INT constants with gcc_unreachable.
1241 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1242 compare and test.
1243 (CMPMODE): New mode_iterator.
1244 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1245 cbranch<mode>4.
1246 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1247 cstore<mode>4.
1248 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1249 operand.
1250 (bit test insns patterns): Use nonimmediate_operand, not
1251 register_operand, for source operands that allow memory in
1252 their constraints.
1253 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1254 Use register_operand, not nonimmediate_operand, for the
1255 destinations.
1256 (DBCC): New mode_iterator.
1257 (dbcc peepholes): Use it to reduce duplication.
1258 (trap): Use const_true_rtx, not const1_rtx.
1259 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1260 from m68k_subword_comparison_operand and changed to handle
1261 SImode.
1262
1263 PR target/91851
1264 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1265 declaration.
1266 (m68k_init_cc): New declaration.
1267 (m68k_output_compare_di, m68k_output_compare_si)
1268 (m68k_output_compare_hi, m68k_output_compare_qi)
1269 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1270 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1271 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1272 m68k_output_branch_float, m68k_output_branch_float_rev):
1273 Likewise.
1274 (valid_dbcc_comparison_p_2, flags_in_68881)
1275 (output_btst): Remove declaration.
1276 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1277 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1278 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1279 (flags_compare_op0, flags_compare_op1, flags_operand1,
1280 flags_operand2, flags_valid): New static variables.
1281 (m68k_find_flags_value, m68k_init_cc): New functions.
1282 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1283 remember_compare_flags): New static functions.
1284 (output_dbcc_and_branch): New argument CODE. Use it, and add
1285 PLUS and MINUS to the possible codes. All callers changed.
1286 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1287 and INSN arguments, add CODE arg. Return the comparison code
1288 to use. All callers changed. Use CODE instead of
1289 next_insn_tests_no_inequality, and replace cc_status management
1290 with changing the return code.
1291 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1292 RTX_COMPARE or RTX_COMM_COMPARE.
1293 (output_move_simode, output_move_qimode): Call
1294 handle_flags_for_move.
1295 (notice_update_cc): Delete function.
1296 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1297 m68k_output_compare_hi, m68k_output_compare_qi,
1298 m68k_output_compare_fp, m68k_output_branch_integer,
1299 m68k_output_branch_integer_rev, m68k_output_scc,
1300 m68k_output_branch_float, m68k_output_branch_float_rev,
1301 m68k_output_scc_float): New functions.
1302 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1303 once at the start, and set flags_valid and flags_operand1 if the
1304 flags are usable.
1305 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1306 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1307 definitions.
1308 (CC_STATUS_INIT): Define.
1309 * config/m68k/m68k.md (flags_valid): New define_attr.
1310 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1311 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1312 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1313 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1314 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1315 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1316 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1317 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1318 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1319 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1320 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1321 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1322 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1323 ctrapqi4, conditional_trap): Delete patterns.
1324 (cbranchdi4_insn): New pattern.
1325 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1326 test high part only. When testing EQ or NE, generate beq0_di
1327 and bne0_di patterns directly.
1328 (cstoredi4): When testing LT or GE, test high part only.
1329 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1330 patterns.
1331 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1332 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1333 cmp2_cf_predicate): New define_mode_attrs.
1334 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1335 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1336 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1337 New patterns.
1338 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1339 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1340 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1341 New patterns.
1342 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1343 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1344 Likewise.
1345 (BTST): New define_mode_iterator.
1346 (btst_predicate, btst_constraint, btst_range): New
1347 define_mode_attrs.
1348 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1349 patterns.
1350 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1351 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1352 patterns): Set attr "flags_valid".
1353 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1354 management. Set attr "flags_valid".
1355 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1356 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1357 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1358 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1359 manual CC_STATUS management.
1360 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1361 unnamed strict_lowpart subhi and subqi patterns): Set attr
1362 "flags_valid".
1363 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1364 Remove code to operate on address regs and assert the case
1365 does not occur.
1366 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1367 manual CC_STATUS_INIT.
1368 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1369 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1370 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1371 one_cmplqi2, unnamed strict_lowpart patterns
1372 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1373 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1374 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1375 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1376 CC_STATUS_INIT.
1377 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1378 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1379 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1380 unnamed strict_low_part patterns for HI and
1381 QI versions): Set attr "flags_valid".
1382 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1383 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1384 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1385 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1386 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1387 (various unnamed peepholes): Adjust compare/branch sequences
1388 for new cbranch patterns.
1389 (dbcc peepholes): Likewise, and output the comparison here
1390 as well.
1391 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1392 (fp_src_operand): Allow constant zero.
1393 (address_reg_operand): New predicate.
1394
1395 * rtl.h (inequality_comparisons_p): Remove declaration.
1396 * recog.h (next_insn_tests_no_inequality): Likewise.
1397 * rtlanal.c (inequality_comparisons_p): Delete function.
1398 * recog.c (next_insn_tests_no_inequality): Likewise.
1399
1400 2019-11-25 Richard Biener <rguenther@suse.de>
1401
1402 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1403 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1404 properly re-building the visited hash-map for each lane.
1405
1406 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1407
1408 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1409 gcn_md_reorg): Remove unused variables.
1410 (gcn_emutls_var_init): Add missing (but unreachable) return
1411 to silence warning.
1412 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1413 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1414 an uninitialized variable.
1415
1416 2019-11-25 Martin Jambor <mjambor@suse.cz>
1417
1418 PR ipa/92109
1419 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1420 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1421 (cgraph_materialize_clone): Move removel from clone tree to the
1422 the new method and use it instead.
1423 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1424 bodies of clones, also remove it from the clone tree.
1425
1426 2019-11-25 Martin Jambor <mjambor@suse.cz>
1427
1428 PR ipa/91956
1429 * ipa-sra.c (process_isra_node_results): Put the new node to the
1430 same comdat group as the original node.
1431
1432 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1433
1434 Build double32 / long-double32 multilibs if needed.
1435
1436 PR target/92055
1437 * config/avr/t-avr:
1438 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1439 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1440 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1441 tm_defines and pass to genmultilib.awk.
1442 * config/avr/genmultilib.awk: Use these variables to add double32
1443 and / or long-double32 multilib(s) as needed.
1444 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1445
1446 2019-11-25 Richard Biener <rguenther@suse.de>
1447
1448 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1449 loop body, defaulted to NULL.
1450 (single_likely_exit): Add exit vector argument
1451 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1452 (number_of_iterations_exit): Likewise.
1453 (number_of_iterations_exit_assumptions): Likewise.
1454 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1455 if not NULL.
1456 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1457 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1458 Compute exit vector around call to single_likely_exit.
1459 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1460 loop body to loop_only_exit_p.
1461 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1462 caller.
1463 (number_of_iterations_exit_assumptions): Get loop body from caller
1464 if not NULL.
1465 (number_of_iterations_exit): Pass through new loop body arg.
1466 (infer_loop_bounds_from_undefined): Get loop body from caller.
1467 (estimate_numbers_of_iterations): Compute loop body once.
1468
1469 2019-11-25 Richard Biener <rguenther@suse.de>
1470
1471 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1472 auto_bb_flag instead of an sbitmap for visited handling.
1473
1474 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1475
1476 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1477 iterator.
1478 (vector_fp_comparison_complex): Likewise.
1479 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1480 define_and_split.
1481 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1482 Likewise.
1483 (vector_lt<mode> for VEC_F): Refactor with
1484 vector_fp_comparison_simple.
1485 (vector_le<mode> for VEC_F): Likewise.
1486 (vector_unge<mode> for VEC_F): Likewise.
1487 (vector_unle<mode> for VEC_F): Likewise.
1488 (vector_ne<mode> for VEC_F): Likewise.
1489 (vector_ungt<mode> for VEC_F): Likewise.
1490 (vector_unlt<mode> for VEC_F): Likewise.
1491 (vector_ltgt<mode> for VEC_F): Refactor with
1492 vector_fp_comparison_complex.
1493 (vector_ordered<mode> for VEC_F): Likewise.
1494 (vector_uneq<mode> for VEC_F): Likewise.
1495 (vector_unordered<mode> for VEC_F): Likewise.
1496
1497 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1498
1499 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1500 COMPARE, representing an overflow detection.
1501
1502 * combine.c (combine_instructions): Record costs for jumps.
1503
1504 * combine.c (can_combine_p): Allow autoinc in jumps.
1505
1506 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1507
1508 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1509 * doc/invoke.texi (max-inline-insns-single-O2,
1510 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1511 early-inlining-insns-O2): Remove documentation.
1512 * ipa-fnsummary.c (analyze_function_body,
1513 compute_fn_summary): Use opt_for_fn when accessing parameters.
1514 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1515 inline_insns_auto, can_inline_edge_by_limits_p,
1516 want_early_inline_function_p, big_speedup_p,
1517 want_inline_small_function_p, want_inline_self_recursive_call_p,
1518 recursive_inlining, compute_max_insns, inline_small_functions):
1519 Likewise.
1520 * opts.c (default_options): Add -O3 defaults for
1521 OPT__param_early_inlining_insns_,
1522 OPT__param_inline_heuristics_hint_percent_,
1523 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1524 * params.opt (-param=early-inlining-insns-O2=,
1525 -param=inline-heuristics-hint-percent-O2=,
1526 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1527 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1528 -param=inline-min-speedup=, -param=inline-unit-growth=,
1529 -param=large-function-growth=, -param=large-stack-frame=,
1530 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1531 -param=max-inline-insns-recursive=,
1532 -param=max-inline-insns-recursive-auto=,
1533 -param=max-inline-insns-single=,
1534 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1535 -param=max-inline-recursive-depth=,
1536 -param=max-inline-recursive-depth-auto=,
1537 -param=min-inline-recursive-probability=,
1538 -param=partial-inlining-entry-probability=,
1539 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1540 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1541 Optimization.
1542
1543 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1544
1545 * ipa-fnsummary.c: Fix comment typos.
1546 * ipa-ref.h: Likewise.
1547 * ipa-predicate.h: Likewise.
1548 * ipa-split.c: Likewise.
1549 * ipa-inline-analysis.c: Likewise.
1550 * ipa-predicate.c: Likewise.
1551 * ipa-devirt.c: Likewise.
1552 * ipa-icf.h: Likewise.
1553 * profile-count.c: Likewise.
1554 * ipa-icf.c: Likewise.
1555 (sem_function::equals_wpa): Fix typos in dump messages.
1556 * ipa-icf-gimple.h: Fix comment typos.
1557 * ipa-inline-transform.c: Likewise.
1558 * ipa-polymorphic-call.c: Likewise.
1559 * ipa-fnsummary.h: Likewise.
1560 * ipa-inline.c: Likewise.
1561 (dump_inline_stats): Fix typo in debug dump message.
1562 * profile-count.h: Fix comment typos.
1563
1564 PR target/92615
1565 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1566 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1567 register_operand, force x into register before storing it into dest.
1568 Formatting fix.
1569
1570 PR middle-end/83859
1571 * doc/extend.texi (attribute access): Fix a typo.
1572
1573 PR rtl-optimization/92610
1574 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1575 cse_cfg_altered is set, even when tem is 0.
1576 (rest_of_handle_cse_after_global_opts): Likewise.
1577
1578 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1579
1580 PR c++/92458
1581 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1582 tree_hash): Move to ...
1583 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1584 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1585 types.
1586 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1587
1588 PR tree-optimization/92618
1589 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1590 containing the auto_vec and a tree.
1591 (undistribute_bitref_for_vector): Handle the case when element type
1592 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1593 fixes.
1594
1595 2019-11-22 Martin Sebor <msebor@redhat.com>
1596
1597 PR middle-end/83859
1598 * attribs.h (struct attr_access): New.
1599 * attribs.c (decl_attributes): Add an informational note.
1600 * builtins.c (check_access): Make extern. Consistently set no-warning
1601 after issuing a warning. Handle calls through function pointers. Set
1602 no-warning.
1603 * builtins.h (check_access): Declare.
1604 * calls.c (rdwr_access_hash): New type.
1605 (rdwr_map): Same.
1606 (init_attr_rdwr_indices): New function.
1607 (maybe_warn_rdwr_sizes): Same.
1608 (initialize_argument_information): Call init_attr_rdwr_indices.
1609 Call maybe_warn_rdwr_sizes.
1610 (get_size_range): Avoid null argument.
1611 * doc/extend.texi (attribute access): Document new attribute.
1612
1613 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1614
1615 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1616 (ACC_LDS_SIZE): Define.
1617 (OTHER_LDS_SIZE): Define.
1618 (LDS_SIZE): Redefine using above.
1619 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1620
1621 2019-11-22 Martin Sebor <msebor@redhat.com>
1622
1623 PR middle-end/88226
1624 * builtins.c (check_nul_terminated_array): New function.
1625 (fold_builtin_0): Remove declaration.
1626 (fold_builtin_1): Same.
1627 (fold_builtin_2): Same.
1628 (fold_builtin_3): Same.
1629 (fold_builtin_strpbrk): Add argument.
1630 (fold_builtin_strspn): Same.
1631 (fold_builtin_strcspn): Same.
1632 (expand_builtin_strcat): Call it. Remove unused argument.
1633 (expand_builtin_stpncpy): Same.
1634 (expand_builtin_strncat): Same.
1635 (expand_builtin_strncpy): Same. Adjust indentation.
1636 (expand_builtin_strcmp): Same.
1637 (expand_builtin_strncmp): Same.
1638 (expand_builtin_fork_or_exec): Same.
1639 (expand_builtin): Handle more built-ins.
1640 (fold_builtin_2): Add argument.
1641 (fold_builtin_n): Make static. Add argument.
1642 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1643 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1644 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1645 (fold_call_stmt): Pass new argument to fold_builtin_n.
1646 * builtins.h: Correct a comment.
1647 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1648 check_nul_terminated_array.
1649 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1650 check_nul_terminated_array.
1651 (handle_builtin_strchr): Same.
1652 (handle_builtin_string_cmp): Same.
1653
1654 2019-11-22 Martin Sebor <msebor@redhat.com>
1655
1656 PR tree-optimization/92501
1657 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1658 handle unterminated arrays. Rename local variables for clarity.
1659
1660 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1661
1662 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1663 granulated_sgprs according to architecture.
1664
1665 2019-11-22 Jan Hubicka <jh@suse.cz>
1666
1667 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1668 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1669 (memory_block_pool::reduce_free_list): ... this one.
1670 (memory_block_pool::trim): New static function.
1671 * memory-block.h (memory_block_pool::freelist_size): New constant
1672 (memory_block_pool::clear_free_list): Rename to ...
1673 (memory_block_pool::reduce_free_list): ... this one.
1674 (memory_block_pool::trim): Declare.
1675
1676 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1677
1678 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1679 vect_cost_for_stmt.
1680 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1681 here rather than...
1682 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1683
1684 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1685
1686 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1687 (bic_cmp0_noout): New pattern.
1688 (bic_cmp0): Likewise.
1689 (neg_scc_insn): Remove pattern.
1690 (not_scc_insn): Likewise.
1691
1692 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1693
1694 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1695
1696 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1697
1698 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1699 pedwarn instead of warning_at for fallthrough not preceding a case
1700 or default label.
1701
1702 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1703
1704 PR tree-optimization/92608
1705 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1706 of dyn_cast.
1707
1708 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1709
1710 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1711 New predicate.
1712 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1713 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1714 special for FP comparisons that need a cror instruction eventually.
1715 (rs6000_emit_fp_cror): New function.
1716 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1717 instruction, for normal FP modes, with HONOR_NANS.
1718 (rs6000_emit_cbranch): Reformat.
1719 * config/rs6000/rs6000.md (fp_rev): New iterator.
1720 (fp_two): New iterator.
1721 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1722 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1723 *cbranch_2insn: New define_insn_and_split.
1724
1725 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1726
1727 PR tree-optimization/92526
1728 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1729 versioning for alignment if the accesses do not have a consistent
1730 mask, rather than asserting that the masks are consistent.
1731
1732 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1733
1734 PR tree-optimization/92595
1735 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1736 check.
1737 (vectorizable_store, vectorizable_load): Likewise.
1738
1739 2019-11-21 Jan Hubicka <jh@suse.cz>
1740
1741 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1742 (resolve_noninline_speculation, inline_small_functions): Avoid
1743 redundant updates.
1744
1745 2019-11-21 Richard Biener <rguenther@suse.de>
1746
1747 * lra.c (lra_insn_recog_data_pool): New.
1748 (free_insn_recog_data): Adjust.
1749 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1750 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1751
1752 2019-11-21 Richard Biener <rguenther@suse.de>
1753
1754 PR tree-optimization/92596
1755 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1756
1757 2019-11-21 Jan Hubicka <jh@suse.cz>
1758
1759 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1760 ready for some vectors to not be allocated.
1761 (evaluate_properties_for_edge): Document better; make
1762 known_vals and known_aggs caller allocated; avoid determining
1763 values of parameters which are not used.
1764 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1765 known_aggs.
1766 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1767 (do_estimate_edge_size): Likewise.
1768 (do_estimate_edge_hints): Likewise.
1769 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1770 values are not known.
1771 (ipa_release_agg_values): Add option to not release vector itself.
1772 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1773
1774 2019-11-21 Richard Biener <rguenther@suse.de>
1775
1776 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1777 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1778 (loop_iterator::loop_iterator): Adjust.
1779 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1780 (compute_dominance_frontiers): ... this. Hoist invariant
1781 get_immediate_dominator call.
1782 (compute_idf): Use a work-set instead of a work-list for more
1783 optimal iteration order and duplicate avoidance.
1784 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1785 the vector all the time, instead pre-allocate the vector only
1786 once.
1787 (delete_update_ssa): Simplify.
1788 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1789
1790 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1791
1792 PR tree-optimization/91355
1793 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1794 for early_bb scaled count with best_bb count comparison.
1795
1796 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1797 preffer -> prefer.
1798 * ipa-inline.c (edge_badness): Likewise.
1799 * lto-streamer.h (class lto_location_cache): Likewise.
1800 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1801 gratutious -> gratuitous.
1802
1803 2019-11-21 Richard Biener <rguenther@suse.de>
1804
1805 Revert
1806 2019-09-17 Richard Biener <rguenther@suse.de>
1807
1808 PR tree-optimization/91790
1809 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1810 use the correct DR for setting up realignment.
1811
1812 2019-11-21 Richard Biener <rguenther@suse.de>
1813
1814 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1815 (equiv_class_obstack): New.
1816 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1817 (perform_var_substitution): Initialize equiv_class_obstack.
1818 (free_var_substitution_info): Free equiv_class_obstack.
1819
1820 2019-11-20 Jan Hubicka <jh@suse.cz>
1821
1822 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1823 edge growth when callee function is very large.
1824 * ipa-inline.h (estimate_min_edge_growth): New.
1825
1826 2019-11-20 Jan Hubicka <jh@suse.cz>
1827
1828 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1829 negative time in calls summary; correct roundoff errors
1830 leading to negative times.
1831 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1832 if present.
1833 (ipa_update_overall_fn_summary): Add RESET parameter.
1834 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1835 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1836
1837 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1838
1839 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1840 def types for two-operation SLP.
1841
1842 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1843
1844 PR testsuite/92366
1845 * doc/sourcebuild.texi (vect_char_add): Document.
1846
1847 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1848
1849 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1850 * function.c (record_final_call): Record even calls that might
1851 have been in the cgraph.
1852 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1853 callees.
1854
1855 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1856
1857 * configure.ac: Use https for gcc.gnu.org
1858 * configure: Regenerated.
1859 * doc/install.texi: Use https for gcc.gnu.org.
1860 * doc/sourcebuild.texi: Likewise.
1861
1862 2019-11-20 Julian Brown <julian@codesourcery.com>
1863
1864 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1865
1866 2019-11-20 Jan Hubicka <jh@suse.cz>
1867
1868 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1869 parameter and update call_size_time_table.
1870 (ipa_fn_summary::max_size_time_table_size): New constant.
1871 (estimate_calls_size_and_time_1): Break out from ...
1872 (estimate_calls_size_and_time): ... here; implement summary production.
1873 (summarize_calls_size_and_time): New function.
1874 (ipa_call_context::estimate_size_and_time): Bypass
1875 estimate_calls_size_and_time for leaf functions.
1876 (ipa_update_overall_fn_summary): Likewise.
1877 * ipa-fnsummary.h (call_size_time_table): New.
1878 (ipa_fn_summary::account_size_time): Update prototype.
1879
1880 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1881
1882 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1883
1884 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1885
1886 PR85678
1887 * common.opt (fcommon): Change init to 1.
1888 * doc/invoke.texi (-fcommon): Update documentation.
1889
1890 2019-11-20 Jan Hubicka <jh@suse.cz>
1891
1892 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1893 to ordinary array.
1894
1895 2019-11-20 Jan Hubicka <jh@suse.cz>
1896
1897 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1898 Add allocator parameter.
1899 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1900 (fibonacci_heap<K,V>::m_allocator): New.
1901 (fibonacci_heap<K,V>::m_own_allocator): New.
1902 (fibonacci_heap<K,V>::insert): Use allocator.
1903 (fibonacci_heap<K,V>::extract_min): Likewise.
1904 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1905 allocator.
1906 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1907 on stack.
1908 * fibonacci_heap.c: Include alloc-pool
1909 (test_empty_heap): Initialize allocator.
1910 (test_union): Likewise.
1911 * bb-reorder.c: Include alloc-pool.h.
1912 * tracer.c: Inlclude alloc-pool.h.
1913
1914 2019-11-20 Jan Hubicka <jh@suse.cz>
1915
1916 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1917 Preallocate for 32 entries.
1918 (DFS::worklist): Likewise.
1919 (DFS::DFS): Do not initialize sccstack and worklist.
1920 (DFS::~DFS): Do not release sccstack.
1921
1922 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1923
1924 PR target/92573
1925 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1926 Handle UNORDERED if !HONOR_NANS.
1927
1928 2019-11-20 Jan Hubicka <jh@suse.cz>
1929
1930 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1931 (edge_badness): ... here.
1932 (inline_small_functions): Use monotonicity of badness calculation
1933 to avoid redundant updates.
1934
1935 2019-11-20 Richard Biener <rguenther@suse.de>
1936
1937 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1938 constructors we are actually analyzing.
1939 (vect_slp_check_for_constructors): Do not vectorize uniform
1940 constuctors, do not dump here.
1941
1942 2019-11-20 Richard Biener <rguenther@suse.de>
1943
1944 PR tree-optimization/92537
1945 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1946 vectorization validity check...
1947 (vect_slp_analyze_operations): ... here.
1948
1949 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1950
1951 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1952 (make_pass_arc_predicate_delay_insns): Likewise.
1953 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1954 method, remove clone.
1955 (class pass_arc_predicate_delay_insns): Likewise.
1956 (arc_init): Remove registering of ARC specific passes.
1957 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1958 * config/arc/arc-passes.def: New file.
1959
1960 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1961
1962 PR middle-end/90840
1963 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1964 and has a mode that doesn't have corresponding integral type.
1965
1966 PR target/90867
1967 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1968 clear opts->x_ix86_isa_flags{,2} here...
1969 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1970 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1971
1972 PR c/90898
1973 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1974 assertion.
1975 (insert_clobbers_for_var): Fix a typo in function comment.
1976
1977 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1978 Jakub Jelinek <jakub@redhat.com>
1979
1980 PR middle-end/91195
1981 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1982 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1983 load.
1984
1985 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1986
1987 Make 0-series device specs work with older versions of avr-gcc.
1988
1989 PR target/92545
1990 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1991 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1992 <*link_pm_base_address>: Don't write spec.
1993 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1994
1995 2019-11-20 Richard Biener <rguenther@suse.de>
1996
1997 PR c/92088
1998 * builtins.c (compute_objsize): Deal with VLAs.
1999
2000 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2001
2002 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2003 from common code.
2004 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2005 call new function.
2006 (power9_sched_reorder2): Call new function.
2007 (rs6000_sched_reorder2): Likewise.
2008
2009 2019-11-18 Jan Hubicka <jh@suse.cz>
2010
2011 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2012 (estimate_calls_size_and_time): Update.
2013
2014 2019-11-18 Jan Hubicka <jh@suse.cz>
2015
2016 * ipa-inline.c (inlining_speedup): New function.
2017 (edge_badness): Use it.
2018
2019 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2020 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2021
2022 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2023 Mark as not having "likely" version.
2024 * config/mips/mips.md (insn_count): The simd_div instruction with
2025 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2026 (can_delay): Exclude simd_branch.
2027 (defile_delay *): Add simd_branch instructions.
2028 They have one regular delay slot.
2029
2030 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2031
2032 Revert:
2033 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2034
2035 * cse.c (cse_insn): Delete no-op register moves too.
2036 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2037 Take a second comparison to control the value for NE.
2038 (mask_to_comparison): Handle unsigned comparisons.
2039 (simplify_logical_relational_operation): Likewise. Update call
2040 to comparison_to_mask. Handle AND if !HONOR_NANs.
2041 (simplify_binary_operation_1): Call the above for AND too.
2042
2043 2019-11-19 Martin Liska <mliska@suse.cz>
2044
2045 * toplev.c (general_init): Move the call...
2046 (toplev::main): ... here as we need init_options_struct
2047 being called.
2048
2049 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2050
2051 PR target/79262
2052 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2053 vec_to_scalar_cost.
2054
2055 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2056
2057 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2058 (armv7-a): Likewise.
2059 (armv7ve): Likewise.
2060
2061 2019-11-19 Richard Biener <rguenther@suse.de>
2062
2063 PR tree-optimization/92581
2064 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2065 condition reduction chains gather all conditions involved
2066 for computing the index reduction vector.
2067
2068 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2069
2070 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2071 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2072 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2073 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2074 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2075 (aarch64_init_memtag_builtins): New.
2076 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2077 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2078 (aarch64_expand_builtin_memtag): New.
2079 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2080 (AARCH64_BUILTIN_SUBCODE): New macro.
2081 (aarch64_resolve_overloaded_memtag): New.
2082 (aarch64_resolve_overloaded_builtin_general): New. Call
2083 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2084 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2085 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2086 (aarch64_resolve_overloaded_builtin): Call
2087 aarch64_resolve_overloaded_builtin_general.
2088 * config/aarch64/aarch64-protos.h
2089 (aarch64_resolve_overloaded_builtin_general): New declaration.
2090 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2091 (TARGET_MEMTAG): Likewise.
2092 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2093 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2094 (irg, gmi, subp, addg, ldg, stg): New instructions.
2095 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2096 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2097 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2098 (__arm_mte_get_tag): Likewise.
2099 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2100 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2101 * config/arm/types.md (memtag): New.
2102 * doc/invoke.texi (-memtag): Update description.
2103
2104 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2105
2106 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2107 to define __GCC_ASM_FLAG_OUTPUTS__.
2108 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2109 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2110 depending on TARGET_THUMB1.
2111 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2112
2113 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2114
2115 PR target/92549
2116 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2117
2118 PR middle-end/91450
2119 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2120 operand is negative and one non-negative, compare the non-negative
2121 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2122 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2123 and s2 == 0, unless one of them is known to be negative. Remove
2124 tem2 variable, use tem where tem2 has been used before.
2125
2126 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2127
2128 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2129
2130 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR tree-optimization/92557
2133 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2134 vmode rather than asserting it always is.
2135
2136 2019-11-19 Richard Biener <rguenther@suse.de>
2137
2138 PR tree-optimization/92554
2139 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2140 for the actual condition stmt and deal with sign-changes.
2141
2142 2019-11-19 Richard Biener <rguenther@suse.de>
2143
2144 PR tree-optimization/92555
2145 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2146 for non-SLP stmts.
2147
2148 2019-11-19 Martin Liska <mliska@suse.cz>
2149
2150 PR bootstrap/92540
2151 * config/riscv/riscv.c (riscv_address_insns): Initialize
2152 addr in order to remove boostrap -Wmaybe-uninitialized
2153 error.
2154
2155 2019-11-18 Martin Sebor <msebor@redhat.com>
2156
2157 PR tree-optimization/92493
2158 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2159 assignment.
2160
2161 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2162
2163 * cfgloop.c (get_loop_body_in_custom_order): New.
2164 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2165 * tree-loop-distribution.c (class loop_distribution): New.
2166 (bb_top_order_cmp): Remove.
2167 (bb_top_order_cmp_r): New.
2168 (create_rdg_vertices): Move into class loop_distribution.
2169 (stmts_from_loop): Same as above.
2170 (update_for_merge): Same as above.
2171 (partition_merge_into): Same as above.
2172 (get_data_dependence): Same as above.
2173 (data_dep_in_cycle_p): Same as above.
2174 (update_type_for_merge): Same as above.
2175 (build_rdg_partition_for-vertex): Same as above.
2176 (classify_builtin_ldst): Same as above.
2177 (classify_partition): Same as above.
2178 (share_memory_accesses): Same as above.
2179 (rdg_build_partitions): Same as above.
2180 (pg_add_dependence_edges): Same as above.
2181 (build_partition_graph): Same as above.
2182 (merge_dep_scc_partitions): Same as above.
2183 (break_alias_scc_partitions): Same as above.
2184 (finalize_partitions): Same as above.
2185 (distribute_loop): Same as above.
2186 (bb_top_order_init): New method
2187 (bb_top_order_destroy): New method.
2188 (get_bb_top_order_index_size): New method.
2189 (get_bb_top_order_index_index): New method.
2190 (get_bb_top_order_index_index): New method.
2191 (loop_distribution::execute): New method.
2192 (pass_loop_distribution::execute): Instantiate loop_distribution.
2193
2194 2019-11-18 Jan Hubicka <jh@suse.cz>
2195
2196 PR ipa/92508
2197 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2198 caches.
2199 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2200
2201 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2202
2203 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2204 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2205 * doc/md.texi: Document them.
2206 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2207 internal functions.
2208 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2209 * internal-fn.c (check_ptrs_direct): New macro.
2210 (expand_check_ptrs_optab_fn): Likewise.
2211 (direct_check_ptrs_optab_supported_p): Likewise.
2212 (internal_check_ptrs_fn_supported_p): New fuction.
2213 * tree-data-ref.c: Include internal-fn.h.
2214 (create_ifn_alias_checks): New function.
2215 (create_intersect_range_checks): Use it.
2216 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2217 (optab, cmp_op): Handle it.
2218 (raw_war, unspec): New int attributes.
2219 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2220 constants.
2221 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2222 New predicate.
2223 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2224 expander.
2225 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2226 pattern.
2227
2228 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2229
2230 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2231 empty constructors.
2232
2233 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2234
2235 * cse.c (cse_insn): Delete no-op register moves too.
2236 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2237 Take a second comparison to control the value for NE.
2238 (mask_to_comparison): Handle unsigned comparisons.
2239 (simplify_logical_relational_operation): Likewise. Update call
2240 to comparison_to_mask. Handle AND if !HONOR_NANs.
2241 (simplify_binary_operation_1): Call the above for AND too.
2242
2243 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2244
2245 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2246 splitting the main code out into...
2247 (native_encode_vector_part): ...this new function.
2248 (native_decode_vector_tree): New function.
2249 (fold_view_convert_vector_encoding): Likewise.
2250 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2251 to VECTOR_TYPEs.
2252
2253 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2254
2255 * tree-data-ref.c (create_intersect_range_checks_index): If the
2256 alias pair describes simple WAW and WAR dependencies, just check
2257 whether the first B access overlaps later A accesses.
2258 (create_waw_or_war_checks): New function that performs the same
2259 optimization on addresses.
2260 (create_intersect_range_checks): Call it.
2261
2262 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2263
2264 * lra-constraints.c (valid_address_p): Take the operand and a
2265 constraint as argument. If the operand is a MEM and the constraint
2266 is a memory constraint, check whether the eliminated form of the
2267 MEM already satisfies the constraint.
2268 (process_address_1): Update calls accordingly.
2269
2270 2019-11-18 Tom Tromey <tromey@adacore.com>
2271
2272 * doc/tm.texi: Rebuild.
2273 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2274 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2275
2276 2019-11-18 Richard Biener <rguenther@suse.de>
2277
2278 PR tree-optimization/92516
2279 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2280 argument, hoist bst_map creation/destruction to ...
2281 (vect_analyze_slp): ... here, forming a true graph with
2282 SLP instances being the entries.
2283 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2284 (vect_detect_hybrid_slp): Use one visited set for all
2285 graph entries.
2286 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2287 to hash-sets of slp_tree.
2288 (vect_slp_analyze_operations): Likewise.
2289 (vect_bb_slp_scalar_cost): Remove wrapper.
2290 (vect_bb_vectorization_profitable_p): Use one visited set for
2291 all graph entries.
2292 (vect_schedule_slp_instance): Elide bst_map use.
2293 (vect_schedule_slp): Likewise.
2294
2295 2019-11-18 Richard Biener <rguenther@suse.de>
2296
2297 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2298 was vectorized with just external refs fail.
2299
2300 2019-11-18 Martin Liska <mliska@suse.cz>
2301
2302 PR ipa/92525
2303 * ipa-icf.c (sem_function::init): Unset m_checker
2304 at the end of the function.
2305
2306 2019-11-18 Richard Biener <rguenther@suse.de>
2307
2308 PR tree-optimization/92558
2309 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2310 reducting the width of a reduction vector def update new_phis.
2311
2312 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2313
2314 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2315 and s390*-*-linux-musl* targets.
2316 * configure: Regenerate.
2317
2318 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2319
2320 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2321 (MUSL_DYNAMIC_LINKER64): Define.
2322
2323 2019-11-18 Martin Liska <mliska@suse.cz>
2324
2325 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2326 message for an unknown counter.
2327 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2328 (dbg_cnt_process_opt): Remove unreachable code.
2329
2330 2019-11-18 Martin Liska <mliska@suse.cz>
2331
2332 PR ipa/92529
2333 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2334 Compare LHS types of NOP_EXPR.
2335
2336 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2337
2338 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2339 "initial_pass_name" argument -- by running "*clean_state" pass.
2340 Also free the "initial_pass_name" when done.
2341
2342 2019-11-18 Richard Biener <rguenther@suse.de>
2343
2344 PR rtl-optimization/92462
2345 * alias.c (find_base_term): Restrict the look through ANDs.
2346 (find_base_value): Likewise.
2347
2348 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2349
2350 Add support for AVR devices from the 0-series.
2351
2352 PR target/92545
2353 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2354 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2355 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2356 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2357 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2358 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2359 for spec definitions.
2360 * doc/avr-mmcu.texi: Regenerate.
2361
2362 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2363
2364 PR target/92448
2365 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2366 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2367 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2368 (ix86_reassociation_width): Ditto.
2369 * config/i386/i386-options.c (ix86_option_override_internal):
2370 Replace TARGET_AVX128_OPTIAML with
2371 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2372 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2373 (TARGET_AVX128_OPTIMAL): Deleted.
2374 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2375 DEF_TUNE.
2376
2377 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2378
2379 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2380 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2381 just SI.
2382 (cceq_rev_compare): Rename to...
2383 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2384 just SI.
2385 (define_split for <bd>tf_<mode>): Add SImode first argument to
2386 gen_cceq_ior_compare.
2387
2388 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2389
2390 * common/config/powerpcspe: Delete.
2391
2392 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2393
2394 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2395 output in UNSPEC_WRFFR.
2396
2397 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2398
2399 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2400 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2401
2402 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2403
2404 * tree-data-ref.c (create_intersect_range_checks_index)
2405 (create_intersect_range_checks): Print dump messages.
2406
2407 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2408
2409 * tree-data-ref.c (dump_alias_pair): New function.
2410 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2411
2412 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2413
2414 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2415 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2416 merging data references with different steps.
2417 (create_intersect_range_checks_index): Take a
2418 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2419 Bail out if DR_ALIAS_MIXED_STEPS is set.
2420 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2421 instead of two dr_with_seg_lens. Update call to
2422 create_intersect_range_checks_index.
2423 (create_runtime_alias_checks): Update call accordingly.
2424
2425 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2426
2427 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2428 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2429 (dr_with_seg_len_pair_t::sequencing): New enum.
2430 (dr_with_seg_len_pair_t::flags): New member variable.
2431 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2432 parameter and initialize the flags member variable.
2433 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2434 call accordingly.
2435 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2436 Ensure the two data references in an alias pair are in statement
2437 order, if there is a defined order.
2438 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2439 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2440 swapped the references in a dr_with_seg_len_pair_t. OR together
2441 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2442 try to restore the original dr_with_seg_len order, updating the
2443 flags if that fails.
2444
2445 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2446
2447 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2448 swapping the dr_as based on init values until we've decided
2449 whether to merge them.
2450
2451 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2452
2453 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2454 two accesses in each dr_with_seg_len_pair_t before trying to
2455 combine separate dr_with_seg_len_pair_ts.
2456 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2457 that here.
2458 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2459
2460 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2461
2462 * config/aarch64/aarch64-sve.md
2463 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2464 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2465 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2466 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2467 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2468 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2469 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2470 pattern.
2471 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2472 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2473 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2474 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2475
2476 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2477
2478 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2479 (SVE_4HSI): New mode iterators.
2480 (ANY_EXTEND2): New code iterator.
2481 * config/aarch64/aarch64-sve.md
2482 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2483 Extend to...
2484 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2485 ...this, handling extension to partial modes as well as full modes.
2486 Describe the extension as a predicated rather than unpredicated
2487 extension.
2488 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2489 Likewise extend to...
2490 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2491 ...this, making the same adjustments.
2492 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2493 Likewise extend to...
2494 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2495 ...this, making the same adjustments.
2496 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2497 Likewise extend to...
2498 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2499 ...this, making the same adjustments.
2500 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2501 New pattern.
2502 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2503 extension predicate.
2504 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2505 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2506 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2507 Describe the extension as a predicated rather than unpredicated
2508 extension.
2509 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2510 Likewise. Canonicalize to a constant extension predicate.
2511 * config/aarch64/aarch64-sve-builtins-base.cc
2512 (svld1_gather_extend_impl::expand): Add an extra predicate for
2513 the extension.
2514 (svldff1_gather_extend_impl::expand): Likewise.
2515
2516 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2517
2518 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2519 iterators.
2520 * config/aarch64/aarch64-sve.md
2521 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2522 (gather_load<SVE_24:mode><v_int_container>): ...this.
2523 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2524 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2525 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2526 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2527 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2528 New pattern.
2529 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2530 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2531 Allow the nominal extension predicate to be different from the
2532 load predicate.
2533 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2534 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2535
2536 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2537
2538 * config/aarch64/aarch64-sve.md
2539 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2540 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2541 function.
2542 (aarch64_sve_adjust_stmt_cost): Call it.
2543
2544 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2545
2546 * config/aarch64/aarch64-sve.md
2547 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2548 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2549 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2550 Combine into...
2551 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2552 ...this new pattern, handling extension to partial modes as well
2553 as full modes. Describe the extension as a predicated rather than
2554 unpredicated extension.
2555 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2556 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2557 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2558 Combine into...
2559 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2560 ...this new pattern, handling extension to partial modes as well
2561 as full modes. Describe the extension as a predicated rather than
2562 unpredicated extension.
2563 * config/aarch64/aarch64-sve-builtins.cc
2564 (function_expander::use_contiguous_load_insn): Add an extra
2565 predicate for extending loads.
2566 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2567 (aarch64_sve_adjust_stmt_cost): Likewise.
2568 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2569 the cost of SVE vector stmts.
2570
2571 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2572
2573 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2574 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2575 * config/aarch64/aarch64-sve.md
2576 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2577 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2578 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2579 comment. Avoid new narrower_mask ambiguity.
2580 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2581 (*cond_uxt<mode>_2): Update comment.
2582 (*cond_uxt<mode>_any): Likewise.
2583
2584 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2585
2586 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2587 float modes.
2588 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2589 function.
2590 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2591 new vector float modes.
2592 (aarch64_sve_container_bits): New function.
2593 (aarch64_sve_pred_mode): Likewise.
2594 (aarch64_get_mask_mode): Use it.
2595 (aarch64_sve_element_int_mode): Handle structure modes and partial
2596 modes.
2597 (aarch64_sve_container_int_mode): New function.
2598 (aarch64_vectorize_related_mode): Return SVE modes when given
2599 SVE modes. Handle partial modes, taking the preferred number
2600 of units from the size of the given mode.
2601 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2602 in registers.
2603 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2604 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2605 (aarch64_split_sve_subreg_move): Use the mode form of
2606 aarch64_sve_pred_mode.
2607 (aarch64_secondary_reload): Handle partial modes in the same way
2608 as full big-endian vectors.
2609 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2610 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2611 merging with the Advanced SIMD modes. If two modes have the
2612 same size, try the Advanced SIMD mode first.
2613 (aarch64_simd_valid_immediate): Use the container rather than
2614 the element mode for INDEX constants.
2615 (aarch64_simd_vector_alignment): Make the alignment of partial
2616 SVE vector modes the same as their minimum size.
2617 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2618 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2619 (mov<SVE_ALL:mode>): ...this.
2620 (movmisalign<SVE_FULL:mode>): Extend to...
2621 (movmisalign<SVE_ALL:mode>): ...this.
2622 (*aarch64_sve_mov<mode>_le): Rename to...
2623 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2624 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2625 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2626 partial modes regardless of endianness.
2627 (aarch64_sve_reload_be): Rename to...
2628 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2629 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2630 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2631 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2632 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2633 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2634 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2635 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2636 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2637 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2638 (maskload<SVE_FULL:mode><vpred>): Extend to...
2639 (maskload<SVE_ALL:mode><vpred>): ...this.
2640 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2641 (maskstore<SVE_ALL:mode><vpred>): ...this.
2642 (vec_duplicate<SVE_FULL:mode>): Extend to...
2643 (vec_duplicate<SVE_ALL:mode>): ...this.
2644 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2645 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2646 (sve_ld1r<SVE_FULL:mode>): Extend to...
2647 (sve_ld1r<SVE_ALL:mode>): ...this.
2648 (vec_series<SVE_FULL_I:mode>): Extend to...
2649 (vec_series<SVE_I:mode>): ...this.
2650 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2651 (*vec_series<SVE_I:mode>_plus): ...this.
2652 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2653 new VPRED ambiguity.
2654 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2655 (add<SVE_FULL_I:mode>3): Extend to...
2656 (add<SVE_I:mode>3): ...this.
2657 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2658 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2659 (VPRED, vpred): Likewise.
2660 (Vctype): New iterator.
2661 (vw): Remove SVE modes.
2662
2663 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2666 (SVE_PARTIAL_I): ...this.
2667 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2668
2669 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2670
2671 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2672 (SVE_FULL): ...this.
2673 (SVE_I): Rename to...
2674 (SVE_FULL_I): ...this.
2675 (SVE_F): Rename to...
2676 (SVE_FULL_F): ...this.
2677 (SVE_BHSI): Rename to...
2678 (SVE_FULL_BHSI): ...this.
2679 (SVE_HSD): Rename to...
2680 (SVE_FULL_HSD): ...this.
2681 (SVE_HSDI): Rename to...
2682 (SVE_FULL_HSDI): ...this.
2683 (SVE_HSF): Rename to...
2684 (SVE_FULL_HSF): ...this.
2685 (SVE_SD): Rename to...
2686 (SVE_FULL_SD): ...this.
2687 (SVE_SDI): Rename to...
2688 (SVE_FULL_SDI): ...this.
2689 (SVE_SDF): Rename to...
2690 (SVE_FULL_SDF): ...this.
2691 (SVE_S): Rename to...
2692 (SVE_FULL_S): ...this.
2693 (SVE_D): Rename to...
2694 (SVE_FULL_D): ...this.
2695 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2696 * config/aarch64/aarch64-sve2.md: Likewise.
2697
2698 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2699
2700 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2701 New option.
2702 * doc/invoke.texi: Document it.
2703 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2704 By default, return VECT_COMPARE_COSTS for SVE.
2705
2706 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2707
2708 * target.h (VECT_COMPARE_COSTS): New constant.
2709 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2710 * doc/tm.texi: Regenerate.
2711 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2712 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2713 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2714 Likewise.
2715 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2716 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2717 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2718 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2719 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2720 (_loop_vec_info::vec_inside_cost): New member variables.
2721 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2722 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2723 (vect_analyze_loop): When autovectorize_vector_modes returns
2724 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2725 vector mode and picking the one with the lowest cost.
2726 (vect_estimate_min_profitable_iters): Record the computed costs
2727 in the loop_vec_info.
2728
2729 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2732 element type rather than an element mode.
2733 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2734 Use get_vectype_for_scalar_type to query the natural types
2735 for a given element type rather than basing everything on
2736 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2737 query to MAX_FIXED_MODE_SIZE.
2738 (duplicate_and_interleave): Update call accordingly.
2739 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2740
2741 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2742
2743 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2744 optional maximum nunits.
2745 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2746 takes an slp_tree.
2747 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2748 (vect_get_mask_type_for_stmt): Likewise.
2749 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2750 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2751 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2752 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2753 to get an assumed vector type for data references.
2754 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2755 (vect_update_all_shared_vectypes): Likewise.
2756 (vect_build_slp_tree_1): Pass the group size to
2757 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2758 for BB vectorization.
2759 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2760 before building the vectof from scalars.
2761 (vect_analyze_slp_instance): Pass the group size to
2762 get_vectype_for_scalar_type.
2763 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2764 types for BB vectorization here; just handle the case in which
2765 we deferred the choice for booleans.
2766 (vect_get_constant_vectors): Pass the slp_tree to
2767 get_vectype_for_scalar_type.
2768 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2769 (vectorizable_call): Likewise.
2770 (vectorizable_simd_clone_call): Likewise.
2771 (vectorizable_conversion): Likewise.
2772 (vectorizable_shift): Likewise.
2773 (vectorizable_operation): Likewise.
2774 (vectorizable_comparison): Likewise.
2775 (vect_is_simple_cond): Take the slp_tree as argument and
2776 pass it to get_vectype_for_scalar_type.
2777 (vectorizable_condition): Update call accordingly.
2778 (get_vectype_for_scalar_type): Take a group_size argument.
2779 For BB vectorization, limit the the vector to that number
2780 of elements. Also define an overload that takes an slp_tree.
2781 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2782 pass it to get_vectype_for_scalar_type.
2783 (vect_get_vector_types_for_stmt): Add a group_size argument
2784 and pass it to get_vectype_for_scalar_type. Don't use the
2785 cached vector type for BB vectorization if a group size is given.
2786 Handle data references in that case.
2787 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2788 pass it to get_mask_type_for_scalar_type.
2789
2790 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2791
2792 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2793 parameter.
2794 (estimate_edge_time): Use it.
2795 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2796 ret_nonspec_time parameter.
2797
2798 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2799
2800 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2801
2802 2019-11-15 Nick Clifton <nickc@redhat.com>
2803 Szabolcs Nagy <szabolcs.nagy@arm.com>
2804
2805 PR target/65649
2806 * config/microblaze/microblaze.c (print_operand): Print value as long.
2807
2808 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2809
2810 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2811 accidental commit.
2812
2813 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2814
2815 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2816 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2817
2818 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2819
2820 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2821 (gcn_conditional_register_usage): Use constants in place of hard-coded
2822 values.
2823 (gcn_hsa_declare_function_name): Set lower bound for number of
2824 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2825 MAX_NORMAL_VGPR_COUNT.
2826
2827 2019-11-15 Martin Jambor <mjambor@suse.cz>
2828
2829 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2830 declaration.
2831
2832 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2833
2834 * config/gcn/gcn.c (default_requested_args): New.
2835 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2836 set with default_requested_args.
2837 (gcn_conditional_register_usage): Limit register usage of non-kernel
2838 functions. Reassign fixed registers if a non-standard set of args is
2839 requested.
2840 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2841
2842 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2843
2844 PR ipa/92528
2845 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2846 aggregate jump function when inlined-to caller has no edge summary.
2847
2848 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2849
2850 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2851
2852 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2853
2854 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2855 prologue use of v0.
2856 (print_operand_address): Use v1 for zero vector offset.
2857
2858 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2859
2860 PR tree-optimization/92515
2861 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2862 types when converting a vector/scalar shift into a vector/vector one,
2863 using tree_nop_conversion_p instead of useless_type_conversion_p.
2864 Move the conversion code to the transform block.
2865
2866 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2867
2868 * read-rtl-function.c
2869 (function_reader::add_fixup_source_location): Take additional
2870 parameter of a column.
2871 (function_reader::maybe_read_location): Optionally parse column
2872 information and pass to add_fixup_source_location.
2873
2874 2019-11-15 Richard Biener <rguenther@suse.de>
2875
2876 PR tree-optimization/92512
2877 * tree-vect-loop.c (check_reduction_path): Fix operand index
2878 computability check. Add check for second use in COND_EXPRs.
2879
2880 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2881
2882 PR target/92515
2883 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2884 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2885
2886 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2887
2888 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2889 register class for VCC_LO and VCC_HI.
2890 (gcn_spill_class): Use SGPR_REGS to spill registers in
2891 VCC_CONDITIONAL_REG.
2892
2893 2019-11-15 Richard Biener <rguenther@suse.de>
2894
2895 PR tree-optimization/92324
2896 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2897 singedness of SLP reduction epilouge operations. Also reduce
2898 the vector width for SLP reductions before doing elementwise
2899 operations if possible.
2900
2901 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2902
2903 * passes.c (skip_pass): Set epilogue_completed if skipping the
2904 pro_and_epilogue pass.
2905
2906 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2907
2908 * passes.c (should_skip_pass_p): Always run "dfinish".
2909
2910 2019-11-15 Richard Biener <rguenther@suse.de>
2911
2912 * ipa-inline.c (inline_small_functions): Move assignment
2913 to next before call destroying edge.
2914
2915 2019-11-15 Richard Biener <rguenther@suse.de>
2916
2917 PR tree-optimization/92039
2918 PR tree-optimization/91975
2919 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2920 previous change, treat invariants consistently as non-constant.
2921 (tree_estimate_loop_size): Ternary ops with just the first op
2922 constant are not optimized away.
2923
2924 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2925
2926 * gimplify.c (gimplify_call_expr): Don't call
2927 omp_resolve_declare_variant after gimplification.
2928 * omp-general.c (omp_context_selector_matches): For isa that might
2929 match in some other function, defer if in declare simd function.
2930 (omp_context_compute_score): Don't look for " score" in construct
2931 trait set. Set *score to -1 if it can't ever match.
2932 (omp_resolve_declare_variant): If any variants need to be deferred,
2933 don't punt immediately, but compute scores of all variants and if
2934 ther eis a score winner that doesn't need to be deferred, return that.
2935
2936 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2937
2938 * ipa-comdats.c: Fix comments typo.
2939 * ipa-profile.c: Fix comments typo.
2940 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2941 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2942 (gimple_gen_ic_func_profiler): Likewise.
2943 (pass_ipa_tree_profile::gate): Fix comments typo.
2944
2945 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2946
2947 * ipa-inline.c (inline_small_functions): Update iterator of next.
2948
2949 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2950
2951 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2952 register is suitable for the mode.
2953
2954 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2955
2956 * range-op.h (range_operator::fold_range): Return a bool.
2957 * range-op.cc (range_operator::wi_fold): Assert supported type.
2958 (range_operator::fold_range): Assert supported type and return true.
2959 (operator_equal::fold_range): Return true.
2960 (operator_not_equal::fold_range): Same.
2961 (operator_lt::fold_range): Same.
2962 (operator_le::fold_range): Same.
2963 (operator_gt::fold_range): Same.
2964 (operator_ge::fold_range): Same.
2965 (operator_plus::op1_range): Adjust call to fold_range.
2966 (operator_plus::op2_range): Same.
2967 (operator_minus::op1_range): Same.
2968 (operator_minus::op2_range): Same.
2969 (operator_exact_divide::op1_range): Same.
2970 (operator_lshift::fold_range): Return true and adjust fold_range call.
2971 (operator_rshift::fold_range): Same.
2972 (operator_cast::fold_range): Return true.
2973 (operator_logical_and::fold_range): Same.
2974 (operator_logical_or::fold_range): Same.
2975 (operator_logical_not::fold_range): Same.
2976 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2977 (operator_bitwise_not::op1_range): Same.
2978 (operator_cst::fold_range): Return true.
2979 (operator_identity::fold_range): Return true.
2980 (operator_negate::fold_range): Return true and adjust fold_range call.
2981 (operator_addr_expr::fold_range): Return true.
2982 (operator_addr_expr::op1_range): Adjust call to fold_range.
2983 (range_cast): Same.
2984 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2985 (range_fold_unary_symbolics_p): Same.
2986
2987 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2988
2989 PR tree-optimization/92506
2990 * range-op.cc (range_operator::fold_range): Start with range undefined.
2991 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2992 overflow is varying.
2993
2994 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2995
2996 * range-op.cc (*operator*::*range): Remove calls to
2997 range_intersect, range_invert, and range_union in favor of calling
2998 the in-place API methods.
2999 (range_tests): Same.
3000 * range.cc (range_intersect): Remove.
3001 (range_union): Remove.
3002 (range_invert): Remove.
3003 * range.h (range_intersect): Remove.
3004 (range_union): Remove.
3005 (range_intersect): Remove.
3006
3007 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3008
3009 PR rtl-optimization/92430
3010 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3011 (pass_jump_after_combine::execute): Perform jump threading
3012 unconditionally.
3013
3014 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3015 Doug Rupp <rupp@adacore.com>
3016 Olivier Hainque <hainque@adacore.com>
3017
3018 * config.gcc: Collapse the arm-vxworks entries into
3019 a single arm-wrs-vxworks7* one, bpabi based. Update
3020 the default cpu from arm8 to armv7-a
3021 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3022 we always use ARM_UNWIND_INFO.
3023 (DWARF2_UNWIND_INFO): Remove redefinition.
3024 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3025 (VXWORKS_PERSONALITY): Define, to "llvm".
3026 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3027
3028 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3029
3030 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3031 _VX_CPU instead of CPU and handle arm_arch8.
3032
3033 2019-11-14 Doug Rupp <rupp@adacore.com>
3034 Olivier Hainque <hainque@adacore.com>
3035 Jerome Lambourg <lambourg@adacore.com>
3036
3037 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3038 * config/aarch64/aarch64-vxworks.h: New file.
3039 * config/aarch64/t-aarch64-vxworks: New file.
3040
3041 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3042 Olivier Hainque <hainque@adacore.com>
3043
3044 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3045 definition, pointless with a VxWorks specific version
3046 of crtstuff.
3047 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3048 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3049 New local macros, controlling the addition of vxworks specific
3050 crtstuff objects depending on the EH mechanism and kind of
3051 module being linked.
3052 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3053
3054 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3055 Jerome Lambourg <lambourg@adacore.com>
3056 Olivier Hainque <hainque@adacore.com>
3057
3058 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3059 common macro definitions, conveying VXWORKS7 or 64bit general
3060 variations. Add a block to set gcc_cv_initfini_array
3061 unconditionally to "yes" for VxWorks7.
3062 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3063 by default. Update some comments.
3064 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3065 default, to be added the end of VXWORKS_LIBS_RTP.
3066 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3067 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3068 redefine.
3069 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3070 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3071 to account for the now available TLS abilities.
3072 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3073 (VXWORKS_HAVE_TLS): Likewise.
3074
3075 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3076
3077 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3078 (vect_slp_convert_to_external): Likewise.
3079 (vect_slp_analyze_node_operations): If analysis fails, try building
3080 the node from scalars instead.
3081
3082 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3083
3084 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3085 between vector types.
3086 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3087 non-widening and non-narrowing path to handle standard
3088 conversion codes, if the target supports them.
3089 * expr.c (convert_move): Try using the extend and truncate optabs
3090 for vectors.
3091 * optabs-tree.c (supportable_convert_operation): Likewise.
3092 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3093 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3094 (trunc<mode><Vnarrowq>2): New patterns.
3095
3096 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3097
3098 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3099 require vectype and nunits_vectype to have the same size;
3100 instead assert that nunits_vectype has at least as many
3101 elements as vectype. Don't compute a separate nunits_vectype
3102 if the scalar type is obviously the same as vectype's.
3103 Tweak dump messages.
3104
3105 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3106
3107 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3108 function.
3109 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3110 (TARGET_VECTORIZE_RELATED_MODE): Define.
3111
3112 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3113
3114 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3115 (vec_info::used_vector_mode): New member variable.
3116 (vect_chooses_same_modes_p): Declare.
3117 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3118 chosen vector mode in vec_info::used_vector_mode.
3119 (vect_chooses_same_modes_p): New function.
3120 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3121 the same vector statements multiple times.
3122 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3123
3124 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3125
3126 * machmode.h (opt_machine_mode::operator==): New function.
3127 (opt_machine_mode::operator!=): Likewise.
3128 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3129 (get_related_vectype_for_scalar_type): Delete.
3130 (get_vectype_for_scalar_type_and_size): Declare.
3131 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3132 whether analysis passed or failed, and with what vector modes.
3133 Use related_vector_mode to check whether trying a particular
3134 vector mode would be redundant with the autodetected mode,
3135 and print a dump message if we decide to skip it.
3136 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3137 (vect_create_epilog_for_reduction): Use
3138 get_related_vectype_for_scalar_type instead of
3139 get_vectype_for_scalar_type_and_size.
3140 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3141 with...
3142 (get_related_vectype_for_scalar_type): ...this new function.
3143 Take a starting/"prevailing" vector mode rather than a vector size.
3144 Take an optional nunits argument, with the same meaning as for
3145 related_vector_mode. Use related_vector_mode when not
3146 auto-detecting a mode, falling back to mode_for_vector if no
3147 target mode exists.
3148 (get_vectype_for_scalar_type): Update accordingly.
3149 (get_same_sized_vectype): Likewise.
3150 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3151
3152 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3153
3154 * tree-vect-stmts.c (vectorizable_call): Require the types
3155 to have the same size.
3156
3157 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3158
3159 * tree-vect-stmts.c (vectorizable_call): If an operand is
3160 constant or external, use get_vectype_for_scalar_type
3161 rather than get_same_sized_vectype to get its vector type.
3162 (vectorizable_conversion, vectorizable_shift): Likewise.
3163 (vectorizable_operation): Likewise.
3164
3165 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3166
3167 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3168 (vec_info::vector_mode): ...this new field.
3169 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3170 (vect_analyze_loop, vect_transform_loop): Likewise.
3171 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3172 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3173 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3174 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3175 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3176
3177 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3178
3179 * target.h (vector_sizes, auto_vector_sizes): Delete.
3180 (vector_modes, auto_vector_modes): New typedefs.
3181 * target.def (autovectorize_vector_sizes): Replace with...
3182 (autovectorize_vector_modes): ...this new hook.
3183 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3184 Replace with...
3185 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3186 * doc/tm.texi: Regenerate.
3187 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3188 (default_autovectorize_vector_modes): New function.
3189 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3190 (default_autovectorize_vector_modes): New function.
3191 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3192 of autovectorize_vector_sizes. Use the number of units in the mode
3193 to calculate the maximum VF.
3194 * omp-low.c (omp_clause_aligned_alignment): Use
3195 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3196 Use a loop based on related_mode to iterate through all supported
3197 vector modes for a given scalar mode.
3198 * optabs-query.c (can_vec_mask_load_store_p): Use
3199 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3200 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3201 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3202 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3203 Replace with...
3204 (aarch64_autovectorize_vector_modes): ...this new function.
3205 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3206 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3207 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3208 (arc_autovectorize_vector_modes): ...this new function.
3209 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3210 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3211 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3212 (arm_autovectorize_vector_modes): ...this new function.
3213 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3214 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3215 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3216 (ix86_autovectorize_vector_modes): ...this new function.
3217 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3218 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3219 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3220 (mips_autovectorize_vector_modes): ...this new function.
3221 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3222 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3223
3224 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3225
3226 * tree-vect-stmts.c (vectorizable_shift): Check the number
3227 of vector elements as well as the type mode when deciding
3228 whether an op1_vectype is compatible. Reuse the result of
3229 this check when generating vector statements.
3230
3231 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3232
3233 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3234 targetm.vectorize.preferred_simd_mode returns an integer mode,
3235 use mode_for_vector to decide what the vector type's mode
3236 should actually be. Use build_vector_type_for_mode instead
3237 of build_vector_type.
3238
3239 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3240
3241 * target.def (get_mask_mode): Take a vector mode itself as argument,
3242 instead of properties about the vector mode.
3243 * doc/tm.texi: Regenerate.
3244 * targhooks.h (default_get_mask_mode): Update to reflect new
3245 get_mode_mask interface.
3246 * targhooks.c (default_get_mask_mode): Likewise. Use
3247 related_int_vector_mode.
3248 * optabs-query.c (can_vec_mask_load_store_p): Update call
3249 to get_mask_mode.
3250 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3251 first that the original mode really is a vector.
3252 * tree.c (build_truth_vector_type_for): Likewise.
3253 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3254 get_mode_mask interface.
3255 (aarch64_expand_sve_vcond): Update call accordingly.
3256 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3257 get_mode_mask interface.
3258 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3259
3260 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3261
3262 * tree.h (build_truth_vector_type): Delete.
3263 (build_same_sized_truth_vector_type): Likewise.
3264 * tree.c (build_truth_vector_type): Rename to...
3265 (build_truth_vector_type_for): ...this. Make static and take
3266 a vector type as argument.
3267 (truth_type_for): Update accordingly.
3268 (build_same_sized_truth_vector_type): Delete.
3269 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3270 instead of build_same_sized_truth_vector_type.
3271 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3272 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3273 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3274 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3275 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3276 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3277 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3278 (vectorizable_store, vectorizable_condition): Likewise.
3279 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3280 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3281 build_truth_vector_type.
3282 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3283 Use truth_type_for instead of build_same_sized_truth_vector_type.
3284 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3285
3286 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3287
3288 * tree.h (build_truth_vector_type_for_mode): Declare.
3289 * tree.c (build_truth_vector_type_for_mode): New function,
3290 split out from...
3291 (build_truth_vector_type): ...here.
3292 (build_opaque_vector_type): Fix head comment.
3293 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3294 vec_info parameter.
3295 (vect_halve_mask_nunits): Replace vec_info parameter with the
3296 mode of the new vector.
3297 (vect_double_mask_nunits): Likewise.
3298 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3299 (vect_double_mask_nunits): Likewise.
3300 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3301 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3302 to vect_halve_mask_nunits, getting the required mode from the unpack
3303 patterns.
3304 (vect_set_loop_condition_masked): Update call accordingly.
3305 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3306 parameter and update call to vect_double_mask_nunits.
3307 (vectorizable_conversion): Update call accordingly.
3308 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3309 (vectorizable_call): Update call accordingly.
3310 (supportable_widening_operation): Update call to
3311 vect_halve_mask_nunits.
3312 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3313 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3314
3315 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3316
3317 * machmode.h (mode_for_int_vector): Delete.
3318 (related_int_vector_mode): Declare.
3319 * stor-layout.c (mode_for_int_vector): Delete.
3320 (related_int_vector_mode): New function.
3321 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3322 instead of mode_for_int_vector.
3323 (expand_vec_perm_const): Likewise.
3324 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3325 (aarch64_evpc_sve_tbl): Likewise.
3326 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3327 (s390_expand_vcond): Likewise.
3328
3329 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3330
3331 * target.def (related_mode): New hook.
3332 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3333 * doc/tm.texi: Regenerate.
3334 * targhooks.h (default_vectorize_related_mode): Declare.
3335 * targhooks.c (default_vectorize_related_mode): New function.
3336 * machmode.h (related_vector_mode): Declare.
3337 * stor-layout.c (related_vector_mode): New function.
3338 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3339 * optabs-query.c (qimode_for_vec_perm): Likewise.
3340 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3341 (vectorizable_store, vectorizable_load): Likewise
3342
3343 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3344
3345 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3346 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3347 * config/arm/arm-c.c (arm_cpu_builtins): Define
3348 __GCC_ASM_FLAG_OUTPUTS__.
3349 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3350 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3351 Define __GCC_ASM_FLAG_OUTPUTS__.
3352 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3353 * doc/extend.texi (FlagOutputOperands): Add documentation
3354 for ARM and AArch64.
3355
3356 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3357 * config/arm/predicates.md (nz_comparison_operator): Rename
3358 from noov_comparison_operator.
3359 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3360 (arm_gen_dicompare_reg): Likewise.
3361 (maybe_get_arm_condition_code): Likewise.
3362 (thumb1_final_prescan_insn): Likewise.
3363 (arm_emit_coreregs_64bit_shift): Likewise.
3364 * config/arm/arm.md (addsi3_compare0): Likewise.
3365 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3366 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3367 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3368 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3369 (*mulsi3addsi_compare0_scratch): Likewise.
3370 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3371 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3372 (*zeroextractsi_compare0_scratch): Likewise.
3373 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3374 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3375 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3376 (andsi_not_shiftsi_si_scc): Likewise.
3377 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3378 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3379 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3380 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3381 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3382 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3383 (return_addr_mask, *check_arch2): Likewise.
3384 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3385 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3386 (compare_scc splitters): Likewise.
3387 (movcond_addsi): Likewise.
3388 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3389 (*thumb2_addsi3_compare0_scratch): Likewise.
3390 (*thumb2_mulsi_short_compare0): Likewise.
3391 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3392 (compare peephole2s): Likewise.
3393 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3394 nz_comparison_operator names.
3395 (cbranchsi4_insn): Likewise.
3396
3397 * config/arm/constraints.md (c): Use cc_register predicate.
3398
3399 * config/aarch64/constraints.md (c): New constraint.
3400
3401 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3402
3403 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3404 ipa_merge_fn_summary_after_inlining): Micro optimize.
3405
3406 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3407
3408 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3409
3410 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3411
3412 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3413 (ipa_value_range_from_jfunc): New function.
3414 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3415 known_value_ranges parameter; use it to evalulate conditions.
3416 (evaluate_properties_for_edge): Compute known value ranges.
3417 (ipa_fn_summary_t::duplicate): Update use of
3418 evaluate_conditions_for_known_args.
3419 (estimate_ipcp_clone_size_and_time): Likewise.
3420 (ipa_merge_fn_summary_after_inlining): Likewise.
3421 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3422
3423 2019-11-14 Martin Liska <mliska@suse.cz>
3424
3425 * ipa-inline.c (want_inline_small_function_p): Use
3426 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3427 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3428
3429 2019-11-14 Martin Liska <mliska@suse.cz>
3430
3431 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3432 of a callee to get value of the param.
3433 * ipa-inline.c (inline_insns_auto): Use proper
3434 opt_for_fn.
3435 * opts.c (maybe_default_option): Do not overwrite param
3436 value if optimization level does not match. Note that
3437 params usually have default value set via Init() keyword.
3438 * params.opt: Remove -param=max-inline-insns-auto-O2.
3439 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3440 * doc/invoke.texi: Remove documentation of
3441 max-inline-insns-auto-O2.
3442
3443 2019-11-14 Martin Liska <mliska@suse.cz>
3444
3445 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3446 Do not initialize m_other_count.
3447 (switch_conversion::collect): Do not count m_default_count and
3448 m_other_count as we use frequencies for edges.
3449 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3450
3451 2019-11-14 Martin Liska <mliska@suse.cz>
3452
3453 PR other/92329
3454 * doc/invoke.texi: Document -fallocation-dce.
3455
3456 2019-11-14 Martin Liska <mliska@suse.cz>
3457
3458 PR target/92389
3459 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3460 PTA_ICELAKE_CLIENT which is later interited by
3461 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3462
3463 2019-11-14 Martin Liska <mliska@suse.cz>
3464
3465 * ipa-icf.c (sem_item_optimizer::execute): Save
3466 loaded_symbols.
3467 (sem_item_optimizer::parse_nonsingleton_classes):
3468 Return number of loaded symbols.
3469 (sem_item_optimizer::merge_classes): Print
3470 statistics about totally needed symbols.
3471 * ipa-icf.h (parse_nonsingleton_classes): Change return
3472 type.
3473 (merge_classes): Add one argument.
3474
3475 2019-11-14 Martin Liska <mliska@suse.cz>
3476
3477 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3478 func_checker::hash_operand by handling of FIELD_DECLs.
3479
3480 2019-11-14 Martin Liska <mliska@suse.cz>
3481
3482 * ipa-icf-gimple.h (func_checker::func_checker): Add
3483 default constructor.
3484 * ipa-icf.c (sem_function::init): Make operand_equal_p
3485 and hash_operand public.
3486 (sem_item::add_expr): Remove.
3487 (sem_item::add_type): Remove.
3488 (sem_function::hash_stmt): Use m_checker for hashing
3489 of GIMPLE statements.
3490 (sem_function::parse): Init with checker.
3491 (sem_variable::parse): Pass NULL as checker.
3492 (sem_item_optimizer::parse_funcs_and_vars):
3493 Pass checker to ::parse function.
3494 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3495 (sem_variable::parse): New function.
3496 (sem_variable::get_hash): Only return computed hash value.
3497 (sem_variable::init): Initialize hash of a variable.
3498 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3499 to couple of functions as a new argument.
3500
3501 2019-11-14 Martin Liska <mliska@suse.cz>
3502
3503 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3504 bail out reason.
3505 (func_checker::compare_gimple_assign): Likewise.
3506
3507 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3508
3509 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3510 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3511 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3512
3513 * omp-general.c (omp_context_name_list_prop): New function.
3514 (omp_context_selector_matches): Use it. Return 0 if it returns
3515 NULL.
3516 (omp_context_selector_props_compare): Allow equivalency of an
3517 identifier and a string literal containing no embedded zeros.
3518
3519 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3520
3521 * range-op.cc (RANGE3): Remove.
3522 (range_tests): Remove all selftest that check for multi-ranges.
3523 Put tests in namespace selftest.
3524 * selftest.h: Move range_tests into namespace selftest.
3525 * value-range.h (class value_range): Unfriend range_tests.
3526
3527 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3528
3529 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3530 normalize_symbolics and normalize_addresses working in place.
3531 (range_fold_unary_symbolics_p): Same.
3532 (range_fold_unary_symbolics_p): Same.
3533 * value-range.cc (num_pairs): Same.
3534 (lower_bound): Same.
3535 (upper_bound): Same.
3536 (contains_p): Same.
3537 (normalize_addresses): Same.
3538 (normalize_symbolics): Same.
3539 * value-range.h (normalize_symbolics): Same.
3540 (normalize_addresses): Same.
3541
3542 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3543
3544 PR ipa/91682
3545 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3546 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3547 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3548 (ipa_agg_jump_function): Remove member function equal_to.
3549 (ipa_agg_jump_function_p): Remove typedef.
3550 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3551 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3552 information for aggregate jump function.
3553 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3554 record last definition statement.
3555 (load_from_unmodified_param_or_agg): New function.
3556 (ipa_known_agg_contents_list): Add new field type and value, remove
3557 field constant.
3558 (build_agg_jump_func_from_list): Rename parameter const_count to
3559 value_count, build aggregate jump function from ipa_load_agg_data.
3560 (analyze_agg_content_value): New function.
3561 (extract_mem_content): Analyze memory store assignment to prepare
3562 information for aggregate jump function generation.
3563 (determine_known_aggregate_parts): Add new parameter fbi, remove
3564 parameter aa_walk_budeget_p.
3565 (update_jump_functions_after_inlining): Update aggregate jump function.
3566 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3567 (try_make_edge_direct_simple_call): Add new parameter new_root.
3568 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3569 new_root_info.
3570 (update_indirect_edges_after_inlining): Pass new argument to
3571 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3572 (ipa_write_jump_function): Write aggregate jump function to file.
3573 (ipa_read_jump_function): Read aggregate jump function from file.
3574 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3575 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3576 (ipa_agg_value_from_node): Likewise.
3577 (ipa_agg_value_set_from_jfunc): Likewise.
3578 (propagate_vals_across_arith_jfunc): Likewise.
3579 (propagate_aggregate_lattice): Likewise.
3580 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3581 (propagate_vals_across_pass_through): Call
3582 propagate_vals_across_arith_jfunc.
3583 (get_clone_agg_value): Move forward.
3584 (propagate_aggs_across_jump_function): Handle value propagation for
3585 aggregate jump function.
3586 (agg_jmp_p_vec_for_t_vec): Remove.
3587 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3588 with vec<ipa_agg_value>.
3589 (copy_plats_to_inter, intersect_with_plats): Likewise.
3590 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3591 (intersect_aggregate_with_edge): Likewise.
3592 (find_aggregate_values_for_callers_subset): Likewise.
3593 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3594 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3595 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3596 (gather_context_independent_values): Likewise.
3597 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3598 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3599 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3600 (evaluate_properties_for_edge): Likewise.
3601 (estimate_edge_devirt_benefit): Likewise.
3602 (estimate_edge_size_and_time): Likewise.
3603 (estimate_calls_size_and_time): Likewise.
3604 (ipa_call_context::ipa_call_context): Likewise.
3605 (estimate_ipcp_clone_size_and_time): Likewise.
3606 * ipa-fnsummary.h (ipa_call_context): Replace
3607 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3608 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3609 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3610 (do_estimate_edge_size): Likewise.
3611 (do_estimate_edge_hints): Likewise.
3612
3613 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3614
3615 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3616 binary operations.
3617
3618 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3619
3620 * ipa-profile.c (check_argument_count): Check properly that e_info
3621 is non-NULL; do not check descriptors.
3622
3623 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3624
3625 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3626 check for ipa profiles.
3627
3628 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3629
3630 PR c++/92421
3631 * ipa-prop.c (update_indirect_edges_after_inlining):
3632 Mark parameter as used.
3633 * ipa-inline.c (recursive_inlining): Reset node cache
3634 after inlining.
3635 (inline_small_functions): Remove checking ifdef.
3636 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3637 cache consistency.
3638
3639 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3640
3641 PR ipa/92498
3642 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3643 is NULL.
3644 (ipa_profile): Fix reversed test.
3645
3646 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3647
3648 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3649 (propagate_constants_topo): Fix typo.
3650
3651 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3652
3653 * Makefile.in (OBJS): Add value-range.o.
3654 (GTFILES): Add value-range.h.
3655 * gengtype.c (open_base_files): Add value-range.h to list of
3656 header files.
3657 * tree-vrp.c: Move the following value_range related functions:
3658 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3659 constant_p, set_undefined, set_varying, may_contain_p,
3660 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3661 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3662 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3663 value_inside_range, ranges_from_anti_range, union_ranges,
3664 intersect_ranges, intersect_helper, union_helper, union_,
3665 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3666 upper_bound, contains_p, invert, intersect...
3667 * value-range.cc: ...to here.
3668 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3669 associated inline methods from here...
3670 * value-range.h: ...to here.
3671
3672 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3673
3674 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3675 instead of asserting its value.
3676
3677 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3678
3679 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3680 constructors and set methods so value_range_kind is the last
3681 argument and defaults to VR_RANGE.
3682 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3683 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3684 * ipa-prop.c (ipa_get_value_range): Same.
3685 (ipa_compute_jump_functions_for_edge): Same.
3686 * range-op.cc (value_range_from_overflowed_bounds): Same.
3687 (operator_cast::op1_range): Same.
3688 (range_tests): Same.
3689 * range.cc (range_nonzero): Same.
3690 * tree-ssanames.c (get_range_info): Same.
3691 * tree-vrp.c (value_range_equiv::set): Same.
3692 (value_range::value_range): Same.
3693 (value_range_equiv::value_range_equiv): Same.
3694 (value_range_equiv::update): Same.
3695 (value_range_equiv::deep_copy): Same.
3696 (value_range_equiv::move): Same.
3697 (value_range_equiv::set_undefined): Same.
3698 (value_range::set): Same.
3699 (value_range::set_nonzero): Same.
3700 (ranges_from_anti_range): Same.
3701 (extract_range_from_plus_minus_expr): Same.
3702 (value_range::intersect_helper): Same.
3703 (value_range_equiv::intersect): Same.
3704 (value_range::union_helper): Same.
3705 (value_range_equiv::union_): Same.
3706 (value_range::normalize_symbolics): Same.
3707 (value_range::invert): Same.
3708 (determine_value_range_1): Same.
3709 * tree-vrp.h (class value_range): Same.
3710 (class value_range_equiv): Same.
3711 * vr-values.c (set_value_range_to_nonnegative): Same.
3712 (set_value_range_to_truthvalue): Same.
3713 (vr_values::update_value_range): Same.
3714 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3715 (vr_values::extract_range_from_binary_expr): Same.
3716 (vr_values::extract_range_from_comparison): Same.
3717 (vr_values::extract_range_basic): Same.
3718 (vr_values::adjust_range_with_scev): Same.
3719 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3720 (vr_values::extract_range_from_phi_node): Same.
3721
3722 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3723
3724 * tree-dump.c (dequeue_and_dump): Print first tree operand
3725 for VIEW_CONVERT_EXPR.
3726
3727 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3728
3729 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3730 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3731 * real.c (get_max_float): Add norm_max argument.
3732 * real.h (get_max_float): Update prototype.
3733 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3734 get_max_float.
3735
3736 2019-11-13 Martin Liska <mliska@suse.cz>
3737
3738 * dbgcnt.c (test_sorted_dbg_counters): New.
3739 (dbgcnt_c_tests): Likewise.
3740 * selftest-run-tests.c (selftest::run_tests): Likewise.
3741 * selftest.h (dbgcnt_c_tests): Likewise.
3742
3743 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3744 Martin Jambor <mjambor@suse.cz>
3745
3746 PR ipa/92454
3747 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3748 (identify_dead_nodes): Likewise.
3749
3750 2019-11-13 Martin Liska <mliska@suse.cz>
3751
3752 * ipa-icf.c (sem_function::equals_private): Do not overuse
3753 push/pop_cfun functions.
3754
3755 2019-11-13 Martin Liska <mliska@suse.cz>
3756
3757 * common.opt: Document change of -fdbg-cnt option.
3758 * dbgcnt.c (DEBUG_COUNTER): Remove.
3759 (dbg_cnt_is_enabled): Remove.
3760 (dbg_cnt): Work with new intervals.
3761 (dbg_cnt_set_limit_by_index): Set to new
3762 list of intervals.
3763 (dbg_cnt_set_limit_by_name): Likewise.
3764 (dbg_cnt_process_single_pair): Process new format.
3765 (dbg_cnt_process_opt): Likewise.
3766 (dbg_cnt_list_all_counters): Likewise.
3767 * doc/invoke.texi: Document change of -fdbg-cnt option.
3768 (cmp_tuples): New.
3769
3770 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3771
3772 * ipa-inline.c (ipa_inline): Check that function is defined before
3773 flattening.
3774
3775 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3776 Julian Brown <julian@codesourcery.com>
3777
3778 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3779 flag_worker_partitioning is not set.
3780 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3781 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3782
3783 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3784
3785 * config/gcn/gcn-run.c (heap_region): New global variable.
3786 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3787 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3788 (get_kernarg_region): Move contents to ....
3789 (get_memory_region): .... here.
3790 (get_heap_region): New function.
3791 (init_device): Initialize the heap_region.
3792 (device_malloc): Add region parameter.
3793 (struct kernargs): Move heap ....
3794 (heap): ... to global scope.
3795 (main): Allocate heap separate to kernargs.
3796
3797 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3798
3799 * ipa-prop.c (ipa_print_node_jump_functions,
3800 ipa_print_node_params): Print info about missing summaries.
3801
3802 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3803
3804 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3805 the cost of generating loop masks.
3806
3807 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3808
3809 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3810 New function.
3811 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3812 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3813 (vect_transform_loop): Likewise.
3814 (vect_analyze_loop_costing): Don't take the cost of versioning
3815 into account for the static profitability threshold if it turns
3816 out that no versioning is needed.
3817
3818 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3819
3820 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3821 and target_option_default_node to get -fprofile-generate ctors working
3822 right with LTO.
3823
3824 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3825
3826 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3827 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3828 (vectorizable_assignment): Don't add a cost for nop conversions.
3829 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3830 Likewise.
3831 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3832
3833 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3834
3835 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3836 number of ncopies as an additional argument.
3837 (vectorizable_conversion): Update call accordingly. Use "modifier"
3838 to check whether a conversion is between vectors with the same
3839 numbers of units.
3840
3841 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3842
3843 * config/aarch64/aarch64-sve-builtins-functions.h
3844 (unary_count::expand): Use aarch64_sve_int_mode instead of
3845 mode_for_int_vector.
3846
3847 2019-11-13 Martin Liska <mliska@suse.cz>
3848
3849 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3850
3851 2019-11-13 Martin Liska <mliska@suse.cz>
3852
3853 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3854 Remove call to finalize_options_struct.
3855
3856 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3857
3858 PR target/92055
3859 * config/avr/t-avr (avr-mcus): Do not depend on
3860 $(srcdir)/config/avr/t-multilib.
3861
3862 2019-11-13 Richard Biener <rguenther@suse.de>
3863
3864 PR tree-optimization/92473
3865 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3866 direct optab reduction in the correct type.
3867
3868 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3869
3870 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3871 hexadecimal literal.
3872
3873 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3874
3875 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3876 UNORDERED if !HONOR_NANS (DFmode).
3877 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3878 if !HONOR_NANS (<MODE>mode).
3879
3880 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3881
3882 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3883 (ipcp_verify_propagated_values): Likewise.
3884 (propagate_constants_across_call): Likewise.
3885 (propagate_constants_topo): Likewise.
3886 (ipcp_propagate_stage): Likewise.
3887
3888 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3889
3890 PR ipa/92471
3891 * ipa-profile.c (check_argument_count): Break out from ...;
3892 watch for missing summaries.
3893 (ipa_profile): Here.
3894
3895 2019-11-12 Martin Sebor <msebor@redhat.com>
3896
3897 PR tree-optimization/92412
3898 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3899 extern variables.
3900
3901 2019-11-12 Martin Sebor <msebor@redhat.com>
3902
3903 PR middle-end/83688
3904 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3905 (directive::argno): New member.
3906 (format_result::aliases, format_result::alias_count): New data members.
3907 (format_result::append_alias): New member function.
3908 (fmtresult::dst_offset): New data member.
3909 (pass_sprintf_length::call_info::dst_origin): New data member.
3910 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3911 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3912 (get_origin_and_offset): Same.
3913 (format_string): Call it.
3914 (format_directive): Call append_alias and set directive argument
3915 number.
3916 (maybe_warn_overlap): New function.
3917 (pass_sprintf_length::compute_format_length): Call it.
3918 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3919 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3920
3921 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3922
3923 PR rtl-optimization/92430
3924 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3925 dominance info at the beginning.
3926
3927 2019-11-12 Richard Biener <rguenther@suse.de>
3928
3929 PR tree-optimization/92460
3930 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3931 expression before gimplifying.
3932
3933 2019-11-12 Richard Biener <rguenther@suse.de>
3934
3935 PR tree-optimization/92461
3936 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3937 stmt after propagation.
3938
3939 2019-11-12 Martin Liska <mliska@suse.cz>
3940
3941 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3942 Use SET_OPTION_IF_UNSET.
3943 (ix86_option_override_internal): Likewise.
3944 * opts.c (default_options_optimization): Likewise.
3945 (finish_options): Likewise.
3946 (enable_fdo_optimizations): Likewise.
3947 (common_handle_option): Likewise.
3948
3949 2019-11-12 Martin Liska <mliska@suse.cz>
3950
3951 * common/common-target.def: Remove option_validate_param and
3952 option_default_params.
3953 * common/common-targhooks.c (default_option_validate_param):
3954 Remove.
3955 * common/common-targhooks.h (default_option_validate_param):
3956 Remove.
3957 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3958 Remove usage of this.
3959 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3960 (aarch64_option_validate_param): Likewise.
3961 (aarch64_option_default_params): Likewise
3962 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3963 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3964 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3965 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3966 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3967 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3968 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3969 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3970 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3971 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3972 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3973 guard_size here.
3974 * doc/tm.texi: Remove option_default_params and option_validate_param.
3975 * doc/tm.texi.in: Likewise.
3976
3977 2019-11-12 Martin Liska <mliska@suse.cz>
3978
3979 * common/common-target.def:
3980 Do not mention set_default_param_value
3981 and set_param_value.
3982 * doc/tm.texi: Likewise.
3983
3984 2019-11-12 Martin Liska <mliska@suse.cz>
3985
3986 * common.opt: Remove param_values.
3987 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3988 Remove finalize_options_struct.
3989 * gcc.c (driver::decode_argv): Do not call global_init_params
3990 and finish_params.
3991 (driver::finalize): Do not call params_c_finalize
3992 and finalize_options_struct.
3993 * opt-suggestions.c (option_proposer::get_completions): Remove
3994 special casing of params.
3995 (option_proposer::find_param_completions): Remove.
3996 (test_completion_partial_match): Update expected output.
3997 * opt-suggestions.h: Remove find_param_completions.
3998 * opts-common.c (add_misspelling_candidates): Add
3999 --param with a space.
4000 * opts.c (handle_param): Remove.
4001 (init_options_struct):. Remove init_options_struct and
4002 similar calls.
4003 (finalize_options_struct): Remove.
4004 (common_handle_option): Use SET_OPTION_IF_UNSET.
4005 * opts.h (finalize_options_struct): Remove.
4006 * toplev.c (general_init): Do not call global_init_params.
4007 (toplev::finalize): Do not call params_c_finalize and
4008 finalize_options_struct.
4009
4010 2019-11-12 Martin Liska <mliska@suse.cz>
4011
4012 * Makefile.in: Remove PARAMS_H and params.list
4013 and params.options.
4014 * params-enum.h: Remove.
4015 * params-list.h: Remove.
4016 * params-options.h: Remove.
4017 * params.c: Remove.
4018 * params.def: Remove.
4019 * params.h: Remove.
4020 * asan.c: Do not include params.h.
4021 * auto-profile.c: Likewise.
4022 * bb-reorder.c: Likewise.
4023 * builtins.c: Likewise.
4024 * cfgcleanup.c: Likewise.
4025 * cfgexpand.c: Likewise.
4026 * cfgloopanal.c: Likewise.
4027 * cgraph.c: Likewise.
4028 * combine.c: Likewise.
4029 * common/config/aarch64/aarch64-common.c: Likewise.
4030 * common/config/gcn/gcn-common.c: Likewise.
4031 * common/config/ia64/ia64-common.c: Likewise.
4032 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4033 * common/config/rs6000/rs6000-common.c: Likewise.
4034 * common/config/sh/sh-common.c: Likewise.
4035 * config/aarch64/aarch64.c: Likewise.
4036 * config/alpha/alpha.c: Likewise.
4037 * config/arm/arm.c: Likewise.
4038 * config/avr/avr.c: Likewise.
4039 * config/csky/csky.c: Likewise.
4040 * config/i386/i386-builtins.c: Likewise.
4041 * config/i386/i386-expand.c: Likewise.
4042 * config/i386/i386-features.c: Likewise.
4043 * config/i386/i386-options.c: Likewise.
4044 * config/i386/i386.c: Likewise.
4045 * config/ia64/ia64.c: Likewise.
4046 * config/rs6000/rs6000-logue.c: Likewise.
4047 * config/rs6000/rs6000.c: Likewise.
4048 * config/s390/s390.c: Likewise.
4049 * config/sparc/sparc.c: Likewise.
4050 * config/visium/visium.c: Likewise.
4051 * coverage.c: Likewise.
4052 * cprop.c: Likewise.
4053 * cse.c: Likewise.
4054 * cselib.c: Likewise.
4055 * dse.c: Likewise.
4056 * emit-rtl.c: Likewise.
4057 * explow.c: Likewise.
4058 * final.c: Likewise.
4059 * fold-const.c: Likewise.
4060 * gcc.c: Likewise.
4061 * gcse.c: Likewise.
4062 * ggc-common.c: Likewise.
4063 * ggc-page.c: Likewise.
4064 * gimple-loop-interchange.cc: Likewise.
4065 * gimple-loop-jam.c: Likewise.
4066 * gimple-loop-versioning.cc: Likewise.
4067 * gimple-ssa-split-paths.c: Likewise.
4068 * gimple-ssa-sprintf.c: Likewise.
4069 * gimple-ssa-store-merging.c: Likewise.
4070 * gimple-ssa-strength-reduction.c: Likewise.
4071 * gimple-ssa-warn-alloca.c: Likewise.
4072 * gimple-ssa-warn-restrict.c: Likewise.
4073 * graphite-isl-ast-to-gimple.c: Likewise.
4074 * graphite-optimize-isl.c: Likewise.
4075 * graphite-scop-detection.c: Likewise.
4076 * graphite-sese-to-poly.c: Likewise.
4077 * graphite.c: Likewise.
4078 * haifa-sched.c: Likewise.
4079 * hsa-gen.c: Likewise.
4080 * ifcvt.c: Likewise.
4081 * ipa-cp.c: Likewise.
4082 * ipa-fnsummary.c: Likewise.
4083 * ipa-inline-analysis.c: Likewise.
4084 * ipa-inline.c: Likewise.
4085 * ipa-polymorphic-call.c: Likewise.
4086 * ipa-profile.c: Likewise.
4087 * ipa-prop.c: Likewise.
4088 * ipa-split.c: Likewise.
4089 * ipa-sra.c: Likewise.
4090 * ira-build.c: Likewise.
4091 * ira-conflicts.c: Likewise.
4092 * loop-doloop.c: Likewise.
4093 * loop-invariant.c: Likewise.
4094 * loop-unroll.c: Likewise.
4095 * lra-assigns.c: Likewise.
4096 * lra-constraints.c: Likewise.
4097 * modulo-sched.c: Likewise.
4098 * opt-suggestions.c: Likewise.
4099 * opts.c: Likewise.
4100 * postreload-gcse.c: Likewise.
4101 * predict.c: Likewise.
4102 * reload.c: Likewise.
4103 * reorg.c: Likewise.
4104 * resource.c: Likewise.
4105 * sanopt.c: Likewise.
4106 * sched-deps.c: Likewise.
4107 * sched-ebb.c: Likewise.
4108 * sched-rgn.c: Likewise.
4109 * sel-sched-ir.c: Likewise.
4110 * sel-sched.c: Likewise.
4111 * shrink-wrap.c: Likewise.
4112 * stmt.c: Likewise.
4113 * targhooks.c: Likewise.
4114 * toplev.c: Likewise.
4115 * tracer.c: Likewise.
4116 * trans-mem.c: Likewise.
4117 * tree-chrec.c: Likewise.
4118 * tree-data-ref.c: Likewise.
4119 * tree-if-conv.c: Likewise.
4120 * tree-inline.c: Likewise.
4121 * tree-loop-distribution.c: Likewise.
4122 * tree-parloops.c: Likewise.
4123 * tree-predcom.c: Likewise.
4124 * tree-profile.c: Likewise.
4125 * tree-scalar-evolution.c: Likewise.
4126 * tree-sra.c: Likewise.
4127 * tree-ssa-ccp.c: Likewise.
4128 * tree-ssa-dom.c: Likewise.
4129 * tree-ssa-dse.c: Likewise.
4130 * tree-ssa-ifcombine.c: Likewise.
4131 * tree-ssa-loop-ch.c: Likewise.
4132 * tree-ssa-loop-im.c: Likewise.
4133 * tree-ssa-loop-ivcanon.c: Likewise.
4134 * tree-ssa-loop-ivopts.c: Likewise.
4135 * tree-ssa-loop-manip.c: Likewise.
4136 * tree-ssa-loop-niter.c: Likewise.
4137 * tree-ssa-loop-prefetch.c: Likewise.
4138 * tree-ssa-loop-unswitch.c: Likewise.
4139 * tree-ssa-math-opts.c: Likewise.
4140 * tree-ssa-phiopt.c: Likewise.
4141 * tree-ssa-pre.c: Likewise.
4142 * tree-ssa-reassoc.c: Likewise.
4143 * tree-ssa-sccvn.c: Likewise.
4144 * tree-ssa-scopedtables.c: Likewise.
4145 * tree-ssa-sink.c: Likewise.
4146 * tree-ssa-strlen.c: Likewise.
4147 * tree-ssa-structalias.c: Likewise.
4148 * tree-ssa-tail-merge.c: Likewise.
4149 * tree-ssa-threadbackward.c: Likewise.
4150 * tree-ssa-threadedge.c: Likewise.
4151 * tree-ssa-uninit.c: Likewise.
4152 * tree-switch-conversion.c: Likewise.
4153 * tree-vect-data-refs.c: Likewise.
4154 * tree-vect-loop.c: Likewise.
4155 * tree-vect-slp.c: Likewise.
4156 * tree-vrp.c: Likewise.
4157 * tree.c: Likewise.
4158 * value-prof.c: Likewise.
4159 * var-tracking.c: Likewise.
4160
4161 2019-11-12 Martin Liska <mliska@suse.cz>
4162
4163 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4164 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4165 macro.
4166 (asan_sanitize_allocas_p): Likewise.
4167 (asan_emit_stack_protection): Likewise.
4168 (asan_protect_global): Likewise.
4169 (instrument_derefs): Likewise.
4170 (instrument_builtin_call): Likewise.
4171 (asan_expand_mark_ifn): Likewise.
4172 * auto-profile.c (auto_profile): Likewise.
4173 * bb-reorder.c (copy_bb_p): Likewise.
4174 (duplicate_computed_gotos): Likewise.
4175 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4176 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4177 (try_crossjump_bb): Likewise.
4178 * cfgexpand.c (defer_stack_allocation): Likewise.
4179 (stack_protect_classify_type): Likewise.
4180 (pass_expand::execute): Likewise.
4181 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4182 (estimate_reg_pressure_cost): Likewise.
4183 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4184 * combine.c (combine_instructions): Likewise.
4185 (record_value_for_reg): Likewise.
4186 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4187 (aarch64_option_default_params): Likewise.
4188 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4189 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4190 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4191 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4192 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4193 (aarch64_allocate_and_probe_stack_space): Likewise.
4194 (aarch64_expand_epilogue): Likewise.
4195 (aarch64_override_options_internal): Likewise.
4196 * config/alpha/alpha.c (alpha_option_override): Likewise.
4197 * config/arm/arm.c (arm_option_override): Likewise.
4198 (arm_valid_target_attribute_p): Likewise.
4199 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4200 * config/i386/i386.c (get_probe_interval): Likewise.
4201 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4202 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4203 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4204 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4205 (get_stack_clash_protection_guard_size): Likewise.
4206 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4207 * config/s390/s390.c (allocate_stack_space): Likewise.
4208 (s390_emit_prologue): Likewise.
4209 (s390_option_override_internal): Likewise.
4210 * config/sparc/sparc.c (sparc_option_override): Likewise.
4211 * config/visium/visium.c (visium_option_override): Likewise.
4212 * coverage.c (get_coverage_counts): Likewise.
4213 (coverage_compute_profile_id): Likewise.
4214 (coverage_begin_function): Likewise.
4215 (coverage_end_function): Likewise.
4216 * cse.c (cse_find_path): Likewise.
4217 (cse_extended_basic_block): Likewise.
4218 (cse_main): Likewise.
4219 * cselib.c (cselib_invalidate_mem): Likewise.
4220 * dse.c (dse_step1): Likewise.
4221 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4222 (get_max_insn_count): Likewise.
4223 (make_debug_insn_raw): Likewise.
4224 (init_emit): Likewise.
4225 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4226 * final.c (compute_alignments): Likewise.
4227 * fold-const.c (fold_range_test): Likewise.
4228 (fold_truth_andor): Likewise.
4229 (tree_single_nonnegative_warnv_p): Likewise.
4230 (integer_valued_real_single_p): Likewise.
4231 * gcse.c (want_to_gcse_p): Likewise.
4232 (prune_insertions_deletions): Likewise.
4233 (hoist_code): Likewise.
4234 (gcse_or_cprop_is_too_expensive): Likewise.
4235 * ggc-common.c: Likewise.
4236 * ggc-page.c (ggc_collect): Likewise.
4237 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4238 (MAX_DATAREFS): Likewise.
4239 (OUTER_STRIDE_RATIO): Likewise.
4240 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4241 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4242 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4243 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4244 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4245 (imm_store_chain_info::output_merged_store): Likewise.
4246 (pass_store_merging::process_store): Likewise.
4247 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4248 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4249 (scop_to_isl_ast): Likewise.
4250 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4251 (optimize_isl): Likewise.
4252 * graphite-scop-detection.c (build_scops): Likewise.
4253 * haifa-sched.c (set_modulo_params): Likewise.
4254 (rank_for_schedule): Likewise.
4255 (model_add_to_worklist): Likewise.
4256 (model_promote_insn): Likewise.
4257 (model_choose_insn): Likewise.
4258 (queue_to_ready): Likewise.
4259 (autopref_multipass_dfa_lookahead_guard): Likewise.
4260 (schedule_block): Likewise.
4261 (sched_init): Likewise.
4262 * hsa-gen.c (init_prologue): Likewise.
4263 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4264 (cond_move_process_if_block): Likewise.
4265 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4266 (merge_agg_lats_step): Likewise.
4267 (devirtualization_time_bonus): Likewise.
4268 (hint_time_bonus): Likewise.
4269 (incorporate_penalties): Likewise.
4270 (good_cloning_opportunity_p): Likewise.
4271 (ipcp_propagate_stage): Likewise.
4272 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4273 (set_switch_stmt_execution_predicate): Likewise.
4274 (analyze_function_body): Likewise.
4275 (compute_fn_summary): Likewise.
4276 * ipa-inline-analysis.c (estimate_growth): Likewise.
4277 * ipa-inline.c (caller_growth_limits): Likewise.
4278 (inline_insns_single): Likewise.
4279 (inline_insns_auto): Likewise.
4280 (can_inline_edge_by_limits_p): Likewise.
4281 (want_early_inline_function_p): Likewise.
4282 (big_speedup_p): Likewise.
4283 (want_inline_small_function_p): Likewise.
4284 (want_inline_self_recursive_call_p): Likewise.
4285 (edge_badness): Likewise.
4286 (recursive_inlining): Likewise.
4287 (compute_max_insns): Likewise.
4288 (early_inliner): Likewise.
4289 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4290 * ipa-profile.c (ipa_profile): Likewise.
4291 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4292 (ipa_analyze_node): Likewise.
4293 (ipcp_transform_function): Likewise.
4294 * ipa-split.c (consider_split): Likewise.
4295 * ipa-sra.c (allocate_access): Likewise.
4296 (process_scan_results): Likewise.
4297 (ipa_sra_summarize_function): Likewise.
4298 (pull_accesses_from_callee): Likewise.
4299 * ira-build.c (loop_compare_func): Likewise.
4300 (mark_loops_for_removal): Likewise.
4301 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4302 * loop-doloop.c (doloop_optimize): Likewise.
4303 * loop-invariant.c (gain_for_invariant): Likewise.
4304 (move_loop_invariants): Likewise.
4305 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4306 (decide_unroll_runtime_iterations): Likewise.
4307 (decide_unroll_stupid): Likewise.
4308 (expand_var_during_unrolling): Likewise.
4309 * lra-assigns.c (spill_for): Likewise.
4310 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4311 * modulo-sched.c (sms_schedule): Likewise.
4312 (DFA_HISTORY): Likewise.
4313 * opts.c (default_options_optimization): Likewise.
4314 (finish_options): Likewise.
4315 (common_handle_option): Likewise.
4316 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4317 (if): Likewise.
4318 * predict.c (get_hot_bb_threshold): Likewise.
4319 (maybe_hot_count_p): Likewise.
4320 (probably_never_executed): Likewise.
4321 (predictable_edge_p): Likewise.
4322 (predict_loops): Likewise.
4323 (expr_expected_value_1): Likewise.
4324 (tree_predict_by_opcode): Likewise.
4325 (handle_missing_profiles): Likewise.
4326 * reload.c (find_equiv_reg): Likewise.
4327 * reorg.c (redundant_insn): Likewise.
4328 * resource.c (mark_target_live_regs): Likewise.
4329 (incr_ticks_for_insn): Likewise.
4330 * sanopt.c (pass_sanopt::execute): Likewise.
4331 * sched-deps.c (sched_analyze_1): Likewise.
4332 (sched_analyze_2): Likewise.
4333 (sched_analyze_insn): Likewise.
4334 (deps_analyze_insn): Likewise.
4335 * sched-ebb.c (schedule_ebbs): Likewise.
4336 * sched-rgn.c (find_single_block_region): Likewise.
4337 (too_large): Likewise.
4338 (haifa_find_rgns): Likewise.
4339 (extend_rgns): Likewise.
4340 (new_ready): Likewise.
4341 (schedule_region): Likewise.
4342 (sched_rgn_init): Likewise.
4343 * sel-sched-ir.c (make_region_from_loop): Likewise.
4344 * sel-sched-ir.h (MAX_WS): Likewise.
4345 * sel-sched.c (process_pipelined_exprs): Likewise.
4346 (sel_setup_region_sched_flags): Likewise.
4347 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4348 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4349 * toplev.c (print_version): Likewise.
4350 (process_options): Likewise.
4351 * tracer.c (tail_duplicate): Likewise.
4352 * trans-mem.c (tm_log_add): Likewise.
4353 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4354 * tree-data-ref.c (split_constant_offset): Likewise.
4355 (compute_all_dependences): Likewise.
4356 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4357 * tree-inline.c (remap_gimple_stmt): Likewise.
4358 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4359 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4360 (create_parallel_loop): Likewise.
4361 * tree-predcom.c (determine_unroll_factor): Likewise.
4362 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4363 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4364 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4365 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4366 (dse_optimize_redundant_stores): Likewise.
4367 (dse_classify_store): Likewise.
4368 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4369 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4370 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4371 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4372 (try_peel_loop): Likewise.
4373 (tree_unroll_loops_completely): Likewise.
4374 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4375 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4376 (MAX_CONSIDERED_GROUPS): Likewise.
4377 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4378 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4379 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4380 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4381 (L1_CACHE_SIZE_BYTES): Likewise.
4382 (L2_CACHE_SIZE_BYTES): Likewise.
4383 (should_issue_prefetch_p): Likewise.
4384 (schedule_prefetches): Likewise.
4385 (determine_unroll_factor): Likewise.
4386 (volume_of_references): Likewise.
4387 (add_subscript_strides): Likewise.
4388 (self_reuse_distance): Likewise.
4389 (mem_ref_count_reasonable_p): Likewise.
4390 (insn_to_prefetch_ratio_too_small_p): Likewise.
4391 (loop_prefetch_arrays): Likewise.
4392 (tree_ssa_prefetch_arrays): Likewise.
4393 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4394 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4395 (convert_mult_to_fma): Likewise.
4396 (math_opts_dom_walker::after_dom_children): Likewise.
4397 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4398 (hoist_adjacent_loads): Likewise.
4399 (gate_hoist_loads): Likewise.
4400 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4401 (compute_partial_antic_aux): Likewise.
4402 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4403 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4404 (vn_reference_lookup): Likewise.
4405 (do_rpo_vn): Likewise.
4406 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4407 * tree-ssa-sink.c (select_best_block): Likewise.
4408 * tree-ssa-strlen.c (new_stridx): Likewise.
4409 (new_addr_stridx): Likewise.
4410 (get_range_strlen_dynamic): Likewise.
4411 (class ssa_name_limit_t): Likewise.
4412 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4413 (create_variable_info_for_1): Likewise.
4414 (init_alias_vars): Likewise.
4415 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4416 (tail_merge_optimize): Likewise.
4417 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4418 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4419 (thread_jumps::find_jump_threads_backwards): Likewise.
4420 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4421 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4422 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4423 (jump_table_cluster::can_be_handled): Likewise.
4424 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4425 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4426 (param_switch_conversion_branch_ratio): Likewise.
4427 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4428 (vect_enhance_data_refs_alignment): Likewise.
4429 (vect_prune_runtime_alias_test_list): Likewise.
4430 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4431 (vect_get_datarefs_in_loop): Likewise.
4432 (vect_analyze_loop): Likewise.
4433 * tree-vect-slp.c (vect_slp_bb): Likewise.
4434 * tree-vectorizer.h: Likewise.
4435 * tree-vrp.c (find_switch_asserts): Likewise.
4436 (vrp_prop::check_mem_ref): Likewise.
4437 * tree.c (wide_int_to_tree_1): Likewise.
4438 (cache_integer_cst): Likewise.
4439 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4440 (reverse_op): Likewise.
4441 (vt_find_locations): Likewise.
4442
4443 2019-11-12 Martin Liska <mliska@suse.cz>
4444
4445 * Makefile.in: Include params.opt.
4446 * flag-types.h (enum parloops_schedule_type): Add
4447 parloops_schedule_type used in params.opt.
4448 * params.opt: New file.
4449
4450 2019-11-12 Martin Liska <mliska@suse.cz>
4451
4452 * common.opt: Remove --param and --param= options.
4453 * opt-functions.awk: Mark CL_PARAMS for options
4454 that have Param keyword.
4455 * opts-common.c (decode_cmdline_options_to_array):
4456 Replace --param key=value with --param=key=value.
4457 * opts.c (print_filtered_help): Remove special
4458 printing of params.
4459 (print_specific_help): Update title for params.
4460 (common_handle_option): Do not handle OPT__param.
4461 opts.h (SET_OPTION_IF_UNSET): New macro.
4462 * doc/options.texi: Document Param keyword.
4463
4464 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4465 Frederik Harwath <frederik@codesourcery.com>
4466 Thomas Schwinge <thomas@codesourcery.com>
4467
4468 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4469 enumeration constant.
4470 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4471 (is_gimple_omp_offloaded): Likewise.
4472 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4473 constant. Adjust the value of ORT_NONE accordingly.
4474 (is_gimple_stmt): Handle OACC_SERIAL.
4475 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4476 (gomp_needs_data_present): Likewise.
4477 (gimplify_adjust_omp_clauses): Likewise.
4478 (gimplify_omp_workshare): Handle OACC_SERIAL.
4479 (gimplify_expr): Likewise.
4480 * omp-expand.c (expand_omp_target):
4481 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4482 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4483 * omp-low.c (is_oacc_parallel): Rename function to...
4484 (is_oacc_parallel_or_serial): ... this.
4485 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4486 (scan_sharing_clauses): Adjust accordingly.
4487 (scan_omp_for): Likewise.
4488 (lower_oacc_head_mark): Likewise.
4489 (convert_from_firstprivate_int): Likewise.
4490 (lower_omp_target): Likewise.
4491 (check_omp_nesting_restrictions): Handle
4492 GF_OMP_TARGET_KIND_OACC_SERIAL.
4493 (lower_oacc_reductions): Likewise.
4494 (lower_omp_target): Likewise.
4495 * tree.def (OACC_SERIAL): New tree code.
4496 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4497
4498 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4499
4500 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4501
4502 PR target/92449
4503 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4504 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4505
4506 PR tree-optimization/92452
4507 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4508 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4509 MINUS_EXPR on it.
4510
4511 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4512
4513 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4514 safelen with 0.
4515
4516 2019-11-12 Alan Modra <amodra@gmail.com>
4517
4518 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4519 element of unspec vec.
4520 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4521 PC-relative TLS.
4522 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4523 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4524 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4525 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4526
4527 2019-11-12 Alan Modra <amodra@gmail.com>
4528
4529 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4530 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4531 (IS_NOMARK_TLSGETADDR): Likewise.
4532 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4533 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4534 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4535 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4536 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4537 (rs6000_indirect_call_template_1): Likewise.
4538 (rs6000_pltseq_template): Likewise.
4539 (rs6000_opt_vars): Remove "tls-markers" entry.
4540 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4541 with TARGET_ELF.
4542 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4543 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4544 (pltseq_plt_pcrel<mode>): Likewise.
4545 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4546 (call_value_local64): Likewise.
4547 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4548 output and length attribute sub-expression.
4549 (call_value_nonlocal_sysv<mode>),
4550 (call_value_nonlocal_sysv_secure<mode>),
4551 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4552 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4553 (call_value_indirect_pcrel<mode>): Likewise.
4554 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4555 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4556 * configure: Regenerate.
4557 * config.in: Regenerate.
4558
4559 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4560
4561 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4562 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4563 address being a prefixed load/store.
4564 (stack_protect_testdi): Deal with either address being a prefixed
4565 load.
4566
4567 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4568
4569 PR bootstrap/92433
4570 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4571 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4572 std::swap.
4573
4574 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4575
4576 PR tree-optimization/92420
4577 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4578 up file.
4579 (get_group_load_store_type): Use it for reversed SLP accesses.
4580
4581 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4582
4583 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4584 summary.
4585 (ipcp_transformation_t::duplicate): Break out from ...
4586 (ipa_node_params_t::duplicate): ... here; add copying of agg
4587 replacements.
4588 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4589 (ipcp_transformation_t): Add duplicate.
4590
4591 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4592
4593 PR fortran/91828
4594 * doc/install.texi: Document that the minimum MPFR version is
4595 3.1.0.
4596
4597 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4598
4599 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4600 use new register constraint letters.
4601
4602 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4603
4604 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4605 as well, if interesting recover the symbol and re-legitimize the
4606 pic address.
4607
4608 2019-11-11 Martin Liska <mliska@suse.cz>
4609
4610 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4611 alphabetically.
4612
4613 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4614
4615 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4616 account when checking if there are enough iterations to vectorize
4617 epilogue.
4618
4619 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4620 Kwok Cheung Yeung <kcy@codesourcery.com>
4621
4622 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4623 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4624 (LANG_HOOKS_DECLS): Rename also here.
4625 * langhooks.h (lang_hooks_for_decls): Rename
4626 omp_is_optional_argument to omp_check_optional_argument; take
4627 additional bool argument.
4628 * omp-general.h (omp_check_optional_argument): Likewise.
4629 * omp-general.h (omp_check_optional_argument): Likewise.
4630 * omp-low.c (lower_omp_target): Update calls; handle absent
4631 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4632
4633 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4634
4635 PR target/87833
4636 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4637 -fPIC and -shared the last to create offload image.
4638
4639 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4640
4641 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4642 of 'offset'.
4643
4644 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4645 (config.status): Use/depend on it.
4646 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4647 * configure: Regenerate.
4648
4649 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4650
4651 PR tree-optimization/88760
4652 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4653 * common/config/rs6000/rs6000-common.c
4654 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4655 Turn on -funroll-loops and -munroll-only-small-loops.
4656 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4657 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4658 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4659 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4660 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4661 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4662
4663 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4664
4665 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4666 Make scalar_load, vector_load, unaligned_load and
4667 vector_gather_load cost more to conform hardware latency and
4668 insn cost settings.
4669
4670 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4671
4672 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4673 (MACHO_SYMBOL_LINKER_VIS_P): New.
4674
4675 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4676
4677 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4678 registers in eliminable_regset.
4679
4680 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4681
4682 * ipa-inline.c (compute_uninlined_call_time,
4683 compute_inlined_call_time): Take edge frequency as
4684 parameter rather than computing it by itself.
4685 (big_speedup_p, edge_badness): Manually CSE sreal
4686 frequency calculations.
4687
4688 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4689
4690 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4691 case where profiles are same.
4692
4693 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4694
4695 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4696
4697 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4698
4699 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4700 args summaries of inlined edge unless it holds info about
4701 described reference.
4702
4703 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4704
4705 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4706 (*movcc_internal1): Rename to...
4707 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4708
4709 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4710
4711 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4712 (cgraph_node::create_virtual_clone): Copy it.
4713 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4714 summaries.
4715 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4716 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4717 is disabled.
4718 (propagate_constants_across_call): If callee is not analyzed, give up.
4719 (propagate_constants_topo): Lower to bottom latties of all callees of
4720 functions with ipa-cp disabled.
4721 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4722 (cgraph_edge_brings_value_p): Check for availability first.
4723 (create_specialized_node): Set ipcp_clone.
4724 (ipcp_store_bits_results): Check that info is present.
4725 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4726 thunks.
4727 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4728 conservative when callee summary is missing.
4729 (remap_edge_summaries): Lookup call summary only when needed.
4730 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4731 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4732 Use get_create.
4733 (ipa_analyze_node): Use get_create.
4734 (propagate_controlled_uses): Do not propagate when function is not
4735 analyzed.
4736 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4737 (ipa_read_node_info): Use get_create.
4738 * ipa-prop.h (IPA_NODE_REF): Use get.
4739 (IPA_NODE_REF_GET_CREATE): New.
4740
4741 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4742
4743 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4744 on function symbol.
4745
4746 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4747
4748 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4749 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4750 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4751 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4752
4753 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4754
4755 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4756 capping the growth cumulated.
4757 (offline_size): Break out from ...
4758 (estimate_growth): ... here.
4759 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4760 parameters.
4761 (growth_likely_positive): Turn to ...
4762 (growth_positive_p): Re-implement.
4763 * ipa-inline.h (growth_likely_positive): Remove.
4764 (growth_positive_p): Declare.
4765 * ipa-inline.c (want_inline_small_function_p): Use
4766 growth_positive_p.
4767 (want_inline_function_to_all_callers_p): Likewise.
4768
4769 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4770
4771 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4772 calculation of min_size.
4773 (ipa_update_overall_fn_summary): Likewise.
4774
4775 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4776
4777 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4778 estimate_edge_devirt_benefit when not computing hints;
4779 do not compute time when not asked for.
4780 (estimate_calls_size_and_time): Pass NULL hints and time when
4781 these are not computed; do not evaluate hint predicates when these are
4782 not computed.
4783 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4784 frequency.
4785
4786 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4787
4788 PR tree-optimization/92401
4789 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4790 if res_op->code is an expression with code length 1.
4791 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4792 if res_op->code is an expression with code length 2.
4793 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4794 if res_op->code is an expression with code length 3.
4795
4796 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4797
4798 * config/darwin.c (machopic_mcount_stub_name): Validate the
4799 symbol stub name when it is created.
4800 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4801 stub validation.
4802
4803 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4804
4805 * symtab.c: Fix comment typos.
4806 * cgraphunit.c: Likewise.
4807 * cgraph.h: Likewise.
4808 * cgraphclones.c: Likewise.
4809 * cgraph.c: Likewise.
4810 * varpool.c: Likewise.
4811 * tree-ssa-strlen.c: Likewise.
4812 * ipa-sra.c: Likewise.
4813 (scan_expr_access, check_all_callers_for_issues): Fix typo
4814 in a dump message.
4815
4816 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4817
4818 * config/darwin-protos.h: Add include quard.
4819
4820 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4821
4822 * range-op.h (range_operator::fold_range): Return result in a
4823 reference parameter instead of by value.
4824 (range_operator::wi_fold): Same.
4825 * range-op.cc (range_operator::wi_fold): Return result in a reference
4826 parameter instead of by value.
4827 (range_operator::fold_range): Same.
4828 (value_range_from_overflowed_bounds): Same.
4829 (value_range_with_overflow): Same
4830 (create_possibly_reversed_range): Same.
4831 (operator_equal::fold_range): Same.
4832 (operator_not_equal::fold_range): Same.
4833 (operator_lt::fold_range): Same.
4834 (operator_le::fold_range): Same.
4835 (operator_gt::fold_range): Same.
4836 (operator_ge::fold_range): Same.
4837 (operator_plus::wi_fold): Same.
4838 (operator_plus::op1_range): Change call to fold_range.
4839 (operator_plus::op2_range): Change call to fold_range.
4840 (operator_minus::wi_fold): Return result via reference parameter.
4841 (operator_minus::op1_range): Change call to fold_range.
4842 (operator_minus::op2_range): Change call to fold_range.
4843 (operator_min::wi_fold): Return result via reference parameter.
4844 (operator_max::wi_fold): Same.
4845 (cross_product_operator::wi_cross_product): Same.
4846 (operator_mult::wi_fold): Same.
4847 (operator_div::wi_fold): Same.
4848 (operator_div op_floor_div): Fix whitespace.
4849 (operator_exact_divide::op1_range): Change call to fold_range.
4850 (operator_lshift::fold_range): Return result via reference parameter.
4851 (operator_lshift::wi_fold): Same.
4852 (operator_rshift::fold_range): Same.
4853 (operator_rshift::wi_fold): Same.
4854 (operator_cast::fold_range): Same.
4855 (operator_cast::op1_range): Change calls to fold_range.
4856 (operator_logical_and::fold_range): Return result via reference.
4857 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4858 (operator_bitwise_and::wi_fold): Return result via reference.
4859 (operator_logical_or::fold_range): Same.
4860 (operator_bitwise_or::wi_fold): Same.
4861 (operator_bitwise_xor::wi_fold): Same.
4862 (operator_trunc_mod::wi_fold): Same.
4863 (operator_logical_not::fold_range): Same.
4864 (operator_bitwise_not::fold_range): Same.
4865 (operator_bitwise_not::op1_range): Change call to fold_range.
4866 (operator_cst::fold_range): Return result via reference.
4867 (operator_identity::fold_range): Same.
4868 (operator_abs::wi_fold): Same.
4869 (operator_absu::wi_fold): Same.
4870 (operator_negate::fold_range): Same.
4871 (operator_negate::op1_range): Change call to fold_range.
4872 (operator_addr_expr::fold_range): Return result via reference.
4873 (operator_addr_expr::op1_range): Change call to fold_range.
4874 (operator_pointer_plus::wi_fold): Return result via reference.
4875 (operator_pointer_min_max::wi_fold): Same.
4876 (operator_pointer_and::wi_fold): Same.
4877 (operator_pointer_or::wi_fold): Same.
4878 (range_op_handler): Change call to fold_range.
4879 (range_cast): Same.
4880 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4881 fold_range.
4882 (range_fold_unary_symbolics_p): Same.
4883 (range_fold_binary_expr): Same.
4884 (range_fold_unary_expr): Same.
4885
4886 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4887
4888 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4889 vector type as an argument rather than reading it from the
4890 stmt_vec_info.
4891 (vect_create_epilog_for_reduction): Update accordingly.
4892 (vectorizable_reduction): Likewise.
4893 (vect_transform_cycle_phi): Likewise.
4894
4895 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4896
4897 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4898 the comparison codes that make sense for the mode used, and only the
4899 codes that can be done with a single branch instruction.
4900
4901 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4902
4903 PR tree-optimization/92351
4904 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4905 peeling the main loop for alignment, make sure to set the misalignment
4906 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4907
4908 2019-11-08 Richard Biener <rguenther@suse.de>
4909
4910 * dbgcnt.def (ivopts_loop): Add.
4911 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4912 ivopts_loop before optimizing a loop.
4913
4914 2019-11-08 Richard Biener <rguenther@suse.de>
4915
4916 PR ipa/92409
4917 * tree-inline.c (declare_return_variable): Properly handle
4918 type mismatches for the return slot.
4919
4920 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4921
4922 PR target/92095
4923 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4924 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4925 change.
4926 (got_helper_needed): New static variable.
4927 (output_load_pcrel_sym): New function.
4928 (get_pc_thunk_name): Remove after inlining...
4929 (load_got_register): ...here. Rework the initialization of the GOT
4930 register and of the GOT helper.
4931 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4932 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4933 helper must be emitted. Use output_asm_insn instead of fprintf.
4934 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4935 if optimization is enabled.
4936 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4937 by calling output_load_pcrel_sym.
4938
4939 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4940
4941 * tree-sra.c (create_access): Delay disqualifying the base
4942 for poly_int values until we know we have a base.
4943
4944 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4945
4946 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4947 for loops with SIMDUID set. Enable epilogue vectorization for loops
4948 with SIMDLEN set after finding a main loop with a VF that matches it.
4949
4950 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4951
4952 PR target/92038
4953 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4954 value only, return non-NULL if there is a single non-clobber
4955 constituent store even if there are constituent clobbers and return
4956 one of clobber constituent stores if all constituent stores are
4957 clobbers.
4958 (split_group): Handle clobbers.
4959 (imm_store_chain_info::output_merged_store): When computing
4960 bzero_first, look after all clobbers at the start. Don't count
4961 clobber stmts in orig_num_stmts, except if the first orig store is
4962 a clobber covering the whole area and split_stores cover the whole
4963 area, consider equal number of stmts ok. Punt if split_stores
4964 contains only ->orig stores and their number plus number of original
4965 clobbers is equal to original number of stmts. For ->orig, look past
4966 clobbers in the constituent stores.
4967 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4968 stmts.
4969 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4970 rhs.
4971 (store_valid_for_store_merging_p): Allow clobber stmts.
4972 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4973
4974 PR c++/92384
4975 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4976 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4977 slot.
4978 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4979 force creation of a unique data.stack_parm slot.
4980
4981 2019-11-08 Richard Biener <rguenther@suse.de>
4982
4983 * genmatch.c (expr::gen_transform): Use the resimplify
4984 member function instead of hard-coding the gimple_resimplifyN variant.
4985 (dt_simplify::gen_1): Likewise.
4986
4987 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4988
4989 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4990 POLY_INT_CST.
4991
4992 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4993
4994 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4995 instead of INTEGER_CST.
4996
4997 2019-11-08 Richard Biener <rguenther@suse.de>
4998
4999 PR tree-optimization/92324
5000 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5001 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5002 sign-conversions as necessary.
5003 (vectorizable_reduction): Reject conversions in the chain
5004 that are not sign-conversions, base analysis on a non-converting
5005 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5006 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5007 for debug stmts.
5008 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5009 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5010
5011 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5012
5013 PR target/92055
5014 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5015 Fix a missing '-' when displaying these options in the
5016 help screen.
5017
5018 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5019
5020 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5021
5022 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5023
5024 * config/aarch64/aarch64-builtins.c
5025 (aarch64_builtin_vectorized_function): Remove bswap handling.
5026
5027 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5028
5029 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5030 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5031 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5032 Treat the vector types as indivisible.
5033
5034 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5035
5036 * optabs.def (gather_load_optab, mask_gather_load_optab)
5037 (scatter_store_optab, mask_scatter_store_optab): Turn into
5038 conversion optabs, with the offset mode given explicitly.
5039 * doc/md.texi: Update accordingly.
5040 * config/aarch64/aarch64-sve-builtins-base.cc
5041 (svld1_gather_impl::expand): Likewise.
5042 (svst1_scatter_impl::expand): Likewise.
5043 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5044 (expand_scatter_store_optab_fn): Likewise.
5045 (direct_gather_load_optab_supported_p): Likewise.
5046 (direct_scatter_store_optab_supported_p): Likewise.
5047 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5048 to be argument 4.
5049 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5050 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5051 argument with the offset vector type. Require the two vector
5052 types to have the same number of elements but allow their element
5053 sizes to be different. Treat the optabs as conversion optabs.
5054 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5055 prototype accordingly.
5056 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5057 (supports_vec_convert_optab_p): ...this new function.
5058 (supports_vec_gather_load_p): Update accordingly.
5059 (supports_vec_scatter_store_p): Likewise.
5060 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5061 Replace the offset sign and bits parameters with a scalar type tree.
5062 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5063 Pass back the offset vector type instead of the scalar element type.
5064 Allow the offset to be wider than the memory elements. Search for
5065 an offset type that the target supports, stopping once we've
5066 reached the maximum of the element size and pointer size.
5067 Update call to internal_gather_scatter_fn_supported_p.
5068 (vect_check_gather_scatter): Update calls accordingly.
5069 When testing a new scale before knowing the final offset type,
5070 check whether the scale is supported for any signed or unsigned
5071 offset type. Check whether the target supports the source and
5072 target types of a conversion before deciding whether to look
5073 through the conversion. Record the chosen offset_vectype.
5074 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5075 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5076 directly from the gs_info's offset_vectype instead. Pass a zero
5077 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5078 * tree-vect-stmts.c (check_load_store_masking): Update call to
5079 internal_gather_scatter_fn_supported_p, passing the offset vector
5080 type recorded in the gs_info.
5081 (vect_truncate_gather_scatter_offset): Update call to
5082 vect_check_gather_scatter, leaving it to search for a valid
5083 offset vector type.
5084 (vect_use_strided_gather_scatters_p): Convert the offset to the
5085 element type of the gs_info's offset_vectype.
5086 (vect_get_gather_scatter_ops): Get the offset vector type directly
5087 from the gs_info.
5088 (vect_get_strided_load_store_ops): Likewise.
5089 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5090 and IFN_MASK_GATHER_LOAD.
5091 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5092 (gather_load<mode><v_int_equiv>): ...this.
5093 (mask_gather_load<mode>): Rename to...
5094 (mask_gather_load<mode><v_int_equiv>): ...this.
5095 (scatter_store<mode>): Rename to...
5096 (scatter_store<mode><v_int_equiv>): ...this.
5097 (mask_scatter_store<mode>): Rename to...
5098 (mask_scatter_store<mode><v_int_equiv>): ...this.
5099
5100 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5101
5102 PR target/92132
5103 * config/rs6000/predicates.md
5104 (signed_or_equality_comparison_operator): New predicate.
5105 (unsigned_or_equality_comparison_operator): Likewise.
5106 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5107 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5108 * config/rs6000/vector.md
5109 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5110 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5111 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5112 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5113 vector modes and same-size integer vector modes.
5114 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5115 (vector_lt<mode> for VEC_F): New expand.
5116 (vector_le<mode> for VEC_F): Likewise.
5117 (vector_ne<mode> for VEC_F): Likewise.
5118 (vector_unge<mode> for VEC_F): Likewise.
5119 (vector_ungt<mode> for VEC_F): Likewise.
5120 (vector_unle<mode> for VEC_F): Likewise.
5121 (vector_unlt<mode> for VEC_F): Likewise.
5122 (vector_uneq<mode>): Expose name.
5123 (vector_ltgt<mode>): Likewise.
5124 (vector_unordered<mode>): Likewise.
5125 (vector_ordered<mode>): Likewise.
5126
5127 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5128
5129 PR target/92295
5130 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5131 Enhance ix86_expand_vector_init_concat.
5132
5133 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5134
5135 * doc/invoke.texi (-Wold-style-definition): Document () not being
5136 considered an old-style definition for C2x.
5137
5138 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5139
5140 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5141 Enhance comment.
5142 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5143 insn patterns using ldcw instruction.
5144 (memory_barrier): Remove insn pattern using sync instruction.
5145 * config/pa/pa.opt (coherent-ldcw): New option.
5146 (ordered): New option.
5147
5148 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5149
5150 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5151 valid conditions.
5152
5153 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5154
5155 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5156 typo - mistmatch -> mismatch.
5157 * ipa-profile.c (ipa_profile): Likewise.
5158 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5159 - mistmatch -> mismatch.
5160
5161 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5162
5163 * simplify-rtx.c (comparison_to_mask): New function.
5164 (mask_to_comparison): New function.
5165 (simplify_logical_relational_operation): New function.
5166 (simplify_binary_operation_1): Call
5167 simplify_logical_relational_operation.
5168
5169 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5170
5171 PR other/92090
5172 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5173 modes for integer constants.
5174
5175 2019-11-07 Jan Hubicka <jh@suse.cz>
5176
5177 PR ipa/92406
5178 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5179 summary.
5180
5181 2019-11-07 Jan Hubicka <jh@suse.cz>
5182
5183 * optc-save-gen.awk: Generate cl_target_option_free
5184 and cl_optimization_option_free.
5185 * opth-en.awk: Declare cl_target_option_free
5186 and cl_optimization_option_free.
5187 * tree.c (free_node): Use it.
5188
5189 2019-11-06 Jan Hubicka <jh@suse.cz>
5190
5191 * lto-streamer-in.c: Include alloc-pool.h.
5192 (freeing_string_slot_hasher): Remove.
5193 (string_slot_allocator): New object allocator.
5194 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5195 (file_name_obstack): New obstack.
5196 (canon_file_name): Allocate in obstack and allocator.
5197 (lto_reader_init): Initialize obstack and allocator.
5198 (lto_free_file_name_hash): New function.
5199 * lto-streamer.h (lto_free_file_name_hash): New.
5200
5201 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5202
5203 PR tree-optimization/89134
5204 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5205 * params.def: Add min-loop-cond-split-prob.
5206 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5207 outside checks on loop into the function.
5208 (split_info): New class.
5209 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5210 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5211 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5212 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5213 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5214 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5215 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5216 (split_loop_on_cond): Likewise.
5217 (tree_ssa_split_loops): Add loop split on conditional statement.
5218
5219 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5220
5221 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5222 pattern.
5223
5224 2019-11-07 Richard Biener <rguenther@suse.de>
5225
5226 PR tree-optimization/92405
5227 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5228 restrict lane-reducing ops to single stmt chains.
5229
5230 2019-11-07 Martin Jambor <mjambor@suse.cz>
5231
5232 PR lto/70929
5233 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5234 * cgraph.h (gimple_check_call_matching_types): Remove
5235 * cgraph.c (gimple_check_call_args): Likewise.
5236 (gimple_check_call_matching_types): Likewise.
5237 (symbol_table::create_edge): Do not call
5238 gimple_check_call_matching_types.
5239 (cgraph_edge::make_direct): Likewise.
5240 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5241 * value-prof.h (check_ic_target): Remove.
5242 * value-prof.c (check_ic_target): Remove.
5243 (gimple_ic_transform): Do nat call check_ic_target.
5244 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5245 (afdo_indirect_call): Likewise.
5246 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5247 gimple_check_call_matching_types.
5248 * ipa-inline.c (early_inliner): Likewise.
5249
5250 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5251
5252 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5253 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5254 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5255 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5256 * config/arm/iterators.md (USSAT16): New int_iterator.
5257 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5258 (sup): Likewise.
5259 * config/arm/predicates.md (ssat16_imm): New predicate.
5260 (usat16_imm): Likewise.
5261 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5262
5263 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5264
5265 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5266 New define_insns.
5267 (arm_<simd32_op>): New define_expands.
5268 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5269 __smuad, __smuadx): Define.
5270 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5271 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5272 (SIMD32_BINOP_Q): Likewise.
5273 (simd32_op): Handle the above.
5274 * config/arm/unspecs.md: Define unspecs for the above.
5275
5276 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5277
5278 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5279 * config/arm/arm.md (APSRGE_REGNUM): Define.
5280 (arm_<simd32_op>): New define_insn.
5281 (arm_sel): Likewise.
5282 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5283 (CALL_USED_REGISTERS): Likewise.
5284 (REG_ALLOC_ORDER): Likewise.
5285 (FIRST_PSEUDO_REGISTER): Update value.
5286 (ARM_GE_BITS_READ): Define.
5287 * config/arm/arm.c (arm_conditional_register_usage): Clear
5288 APSRGE_REGNUM from operand_reg_set.
5289 (arm_ge_bits_access): Define.
5290 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5291 ARM_BUIILTIN_sel.
5292 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5293 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5294 FAIL if ARM_GE_BITS_READ.
5295 (*arm_add<mode>3): New define_insn.
5296 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5297 (*arm_sub<mode>3): New define_insn.
5298 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5299 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5300 __usub16): Define.
5301 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5302 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5303 (simd32_op): Handle the above.
5304 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5305 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5306 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5307 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5308
5309 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5310
5311 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5312 (arm_smlabb): New define_expand.
5313 (*maddhisi4tb): Rename to...
5314 (maddhisi4tb): ... This.
5315 (*maddhisi4tt): Rename to...
5316 (maddhisi4tt): ... This.
5317 (arm_smlatb_setq): New define_insn.
5318 (arm_smlatb): New define_expand.
5319 (arm_smlatt_setq): New define_insn.
5320 (arm_smlatt): New define_expand.
5321 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5322 (arm_<smlaw_op>): New define_expand.
5323 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5324 __smlawb, __smlawt): Define.
5325 * config/arm_acle_builtins.def: Define builtins for the above.
5326 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5327 (slaw_op): New int_attribute.
5328 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5329
5330 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5331
5332 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5333 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5334 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5335 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5336 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5337 (ss_op): New code_attr.
5338
5339 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5340
5341 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5342 * config/arm/arm.md (APSRQ_REGNUM): Define.
5343 (add_setq): New define_subst.
5344 (add_clobber_q_name): New define_subst_attr.
5345 (add_clobber_q_pred): Likewise.
5346 (maddhisi4): Change to define_expand. Split into mult and add if
5347 ARM_Q_BIT_READ.
5348 (arm_maddhisi4): New define_insn.
5349 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5350 (*maddhisi4tt): Likewise.
5351 (arm_ssat): New define_expand.
5352 (arm_usat): Likewise.
5353 (arm_get_apsr): New define_insn.
5354 (arm_set_apsr): Likewise.
5355 (arm_saturation_occurred): New define_expand.
5356 (arm_set_saturation): Likewise.
5357 (*satsi_<SAT:code>): Rename to...
5358 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5359 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5360 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5361 (CALL_USED_REGISTERS): Mark apsrq.
5362 (FIRST_PSEUDO_REGISTER): Update value.
5363 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5364 (machine_function): Add q_bit_access.
5365 (ARM_Q_BIT_READ): Define.
5366 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5367 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5368 operand_reg_set.
5369 (arm_q_bit_access): Define.
5370 * config/arm/arm-builtins.c: Include stringpool.h.
5371 (arm_sat_binop_imm_qualifiers,
5372 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5373 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5374 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5375 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5376 SET_SAT_QUALIFIERS): Likewise.
5377 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5378 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5379 Handle 0 argument expander.
5380 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5381 (arm_check_builtin_call): Define.
5382 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5383 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5384 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5385 (arm_q_bit_access): Likewise.
5386 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5387 __saturation_occurred, __set_saturation_occurred): Define.
5388 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5389 saturation_occurred, set_saturation_occurred.
5390 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5391 (UNSPEC_APSR_READ): Likewise.
5392 (VUNSPEC_APSR_WRITE): Likewise.
5393 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5394 (*arm_ssadd<mode>3): New define_insn.
5395 (sssub<mode>3): Convert to define_expand.
5396 (*arm_sssub<mode>3): New define_insn.
5397 (ssmulsa3): Convert to define_expand.
5398 (*arm_ssmulsa3): New define_insn.
5399 (usmulusa3): Convert to define_expand.
5400 (*arm_usmulusa3): New define_insn.
5401 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5402 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5403 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5404
5405 2019-11-07 Martin Liska <mliska@suse.cz>
5406
5407 PR c++/92354
5408 * cgraph.c (delete_function_version): Clear global
5409 variable version_info_node if equal to deleted
5410 function.
5411
5412 2019-11-07 Martin Liska <mliska@suse.cz>
5413
5414 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5415 of CONSTRUCTOR_NO_CLEARING.
5416 (operand_compare::hash_operand): Likewise.
5417
5418 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5419
5420 Support 64-bit double and 64-bit long double configurations.
5421
5422 PR target/92055
5423 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5424 --with-long-double=.
5425 * config/avr/t-multilib: Remove.
5426 * config/avr/t-avr: Output of genmultilib.awk is now fully
5427 dynamically generated and no more part of the repo.
5428 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5429 Pass them down to...
5430 * config/avr/genmultilib.awk: ...here and handle them.
5431 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5432 (-mlong-double=, avr_long_double). New option and var.
5433 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5434 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5435 Set default as requested by --with-double=
5436 (TARGET_HANDLE_OPTION): Define to this...
5437 (avr_handle_option): ...new hook worker.
5438 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5439 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5440 (avr_double_lib): New proto for spec function.
5441 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5442 (DRIVER_SELF_SPECS): Call %:double-lib.
5443 * config/avr/avr.c (avr_option_override): Assert
5444 sizeof(long double) >= sizeof(double) for the target.
5445 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5446 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5447 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5448 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5449 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5450 New built-in define depending on --with-double=, --with-long-double=.
5451 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5452 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5453 * doc/install.texi (Cross-Compiler-Specific Options)
5454 <--with-double=, --with-long-double=>: Doc.
5455
5456 2019-11-07 Richard Biener <rguenther@suse.de>
5457
5458 * dbgcnt.def (gimple_unroll): New.
5459 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5460 gimple_unroll debug counter before applying transform.
5461 (try_peel_loop): Likewise.
5462
5463 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5464
5465 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5466 frame pointer in multiple registers.
5467 (ira_setup_eliminable_regset): Setup eliminable_regset,
5468 ira_no_alloc_regs and regs_ever_live for frame pointer in
5469 multiple registers.
5470
5471 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5472
5473 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5474 V2DI modes.
5475
5476 2019-11-06 Jan Hubicka <jh@suse.cz>
5477
5478 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5479 allocations.
5480 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5481 Do not silently ignore summary corruptions.
5482
5483 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5484
5485 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5486 the epilogue if there are peeled iterations for it to handle.
5487
5488 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5489
5490 * config/arc/arc.c (arc_split_ior): Add asserts.
5491 (arc_split_mov_const): Likewise.
5492 (arc_check_ior_const): Do not match known short immediate values.
5493 * config/arc/arc.md (movsi): Don't split predicated instructions
5494 (iorsi): Likewise.
5495
5496 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5497
5498 * config/arc/arc.opt (mea): Update help string.
5499 * doc/invoke.texi(ARC): Update mea option info.
5500
5501 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5502
5503 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5504 (zero_extendqisi2_ac): Likewise.
5505 (zero_extendhisi2_i): Likewise.
5506 (extendqihi2_i): Likewise.
5507 (extendqisi2_ac): Likewise.
5508 (extendhisi2_i): Likewise.
5509
5510 2019-11-06 Richard Biener <rguenther@suse.de>
5511
5512 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5513 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5514 Simplify single_defuse_cycle condition.
5515
5516 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5517
5518 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5519 epilogue loop, make sure that the VF is small enough or that
5520 the epilogue loop can be fully-masked.
5521
5522 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5523
5524 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5525 loop when we've finished, rather than returning directly from
5526 the loop. Use a local variable to track whether we're still
5527 searching for the preferred simdlen. Make vect_epilogues
5528 record whether the next iteration should try to treat the
5529 loop as an epilogue.
5530
5531 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5532
5533 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5534 __arc_hard_float__, __ARC_HARD_FLOAT__,
5535 __arc_soft_float__, __ARC_SOFT_FLOAT__
5536
5537 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5538
5539 PR tree-optimization/92317
5540 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5541 update phi's with constant phi arguments.
5542
5543 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5544 Alexandre Oliva <oliva@adacore.com>
5545
5546 * common.opt (-fcallgraph-info[=]): New option.
5547 * doc/invoke.texi (Developer options): Document it.
5548 * opts.c (common_handle_option): Handle it.
5549 * builtins.c (expand_builtin_alloca): Record allocation if
5550 -fcallgraph-info=da.
5551 * calls.c (expand_call): If -fcallgraph-info, record the call.
5552 (emit_library_call_value_1): Likewise.
5553 * flag-types.h (enum callgraph_info_type): New type.
5554 * explow.c: Include stringpool.h.
5555 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5556 * function.c (allocate_stack_usage_info): New.
5557 (allocate_struct_function): Call it for -fcallgraph-info.
5558 (prepare_function_start): Call it otherwise.
5559 (record_final_call, record_dynamic_alloc): New.
5560 * function.h (struct callinfo_callee): New.
5561 (CALLEE_FROM_CGRAPH_P): New.
5562 (struct callinfo_dalloc): New.
5563 (struct stack_usage): Add callees and dallocs.
5564 (record_final_call, record_dynamic_alloc): Declare.
5565 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5566 object if -fcallgraph-info=da.
5567 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5568 * print-tree.h (print_decl_identifier): Declare.
5569 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5570 * print-tree.c: Include print-tree.h.
5571 (print_decl_identifier): New function.
5572 * toplev.c: Include print-tree.h.
5573 (callgraph_info_file): New global variable.
5574 (callgraph_info_external_printed): Likewise.
5575 (output_stack_usage): Rename to...
5576 (output_stack_usage_1): ... this. Make it static, add cf
5577 parameter. If -fcallgraph-info=su, print stack usage to cf.
5578 If -fstack-usage, use print_decl_identifier for
5579 pretty-printing.
5580 (INDIRECT_CALL_NAME): New.
5581 (dump_final_node_vcg_start): New.
5582 (dump_final_callee_vcg, dump_final_node_vcg): New.
5583 (output_stack_usage): New.
5584 (lang_dependent_init): Open and start file if
5585 -fcallgraph-info. Allocated callgraph_info_external_printed.
5586 (finalize): If callgraph_info_file is not null, finish it,
5587 close it, and release callgraph_info_external_printed.
5588
5589 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5590 Frederik Harwath <frederik@codesourcery.com>
5591 Thomas Schwinge <thomas@codesourcery.com>
5592
5593 * omp-low.c (struct omp_context): New fields
5594 local_reduction_clauses, outer_reduction_clauses.
5595 (new_omp_context): Initialize these.
5596 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5597 (scan_omp_for): Check reduction clauses for incorrect nesting.
5598
5599 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5600
5601 PR inline-asm/92352
5602 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5603 operands with non-memory constraints.
5604
5605 2019-11-05 Martin Sebor <msebor@redhat.com>
5606
5607 PR tree-optimization/92373
5608 * tree.c (component_ref_size): Only consider initializers of objects
5609 of matching struct types.
5610 Return null for instances of interior zero-length arrays.
5611
5612 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5613
5614 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5615
5616 2019-11-05 Jason Merrill <jason@redhat.com>
5617
5618 PR tree-optimization/91825
5619 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5620
5621 2019-11-05 Jim Wilson <jimw@sifive.com>
5622
5623 PR middle-end/92263
5624 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5625 optimize_insn_for_speed_p is true.
5626
5627 2019-11-05 Martin Sebor <msebor@redhat.com>
5628
5629 PR middle-end/92333
5630 PR middle-end/82608
5631 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5632 size.
5633 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5634 name and location for a temporary variable.
5635
5636 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5637
5638 * tree-vrp.c (value_range::value_range): Fix whitespace.
5639 (defined_ranges_p): Same.
5640 (range_fold_binary_symbolics_p): Same.
5641 (value_range::intersect_helper): Same.
5642 (value_range::union_helper): Same.
5643 * tree-vrp.h (range_fold_binary_expr): Same.
5644
5645 2019-11-04 Martin Sebor <msebor@redhat.com>
5646
5647 PR middle-end/92341
5648 PR middle-end/82612
5649 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5650 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5651 of message printed in a warning for empty arrays.
5652 (vrp_prop::check_mem_ref): Also handle function parameters and
5653 empty arrays.
5654
5655 2019-11-05 Richard Biener <rguenther@suse.de>
5656
5657 PR tree-optimization/92371
5658 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5659 on the original stmt of live stmts in the chain.
5660 (vectorizable_live_operation): Look at the original stmt when
5661 checking STMT_VINFO_REDUC_DEF.
5662
5663 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5664
5665 * gimple-fold.c, gimple-loop-versioning.cc,
5666 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5667 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5668 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5669 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5670 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5671 value_range_equiv, and value_range_base to value_range.
5672
5673 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5674
5675 * expr.c (build_personality_function): Fix generated type to
5676 match actual personality functions.
5677
5678 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5679
5680 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5681 enough bytes for the NULL character.
5682
5683 2019-11-05 Richard Biener <rguenther@suse.de>
5684
5685 PR tree-optimization/92280
5686 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5687 had a single use do not create a new CTOR.
5688 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5689 BIT_FIELD_REF of a CTOR via GENERIC.
5690
5691 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5692
5693 * config/s390/s390.c (s390_vector_alignment): Check if the value
5694 fits into uhwi before using it.
5695
5696 2019-11-05 Martin Liska <mliska@suse.cz>
5697
5698 * symbol-summary.h: Use ggc_delete.
5699
5700 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5701
5702 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5703 Change vec_perm field to 10.
5704
5705 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5706
5707 * doc/install.texi: Further fix syntax for html generation.
5708
5709 2019-11-05 Martin Liska <mliska@suse.cz>
5710
5711 * symbol-summary.h: Rename allocator to m_allocator and
5712 add comment.
5713
5714 2019-11-05 Richard Biener <rguenther@suse.de>
5715
5716 PR tree-optimization/92324
5717 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5718 all signed or unsigned operations.
5719
5720 2019-11-05 Jan Hubicka <jh@suse.cz>
5721
5722 * hsa-brig.c: Include alloc-pool.h
5723 * hsa-dump.c: Likewise.
5724 * hsa-gen.c: Likewise.
5725 * hse-regalloc.c: Likewise.
5726 * ipa-hsa.c: Likewise.
5727 * ipa-predicate.c: Likewise.
5728 * ipa-reference.c: Likewise.
5729 * ipa-sra.c: Likewise.
5730 * omp-expand.c: Likewise.
5731 * omp-general.c: Likewise.
5732 * omp-low.c: Likewise.
5733 * sumbol-summary.h (function_summary_base): Add allocator.
5734 (function_summary<T *>::function_summary): Update construction.
5735 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5736 (call_summary_base): Add allcator.
5737 (call_summary<T *>::call_summary): Update construction.
5738 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5739
5740 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5741
5742 PR tree-optimization/91945
5743 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5744 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5745 Formatting fix.
5746
5747 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5748
5749 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5750 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5751 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5752 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5753 (vrp_set_zero_nonzero_bits): Move to...
5754 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5755 (vr_values::simplify_bit_ops_using_ranges): Rename
5756 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5757
5758 2019-11-05 Martin Liska <mliska@suse.cz>
5759
5760 PR c++/92339
5761 * fold-const.c (operand_compare::hash_operand): Remove
5762 FIELD_DECL handling.
5763
5764 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5765
5766 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5767 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5768 static.
5769
5770 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5771
5772 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5773 properly handle symbolics.
5774 (range_compatible_p): Remove.
5775
5776 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5777
5778 * common.opt (-fabi-version): Document =14.
5779 * doc/invoke.texi (C++ Dialect Options): Likewise.
5780
5781 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5782
5783 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5784
5785 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5786
5787 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5788 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5789 gcn_omp_device_kind_arch_isa.
5790 * config/gcn/t-omp-device: New file.
5791 * configure.ac: Support gcn for omp_device_property.
5792 * configure: Regenerate.
5793
5794 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5795
5796 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5797 (vrp_val_max): Same.
5798 (vrp_val_is_min): Same.
5799 (vrp_val_is_max): Same.
5800 (value_range_base::nonzero_p): Remove last argument to
5801 vrp_val_is_max.
5802 * tree-vrp.c (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::set_varying): Remove last argument to vrp_val*.
5807 (value_range_base::dump): Same.
5808 (value_range_base::set): Same.
5809 (value_range_base::normalize_symbolics): Same.
5810 (value_range_base::num_pairs): Same.
5811 (value_range_base::lower_bound): Same.
5812 (value_range_base::upper_bound): Same.
5813 (ranges_from_anti_range): Remove handle_pointers argument.
5814 (value_range_base::singleton_p): Remove last argument to
5815 ranges_from_anti_range.
5816
5817 2019-11-04 Jan Hubicka <jh@suse.cz>
5818
5819 * ipa-reference.c (init_function_info): Initialize
5820 info->global.statics_read.
5821
5822 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5823
5824 * tree-vrp.c (value_range_base::invert): Use constructors to build
5825 range.
5826
5827 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5828
5829 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5830 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5831
5832 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5833
5834 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5835 VR_UNDEFINED.
5836
5837 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5838
5839 * tree-vrp.c (dump_assert_info): New.
5840 (dump_asserts_info): New.
5841
5842 2019-11-04 Jan Hubicka <jh@suse.cz>
5843
5844 * ipa-inline-transform.c: Include ipa-utils.h
5845 (inline_call): Set thunk_expansion flag.
5846 * ipa-utils.h (thunk_expansion): Declare.
5847 * ipa-devirt.c (thunk_expansion): New global var.
5848 (devirt_node_removal_hook): Do not invalidate cache while
5849 doing thunk expansion.
5850
5851 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5852
5853 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5854
5855 2019-11-04 Martin Sebor <msebor@redhat.com>
5856
5857 PR tree-optimization/92349
5858 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5859 memebers have constant sizes.
5860
5861 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5862
5863 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5864 parameter.
5865 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5866 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5867 vect_analyze_loop.
5868
5869 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5870
5871 * expr.c (store_constructor): Modify to handle single element vectors.
5872 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5873 constructors.
5874 (vect_slp_check_for_constructors): New function.
5875 (vect_slp_analyze_bb_1): Call new function to check for vector
5876 constructors.
5877 (vectorize_slp_instance_root_stmt): New function.
5878 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5879 constructors.
5880 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5881
5882 2019-11-04 Richard Biener <rguenther@suse.de>
5883
5884 PR tree-optimization/92345
5885 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5886 we produced a reduction chain.
5887 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5888 LOOP_VINFO_REDUCTIONS.
5889
5890 2019-11-04 Jan Hubicka <jh@suse.cz>
5891
5892 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5893 duplicate summaries.
5894 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5895 first.
5896 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5897 access call summaries.
5898 (dump_ipa_call_summary): Be ready for missing edge summaries.
5899 (analyze_function_body): Use get instead of get_create to access
5900 edge summary.
5901 (estimate_calls_size_and_time): Do not access summaries of
5902 inlined edges; sanity check they are missing.
5903 (ipa_call_context::estimate_size_and_time): Use get instead
5904 of get_create to access node summary.
5905 (inline_update_callee_summaries): Do not update depth of
5906 inlined edge.
5907 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5908 growth caches.
5909 (ipa_merge_fn_summary_after_inlining): Use get instead
5910 of get_create.
5911 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5912 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5913 fast summary.
5914 (initialize_growth_caches): Update.
5915 (do_estimate_edge_time): Remove redundant copy of context.
5916 (ipa_remove_from_growth_caches): New function.
5917 * ipa-inline.c (flatten_function): Update overall summary
5918 only when optimizing.
5919 (inline_to_all_callers): Update overall summary of function
5920 inlined to.
5921 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5922 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5923 to false.
5924
5925 2019-11-04 Richard Biener <rguenther@suse.de>
5926
5927 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5928 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5929
5930 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5931
5932 * ggc-common.c: Include system.h before malloc.h.
5933
5934 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5935
5936 * configure.ac: Pass --enable-obsolete=* and
5937 --enable-option-checking=* down to build configure, and fail
5938 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5939 * configure: Rebuild.
5940 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5941 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5942
5943 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5944
5945 * config.in: Regenerate.
5946 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5947 -mtiny-printf is used without GCC being configured with
5948 --enable-newlib-nano-formatted-io.
5949 * config/msp430/msp430.h (LINK_SPEC): Pass
5950 "--wrap puts --wrap printf" when -mtiny-printf is used.
5951 * config/msp430/msp430.opt: Document -mtiny-printf.
5952 * configure: Regenerate.
5953 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5954 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5955 --enable-newlib-nano-formatted-io is passed.
5956 * doc/invoke.texi: Document -mtiny-printf.
5957
5958 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5959
5960 * configure: Regenerate.
5961
5962 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5963
5964 * config/msp430/driver-msp430.c
5965 (msp430_get_linker_devices_include_path): New spec function.
5966 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5967 (extract_devices_dir_from_exec_prefix): New function.
5968 (extract_devices_dir_from_collect_gcc): New function.
5969 (msp430_check_env_var_for_devices): New function.
5970 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5971 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5972 devices.csv was not found using other methods.
5973 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5974 New prototype.
5975 (msp430_dirname): Likewise.
5976 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5977 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5978 msp430_get_linker_devices_include_path.
5979 (TARGET_EXTRA_PRE_INCLUDES): Define.
5980 * doc/invoke.texi: Document new ways of searching for support files.
5981
5982 2019-11-04 Richard Biener <rguenther@suse.de>
5983
5984 PR tree-optimization/92301
5985 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5986 as required by epilogue generation
5987
5988 2019-11-04 Martin Liska <mliska@suse.cz>
5989
5990 PR ipa/92304
5991 * fold-const.c (operand_compare::hash_operand): Fix field
5992 hashing of CONSTRUCTOR.
5993
5994 2019-11-04 Martin Liska <mliska@suse.cz>
5995
5996 * ggc.h (ggc_delete): New function.
5997 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5998 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5999 (ipa_free_all_node_params): Likewise.
6000 * ipa-sra.c (ipa_sra_analysis): Likewise.
6001
6002 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6003
6004 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6005 set_switch_stmt_execution_predicate, compute_bb_predicates,
6006 will_be_nonconstant_expr_predicate,
6007 phi_result_unknown_predicate,
6008 analyze_function_body): Pass arround params summary.
6009 (ipa_call_context::duplicate_from): New comment;
6010 only duplicate useful values.
6011 (ipa_call_context::equal_to): Only compare useful values.
6012 (remap_edge_summaries): Pass params_summary.
6013 (remap_hint_predicate): Likewise.
6014 (ipa_merge_fn_summary_after_inlining): Likewise.
6015 (inline_read_section): Initialize params summary used flags.
6016 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6017 around param_summary.
6018 (add_condition): Initialized used params summary flags.
6019 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6020 (inline_param_summary::useless_p): New predicate.
6021 (remap_after_inlining, add_condition): Update prototype
6022 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6023 move_cost.
6024 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6025 summaries.
6026 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6027 (ipa_analyze_virtual_call_uses): Likewise.
6028 (update_indirect_edges_after_inlining): Update param summaries.
6029 (ipa_print_node_params): Print used flags.
6030 (ipa_read_indirect_edge_info): Update param summareis.
6031 * ipa-prop.h (ipa_param_descriptor): Add
6032 used_by_ipa_predicates, used_by_indirect_call
6033 and used_by_polymorphic_call.
6034 (ipa_set_param_used_by_ipa_predicates,
6035 ipa_set_param_used_by_indirect_call,
6036 ipa_set_param_used_by_polymorphic_call,
6037 ipa_is_param_used_by_ipa_predicates,
6038 ipa_is_param_used_by_indirect_call,
6039 ipa_is_param_used_by_polymorphic_call): New inline functions.
6040
6041 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6042
6043 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6044 member function.
6045 (ipa_call_context::release): Add ALL parameter.
6046 (ipa_call_context::equal_to): New member function.
6047 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6048 duplicate_form, release, equal_to and exists_p member functoins.
6049 * ipa-inline-analysis.c (node_context_cache_entry): New
6050 class.
6051 (node_context_summary): Likewise.
6052 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6053 node_context_clear): New static vars.
6054 (initialize_growth_caches): New function.
6055 (free_growth_caches): Also delete node_context_cache; output stats.
6056 (do_estimate_edge_time): Cache contexts.
6057 (reset_node_cache): New function.
6058 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6059 (inline_small_functions): Initialize growth caches.
6060 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6061 Declare.
6062 * ipa-predicate.h (inline_param_summary::equal_to): New.
6063 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6064 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6065 (ipa_agg_jump_function): Implement equal_to member function.
6066
6067 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6068
6069 * ipa-fnsummary.c (inline_read_section): Set vector size
6070 ahead of time.
6071
6072 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6073
6074 * ipa-fnsummary.c (ipa_call_context): New constructor.
6075 (estimate_node_size_and_time): Turn to ...
6076 (ipa_call_context::estimate_size_and_time): ... this one.
6077 (ipa_call_context::release): New.
6078 * ipa-fnsummary.h (ipa_call_context): New class.
6079 (estimate_node_size_and_time): Remove.
6080 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6081 do_estimate_edge_hints): Update.
6082
6083 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6084
6085 * config.in: Regenerate.
6086 * configure: Regenerate.
6087 * configure.ac: Check for mallinfo.
6088 * ggc-common.c: Include malloc.h if available;
6089 include options.h
6090 (report_heap_memory_use): New functoin.
6091 * ggc-page.c (ggc_grow): Do not print "start".
6092 * ggc.h (report_heap_memory_use): Declare.
6093 * pases.c (execute_one_pass): Report memory after IPA passes.
6094 (ipa_read_summaries_1): Likewise.
6095 (ipa_read_optimization_summaries_1): Likewise.
6096
6097 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6098
6099 * gimplify.h (omp_construct_selector_matches): Change return
6100 type to int, add a new SCORES argument.
6101 * gimplify.c (omp_construct_selector_matches): Likewise. If
6102 SCORES is non-NULL, compute scores of each construct.
6103 * omp-general.h (omp_get_context_selector): Declare.
6104 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6105 Adjust omp_construct_selector_matches callers.
6106 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6107 (omp_context_compute_score): New function.
6108 (omp_resolve_declare_variant): Compute scores and decide based on
6109 that.
6110
6111 PR bootstrap/92314
6112 * configure.ac: Don't look for omp-device-properties files from
6113 installed offloading compilers. Instead add tmake_file snippets
6114 for configured offloading targets and use files they generate.
6115 * Makefile.in (install): Don't depend on
6116 install-omp-device-properties.
6117 (install-omp-device-properties): Remove goal.
6118 * config/i386/t-omp-device: New file.
6119 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6120 * config/nvptx/t-omp-device: New file.
6121 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6122 * configure: Regenerated.
6123
6124 * omp-general.h (omp_context_selector_set_compare): Declare.
6125 * omp-general.c (omp_construct_simd_compare,
6126 omp_context_selector_props_compare, omp_context_selector_set_compare,
6127 omp_context_selector_compare): New functions.
6128 (omp_resolve_declare_variant): Prune variants that are strict subset
6129 of another variant.
6130
6131 2019-11-01 Martin Sebor <msebor@redhat.com>
6132
6133 PR middle-end/91679
6134 PR middle-end/91647
6135 PR middle-end/91463
6136 PR middle-end/92312
6137 * doc/invoke.texi (-Wzero-length-bounds): Document.
6138 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6139 instead of a hand-rolled loop to avoid PR 92323.
6140 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6141 with initializers.
6142 (vrp_prop::check_mem_ref): Handle declared struct objects.
6143 * tree.c (last_field): New function.
6144 (array_at_struct_end_p): Handle MEM_REF.
6145 (get_initializer_for): New helper.
6146 (component_ref_size): Add argument. Rename locals. Call
6147 get_initializer_for instead of fold_ctor_reference. Correct handling
6148 of flexible array members.
6149 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6150
6151 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6152
6153 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6154 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6155 UNSPEC_VSX_CVSPUXDS): Remove.
6156 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6157 (vsx_xvcvspdp_be): ... this. New. And...
6158 (vsx_xvcvspdp_le): ... this. New.
6159 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6160 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6161 (vsx_xvcv<su>xwdp_le): ... this. New.
6162 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6163 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6164 (vsx_xvcvsp<su>xds_le): ... this. New.
6165
6166 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6167
6168 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6169 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6170 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6171 UNSPEC_VSX_XVCVSPSXWS): Remove.
6172 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6173 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6174
6175 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6176
6177 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6178 (UNSPEC_VSX_XVCDPSP): Remove.
6179 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6180 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6181
6182 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6183
6184 * hooks.c (hook_tree_tree_bool_null): New.
6185 * hooks.h (hook_tree_tree_bool_null): Declare.
6186 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6187 (LANG_HOOKS_DECLS): Add it.
6188 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6189 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6190 (lower_omp_target): Handle Fortran array with descriptor in
6191 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6192
6193 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6194
6195 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6196 Assert that the type we store in abi_vector_types is its own
6197 main variant.
6198 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6199
6200 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6201
6202 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6203 from a CONST_INT address when TARGET_THUMB2.
6204
6205 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6206
6207 * config/arm/arm.md (add_not_cin): New insn.
6208 (add_not_shift_cin): Likewise.
6209
6210 2019-10-31 Martin Liska <mliska@suse.cz>
6211
6212 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6213 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6214 and compare_memory_operand.
6215
6216 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6217
6218 * configure.ac: Compute and substitute omp_device_properties and
6219 omp_device_property_deps.
6220 * Makefile.in (generated_files): Add omp-device-properties.h.
6221 (omp-general.o): Depend on omp-device-properties.h.
6222 (omp_device_properties): New make variable.
6223 (omp-device-properties.h, s-omp-device-properties-h,
6224 install-omp-device-properties): New goals.
6225 (install): Depend on install-omp-device-properties for accelerators.
6226 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6227 * target.h (enum omp_device_kind_arch_isa): New enum.
6228 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6229 documentation.
6230 * omp-general.c: Include omp-device-properties.h.
6231 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6232 colon instead of comma.
6233 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6234 functions.
6235 (omp_context_selector_matches): Implement device set arch/isa
6236 selectors, improve device set kind selector handling.
6237 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6238 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6239 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6240 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6241 ix86_omp_device_kind_arch_isa.
6242 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6243 definition from ix86_target_string to file scope.
6244 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6245 to file scope.
6246 (ix86_omp_device_kind_arch_isa): New function.
6247 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6248 isa_opts definitions to file scope.
6249 * config/i386/t-intelmic (omp-device-properties): New goal.
6250 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6251 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6252 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6253 nvptx_omp_device_kind_arch_isa.
6254 * configure: Regenerate.
6255 * doc/tm.texi: Regenerate.
6256
6257 PR middle-end/92231
6258 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6259 DECL_BUILT_IN in comment. Remove redundant ()s around return
6260 argument.
6261 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6262 before calling fndecl_built_in_p.
6263 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6264 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6265 fndecl_built_in_p on it.
6266
6267 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6268
6269 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6270
6271 2019-10-31 Martin Liska <mliska@suse.cz>
6272
6273 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6274 of cgraph_local_info and use local_info_node instead.
6275 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6276 (bfin_function_ok_for_sibcall): Likewise.
6277 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6278 (must_reload_pic_reg_p): Likewise.
6279
6280 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6281
6282 PR c++/90947
6283 * tree.h (type_initializer_zero_p): Remove.
6284 * tree.c (type_initializer_zero_p): Remove.
6285
6286 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6287
6288 * doc/invoke.texi (-Wshadow, -Wshadow=global
6289 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6290
6291 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6292
6293 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6294 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6295 and 'target exit data'.
6296
6297 2019-10-30 Martin Jambor <mjambor@suse.cz>
6298
6299 ipa/92278
6300 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6301 availability comparison.
6302
6303 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6304
6305 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6306 calls to __mspabi_mpy* functions.
6307 * config/msp430/msp430.md (mulhisi3): New define_expand.
6308 (umulhisi3): New define_expand.
6309 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6310 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6311
6312 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6313
6314 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6315 (msp430_check_plus_not_high_mem): New.
6316 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6317 might be in low memory.
6318 Indicate that a 16-bit absolute address is in lower memory.
6319
6320 2019-10-30 Martin Jambor <mjambor@suse.cz>
6321
6322 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6323 ultimate_alias_target.
6324
6325 2019-10-30 Richard Biener <rguenther@suse.de>
6326
6327 PR tree-optimization/92275
6328 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6329 Copy all loop-closed PHIs.
6330
6331 2019-10-30 Martin Liska <mliska@suse.cz>
6332
6333 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6334 const_tree as function argument.
6335 (func_checker::compare_decl): Likewise.
6336 (func_checker::operand_equal_p): Likewise.
6337 (func_checker::compare_variable_decl): Likewise.
6338 (func_checker::parse_labels): Likewise.
6339 * ipa-icf-gimple.h: Likewise.
6340
6341 2019-10-30 Martin Liska <mliska@suse.cz>
6342
6343 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6344 Do not compare alias sets. It's handled by operand_equal_p.
6345
6346 2019-10-30 Martin Liska <mliska@suse.cz>
6347
6348 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6349 initialize m_compare_polymorphic.
6350 (func_checker::compare_decl): Do not compare polymorphic types.
6351 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6352 * ipa-icf.c (sem_function::equals_private): Do not call
6353 compare_polymorphic_p.
6354
6355 2019-10-30 Martin Liska <mliska@suse.cz>
6356
6357 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6358 compare_operand.
6359 (func_checker::compare_memory_operand): Remove.
6360 (func_checker::compare_cst_or_decl): Remove.
6361 (func_checker::operand_equal_valueize): Do not handle
6362 FIELD_DECL.
6363 (func_checker::compare_gimple_call): Call compare_operand.
6364 (func_checker::compare_gimple_assign): Likewise.
6365 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6366 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6367 * ipa-icf.h (icf_handled_component_p): Remove.
6368
6369 2019-10-30 Martin Liska <mliska@suse.cz>
6370
6371 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6372 (func_checker::compare_cst_or_decl): Remove handling
6373 of FIELD_DECL.
6374 (func_checker::compare_operand): Transform to ...
6375 (func_checker::operand_equal_p): ... this.
6376 * ipa-icf-gimple.h (class func_checker): Add
6377 operand_equal_p and hash_operand.
6378 * ipa-icf.c (sem_function::equals_private): Fix
6379 pushing and popping of cfun.
6380
6381 2019-10-30 Martin Liska <mliska@suse.cz>
6382
6383 * fold-const.c (operand_equal_p): Move to ...
6384 (operand_compare::operand_equal_p): ... here.
6385 (operand_compare::verify_hash_value): New.
6386 (add_expr): Move to ...
6387 (operand_compare::hash_operand): ... here.
6388 * fold-const.h (operand_equal_p): Move to the class.
6389 (class operand_compare): New.
6390 * tree.c (add_expr): Remove.
6391
6392 2019-10-30 Martin Liska <mliska@suse.cz>
6393
6394 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6395 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6396
6397 2019-10-30 Martin Liska <mliska@suse.cz>
6398
6399 PR lto/91393
6400 PR lto/88220
6401 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6402 from a first_clone in order to get proper LTO section
6403 in LTO stream.
6404 (cgraph_node::get_untransformed_body):
6405 Use lto_get_section_data where symtab_node::order
6406 must be provided.
6407 * cgraphclones.c (cgraph_node::find_replacement):
6408 Update also symbol order.
6409 * ipa-fnsummary.c (ipa_fn_summary_read):
6410 Use new function lto_get_summary_section_data.
6411 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6412 * ipa-icf.c (sem_item_optimizer::read_summary):
6413 Likewise.
6414 * ipa-prop.c (ipa_prop_read_jump_functions):
6415 Likewise.
6416 (ipcp_read_transformation_summaries): Likewise.
6417 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6418 * lto-cgraph.c (input_node): Add also order_base.
6419 (input_varpool_node): Likewise.
6420 (input_cgraph_1): Assign the order_base.
6421 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6422 * lto-opts.c (lto_write_options): Pass new argument.
6423 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6424 (lto_get_summary_section_data): New.
6425 (lto_get_raw_section_data): Add order argument.
6426 (lto_create_simple_input_block): Likewise.
6427 * lto-section-out.c (lto_destroy_simple_output_block):
6428 Likewise.
6429 * lto-streamer-in.c (lto_input_toplevel_asms):
6430 Use lto_get_summary_section_data.
6431 (lto_input_mode_table): Likewise.
6432 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6433 (lto_output_toplevel_asms): Pass new argument.
6434 (copy_function_or_variable): Likewise.
6435 (produce_lto_section):Likewise.
6436 (produce_symtab): Likewise.
6437 (lto_write_mode_table): Likewise.
6438 (produce_asm_for_decls): Likewise.
6439 * lto-streamer.c (lto_get_section_name): Concat symbol name
6440 and symbol order.
6441 * lto-streamer.h (lto_get_section_data): Add order argument.
6442 (lto_get_summary_section_data): New.
6443 (lto_get_raw_section_data): Add order argument.
6444 (lto_get_section_name): Likewise.
6445 * varpool.c (varpool_node::get_constructor): Pass order argument.
6446
6447 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6448
6449 PR tree-optimization/92262
6450 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6451 ubase or cbase here.
6452 (remove_unused_ivs): Unshare comp before using it.
6453
6454 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6455
6456 * ipa-prop.c (update_jump_functions_after_inlining):
6457 Watch for missing summaries.
6458
6459 2019-10-30 Richard Biener <rguenther@suse.de>
6460
6461 PR tree-optimization/65930
6462 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6463 chains also allow a leading and trailing conversion.
6464 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6465 intermediate reduction chains.
6466 (vect_analyze_slp_instance): Likewise. Build a SLP
6467 node for a trailing conversion manually.
6468
6469 2019-10-30 Martin Liska <mliska@suse.cz>
6470
6471 * cgraph.c (cgraph_node::local_info): Transform to ...
6472 (cgraph_node::local_info_node): ... this.
6473 (cgraph_node::dump): Remove cgraph_local_info and
6474 put its fields directly into cgraph_node.
6475 (cgraph_node::get_availability): Likewise.
6476 (cgraph_node::make_local): Likewise.
6477 (cgraph_node::verify_node): Likewise.
6478 * cgraph.h (struct GTY): Likewise.
6479 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6480 (duplicate_thunk_for_node): Likewise.
6481 (cgraph_node::create_clone): Likewise.
6482 (cgraph_node::create_virtual_clone): Likewise.
6483 (cgraph_node::create_version_clone): Likewise.
6484 * cgraphunit.c (cgraph_node::reset): Likewise.
6485 (cgraph_node::finalize_function): Likewise.
6486 (cgraph_node::add_new_function): Likewise.
6487 (analyze_functions): Likewise.
6488 * combine.c (setup_incoming_promotions): Likewise.
6489 * config/i386/i386.c (ix86_function_regparm): Likewise.
6490 (ix86_function_sseregparm): Likewise.
6491 (init_cumulative_args): Likewise.
6492 * ipa-cp.c (determine_versionability): Likewise.
6493 (count_callers): Likewise.
6494 (set_single_call_flag): Likewise.
6495 (initialize_node_lattices): Likewise.
6496 (estimate_local_effects): Likewise.
6497 (create_specialized_node): Likewise.
6498 (identify_dead_nodes): Likewise.
6499 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6500 (ipa_fn_summary_generate): Likewise.
6501 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6502 (process_hsa_functions): Likewise.
6503 * ipa-icf.c (set_local): Likewise.
6504 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6505 * ipa-inline.c (speculation_useful_p): Likewise.
6506 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6507 (ipa_profile): Likewise.
6508 * ipa-split.c (split_function): Likewise.
6509 (execute_split_functions): Likewise.
6510 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6511 (ipa_sra_ipa_function_checks): Likewise.
6512 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6513 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6514 * lto-cgraph.c (lto_output_node): Likewise.
6515 (input_overwrite_node): Likewise.
6516 * multiple_target.c (expand_target_clones): Likewise.
6517 * omp-simd-clone.c (simd_clone_create): Likewise.
6518 * trans-mem.c (expand_call_tm): Likewise.
6519 (ipa_tm_mayenterirr_function): Likewise.
6520 (ipa_tm_diagnose_tm_safe): Likewise.
6521 (ipa_tm_diagnose_transaction): Likewise.
6522 (ipa_tm_create_version): Likewise.
6523 (ipa_tm_transform_calls_redirect): Likewise.
6524 (ipa_tm_execute): Likewise.
6525 * tree-inline.c (expand_call_inline): Likewise.
6526
6527 2019-10-29 Martin Liska <mliska@suse.cz>
6528
6529 * symbol-summary.h (function_summary): Pass memory location
6530 to underlaying hash_map (or vec).
6531 (V>::fast_function_summary): Likewise.
6532
6533 2019-10-29 Martin Liska <mliska@suse.cz>
6534
6535 * ggc.h (ggc_alloc_no_dtor): New function.
6536 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6537 destructor and ggc_free.
6538 (ipa_free_size_summary): Call delete instead
6539 of release.
6540 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6541 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6542 (ipa_free_all_edge_args): Call destructor and ggc_free.
6543 (ipa_free_all_node_params): Likewise.
6544 (ipcp_free_transformation_sum): Likewise.
6545 * ipa-prop.h (ipa_check_create_node_params):
6546 Call new ggc_alloc_no_dtor.
6547 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6548 (ipa_sra_analysis): Call destructor and ggc_free.
6549 Replace release with delete operator.
6550 * symbol-summary.h (release): Remove ..
6551 (V>::~fast_function_summary): and move logic here.
6552 Likewise for other classes.
6553
6554 2019-10-29 Richard Biener <rguenther@suse.de>
6555
6556 PR tree-optimization/92260
6557 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6558 lane-reducing ops.
6559
6560 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6561
6562 PR tree-optimization/88915
6563 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6564 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6565 and make the valueize function pointer also take a void pointer.
6566 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6567 around vn_valueize, to call it without a context.
6568 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6569 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6570 (~_loop_vec_info): Release epilogue_vinfos.
6571 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6572 number of iterations of epilogue.
6573 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6574 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6575 versioning threshold needed for main loop.
6576 (vect_analyze_loop): Likewise.
6577 (find_in_mapping): New helper function.
6578 (update_epilogue_loop_vinfo): New function.
6579 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6580 on main loop and call update_epilogue_loop_vinfo to update it.
6581 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6582 stmts on loop preheader edge.
6583 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6584 we decided to vectorize epilogues. Update epilogues NITERS and
6585 construct ADVANCE to update epilogues data references where needed.
6586 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6587 (vect_do_peeling, vect_update_inits_of_drs,
6588 determine_peel_for_niter, vect_analyze_loop): Add or update
6589 declarations.
6590 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6591 created loop_vec_info's for epilogues when available. Otherwise analyse
6592 epilogue separately.
6593
6594 2019-10-29 Richard Biener <rguenther@suse.de>
6595
6596 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6597 example.
6598
6599 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6600
6601 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6602 index for the COND_EXPR from stmt_info rather than reduc_info.
6603
6604 2019-10-29 Richard Biener <rguenther@suse.de>
6605
6606 PR tree-optimization/65930
6607 * tree-vect-loop.c (check_reduction_path): Relax single-use
6608 check allowing out-of-loop uses.
6609 (vect_is_simple_reduction): SLP reduction chains cannot have
6610 intermediate stmts used outside of the loop.
6611 (vect_create_epilog_for_reduction): The adjustment might need
6612 to be converted.
6613 (vectorizable_reduction): Annotate live stmts of the reduction
6614 chain with STMT_VINFO_REDUC_DEF.
6615 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6616
6617 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6618
6619 * calls.c (pass_by_reference): Leave the target to decide whether
6620 POLY_INT_CST-sized arguments should be passed by value or reference,
6621 rather than forcing them to be passed by reference.
6622 (must_pass_in_stack_var_size): Likewise.
6623 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6624 V31_REGNUM to P15_REGNUM.
6625 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6626 Take an extra "silent_p" parameter, defaulting to false.
6627 (aarch64_sve::svbool_type_p): Declare.
6628 (aarch64_sve::nvectors_if_data_type): Likewise.
6629 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6630 (aarch64_frame::reg_offset): Turn into poly_int64s.
6631 (aarch64_frame::save_regs_size): Likewise.
6632 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6633 (aarch64_frame::sve_callee_adjust): Likewise.
6634 (aarch64_frame::spare_reg_reg): Likewise.
6635 (ARM_PCS_SVE): New arm_pcs value.
6636 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6637 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6638 (CUMULATIVE_ARGS::silent_p): Likewise.
6639 (BITS_PER_SVE_PRED): New macro.
6640 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6641 function. Reject aarch64_vector_pcs attributes on SVE functions.
6642 (aarch64_attribute_table): Use the above handler.
6643 (aarch64_sve_abi): New function.
6644 (aarch64_sve_argument_p): Likewise.
6645 (aarch64_returns_value_in_sve_regs_p): Likewise.
6646 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6647 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6648 descriptor for them.
6649 (aarch64_simd_decl_p): Delete.
6650 (aarch64_emit_cfi_for_reg_p): New function.
6651 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6652 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6653 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6654 as partly clobbered for the SVE PCS.
6655 (aarch64_function_ok_for_sibcall): Check whether the two functions
6656 use the same ABI, rather than checking specifically for whether
6657 they're aarch64_vector_pcs functions.
6658 (aarch64_pass_by_reference): Raise an error for attempts to pass
6659 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6660 if there are not enough free registers left, or if the argument is
6661 variadic.
6662 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6663 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6664 tuples in memory.
6665 (aarch64_layout_arg): Take a function_arg_info rather than
6666 individual properties. Handle SVE predicates, vectors and tuples.
6667 Raise an error if they are passed to unprototyped functions.
6668 (aarch64_function_arg): If the silent_p flag is set, suppress the
6669 usual error about using float registers without TARGET_FLOAT.
6670 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6671 it in the cumulative_args structure. Initialize aapcs_nprn and
6672 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6673 error about using float registers without TARGET_FLOAT.
6674 If the silent_p flag is not set, also raise an error about
6675 using SVE functions when SVE is disabled.
6676 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6677 and call it for SVE functions too. Update aapcs_nprn similarly
6678 to the other register counts.
6679 (aarch64_layout_frame): If a big-endian function needs to save
6680 and restore Z8-Z15, search for a spare predicate that it can use.
6681 Store SVE predicates at the bottom of the register save area,
6682 followed by SVE vectors, then followed by the normal slots.
6683 Keep pointing the hard frame pointer at the base of the normal slots,
6684 above the SVE vectors. Update the various frame creation and
6685 tear-down strategies for the new layout, initializing the new
6686 sve_callee_adjust field. Add an additional layout for frames
6687 whose saved registers are all SVE registers.
6688 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6689 (aarch64_return_address_signing_enabled): Likewise.
6690 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6691 aarch64_reg_save_mode.
6692 (aarch64_adjust_sve_callee_save_base): New function.
6693 (aarch64_add_cfa_expression): Move earlier in file. Take the
6694 saved register as an rtx rather than a register number and use
6695 its mode for the MEM slot.
6696 (aarch64_save_callee_saves): Remove the mode argument and instead
6697 use aarch64_reg_save_mode to get the mode of each save slot.
6698 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6699 offsets. Allow GP offsets to be saved at a VL-based offset from
6700 the stack, handling this case using the frame pointer if available
6701 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6702 big-endian SVE functions; use normal moves for other SVE saves.
6703 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6704 returns true. Add explicit CFA notes when not storing via the
6705 stack pointer. Do not try to pair SVE saves.
6706 (aarch64_restore_callee_saves): Cope with poly_int64 register
6707 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6708 use normal moves for other SVE restores. Only add CFA restore notes
6709 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6710 SVE restores.
6711 (aarch64_get_separate_components): Always keep the first SVE save
6712 in the prologue if we need to use it as a stack probe. Don't allow
6713 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6714 Likewise the spare predicate register that they need. Update the
6715 offset calculation to account for the SVE save area. Use the
6716 appropriate range check for SVE LDR and STR instructions.
6717 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6718 (aarch64_process_components): Likewise. Update the offset
6719 calculation to account for the SVE save area. Only mark the
6720 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6721 Do not try to pair SVE saves.
6722 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6723 reg_offsets. When handling the final allocation, expect the
6724 first SVE register save to be part of the initial allocation
6725 and for it to act as a probe at SP. Account for the SVE callee
6726 save area in the dump information.
6727 (aarch64_expand_prologue): Update the frame diagram. Fold the
6728 SVE callee allocation into the initial allocation if stack clash
6729 protection is enabled. Use new variables to track the offset
6730 of the frame chain (and hard frame pointer) from the current
6731 stack pointer, and likewise the offset of the bottom of the
6732 register save area. Update calls to aarch64_save_callee_saves
6733 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6734 saving the FP&SIMD registers. Save the predicate registers.
6735 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6736 into account when setting the stack pointer from the frame pointer,
6737 and when deciding whether we can inherit the initial adjustment
6738 amount from the prologue. Restore the predicate registers after
6739 the vector registers, then apply sve_callee_adjust, then restore
6740 the general registers.
6741 (aarch64_secondary_reload): Don't use secondary SVE reloads
6742 for VNx16BImode.
6743 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6744 (aarch64_short_vector_p): Return false for SVE types.
6745 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6746 at the start of the function. Return false for SVE types.
6747 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6748 functions too.
6749 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6750 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6751 to big-endian targets for bytewise moves.
6752 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6753
6754 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6755 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6756 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6757
6758 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6759 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6760 aarch64-sve-builtins-base.o to extra_objs. Add
6761 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6762 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6763 (aarch64-sve-builtins-shapes.o): Likewise.
6764 (aarch64-sve-builtins-base.o): New rules.
6765 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6766 (aarch64_resolve_overloaded_builtin): Likewise.
6767 (aarch64_check_builtin_call): Likewise.
6768 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6769 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6770 pragma.
6771 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6772 (aarch64_svprfop): New enum.
6773 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6774 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6775 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6776 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6777 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6778 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6779 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6780 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6781 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6782 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6783 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6784 (aarch64_sve::mangle_builtin_type): Likewise.
6785 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6786 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6787 (aarch64_sve::expand_builtin): Likewise.
6788 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6789 (aarch64_sve_int_mode): Likewise.
6790 (aarch64_ptrue_all_mode): New function.
6791 (aarch64_convert_sve_data_to_pred): Make public.
6792 (svprfop_token): New function.
6793 (aarch64_output_sve_prefetch): Likewise.
6794 (aarch64_fold_sve_cnt_pat): Likewise.
6795 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6796 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6797 instead of gen_while_ult.
6798 (aarch64_replace_reg_mode): Make public.
6799 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6800 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6801 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6802 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6803 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6804 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6805 (aarch64_sve_ptrue_svpattern_p): Likewise.
6806 (aarch64_sve_pred_valid_immediate): Check
6807 aarch64_sve_ptrue_svpattern_p.
6808 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6809 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6810 functions.
6811 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6812 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6813 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6814 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6815 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6816 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6817 New unspecs.
6818 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6819 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6820 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6821 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6822 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6823 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6824 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6825 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6826 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6827 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6828 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6829 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6830 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6831 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6832 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6833 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6834 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6835 (Vesize): Handle partial vector modes.
6836 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6837 mode attributes.
6838 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6839 iterators.
6840 (s, paired_extend, inc_dec): New code attributes.
6841 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6842 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6843 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6844 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6845 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6846 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6847 UNSPEC_COND_FMULX.
6848 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6849 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6850 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6851 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6852 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6853 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6854 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6855 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6856 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6857 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6858 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6859 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6860 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6861 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6862 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6863 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6864 UNSPEC_COND_FSCALE.
6865 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6866 (binqops_op, binqops_op_rev, last_op): New int attributes.
6867 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6868 (fn, ab): New int attributes.
6869 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6870 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6871 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6872 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6873 UNSPEC_RBIT.
6874 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6875 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6876 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6877 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6878 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6879 UNSPEC_COND_FMULX.
6880 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6881 (brk_reg_con, brk_reg_opno): New int attributes.
6882 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6883 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6884 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6885 UNSPEC_COND_FMIN.
6886 (max_elem_bits): New int attribute.
6887 (min_elem_bits): Handle UNSPEC_RBIT.
6888 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6889 TRUNCATE as well as SUBREG.
6890 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6891 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6892 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6893 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6894 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6895 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6896 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6897 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6898 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6899 (aarch64_gather_scale_operand_h): New predicates.
6900 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6901 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6902 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6903 (*aarch64_sve_reinterpret<mode>): Allow any source register
6904 instead of requiring an exact match.
6905 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6906 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6907 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6908 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6909 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6910 (aarch64_update_ffrt): New patterns.
6911 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6912 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6913 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6914 (@aarch64_ld<fn>f1<mode>): New patterns.
6915 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6916 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6917 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6918 (@aarch64_ldnt1<mode>): New patterns.
6919 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6920 the scalar part of the address.
6921 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6922 scalar part of the addresse and add an alternative for handling
6923 nonzero offsets.
6924 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6925 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6926 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6927 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6928 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6929 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6930 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6931 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6932 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6933 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6934 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6935 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6936 (@aarch64_sve_prefetch<mode>): New patterns.
6937 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6938 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6939 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6940 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6941 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6942 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6943 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6944 (@aarch64_stnt1<mode>): New patterns.
6945 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6946 the scalar part of the address.
6947 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6948 the scalar part of the addresse and add an alternative for handling
6949 nonzero offsets.
6950 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6951 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6952 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6953 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6954 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6955 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6956 New patterns.
6957 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6958 (extract_last_<mode>): Generalize to...
6959 (@extract_<LAST:last_op>_<mode>): ...this.
6960 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6961 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6962 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6963 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6964 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6965 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6966 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6967 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6968 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6969 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6970 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6971 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6972 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6973 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6974 (*aarch64_adr_uxtw_unspec): Likewise.
6975 (*aarch64_adr_uxtw): Rename to...
6976 (*aarch64_adr_uxtw_and): ...this.
6977 (@aarch64_adr<mode>_shift): New expander.
6978 (*aarch64_adr_shift_sxtw): New pattern.
6979 (aarch64_<su>abd<mode>_3): Rename to...
6980 (@aarch64_pred_<su>abd<mode>): ...this.
6981 (<su>abd<mode>_3): Update accordingly.
6982 (@aarch64_cond_<su>abd<mode>): New expander.
6983 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6984 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6985 (*<su>mul<mode>3_highpart): Rename to...
6986 (@aarch64_pred_<optab><mode>): ...this.
6987 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6988 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6989 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6990 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6991 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6992 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6993 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6994 (*v<ASHIFT:optab><mode>3): Rename to...
6995 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6996 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6997 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6998 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6999 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7000 (@cond_asrd<mode>): New expander.
7001 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7002 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7003 (*sdiv_pow2<mode>3): Delete.
7004 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7005 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7006 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7007 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7008 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7009 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7010 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7011 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7012 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7013 (*add<SVE_F:mode>3): Rename to...
7014 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7015 for SVE_STRICT_GP.
7016 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7017 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7018 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7019 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7020 (*sub<SVE_F:mode>3): Rename to...
7021 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7022 for SVE_STRICT_GP.
7023 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7024 (*fabd<SVE_F:mode>3): Rename to...
7025 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7026 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7027 (*mul<SVE_F:mode>3): Rename to...
7028 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7029 for SVE_STRICT_GP.
7030 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7031 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7032 to...
7033 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7034 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7035 (*<nlogical><PRED_ALL:mode>3): Rename to...
7036 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7037 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7038 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7039 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7040 (aarch64_pred_<logical_nn><mode>_z): ...this.
7041 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7042 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7043 (*fma<SVE_I:mode>4): Rename to...
7044 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7045 (*fnma<SVE_I:mode>4): Rename to...
7046 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7047 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7048 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7049 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7050 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7051 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7052 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7053 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7054 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7055 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7056 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7057 (@aarch64_sve_tmad<mode>): Likewise.
7058 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7059 (*aarch64_sel_dup<mode>): Rename to...
7060 (@aarch64_sel_dup<mode>): ...this.
7061 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7062 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7063 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7064 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7065 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7066 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7067 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7068 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7069 (*fcm<cmp_op><mode>): Rename to...
7070 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7071 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7072 (*fcmuo<mode>): Rename to...
7073 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7074 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7075 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7076 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7077 (fold_extract_last_<mode>): Generalize to...
7078 (@fold_extract_<last_op>_<mode>): ...this.
7079 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7080 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7081 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7082 DImode result explicit.
7083 (reduc_plus_scal_<mode>): Update accordingly.
7084 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7085 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7086 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7087 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7088 (*aarch64_sve_tbl<mode>): Rename to...
7089 (@aarch64_sve_tbl<mode>): ...this.
7090 (@aarch64_sve_compact<mode>): New pattern.
7091 (*aarch64_sve_dup_lane<mode>): Rename to...
7092 (@aarch64_sve_dup_lane<mode>): ...this.
7093 (@aarch64_sve_dupq_lane<mode>): New pattern.
7094 (@aarch64_sve_splice<mode>): Likewise.
7095 (aarch64_sve_<perm_insn><mode>): Rename to...
7096 (@aarch64_sve_<perm_insn><mode>): ...this.
7097 (*aarch64_sve_ext<mode>): Rename to...
7098 (@aarch64_sve_ext<mode>): ...this.
7099 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7100 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7101 to...
7102 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7103 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7104 Rename to...
7105 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7106 ...this.
7107 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7108 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7109 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7110 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7111 to...
7112 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7113 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7114 a "@" marker.
7115 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7116 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7117 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7118 pattern.
7119 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7120 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7121 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7122 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7123 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7124 "@" marker.
7125 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7126 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7127 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7128 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7129 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7130 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7131 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7132 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7133 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7134 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7135 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7136 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7137 (aarch64_sve_cnt_pat): Likewise.
7138 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7139 (*aarch64_sve_incsi_pat): Likewise.
7140 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7141 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7142 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7143 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7144 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7145 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7146 (*aarch64_sve_decsi_pat): Likewise.
7147 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7148 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7149 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7150 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7151 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7152 (@aarch64_pred_cntp<mode>): Likewise.
7153 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7154 New expander.
7155 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7156 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7157 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7158 New expander.
7159 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7160 New pattern.
7161 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7162 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7163 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7164 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7165 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7166 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7167 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7168 New expander.
7169 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7170 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7171 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7172 New expander.
7173 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7174 New pattern.
7175 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7176 expander.
7177 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7178 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7179 expander.
7180 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7181 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7182 expander.
7183 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7184 * config/aarch64/arm_sve.h: New file.
7185 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7186 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7187 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7188 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7189 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7190 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7191 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7192 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7193 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7194
7195 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7196
7197 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7198 New pattern.
7199 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7200 SVE modes.
7201
7202 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7203
7204 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7205 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7206 FFRT_REGNUM + 1.
7207 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7208 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7209 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7210 (aarch64_hard_regno_nregs): Handle the new register classes.
7211 (aarch64_hard_regno_mode_ok): Likewise.
7212 (aarch64_regno_regclass): Likewise.
7213 (aarch64_class_max_nregs): Likewise.
7214 (aarch64_register_move_cost): Likewise.
7215 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7216 as general register_operands.
7217
7218 2019-10-29 Martin Liska <mliska@suse.cz>
7219
7220 * ggc-common.c: One can't subtract unsigned types
7221 in compare function.
7222
7223 2019-10-29 Martin Liska <mliska@suse.cz>
7224
7225 * cgraphunit.c (symbol_table::compile): Pass
7226 title as dump_memory_report argument.
7227 * toplev.c (dump_memory_report): New argument.
7228 (finalize): Pass new argument.
7229 * toplev.h (dump_memory_report): Add argument.
7230
7231 2019-10-29 Martin Liska <mliska@suse.cz>
7232
7233 * ggc-common.c: Move Leak to the first column.
7234
7235 2019-10-29 Martin Liska <mliska@suse.cz>
7236
7237 * cgraphunit.c (symbol_table::compile): Remove argument
7238 for dump_memory_report.
7239 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7240 (compare_final): Remove in order to make report
7241 better readable.
7242 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7243 * mem-stats.h (mem_alloc_description::get_list):
7244 Do not pass cmp.
7245 (mem_alloc_description::dump): Likewise here.
7246 * toplev.c (dump_memory_report): Remove final
7247 argument.
7248 (finalize): Likewise.
7249 * toplev.h (dump_memory_report): Remove argument.
7250
7251 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7252
7253 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7254 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7255 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7256 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7257 accept "const".
7258
7259 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7260
7261 * coretypes.h (string_int_pair): New typedef.
7262 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7263 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7264 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7265
7266 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7267
7268 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7269 (simulate_builtin_function_decl): Declare.
7270 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7271 (LANG_HOOKS_INITIALIZER): Include it.
7272 * langhooks.c (add_builtin_function_common): Rename to...
7273 (build_builtin_function): ...this. Add a location parameter and use
7274 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7275 the decl instead.
7276 (add_builtin_function): Update accordingly, passing the returned
7277 decl to the lang hook.
7278 (add_builtin_function_ext_scope): Likewise
7279 (simulate_builtin_function_decl): New function.
7280
7281 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7282
7283 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7284 example, use actual names of supported offload targets.
7285
7286 PR target/92258
7287 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7288
7289 2019-10-28 Martin Sebor <msebor@redhat.com>
7290
7291 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7292 (handle_store): Pass argument to get_addr_stridx.
7293
7294 2019-10-28 Martin Sebor <msebor@redhat.com>
7295
7296 PR tree-optimization/92226
7297 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7298 the offset is in the open range outlined by SI's length.
7299
7300 2019-10-28 Martin Sebor <msebor@redhat.com>
7301
7302 PR c/66970
7303 * doc/cpp.texi (__has_builtin): Document.
7304 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7305
7306 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7307
7308 PR target/82981
7309 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7310 doubleword and low doubleword result of multiplication on
7311 MIPS64R6.
7312
7313 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7314 pure qualifier to the built-in.
7315 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7316 built-ins.
7317 (struct mips_builtin_description): Add is_pure flag.
7318 (mips_init_builtins): Mark built-in as pure if the flag in the
7319 corresponding mips_builtin_description struct is set.
7320
7321 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7322 alternative which covers the floating-point input value. Also
7323 forbid the split of insert.d pattern for floating-point values.
7324
7325 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7326
7327 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7328 * config/riscv/riscv-sr.c: New file.
7329 * config/riscv/riscv.c (riscv_reorg): New function.
7330 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7331 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7332 (riscv_remove_unneeded_save_restore_calls): Declare.
7333 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7334
7335 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7336
7337 PR tree-optimization/92163
7338 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7339 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7340 before calling bitmap_set_bit.
7341 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7342 delete_dead_or_redundant_assignment.
7343 (dse_dom_walker::dse_optimize_stmt): Likewise.
7344 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7345
7346 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7347
7348 PR middle-end/91272
7349 * tree-vect-stmts.c (vectorizable_condition): Support
7350 EXTRACT_LAST_REDUCTION with fully-masked loops.
7351
7352 2019-10-28 Richard Biener <rguenther@suse.de>
7353
7354 PR tree-optimization/92252
7355 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7356 STMT_VINFO_REDUC_IDX when swapping operands.
7357
7358 2019-10-28 Richard Biener <rguenther@suse.de>
7359
7360 PR tree-optimization/92241
7361 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7362 we failed to update the reduction index do not use the pattern
7363 stmts for the reduction chain.
7364 (vectorizable_reduction): When the reduction chain is corrupt,
7365 fail.
7366 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7367 fail to update the reduction chain.
7368
7369 2019-10-28 Richard Biener <rguenther@suse.de>
7370
7371 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7372 STMT_VINFO_REDUC_IDX from the actual stmt.
7373 (vect_transform_reduction): Likewise.
7374 (vectorizable_reduction): Compute the reduction chain length,
7375 do not recompute the reduction operand index. Remove no longer
7376 necessary restriction for condition reduction chains.
7377
7378 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7379
7380 PR target/92225
7381 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7382 condition for V2DImode.
7383
7384 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7385
7386 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7387 Remove %k operand modifier.
7388 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7389
7390 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7391
7392 PR rtl-optimization/92007
7393 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7394 call it after reload if hot/cold partitioning has been done.
7395 (class pass_postreload_jump): Rename to
7396 pass_jump_after_combine.
7397 (make_pass_postreload_jump): Rename to
7398 make_pass_jump_after_combine.
7399 * passes.def(pass_postreload_jump): Move before reload, rename
7400 to pass_jump_after_combine.
7401 * tree-pass.h (make_pass_postreload_jump): Rename to
7402 make_pass_jump_after_combine.
7403
7404 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7405
7406 PR ipa/92242
7407 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7408 for missing EDGE_REF
7409 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7410
7411 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7412
7413 PR tree-optimization/88760
7414 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7415 Enable -funroll-loops for -O2 and above.
7416 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7417 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7418 do not turn on web and rngreg implicitly, if the unroller is not
7419 explicitly enabled.
7420
7421 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7422
7423 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7424 jump functions.
7425
7426 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7427
7428 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7429 * cgraph.h (cgraph_node::rtl_info): Likewise.
7430
7431 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7432
7433 * ipa-cp.c (propagate_constants_across_call): If args are not available
7434 just drop everything to varying.
7435 (find_aggregate_values_for_callers_subset): Watch for missing
7436 edge summary.
7437 (find_more_scalar_values_for_callers_subs): Likewise.
7438 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7439 update_jump_functions_after_inlining, propagate_controlled_uses):
7440 Watch for missing summaries.
7441 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7442 is finished.
7443 (ipa_write_node_info): Watch for missing summaries.
7444 (ipa_read_edge_info): Create new ref.
7445 (ipa_edge_args_sum_t): Add remove.
7446 (IPA_EDGE_REF_GET_CREATE): New macro.
7447 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7448 edge summary.
7449 (remap_edge_change_prob): Likewise.
7450
7451 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7452
7453 * ipa-inline-transform.c (inline_call): update function summaries
7454 after expanidng thunk.
7455
7456 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7457
7458 * ipa-icf.c (sem_function::merge): Update function summaries.
7459 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7460
7461 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7462
7463 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7464 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7465 operand already has scalar mode.
7466 (iptr): Remove SF/DF.
7467
7468 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7469
7470 PR target/91289
7471 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7472 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7473 this.
7474
7475 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7476
7477 * config/i386/sse.md
7478 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7479 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7480 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7481 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7482 <sse>_vmmaskcmp<mode>3):
7483 Change predicates from vector_operand to nonimmediate_operand,
7484 constraints xBm to xm, since scalar operations don't need
7485 memory address alignment.
7486 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7487 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7488 round_saeonly_nimm_predicate with
7489 round_saeonly_nimm_scalar_predicate.
7490 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7491 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7492 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7493 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7494 avx512f_vmfmadd_<mode>_mask3<round_name>,
7495 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7496 *avx512f_vmfmsub_<mode>_mask<round_name>,
7497 avx512f_vmfmsub_<mode>_mask3<round_name>,
7498 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7499 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7500 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7501 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7502 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7503 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7504 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7505 cvtusi2<ssescalarmodesuffix>32<round_name>,
7506 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7507 round_nimm_predicate with round_nimm_scalr_predicate.
7508 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7509 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7510 avx512er_vmrcp28<mode><round_saeonly_name>,
7511 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7512 ): Replace round_saeonly_nimm_predicate with
7513 round_saeonly_nimm_scalar_predicate.
7514 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7515 vector_operand with nonimmediate_operand.
7516 * config/i386/subst.md (round_scalar_nimm_predicate,
7517 round_saeonly_scalar_nimm_predicate): Replace
7518 vector_operand with nonimmediate_operand.
7519
7520 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7521
7522 PR target/89071
7523 * config/i386/i386.md (*rcpsf2_sse): Add
7524 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7525 (*rsqrtsf2_sse): Ditto.
7526 (*sqrt<mode>2_sse): Ditto.
7527 (sse4_1_round<mode>2): separate constraint vm, add
7528 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7529 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7530 by pass rpad.
7531 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7532 Ditto.
7533 (*sse_vmrsqrtv4sf2): Ditto.
7534 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7535 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7536 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7537 <iptr> pointer size modifier since vround support memory operand.
7538
7539 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7540
7541 PR target/85969
7542 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7543 static function.
7544
7545 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7546 Tobias Burnus <tobias@codesourcery.com>
7547
7548 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7549 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7550 common block decls.
7551
7552 2019-10-25 Richard Biener <rguenther@suse.de>
7553
7554 PR tree-optimization/92222
7555 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7556 (_slp_oprnd_info::second_pattern): Likewise.
7557 (_slp_oprnd_info::any_pattern): New.
7558 (vect_create_oprnd_info): Adjust.
7559 (vect_get_and_check_slp_defs): Compute whether any stmt is
7560 in a pattern.
7561 (vect_build_slp_tree_2): Avoid building up a node from scalars
7562 if any of the operand defs, not just the first, is in a pattern.
7563
7564 2019-10-25 Richard Biener <rguenther@suse.de>
7565
7566 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7567 swapping if we actually have to modify the IL on a shared stmt.
7568 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7569 because we no longer modify the IL.
7570
7571 2019-10-25 Martin Liska <mliska@suse.cz>
7572
7573 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7574
7575 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7576
7577 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7578 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7579 handled by vect_transform_reduction. Allow fully-masked loops
7580 to be used with reduction chains.
7581 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7582 operations in fully-masked loops.
7583 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7584 operations in fully-masked loops.
7585
7586 2019-10-25 Richard Biener <rguenther@suse.de>
7587
7588 * tree-vect-loop.c (vectorizable_reduction): Verify
7589 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7590 correctly.
7591 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7592 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7593 stmts.
7594
7595 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7596
7597 * gimplify.h (omp_construct_selector_matches): Declare.
7598 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7599 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7600 called function if needed for flag_openmp.
7601 (gimplify_scan_omp_clauses): Set ctx->code.
7602 (omp_construct_selector_matches): New function.
7603 * omp-general.h (omp_constructor_traits_to_codes,
7604 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7605 * omp-general.c (omp_constructor_traits_to_codes,
7606 omp_context_selector_matches, omp_resolve_declare_variant): New
7607 functions.
7608
7609 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7610 literal.
7611 * config/rx/rx.c (rx_print_operand): Likewise.
7612 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7613 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7614 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7615 Likewise.
7616 * genemit.c (emit_c_code): Likewise.
7617 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7618
7619 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7620
7621 * symbols-summary.h (fast_function_summary<T *, V>::release,
7622 fast_call_summary<T *, V>::release): Free m_vector.
7623
7624 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7625
7626 * cgraphunit.c (symbol_table::process_new_functions): Call
7627 ipa_free_size_summary.
7628 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7629 (devirtualization_time_bonus): Update.
7630 (ipcp_propagate_stage): Update.
7631 * ipa-fnsummary.c (ipa_size_summaries): New.
7632 (ipa_fn_summary_alloc): Alloc size summary.
7633 (dump_ipa_call_summary): Update.
7634 (ipa_dump_fn_summary): Update.
7635 (analyze_function_body): Update.
7636 (compute_fn_summary): Likewise.
7637 (ipa_get_stack_frame_offset): New function.
7638 (inline_update_callee_summaries): Do not update frame offsets.
7639 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7640 remove call and function summary.
7641 (ipa_update_overall_fn_summary): Update.
7642 (inline_read_section): Update.
7643 (ipa_fn_summary_write): Update.
7644 (ipa_free_fn_summary): Do not remove summaries.
7645 (ipa_free_size_summary): New.
7646 (release summary pass): Also run at WPA.
7647 * ipa-fnsummary.h (ipa_size_summary): Declare.
7648 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7649 estimated_self_stack_size.
7650 (ipa_size_summary_t): New type.
7651 (ipa_size_summaries): Declare.
7652 (ipa_free_size_summary): Declare.
7653 (ipa_get_stack_frame_offset): Declare.
7654 * ipa-icf.c (sem_function::merge): Update.
7655 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7656 (estimate_growth): Update.
7657 (growth_likely_positive): Update.
7658 (clone_inlined_nodes): Update.
7659 (inline_call): Update.
7660 * ipa-inline.c (caller_growth_limits): Update.
7661 (edge_badness): Update.
7662 (recursive_inlining): Update.
7663 (inline_small_functions): Update.
7664 (inline_to_all_callers_1): Update.
7665 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7666
7667 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7668
7669 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7670 (uavg<mode>3_ceil): ... This.
7671 (altivec_vavgs<VI_char>): Rename to...
7672 (avg<mode>3_ceil): ... This.
7673 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7674 VAVGUW, VAVGSW): Adjust.
7675
7676 2019-10-24 Nathan Sidwell <nathan@acm.org>
7677
7678 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7679
7680 2019-10-24 Martin Liska <mliska@suse.cz>
7681
7682 * symbol-summary.h (gt_pch_nx): Mark all functions
7683 with gcc_unreachable as we do not expect to be called.
7684
7685 2019-10-24 Richard Biener <rguenther@suse.de>
7686
7687 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7688 chains try harder with operand swapping and instead of
7689 putting a shifted chain into the reduction operands put
7690 a repetition of the final reduction op there as if we'd
7691 reassociate the expression.
7692
7693 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7694
7695 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7696 statics_not_read and statics_not_written to statics_read and
7697 statics_written respectively.
7698 (no_module_statics): New static var.
7699 (ipa_reference_get_not_read_global): Rename to ...
7700 (ipa_reference_get_read_global): ... this.
7701 (ipa_reference_get_not_written_global): Rename to ...
7702 (ipa_reference_get_written_global): ... this.
7703 (dump_static_vars_set_to_file): Dump no_module_statics.
7704 (copy_static_var_set): Add for propagation parameter.
7705 (ipa_init): Initialize no_module_statics.
7706 (ipa_ref_opt_summary_t::duplicate): Update.
7707 (ipa_ref_opt_summary_t::remove): Update.
7708 (propagate): Update.
7709 (write_node_summary_p): Look correctly for bitmap differences.
7710 (ipa_reference_write_optimization_summary): Update.
7711 (ipa_reference_read_optimization_summary): Update.
7712 * ipa-reference.h
7713 (ipa_reference_get_not_read_global): Rename to ...
7714 (ipa_reference_get_read_global): ... this.
7715 (ipa_reference_get_not_written_global): Rename to ...
7716 (ipa_reference_get_written_global): ... this.
7717 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7718 (call_may_clobber_ref_p_1): Update.
7719
7720 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7721
7722 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7723 and add comment.
7724 (msp430_hard_regno_nregs_with_padding): Remove.
7725
7726 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7727
7728 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7729 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7730 shift amount is between 1 and 4.
7731 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7732 is between 1 and 4.
7733
7734 2019-10-24 Richard Biener <rguenther@suse.de>
7735
7736 PR tree-optimization/92205
7737 * tree-vect-loop.c (vectorizable_reduction): Restrict
7738 search for alternate vectype_in to lane-reducing patterns
7739 we support.
7740
7741 2019-10-24 Richard Biener <rguenther@suse.de>
7742
7743 PR tree-optimization/92203
7744 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7745 Skip eliminating conversion stmts inserted by insertion.
7746
7747 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7748
7749 * config/s390/s390.c (s390_get_thread_pointer): Use
7750 gen_get_thread_pointer.
7751 (s390_expand_split_stack_prologue): Likewise.
7752 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7753 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7754 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7755 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7756 parameterized name.
7757
7758 2019-10-24 Richard Biener <rguenther@suse.de>
7759
7760 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7761 SLP discovery fails try to handle the reduction as part
7762 of SLP reduction discovery.
7763
7764 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7765
7766 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7767 declaration.
7768 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7769 attribute if it exists, rather than the insn size. If we use the
7770 insn size, adjust the size to remove the extra size that prefixed
7771 instructions take.
7772 (rs6000_adjust_insn_length): New function.
7773 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7774 update the instruction sized if prefixed instructions are used.
7775 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7776 (non_prefixed_length attribute): Delete.
7777 (num_insns attribute): New insn attribute to return the number of
7778 instructions.
7779 (max_prefixed_insns attribute): New insn attribute to return the
7780 maximum number of prefixed instructions in an insn.
7781 (length attribute): Do not adjust for prefix instructions here,
7782 punt to ADJUST_INSN_LENGTH.
7783 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7784 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7785 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7786 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7787 max_prefixed_insns and num_insns.
7788
7789 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7790 (movtd_64bit_nodm): Reformat.
7791 (mov<mode>_32bit): Reformat.
7792 (mov<mode>_softfloat): Reformat.
7793 (FMOVE128_GPR splitter): Reformat.
7794 (DIFD splitter): Reformat.
7795 (TI2 splitter): Reformat.
7796 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7797 bits of the offset for the memory address are non-zero, use PLWA
7798 if prefixed instructions are available.
7799
7800 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7801
7802 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7803
7804 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7805
7806 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7807 previous patch.
7808
7809 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7810
7811 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7812 (cmp_symbol_files): New.
7813 (lto_output): Copy sections in file order.
7814 * lto-streamer.h (lto_file_decl_data): Add field order.
7815
7816 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7817
7818 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7819 * ipa-reference.c (reference_vars_map_t): new type.
7820 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7821 (ipa_reference_var_uid): Implement.
7822 (varpool_node_hooks): New static var.
7823 (varpool_removal_hook): New function.
7824 (is_improper): Do not check bitmap for id==-1
7825 (get_static_name): Update.
7826 (ipa_init): Initialize new datastructures.
7827 (analyze_function): Do not recompute ids.
7828 (propagate): Free reference_vars_to_consider.
7829 (stream_out_bitmap): Update.
7830 (ipa_reference_read_optimization_summary): Update.
7831
7832 2019-10-23 qing zhao <qing.zhao@oracle.com>
7833
7834 PR gcov-profile/91971
7835 * coverage.c (coverage_init): Mangle the full path of filename when
7836 filename is a absolute path.
7837
7838 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7839
7840 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7841 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7842 (msp430_has_hwmult): New.
7843 (msp430_output_labelref):
7844 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7845 * config/msp430/msp430.md (mulhisi3): Likewise.
7846 (umulhisi3): Likewise.
7847 (mulsidi3): Likewise.
7848 (umulsidi3): Likewise.
7849
7850 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7851
7852 PR ipa/92074
7853 * params.def (inline-heuristics-hint-percent): Set to 600.
7854
7855 2019-10-23 Richard Biener <rguenther@suse.de>
7856
7857 PR tree-optimization/65930
7858 * tree-vect-loop.c (check_reduction_path): Allow conversions
7859 that only change the sign.
7860 (vectorizable_reduction): Relax latch def stmts we handle further.
7861
7862 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7863
7864 PR debug/90231
7865 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7866 (remove_unused_ivs): Use it instead of get_computation_at. When
7867 choosing best candidate, only consider candidates where
7868 get_debug_computation_at actually returns non-NULL.
7869
7870 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7871
7872 PR tree-optimization/92131
7873 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7874 range would be symbolic, drop to varying for any explicit overflow
7875 in the constant part or if neither range is a singleton.
7876
7877 2019-10-23 Martin Liska <mliska@suse.cz>
7878
7879 PR middle-end/81669
7880 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7881 Initialize m_data.
7882
7883 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7884
7885 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7886 int_mode_for_mode rather than mode_for_int_vector for scalars.
7887
7888 2019-10-23 Richard Biener <rguenther@suse.de>
7889
7890 PR tree-optimization/92179
7891 * tree-vect-stmts.c (vectorizable_shift): For shift args
7892 that are all the same remove type restriction in the SLP case.
7893 Adjust SLP code to handle converting of the shift arg to
7894 only apply in case the modes are different.
7895
7896 2019-10-23 Martin Liska <mliska@suse.cz>
7897
7898 PR ipa/91969
7899 * ipa-inline.c (recursive_inlining): Do not print
7900 when curr->count is not initialized.
7901
7902 2019-10-23 Richard Biener <rguenther@suse.de>
7903
7904 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7905 op from scalars in case there's a constant operand in its
7906 definition.
7907
7908 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7909
7910 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7911 against out of range max skip or log values.
7912
7913 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7914
7915 * cgraph.c (dump_graphviz): Change name to dump_name
7916
7917 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7918
7919 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7920 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7921 subtraction from a carry operation.
7922
7923 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7926
7927 2019-10-22 Richard Biener <rguenther@suse.de>
7928
7929 PR tree-optimization/92173
7930 * tree-vect-loop.c (vectorizable_reduction): If
7931 vect_transform_reduction cannot handle code-generation try without
7932 the single-def-use-cycle optimization. Pass optab_vector to
7933 optab_for_tree_code to get vector shifts as that's what we'd
7934 generate.
7935
7936 2019-10-22 Michael Matz <matz@suse.de>
7937
7938 PR middle-end/90796
7939 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7940 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7941 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7942
7943 2019-10-22 Richard Biener <rguenther@suse.de>
7944
7945 PR tree-optimization/92173
7946 * tree-vect-loop.c (vectorizable_reduction): If
7947 vect_transform_reduction cannot handle code-generation try without
7948 the single-def-use-cycle optimization. Pass optab_vector to
7949 optab_for_tree_code to get vector shifts as that's what we'd
7950 generate.
7951
7952 2019-10-22 Martin Liska <mliska@suse.cz>
7953
7954 * diagnostic-format-json.cc (json_from_expanded_location):
7955 Use json::integer_number.
7956 * gcov.c (output_intermediate_json_line): Use new
7957 json::integer_number.
7958 (output_json_intermediate_file): Likewise.
7959 * json.cc (number::print): Move to ...
7960 (float_number::print): ... this.
7961 (integer_number::print): New.
7962 (test_writing_numbers): Move to ...
7963 (test_writing_float_numbers): ... this.
7964 (test_writing_integer_numbers): New.
7965 (json_cc_tests): Register test_writing_integer_numbers.
7966 * json.h (class value): Add forward declaration
7967 for float_number and integer_number.
7968 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7969 (class number): Move to ...
7970 (class float_number): ... this.
7971 (class integer_number): New.
7972 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7973 Use json::integer_number.
7974 (optrecord_json_writer::location_to_json): Likewise.
7975 (optrecord_json_writer::profile_count_to_json): Likewise.
7976 (optrecord_json_writer::pass_to_json): Likewise.
7977
7978 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7979
7980 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7981 autodetected_vector_size rather than vector_size is zero.
7982 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7983 Set autodetected_vector_size immediately after calling
7984 vect_analyze_loop_2. Check for a fatal error before advancing
7985 next_size.
7986
7987 2019-10-21 Jason Merrill <jason@redhat.com>
7988
7989 * lock-and-run.sh: Check for process existence rather than timeout.
7990
7991 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7992
7993 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7994 widening multiplication.
7995
7996 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7997
7998 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7999 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8000 type attribute.
8001 (subsi3_carryin_shift): Separate into register and constant controlled
8002 alternatives. Use shift_amount_operand for operand 4. Set shift
8003 attribute and simplify type attribute.
8004 (subsi3_carryin_shift_alt): Likewise.
8005 (rsbsi3_carryin_shift): Likewise.
8006 (rsbsi3_carryin_shift_alt): Likewise.
8007 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8008 and register controlled shifts into distinct alternatives.
8009 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8010 (andsi_not_shiftsi_si_scc): Likewise.
8011 (arm_cmpsi_negshiftsi_si): Likewise.
8012 (not_shiftsi): Remove redundant M constraint from alternative 1.
8013 (not_shiftsi_compare0): Likewise.
8014 (arm_cmpsi_insn): Remove redundant alternative 2.
8015 (cmpsi_shift_swp): Likewise.
8016 (sub_shiftsi): Likewise.
8017 (sub_shiftsi_compare0_scratch): Likewise.
8018 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8019 (thumb2_cmpsi_neg_shiftsi): Likewise.
8020
8021 2019-10-21 Richard Biener <rguenther@suse.de>
8022
8023 PR tree-optimization/92162
8024 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8025 STMT_VINFO_REDUC_IDX in reduc_info.
8026 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8027
8028 2019-10-21 Richard Biener <rguenther@suse.de>
8029
8030 * tree-vectorizer.h (_slp_tree::ops): New member.
8031 (SLP_TREE_SCALAR_OPS): New.
8032 (vect_get_slp_defs): Adjust prototype.
8033 * tree-vect-slp.c (vect_free_slp_tree): Release
8034 SLP_TREE_SCALAR_OPS.
8035 (vect_create_new_slp_node): Initialize it. New overload for
8036 initializing by an operands array.
8037 (_slp_oprnd_info::ops): New member.
8038 (vect_create_oprnd_info): Initialize it.
8039 (vect_free_oprnd_info): Release it.
8040 (vect_get_and_check_slp_defs): Populate the operands array.
8041 Do not swap operands in the IL when not necessary.
8042 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8043 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8044 swap operands in the operands array. Do not swap operands in
8045 the IL.
8046 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8047 (vect_gather_slp_loads): Fix.
8048 (vect_detect_hybrid_slp_stmts): Likewise.
8049 (vect_slp_analyze_node_operations_1): Search for a internal
8050 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8051 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8052 the def-type push/pop dance.
8053 (vect_get_constant_vectors): Compute number_of_vectors here.
8054 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8055 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8056 (vect_get_slp_defs): Simplify greatly.
8057 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8058 (vect_transform_reduction): Likewise.
8059 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8060 (vectorizable_call): Likewise.
8061 (vectorizable_operation): Likewise.
8062 (vectorizable_load): Likewise.
8063 (vectorizable_condition): Likewise.
8064 (vectorizable_comparison): Likewise.
8065
8066 2019-10-21 Richard Biener <rguenther@suse.de>
8067
8068 PR tree-optimization/92161
8069 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8070 for reductions.
8071
8072 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8073
8074 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8075 (aarch64_rndr): New define_insn.
8076 (aarch64_rndrrs): Likewise.
8077 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8078 (TARGET_RNG): Likewise.
8079 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8080 argument.
8081 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8082 Add fourth argument in prototype.
8083 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8084 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8085 (aarch64_init_rng_builtins): Define.
8086 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8087 (aarch64_expand_rng_builtin): Define.
8088 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8089 RNG builtins.
8090 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8091 __ARM_FEATURE_RNG when TARGET_RNG.
8092 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8093
8094 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8095
8096 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8097 alignment is more restrictive.
8098
8099 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8100
8101 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8102 (vect_update_max_nunits): Update comment.
8103 (current_vector_size): Delete.
8104 * tree-vect-stmts.c (current_vector_size): Likewise.
8105 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8106 of current_vector_size.
8107 (get_mask_type_for_scalar_type): Likewise.
8108 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8109 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8110 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8111 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8112 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8113 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8114
8115 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8116
8117 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8118 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8119 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8120 accordingly.
8121
8122 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8123
8124 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8125 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8126 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8127 call accordingly.
8128 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8129
8130 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8131
8132 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8133 a loop_vec_info.
8134 (vect_set_loop_condition_masked): Update call accordingly.
8135
8136 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8137
8138 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8139 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8140 (simple_integer_narrowing): Update call accordingly.
8141 (vectorizable_conversion): Likewise.
8142
8143 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8144
8145 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8146 (vectorizable_call): Update call accordingly.
8147
8148 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8149
8150 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8151 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8152 (duplicate_and_interleave): Update call accordingly.
8153 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8154
8155 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8156
8157 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8158 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8159 (vect_get_constant_vectors): Update call accordingly.
8160 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8161
8162 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8163
8164 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8165 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8166 (vect_prologue_cost_for_slp_op): Update call accordingly.
8167 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8168 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8169 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8170 (get_mask_type_for_scalar_type): Likewise.
8171 (vect_get_vector_types_for_stmt): Likewise.
8172 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8173 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8174 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8175 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8176 (vect_split_statement, vect_convert_input): Likewise.
8177 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8178 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8179 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8180 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8181 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8182 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8183 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8184 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8185 (vect_recog_mask_conversion_pattern): Likewise.
8186 (vect_add_conversion_to_pattern): Likewise.
8187 (vect_recog_gather_scatter_pattern): Likewise.
8188 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8189 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8190
8191 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8192
8193 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8194 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8195 (vect_check_load_store_mask): Update call accordingly.
8196 (vect_get_mask_type_for_stmt): Likewise.
8197 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8198 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8199 (vect_convert_mask_for_vectype): Likewise.
8200
8201 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8202
8203 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8204 a vec_info.
8205 (vect_recog_dot_prod_pattern): Update call accordingly.
8206 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8207 (vect_recog_widen_sum_pattern): Likewise.
8208
8209 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8210
8211 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8212 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8213 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8214 accordingly.
8215
8216 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8217
8218 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8219 get_vectype_for_scalar_type_and_size instead of
8220 get_vectype_for_scalar_type.
8221
8222 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8223
8224 * common.opt (-fcommon): Fix description.
8225
8226 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8227
8228 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8229 * config/i386/i386.c (ix86_pre_reload_split): New function.
8230 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8231 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8232 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8233 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8234 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8235 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8236 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8237 *<shift_insn><dwi>3_doubleword_mask,
8238 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8239 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8240 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8241 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8242 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8243 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8244 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8245 *avx2_<code>v8qiv8si2<mask_name>_2,
8246 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8247 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8248 *avx512f_<code>v8qiv8di2<mask_name>_2,
8249 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8250 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8251 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8252 sse4_2_pcmpistr): Likewise.
8253
8254 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8255
8256 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8257 now defaults to https.
8258
8259 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8260
8261 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8262 skip non-zero array accesses.
8263
8264 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8265
8266 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8267 and return a boolean success value. Move the allocation and
8268 initialization of the bb_vec_info to...
8269 (vect_slp_bb_region): ...here. Update call accordingly.
8270 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8271 than in vect_slp_analyze_bb_1.
8272
8273 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8274
8275 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8276 when processing the given datarefs for the first time and
8277 check_datarefs subsequently.
8278 (vect_slp_bb_region): New function, split out of...
8279 (vect_slp_bb): ...here. Don't recompute the region bounds and
8280 dataref sets when retrying with a different vector size.
8281
8282 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8283 Uroš Bizjak <ubizjak@gmail.com>
8284
8285 PR target/92140
8286 * config/i386/predicates.md (int_nonimmediate_operand): New special
8287 predicate.
8288 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8289 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8290 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8291 define_insn_and_split patterns.
8292
8293 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8294
8295 * config/rs6000/rs6000.md: Delete out--of-date comment about
8296 special-casing integer loads.
8297
8298 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8299
8300 * escaped_string.h (escaped_string): New header.
8301 * tree.c (escaped_string): Remove escaped_string class.
8302
8303 2019-10-18 Martin Sebor <msebor@redhat.com>
8304
8305 PR tree-optimization/92157
8306 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8307 compute_string_length to return a negative result.
8308
8309 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8310
8311 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8312 (negvsi3, negvdi3): Delete.
8313 (negdi2_compare): Delete.
8314
8315 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8316
8317 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8318 operations.
8319 (subdi3_compare1): Delete pattern.
8320 (subvsi3_borrow): New insn pattern.
8321 (subvsi3_borrow_imm): Likewise.
8322
8323 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8324
8325 * config/arm/arm.md (subv<mode>4): Delete.
8326 (subvdi4): New expander pattern.
8327 (subvsi4): Likewise. Handle some immediate values.
8328 (subvsi3_intmin): New insn pattern.
8329 (subvsi3): Likewise.
8330 (subvsi3_imm1): Likewise.
8331 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8332 idioms.
8333
8334 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8335
8336 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8337 incoming operands. Early split the calculation into SImode
8338 operations.
8339 (usubvsi3_borrow): New insn pattern.
8340 (usubvsi3_borrow_imm): Likewise.
8341
8342 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8345 (usubvsi4): New pattern. Allow some immediate values for inputs.
8346 (usubvdi4): New pattern.
8347
8348 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8349
8350 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8351 or second operand of the PLUS inside a DImode equality test to be
8352 sign-extend when selecting CC_Vmode.
8353 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8354 instructions.
8355 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8356 expand patterns.
8357 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8358 (addsi3_cin_vout_0): Likewise.
8359 (adddi3_compareV): Delete.
8360
8361 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8362
8363 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8364 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8365 to transform this back into the summation version when that leads
8366 to smaller code.
8367
8368 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8369
8370 * config/arm/arm.md (addv<mode>4): Delete.
8371 (addvsi4): New pattern. Handle immediate values that the architecture
8372 supports.
8373 (addvdi4): New pattern.
8374 (addsi3_compareV): Rename to ...
8375 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8376 and use COMPARE rather than NE.
8377 (addsi3_compareV_imm): New pattern.
8378 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8379 a signed-overflow check.
8380
8381 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8382
8383 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8384 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8385 CC_ADCmode.
8386 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8387 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8388 with overflow.
8389 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8390 expand patterns.
8391 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8392 (addsi3_cin_cout_imm_insn): Likewise.
8393 (adddi3_compareC): Delete insn.
8394 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8395
8396 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8397
8398 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8399 * (uaddv<mode>4): Delete expansion pattern.
8400 (uaddvsi4): New pattern.
8401 (uaddvdi4): Likewise.
8402 (addsi3_compareC): Delete pattern, change callers to use
8403 addsi3_compare_op1.
8404 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8405 reduce the number of alternatives and re-work type attribute handling.
8406 (addsi3_compare_op2): Clean up constraints to reduce the number of
8407 alternatives and re-work type attribute handling.
8408 (compare_addsi2_op0): Likewise.
8409 (compare_addsi2_op1): Likewise.
8410
8411 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8414 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8415 for DImode operands.
8416 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8417 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8418 CC_NCVmode.
8419 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8420 (arm_cmpdi_unsigned): Delete.
8421
8422 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8423
8424 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8425 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8426 unchanged only if that will be cheaper.
8427 (arm_select_cc_mode): Recognize a swapped comparison that will
8428 be regenerated using RSBS or RSCS. Relax restriction on selecting
8429 CC_RSBmode.
8430 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8431 a constant.
8432 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8433 is CC_RSBmode.
8434 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8435 as CCmode.
8436 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8437 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8438
8439 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8440
8441 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8442 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8443 need these modes.
8444 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8445 of EQ, NE, LT, GE, LTU and GEU.
8446 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8447 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8448 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8449 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8450 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8451
8452 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8453
8454 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8455 operand 2.
8456 (cstoredi4): Similarly, but for operand 3.
8457 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8458 canonicalization of unsigned compares with a constant on Arm.
8459 Prefer using const+1 and adjusting the comparison over swapping the
8460 operands whenever the original constant was not valid.
8461 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8462 register here.
8463 (arm_validize_comparison): Do not force invalid DImode operands to
8464 registers here.
8465
8466 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8467
8468 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8469 return CC_Zmode if comparing against a constant where one word is
8470 zero.
8471 (arm_gen_compare_reg): Split DImode handling to ...
8472 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8473 against simple constants.
8474 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8475
8476 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8477
8478 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8479 (rsbsi3_carryin_shift_alt): Likewise.
8480
8481 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8482
8483 * config/arm/arm.md (negscc_borrow): New pattern.
8484 (mov_negscc): Don't split if the insn would match negscc_borrow.
8485 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8486 (thumb2_mov_negscc_strict_it): Likewise.
8487
8488 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8489
8490 * config/arm/arm.c (arm_insn_cost): New function.
8491 (TARGET_INSN_COST): Override default definition.
8492
8493 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8494
8495 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8496 borrow operations.
8497
8498 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8499
8500 * config/arm/arm.c (strip_carry_operation): New function.
8501 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8502 for SImode.
8503
8504 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8505
8506 * config/arm/predicates.md (arm_carry_operation): New special
8507 predicate.
8508 * config/arm/iterators.md (LTUGEU): Delete iterator.
8509 (cnb): Delete code attribute.
8510 (optab): Delete ltu and geu elements.
8511 * config/arm/arm.md (addsi3_carryin): Renamed from
8512 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8513 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8514 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8515 (addsi3_carryin_clobercc): Similarly.
8516 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8517 Thumb2 state.
8518
8519 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8520
8521 * config/arm/arm.md (arm_subdi3): Delete insn.
8522 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8523
8524 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8525
8526 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8527 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8528 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8529 return CC_RSBmode.
8530 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8531 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8532 expand.
8533 (subdi3): Rewrite to early-expand the sub-operations.
8534 (rsb_im_compare): New pattern.
8535 (negdi2): Delete.
8536 (negdi2_insn): Delete.
8537 (arm_negsi2): Correct type attribute to alu_imm.
8538 (negsi2_0compare): New insn pattern.
8539 (negsi2_carryin): New insn pattern.
8540
8541 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8542
8543 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8544 operand 2.
8545
8546 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8547
8548 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8549 to match canonical form.
8550
8551 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8552
8553 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8554 (extend<mode>di2): Likewise.
8555
8556 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8557
8558 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8559 * config/arm/arm.c (arm_decompose_di_binop): New function.
8560 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8561 If not generating Thumb-1 code, decompose the operation into 32-bit
8562 pieces.
8563 * add0si_carryin_<optab>: New pattern.
8564
8565 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8566
8567 * arm.md (adddi3): Only accept register operands.
8568 (arm_adddi3): Convert to simple insn with no split. Do not accept
8569 constants.
8570 (adddi_sesidi_di): Delete patern.
8571 (adddi_zesidi_di): Likewise.
8572 (uaddv<mode>4): Use LTU as condition for branch.
8573 (adddi3_compareV): Convert to simple insn with no split.
8574 (addsi3_compareV_upper): Delete pattern.
8575 (adddi3_compareC): Convert to simple insn with no split. Correct
8576 flags setting expression.
8577 (addsi3_compareC_upper): Delete pattern.
8578 (addsi3_compareC): Correct flags setting expression.
8579 (subdi3_compare1): Convert to simple insn with no split.
8580 (subsi3_carryin_compare): Delete pattern.
8581 (arm_subdi3): Convert to simple insn with no split.
8582 (subdi_zesidi): Delete pattern.
8583 (subdi_di_sesidi): Delete pattern.
8584 (subdi_zesidi_di): Delete pattern.
8585 (subdi_sesidi_di): Delete pattern.
8586 (subdi_zesidi_zesidi): Delete pattern.
8587 (negvdi3): Use s_register_operand.
8588 (negdi2_compare): Convert to simple insn with no split.
8589 (negdi2_insn): Likewise.
8590 (negsi2_carryin_compare): Delete pattern.
8591 (negdi_zero_extendsidi): Delete pattern.
8592 (arm_cmpdi_insn): Convert to simple insn with no split.
8593 (negdi2): Don't call gen_negdi2_neon.
8594 * config/arm/neon.md (adddi3_neon): Delete pattern.
8595 (subdi3_neon): Delete pattern.
8596 (negdi2_neon): Delete pattern.
8597 (splits for negdi2_neon): Delete splits.
8598
8599 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8600
8601 PR middle-end/92153
8602 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8603 than after it.
8604
8605 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8606
8607 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8608 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8609 new multilib variants and new mappings.
8610
8611 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8612
8613 PR target/86040
8614 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8615
8616 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8617 Richard Sandiford <richard.sandiford@arm.com>
8618
8619 PR target/86753
8620 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8621 and define hashmap traits for it.
8622 (loop_vec_info::scalar_cond_masked_set): New member.
8623 (vect_record_loop_mask): Adjust prototype.
8624 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8625 Implement method.
8626 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8627 vect_record_loop_mask.
8628 (vectorizable_live_operation): Likewise.
8629 (vect_record_loop_mask): New param scalar_mask. Add entry
8630 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8631 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8632 Pass it as last arg to vect_record_loop_mask.
8633 (vectorizable_call): Pass scalar_mask as last arg to
8634 vect_record_loop_mask.
8635 (vectorizable_store): Likewise.
8636 (vectorizable_load): Likewise.
8637 (vectorizable_condition): Check if another part of vectorized code
8638 applies loop_mask to condition or to it's inverse, and if yes,
8639 apply loop_mask to result of vector comparison.
8640
8641 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8642
8643 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8644
8645 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8646
8647 PR tree-optimization/92056
8648 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8649 before calling compute_builtin_object_size.
8650
8651 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8652
8653 PR target/65342
8654 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8655 (movdi_low_st): Delete.
8656 * config/rs6000/rs6000.c
8657 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8658 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8659 * config/rs6000/rs6000.md (movsi_low): Delete.
8660
8661 2019-10-17 Jason Merrill <jason@redhat.com>
8662
8663 * gimplify.h (get_initialized_tmp_var): Add default argument to
8664 post_p.
8665 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8666 NULL post_p argument.
8667 * targhooks (std_gimplify_va_arg_expr): Likewise.
8668
8669 2019-10-17 Richard Biener <rguenther@suse.de>
8670
8671 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8672 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8673 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8674 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8675 * tree-vect-loop.c (vect_is_simple_reduction): Set
8676 STMT_VINFO_REDUC_CODE.
8677 (vectorizable_reduction): Remove dead and redundant code, use
8678 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8679
8680 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8681
8682 Fix breakage introduced by r276985.
8683
8684 * config/avr/avr.c (avr_option_override): Remove set of
8685 PARAM_ALLOW_STORE_DATA_RACES.
8686 * common/config/avr/avr-common.c (avr_option_optimization_table)
8687 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8688
8689 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8690
8691 * config/i386/i386.h (processor_costs): Add clear_ratio.
8692 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8693 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8694 of 6 and move_ratio in all cost models.
8695
8696 2019-10-17 Richard Biener <rguenther@suse.de>
8697
8698 * tree-vect-loop.c (check_reduction_path): Compute reduction
8699 operation here.
8700 (vect_is_simple_reduction): Remove special-case of single-stmt
8701 reduction path detection.
8702
8703 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8704
8705 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8706
8707 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8708
8709 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8710 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8711 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8712 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8713 New combine patterns.
8714 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8715 above.
8716 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8717
8718 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8719
8720 * tree-vrp.c (value_range_base::dump): Display +INF for both
8721 pointers and integers when appropriate.
8722
8723 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8724
8725 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8726 when to use versioning threshold.
8727
8728 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8729
8730 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8731 outlined code from ...
8732 (vect_analyze_loop_2): ... here.
8733
8734 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8735
8736 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8737 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8738 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8739
8740 2019-10-17 Richard Biener <rguenther@suse.de>
8741
8742 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8743 (vect_is_simple_reduction): Move all validity checks ...
8744 (vectorizable_reduction): ... here. Compute whether we
8745 need a fold-left reduction here.
8746 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8747 both overloads, check needs_fold_left_reduction_p directly.
8748 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8749
8750 2019-10-17 Richard Biener <rguenther@suse.de>
8751
8752 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8753 TARGET_MEM_REF creation.
8754
8755 2019-10-17 Richard Biener <rguenther@suse.de>
8756
8757 PR tree-optimization/92129
8758 * tree-vect-loop.c (vectorizable_reduction): Also fail
8759 on GIMPLE_SINGLE_RHS.
8760
8761 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8762
8763 PR tree-optimization/92056
8764 * tree-object-size.c (cond_expr_object_size): Return early if then_
8765 processing resulted in unknown size.
8766
8767 PR tree-optimization/92115
8768 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8769 temporary if it could trap.
8770
8771 2019-10-17 Richard Biener <rguenther@suse.de>
8772
8773 PR debug/91887
8774 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8775 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8776
8777 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8778
8779 * tree-ssa-strlen.c (maybe_invalidate): Use
8780 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8781
8782 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8783 Jim Wilson <jimw@sifive.com>
8784
8785 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8786 regs to SIBCALL_REGS.
8787 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8788 passing regs to SIBCALL_REGS.
8789
8790 2019-10-16 Martin Sebor <msebor@redhat.com>
8791
8792 PR tree-optimization/83821
8793 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8794 the length of a string when available.
8795 (handle_builtin_memset) Add argument.
8796 (handle_store, strlen_check_and_optimize_call): Same.
8797 (check_and_optimize_stmt): Same. Pass it to callees.
8798
8799 2019-10-16 Martin Sebor <msebor@redhat.com>
8800
8801 PR tree-optimization/91996
8802 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8803 information.
8804 (compare_nonzero_chars): Add an overload.
8805 (count_nonzero_bytes): Add an argument. Call overload above.
8806 Handle non-constant lengths in some range.
8807 (handle_store): Add an argument.
8808 (check_and_optimize_stmt): Pass an argument to handle_store.
8809
8810 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8811
8812 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8813
8814 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8815
8816 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8817 operands which correspond to the same input-output register to
8818 have the same pseudo assigned to them.
8819
8820 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8821
8822 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8823
8824 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8825
8826 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8827 Apply reasonable limit to symbol offsets.
8828
8829 2019-10-16 Richard Biener <rguenther@suse.de>
8830
8831 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8832 (vect_is_simple_reduction): Delay checking to
8833 vectorizable_reduction and relax the checking.
8834 (vectorizable_reduction): Check we have a simple use. Check
8835 for bogus condition reductions.
8836 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8837 are looking at the last stmt in a pattern sequence when
8838 filling in backedge PHI values.
8839
8840 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8841 Jiufu Guo <guojiufu@linux.ibm.com>
8842
8843 PR target/70010
8844 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8845 the callee explicitly disables some isa_flags the caller is using.
8846
8847 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8848
8849 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8850
8851 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8852
8853 * genmodes.c (mode_data::order): New field.
8854 (blank_mode): Update accordingly.
8855 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8856 (make_vector_modes): Likewise.
8857 (VECTOR_MODES): Update use accordingly.
8858 (cmp_modes): Sort by the new order field ahead of sorting by size.
8859 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8860 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8861 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8862 (aarch64_classify_vector_mode): Handle the new partial modes.
8863 (aarch64_vl_bytes): New function.
8864 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8865 when counting the number of registers in an SVE mode.
8866 (aarch64_class_max_nregs): Likewise.
8867 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8868 in registers yet.
8869 (aarch64_classify_address): Treat partial vectors analogously
8870 to full vectors.
8871 (aarch64_print_address_internal): Consolidate the printing of
8872 MUL VL addresses, using aarch64_vl_bytes as the number of
8873 bytes represented by "VL".
8874 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8875
8876 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8877
8878 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8879 rather than known_lt when choosing frame layouts.
8880
8881 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8882
8883 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8884 that all the adjustments add up to the full frame size.
8885 Use crtl->outgoing_args_size directly as the final adjustment
8886 where appropriate.
8887
8888 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8889
8890 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8891 "frame" reference instead of always referring directly to
8892 "cfun->machine->frame".
8893
8894 2019-10-16 Richard Biener <rguenther@suse.de>
8895
8896 PR tree-optimization/92119
8897 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8898 against missing bswap lhs.
8899
8900 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8901
8902 PR middle-end/92033
8903 * poly-int.h (constant_lower_bound_with_limit): New function.
8904 (constant_upper_bound_with_limit): Likewise.
8905 * doc/poly-int.texi: Document them.
8906 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8907 into the worst-case INTEGER_CST bounds.
8908
8909 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8910
8911 PR ipa/91088
8912 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8913 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8914 * ipa-predicat.h (struct expr_eval_op): New struct.
8915 (expr_eval_ops): New typedef.
8916 (struct condition): Add type and param_ops fields, remove size field.
8917 (add_condition): Replace size parameter with type parameter, add
8918 param_ops parameter.
8919 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8920 (predicate::add_clause): Add comparisons on type and param_ops.
8921 (dump_condition): Add debug dump for param_ops.
8922 (remap_after_inlining): Adjust call arguments to add_condition.
8923 (add_condition): Replace size parameter with type parameter, add
8924 param_ops parameter. Unshare constant value used in conditions.
8925 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8926 parameter expressions using param_ops.
8927 (decompose_param_expr): New function.
8928 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8929 to replace call to unmodified_parm_or_parm_agg_item.
8930 (set_switch_stmt_execution_predicate): Likewise.
8931 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8932 with type.
8933 (inline_read_section): Read param_ops from summary stream.
8934 (ipa_fn_summary_write): Write param_ops to summary stream.
8935
8936 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8937
8938 PR rtl-optimization/92107
8939 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8940 expression written.
8941
8942 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8943
8944 * config/darwin.c: Update description of fix and continue.
8945
8946 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8947
8948 * config/darwin.c (darwin_binds_local_p): Update to call
8949 default_binds_local_p_3 () directly. amend comments.
8950
8951 2019-10-15 Richard Biener <rguenther@suse.de>
8952
8953 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8954 (tree_is_indexable): Use it.
8955 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8956 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8957 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8958
8959 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8960
8961 * config/msp430/msp430.md (zero_extendqipsi2): New.
8962 (zero_extendqisi2): Optimize case where src register and base dst
8963 register are the same.
8964 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8965 (zero_extendpsisi2): Optimize r->m case.
8966 Add unnamed insn patterns to catch insns combine searches for when
8967 optimizing pointer manipulation.
8968
8969 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8970
8971 * config/msp430/msp430.md: Group zero_extend* insns together.
8972
8973 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8974
8975 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8976 constraint.
8977 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8978 POST_INC.
8979 (msp430_subreg): Likewise.
8980 (msp430_split_addsi): Likewise.
8981 (msp430_print_operand_addr): Likewise.
8982 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8983 (USE_STORE_POST_INCREMENT): Define.
8984 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8985 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8986 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8987 (msp430_general_dst_operand): New.
8988 (msp430_general_dst_nonv_operand): New.
8989 (msp430_nonsubreg_operand): Remove.
8990 (msp430_nonsubreg_dst_operand): New.
8991 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8992 of defunct msp430_nonsubreg_operand.
8993 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8994
8995 2019-10-15 Richard Biener <rguenther@suse.de>
8996
8997 PR tree-optimization/91929
8998 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8999 (get_or_alloc_expr_for_name): Initialize it.
9000 (get_or_alloc_expr_for_constant): Likewise.
9001 (phi_translate_1): Copy it.
9002 (create_expression_by_pieces): Use the original location
9003 of the expression for the inserted stmt.
9004 (compute_avail): Record the location of the stmt for the
9005 expressions created.
9006
9007 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9008
9009 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9010 before using tree_to_uhwi.
9011
9012 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9013
9014 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9015
9016 2019-10-15 Richard Biener <rguenther@suse.de>
9017
9018 PR tree-optimization/92094
9019 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9020 do not adjust the reduction definition def type.
9021 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9022 defines the latch argument of the PHI.
9023
9024 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9025
9026 PR target/92035
9027 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9028 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9029 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9030 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9031 _mm_maskz_roundscale_round_sd): New intrinsics.
9032 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9033 __builtin_ia32_rndscales?_mask_round builtins instead of
9034 __builtin_ia32_rndscales?_round.
9035 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9036 __builtin_ia32_rndscalesd_round): Remove.
9037 (__builtin_ia32_rndscaless_mask_round,
9038 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9039 * config/i386/sse.md
9040 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9041 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9042 ... this, adjust and add subst atrributes to make it maskable.
9043
9044 2019-10-15 Richard Biener <rguenther@suse.de>
9045
9046 PR middle-end/92046
9047 * common.opt (fallow-store-data-races): New.
9048 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9049 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9050 * doc/invoke.texi (fallow-store-data-races): Document.
9051 (--param allow-store-data-races): Remove docs.
9052 * opts.c (default_options_table): Enable -fallow-store-data-races
9053 at -Ofast.
9054 (default_options_optimization): Do not enable --param
9055 allow-store-data-races at -Ofast.
9056 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9057 instead of PARAM_ALLOW_STORE_DATA_RACES.
9058 * tree-ssa-loop-im.c (execute_sm): Likewise.
9059
9060 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9061
9062 PR tree-optimization/92085
9063 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9064 instead of calling it unconditionally after
9065 delete_dead_or_redundant_assignment and fix indentation.
9066
9067 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9068
9069 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9070 TARGET_VFP_DOUBLE.
9071 (*fmsub<SDF:mode>4): Likewise.
9072 *fnmsub<SDF:mode>4): Likewise.
9073 (*fnmadd<SDF:mode>4): Likewise.
9074
9075 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9076
9077 * doc/tree-ssa.texi: Update renamed macro name.
9078
9079 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9080
9081 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9082 vector constants.
9083
9084 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9085
9086 * config/darwin.c: Use unsigned ints for the picbase label
9087 counters, initialise the vars explicitly.
9088 (update_pic_label_number_if_needed): Move a variable declaration
9089 to where it's needed.
9090 (machopic_output_function_base_name): Use a more strict checking
9091 assert, and and unsigned int for the picbase label counter.
9092 (machopic_get_function_picbase): Likewise.
9093
9094 2019-10-14 Richard Biener <rguenther@suse.de>
9095
9096 PR middle-end/92046
9097 * dse.c (scan_insn): Use param max_active_local_stores.
9098 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9099 based on optimization level.
9100 * loop-invariant.c (move_loop_invariants): Adjust
9101 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9102 * opts.c (default_options_optimization): Do not adjust
9103 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9104 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9105
9106 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9107
9108 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9109
9110 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9111
9112 * config/arm/arm.c (arm_option_override): Don't override sched
9113 pressure algorithm.
9114
9115 2019-10-14 Richard Biener <rguenther@suse.de>
9116
9117 PR tree-optimization/92069
9118 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9119 cycles do not set vect_nested_cycle on the latch definition.
9120
9121 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9122
9123 * function-abi.h (expr_callee_abi): Declare.
9124 * function-abi.cc (expr_callee_abi): New function.
9125
9126 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9127
9128 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9129 into [1,MAX].
9130 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9131 non-zero being represented as [1,MAX].
9132
9133 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9134
9135 * tree-sra.c (dump_access): Add missing braces.
9136
9137 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9138
9139 * config/darwin.c (machopic_indirection_name): Rework the
9140 function to emit linker-visible symbols only for indirections
9141 in the data section. Clean up the code and update comments.
9142
9143 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9144
9145 * config/darwin.c (machopic_indirect_data_reference): Remove
9146 redundant code.
9147
9148 2019-10-13 Nathan Sidwell <nathan@acm.org>
9149
9150 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9151
9152 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9153
9154 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9155 c99_runtime.
9156
9157 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9158
9159 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9160 so non-virutal are before virutals.
9161 (output_function): Avoid body modifications.
9162
9163 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9164
9165 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9166 %r22. Load function address before global pointer.
9167 (pa_attr_length_indirect_call): Adjust length of inline versions of
9168 $$dyncall.
9169 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9170 before normal cases. Update inline $$dyncall sequences to preserve
9171 function descriptor address in register %r22.
9172 (TRAMPOLINE_CODE_SIZE): Adjust.
9173 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9174 register %r22 contains trampoline address.
9175 (pa_trampoline_init): Adjust offsets.
9176 (pa_trampoline_adjust_address): Likewise.
9177 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9178
9179 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9180
9181 PR target/67183
9182 * config/darwin.c (machopic_indirection): New field to flag
9183 non-lazy-symbol-pointers in the data section.
9184 (machopic_indirection_name): Compute if an indirection should
9185 appear in the data section.
9186 (machopic_output_data_section_indirection): New callback split
9187 from machopic_output_indirection.
9188 (machopic_output_stub_indirection): Likewise.
9189 (machopic_output_indirection): Retain the code for non-lazy
9190 symbol pointers in their regular section.
9191 (machopic_finish): Use the new callbacks to order the indirection
9192 output.
9193
9194 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9195
9196 * config/darwin-protos.h (machopic_finish): Delete.
9197 * config/darwin.c (machopic_finish): Make static.
9198
9199 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9200
9201 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9202 sections when building kernel extension code.
9203
9204 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9205
9206 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9207 later standard."
9208
9209 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9210
9211 * config/pa/pa.c (pa_option_override): Remove trailing comma
9212 from warning.
9213
9214 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9215
9216 PR middle-end/92063
9217 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9218 <case VEC_COND_EXPR>: Return false with *handled = false.
9219 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9220 recursing on the first operand.
9221 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9222 instead of tree_could_trap_p.
9223 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9224
9225 2019-10-11 Jim Wilson <jimw@sifive.com>
9226
9227 PR rtl-optimization/91860
9228 * combine.c (subst): If new_rtx is a constant, also check for
9229 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9230
9231 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9232
9233 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9234 INTVAL when calling store_bit_field.
9235
9236 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9237
9238 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9239 size.
9240
9241 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9242
9243 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9244 vectorizable_live_operation.
9245 (vectorizable_live_operation): Adjust parameters.
9246 * tree-vect-stmts.c (vect_init_vector,
9247 vect_gen_widened_results_half): Fix typo in function comment.
9248 (can_vectorize_live_stmts): Adjust function comment.
9249 Adjust parameters. Adjust call to vectorizable_live_operation.
9250 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9251 (vect_transform_stmt): Adjust function comment. Adjust call to
9252 can_vectorize_live_stmts.
9253 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9254
9255 2019-10-11 Richard Biener <rguenther@suse.de>
9256
9257 PR tree-optimization/90883
9258 PR tree-optimization/91091
9259 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9260 alias-sets both for recording VN table entries and continuing
9261 walking after translating through copies. Handle same-sized
9262 reads from SSA names by returning the plain SSA name.
9263 (eliminate_dom_walker::eliminate_stmt): Properly handle
9264 non-size precision stores in redundant store elimination.
9265
9266 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9267
9268 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9269 (ggc_collect): Dump later to not interfere with release_page dump.
9270 (ggc_trim): New function.
9271 * ggc-none.c (ggc_trim): New.
9272 * ggc.h (ggc_trim): Declare.
9273
9274 2019-10-11 Richard Biener <rguenther@suse.de>
9275
9276 PR tree-optimization/92066
9277 PR tree-optimization/92046
9278 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9279 Fix bogus cost model check.
9280
9281 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9282
9283 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9284 (LANG_HOOKS_DECLS): Add it.
9285 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9286 update comment for omp_is_optional_argument.
9287 * omp-general.c (omp_is_allocatable_or_ptr): New.
9288 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9289 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9290 Fortran's optional arguments and allocatable/pointer scalars
9291 with use_device_addr.
9292
9293 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9294
9295 PR target/77918
9296 * config/s390/2827.md: Add new opcodes.
9297 * config/s390/2964.md: Likewise.
9298 * config/s390/3906.md: Likewise.
9299 * config/s390/8561.md: Likewise.
9300 * config/s390/s390-builtins.def (s390_vfchesb): Use
9301 the new vec_cmpgev4sf_quiet_nocc.
9302 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9303 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9304 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9305 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9306 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9307 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9308 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9309 * config/s390/s390-modes.def (CCSFPS): New mode.
9310 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9311 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9312 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9313 (s390_expand_vec_compare): Use non-signaling patterns where
9314 necessary.
9315 (s390_reverse_condition): Support CCSFPS.
9316 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9317 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9318 (asm_fcmp_op): Likewise.
9319 (*smaxv2df3_vx): Use pattern for quiet comparison.
9320 (*sminv2df3_vx): Likewise.
9321 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9322 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9323 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9324 (vec_cmplt<mode>_quiet_nocc): New expander.
9325 (vec_cmpge<mode>_quiet_nocc): New pattern.
9326 (vec_cmple<mode>_quiet_nocc): New expander.
9327 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9328 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9329 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9330 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9331 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9332 (vec_cmpungt<mode>): New expander.
9333 (vec_cmpunge<mode>): Likewise.
9334 (vec_cmpuneq<mode>): Use quiet patterns.
9335 (vec_cmpltgt<mode>): Allow only on z14+.
9336 (vec_cmpordered<mode>): Use quiet patterns.
9337 (vec_cmpunordered<mode>): Likewise.
9338 (VEC_CMP_EXPAND): Add ungt and unge.
9339
9340 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9341
9342 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9343 parameter.
9344 * lto-streamer-out.c: Include tree-dfa.h.
9345 (output_cfg): Do not use cfun.
9346 (lto_prepare_function_for_streaming): New.
9347 (output_function): Do not push cfun; do not initialize loop optimizer.
9348 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9349 * passes.c (ipa_write_summaries): Use it.
9350 (ipa_write_optimization_summaries): Do not modify bodies.
9351 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9352 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9353 * tree-ssa-dse.c (pass_dse::execute): Update use of
9354 renumber_gimple_stmt_uids.
9355 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9356
9357 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9358
9359 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9360 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9361
9362 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9363
9364 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9365 macros.
9366 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9367 Also define DFP macros for these conditions.
9368 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9369 DEC128_SUBNORMAL_MIN): Do not define.
9370 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9371 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9372
9373 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9374 Sandra Loosemore <sandra@codesourcery.com>
9375
9376 PR middle-end/26241
9377 * doc/lto.texi (IPA): Reference to the IPA passes.
9378 * doc/passes.texi (Pass manager): Add node IPA passes and
9379 description for each IPA pass.
9380
9381 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9382
9383 * ipa-reference.c: Do not include splay-tree.h
9384 (reference_vars_to_consider): Turn to hash map.
9385 (get_static_name, ipa_init, analyze_function, propagate,
9386 stream_out_bitmap, ipa_reference_write_optimization_summary,
9387 ipa_reference_write_optimization_summary): Update.
9388
9389 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9390
9391 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9392
9393 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9394
9395 * config/darwin.c: Lookup Objective C metadata and force indirection
9396 for IVAR refs.
9397
9398 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9399
9400 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9401 addresses.
9402 (mem_operand_gpr): Add check for prefixed addresses.
9403 (mem_operand_ds_form): Add check for prefixed addresses.
9404 (rs6000_legitimate_offset_address_p): If we support prefixed
9405 addresses, check for a 34-bit offset instead of 16-bit.
9406 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9407 Do not allow load/store with update if the address is prefixed.
9408 (rs6000_mode_dependent_address): If we support prefixed
9409 addresses, check for a 34-bit offset instead of 16-bit.
9410
9411 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9412
9413 PR target/77918
9414 * config/s390/vector.md (vcond_comparison_operator): New
9415 predicate.
9416 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9417
9418 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9419
9420 PR 87488
9421 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9422 -D.
9423 * configure.ac (--with-documentation-root-url): New option.
9424 * configure: Regenerate.
9425 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9426 option URL, add it as a new string field of the diagnostic option.
9427 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9428 (print_option_information): If get_option_url is non-NULL, call
9429 it, and if the result is non-NULL, potentially emit an escape
9430 sequence to markup the option text with the resulting URL.
9431 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9432 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9433 example of JSON output.
9434 * opts-diagnostic.h (get_option_url): New decl.
9435 * opts.c (get_option_url): New function.
9436 * toplev.c (general_init): Initialize the get_option_url callback.
9437
9438 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9439
9440 PR 87488
9441 * common.opt (fdiagnostics-urls=): New option.
9442 (diagnostic-url.h): Add SourceInclude.
9443 (diagnostic_url_rule): New enum.
9444 * diagnostic-color.c: Include "diagnostic-url.h".
9445 (diagnostic_urls_enabled_p): New function.
9446 * diagnostic-url.h: New file.
9447 * diagnostic.c: Include "diagnostic-url.h".
9448 (diagnostic_urls_init): New function.
9449 * diagnostic.h (diagnostic_urls_init): New decl.
9450 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9451 -fdiagnostics-urls to the list.
9452 (-fdiagnostics-urls): New option.
9453 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9454 (driver::global_initializations): Call diagnostic_urls_init.
9455 * opts-global.c (init_options_once): Likewise.
9456 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9457 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9458 show_urls.
9459 (pp_begin_url): New function.
9460 (pp_end_url): New function.
9461 (selftest::test_urls): New selftest.
9462 (selftest::pretty_print_c_tests): Call it.
9463 * pretty-print.h (pretty_printer::show_urls): New field.
9464 (pp_begin_url): New decl.
9465 (pp_end_url): New decl.
9466
9467 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9468
9469 PR target/92022
9470 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9471
9472 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9473
9474 PR target/88630
9475 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9476 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9477 also for TARGET_FPU_SH4_300.
9478 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9479 TARGET_SH4_300.
9480 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9481 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9482 (*negsf2_i): Split into ...
9483 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9484 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9485 (**abssf2_i): Split into ...
9486 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9487 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9488 (*negdf2_i): Split into ...
9489 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9490 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9491 (**abssf2_i): Split into ...
9492 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9493
9494 2019-10-10 Richard Biener <rguenther@suse.de>
9495
9496 PR middle-end/92046
9497 * opts.c (finish_options): Do not influence global --params
9498 from options that are adjustable per function.
9499 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9500 Apply --param adjustment based on active cost-model.
9501 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9502 further store-sinking when vectorization or if-conversion
9503 are not enabled.
9504
9505 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9506
9507 PR middle-end/92037
9508 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9509 rather than ggc_alloc_cleared to alloc symbol table.
9510 * toplev.c (general_init): Likewise.
9511 * cgraph.h (symbol_table): Explicitly construct every field.
9512
9513 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9514
9515 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9516 (PF_Z15): ... this.
9517 * config.gcc: Add z15 as option for --with-arch and --with-tune
9518 configure switches.
9519 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9520 error reporting for unsupported builtins.
9521 * config/s390/s390-opts.h (enum processor_type): Rename
9522 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9523 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9524 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9525 Likewise.
9526 * config/s390/s390-builtins.def: Likewise.
9527 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9528 (s390_expand_builtin): Add missing check for unsupported builtins.
9529 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9530 (s390_rtx_costs): Likewise.
9531 (s390_get_sched_attrmask): Rename arch13 to z15.
9532 (s390_get_unit_mask): Likewise.
9533 (s390_is_fpd): Likewise.
9534 (s390_is_fxd): Likewise.
9535 * config/s390/s390.h (enum processor_flags): Likewise.
9536 * config/s390/s390.md: Likewise.
9537 * config/s390/vector.md: Likewise.
9538 * config/s390/vx-builtins.md: Likewise.
9539 * config/s390/s390.opt: Add z15 to processor_type value.
9540
9541 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9542
9543 PR target/91035
9544 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9545 prototype.
9546 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9547 ("split_stack_data", "split_stack_call")
9548 ("split_stack_call_<mode>", "split_stack_cond_call")
9549 ("split_stack_cond_call_<mode>"): Remove.
9550 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9551 insn definition.
9552 * config/s390/s390.c (s390_output_split_stack_data): New function.
9553 (s390_expand_split_stack_prologue): Use the merged expander.
9554
9555 2019-10-09 Martin Sebor <msebor@redhat.com>
9556
9557 PR tree-optimization/90879
9558 * builtins.c (check_access): Avoid using maxbound when null.
9559 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9560 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9561 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9562 conditional.
9563 (get_range_strlen): Overwrite initial maxbound when non-null.
9564 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9565 changes.
9566 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9567 (used_only_for_zero_equality): New function.
9568 (handle_builtin_memcmp): Call it.
9569 (determine_min_objsize): Return an integer instead of tree.
9570 (get_len_or_size, strxcmp_eqz_result): New functions.
9571 (maybe_warn_pointless_strcmp): New function.
9572 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9573 between a longer string and a smaller array.
9574 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9575
9576 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9577
9578 * config/darwin.c (darwin_override_options): Make the check for
9579 Objective-C ABI version more specific for 64bit code.
9580
9581 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9582
9583 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9584 indicate that the new symbol is an indirection.
9585 (machopic_indirect_call_target): Likewise.
9586 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9587 (MACHO_SYMBOL_INDIRECTION_P): New.
9588 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9589
9590 2019-10-08 Jason Merrill <jason@redhat.com>
9591
9592 * doc/invoke.texi: Document -fconcepts-ts.
9593
9594 2019-10-09 Richard Biener <rguenther@suse.de>
9595
9596 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9597 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9598
9599 2019-10-08 Richard Biener <rguenther@suse.de>
9600
9601 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9602 (_stmt_vec_info::force_single_cycle): Likewise.
9603 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9604 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9605 * tree-vect-loop.c (vectorizable_reduction): Set
9606 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9607 (vect_transform_reduction): Use them to remove redundant code.
9608 (vect_transform_cycle_phi): Likewise.
9609
9610 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9611
9612 PR tree-optimization/90836
9613 * match.pd (popcount): New pattern.
9614
9615 2019-10-08 Martin Sebor <msebor@redhat.com>
9616
9617 PR middle-end/92026
9618 PR middle-end/92014
9619 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9620 again once nbytes has been set. Set the access size when not yet set.
9621
9622 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9623
9624 * config/darwin.c (machopic_select_section): Remove dead code for
9625 old Objective-C section selection method, replace with unreachable.
9626
9627 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9628
9629 * config/darwin.c (machopic_indirect_data_reference): Check for
9630 required indirections before making direct access to defined
9631 values.
9632 (machopic_output_indirection): Place the indirected pointes for
9633 required indirections into the non-lazy symbol pointers section.
9634 (darwin_encode_section_info):
9635 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9636 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9637
9638 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9639
9640 PR target/91994
9641 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9642 instead of ALL_SSE_REG to check if function call preserves some
9643 256-bit SSE registers.
9644
9645 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9646
9647 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9648 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9649 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9650
9651 2019-10-08 Richard Biener <rguenther@suse.de>
9652
9653 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9654 (_stmt_vec_info::is_reduc_info): Add.
9655 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9656 (vectorizable_condition): Remove.
9657 (vectorizable_shift): Likewise.
9658 (vectorizable_reduction): Adjust.
9659 (info_for_reduction): New.
9660 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9661 (vect_analyze_scalar_cycles_1): ... here.
9662 (vect_analyze_loop_operations): Adjust.
9663 (needs_fold_left_reduction_p): Simplify for single caller.
9664 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9665 for nested cycles not part of double reductions.
9666 (vect_model_reduction_cost): Pass in the reduction type.
9667 (info_for_reduction): New function.
9668 (vect_create_epilog_for_reduction): Use it, access reduction
9669 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9670 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9671 (vectorize_fold_left_reduction): Remove pointless assert.
9672 (vectorizable_reduction): Analyze the full reduction when
9673 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9674 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9675 stmt code-generation to vectorizable_* in most cases. Verify
9676 code-generation only for cases handled by
9677 vect_transform_reductuon.
9678 (vect_transform_reduction): Use info_for_reduction to get at
9679 reduction meta. Simplify.
9680 (vect_transform_cycle_phi): Likewise.
9681 (vectorizable_live_operation): Likewise.
9682 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9683 at the PHI node for STMT_VINFO_REDUC_TYPE.
9684 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9685 longer necessary code.
9686 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9687 (vectorizable_condition): Likewise. Get at reduction related
9688 info via info_for_reduction.
9689 (vect_analyze_stmt): Adjust.
9690 (vect_transform_stmt): Likewise.
9691 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9692 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9693
9694 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9695
9696 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9697 -fno-fp-int-builtin-inexact default for C2X.
9698
9699 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9700 Richard Biener <rguenther@suse.de>
9701
9702 PR tree-optimization/91532
9703 * tree-if-conv.c: Include tree-ssa-dse.h.
9704 (ifcvt_local_dce): Change param from bb to loop,
9705 and call dse_classify_store.
9706 (tree_if_conversion): Pass loop instead of loop->header as arg
9707 to ifcvt_local_dce.
9708 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9709 (delete_dead_or_redundant_assignment): Remove static qualifier from
9710 declaration, and add prototype in tree-ssa-dse.h.
9711 (dse_store_status): Move to tree-ssa-dse.h.
9712 (dse_classify_store): Remove static qualifier and add new tree param
9713 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9714 * tree-ssa-dse.h: New header.
9715
9716 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9717
9718 * config/darwin.c (machopic_output_indirection): Don't put
9719 hidden symbol indirections into the .data section, use the
9720 non-lazy symbol pointers section as normal.
9721 (darwin_encode_section_info): Record if a symbol is hidden.
9722 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9723 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9724
9725 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9726
9727 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9728 predicates instead of accessing bits directly.
9729 (machopic_indirect_call_target): Likewise.
9730 (machopic_output_indirection): Likewise.
9731 (darwin_encode_section_info): Improve description. Use renamed
9732 symbol flags. Use predicate macros for variables and functions.
9733 * config/darwin.h:
9734 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9735 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9736 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9737 (MACHO_SYMBOL_VARIABLE_P): New.
9738 (MACHO_SYMBOL_DEFINED_P):New.
9739 (MACHO_SYMBOL_STATIC_P): New.
9740 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9741 (SYMBOL_FLAG_SUBT_DEP): New.
9742 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9743
9744 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9745
9746 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9747 (msp430_expand_epilogue): Likewise.
9748 * config/msp430/predicates.md: Likewise.
9749 * config/msp430/msp430.md: Likewise.
9750 Replace blocks of 8 spaces with tabs.
9751
9752 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9753
9754 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9755 * config/msp430/msp430.c (msp430_split_addsi): New.
9756 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9757 a block of C code for splitting addsi.
9758
9759 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9760
9761 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9762 ix86_expand_rounddf_32): Reorder functions.
9763 * config/i386/i386-protos.h: Update.
9764
9765 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9766
9767 * config.in: Regenerate.
9768 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9769 Add new "Yx" constraint.
9770 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9771 function.
9772 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9773 prototype.
9774 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9775 code/data region to be selected in the small memory model.
9776 (msp430_section_attr): Don't warn if the "section" and "lower"
9777 attributes are used together.
9778 (msp430_handle_generic_attribute): Likewise.
9779 (msp430_var_in_low_mem): New function.
9780 (TARGET_ENCODE_SECTION_INFO): Define.
9781 (msp430_encode_section_info): New function.
9782 (gen_prefix): Return early in the small memory model.
9783 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9784 ".lower" prefix if -m{code,data}-region=lower have been passed.
9785 (msp430_output_aligned_decl_common): Emit common symbols when
9786 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9787 set.
9788 (TARGET_ASM_FILE_END): Define.
9789 (msp430_file_end): New function.
9790 (msp430_do_not_relax_short_jumps): Allow relaxation when
9791 function will be in the lower region.
9792 (msp430_op_not_in_high_mem): New function.
9793 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9794 the 'X' operand selector.
9795 Clarify comment for 'x' operand selector.
9796 * config/msp430/msp430.h (LINK_SPEC): Propagate
9797 -m{code,data}-region to the linker via spec function
9798 msp430_propagate_region_opt.
9799 (msp430_propagate_region_opt): New prototype.
9800 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9801 (SYMBOL_FLAG_LOW_MEM): Define.
9802 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9803 selector.
9804 (zero_extendqihi2): Fix operand number used by "%X" selector.
9805 (zero_extendqisi2): Likewise.
9806 (zero_extendhisi2): Likewise.
9807 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9808 (movhi): Likewise.
9809 (addqi3): Likewise.
9810 (addhi3): Likewise.
9811 (addsi3): Likewise.
9812 (addhi3_cy): Likewise.
9813 (addchi4_cy): Likewise.
9814 (subqi3): Likewise.
9815 (subhi3): Likewise.
9816 (subsi3): Likewise.
9817 (bic<mode>3): Likewise.
9818 (and<mode>3): Likewise.
9819 (ior<mode>3): Likewise.
9820 (xor<mode>3): Likewise.
9821 (slli_1): Add missing "%X" operand selector.
9822 (slll_1): Likewise.
9823 (slll_2): Likewise.
9824 (srai_1): Likewise.
9825 (sral_1): Likewise.
9826 (sral_2): Likewise.
9827 (srli_1): Likewise.
9828 (srll_1): Likewise.
9829 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9830 selector.
9831 (cbranchhi4_real): Likewise.
9832 (cbranchqi4_reversed): Likewise.
9833 (cbranchhi4_reversed): Likewise.
9834 (*bitbranch<mode>4): Likewise.
9835 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9836 * config/msp430/msp430.opt (mcode-region=): Set default to
9837 MSP430_REGION_LOWER. Improve docstring.
9838 (mdata-region=): Likewise.
9839 (muse-lower-region-prefix): New option.
9840 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9841 mdata-region=none multilib.
9842 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9843 mdata-region=none multilib.
9844 MULTILIB_EXCEPTIONS: Remove.
9845 MULTILIB_REQUIRED: Define.
9846 * configure: Regenerate.
9847 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9848 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9849 * doc/extend.texi: Clarify comment for {upper,lower,either}
9850 function attributes.
9851 Add separate description for "lower" variable attribute.
9852
9853 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9854
9855 PR target/77918
9856 * optabs-tree.c (vcond_icode_p): New function.
9857 (vcond_eq_icode_p): Likewise.
9858 (expand_vec_cond_expr_p): Use vcond_icode_p and
9859 vcond_eq_icode_p.
9860 * optabs.c (can_vcond_compare_p): New function.
9861 * optabs.h (can_vcond_compare_p): Likewise.
9862
9863 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9864
9865 PR target/77918
9866 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9867 caller passes a non-trapping condition.
9868 (is_gimple_condexpr): Allow trapping conditions.
9869 (is_gimple_condexpr_1): New helper function.
9870 (is_gimple_condexpr_for_cond): New function, acts like old
9871 is_gimple_condexpr.
9872 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9873 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9874 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9875 * gimplify.c (gimplify_cond_expr): Use
9876 is_gimple_condexpr_for_cond.
9877 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9878 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9879 VEC_COND_EXPR.
9880 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9881 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9882 is_gimple_condexpr_for_cond, remove pointless tmp check
9883 (forward_propagate_into_cond): Remove pointless tmp check.
9884
9885 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9886
9887 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9888 match that of other gsi_next_* functions. Adjust the comment.
9889 (gsi_start_nonvirtual_phis): New function.
9890 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9891 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9892
9893 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9894
9895 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9896 setjmp situation here. Fix a verb's ending: "the exact variables or
9897 elements for which there are warnings depends" -> "... depend".
9898
9899 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9900
9901 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9902
9903 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9904
9905 * ipa-prop.c (ipa_vr::nonzero_p): New.
9906 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9907 non-zero range.
9908 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9909 * tree-vrp.c (range_has_numeric_bounds_p): New.
9910 (range_int_cst_p): Use range_has_numeric_bounds_p.
9911 (get_range_op_handler): New.
9912 (supported_types_p): New.
9913 (defined_ranges_p): New.
9914 (drop_undefines_to_varying): New.
9915 (range_fold_binary_symbolics_p): New.
9916 (range_fold_unary_symbolics_p): New.
9917 (range_fold_unary_expr): Extract out into above functions.
9918 (range_fold_binary_expr): Same.
9919 (value_range_base::normalize_addresses): New.
9920 (value_range_base::normalize_symbolics): Normalize addresses.
9921 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9922
9923 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9924
9925 * tree-vrp.c (value_range_base::singleton_p): Use
9926 value_range_base::num_pairs instead of vrp_val_is* to check
9927 if a range has one sub-range.
9928
9929 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9930
9931 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9932 DEF is not a true earlyclobber but is tied to a specific input
9933 operand, and so is effectively earlyclobber wrt inputs that have
9934 different values.
9935 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9936
9937 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9938
9939 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9940 (pod_mode): Mark operators likewise.
9941 (scalar_int_mode): Mark non-default constructors and
9942 operators with CONSTEXPR.
9943 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9944 (fixed_size_mode): Likewise.
9945
9946 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9947
9948 PR target/91994
9949 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9950 and wrap the unspec_volatile in a parallel.
9951 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9952 the unspec_volatile.
9953 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9954 unspec_volatile to be wrapped in a parallel.
9955 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9956 (ix86_add_reg_usage_to_vzerouppers): New functions.
9957 (rest_of_handle_insert_vzeroupper): Use them to add register
9958 usage information to the vzeroupper instructions.
9959
9960 2019-10-07 Richard Biener <rguenther@suse.de>
9961
9962 PR tree-optimization/91975
9963 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9964 handle invariants.
9965
9966 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9967
9968 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9969 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9970
9971 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9972
9973 * config/darwin.c (darwin_override_options): Adjust objective-c
9974 ABI version error messages to avoid punctuation and contracted
9975 negations.
9976
9977 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9978
9979 * ipa-inline.c: Fix type; compute size rather than self_size
9980 for size of caller function.
9981
9982 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9983
9984 PR target/59888
9985 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9986 choose const_data section for constants with relocations.
9987 (machopic_select_section): Pass relocation flag to
9988 darwin_rodata_section ().
9989
9990 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9991
9992 PR tree-optimization/91734
9993 * generic-match-head.c: Include fold-const-call.h.
9994 * match.pd (sqrt(x) cmp c): Check the boundary value and
9995 in case inexact computation of c*c affects comparison of the boundary,
9996 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9997 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9998 for -frounding-math. For c2, try the next smaller or larger floating
9999 point constant depending on comparison code and if it has the same
10000 sqrt as c2, use it instead of c2.
10001
10002 2019-10-04 Martin Sebor <msebor@redhat.com>
10003
10004 PR middle-end/91977
10005 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10006 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10007 uninitialized objects.
10008
10009 2019-10-04 Martin Sebor <msebor@redhat.com>
10010
10011 * builtins.c (compute_objsize): Add an argument.
10012 * tree-object-size.c (addr_object_size): Same.
10013 (compute_builtin_object_size): Same.
10014 * tree-object-size.h (compute_builtin_object): Same.
10015
10016 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10017
10018 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10019
10020 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10021
10022 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10023
10024 2019-10-04 Martin Jambor <mjambor@suse.cz>
10025
10026 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10027 fntype when switching to calling memcpy instead of memset.
10028
10029 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10030
10031 * hash-table.h (hash_table::empty_slow): Don't assign
10032 size_t values to int variables.
10033
10034 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10035
10036 * expr.c (convert_mode_scalar): Remove shadowing local var.
10037 (emit_block_move): Rename local vars.
10038 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10039 (emit_push_insn): Rename local vars.
10040 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10041 shadowing local vars.
10042 (store_constructor): Remove shadowing local vars. Rename local var.
10043 (store_field, expand_cond_expr_using_cmove,
10044 expand_expr_real_2): Remove shadowing local vars.
10045 (expand_expr_real_1,
10046 do_store_flag): Remove shadowing local vars. Rename local vars.
10047
10048 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10049
10050 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10051
10052 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10053
10054 * genmatch.c (commutate): Rename local var.
10055 (lower_cond): Reuse local var.
10056 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10057 dt_operand::gen, dt_operand::gen_gimple_expr,
10058 dt_simplify::gen): Add a param. Rename generated vars.
10059 (decision_tree::insert_operand,
10060 (capture_info::walk_match, capture_info::walk_result,
10061 capture_info::walk_c_expr): Rename local vars.
10062 (expr::gen_transform): Rename generated vars.
10063 Use snprintf. Rename local vars.
10064 (capture::gen_transform, dt_operand::get_name,
10065 dt_operand::gen_opname): Rename generated vars.
10066 (write_predicate): Adjust call to gen_kids.
10067 (parser::get_internal_capture_id): Rename generated vars.
10068 (parser::parse_expr): Rename local vars.
10069 (parser::parse_if): Remove local var.
10070 (parser::parse_pattern, add_operator): Rename local vars.
10071
10072 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10073
10074 * builtins.def (DEF_C2X_BUILTIN): New macro.
10075 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10076 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10077 (strndup): Use DEF_C2X_BUILTIN.
10078 * coretypes.h (enum function_class): Add function_c2x_misc.
10079
10080 2019-10-04 Maya Rashish <coypu@sdf.org>
10081
10082 * ira-color.c (update_costs_from_allocno): Call
10083 ira_init_register_move_cost_if_necessary.
10084
10085 2019-10-04 Jeff Law <law@redhat.com>
10086
10087 * config/h8300/h8300.md (cpymemsi): Disable.
10088 (movmd, movmd_internal_<mode>, movstr, movsd):
10089 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10090 (movmd splitter, movsd splitter): Likewise.
10091
10092 * range-op.cc (range_tests): Avoid two tests when ints and
10093 shorts are the same size.
10094
10095 2019-10-04 Richard Biener <rguenther@suse.de>
10096
10097 PR lto/91968
10098 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10099 BLOCK_VARS.
10100
10101 2019-10-04 Richard Biener <rguenther@suse.de>
10102
10103 PR tree-optimization/91982
10104 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10105 against EXTRACT_LAST_REDUCTION.
10106 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10107
10108 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10109
10110 * range-op.o (value_range_from_overflowed_bounds): Rename from
10111 adjust_overflow_bound.
10112 (value_range_with_overflow): Rename from
10113 create_range_with_overflow.
10114 (create_possibly_reversed_range): Adjusted for above renames.
10115 (operator_*::wi_fold): Same.
10116 (cross_product_operator::wi_cross_productor): Same.
10117
10118 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10119
10120 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10121 -Wshadow=compatible-local): Fix description.
10122 Add an example where -Wshadow=compatible-local does not
10123 warn.
10124
10125 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10126
10127 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10128
10129 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10130 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10131
10132 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10133
10134 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10135 can_move_by_pieces issue.
10136
10137 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10138
10139 PR target/87243
10140 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10141 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10142 is available and the user has not set one on the command line.
10143
10144 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10145
10146 PR target/91769
10147 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10148 instead of REGNO equality check on addr.reg.
10149
10150 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10151
10152 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10153 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10154 * doc/invoke.texi (inline-heuristics-hint-percent,
10155 inline-heuristics-hint-percent-O2): Document.
10156 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10157 hint attribute.
10158 (can_inline_edge_by_limits_p): Use it.
10159
10160 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10161
10162 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10163 to print CONST_DOUBLEs.
10164
10165 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10166
10167 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10168 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10169 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10170
10171 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10172
10173 * Makefile.in (OBJS): Add range.o and range-op.o.
10174 Remove wide-int-range.o.
10175 * function-tests.c (test_ranges): New.
10176 (function_tests_c_tests): Call test_ranges.
10177 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10178 range_fold_unary_expr instead of extract_range_from_unary_expr.
10179 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10180 * range-op.cc: New file.
10181 * range-op.h: New file.
10182 * range.cc: New file.
10183 * range.h: New file.
10184 * selftest.h (range_tests): New prototype.
10185 * ssa.h: Include range.h.
10186 * tree-vrp.c (value_range_base::value_range_base): New
10187 constructors.
10188 (value_range_base::singleton_p): Do not call
10189 ranges_from_anti_range until sure we will need to.
10190 (value_range_base::type): Rename gcc_assert to
10191 gcc_checking_assert.
10192 (vrp_val_is_max): New argument.
10193 (vrp_val_is_min): Same.
10194 (wide_int_range_set_zero_nonzero_bits): Move from
10195 wide-int-range.cc.
10196 (extract_range_into_wide_ints): Remove.
10197 (extract_range_from_multiplicative_op): Remove.
10198 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10199 from extract_range_from_binary_expr.
10200 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10201 from extract_range_from_binary_expr.
10202 (extract_range_from_binary_expr): Remove.
10203 (normalize_for_range_ops): New.
10204 (range_fold_binary_expr): New.
10205 (range_fold_unary_expr): New.
10206 (value_range_base::num_pairs): New.
10207 (value_range_base::lower_bound): New.
10208 (value_range_base::upper_bound): New.
10209 (value_range_base::upper_bound): New.
10210 (value_range_base::contains_p): New.
10211 (value_range_base::invert): New.
10212 (value_range_base::union_): New.
10213 (value_range_base::intersect): New.
10214 (range_compatible_p): New.
10215 (value_range_base::operator==): New.
10216 (determine_value_range_1): Call range_fold_*expr instead of
10217 extract_range_from_*expr.
10218 * tree-vrp.h (class value_range_base): Add new constructors.
10219 Add methods for union_, intersect, operator==, contains_p,
10220 num_pairs, lower_bound, upper_bound, invert.
10221 (vrp_val_is_min): Add handle_pointers argument.
10222 (vrp_val_is_max): Same.
10223 (extract_range_from_unary_expr): Remove.
10224 (extract_range_from_binary_expr): Remove.
10225 (range_fold_unary_expr): New.
10226 (range_fold_binary_expr): New.
10227 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10228 range_fold_binary_expr instead of extract_range_from_binary_expr.
10229 (vr_values::extract_range_basic): Same.
10230 (vr_values::extract_range_from_unary_expr): Call
10231 range_fold_unary_expr instead of extract_range_from_unary_expr.
10232 * wide-int-range.cc: Remove.
10233 * wide-int-range.h: Remove.
10234
10235 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10236
10237 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10238 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10239 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10240 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10241 macro.
10242
10243 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10244
10245 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10246 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10247 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10248 * glimits.h: Likewise.
10249
10250 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10251
10252 PR rtl-optimization/91976
10253 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10254 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10255 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10256
10257 2019-10-02 Martin Sebor <msebor@redhat.com>
10258
10259 PR tree-optimization/80936
10260 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10261
10262 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10263
10264 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10265 instead of reg_class_contents[ALL_REGS].
10266
10267 2019-09-30 Jason Merrill <jason@redhat.com>
10268
10269 Add some hash_map_safe_* functions like vec_safe_*.
10270 * hash-map.h (default_hash_map_size): New variable.
10271 (create_ggc): Use it as default argument.
10272 (hash_map_maybe_create, hash_map_safe_get)
10273 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10274
10275 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10276
10277 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10278 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10279 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10280 (can_inline_edge_by_limits_p): Use it.
10281 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10282 (want_inline_small_function_p): Use O2 bounds.
10283 (edge_badness): LIkewise.
10284 * opts.c (default_options): Add OPT_finline_functions.
10285 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10286 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10287 New parameters.
10288 * doc/invoke.texi (-finline-functions): Update documentation.
10289 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10290 inline-min-speedup-O2): Document.
10291 (early-inlining-insns-O2): Simplify docs.
10292
10293 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10294
10295 PR rtl-optimization/87047
10296 * ifcvt.c (average_cost): New static function. Use it...
10297 (noce_process_if_block): ... here.
10298
10299 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10300
10301 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10302 * config/rs6000/rs6000-string.c (expand_block_move): Add
10303 might_overlap parm.
10304 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10305 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10306
10307 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10308
10309 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10310 (expand_builtin_memcpy): Use might_overlap parm.
10311 (expand_builtin_mempcpy_args): Use might_overlap parm.
10312 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10313 (expand_builtin_memory_copy_args): Add might_overlap parm.
10314 * expr.c (emit_block_move_via_cpymem): Rename to
10315 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10316 or movmem optab as appropriate.
10317 (emit_block_move_hints): Add might_overlap parm, do the right
10318 thing for might_overlap==true.
10319 * expr.h (emit_block_move_hints): Update prototype.
10320
10321 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10322
10323 * tree-eh.h (unsplit_eh_edges): Declare.
10324 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10325 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10326 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10327 (struct store_immediate_info): Add lp_nr field.
10328 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10329 initialize lp_nr with it.
10330 (struct merged_store_group): Add lp_nr and only_constants fields.
10331 (merged_store_group::merged_store_group): Initialize them.
10332 (merged_store_group::can_be_merged_into): Deal with them.
10333 (pass_store_merging): Rename terminate_and_release_chain into
10334 terminate_and_process_chain.
10335 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10336 renaming and remove useless assertions.
10337 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10338 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10339 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10340 instead of always recomputing it and compare lp_nr.
10341 (imm_store_chain_info::output_merged_store): If the group is in an
10342 active EH region, register new stores if they can throw. Moreover,
10343 if the insertion has created new basic blocks, adjust the PHI nodes
10344 of the post landing pad.
10345 (imm_store_chain_info::output_merged_stores): If the original stores
10346 are in an active EH region, deregister them.
10347 (lhs_valid_for_store_merging_p): Prettify.
10348 (adjust_bit_pos): New function extracted from...
10349 (mem_valid_for_store_merging): ...here. Use it for the base address
10350 and also for the offset if it is the addition of a constant.
10351 (lp_nr_for_store): New function.
10352 (pass_store_merging::process_store): Change return type to bool.
10353 Call lp_nr_for_store to initialize the store info. Propagate the
10354 return status of various called functions to the return value.
10355 (store_valid_for_store_merging_p): New predicate.
10356 (enum basic_block_status): New enumeration.
10357 (get_status_for_store_merging): New function.
10358 (pass_store_merging::execute): If the function can throw and catch
10359 non-call exceptions, unsplit the EH edges on entry and clean up the
10360 CFG on exit if something changed. Call get_status_for_store_merging
10361 for every basic block and keep the chains open across basic blocks
10362 when possible. Terminate and process open chains at the end, if any.
10363
10364 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10365
10366 * reginfo.c (globalize_reg): Fix shadowed variable in
10367 function_abis walk.
10368
10369 2019-10-02 Martin Jambor <mjambor@suse.cz>
10370
10371 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10372 do not compute some stuff when set.
10373 (cgraph_node::create_edge): Likewise.
10374 (cgraph_node::create_indirect_edge): Renamed last parameter to
10375 coning_p and flipped its meaning, don't even calculate
10376 inline_failed when set.
10377 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10378 (symbol_table::::create_edge): Likewise.
10379 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10380 the default value.
10381 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10382 call graph edge creating functions.
10383
10384 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10385
10386 PR c++/91222
10387 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10388 namespace types.
10389
10390 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10391
10392 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10393
10394 2019-10-02 Richard Biener <rguenther@suse.de>
10395
10396 * tree-vectorizer.h (vect_transform_reduction): Declare.
10397 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10398 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10399 stmt transform to ...
10400 (vect_transform_reduction): ... this.
10401
10402 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10403
10404 * omp-low.c (lower_omp_target): Dereference optional argument
10405 to work with the right pointer.
10406
10407 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10408
10409 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10410 false.
10411 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10412 * langhooks.h (omp_is_optional_argument): New hook.
10413 * omp-general.c (omp_is_optional_argument): New.
10414 * omp-general.h (omp_is_optional_argument): New declaration.
10415 * omp-low.c (lower_omp_target): Create temporary for received value
10416 and take the address for new_var if the original variable was a
10417 DECL_BY_REFERENCE. Use size of referenced object when a
10418 pass-by-reference optional argument used as argument to firstprivate.
10419
10420 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10421
10422 PR tree-optimization/91940
10423 * tree-vect-patterns.c: Include tree-vector-builder.h and
10424 vec-perm-indices.h.
10425 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10426 unpromoting the argument back to uint16_t, or by converting into a
10427 rotate, or into shifts plus ior.
10428
10429 2019-10-02 Richard Biener <rguenther@suse.de>
10430
10431 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10432 New.
10433 (vect_transform_cycle_phi): Declare.
10434 * tree-vect-stmts.c (vect_transform_stmt): Call
10435 vect_transform_cycle_phi.
10436 * tree-vect-loop.c (vectorizable_reduction): Split out
10437 PHI transformation stage to ...
10438 (vect_transform_cycle_phi): ... here.
10439
10440 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10441
10442 PR middle-end/91957
10443 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10444 eliminable registers.
10445 (make_hard_regno_live): Likewise, and don't make them live.
10446
10447 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10448
10449 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10450 Call pp_emit_prefix.
10451 (layout::print_source_line): Likewise.
10452 (layout::start_annotation_line): Likewise.
10453 (diagnostic_show_locus): Remove call to temporarily clear the
10454 prefix.
10455 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10456 interaction of pp_set_prefix with rulers and fix-it hints.
10457 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10458 prefix when calling diagnostic_show_locus, rather than destroying
10459 it afterwards.
10460 (print_parseable_fixits): Temporarily clear prefix.
10461 * pretty-print.c (pp_format): Save and restore line_length, rather
10462 than assuming it is zero.
10463 (pp_output_formatted_text): Remove assertion that line_length is
10464 zero.
10465
10466 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10467
10468 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10469 Rename to ...
10470 (nonoverlapping_refs_since_match_p): ... this; handle also
10471 ARRAY_REFs.
10472 (alias_stats): Update stats.
10473 (dump_alias_stats): Likewise.
10474 (cheap_array_ref_low_bound): New function.
10475 (aliasing_matching_component_refs_p): Add partial_overlap
10476 argument;
10477 pass it to nonoverlapping_refs_since_match_p.
10478 (aliasing_component_refs_walk): Update call of
10479 aliasing_matching_component_refs_p
10480 (nonoverlapping_array_refs_p): New function.
10481 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10482 indirect_refs_may_alias_p): Update calls of
10483 nonoverlapping_refs_since_match_p.
10484
10485 2019-10-01 Maya Rashish <coypu@sdf.org>
10486
10487 PR target/85401
10488 * ira-color.c (allocno_copy_cost_saving): Call
10489 ira_init_register_move_cost_if_necessary.
10490
10491 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10492
10493 * Makefile.in (gnat_install_lib): New variable.
10494 * configure.ac: Substitute it.
10495 * configure: Regenerate.
10496
10497 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10498
10499 PR lto/91222
10500 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10501 is matched with non-C++ type
10502
10503 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10504
10505 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10506 after local CSE.
10507
10508 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10509
10510 * doc/invoke.texi (early-inlining-insns-O2): Document.
10511 (early-inlining-insns): Update.
10512 * params.def (early-inlining-insns-O2): New bound.
10513 (early-inlining-insns): Update docs.
10514 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10515
10516 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10517
10518 PR target/88562
10519 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10520 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10521 a memory access insn.
10522
10523 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10524
10525 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10526 vpmsumd.
10527
10528 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10529
10530 PR target/77918
10531 * config/s390/s390.c (s390_expand_vec_compare): Use
10532 gen_vec_cmpordered and gen_vec_cmpunordered.
10533 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10534 vec_unordered): Delete.
10535 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10536 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10537 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10538 (vec_cmp<code>): Generic dispatcher.
10539
10540 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10541
10542 PR target/77918
10543 * config/s390/vector.md (V_HW): Add V1TI in order to make
10544 vcond$a$b generate vcondv1tiv1tf.
10545
10546 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10547
10548 PR rtl-optimization/91948
10549 * ira-build.c (ira_create_allocno): Initialize
10550 ALLOCNO_CROSSED_CALLS_ABIS.
10551 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10552 than regno to ira_need_caller_save_p.
10553
10554 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10555
10556 * config/i386/i386-options.c
10557 (ix86_recompute_optlev_based_flags): New, moved out of...
10558 (ix86_option_override_internal): ... this. Call it.
10559 (ix86_override_options_after_change): Call it here too.
10560
10561 PR debug/91507
10562 * dwarf2out.c (override_type_for_decl_p): New.
10563 (gen_variable_die): Use it.
10564
10565 2019-10-01 Richard Biener <rguenther@suse.de>
10566
10567 * tree-vect-loop.c (vectorizable_reduction): Move variables
10568 to where they are used.
10569
10570 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10571
10572 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10573 (build_def_use): Use PC instead of CC0 in a comment.
10574
10575 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10576
10577 * rtl.def (CLOBBER_HIGH): Delete.
10578 * doc/rtl.texi (clobber_high): Remove documentation.
10579 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10580 (reg_is_clobbered_by_clobber_high): Delete.
10581 (gen_hard_reg_clobber_high): Likewise.
10582 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10583 * cfgexpand.c (expand_gimple_stmt): Likewise.
10584 * combine-stack-adj.c (single_set_for_csa): Likewise.
10585 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10586 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10587 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10588 * cse.c (invalidate_reg): Remove clobber_high parameter.
10589 (invalidate): Update call accordingly.
10590 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10591 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10592 (count_reg_usage, insn_live_p): Likewise.
10593 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10594 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10595 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10596 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10597 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10598 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10599 (mark_nonreg_stores_2): Likewise.
10600 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10601 (df_get_call_refs): Likewise.
10602 * dwarf2out.c (mem_loc_descriptor): Likewise.
10603 * emit-rtl.c (verify_rtx_sharing): Likewise.
10604 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10605 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10606 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10607 * genemit.c (gen_exp, gen_insn): Likewise.
10608 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10609 * haifa-sched.c (haifa_classify_rtx): Likewise.
10610 * ira-build.c (create_insn_allocnos): Likewise.
10611 * ira-costs.c (scan_one_insn): Likewise.
10612 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10613 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10614 * jump.c (mark_jump_label_1): Likewise.
10615 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10616 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10617 handling.
10618 (mark_not_eliminable): Likewise.
10619 * lra-lives.c (process_bb_lives): Likewise.
10620 * lra.c (new_insn_reg): Remove clobber_high parameter.
10621 (collect_non_operand_hard_regs): Likewise. Update call to new
10622 insn_reg. Remove CLOBBER_HIGH handling.
10623 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10624 to collect_non_operand_hard_regs.
10625 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10626 Update call to new_insn_reg.
10627 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10628 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10629 (move2add_note_store): Likewise.
10630 * print-rtl.c (print_pattern): Likewise.
10631 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10632 (if_test_bypass_p): Likewise.
10633 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10634 * reginfo.c (reg_scan_mark_refs): Likewise.
10635 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10636 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10637 (forget_old_reloads_1): Likewise.
10638 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10639 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10640 (dbr_schedule): Likewise.
10641 * resource.c (update_live_status, mark_referenced_resources)
10642 (mark_set_resources): Likewise.
10643 * rtl.c (copy_rtx): Likewise.
10644 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10645 (note_pattern_stores): Likewise.
10646 (reg_is_clobbered_by_clobber_high): Delete.
10647 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10648 CLOBBER_HIGH handling.
10649
10650 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10651
10652 PR target/91452
10653 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10654 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10655 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10656 Handle ARM_PCS_TLSDESC.
10657 (aarch64_tlsdesc_abi_id): New function.
10658 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10659 rtx instead of a list of clobbers and clobber_highs.
10660 (tlsdesc_small_<mode>): Update accordingly.
10661
10662 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10663
10664 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10665 extra callee_abi argument.
10666 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10667 Insert a CALLEE_ABI unspec into the call pattern as the second
10668 element in the PARALLEL.
10669 (aarch64_simd_call_p): Delete.
10670 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10671 the new CALLEE_ABI element of the PARALLEL.
10672 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10673 from the function type, if given.
10674 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10675 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10676 when passed the function_arg_info end marker.
10677 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10678 final argument of gen_sibcall.
10679 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10680 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10681 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10682 pattern.
10683 (call_value): Likewise operand 3.
10684 (sibcall): Likewise operand 2. Place the unspec before rather than
10685 after the return.
10686 (sibcall_value): Likewise operand 3.
10687 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10688 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10689 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10690 constraint strings.
10691 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10692
10693 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10694
10695 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10696 choose_hard_reg_mode.
10697 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10698
10699 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10700
10701 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10702 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10703 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10704
10705 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10706
10707 * diagnostic-show-locus.c (line_label::line_label): Initialize
10708 m_has_vbar.
10709 (line_label::comparator): Reverse the sort order by m_state_idx,
10710 so that when the list is walked backwards the labels appear in
10711 order of insertion into the rich_location.
10712 (line_label::m_has_vbar): New field.
10713 (layout::print_any_labels): When dealing with multiple labels at
10714 the same line and column, only print vertical bars for the one
10715 with the highest label_line.
10716 (selftest::test_one_liner_labels): Update test for multiple labels
10717 to expect the labels to be in the order of insertion into the
10718 rich_location. Add a test for many such labels, where the column
10719 numbers are out-of-order relative to the insertion order.
10720
10721 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10722
10723 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10724 (ix86_frame::expensive_count): Likewise.
10725 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10726 of use_fast_prologue_epilogue robust against incidental changes
10727 in function size.
10728
10729 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10730
10731 PR target/77918
10732 * config/s390/vector.md (vec_unordered<mode>): Call
10733 gen_vec_ordered<mode>.
10734
10735 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10736
10737 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10738 New pattern for ASRD.
10739 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10740 * internal-fn.def (IFN_DIV_POW2): New internal function.
10741 * optabs.def (sdiv_pow2_optab): New optab.
10742 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10743 Modify pattern to support new operation.
10744 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10745 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10746 Document new target selector.
10747
10748 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10749
10750 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10751 to test whether we're compiling a vector PCS function and to test
10752 whether the function needs to save a particular register.
10753 Remove the vector PCS handling of df_set_regs_ever_live.
10754 (aarch64_components_for_bb): Use crtl->abi to test whether
10755 the function needs to save a particular register.
10756 (aarch64_process_components): Use crtl->abi to test whether
10757 we're compiling a vector PCS function.
10758 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10759 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10760
10761 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10762
10763 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10764 Delete.
10765 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10766 whether the block calls a function that clobbers more registers
10767 than the current function is allowed to.
10768 (aarch64_use_simple_return_insn_p): Delete.
10769 * config/aarch64/aarch64.md (simple_return): Remove condition.
10770
10771 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10772
10773 * function-abi.h (function_abi_aggregator): New class.
10774 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10775 function.
10776 * ira.c (update_equiv_regs_prescan): New function. Call
10777 set_paradoxical_subreg here rather than...
10778 (update_equiv_regs): ...here.
10779 (ira): Call update_equiv_regs_prescan.
10780
10781 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10782
10783 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10784 IN_TARGET_CODE.
10785 (call_used_or_fixed_regs): Likewise.
10786 (call_used_or_fixed_reg_p): Likewise.
10787 * reginfo.c (regs_invalidated_by_call): New macro.
10788
10789 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10790
10791 * shrink-wrap.c: Include function-abi.h.
10792 (requires_stack_frame_p): Use crtl->abi to test whether the
10793 current function can use a register without saving it first.
10794
10795 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10796
10797 * sel-sched-ir.h (_def::crosses_call): Replace with...
10798 (_def::crossed_call_abis): ..this new field.
10799 (def_list_add): Take a mask of ABIs instead of a crosses_call
10800 boolean.
10801 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10802 of _def accordingly.
10803 * sel-sched.c: Include function-abi.h.
10804 (hard_regs_data::regs_for_call_clobbered): Delete.
10805 (reg_rename::crosses_call): Replace with...
10806 (reg_rename::crossed_call_abis): ...this new field.
10807 (fur_static_params::crosses_call): Replace with...
10808 (fur_static_params::crossed_call_abis): ...this new field.
10809 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10810 (init_hard_regs_data): Use crtl->abi to test which registers the
10811 current function would need to save before it uses them.
10812 (mark_unavailable_hard_regs): Update handling of call-clobbered
10813 registers, using call_clobbers_in_region to find out which registers
10814 might be call-clobbered (but without taking -fipa-ra into account
10815 for now). Remove separate handling of partially call-clobbered
10816 registers.
10817 (verify_target_availability): Use crossed_call_abis instead of
10818 crosses_call.
10819 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10820 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10821
10822 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10823
10824 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10825 function to test whether a register is fully or partly clobbered.
10826
10827 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10828
10829 * rtlanal.c: Include function-abi.h.
10830 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10831 function and clobbers_reg_p to test whether the register
10832 is call-clobbered.
10833 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10834 to get the ABI of the called function and full_reg_clobbers to
10835 get the set of fully call-clobbered registers. Warn about the
10836 pitfalls of using this mode.
10837
10838 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10839
10840 * reload.c: Include function-abi.h.
10841 (find_equiv_reg): Use clobbers_reg_p to test whether either
10842 of the equivalent registers is clobbered by a call.
10843 * reload1.c: Include function-abi.h.
10844 (reg_reloaded_call_part_clobbered): Delete.
10845 (reload): Use crtl->abi to test which registers would need
10846 saving in the prologue before use.
10847 (find_reg): Likewise.
10848 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10849 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10850 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10851
10852 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10853
10854 * regrename.h (du_head::call_clobber_mask): New field.
10855 (du_head::need_caller_save_reg): Replace with...
10856 (du_head::call_abis): ...this new field.
10857 * regrename.c: Include function-abi.h.
10858 (call_clobbered_in_chain_p): New function.
10859 (check_new_reg_p): Use crtl->abi when deciding whether a register
10860 is free for use after RA. Use call_clobbered_in_chain_p to test
10861 whether a candidate register would be clobbered by a call.
10862 (find_rename_reg): Don't add call-clobber conflicts here.
10863 (rename_chains): Check call_abis instead of need_caller_save_reg.
10864 (merge_chains): Update for changes to du_head.
10865 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10866 target. Record the ABI identifier in call_abis and the set of
10867 fully or partially clobbered registers in call_clobber_mask.
10868 Add fully-clobbered registers to hard_conflicts here rather
10869 than in find_rename_reg.
10870 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10871 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10872 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10873 function-abi.h.
10874 * config/c6x/c6x.c: Likewise.
10875
10876 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10877
10878 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10879 mode of the register when deciding whether it is no longer
10880 available after a call.
10881
10882 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10883
10884 * recog.c: Include function-abi.h.
10885 (peep2_find_free_register): Use crtl->abi when deciding whether
10886 a register is free for use after RA.
10887
10888 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10889
10890 * postreload-gcse.c: Include regs.h and function-abi.h.
10891 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10892 call insn target. Conservatively assume that partially-clobbered
10893 registers are altered.
10894
10895 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10896
10897 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10898 when deciding whether a register is free for use after RA.
10899 (reload_combine): Remove unnecessary use of fixed_reg_set.
10900 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10901 call insn target. Use reg_mode when testing whether a register
10902 is no longer available.
10903
10904 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10905
10906 * target.def (return_call_with_max_clobbers): Delete.
10907 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10908 * doc/tm.texi: Regenerate.
10909 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10910 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10911 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10912 (lra_reg::call_insn): Delete.
10913 * lra.c: Include function-abi.h.
10914 (initialize_lra_reg_info_element): Don't initialize the fields above.
10915 (lra): Use crtl->abi to test whether the current function needs to
10916 save a register in the prologue. Remove special pre-inheritance
10917 lra_create_live_ranges pass for flag_ipa_ra.
10918 * lra-assigns.c: Include function-abi.h
10919 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10920 function needs to save a register in the prologue.
10921 (lra_assign): Assert that registers aren't allocated to a
10922 conflicting register, rather than checking only for overlaps
10923 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10924 and for registers that are not live across a call.
10925 * lra-constraints.c (last_call_for_abi): New variable.
10926 (full_and_partial_call_clobbers): Likewise.
10927 (setup_next_usage_insn): Remove the register from
10928 full_and_partial_call_clobbers.
10929 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10930 whether the register needs a caller save.
10931 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10932 of call_used_or_fixed_regs.
10933 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10934 full_and_partial_call_clobbers.
10935 * lra-lives.c (check_pseudos_live_through_calls): Replace
10936 last_call_used_reg_set and call_insn arguments with an abi argument.
10937 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10938 as the set of conflicting registers.
10939 (calls_have_same_clobbers_p): Delete.
10940 (process_bb_lives): Track the ABI of the last call instead of an
10941 insn/HARD_REG_SET pair. Update calls to
10942 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10943 the set of registers that could be clobbered by an EH edge.
10944 Include partially-clobbered as well as fully-clobbered registers.
10945 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10946 * lra-remat.c: Include function-abi.h.
10947 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10948 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10949 registers and bitmap_view to combine them into dead_regs.
10950 (call_used_input_regno_present_p): Take a function_abi argument
10951 and use it to test whether a register is call-clobbered.
10952 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10953 call insn target. Update tje call to call_used_input_regno_present_p.
10954 (do_remat): Likewise.
10955 (lra_remat): Remove the initialization of call_used_regs_arr_len
10956 and call_used_regs_arr.
10957
10958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10959
10960 * loop-iv.c: Include regs.h and function-abi.h.
10961 (simplify_using_initial_values): Use insn_callee_abi to get the
10962 ABI of the call insn target. Conservatively assume that
10963 partially-clobbered registers are altered.
10964
10965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10966
10967 * function-abi.h (call_clobbers_in_region): Declare.
10968 (call_clobbered_in_region_p): New function.
10969 * function-abi.cc (call_clobbers_in_region): Likewise.
10970 * ira-int.h: Include function-abi.h.
10971 (ira_allocno::crossed_calls_abis): New field.
10972 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10973 (ira_need_caller_save_regs): New function.
10974 (ira_need_caller_save_p): Likewise.
10975 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10976 of call_used_or_fixed_regs.
10977 (do_reload): Use crtl->abi to test whether the current function
10978 needs to save a register in the prologue. Count registers that
10979 need to be saved rather than registers that don't.
10980 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10981 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10982 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10983 (propagate_some_info_from_allocno): Likewise.
10984 (copy_info_to_removed_store_destinations): Likewise.
10985 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10986 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10987 (ira_build): Use ira_need_caller_save_regs instead of
10988 call_used_or_fixed_regs.
10989 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10990 whether the current function would need to save a register
10991 before using it.
10992 (calculate_spill_cost): Likewise.
10993 (allocno_reload_assign): Use ira_need_caller_save_regs and
10994 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10995 * ira-conflicts.c (ira_build_conflicts): Use
10996 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10997 as the set of call-clobbered registers. Remove the
10998 call_used_or_fixed_regs mask from the calculation of
10999 temp_hard_reg_set and mask its use instead. Remove special
11000 handling of partially-clobbered registers.
11001 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11002 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11003 calculate the set of conflicting registers for calls that
11004 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11005 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11006 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11007 Use eh_edge_abi to calculate the set of registers that could
11008 be clobbered by an EH edge. Include partially-clobbered as
11009 well as fully-clobbered registers.
11010
11011 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11012
11013 * haifa-sched.c: Include function-abi.h.
11014 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11015 the function would need to save a register before using it.
11016
11017 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11018
11019 * gcse.c: Include function-abi.h.
11020 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11021 the call insn target. Invalidate partially call-clobbered
11022 registers as well as fully call-clobbered ones.
11023
11024 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11025
11026 * function.c (aggregate_value_p): Work out which ABI the
11027 function is using before testing which registers are at least
11028 partly preserved by a call.
11029
11030 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11031
11032 * early-remat.c: Include regs.h and function-abi.h.
11033 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11034 registers here.
11035 (early_remat::restrict_remat_for_unavail_regs): New function.
11036 (early_remat::restrict_remat_for_call): Likewise.
11037 (early_remat::process_block): Before calling emit_remat_insns
11038 for a previous call in the block, invalidate any candidates
11039 that would clobber call-preserved registers.
11040 (early_remat::emit_remat_insns_for_block): Likewise for the
11041 final call in a block. Do the same thing for live-in registers
11042 when calling emit_remat_insns at the head of a block.
11043
11044 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11045
11046 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11047 whether the current function needs to save at least part of a
11048 register before using it.
11049 (df_get_exit_block_use_set): Likewise for epilogue restores.
11050
11051 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11052
11053 * df-problems.c: Include regs.h and function-abi.h.
11054 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11055 sparse_invalidated_by_eh and dense_invalidated_by_call to
11056 dense_invalidated_by_eh.
11057 (df_print_bb_index): Update accordingly.
11058 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11059 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11060 that are clobbered by an EH edge. Clobber partially-clobbered
11061 registers as well as fully-clobbered ones.
11062 (df_md_confluence_n): Likewise.
11063 (df_rd_local_compute): Likewise. Update for changes to
11064 df_rd_problem_data.
11065 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11066 of registers that are clobbered by an EH edge. Includde partially-
11067 clobbered registers as well as fully-clobbered ones.
11068
11069 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11070
11071 * cselib.c (cselib_process_insn): If we know what mode a
11072 register was set in, check whether it is clobbered in that
11073 mode by a call. Only fall back to reg_raw_mode if that fails.
11074
11075 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11076
11077 * cse.c: Include regs.h and function-abi.h.
11078 (invalidate_for_call): Take the call insn as an argument.
11079 Use insn_callee_abi to get the ABI of the call and invalidate
11080 partially clobbered registers as well as fully clobbered ones.
11081 (cse_insn): Update call accordingly.
11082
11083 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11084
11085 * combine.c: Include function-abi.h.
11086 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11087 of the target of call insns. Invalidate partially-clobbered
11088 registers as well as fully-clobbered ones.
11089
11090 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11091
11092 * cfgloopanal.c: Include regs.h and function-abi.h.
11093 (init_set_costs): Use default_function_abi to test whether
11094 a general register is call-clobbered.
11095
11096 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11097
11098 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11099 instead of the call-clobbered sets.
11100
11101 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11102
11103 * caller-save.c (setup_save_areas): Remove redundant |s of
11104 fixed_reg_set.
11105 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11106 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11107 value is useful.
11108
11109 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11110
11111 * rtl.h (predefined_function_abi): Declare.
11112 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11113 instead of a boolean call_save flag.
11114 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11115 accordingly.
11116 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11117 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11118 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11119 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11120 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11121 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11122 * reginfo.c (init_reg_modes_target): Likewise.
11123 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11124 instead of a boolean call_save flag.
11125 * targhooks.c: Include function-abi.h.
11126 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11127 using eh_edge_abi to choose the mode.
11128
11129 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11130
11131 * target.def (hard_regno_call_part_clobbered): Take an ABI
11132 identifier instead of an rtx_insn.
11133 * doc/tm.texi: Regenerate.
11134 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11135 (hook_bool_uint_uint_mode_false): New function.
11136 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11137 (hook_bool_uint_uint_mode_false): New function.
11138 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11139 Take an ABI identifier instead of an rtx_insn.
11140 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11141 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11142 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11143 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11144 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11145 Likewise.
11146 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11147 * cselib.c: Include function-abi.h.
11148 (cselib_process_insn): Update call to
11149 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11150 to get the appropriate ABI identifier.
11151 * function-abi.cc (predefined_function_abi::initialize): Update call
11152 to targetm.hard_regno_call_part_clobbered.
11153 * ira-conflicts.c (ira_build_conflicts): Likewise.
11154 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11155 * lra-constraints.c: Include function-abi.h.
11156 (need_for_call_save_p): Update call to
11157 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11158 to get the appropriate ABI identifier.
11159 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11160 * regcprop.c (copyprop_hardreg_forward_1): Update call
11161 to targetm.hard_regno_call_part_clobbered.
11162 * reginfo.c (choose_hard_reg_mode): Likewise.
11163 * regrename.c (check_new_reg_p): Likewise.
11164 * reload.c (find_equiv_reg): Likewise.
11165 * reload1.c (emit_reload_insns): Likewise.
11166 * sched-deps.c: Include function-abi.h.
11167 (deps_analyze_insn): Update call to
11168 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11169 to get the appropriate ABI identifier.
11170 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11171 call to targetm.hard_regno_call_part_clobbered.
11172 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11173
11174 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11175
11176 * config/i386/i386.c: Include function-abi.h.
11177 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11178 if they preserve some 256-bit or 512-bit SSE registers.
11179
11180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11181
11182 * target.def (insn_callee_abi): New hook.
11183 (remove_extra_call_preserved_regs): Delete.
11184 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11185 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11186 * doc/tm.texi: Regenerate.
11187 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11188 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11189 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11190 insn argument.
11191 (aarch64_remove_extra_call_preserved_regs): Delete.
11192 (aarch64_insn_callee_abi): New function.
11193 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11194 (TARGET_INSN_CALLEE_ABI): New macro.
11195 * rtl.h (get_call_fndecl): Declare.
11196 (cgraph_rtl_info): Fix formatting. Tweak comment for
11197 function_used_regs. Remove function_used_regs_valid.
11198 * rtlanal.c (get_call_fndecl): Moved from final.c
11199 * function-abi.h (insn_callee_abi): Declare.
11200 (target_function_abi_info): Mention insn_callee_abi.
11201 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11202 way to get_call_reg_set_usage did.
11203 (insn_callee_abi): New function.
11204 * regs.h (get_call_reg_set_usage): Delete.
11205 * final.c: Include function-abi.h.
11206 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11207 function_used_regs before the main loop rather than afterwards.
11208 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11209 if function_used_regs ends up not being useful.
11210 (get_call_fndecl): Move to rtlanal.c
11211 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11212 * caller-save.c: Include function-abi.h.
11213 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11214 instead of get_call_reg_set_usage.
11215 * cfgcleanup.c: Include function-abi.h.
11216 (old_insns_match_p): Use insn_callee_abi instead of
11217 get_call_reg_set_usage.
11218 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11219 a tree.
11220 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11221 function_used_regs.
11222 * df-scan.c: Include function-abi.h.
11223 (df_get_call_refs): Use insn_callee_abi instead of
11224 get_call_reg_set_usage.
11225 * ira-lives.c: Include function-abi.h.
11226 (process_bb_node_lives): Use insn_callee_abi instead of
11227 get_call_reg_set_usage.
11228 * lra-lives.c: Include function-abi.h.
11229 (process_bb_lives): Use insn_callee_abi instead of
11230 get_call_reg_set_usage.
11231 * postreload.c: Include function-abi.h.
11232 (reload_combine): Use insn_callee_abi instead of
11233 get_call_reg_set_usage.
11234 * regcprop.c: Include function-abi.h.
11235 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11236 get_call_reg_set_usage.
11237 * resource.c: Include function-abi.h.
11238 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11239 instead of get_call_reg_set_usage.
11240 * var-tracking.c: Include function-abi.h.
11241 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11242 get_call_reg_set_usage.
11243
11244 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11245
11246 * target.def (fntype_abi): New target hook.
11247 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11248 * doc/tm.texi: Regenerate.
11249 * target.h (predefined_function_abi): Declare.
11250 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11251 if defined.
11252 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11253 * config/aarch64/aarch64.c: Include function-abi.h.
11254 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11255 (TARGET_FNTYPE_ABI): Define.
11256
11257 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11258
11259 * Makefile.in (OBJS): Add function-abi.o.
11260 (GTFILES): Add function-abi.h.
11261 * function-abi.cc: New file.
11262 * function-abi.h: Likewise.
11263 * emit-rtl.h (rtl_data::abi): New field.
11264 * function.c: Include function-abi.h.
11265 (prepare_function_start): Initialize crtl->abi.
11266 * read-rtl-function.c: Include regs.h and function-abi.h.
11267 (read_rtl_function_body): Initialize crtl->abi.
11268 (read_rtl_function_body_from_file_range): Likewise.
11269 * reginfo.c: Include function-abi.h.
11270 (init_reg_sets_1): Initialize default_function_abi.
11271 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11272 when making a register global.
11273 * target-globals.h (this_target_function_abi_info): Declare.
11274 (target_globals::function_abi_info): New field.
11275 (restore_target_globals): Copy it.
11276 * target-globals.c: Include function-abi.h.
11277 (default_target_globals): Initialize the function_abi_info field.
11278 (target_globals): Allocate it.
11279 (save_target_globals): Free it.
11280
11281 2019-09-30 Nick Clifton <nickc@redhat.com>
11282
11283 PR target/85978
11284 * config/frv/frv.c (frv_register_move_cost): Add break statements
11285 to avoid falling through to the wrong cases. Tidy code.
11286
11287 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11288
11289 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11290 For multi-registers modes, test how big each register part is.
11291
11292 2019-09-30 Nick Clifton <nickc@redhat.com>
11293
11294 PR target/59205
11295 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11296 (TARGET_ASM_SELECT_SECTION): Remove definition.
11297 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11298
11299 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11300
11301 * emit-rtl.c (init_raw_REG): New function.
11302 (gen_raw_REG): Use init_raw_REG.
11303 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11304 macros.
11305 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11306 * rtl.h (rtx_init): New function.
11307 (rtx_alloca): New function.
11308 (init_raw_REG): New function.
11309 (alloca_raw_REG): New macro.
11310
11311 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11312
11313 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11314 (pcrel_local_address): Replace pcrel_address predicate, use the
11315 new function address_to_insn_form.
11316 (pcrel_external_address): Replace with new implementation using
11317 address_to_insn_form..
11318 (prefixed_mem_operand): Delete predicate which is now unused.
11319 (pcrel_external_mem_operand): Delete predicate which is now
11320 unused.
11321 * config/rs6000/rs6000-protos.h (enum insn_form): New
11322 enumeration.
11323 (enum non_prefixed_form): New enumeration.
11324 (address_to_insn_form): New declaration.
11325 (prefixed_load_p): New declaration.
11326 (prefixed_store_p): New declaration.
11327 (prefixed_paddi_p): New declaration.
11328 (rs6000_asm_output_opcode): New declaration.
11329 (rs6000_final_prescan_insn): Move declaration and update calling
11330 signature.
11331 (address_is_prefixed): New helper inline function.
11332 * config/rs6000/rs6000.c(print_operand_address): Check for either
11333 PC-relative local symbols or PC-relative external symbols.
11334 (rs6000_emit_move): Support loading PC-relative addresses.
11335 (mode_supports_prefixed_address_p): Delete, no longer used.
11336 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11337 (address_to_insn_form): New function to decode an address format.
11338 (reg_to_non_prefixed): New function to identify what the
11339 non-prefixed memory instruction format is for a register.
11340 (prefixed_load_p): New function to identify prefixed loads.
11341 (prefixed_store_p): New function to identify prefixed stores.
11342 (prefixed_paddi_p): New function to identify prefixed load
11343 immediates.
11344 (next_insn_prefixed_p): New static state variable.
11345 (rs6000_final_prescan_insn): New function to determine if an insn
11346 uses a prefixed instruction.
11347 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11348 prefixed instruction.
11349 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11350 (ASM_OUTPUT_OPCODE): New target hook.
11351 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11352 prefixed instructions.
11353 (prefixed_length): New insn attribute for the size of prefixed
11354 instructions.
11355 (non_prefixed_length): New insn attribute for the size of
11356 non-prefixed instructions.
11357 (pcrel_local_addr): New insn to load up a local PC-relative
11358 address.
11359 (pcrel_extern_addr): New insn to load up an external PC-relative
11360 address.
11361 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11362 GPR and loading a 128-bit floating point type to a GPR.
11363
11364 2019-09-30 Richard Biener <rguenther@suse.de>
11365
11366 * gimple.c (gimple_get_lhs): For PHIs return the result.
11367 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11368 SLP instance as argument.
11369 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11370 double-reduction PHIs with vectorizable_lc_phi.
11371 (vect_analyze_loop_operations): Adjust.
11372 (vect_create_epilog_for_reduction): Remove all code not dealing
11373 with reduction LC PHI or epilogue generation.
11374 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11375 for live stmts of reductions.
11376 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11377 do not handle defs that are not vect_internal_def.
11378 (can_vectorize_live_stmts): Adjust.
11379 (vect_analyze_stmt): When the vectorized stmt defined a value
11380 used on backedges adjust the backedge uses of vectorized PHIs.
11381
11382 2019-09-30 Martin Jambor <mjambor@suse.cz>
11383
11384 PR ipa/91853
11385 * tree-inline.c (force_value_to_type): New function.
11386 (setup_one_parameter): Use force_value_to_type to convert type.
11387 * tree-inline.c (force_value_to_type): Declare.
11388 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11389 with register type mismatches.
11390
11391 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11392
11393 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11394 32-bit PowerPC.
11395 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11396 * config/rs6000/t-freebsd64: Make use of the above define and build
11397 the 32-bit libraries with secure-plt.
11398
11399 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11400
11401 PR target/91931
11402 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11403 gen_int_mode instead of GEN_INT.
11404
11405 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11406
11407 * config/darwin.c (gen_macho_low): Amend to include the mode
11408 argument.
11409 (machopic_indirect_data_reference): Amend gen_macho_low call
11410 to include mode argument
11411 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11412 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11413 the macho_high expander and two define_insn entries.
11414
11415 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11416
11417 PR bootstrap/90543
11418 * optc-save-gen.awk: Fix up printing string option differences.
11419
11420 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11421
11422 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11423 vec_perm cost to 1 for non-Power7 VSX architectures.
11424
11425 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11426
11427 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11428 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11429 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11430
11431 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11432
11433 * config/darwin.c (gen_macho_high): Amend to include the mode
11434 argument.
11435 (machopic_indirect_data_reference): Amend gen_macho_high call
11436 to include mode argument.
11437 (machopic_legitimize_pic_address): Likewise.
11438 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11439 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11440 the macho_high expander and two define_insn entries.
11441
11442 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11443
11444 PR target/86805
11445 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11446
11447 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11448
11449 PR target/80672
11450 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11451 std::string::compare instead of std::string::find.
11452
11453 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11454
11455 * configure: Regenerate.
11456
11457 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11458
11459 PR middle-end/91920
11460 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11461 variables as shared.
11462
11463 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11464
11465 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11466 replaces the expander and two define_insn entries.
11467 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11468 call.
11469 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11470
11471 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11472
11473 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11474 (fibonacci_heap::nodes): Likewise.
11475 (fibonacci_heap::min_key): Likewise.
11476 (fibonacci_heap::min): Likewise.
11477
11478 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11479
11480 * cgraph.c (cgraph_node::get_fun): Make const.
11481 * cgraph.h (cgraph_node::get_fun): Likewise.
11482
11483 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11484
11485 PR target/91919
11486 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11487 of SImode MULT.
11488
11489 2019-09-27 Richard Biener <rguenther@suse.de>
11490
11491 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11492 (STMT_VINFO_REDUC_FN): Likewise.
11493 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11494 STMT_VINFO_REDUC_FN.
11495 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11496 for condition reductions.
11497 (vect_create_epilog_for_reduction): Compute all required state
11498 from the stmt to be vectorized.
11499 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11500 invocation and remove then dead code. For single def-use chains
11501 record only a single vector stmt.
11502
11503 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11504
11505 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11506 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11507 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11508 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11509 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11510 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11511 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11512 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11513 (aarch64_general_builtin_rsqrt): Declare.
11514 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11515 New function.
11516 (aarch64_mangle_builtin_type): Rename to...
11517 (aarch64_general_mangle_builtin_type): ...this.
11518 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11519 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11520 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11521 aarch64_general_add_builtin instead of add_builtin_function.
11522 (aarch64_init_builtins): Rename to...
11523 (aarch64_general_init_builtins): ...this. Use
11524 aarch64_general_add_builtin instead of add_builtin_function.
11525 (aarch64_builtin_decl): Rename to...
11526 (aarch64_general_builtin_decl): ...this and remove the unused
11527 arguments.
11528 (aarch64_expand_builtin): Rename to...
11529 (aarch64_general_expand_builtin): ...this and remove the unused
11530 arguments.
11531 (aarch64_builtin_rsqrt): Rename to...
11532 (aarch64_general_builtin_rsqrt): ...this.
11533 (aarch64_fold_builtin): Rename to...
11534 (aarch64_general_fold_builtin): ...this. Take the function subcode
11535 and return type as arguments. Remove the "ignored" argument.
11536 (aarch64_gimple_fold_builtin): Rename to...
11537 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11538 subcode and gcall as arguments, and return the new function call.
11539 * config/aarch64/aarch64.c (aarch64_init_builtins)
11540 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11541 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11542 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11543 instead of aarch64_builtin_rsqrt.
11544 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11545 instead of aarch64_mangle_builtin_type.
11546
11547 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11548
11549 * target.def (check_builtin_call): New target hook.
11550 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11551 * doc/tm.texi: Regenerate.
11552
11553 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11554
11555 PR tree-optimization/91909
11556 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11557 reduc_index parameter. When handling COND_REDUCTION, make sure
11558 that the reduction phi operand is in the correct arm of the
11559 VEC_COND_EXPR.
11560 (vectorizable_reduction): Pass reduc_index to the above.
11561
11562 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11563
11564 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11565 New combine pattern.
11566
11567 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11568
11569 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11570 loop instruction into new basic block before the loop when basic
11571 block that precedes the loop is empty.
11572
11573 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11574
11575 * function.c (gimplify_parameters): Use build_clobber function.
11576 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11577 * tree-inline.c (expand_call_inline): Likewise.
11578 * tree-sra.c (clobber_subtree): Likewise.
11579 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11580 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11581 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11582 lower_omp_target): Likewise.
11583 * omp-expand.c (expand_omp_for_generic): Likewise.
11584 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11585
11586 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11587
11588 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11589 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11590 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11591 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11592 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11593 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11594 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11595 LD_ELEMREV_V16QI): Use the PURE attribute.
11596
11597 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11598
11599 * config/rs6000/darwin.md: Replace the expanders for
11600 load_macho_picbase and reload_macho_picbase with use of '@'
11601 and <mode> in their respective define_insns.
11602 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11603 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11604 Pmode to gen_load_macho_picbase.
11605 * config/rs6000/rs6000.md: Likewise.
11606
11607 2019-09-25 Richard Biener <rguenther@suse.de>
11608
11609 PR tree-optimization/91896
11610 * tree-vect-loop.c (vectorizable_reduction): The single
11611 def-use cycle optimization cannot apply when there's more
11612 than one pattern stmt involved.
11613
11614 2019-09-26 Richard Biener <rguenther@suse.de>
11615
11616 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11617 loop-closed PHIs that are vect_internal_def.
11618 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11619 Simplify.
11620 (vectorizable_lc_phi): New.
11621 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11622 (vect_transform_stmt): Likewise.
11623 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11624 (vectorizable_lc_phi): Declare.
11625
11626 2019-09-26 Richard Biener <rguenther@suse.de>
11627
11628 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11629 vectorizable_reduction for vect_double_reduction_def.
11630 (vect_transform_loop): Likewise.
11631 (vect_create_epilog_for_reduction): Move double-reduction
11632 PHI creation and preheader argument setting of PHIs ...
11633 (vectorizable_reduction): ... here. Also process
11634 vect_double_reduction_def PHIs, creating the vectorized
11635 PHI nodes, remembering the scalar adjustment computed for
11636 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11637 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11638 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11639 Initialize STMT_VINFO_REDUC_CODE.
11640 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11641 (_stmt_vec_info::reduc_code): Likewise.
11642 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11643 (STMT_VINFO_REDUC_CODE): Likewise.
11644
11645 2019-09-26 Matt Turner <mattst88@gmail.com>
11646
11647 PR driver/69471
11648 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11649 (mtune=): Add Negative(mtune=).
11650 (mcpu=): Add Negative(mcpu=).
11651 * config/arm/arm.opt: Likewise.
11652
11653 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11654
11655 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11656 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11657 Define.
11658 * config/arm/arm_acle.h: Define builtins for the above.
11659 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11660 (simd32_op): Handle the above.
11661 * config/arm/unspecs.md: Define unspecs for the above.
11662
11663 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11664
11665 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11666 (arm_<sup>xtb16): Likewise.
11667 (arm_usada8): Likewise.
11668 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11669 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11670 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11671 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11672 __sxtb16, __uxtab16, __uxtb16): Define.
11673 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11674 * config/arm/unspecs.md: Define unspecs for the above.
11675 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11676 (USXTB16): Likewise.
11677 (simd32_op): New int_attribute.
11678 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11679 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11680
11681 2019-09-26 Martin Jambor <mjambor@suse.cz>
11682
11683 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11684 internal_error.
11685
11686 2019-09-26 Martin Jambor <mjambor@suse.cz>
11687
11688 * ipa-sra.c (process_scan_results): Fix continue condition.
11689
11690 2019-09-26 Martin Liska <mliska@suse.cz>
11691
11692 PR tree-optimization/91885
11693 * tree-vectorizer.c (try_vectorize_loop_1): Add
11694 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11695
11696 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11697
11698 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11699 aarch64_plus_immediate rather than aarch64_uimm12_shift
11700 to test for valid PLUS immediates.
11701
11702 2019-09-25 Martin Jambor <mjambor@suse.cz>
11703
11704 * tree-sra.c (no_accesses_p): Remove.
11705 (no_accesses_representant): Likewise.
11706
11707 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11708
11709 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11710 consistenly.
11711 (vaba_s16): Likewise.
11712 (vaba_s32): Likewise.
11713 (vaba_u8): Likewise.
11714 (vaba_u16): Likewise.
11715 (vaba_u32): Likewise.
11716 (vabal_high_s8): Likewise.
11717 (vabal_high_s16): Likewise.
11718 (vabal_high_s32): Likewise.
11719 (vabal_high_u8): Likewise.
11720 (vabal_high_u16): Likewise.
11721 (vabal_high_u32): Likewise.
11722 (vabal_s8): Likewise.
11723 (vabal_s16): Likewise.
11724 (vabal_s32): Likewise.
11725 (vabal_u8): Likewise.
11726 (vabal_u16): Likewise.
11727 (vabal_u32): Likewise.
11728 (vabaq_s8): Likewise.
11729 (vabaq_s16): Likewise.
11730 (vabaq_s32): Likewise.
11731 (vabaq_u8): Likewise.
11732 (vabaq_u16): Likewise.
11733 (vabaq_u32): Likewise.
11734 (vabd_s8): Likewise.
11735 (vabd_s16): Likewise.
11736 (vabd_s32): Likewise.
11737 (vabd_u8): Likewise.
11738 (vabd_u16): Likewise.
11739 (vabd_u32): Likewise.
11740 (vabdl_high_s8): Likewise.
11741 (vabdl_high_s16): Likewise.
11742 (vabdl_high_s32): Likewise.
11743 (vabdl_high_u8): Likewise.
11744 (vabdl_high_u16): Likewise.
11745 (vabdl_high_u32): Likewise.
11746 (vabdl_s8): Likewise.
11747 (vabdl_s16): Likewise.
11748 (vabdl_s32): Likewise.
11749 (vabdl_u8): Likewise.
11750 (vabdl_u16): Likewise.
11751 (vabdl_u32): Likewise.
11752 (vabdq_s8): Likewise.
11753 (vabdq_s16): Likewise.
11754 (vabdq_s32): Likewise.
11755 (vabdq_u8): Likewise.
11756 (vabdq_u16): Likewise.
11757 (vabdq_u32): Likewise.
11758 (vaddlv_s8): Likewise.
11759 (vaddlv_s16): Likewise.
11760 (vaddlv_u8): Likewise.
11761 (vaddlv_u16): Likewise.
11762 (vaddlvq_s8): Likewise.
11763 (vaddlvq_s16): Likewise.
11764 (vaddlvq_s32): Likewise.
11765 (vaddlvq_u8): Likewise.
11766 (vaddlvq_u16): Likewise.
11767 (vaddlvq_u32): Likewise.
11768 (vcvtx_f32_f64): Likewise.
11769 (vcvtx_high_f32_f64): Likewise.
11770 (vcvtxd_f32_f64): Likewise.
11771 (vmla_n_f32): Likewise.
11772 (vmla_n_s16): Likewise.
11773 (vmla_n_s32): Likewise.
11774 (vmla_n_u16): Likewise.
11775 (vmla_n_u32): Likewise.
11776 (vmla_s8): Likewise.
11777 (vmla_s16): Likewise.
11778 (vmla_s32): Likewise.
11779 (vmla_u8): Likewise.
11780 (vmla_u16): Likewise.
11781 (vmla_u32): Likewise.
11782 (vmlal_high_n_s16): Likewise.
11783 (vmlal_high_n_s32): Likewise.
11784 (vmlal_high_n_u16): Likewise.
11785 (vmlal_high_n_u32): Likewise.
11786 (vmlal_high_s8): Likewise.
11787 (vmlal_high_s16): Likewise.
11788 (vmlal_high_s32): Likewise.
11789 (vmlal_high_u8): Likewise.
11790 (vmlal_high_u16): Likewise.
11791 (vmlal_high_u32): Likewise.
11792 (vmlal_n_s16): Likewise.
11793 (vmlal_n_s32): Likewise.
11794 (vmlal_n_u16): Likewise.
11795 (vmlal_n_u32): Likewise.
11796 (vmlal_s8): Likewise.
11797 (vmlal_s16): Likewise.
11798 (vmlal_s32): Likewise.
11799 (vmlal_u8): Likewise.
11800 (vmlal_u16): Likewise.
11801 (vmlal_u32): Likewise.
11802 (vmlaq_n_f32): Likewise.
11803 (vmlaq_n_s16): Likewise.
11804 (vmlaq_n_s32): Likewise.
11805 (vmlaq_n_u16): Likewise.
11806 (vmlaq_n_u32): Likewise.
11807 (vmlaq_s8): Likewise.
11808 (vmlaq_s16): Likewise.
11809 (vmlaq_s32): Likewise.
11810 (vmlaq_u8): Likewise.
11811 (vmlaq_u16): Likewise.
11812 (vmlaq_u32): Likewise.
11813 (vmls_n_f32): Likewise.
11814 (vmls_n_s16): Likewise.
11815 (vmls_n_s32): Likewise.
11816 (vmls_n_u16): Likewise.
11817 (vmls_n_u32): Likewise.
11818 (vmls_s8): Likewise.
11819 (vmls_s16): Likewise.
11820 (vmls_s32): Likewise.
11821 (vmls_u8): Likewise.
11822 (vmls_u16): Likewise.
11823 (vmls_u32): Likewise.
11824 (vmlsl_high_n_s16): Likewise.
11825 (vmlsl_high_n_s32): Likewise.
11826 (vmlsl_high_n_u16): Likewise.
11827 (vmlsl_high_n_u32): Likewise.
11828 (vmlsl_high_s8): Likewise.
11829 (vmlsl_high_s16): Likewise.
11830 (vmlsl_high_s32): Likewise.
11831 (vmlsl_high_u8): Likewise.
11832 (vmlsl_high_u16): Likewise.
11833 (vmlsl_high_u32): Likewise.
11834 (vmlsl_n_s16): Likewise.
11835 (vmlsl_n_s32): Likewise.
11836 (vmlsl_n_u16): Likewise.
11837 (vmlsl_n_u32): Likewise.
11838 (vmlsl_s8): Likewise.
11839 (vmlsl_s16): Likewise.
11840 (vmlsl_s32): Likewise.
11841 (vmlsl_u8): Likewise.
11842 (vmlsl_u16): Likewise.
11843 (vmlsl_u32): Likewise.
11844 (vmlsq_n_f32): Likewise.
11845 (vmlsq_n_s16): Likewise.
11846 (vmlsq_n_s32): Likewise.
11847 (vmlsq_n_u16): Likewise.
11848 (vmlsq_n_u32): Likewise.
11849 (vmlsq_s8): Likewise.
11850 (vmlsq_s16): Likewise.
11851 (vmlsq_s32): Likewise.
11852 (vmlsq_u8): Likewise.
11853 (vmlsq_u16): Likewise.
11854 (vmlsq_u32): Likewise.
11855 (vmovl_high_s8): Likewise.
11856 (vmovl_high_s16): Likewise.
11857 (vmovl_high_s32): Likewise.
11858 (vmovl_high_u8): Likewise.
11859 (vmovl_high_u16): Likewise.
11860 (vmovl_high_u32): Likewise.
11861 (vmovl_s8): Likewise.
11862 (vmovl_s16): Likewise.
11863 (vmovl_s32): Likewise.
11864 (vmovl_u8): Likewise.
11865 (vmovl_u16): Likewise.
11866 (vmovl_u32): Likewise.
11867 (vmovn_high_s16): Likewise.
11868 (vmovn_high_s32): Likewise.
11869 (vmovn_high_s64): Likewise.
11870 (vmovn_high_u16): Likewise.
11871 (vmovn_high_u32): Likewise.
11872 (vmovn_high_u64): Likewise.
11873 (vmovn_s16): Likewise.
11874 (vmovn_s32): Likewise.
11875 (vmovn_s64): Likewise.
11876 (vmovn_u16): Likewise.
11877 (vmovn_u32): Likewise.
11878 (vmovn_u64): Likewise.
11879 (vmull_high_n_s16): Likewise.
11880 (vmull_high_n_s32): Likewise.
11881 (vmull_high_n_u16): Likewise.
11882 (vmull_high_n_u32): Likewise.
11883 (vmull_high_p8): Likewise.
11884 (vmull_high_s8): Likewise.
11885 (vmull_high_s16): Likewise.
11886 (vmull_high_s32): Likewise.
11887 (vmull_high_u8): Likewise.
11888 (vmull_high_u16): Likewise.
11889 (vmull_high_u32): Likewise.
11890 (vmull_n_s16): Likewise.
11891 (vmull_n_s32): Likewise.
11892 (vmull_n_u16): Likewise.
11893 (vmull_n_u32): Likewise.
11894 (vmull_p8): Likewise.
11895 (vmull_s8): Likewise.
11896 (vmull_s16): Likewise.
11897 (vmull_s32): Likewise.
11898 (vmull_u8): Likewise.
11899 (vmull_u16): Likewise.
11900 (vmull_u32): Likewise.
11901 (vpadal_s8): Likewise.
11902 (vpadal_s16): Likewise.
11903 (vpadal_s32): Likewise.
11904 (vpadal_u8): Likewise.
11905 (vpadal_u16): Likewise.
11906 (vpadal_u32): Likewise.
11907 (vpadalq_s8): Likewise.
11908 (vpadalq_s16): Likewise.
11909 (vpadalq_s32): Likewise.
11910 (vpadalq_u8): Likewise.
11911 (vpadalq_u16): Likewise.
11912 (vpadalq_u32): Likewise.
11913 (vpaddl_s8): Likewise.
11914 (vpaddl_s16): Likewise.
11915 (vpaddl_s32): Likewise.
11916 (vpaddl_u8): Likewise.
11917 (vpaddl_u16): Likewise.
11918 (vpaddl_u32): Likewise.
11919 (vpaddlq_s8): Likewise.
11920 (vpaddlq_s16): Likewise.
11921 (vpaddlq_s32): Likewise.
11922 (vpaddlq_u8): Likewise.
11923 (vpaddlq_u16): Likewise.
11924 (vpaddlq_u32): Likewise.
11925 (vpaddq_s8): Likewise.
11926 (vpaddq_s16): Likewise.
11927 (vpaddq_s32): Likewise.
11928 (vpaddq_s64): Likewise.
11929 (vpaddq_u8): Likewise.
11930 (vpaddq_u16): Likewise.
11931 (vpaddq_u32): Likewise.
11932 (vpaddq_u64): Likewise.
11933 (vqdmulh_n_s16): Likewise.
11934 (vqdmulh_n_s32): Likewise.
11935 (vqdmulhq_n_s16): Likewise.
11936 (vqdmulhq_n_s32): Likewise.
11937 (vqmovn_high_s16): Likewise.
11938 (vqmovn_high_s32): Likewise.
11939 (vqmovn_high_s64): Likewise.
11940 (vqmovn_high_u16): Likewise.
11941 (vqmovn_high_u32): Likewise.
11942 (vqmovn_high_u64): Likewise.
11943 (vqmovun_high_s16): Likewise.
11944 (vqmovun_high_s32): Likewise.
11945 (vqmovun_high_s64): Likewise.
11946 (vqrdmulh_n_s16): Likewise.
11947 (vqrdmulh_n_s32): Likewise.
11948 (vqrdmulhq_n_s16): Likewise.
11949 (vqrdmulhq_n_s32): Likewise.
11950 (vrsqrte_u32): Likewise.
11951 (vrsqrteq_u32): Likewise.
11952 (vtst_p8): Likewise.
11953 (vtst_p16): Likewise.
11954 (vtst_p64): Likewise.
11955 (vtstq_p8): Likewise.
11956 (vtstq_p16): Likewise.
11957 (vtstq_p64): Likewise.
11958 (vaddlv_s32): Likewise.
11959 (vaddlv_u32): Likewise.
11960 (vqtbl1_p8): Likewise.
11961 (vqtbl1_s8): Likewise.
11962 (vqtbl1_u8): Likewise.
11963 (vqtbl1q_p8): Likewise.
11964 (vqtbl1q_s8): Likewise.
11965 (vqtbl1q_u8): Likewise.
11966 (vqtbx1_s8): Likewise.
11967 (vqtbx1_u8): Likewise.
11968 (vqtbx1_p8): Likewise.
11969 (vqtbx1q_s8): Likewise.
11970 (vqtbx1q_u8): Likewise.
11971 (vqtbx1q_p8): Likewise.
11972 (vtbl1_s8): Likewise.
11973 (vtbl1_u8): Likewise.
11974 (vtbl1_p8): Likewise.
11975 (vtbl2_s8): Likewise.
11976 (vtbl2_u8): Likewise.
11977 (vtbl2_p8): Likewise.
11978 (vtbl3_s8): Likewise.
11979 (vtbl3_u8): Likewise.
11980 (vtbl3_p8): Likewise.
11981 (vtbl4_s8): Likewise.
11982 (vtbl4_u8): Likewise.
11983 (vtbl4_p8): Likewise.
11984 (vtbx2_s8): Likewise.
11985 (vtbx2_u8): Likewise.
11986 (vtbx2_p8): Likewise.
11987 (vld1_f32): Likewise.
11988 (vld1_f64): Likewise.
11989 (vld1_p8): Likewise.
11990 (vld1_p16): Likewise.
11991 (vld1_p64): Likewise.
11992 (vld1_s8): Likewise.
11993 (vld1_s16): Likewise.
11994 (vld1_s32): Likewise.
11995 (vld1_s64): Likewise.
11996 (vld1_u8): Likewise.
11997 (vld1_u16): Likewise.
11998 (vld1_u32): Likewise.
11999 (vld1_u64): Likewise.
12000 (vld1q_f32): Likewise.
12001 (vld1q_f64): Likewise.
12002 (vld1q_p8): Likewise.
12003 (vld1q_p16): Likewise.
12004 (vld1q_p64): Likewise.
12005 (vld1q_s8): Likewise.
12006 (vld1q_s16): Likewise.
12007 (vld1q_s32): Likewise.
12008 (vld1q_s64): Likewise.
12009 (vld1q_u8): Likewise.
12010 (vld1q_u16): Likewise.
12011 (vld1q_u32): Likewise.
12012 (vld1q_u64): Likewise.
12013 (vpmax_s8): Likewise.
12014 (vpmax_s16): Likewise.
12015 (vpmax_s32): Likewise.
12016 (vpmax_u8): Likewise.
12017 (vpmax_u16): Likewise.
12018 (vpmax_u32): Likewise.
12019 (vpmaxq_s8): Likewise.
12020 (vpmaxq_s16): Likewise.
12021 (vpmaxq_s32): Likewise.
12022 (vpmaxq_u8): Likewise.
12023 (vpmaxq_u16): Likewise.
12024 (vpmaxq_u32): Likewise.
12025 (vpmax_f32): Likewise.
12026 (vpmaxq_f32): Likewise.
12027 (vpmaxq_f64): Likewise.
12028 (vpmaxqd_f64): Likewise.
12029 (vpmaxs_f32): Likewise.
12030 (vpmaxnm_f32): Likewise.
12031 (vpmaxnmq_f32): Likewise.
12032 (vpmaxnmq_f64): Likewise.
12033 (vpmaxnmqd_f64): Likewise.
12034 (vpmaxnms_f32): Likewise.
12035 (vpmin_s8): Likewise.
12036 (vpmin_s16): Likewise.
12037 (vpmin_s32): Likewise.
12038 (vpmin_u8): Likewise.
12039 (vpmin_u16): Likewise.
12040 (vpmin_u32): Likewise.
12041 (vpminq_s8): Likewise.
12042 (vpminq_s16): Likewise.
12043 (vpminq_s32): Likewise.
12044 (vpminq_u8): Likewise.
12045 (vpminq_u16): Likewise.
12046 (vpminq_u32): Likewise.
12047 (vpmin_f32): Likewise.
12048 (vpminq_f32): Likewise.
12049 (vpminq_f64): Likewise.
12050 (vpminqd_f64): Likewise.
12051 (vpmins_f32): Likewise.
12052 (vpminnm_f32): Likewise.
12053 (vpminnmq_f32): Likewise.
12054 (vpminnmq_f64): Likewise.
12055 (vpminnmqd_f64): Likewise.
12056 (vpminnms_f32): Likewise.
12057 (vmla_f32): Likewise.
12058 (vmlaq_f32): Likewise.
12059 (vmlaq_f64): Likewise.
12060 (vmls_f32): Likewise.
12061 (vmlsq_f32): Likewise.
12062 (vmlsq_f64): Likewise.
12063 (vqtbl2_s8): Likewise.
12064 (vqtbl2_u8): Likewise.
12065 (vqtbl2_p8): Likewise.
12066 (vqtbl2q_s8): Likewise.
12067 (vqtbl2q_u8): Likewise.
12068 (vqtbl2q_p8): Likewise.
12069 (vqtbl3_s8): Likewise.
12070 (vqtbl3_u8): Likewise.
12071 (vqtbl3_p8): Likewise.
12072 (vqtbl3q_s8): Likewise.
12073 (vqtbl3q_u8): Likewise.
12074 (vqtbl3q_p8): Likewise.
12075 (vqtbl4_s8): Likewise.
12076 (vqtbl4_u8): Likewise.
12077 (vqtbl4_p8): Likewise.
12078 (vqtbl4q_s8): Likewise.
12079 (vqtbl4q_u8): Likewise.
12080 (vqtbl4q_p8): Likewise.
12081 (vqtbx2_s8): Likewise.
12082 (vqtbx2_u8): Likewise.
12083 (vqtbx2_p8): Likewise.
12084 (vqtbx2q_s8): Likewise.
12085 (vqtbx2q_u8): Likewise.
12086 (vqtbx2q_p8): Likewise.
12087 (vqtbx3_s8): Likewise.
12088 (vqtbx3_u8): Likewise.
12089 (vqtbx3_p8): Likewise.
12090 (vqtbx3q_s8): Likewise.
12091 (vqtbx3q_u8): Likewise.
12092 (vqtbx3q_p8): Likewise.
12093 (vqtbx4_s8): Likewise.
12094 (vqtbx4_u8): Likewise.
12095 (vqtbx4_p8): Likewise.
12096 (vqtbx4q_s8): Likewise.
12097 (vqtbx4q_u8): Likewise.
12098 (vqtbx4q_p8): Likewise.
12099 (vrev16_p8): Likewise.
12100 (vrev16_s8): Likewise.
12101 (vrev16_u8): Likewise.
12102 (vrev16q_p8): Likewise.
12103 (vrev16q_s8): Likewise.
12104 (vrev16q_u8): Likewise.
12105 (vrev32_p8): Likewise.
12106 (vrev32_p16): Likewise.
12107 (vrev32_s8): Likewise.
12108 (vrev32_s16): Likewise.
12109 (vrev32_u8): Likewise.
12110 (vrev32_u16): Likewise.
12111 (vrev32q_p8): Likewise.
12112 (vrev32q_p16): Likewise.
12113 (vrev32q_s8): Likewise.
12114 (vrev32q_s16): Likewise.
12115 (vrev32q_u8): Likewise.
12116 (vrev32q_u16): Likewise.
12117 (vrev64_f32): Likewise.
12118 (vrev64_p8): Likewise.
12119 (vrev64_p16): Likewise.
12120 (vrev64_s8): Likewise.
12121 (vrev64_s16): Likewise.
12122 (vrev64_s32): Likewise.
12123 (vrev64_u8): Likewise.
12124 (vrev64_u16): Likewise.
12125 (vrev64_u32): Likewise.
12126 (vrev64q_f32): Likewise.
12127 (vrev64q_p8): Likewise.
12128 (vrev64q_p16): Likewise.
12129 (vrev64q_s8): Likewise.
12130 (vrev64q_s16): Likewise.
12131 (vrev64q_s32): Likewise.
12132 (vrev64q_u8): Likewise.
12133 (vrev64q_u16): Likewise.
12134 (vrev64q_u32): Likewise.
12135 (vsha1cq_u32): Likewise.
12136 (vsha1mq_u32): Likewise.
12137 (vsha1pq_u32): Likewise.
12138 (vsha1h_u32): Likewise.
12139 (vsha1su0q_u32): Likewise.
12140 (vsha1su1q_u32): Likewise.
12141 (vsha256hq_u32): Likewise.
12142 (vsha256h2q_u32): Likewise.
12143 (vsha256su0q_u32): Likewise.
12144 (vsha256su1q_u32): Likewise.
12145 (vmull_p64): Likewise.
12146 (vmull_high_p64): Likewise.
12147 (vsqrt_f32): Likewise.
12148 (vsqrtq_f32): Likewise.
12149 (vsqrt_f64): Likewise.
12150 (vsqrtq_f64): Likewise.
12151 (vst1_f32): Likewise.
12152 (vst1_f64): Likewise.
12153 (vst1_p8): Likewise.
12154 (vst1_p16): Likewise.
12155 (vst1_p64): Likewise.
12156 (vst1_s8): Likewise.
12157 (vst1_s16): Likewise.
12158 (vst1_s32): Likewise.
12159 (vst1_s64): Likewise.
12160 (vst1_u8): Likewise.
12161 (vst1_u16): Likewise.
12162 (vst1_u32): Likewise.
12163 (vst1_u64): Likewise.
12164 (vst1q_f32): Likewise.
12165 (vst1q_f64): Likewise.
12166 (vst1q_p8): Likewise.
12167 (vst1q_p16): Likewise.
12168 (vst1q_p64): Likewise.
12169 (vst1q_s8): Likewise.
12170 (vst1q_s16): Likewise.
12171 (vst1q_s32): Likewise.
12172 (vst1q_s64): Likewise.
12173 (vst1q_u8): Likewise.
12174 (vst1q_u16): Likewise.
12175 (vst1q_u32): Likewise.
12176 (vst1q_u64): Likewise.
12177 (vst1_s64_x2): Likewise.
12178 (vst1_u64_x2): Likewise.
12179 (vst1_f64_x2): Likewise.
12180 (vst1_s8_x2): Likewise.
12181 (vst1_p8_x2): Likewise.
12182 (vst1_s16_x2): Likewise.
12183 (vst1_p16_x2): Likewise.
12184 (vst1_s32_x2): Likewise.
12185 (vst1_u8_x2): Likewise.
12186 (vst1_u16_x2): Likewise.
12187 (vst1_u32_x2): Likewise.
12188 (vst1_f16_x2): Likewise.
12189 (vst1_f32_x2): Likewise.
12190 (vst1_p64_x2): Likewise.
12191 (vst1q_s8_x2): Likewise.
12192 (vst1q_p8_x2): Likewise.
12193 (vst1q_s16_x2): Likewise.
12194 (vst1q_p16_x2): Likewise.
12195 (vst1q_s32_x2): Likewise.
12196 (vst1q_s64_x2): Likewise.
12197 (vst1q_u8_x2): Likewise.
12198 (vst1q_u16_x2): Likewise.
12199 (vst1q_u32_x2): Likewise.
12200 (vst1q_u64_x2): Likewise.
12201 (vst1q_f16_x2): Likewise.
12202 (vst1q_f32_x2): Likewise.
12203 (vst1q_f64_x2): Likewise.
12204 (vst1q_p64_x2): Likewise.
12205 (vst1_s64_x3): Likewise.
12206 (vst1_u64_x3): Likewise.
12207 (vst1_f64_x3): Likewise.
12208 (vst1_s8_x3): Likewise.
12209 (vst1_p8_x3): Likewise.
12210 (vst1_s16_x3): Likewise.
12211 (vst1_p16_x3): Likewise.
12212 (vst1_s32_x3): Likewise.
12213 (vst1_u8_x3): Likewise.
12214 (vst1_u16_x3): Likewise.
12215 (vst1_u32_x3): Likewise.
12216 (vst1_f16_x3): Likewise.
12217 (vst1_f32_x3): Likewise.
12218 (vst1_p64_x3): Likewise.
12219 (vst1q_s8_x3): Likewise.
12220 (vst1q_p8_x3): Likewise.
12221 (vst1q_s16_x3): Likewise.
12222 (vst1q_p16_x3): Likewise.
12223 (vst1q_s32_x3): Likewise.
12224 (vst1q_s64_x3): Likewise.
12225 (vst1q_u8_x3): Likewise.
12226 (vst1q_u16_x3): Likewise.
12227 (vst1q_u32_x3): Likewise.
12228 (vst1q_u64_x3): Likewise.
12229 (vst1q_f16_x3): Likewise.
12230 (vst1q_f32_x3): Likewise.
12231 (vst1q_f64_x3): Likewise.
12232 (vst1q_p64_x3): Likewise.
12233 (vst2_s64): Likewise.
12234 (vst2_u64): Likewise.
12235 (vst2_f64): Likewise.
12236 (vst2_s8): Likewise.
12237 (vst2_p8): Likewise.
12238 (vst2_s16): Likewise.
12239 (vst2_p16): Likewise.
12240 (vst2_s32): Likewise.
12241 (vst2_u8): Likewise.
12242 (vst2_u16): Likewise.
12243 (vst2_u32): Likewise.
12244 (vst2_f16): Likewise.
12245 (vst2_f32): Likewise.
12246 (vst2_p64): Likewise.
12247 (vst2q_s8): Likewise.
12248 (vst2q_p8): Likewise.
12249 (vst2q_s16): Likewise.
12250 (vst2q_p16): Likewise.
12251 (vst2q_s32): Likewise.
12252 (vst2q_s64): Likewise.
12253 (vst2q_u8): Likewise.
12254 (vst2q_u16): Likewise.
12255 (vst2q_u32): Likewise.
12256 (vst2q_u64): Likewise.
12257 (vst2q_f16): Likewise.
12258 (vst2q_f32): Likewise.
12259 (vst2q_f64): Likewise.
12260 (vst2q_p64): Likewise.
12261 (vst3_s64): Likewise.
12262 (vst3_u64): Likewise.
12263 (vst3_f64): Likewise.
12264 (vst3_s8): Likewise.
12265 (vst3_p8): Likewise.
12266 (vst3_s16): Likewise.
12267 (vst3_p16): Likewise.
12268 (vst3_s32): Likewise.
12269 (vst3_u8): Likewise.
12270 (vst3_u16): Likewise.
12271 (vst3_u32): Likewise.
12272 (vst3_f16): Likewise.
12273 (vst3_f32): Likewise.
12274 (vst3_p64): Likewise.
12275 (vst3q_s8): Likewise.
12276 (vst3q_p8): Likewise.
12277 (vst3q_s16): Likewise.
12278 (vst3q_p16): Likewise.
12279 (vst3q_s32): Likewise.
12280 (vst3q_s64): Likewise.
12281 (vst3q_u8): Likewise.
12282 (vst3q_u16): Likewise.
12283 (vst3q_u32): Likewise.
12284 (vst3q_u64): Likewise.
12285 (vst3q_f16): Likewise.
12286 (vst3q_f32): Likewise.
12287 (vst3q_f64): Likewise.
12288 (vst3q_p64): Likewise.
12289 (vst4_s64): Likewise.
12290 (vst4_u64): Likewise.
12291 (vst4_f64): Likewise.
12292 (vst4_s8): Likewise.
12293 (vst4_p8): Likewise.
12294 (vst4_s16): Likewise.
12295 (vst4_p16): Likewise.
12296 (vst4_s32): Likewise.
12297 (vst4_u8): Likewise.
12298 (vst4_u16): Likewise.
12299 (vst4_u32): Likewise.
12300 (vst4_f16): Likewise.
12301 (vst4_f32): Likewise.
12302 (vst4_p64): Likewise.
12303 (vst4q_s8): Likewise.
12304 (vst4q_p8): Likewise.
12305 (vst4q_s16): Likewise.
12306 (vst4q_p16): Likewise.
12307 (vst4q_s32): Likewise.
12308 (vst4q_s64): Likewise.
12309 (vst4q_u8): Likewise.
12310 (vst4q_u16): Likewise.
12311 (vst4q_u32): Likewise.
12312 (vst4q_u64): Likewise.
12313 (vst4q_f16): Likewise.
12314 (vst4q_f32): Likewise.
12315 (vst4q_f64): Likewise.
12316 (vst4q_p64): Likewise.
12317 (vtbx4_s8): Likewise.
12318 (vtbx4_u8): Likewise.
12319 (vtbx4_p8): Likewise.
12320 (vtrn_f32): Likewise.
12321 (vtrn_p8): Likewise.
12322 (vtrn_p16): Likewise.
12323 (vtrn_s8): Likewise.
12324 (vtrn_s16): Likewise.
12325 (vtrn_s32): Likewise.
12326 (vtrn_u8): Likewise.
12327 (vtrn_u16): Likewise.
12328 (vtrn_u32): Likewise.
12329 (vtrnq_f32): Likewise.
12330 (vtrnq_p8): Likewise.
12331 (vtrnq_p16): Likewise.
12332 (vtrnq_s8): Likewise.
12333 (vtrnq_s16): Likewise.
12334 (vtrnq_s32): Likewise.
12335 (vtrnq_u8): Likewise.
12336 (vtrnq_u16): Likewise.
12337 (vtrnq_u32): Likewise.
12338 (vrsqrte_f16): Likewise.
12339 (vrsqrteq_f16): Likewise.
12340 (vsqrt_f16): Likewise.
12341 (vsqrtq_f16): Likewise.
12342 (vabd_f16): Likewise.
12343 (vabdq_f16): Likewise.
12344 (vpadd_f16): Likewise.
12345 (vpaddq_f16): Likewise.
12346 (vpmax_f16): Likewise.
12347 (vpmaxq_f16): Likewise.
12348 (vpmaxnm_f16): Likewise.
12349 (vpmaxnmq_f16): Likewise.
12350 (vpmin_f16): Likewise.
12351 (vpminq_f16): Likewise.
12352 (vpminnm_f16): Likewise.
12353 (vpminnmq_f16): Likewise.
12354 (vrsqrts_f16): Likewise.
12355 (vrsqrtsq_f16): Likewise.
12356
12357 2019-09-25 Richard Biener <rguenther@suse.de>
12358
12359 PR tree-optimization/91896
12360 * tree-vect-loop.c (vectorizable_reduction): The single
12361 def-use cycle optimization cannot apply when there's more
12362 than one pattern stmt involved.
12363
12364 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12365
12366 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12367 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12368 (reload_macho_picbase_<mode>): Likewise.
12369
12370 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12371
12372 * config/rs6000/rs6000.md: Move darwin.md include until
12373 after the definition of the mode iterators.
12374
12375 2019-09-23 Martin Sebor <msebor@redhat.com>
12376
12377 PR tree-optimization/91570
12378 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12379 non-constant minlen, maxlen and maxbound.
12380
12381 2019-09-24 Richard Biener <rguenther@suse.de>
12382
12383 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12384 Rename to...
12385 (_stmt_vec_info::cond_reduc_code): ... this.
12386 (_stmt_vec_info::induc_cond_initial_val): Add.
12387 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12388 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12389 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12390 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12391 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12392 the reduction code.
12393 (vect_create_epilog_for_reduction): Drop special
12394 induction condition reduction params, pass in reduction code
12395 and simplify.
12396 (vectorizable_reduction): Perform condition reduction kind
12397 selection only at analysis time. Adjust passing on state.
12398
12399 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12400
12401 * config/aarch64/aarch64.md (mov<mode>): Don't call
12402 aarch64_split_dimode_const_store on volatile MEM.
12403
12404 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12405
12406 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12407 Update hwcap string for fp16fml.
12408
12409 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12410
12411 PR middle-end/91866
12412 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12413 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12414
12415 2019-09-24 Martin Liska <mliska@suse.cz>
12416
12417 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12418 instead of if-elseif-elseif-...
12419 * gimple-expr.c (extract_ops_from_tree): Likewise.
12420 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12421 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12422
12423 2019-09-24 Martin Jambor <mjambor@suse.cz>
12424
12425 PR ipa/91831
12426 * ipa-param-manipulation.c (carry_over_param): Make a method of
12427 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12428 in case of a context mismatch.
12429 (ipa_param_body_adjustments::common_initialization): Adjust call to
12430 carry_over_param.
12431 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12432 private method carry_over_param.
12433
12434 2019-09-24 Martin Jambor <mjambor@suse.cz>
12435
12436 PR ipa/91832
12437 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12438
12439 2019-09-24 Richard Biener <rguenther@suse.de>
12440
12441 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12442 base.
12443
12444 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12445
12446 * config/arm/t-arm (arm-builtins.o): Add dependency on
12447 arm_acle_builtins.def.
12448
12449 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12450
12451 PR target/91823
12452 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12453 canonical CONST_INTs. Use gen_rtvec.
12454
12455 2019-09-23 Richard Biener <rguenther@suse.de>
12456
12457 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12458 avoid adjusting by + 0 or * 1.
12459 (vect_create_epilog_for_reduction): Get reduction code only
12460 when necessary. Deal with adjustment_def only when necessary.
12461
12462 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12463
12464 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12465 memmodel index.
12466
12467 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12468
12469 PR ipa/91835
12470 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12471 "ipa-sra".
12472
12473 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12474
12475 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12476 code. Merge code blocks with common conditionals. Use declared
12477 macro instead of a magic number for PIC level.
12478
12479 2019-09-21 Martin Sebor <msebor@redhat.com>
12480
12481 PR middle-end/91830
12482 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12483 Simplify computation of the offset of the referenced subobject.
12484
12485 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12486
12487 * config/darwin.c (machopic_legitimize_pic_address): Check
12488 for lra not reload.
12489
12490 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12491
12492 * ira-conflicts.c (can_use_same_reg_p): New function.
12493 (process_reg_shuffles): Take an insn parameter. Ignore cases
12494 in which input operand op_num could seemingly never be allocated
12495 to the same register as the destination.
12496 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12497
12498 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12499
12500 * simplify-rtx.c (neg_const_int): Replace with...
12501 (neg_poly_int_rtx): ...this new function.
12502 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12503 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12504 (simplify_plus_minus): Likewise for constant terms here.
12505
12506 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12507
12508 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12509 HOST_WIDE_PRINT_UNSIGNED.
12510
12511 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12512
12513 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12514 character.
12515
12516 2019-09-20 Maya Rashish <coypu@sdf.org>
12517
12518 PR target/86811
12519 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12520 Define to speculation_safe_value_not_needed.
12521
12522 2019-09-20 Richard Biener <rguenther@suse.de>
12523 Uros Bizjak <ubizjak@gmail.com>
12524
12525 PR target/91814
12526 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12527 previous change.
12528 (general_scalar_chain::convert_op): Force not suitable memory
12529 operands to a register.
12530
12531 2019-09-20 Richard Biener <rguenther@suse.de>
12532
12533 PR tree-optimization/91821
12534 * tree-vect-loop.c (check_reduction_path): Check we can compute
12535 reduc_idx.
12536 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12537 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12538 operands in canonical order.
12539 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12540 STMT_VINFO_REDUC_IDX.
12541 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12542 (STMT_VINFO_REDUC_IDX): Likewise.
12543
12544 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12545
12546 PR target/91269
12547 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12548
12549 2019-09-20 Richard Biener <rguenther@suse.de>
12550
12551 PR tree-optimization/91822
12552 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12553 parameter.
12554 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12555 for reduc_index in nested cycles, adjust vectorizable_condition
12556 calls.
12557 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12558 parameter.
12559 (vect_analyze_stmt): Adjust.
12560 (vect_transform_stmt): Likewise.
12561
12562 2019-09-20 Richard Biener <rguenther@suse.de>
12563
12564 PR target/91767
12565 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12566 Ensure there's a sequence point between allocating the new register
12567 and passing a reference to a reg via regno_reg_rtx.
12568
12569 2019-09-20 Martin Jambor <mjambor@suse.cz>
12570
12571 * coretypes.h (cgraph_edge): Declare.
12572 * ipa-param-manipulation.c: Rewrite.
12573 * ipa-param-manipulation.h: Likewise.
12574 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12575 (OBJS): Added ipa-sra.o.
12576 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12577 and ref_p, added fields param_adjustments and performed_splits.
12578 (struct cgraph_clone_info): Remove ags_to_skip and
12579 combined_args_to_skip, new field param_adjustments.
12580 (cgraph_node::create_clone): Changed parameters to use
12581 ipa_param_adjustments.
12582 (cgraph_node::create_virtual_clone): Likewise.
12583 (cgraph_node::create_virtual_clone_with_body): Likewise.
12584 (tree_function_versioning): Likewise.
12585 (cgraph_build_function_type_skip_args): Removed.
12586 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12587 using ipa_param_adjustments.
12588 (clone_of_p): Likewise.
12589 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12590 (build_function_decl_skip_args): Likewise.
12591 (duplicate_thunk_for_node): Adjust parameters using
12592 ipa_param_body_adjustments, copy param_adjustments instead of
12593 args_to_skip.
12594 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12595 (cgraph_node::create_virtual_clone): Likewise.
12596 (cgraph_node::create_version_clone_with_body): Likewise.
12597 (cgraph_materialize_clone): Likewise.
12598 (symbol_table::materialize_all_clones): Likewise.
12599 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12600 ipa_replace_map check.
12601 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12602 (initialize_node_lattices): Make aware that some parameters might have
12603 already been removed.
12604 (want_remove_some_param_p): New function.
12605 (create_specialized_node): Convert to using ipa_param_adjustments and
12606 deal with possibly pre-existing adjustments.
12607 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12608 (output_node_opt_summary): Do not stream removed fields. Stream
12609 parameter adjustments instead of argumetns to skip.
12610 (input_node_opt_summary): Likewise.
12611 (input_node_opt_summary): Likewise.
12612 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12613 * lto-streamer.h (lto_section_type): Likewise.
12614 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12615 param_body_adjs.
12616 (copy_decl_to_var): Declare.
12617 * tree-inline.c (update_clone_info): Do not remap old_tree.
12618 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12619 statements, walk all extra generated statements and remap their
12620 operands.
12621 (redirect_all_calls): Add killed SSA names to a hash set.
12622 (remap_ssa_name): Do not remap killed SSA names.
12623 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12624 half of functionality moved to ipa_param_body_adjustments.
12625 (copy_decl_to_var): Make exported.
12626 (copy_body): Destroy killed_new_ssa_names hash set.
12627 (expand_call_inline): Remap performed splits.
12628 (update_clone_info): Likewise.
12629 (tree_function_versioning): Simplify tree_map processing. Updated to
12630 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12631 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12632 for the new interface.
12633 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12634 (simd_clone_compute_base_data_type): Likewise.
12635 (simd_clone_init_simd_arrays): Adjust for the new interface.
12636 (simd_clone_adjust_argument_types): Likewise.
12637 (struct modify_stmt_info): Likewise.
12638 (ipa_simd_modify_stmt_ops): Likewise.
12639 (ipa_simd_modify_function_body): Likewise.
12640 (simd_clone_adjust): Likewise.
12641 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12642 (type_internals_preclude_sra_p): Make public.
12643 * tree-sra.h: New file.
12644 * ipa-inline-transform.c (save_inline_function_body): Update to
12645 refelct new tree_function_versioning signature.
12646 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12647 ipa_param_adjustments to get current parameter indices.
12648 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12649 (ipcp_update_bits): Likewise.
12650 (ipcp_update_vr): Likewise.
12651 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12652 * ipa-sra.c: New file.
12653 * multiple_target.c (create_target_clone): Update to reflet new type
12654 of create_version_clone_with_body.
12655 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12656 tree_function_versioning.
12657 (modify_function): Update to reflect new type of
12658 tree_function_versioning.
12659 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12660 * passes.def: Remove old IPA-SRA and add new one.
12661 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12662 (make_pass_ipa_sra): Declare.
12663 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12664 ipa_sra_retvalues.
12665 * doc/invoke.texi (ipa-sra-max-replacements): New.
12666
12667 2019-09-19 Martin Sebor <msebor@redhat.com>
12668
12669 PR middle-end/91631
12670 * builtins.c (component_size): Correct trailing array computation,
12671 rename to component_ref_size and move...
12672 (compute_objsize): Adjust.
12673 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12674 (builtin_access::strict): Do not consider memmove.
12675 (builtin_access::write_off): New function.
12676 (builtin_memref::builtin_memref): Initialize refsize.
12677 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12678 refsize.
12679 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12680 Handle refsize.
12681 (builtin_access::builtin_access): Initialize dstoff to destination
12682 refeence offset here instead of in maybe_diag_overlap. Adjust
12683 referencess even to unrelated objects. Adjust sizrange of bounded
12684 string functions to reflect bound. For strcat, adjust destination
12685 sizrange by that of source.
12686 (builtin_access::strcat_overlap): Adjust offsets and sizes
12687 to reflect the increase in destination sizrange above.
12688 (builtin_access::overlap): Do not set dstoff here but instead
12689 in builtin_access::builtin_access.
12690 (check_bounds_or_overlap): Use builtin_access::write_off.
12691 (maybe_diag_access_bounds): Add argument. Add informational notes.
12692 (dump_builtin_memref, dump_builtin_access): New functions.
12693 * tree.c (component_ref_size): ...to here.
12694 * tree.h (component_ref_size): Declare.
12695 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12696 nul in the size of the source string.
12697
12698 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12699
12700 PR c/67224
12701 * doc/cpp.texi: Document support for extended characters in
12702 identifiers.
12703 * doc/cppopts.texi: Likewise.
12704
12705 2019-09-19 Richard Biener <rguenther@suse.de>
12706
12707 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12708 (check_reduction_path): New overload having the path as result.
12709 (vect_is_simple_reduction): From the detected reduction
12710 path build a SLP reduction chain if possible.
12711
12712 2019-09-19 Richard Biener <rguenther@suse.de>
12713
12714 PR target/91814
12715 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12716 Force operand to a register if it isn't nonimmediate_operand.
12717
12718 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12719
12720 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12721 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12722 (logical_op): Remove code attribute.
12723 (logical_OP): Likewise.
12724
12725 2019-09-19 Martin Liska <mliska@suse.cz>
12726
12727 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12728 Use proper casting.
12729
12730 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12731
12732 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12733 registers with %R.
12734
12735 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12736 for NE comparison of TImode values.
12737 (aarch64_emit_load_exclusive): Add support for TImode.
12738 (aarch64_emit_store_exclusive): Likewise.
12739 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12740 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12741 Change iterator from ALLI to ALLI_TI.
12742 (@atomic_compare_and_swap<JUST_TI>): New.
12743 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12744 (aarch64_load_exclusive_pair): New.
12745 (aarch64_store_exclusive_pair): New.
12746 * config/aarch64/iterators.md (JUST_TI): New.
12747
12748 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12749 strong_zero_p for aarch64_track_speculation; unify some code paths;
12750 use aarch64_gen_compare_reg instead of open-coding.
12751
12752 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12753 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12754 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12755 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12756 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12757 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12758 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12759 (atomic_<atomic_op><ALLI>): Likewise.
12760 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12761 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12762 * doc/invoke.texi: Document -moutline-atomics.
12763
12764 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12765
12766 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12767 trivial predicate for condition branch.
12768 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12769 for switch case.
12770 (compute_bb_predicates): Update predicate based on post-dominating
12771 relationship.
12772 (analyze_function_body): Calculate post-dominating information.
12773
12774 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12775
12776 * tree-vectorizer.h (vectorizable_condition): Take an int
12777 reduction index instead of a boolean flag.
12778 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12779 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12780 reductions if the reduction accumulator is the "then" rather
12781 than the "else" value.
12782 (vect_analyze_stmt): Update call accordingly.
12783 (vect_transform_stmt): Likewise.
12784 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12785 asserting that the index is > 0.
12786
12787 2019-09-19 Martin Liska <mliska@suse.cz>
12788
12789 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12790 (sort_congruence_classes_by_decl_uid): Likewise.
12791 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12792 easier sorting.
12793 (sem_item_optimizer::merge_classes): Likewise.
12794
12795 2019-09-19 Richard Biener <rguenther@suse.de>
12796
12797 PR tree-optimization/91812
12798 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12799 volatile loads.
12800
12801 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12802
12803 * defaults.h (TARGET_UNIT): New macro.
12804 (target_unit): New type.
12805 * rtl.h (native_encode_rtx, native_decode_rtx)
12806 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12807 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12808 * rtlanal.c (subreg_lsb_1): Delete.
12809 (subreg_size_lsb): New function.
12810 * simplify-rtx.c: Include rtx-vector-builder.h
12811 (simplify_immed_subreg): Delete.
12812 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12813 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12814 functions.
12815 (simplify_subreg): Use them.
12816 (test_vector_subregs_modes, test_vector_subregs_repeating)
12817 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12818 (test_vector_subregs): New functions.
12819 (test_vector_ops): Call test_vector_subregs for integer vector
12820 modes with at least 2 elements.
12821
12822 2019-09-19 Richard Biener <rguenther@suse.de>
12823
12824 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12825 LOOP_VINFO_OPERANDS_SWAPPED.
12826 (parloops_is_simple_reduction): Likewise.
12827 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12828 initialize operands_swapped.
12829 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12830 (vect_is_slp_reduction): Do not swap operands.
12831 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12832 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12833
12834 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12835
12836 PR target/87007
12837 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12838 Add avx_partial_xmm_update.
12839
12840 2019-09-18 Jim Wilson <jimw@sifive.com>
12841
12842 PR target/91683
12843 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12844 (riscv_move_integer): Likewise.
12845 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12846 riscv_move_integer arg.
12847 (riscv_legitimize_move): Likewise.
12848 (riscv_force_temporary): New parameter in_splitter. Don't call
12849 force_reg if true.
12850 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12851 arg.
12852 (riscv_add_offset): Likewise.
12853 (riscv_split_symbol): New parameter in_splitter. Pass to
12854 riscv_force_temporary.
12855 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12856 arg.
12857 (riscv_move_integer): New parameter in_splitter. New local
12858 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12859 in_splitter TRUE.
12860 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12861 riscv_split_symbol, and riscv_force_temporary args.
12862 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12863 riscv_move_integer arg.
12864 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12865
12866 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12867
12868 PR target/90878
12869 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12870 hard register store cost to 6.
12871
12872 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12873
12874 PR target/91446
12875 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12876 pseudo register store cost from 3 to 6 to make it the same as
12877 QImode and HImode.
12878
12879 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12880
12881 PR target/91738
12882 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12883 (one_cmpldi2): Likewise.
12884 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12885 of the constant parts is simple.
12886 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12887 (logical_op): Add new code attribute.
12888 (logical_OP): Likewise.
12889 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12890 (arm_iordi_operand): Add predicate.
12891 (arm_xordi_operand): Add predicate.
12892
12893 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12894
12895 * config/arm/arm.md (maddsidi4): Remove expander.
12896 (mulsidi3adddi): Remove pattern.
12897 (mulsidi3adddi_v6): Likewise.
12898 (mulsidi3_nov6): Likewise.
12899 (mulsidi3_v6): Likewise.
12900 (umulsidi3): Remove expander.
12901 (umulsidi3_nov6): Remove pattern.
12902 (umulsidi3_v6): Likewise.
12903 (umulsidi3adddi): Likewise.
12904 (umulsidi3adddi_v6): Likewise.
12905 (<Us>mulsidi3): Add combined expander.
12906 (<Us>maddsidi4): Likewise.
12907 (<US>mull): Add combined umull and smull pattern.
12908 (<US>mlal): Likewise.
12909 * config/arm/iterators.md (Us): Add new iterator.
12910
12911 2019-09-18 Richard Biener <rguenther@suse.de>
12912
12913 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12914 swapping.
12915 (vectorize_fold_left_reduction): Remove assert.
12916 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12917 operand in position 2. Remove assert.
12918
12919 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12920
12921 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12922 (smulsi3_highpart_nov6): Remove pattern.
12923 (smulsi3_highpart_v6): Likewise.
12924 (umulsi3_highpart): Likewise.
12925 (umulsi3_highpart_nov6): Likewise.
12926 (umulsi3_highpart_v6): Likewise.
12927 (<US>mull_high): Add new combined multiply pattern.
12928
12929 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12930
12931 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12932 (arm_mulsi3_v6): Likewise.
12933 (mulsi3addsi_v6): Likewise.
12934 (mulsi3subsi): Likewise.
12935 (mul): Add new multiply pattern.
12936 (mla): Likewise.
12937 (mls): Likewise.
12938
12939 2019-09-18 Richard Biener <rguenther@suse.de>
12940
12941 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12942 (parloops_valid_reduction_input_p): Copy from
12943 valid_reduction_input_p.
12944 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12945 (parloops_needs_fold_left_reduction_p): Copy from
12946 needs_fold_left_reduction_p.
12947 (parloops_is_simple_reduction): Copy from
12948 vect_is_simple_reduction.
12949 (parloops_force_simple_reduction): Copy from
12950 vect_force_simple_reduction.
12951 (gather_scalar_reductions): Adjust.
12952 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12953 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12954
12955 2019-09-18 Richard Biener <rguenther@suse.de>
12956
12957 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12958 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12959 static.
12960 (vect_create_epilog_for_reduction): Remove dead code.
12961
12962 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12963
12964 * varasm.c (assemble_real): Generate canonical const_ints.
12965
12966 2019-09-18 Richard Biener <rguenther@suse.de>
12967
12968 PR lto/91763
12969 * lto-streamer-in.c (input_eh_regions): Move EH init to
12970 lto_materialize_function.
12971 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12972 Likewise.
12973
12974 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12975
12976 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12977 are INTEGER_CSTs.
12978
12979 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12980
12981 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12982 of checking specifically for INTEGER_CST.
12983
12984 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12985
12986 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12987 sizes instead of uhwi sizes.
12988
12989 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12990
12991 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12992 (add_const_value_attribute): Handle CONST_POLY_INT.
12993
12994 2019-09-18 Martin Liska <mliska@suse.cz>
12995
12996 * dbgcnt.def (store_merging): New counter.
12997 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12998 Use it in store merging.
12999
13000 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13001
13002 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13003 function.
13004 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13005 * config/arm/arm.c (arm_sched_variable_issue): New function.
13006 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13007
13008 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13009
13010 * config/arm/types.md (no_reservation): New reservation.
13011 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13012 no_insn here.
13013 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13014 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13015 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13016 * config/arm/arm1020e.md (1020alu_op): Likewise.
13017 * config/arm/arm1026ejs.md (alu_op): Likewise.
13018 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13019 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13020 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13021 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13022 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13023 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13024 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13025 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13026 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13027 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13028 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13029 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13030 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13031 * config/arm/fa526.md (526_alu_op): Likewise.
13032 * config/arm/fa606te.md (606te_alu_op): Likewise.
13033 * config/arm/fa626te.md (626te_alu_op): Likewise.
13034 * config/arm/fa726te.md (726te_alu_op): Likewise.
13035 * config/arm/xgene1.md (xgene1_nop): Likewise.
13036
13037 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13038
13039 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13040 "no_insn" to "branch".
13041
13042 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13043
13044 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13045
13046 2019-09-17 Richard Biener <rguenther@suse.de>
13047
13048 PR debug/91772
13049 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13050 was missing generate locations only once.
13051
13052 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13053
13054 PR ipa/91089
13055 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13056 option.
13057 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13058 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13059 for switch default case using range analysis information.
13060
13061 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13062
13063 PR target/91749
13064 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13065 mode attributed is supported by FDPIC.
13066
13067 2019-09-17 Richard Biener <rguenther@suse.de>
13068
13069 PR tree-optimization/91790
13070 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13071 use the correct DR for setting up realignment.
13072
13073 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13074
13075 PR target/91719
13076 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13077 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13078 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13079 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13080
13081 2019-09-16 Jason Merrill <jason@redhat.com>
13082
13083 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13084
13085 2019-09-16 Martin Liska <mliska@suse.cz>
13086
13087 * gimple-fold.c (or_comparisons_1): Remove rules moved
13088 to ...
13089 * match.pd: ... here.
13090
13091 2019-09-16 Martin Liska <mliska@suse.cz>
13092
13093 * gimple-fold.c (or_comparisons_1): Remove rules
13094 moved to ...
13095 * match.pd: ... here.
13096
13097 2019-09-16 Martin Liska <mliska@suse.cz>
13098
13099 * genmatch.c (dt_node::append_simplify): Do not print
13100 warning when we have duplicate patterns belonging
13101 to a same simplify rule.
13102 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13103 (maybe_fold_comparisons_from_match_pd): Handle
13104 tcc_comparison as a results.
13105 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13106
13107 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13108 Qi Feng <ffengqi@linux.ibm.com>
13109
13110 PR middle-end/88784
13111 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13112 (x > y && x == XXX_MIN): Optimize into 'false'.
13113 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13114 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13115 (x < y && x == XXX_MAX): Optimize into 'false'.
13116 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13117 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13118 (x <= y || x != XXX_MIN): Optimize into 'true'.
13119 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13120 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13121 (x >= y || x != XXX_MAX): Optimize into 'true'.
13122 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13123
13124 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13125 Martin Liska <mliska@suse.cz>
13126
13127 * gimple-fold.c (and_comparisons_1): Add type as first
13128 argument.
13129 (and_var_with_comparison): Likewise.
13130 (and_var_with_comparison_1): Likewise.
13131 (or_comparisons_1): Likewise.
13132 (or_var_with_comparison): Likewise.
13133 (or_var_with_comparison_1): Likewise.
13134 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13135 (maybe_fold_or_comparisons): Likewise.
13136 (maybe_fold_comparisons_from_match_pd): New.
13137 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13138 (maybe_fold_or_comparisons): Likewise.
13139 * gimple.c (gimple_size): Make it public and add num_ops argument.
13140 (gimple_init): New function.
13141 (gimple_alloc): Call gimple_init.
13142 * gimple.h (gimple_size): New.
13143 (gimple_init): Likewise.
13144 * tree-if-conv.c (fold_or_predicates): Pass type.
13145 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13146 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13147 (optimize_vec_cond_expr): Likewise.
13148 (ovce_extract_ops): Return type of conditional expression.
13149 * tree-ssanames.c (init_ssa_name_imm_use): New.
13150 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13151 * tree-ssanames.h (init_ssa_name_imm_use): New.
13152
13153 2019-09-16 Richard Biener <rguenther@suse.de>
13154
13155 PR tree-optimization/91756
13156 PR tree-optimization/87132
13157 * tree-ssa-alias.h (enum translate_flags): New.
13158 (get_continuation_for_phi): Use it instead of simple bool flag.
13159 (walk_non_aliased_vuses): Likewise.
13160 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13161 (get_continuation_for_phi): When looking across backedges only
13162 disallow valueization.
13163 (walk_non_aliased_vuses): Adjust.
13164 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13165 if requested.
13166
13167 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13168
13169 PR middle-end/80791
13170 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13171 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13172 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13173 * target.def (have_count_reg_decr_p): New hook.
13174 (doloop_cost_for_generic): Likewise.
13175 (doloop_cost_for_address): Likewise.
13176 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13177 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13178 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13179 * doc/tm.texi: Regenerate.
13180 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13181 addend.
13182 (record_group): Init doloop_p.
13183 (add_candidate_1): Add optional argument doloop, change the handlings
13184 accordingly.
13185 (add_candidate): Likewise.
13186 (generic_predict_doloop_p): Update attribute.
13187 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13188 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13189 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13190 MIN_EXPR.
13191 (get_computation_cost): Update for doloop IV cand extra cost.
13192 (determine_group_iv_cost_cond): Update for doloop IV cand.
13193 (determine_iv_cost): Likewise.
13194 (ivopts_estimate_reg_pressure): Likewise.
13195 (may_eliminate_iv): Update handlings for doloop IV cand.
13196 (add_iv_candidate_for_doloop): New function.
13197 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13198 (iv_ca_set_no_cp): Update for doloop IV cand.
13199 (iv_ca_set_cp): Likewise.
13200 (iv_ca_dump): Dump register cost.
13201 (find_doloop_use): New function.
13202 (analyze_and_mark_doloop_use): Likewise.
13203 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13204
13205 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13206
13207 PR middle-end/91708
13208 * cse.c (cse_insn): Do not replace anything with a
13209 MEM.
13210
13211 2019-09-13 Ian Lance Taylor <iant@golang.org>
13212
13213 * doc/invoke.texi (Optimize Options): Fix typo.
13214
13215 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13216
13217 PR tree-optimization/89386
13218 * config/i386/sse.md (smulhrs<mode>3): New expander.
13219 (smulhrsv4hi3): Ditto.
13220
13221 2019-09-12 Richard Biener <rguenther@suse.de>
13222
13223 PR tree-optimization/91750
13224 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13225 in the type of the evolution.
13226
13227 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13228
13229 PR tree-optimization/89386
13230 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13231 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13232 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13233 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13234 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13235 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13236 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13237 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13238 (su, r): Handle the unspecs above.
13239 (bt): New int attribute.
13240 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13241 * internal-fn.c (first_commutative_argument): Commutativity info for
13242 above.
13243 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13244 (umulhrs_optab): New optabs.
13245 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13246 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13247 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13248 function.
13249 (vect_vect_recog_func_ptrs): Add it.
13250
13251 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13252
13253 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13254 code.
13255
13256 2019-09-11 Nathan Sidwell <nathan@acm.org>
13257
13258 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13259 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13260
13261 2019-09-11 Richard Biener <rguenther@suse.de>
13262
13263 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13264 * lto-wrapper.c (merge_and_complain): Pick up -g.
13265 (append_compiler_options): Likewise.
13266 (run_gcc): Re-instantiate handling -g0 at link-time.
13267 * doc/invoke.texi (flto): Document debug info generation.
13268
13269 2019-09-11 Richard Biener <rguenther@suse.de>
13270
13271 PR tree-optimization/90387
13272 * vr-values.c (vr_values::extract_range_basic): After inlining
13273 simplify non-constant __builtin_constant_p to false.
13274
13275 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13276
13277 PR rtl-optimization/89795
13278 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13279 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13280
13281 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13282
13283 PR tree-optimization/91723
13284 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13285 instead of pointer equality when checking if argument vectypes are
13286 the same.
13287
13288 PR middle-end/91725
13289 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13290 of get_nonzero_bits, only call it for integral types.
13291
13292 2019-09-11 Richard Biener <rguenther@suse.de>
13293
13294 Revert
13295 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13296
13297 * match.pd: Add flag_unsafe_math_optimizations check
13298 before deciding on the widest type in a binary math operation.
13299
13300 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13301
13302 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13303 and CALL_REALLY_USED_REGISTERS must be defined, and that
13304 CALL_REALLY_USED_REGISTERS is preferred.
13305 * doc/tm.texi: Regenerate.
13306 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13307 (call_really_used_regs): Likewise.
13308 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13309 CALL_REALLY_USED_REGISTERS are defined.
13310 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13311 initial value if defined.
13312 (initial_call_really_used_regs): Delete.
13313 (saved_call_really_used_regs): Likewise.
13314 (CALL_REALLY_USED_REGNO_P): Likewise.
13315 (init_reg_sets): Remove handling of call_really_used_regs.
13316 (save_register_info, restore_register_info, globalize_reg): Likewise.
13317 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13318 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13319 outside operand_reg_set.
13320 (fix_register): Don't change call_used_regs if
13321 CALL_REALLY_USED_REGISTERS is defined.
13322 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13323 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13324 instead of call_really_used_regs.
13325 (csky_conditional_register_usage): Remove the old handling of
13326 call_used_regs and change the handling of call_really_used_regs
13327 to use call_used_regs instead.
13328 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13329 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13330 making a register fixed.
13331 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13332 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13333 instead of call_really_used_regs.
13334 (m32r_conditional_register_usage): Don't set call_used_regs when
13335 making a register fixed.
13336 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13337 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13338 instead of call_really_used_regs.
13339 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13340 (mips_cfun_call_saved_reg_p): Likewise.
13341 (mips_swap_registers): Remove the old handling of call_used_regs
13342 and change the handling of call_really_used_regs to use call_used_regs
13343 instead.
13344 (mips_conditional_register_usage): Likewise.
13345 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13346 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13347 instead of call_really_used_regs.
13348 (mn10300_get_live_callee_saved_regs): Likewise.
13349 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13350 (mn10300_conditional_register_usage): Don't set call_used_regs when
13351 making a register fixed.
13352 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13353 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13354 Remove the old handling of call_used_regs and change the handling
13355 of call_really_used_regs to use call_used_regs instead.
13356 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13357 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13358 instead of call_really_used_regs.
13359 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13360 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13361 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13362 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13363 (s390_conditional_register_usage): Remove the old handling of
13364 call_used_regs and change the handling of call_really_used_regs
13365 to use call_used_regs instead.
13366 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13367 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13368 (sh_fix_range, reg_unused_after): Likewise.
13369 (sh_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/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13373 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13374 call_used_regs when making a register fixed.
13375 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13376 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13377 call_used_regs when making a register fixed.
13378 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13379 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13380 set call_used_regs when making a register fixed.
13381 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13382 * config/visium/visium.c (visium_conditional_register_usage): Remove
13383 the old handling of call_used_regs and change the handling of
13384 call_really_used_regs to use call_used_regs instead.
13385
13386 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13387
13388 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13389 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13390 * reginfo.c (call_used_regs): New macro.
13391
13392 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13393
13394 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13395 fixed_regs test.
13396 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13397 (bpf_expand_epilogue): Likewise.
13398 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13399 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13400 (ft32_expand_epilogue): Likewise.
13401 * config/i386/i386.c (ix86_save_reg): Likewise.
13402 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13403 (moxie_expand_epilogue): Likewise.
13404 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13405 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13406 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13407
13408 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13409
13410 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13411 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13412 instead of testing call_used_regs directly.
13413 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13414 (aarch64_components_for_bb): Likewise.
13415 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13416 * config/arc/arc.c (arc_must_save_register): Likewise.
13417 (arc_epilogue_uses): Likewise.
13418 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13419 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13420 (arm_compute_save_reg0_reg12_mask): Likewise.
13421 (arm_compute_save_core_reg_mask): Likewise.
13422 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13423 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13424 (cmse_nonsecure_entry_clear_before_return): Likewise.
13425 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13426 (arm_expand_epilogue): Likewise.
13427 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13428 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13429 (_reg_unused_after): Likewise.
13430 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13431 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13432 (add_to_reg, hwloop_optimize): Likewise.
13433 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13434 (bpf_expand_epilogue): Likewise.
13435 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13436 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13437 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13438 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13439 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13440 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13441 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13442 * config/frv/frv.c (frv_stack_info): Likewise.
13443 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13444 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13445 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13446 (move_callee_saved_registers): Likewise.
13447 * config/h8300/h8300.c (byte_reg): Likewise.
13448 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13449 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13450 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13451 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13452 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13453 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13454 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13455 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13456 * config/m32c/m32c.c (need_to_save): Likewise.
13457 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13458 * config/mcore/mcore.c (calc_live_regs): Likewise.
13459 * config/microblaze/microblaze.c (microblaze_must_save_register):
13460 Likewise.
13461 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13462 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13463 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13464 (mmix_expand_epilogue): Likewise.
13465 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13466 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13467 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13468 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13469 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13470 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13471 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13472 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13473 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13474 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13475 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13476 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13477 * config/rl78/rl78.c (need_to_save): Likewise.
13478 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13479 (rs6000_stack_info, generate_set_vrsave): Likewise.
13480 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13481 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13482 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13483 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13484 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13485 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13486 (save_local_or_in_reg_p): Likewise.
13487 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13488 (xstormy16_epilogue_uses): Likewise.
13489 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13490 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13491 * config/v850/v850.c (compute_register_save_size): Likewise.
13492 * config/vax/vax.c (vax_expand_prologue): Likewise.
13493 * config/visium/visium.c (visium_save_reg_p): Likewise.
13494 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13495 * cselib.c (cselib_process_insn): Likewise.
13496 * df-scan.c (df_get_entry_block_def_set): Likewise.
13497 * function.c (aggregate_value_p): Likewise.
13498 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13499 * ira-lives.c (process_bb_node_lives): Likewise.
13500 * ira.c (do_reload): Likewise.
13501 * lra-lives.c (process_bb_lives): Likewise.
13502 * lra-remat.c (lra_remat): Likewise.
13503 * lra.c (lra): Likewise.
13504 * postreload.c (reload_combine_recognize_pattern): Likewise.
13505 (reload_cse_move2add): Likewise.
13506 * recog.c (peep2_find_free_register): Likewise.
13507 * regrename.c (check_new_reg_p): Likewise.
13508 * reload.c (find_equiv_reg): Likewise.
13509 * reload1.c (reload, find_reg): Likewise.
13510 * sel-sched.c (init_hard_regs_data): Likewise.
13511
13512 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13513
13514 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13515 regs_invalidated_by_call & ~fixed_reg_set instead of
13516 call_used_or_fixed_regs & ~fixed_reg_set.
13517 * config/sh/sh.c (output_stack_adjust): Likewise.
13518
13519 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13520
13521 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13522 (call_used_reg_set): Delete.
13523 (call_used_or_fixed_regs): New macro.
13524 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13525 of call_used_reg_set.
13526 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13527 instead of call_used_regs.
13528 (save_call_clobbered_regs): Likewise.
13529 * cfgcleanup.c (old_insns_match_p): Likewise.
13530 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13531 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13532 Likewise.
13533 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13534 * config/sh/sh.c (output_stack_adjust): Likewise.
13535 * final.c (collect_fn_hard_reg_usage): Likewise.
13536 * ira-build.c (ira_build): Likewise.
13537 * ira-color.c (calculate_saved_nregs): Likewise.
13538 (allocno_reload_assign, calculate_spill_cost): Likewise.
13539 * ira-conflicts.c (ira_build_conflicts): Likewise.
13540 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13541 * ira-lives.c (process_bb_node_lives): Likewise.
13542 * ira.c (setup_reg_renumber): Likewise.
13543 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13544 * lra-constraints.c (need_for_call_save_p): Likewise.
13545 (need_for_split_p, inherit_in_ebb): Likewise.
13546 * lra-lives.c (process_bb_lives): Likewise.
13547 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13548 * postreload.c (reload_combine): Likewise.
13549 * regrename.c (find_rename_reg): Likewise.
13550 * reload1.c (reload_as_needed): Likewise.
13551 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13552 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13553 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13554
13555 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13556
13557 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13558 (no_caller_save_reg_set): Delete.
13559 * caller-save.c (init_caller_save): Don't initialize it.
13560 * ira-conflicts.c (ira_build_conflicts): Calculate
13561 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13562
13563 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13564
13565 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13566 (target_hard_regs::x_savable_regs): New field.
13567 (call_fixed_reg_set): Delete.
13568 (savable_regs): New macro,
13569 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13570 (init_reg_sets_1): Likewise. Initialize savable_regs.
13571 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13572 for all registers. Set savable_regs instead of call_fixed_reg_set.
13573 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13574 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13575 * config/sh/sh.c (output_stack_adjust): Likewise.
13576
13577 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13578
13579 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13580 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13581 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13582
13583 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13584
13585 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13586 * rtlanal.c (get_call_rtx_from): Likewise.
13587 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13588 than the pattern to get_call_rtx_from.
13589 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13590 an rtx_insn * instead of an rtx.
13591 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13592
13593 2019-09-10 Martin Liska <mliska@suse.cz>
13594
13595 * common.opt: Use newly added WarnRemoved.
13596 * config/aarch64/aarch64.opt: Likewise.
13597 * config/arm/arm.opt: Likewise.
13598 * config/i386/i386.opt: Likewise.
13599 * config/ia64/ia64.opt: Likewise.
13600 * config/rs6000/rs6000.opt: Likewise.
13601 * doc/options.texi: Document WarnRemoved properly.
13602 * dwarf2out.c (gen_producer_string): Handle renamed
13603 OPT_SPECIAL_warn_removed.
13604 * lto-opts.c (lto_write_options): Likewise.
13605 * lto-wrapper.c (merge_and_complain): Likewise.
13606 * opts-common.c (decode_cmdline_option): Likewise.
13607 (prune_options): Likewise.
13608 (read_cmdline_option): Likewise.
13609 (control_warning_option): Likewise.
13610 * opts.c (print_filtered_help): Likewise.
13611 * optc-gen.awk: Parse for WarnRemoved and make usage
13612 of Deprecated an error.
13613 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13614
13615 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13616
13617 * doc/install.texi: Fix syntax for html generation.
13618
13619 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13620
13621 PR middle-end/91680
13622 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13623 the shift type to type.
13624
13625 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13626
13627 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13628 FDPIC mode.
13629 (stack_protect_combined_test_insn): Likewise.
13630
13631 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13632 Mickaël Guêné <mickael.guene@st.com>
13633
13634 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13635 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13636 (load_tp_soft_fdpic): New pattern.
13637 (load_tp_soft): Disable in FDPIC mode.
13638
13639 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13640 Mickaël Guêné <mickael.guene@st.com>
13641
13642 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13643 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13644 (arm_call_tls_get_addr): Add FDPIC support.
13645 (legitimize_tls_address): Likewise.
13646 (arm_emit_tls_decoration): Likewise.
13647
13648 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13649 Mickaël Guêné <mickael.guene@st.com>
13650
13651 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13652 support.
13653 (arm_trampoline_init): Likewise.
13654 (arm_trampoline_adjust_address): Likewise.
13655 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13656
13657 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13658 Mickaël Guêné <mickael.guene@st.com>
13659
13660 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13661 (legitimize_pic_address): Enforce binding rules on function
13662 pointers in FDPIC mode.
13663 (arm_assemble_integer): Likewise.
13664
13665 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13666 Mickaël Guêné <mickael.guene@st.com>
13667
13668 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13669 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13670 FDPIC.
13671
13672 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13673 Mickaël Guêné <mickael.guene@st.com>
13674
13675 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13676 field.
13677
13678 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13679 Mickaël Guêné <mickael.guene@st.com>
13680
13681 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13682 in FDPIC mode.
13683 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13684 new function.
13685 * config/arm/arm.c (arm_option_override): Define pic register to
13686 FDPIC_REGNUM.
13687 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13688 have no decl or go through PLT.
13689 (calculate_pic_address_constant): New function.
13690 (legitimize_pic_address): Call calculate_pic_address_constant.
13691 (arm_load_pic_register): Handle TARGET_FDPIC.
13692 (arm_is_segment_info_known): New function.
13693 (arm_pic_static_addr): Add support for FDPIC.
13694 (arm_load_function_descriptor): New function.
13695 (arm_emit_call_insn): Add support for FDPIC.
13696 (arm_assemble_integer): Add support for FDPIC.
13697 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13698 Define. (FDPIC_REGNUM): New define.
13699 * config/arm/arm.md (call): Add support for FDPIC.
13700 (call_value): Likewise.
13701 (restore_pic_register_after_call): New pattern.
13702 (untyped_call): Disable if FDPIC.
13703 (untyped_return): Likewise.
13704 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13705
13706 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13707 Mickaël Guêné <mickael.guene@st.com>
13708
13709 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13710 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13711 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13712 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13713 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13714 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13715 * config/arm/uclinuxfdpiceabi.h: New file.
13716
13717 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13718
13719 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13720
13721 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13722 Mickaël Guêné <mickael.guene@st.com>
13723
13724 * config/arm/arm.opt: Add -mfdpic option.
13725 * doc/invoke.texi: Add documentation for -mfdpic.
13726
13727 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13728
13729 * expmed.c (extract_bit_field): Update function comment
13730 regarding alt_rtl.
13731 * expr.c (expand_expr_real): Update function comment
13732 regarding alt_rtl.
13733 (expand_misaligned_mem_ref): New helper function.
13734 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13735 Remove duplicate assignment to "base" at case MEM_REF.
13736 Remove a shadowed variable "unsignedp" at case VCE.
13737
13738 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13739
13740 * regset.h (regs_invalidated_by_call_regset): Delete.
13741 (fixed_reg_set_regset): Likewise.
13742 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13743 (fixed_reg_set_regset, persistent_obstack): Likewise.
13744 (init_reg_sets_1, globalize_reg): Update accordingly.
13745 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13746 instead of a bitmap.
13747 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13748 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13749 instead of regs_invalidated_by_call_regset.
13750 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13751 * df-scan.c (df_scan_start_dump): Likewise.
13752 * dse.c (copy_fixed_regs): Likewise.
13753 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13754
13755 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13756
13757 * array-traits.h: New file.
13758 * coretypes.h (array_traits, bitmap_view): New types.
13759 * bitmap.h: Include "array-traits.h"
13760 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13761 (base_bitmap_view, bitmap_view): New classes.
13762 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13763 * hard-reg-set.h: Include array-traits.h.
13764 (array_traits<HARD_REG_SET>): New struct.
13765 * regset.h (IOR_REG_SET_HRS): New macro.
13766 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13767 rather than iterating over each hard register.
13768 * sched-deps.c (sched_analyze_insn): Likewise.
13769 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13770
13771 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13772
13773 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13774 instead of a HARD_REG_SET *.
13775 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13776 (ira_build): Update call accordingly.
13777 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13778
13779 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13780
13781 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13782 (HARD_REG_SET::operator!=): Likewise.
13783 (hard_reg_set_equal_p): Delete.
13784 * cfgcleanup.c (old_insns_match_p): Use == instead of
13785 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13786 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13787 (add_allocno_hard_regs_to_forest): Likewise.
13788 (setup_allocno_available_regs_num): Likewise.
13789 * ira.c (setup_pressure_classes): Likewise.
13790 (setup_allocno_and_important_classes): Likewise.
13791 (setup_reg_class_relations): Likewise.
13792 * lra-lives.c (process_bb_lives): Likewise.
13793 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13794
13795 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13796
13797 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13798 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13799 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13800 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13801 Likewise.
13802 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13803 * ira.c (setup_reg_renumber): Likewise.
13804 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13805 * regrename.c (regrename_find_superclass): Likewise.
13806 * reload1.c (find_reg): Likewise.
13807
13808 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13809
13810 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13811 * caller-save.c (setup_save_areas): Use "&~" instead of
13812 AND_COMPL_HARD_REG_SET.
13813 (save_call_clobbered_regs): Likewise.
13814 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13815 Likewise.
13816 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13817 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13818 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13819 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13820 (mips_conditional_register_usage): Likewise.
13821 * config/sh/sh.c (output_stack_adjust): Likewise.
13822 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13823 (setup_profitable_hard_regs): Likewise.
13824 (get_conflict_and_start_profitable_regs): Likewise.
13825 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13826 (ira_build_conflicts): Likewise.
13827 * ira-costs.c (restrict_cost_classes): Likewise.
13828 (setup_regno_cost_classes_by_aclass): Likewise.
13829 * ira-lives.c (process_bb_node_lives): Likewise.
13830 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13831 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13832 (setup_allocno_and_important_classes, setup_class_translate_array)
13833 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13834 Likewise.
13835 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13836 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13837 (process_alt_operands, inherit_in_ebb): Likewise.
13838 * lra-eliminations.c (update_reg_eliminate): Likewise.
13839 * lra-lives.c (process_bb_lives): Likewise.
13840 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13841 * resource.c (find_dead_or_set_registers): Likewise.
13842 (mark_target_live_regs): Likewise.
13843 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13844 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13845 (implicit_clobber_conflict_p): Likewise.
13846 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13847 (try_shrink_wrapping): Likewise.
13848
13849 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13850
13851 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13852 (HARD_REG_SET::operator|=): Likewise.
13853 (IOR_HARD_REG_SET): Delete.
13854 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13855 IOR_HARD_REG_SET.
13856 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13857 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13858 * final.c (collect_fn_hard_reg_usage): Likewise.
13859 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13860 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13861 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13862 (propagate_some_info_from_allocno): Likewise.
13863 (copy_info_to_removed_store_destinations): Likewise.
13864 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13865 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13866 (fast_allocation): Likewise.
13867 * ira-conflicts.c (ira_build_conflicts): Likewise.
13868 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13869 (process_bb_node_lives): Likewise.
13870 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13871 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13872 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13873 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13874 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13875 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13876 (process_bb_lives): Likewise.
13877 * lra-spills.c (assign_spill_hard_regs): Likewise.
13878 * postreload.c (reload_combine): Likewise.
13879 * reginfo.c (init_reg_sets_1): Likewise.
13880 * regrename.c (merge_overlapping_regs, find_rename_reg)
13881 (merge_chains): Likewise.
13882 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13883 (find_reload_regs, finish_spills, choose_reload_regs_init)
13884 (emit_reload_insns): Likewise.
13885 * reorg.c (redundant_insn): Likewise.
13886 * resource.c (find_dead_or_set_registers, mark_set_resources)
13887 (mark_target_live_regs): Likewise.
13888 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13889 * sched-deps.c (sched_analyze_insn): Likewise.
13890 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13891 (find_best_reg_for_expr): Likewise.
13892 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13893
13894 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13895
13896 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13897 (HARD_REG_SET::operator&): Likewise.
13898 (AND_HARD_REG_SET): Delete.
13899 * caller-save.c (setup_save_areas): Use "&" instead of
13900 AND_HARD_REG_SET.
13901 (save_call_clobbered_regs): Likewise.
13902 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13903 * config/m32c/m32c.c (reduce_class): Likewise.
13904 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13905 * final.c (get_call_reg_set_usage): Likewise.
13906 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13907 (setup_left_conflict_sizes_p): Likewise.
13908 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13909 (ira_build_conflicts): Likewise.
13910 * ira-costs.c (restrict_cost_classes): Likewise.
13911 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13912 (setup_reg_class_relations): Likewise.
13913 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13914 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13915 * resource.c (find_dead_or_set_registers): Likewise.
13916 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13917
13918 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13919
13920 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13921 (COMPL_HARD_REG_SET): Delete.
13922 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13923 of COMPL_HARD_REG_SET.
13924 (try_rename_operands): Likewise.
13925 * config/sh/sh.c (push_regs): Likewise.
13926 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13927 * lra-constraints.c (contains_reg_p): Likewise.
13928 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13929
13930 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13931
13932 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13933 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13934 of COPY_HARD_REG_SET.
13935 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13936 (epiphany_conditional_register_usage): Likewise.
13937 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13938 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13939 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13940 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13941 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13942 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13943 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13944 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13945 * config/sh/sh.c (output_stack_adjust): Likewise.
13946 * final.c (collect_fn_hard_reg_usage): Likewise.
13947 (get_call_reg_set_usage): Likewise.
13948 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13949 (ira_flattening): Likewise.
13950 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13951 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13952 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13953 (ira_reassign_pseudos): Likewise.
13954 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13955 (ira_build_conflicts): Likewise.
13956 * ira-costs.c (restrict_cost_classes): Likewise.
13957 (setup_regno_cost_classes_by_aclass): Likewise.
13958 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13959 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13960 (setup_stack_reg_pressure_class, setup_pressure_classes)
13961 (setup_allocno_and_important_classes, setup_class_translate_array)
13962 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13963 (ira_setup_eliminable_regset): Likewise.
13964 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13965 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13966 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13967 (process_alt_operands, inherit_in_ebb): Likewise.
13968 * lra-lives.c (process_bb_lives): Likewise.
13969 * lra-spills.c (assign_spill_hard_regs): Likewise.
13970 * lra.c (lra): Likewise.
13971 * mode-switching.c (new_seginfo): Likewise.
13972 * postreload.c (reload_combine): Likewise.
13973 * reg-stack.c (straighten_stack): Likewise.
13974 * reginfo.c (save_register_info, restore_register_info): Likewise.
13975 (init_reg_sets_1, record_subregs_of_mode): Likewise
13976 * regrename.c (create_new_chain, rename_chains): Likewise.
13977 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13978 (find_reload_regs): Likewise.
13979 * resource.c (find_dead_or_set_registers): Likewise.
13980 (mark_target_live_regs): Likewise.
13981 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13982
13983 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13984
13985 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13986 (note_pattern_stores): Declare.
13987 (note_stores): Take an rtx_insn *.
13988 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13989 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13990 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13991 (note_stores): Take an rtx_insn * as argument and process
13992 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13993 (note_pattern_stores): ...this.
13994 (find_first_parameter_load): Pass the insn rather than
13995 its pattern to note_stores.
13996 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13997 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13998 (insert_one_insn): Likewise.
13999 * combine.c (combine_instructions): Likewise.
14000 (likely_spilled_retval_p): Likewise.
14001 (try_combine): Use note_pattern_stores instead of note_stores.
14002 (record_dead_and_set_regs): Pass the insn rather than its pattern
14003 to note_stores.
14004 (reg_dead_at_p): Likewise.
14005 * config/bfin/bfin.c (workaround_speculation): Likewise.
14006 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14007 rather than an rtx.
14008 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14009 instead of note_stores.
14010 (frv_optimize_membar_local): Pass the insn rather than its pattern
14011 to note_stores.
14012 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14013 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14014 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14015 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14016 (mips_reorg_process_insns): Likewise.
14017 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14018 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14019 rather than rtxes.
14020 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14021 its pattern to note_stores.
14022 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14023 of note_stores.
14024 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14025 the insn to note_stores.
14026 (prescan_insns_for_dce): Update call accordingly.
14027 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14028 to note_stores.
14029 * df-problems.c (can_move_insns_across): Likewise.
14030 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14031 * function.c (assign_parm_setup_reg): Likewise.
14032 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14033 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14034 (single_set_gcse): Likewise.
14035 * ira.c (validate_equiv_mem): Likewise.
14036 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14037 for no_equiv.
14038 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14039 pattern to note_stores.
14040 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14041 * loop-iv.c (simplify_using_initial_values): Likewise.
14042 * mode-switching.c (optimize_mode_switching): Likewise.
14043 * optabs.c (emit_libcall_block_1): Likewise.
14044 (expand_atomic_compare_and_swap): Likewise.
14045 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14046 (record_opr_changes): Likewise. Remove explicit handling of
14047 CALL_INSN_FUNCTION_USAGE.
14048 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14049 * regcprop.c (kill_clobbered_values): Likewise.
14050 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14051 to note_stores.
14052 * regrename.c (build_def_use): Likewise.
14053 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14054 for mark_not_eliminable.
14055 (reload_as_needed): Pass the insn rather than its pattern
14056 to note_stores.
14057 (emit_output_reload_insns): Likewise.
14058 * resource.c (mark_target_live_regs): Likewise.
14059 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14060 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14061 instead of note_stores.
14062 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14063 its pattern to note_stores.
14064 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14065 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14066
14067 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14068
14069 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14070 than a #define. Use a structure rather than an array as the
14071 fallback definition. Remove special cases for low array sizes.
14072 (const_hard_reg_set): New typedef.
14073 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14074 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14075 (hard_reg_set_empty_p): Likewise.
14076 (SET_HARD_REG_BIT): Use a function rather than a macro to
14077 handle the case in which HARD_REG_SET is a structure.
14078 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14079 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14080 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14081 (IOR_COMPL_HARD_REG_SET): Likewise.
14082 (hard_reg_set_iterator::pset): Constify the pointer target.
14083 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14084 of a "const HARD_REG_SET". Update the handling of non-integer
14085 HARD_REG_SETs.
14086 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14087 * reload.h: Likewise.
14088 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14089 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14090 of a "const HARD_REG_SET".
14091 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14092 (range_in_hard_reg_set_p): Likewise.
14093 * ira-costs.c (restrict_cost_classes): Likewise.
14094 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14095 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14096 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14097 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14098 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14099 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14100 take an unsigned int and open-code the HARD_REG_SET operations.
14101
14102 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14103
14104 * Makefile.in (OBJS): Remove bt-load.o.
14105 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14106 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14107 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14108 document that the option no longer does anything.
14109 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14110 * target.def (branch_target_register_class): Delete.
14111 (branch_target_register_callee_saved): Likewise.
14112 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14113 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14114 * doc/tm.texi: Regenerate.
14115 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14116 (make_pass_branch_target_load_optimize2): Likewise.
14117 * passes.def (pass_branch_target_load_optimize1): Likewise.
14118 (pass_branch_target_load_optimize2): Likewise.
14119 * targhooks.h (default_branch_target_register_class): Likewise.
14120 * targhooks.c (default_branch_target_register_class): Likewise.
14121 * opt-suggestions.c (test_completion_valid_options): Remove
14122 -fbtr-bb-exclusive from the list of test options.
14123 * bt-load.c: Remove.
14124
14125 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14126
14127 * match.pd: Add flag_unsafe_math_optimizations check
14128 before deciding on the widest type in a binary math operation.
14129
14130 2019-09-09 Martin Liska <mliska@suse.cz>
14131
14132 * config/i386/i386.opt: Update comment of removed
14133 options that are preserved only for backward
14134 compatibility.
14135
14136 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14137
14138 PR target/87853
14139 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14140 instead of __v16qs.
14141
14142 PR target/91704
14143 * config/i386/avxintrin.h (__v32qs): New typedef.
14144 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14145 instead of __v32qi.
14146
14147 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14148
14149 * doc/invoke.texi (Option Summary): Cover eBPF.
14150 (eBPF Options): New section.
14151 * doc/extend.texi (BPF Built-in Functions): Likewise.
14152 (BPF Kernel Helpers): Likewise.
14153
14154 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14155
14156 * config.gcc: Support for bpf-*-* targets.
14157 * common/config/bpf/bpf-common.c: New file.
14158 * config/bpf/t-bpf: Likewise.
14159 * config/bpf/predicates.md: Likewise.
14160 * config/bpf/constraints.md: Likewise.
14161 * config/bpf/bpf.opt: Likewise.
14162 * config/bpf/bpf.md: Likewise.
14163 * config/bpf/bpf.h: Likewise.
14164 * config/bpf/bpf.c: Likewise.
14165 * config/bpf/bpf-protos.h: Likewise.
14166 * config/bpf/bpf-opts.h: Likewise.
14167 * config/bpf/bpf-helpers.h: Likewise.
14168 * config/bpf/bpf-helpers.def: Likewise.
14169
14170 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14171
14172 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14173 indirect_calls.
14174
14175 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14176
14177 * opt-functions.awk (integer_range_info): Make sure values are in
14178 numeric context before operating with them.
14179
14180 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14181
14182 * genemit.c (gen_split): Print the filename and line number where the
14183 splitter (or peephole2) was defined, to the dump file.
14184
14185 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14186
14187 PR tree-optimization/91665
14188 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14189 incompatible with the type of PHI result.
14190
14191 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14192
14193 PR target/91684
14194 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14195 gen_unaligned_storedi for 4-byte aligned addresses.
14196
14197 2019-09-06 Jim Wilson <jimw@sifive.com>
14198
14199 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14200 change.
14201
14202 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14203
14204 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14205
14206 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14207
14208 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14209 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14210
14211 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14212
14213 PR target/91654
14214 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14215 cost of SSE->integer and integer->SSE moves from 2 to 6.
14216 (core_cost): Ditto.
14217
14218 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14219
14220 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14221 before testing TYPE_TRANSPARENT_AGGR.
14222 * calls.c (initialize_argument_information, load_register_parameters):
14223 Likewise.
14224
14225 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14226
14227 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14228 high regs.
14229 (cmp_ior): Likewise.
14230
14231 2019-09-06 Martin Liska <mliska@suse.cz>
14232
14233 * doc/match-and-simplify.texi: Separate tuples with ;.
14234
14235 2019-09-06 Martin Liska <mliska@suse.cz>
14236
14237 PR c++/91125
14238 * Makefile.in: Remove tlink.o.
14239 * collect2.c (do_link): New function isolated
14240 from do_tlink.
14241 (main): Use.
14242 * collect2.h (do_tlink): Remove declaration of do_tlink.
14243 * doc/extend.texi: Remove documentation of -frepo.
14244 * doc/invoke.texi: Likewise.
14245 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14246 * tlink.c: Remove.
14247
14248 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14249 Jim Wilson <jimw@sifive.com>
14250
14251 PR target/91635
14252 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14253 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14254 paradoxical_subreg_p (operands[0]).
14255 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14256 use as intermediate value.
14257
14258 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14259
14260 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14261 (sync_compare_and_swap<mode>_insn): Likewise.
14262
14263 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14264
14265 PR middle-end/91615
14266 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14267 without movmisalign optab.
14268
14269 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14270
14271 PR middle-end/91001
14272 PR middle-end/91105
14273 PR middle-end/91106
14274 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14275 types, use type of their first field instead of type of
14276 args[i].tree_value.
14277
14278 2019-09-05 Richard Biener <rguenther@suse.de>
14279
14280 PR rtl-optimization/91656
14281 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14282 of early out.
14283
14284 2019-09-05 Richard Biener <rguenther@suse.de>
14285
14286 PR middle-end/90501
14287 * tree-inline.c (declare_return_variable): Mark the return
14288 slot as addressable after building an address of it.
14289
14290 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14291
14292 * doc/install.texi: Update and clarify requirements to build GNAT.
14293
14294 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14295
14296 PR middle-end/91577
14297 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14298 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14299 call to be in memory.
14300 (pass_expand::execute): Call discover_nonconstant_array_refs before
14301 setting currently_expanding_to_rtl.
14302
14303 2019-09-04 Caroline Tice <cmtice@google.com>
14304
14305 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14306 specified together.
14307
14308 2019-09-04 Marek Polacek <polacek@redhat.com>
14309
14310 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14311
14312 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14313
14314 PR target/32413
14315 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14316 for QI and HImode moves between SSE and general registers.
14317
14318 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14319
14320 PR c/78736
14321 * doc/invoke.texi: Document -Wenum-conversion.
14322
14323 2019-09-04 Richard Biener <rguenther@suse.de>
14324
14325 PR rtl-optimization/36262
14326 * postreload-gcse.c: Include intl.h and gcse.h.
14327 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14328 to avoid linear list walk.
14329 (record_last_mem_set_info): Gate off if not computing transparentness.
14330 (get_bb_avail_insn): If transparentness isn't computed give up
14331 early.
14332 (gcse_after_reload_main): Skip compute_transp and extended PRE
14333 if gcse_or_cprop_is_too_expensive says so.
14334
14335 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14336
14337 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14338 noinit section.
14339 (msp430_select_section): Handle decls with the "noinit" attribute with
14340 default_elf_select_section.
14341 Handle SECCAT_RODATA_MERGE_* section types with
14342 default_elf_select_section.
14343 Add comments about handling of unsupported section types.
14344 (msp430_section_type_flags): Remove handling of the noinit section.
14345
14346 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14347
14348 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14349 conflicting msp430-specific attributes.
14350 (msp430_section_attr): Likewise.
14351 Add warnings about conflicts with generic "noinit" and "section"
14352 attributes.
14353 Fix grammar in -mlarge error message.
14354 (msp430_data_attr): Rename to msp430_persist_attr.
14355 Add warnings about conflicts with generic "noinit" and "section"
14356 attributes.
14357 Add warning for when variable is not initialized.
14358 Chain conditionals which prevent the attribute being added.
14359 (ATTR_EXCL): New helper.
14360 (attr_reent_exclusions): New exclusion table.
14361 (attr_naked_exclusions): Likewise.
14362 (attr_crit_exclusions): Likewise.
14363 (attr_lower_exclusions): Likewise.
14364 (attr_upper_exclusions): Likewise.
14365 (attr_either_exclusions): Likewise.
14366 (attr_persist_exclusions): Likewise.
14367 (msp430_attribute_table): Update with exclusion rules.
14368 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14369 has a section.
14370
14371 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14372
14373 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14374 (msp430_handle_generic_attribute): New function.
14375 * doc/tm.texi: Regenerate.
14376 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14377 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14378 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14379 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14380
14381 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14382
14383 PR tree-optimization/91504
14384 * match.pd: Add ((~a & b) ^a) --> (a | b).
14385
14386 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14387
14388 PR target/91604
14389 * config/i386/i386-expand.c (split_double_mode): If there is more than
14390 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14391 already split matching MEM operand instead of calling adjust_address
14392 again.
14393
14394 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14395
14396 * config.gcc: Obsolete spu target. Remove references to spu.
14397 * configure.ac: Remove references to spu.
14398 * configure: Regenerate.
14399 * config/spu/: Remove directory.
14400 * common/config/spu/: Remove directory.
14401
14402 * doc/extend.texi: Remove references to spu.
14403 * doc/invoke.texi: Likewise.
14404 * doc/md.texi: Likewise.
14405 * doc/sourcebuild.texi: Likewise.
14406
14407 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14408
14409 PR middle-end/91603
14410 PR middle-end/91612
14411 PR middle-end/91613
14412 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14413 and SSA_NAME referring to CONSTANT_P correctly.
14414
14415 2019-09-03 Richard Biener <rguenther@suse.de>
14416
14417 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14418 (vn_nary_op_insert): Likewise.
14419 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14420 (vn_nary_op_lookup): Likewise.
14421 (vn_nary_op_insert): Likewise.
14422
14423 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14424
14425 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14426 (*op0, 1) instead of XEXP (*op1, 0).
14427
14428 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14429
14430 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14431 (aarch64_fjcvtzs): New define_insn.
14432 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14433 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14434 Add AARCH64_JSCVT.
14435 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14436 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14437 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14438 __ARM_FEATURE_JCVT where appropriate.
14439 * config/aarch64/arm_acle.h (__jcvt): Define.
14440
14441 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14442
14443 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14444 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14445 (aarch64_<frintnzs_op><mode>): New define_insn.
14446 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14447 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14448 __ARM_FEATURE_FRINT when appropriate.
14449 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14450 frint32x, frint64z, frint64x.
14451 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14452 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14453 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14454 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14455 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14456 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14457 * config/aarch64/iterators.md (VSFDF): Define.
14458 (FRINTNZX): Likewise.
14459 (frintnzs_op): Likewise.
14460
14461 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14462
14463 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14464 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14465 Cortex-A34.
14466 * config/aarch64/aarch64-tune.md: Regenerated.
14467 * doc/invoke.texi: Document the new processors.
14468
14469 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14470
14471 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14472 string.
14473 (ssbs): Likewise.
14474 (sve2): Likewise.
14475 (sve2-sm4): Likewise.
14476 (sveaes): Likewise.
14477 (svesha3): Likewise.
14478 (svebitperm): Likewise.
14479
14480 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14481 Richard Biener <rguenther@suse.de>
14482
14483 PR tree-optimization/91597
14484 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14485 BIT_AND_EXPR optimization for pointers, even if both operand
14486 ranges don't include NULL, the result can be NULL.
14487
14488 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14489
14490 PR middle-end/91605
14491 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14492 (non_mem_decl_p): ...this.
14493 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14494 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14495 unconditionally as before.
14496
14497 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14498
14499 PR target/91323
14500 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14501 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14502 * tree.def (LTGT_EXPR): Likewise.
14503 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14504
14505 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14506
14507 PR go/91617
14508 * fold-const.c (range_check_type): For enumeral and boolean
14509 type, pass 1 to type_for_size langhook instead of
14510 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14511 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14512 (build_range_check): Don't call unsigned_type_for for pointer types.
14513 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14514 range_check_type result.
14515
14516 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14517
14518 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14519 (replace_ref): Do not replace a chain of only two candidates which are
14520 valid memory references.
14521
14522 2019-09-02 Martin Liska <mliska@suse.cz>
14523
14524 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14525 Bail out when we'll end up with the same number of clusters as
14526 at the beginning.
14527 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14528 (jump_table_cluster::can_be_handled): Remove the guard
14529 as it's already handled in ::is_enabled. Allocate output
14530 after early bail out.
14531
14532 2019-09-02 Martin Liska <mliska@suse.cz>
14533
14534 PR gcov-profile/91601
14535 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14536 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14537 also negative edges.
14538 (circuit): Handle also negative edges as they can happen
14539 in some situations.
14540
14541 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14542
14543 PR target/91472
14544 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14545 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14546 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14547
14548 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14549
14550 PR middle-end/91623
14551 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14552 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14553 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14554 zero vector.
14555
14556 PR lto/91572
14557 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14558 GIMPLE_ASM TREE_LIST operands.
14559
14560 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14561
14562 * doc/generic.texi (Unary and Binary Expressions): Mark up
14563 an instance of TYPE_MIN.
14564
14565 2019-08-31 Stafford Horne <shorne@gmail.com>
14566
14567 * config/or1k/constraints.md (t): New constraint.
14568 * config/or1k/or1k.h (GOT_REGS): New register class.
14569 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14570
14571 2019-08-30 Jim Wilson <jimw@sifive.com>
14572
14573 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14574 and -fpic and -mplt then disable -msave-restore and warn.
14575
14576 2019-08-30 Martin Sebor <msebor@redhat.com>
14577
14578 PR middle-end/91599
14579 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14580 the statement doesn't have one.
14581 * gimple-pretty-print.c (percent_G_format): Same.
14582
14583 PR middle-end/91584
14584 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14585 before using them to validate MEM_REF offset.
14586
14587 2019-08-30 Marek Polacek <polacek@redhat.com>
14588
14589 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14590
14591 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14592
14593 * config/arm/arm.md (unaligned_loaddi,
14594 unaligned_storedi): New unspec insn patterns.
14595 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14596 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14597 and unaligned_storedi for 4-byte aligned memory.
14598 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14599 4-byte aligned memory.
14600
14601 2019-08-30 Martin Jambor <mjambor@suse.cz>
14602
14603 tree-optimization/91579
14604 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14605 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14606 appropriate.
14607 (arg_needs_copy_p): Removed.
14608 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14609 arg_needs_copy_p.
14610 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14611
14612 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14613
14614 * config/i386/i386-features.c
14615 (general_scalar_chain::compute_convert_gain):
14616 Correct cost for double-word shifts.
14617 (general_scalar_to_vector_candidate_p): Reject count operands
14618 greater or equal to mode bitsize.
14619
14620 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14621
14622 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14623 for moves between SSE and non-general registers and between
14624 mask and non-general registers.
14625 (ix86_register_move_cost): Remove stalled comment.
14626
14627 2019-08-29 Richard Biener <rguenther@suse.de>
14628
14629 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14630 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14631
14632 2019-08-29 Richard Biener <rguenther@suse.de>
14633
14634 PR bootstrap/91580
14635 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14636 Do not emit scalar copies for debug-insns, instead replace
14637 their uses with the reg copy used in the chain or reset them
14638 if there is a reaching definition outside of the chain as well.
14639
14640 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14641
14642 PR target/91560
14643 * config/i386/i386-expand.c (expand_vec_perm_movs,
14644 expand_vec_perm_blend, expand_vec_perm_vpermil,
14645 expand_vec_perm_pshufb, expand_vec_perm_1,
14646 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14647 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14648 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14649 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14650 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14651 comments - replace ix86_expand_vec_perm_builtin_1 with
14652 ix86_expand_vec_perm_const_1.
14653 (expand_vec_perm2_vperm2f128_vblend): New function.
14654 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14655 expand_vec_perm2_vperm2f128_vblend as last resort.
14656 (canonicalize_perm): Formatting fix.
14657
14658 PR tree-optimization/91351
14659 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14660 unsigned_type_for.
14661 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14662 range_check_type returns NULL.
14663 * tree-switch-conversion.c (switch_conversion::build_one_array):
14664 Use range_check_type instead of unsigned_type_for, don't perform
14665 linear opt if it returns NULL.
14666 (bit_test_cluster::find_bit_tests): Formatting fix.
14667 (bit_test_cluster::emit): Use range_check_type instead of
14668 unsigned_type_for.
14669 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14670 returns NULL.
14671
14672 2019-08-29 Richard Biener <rguenther@suse.de>
14673
14674 PR tree-optimization/91568
14675 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14676 (vect_update_max_nunits): Add overload for poly_uint64.
14677 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14678 (vect_build_slp_tree): Record max_nunits into the subtree
14679 and merge it upwards.
14680 (vect_print_slp_tree): Print max_nunits.
14681
14682 2019-08-28 Marek Polacek <polacek@redhat.com>
14683
14684 Implement P1152R4: Deprecating some uses of volatile.
14685 PR c++/91361
14686 * doc/invoke.texi: Document -Wvolatile.
14687
14688 2019-08-28 Marek Polacek <polacek@redhat.com>
14689
14690 PR c++/91360 - Implement C++20 P1143R2: constinit.
14691 * doc/invoke.texi: Document -Wc++20-compat.
14692
14693 2019-08-28 Martin Sebor <msebor@redhat.com>
14694
14695 PR tree-optimization/91457
14696 * builtins.c (component_size): New function.
14697 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14698 * builtins.h (compute_objsize): Add argument.
14699 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14700 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14701 (vrp_prop::check_mem_ref): Same.
14702 (vrp_prop::search_for_addr_array): Set no-warning bit.
14703 (check_array_bounds): Same.
14704
14705 2019-08-28 Martin Sebor <msebor@redhat.com>
14706
14707 PR driver/80545
14708 * opts-common.c (option_enabled): Correct checking for language
14709 options.
14710
14711 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14712
14713 * config/i386/i386.c (ix86_register_move_cost): Do not
14714 limit the cost of moves to/from XMM register to minimum 8.
14715
14716 2019-08-28 Martin Jambor <mjambor@suse.cz>
14717
14718 PR ipa/91468
14719 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14720 checking assert a normal assert to test it really is redundant.
14721 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14722 redundant test.
14723 (update_jump_functions_after_inlining): Removed combining unary
14724 arithmetic operations with an ancestor jump function.
14725 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14726 instead of t.
14727
14728 2019-08-28 Richard Biener <rguenther@suse.de>
14729
14730 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14731 add the MD problem.
14732
14733 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14734 Richard Biener <rguenther@suse.de>
14735
14736 * expr.c (expand_assignment): Handle misaligned DECLs.
14737 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14738 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14739 too.
14740 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14741 * varasm.c (build_constant_desc): Align constants of misaligned types.
14742 * config/arm/predicates.md (aligned_operand): New predicate.
14743 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14744 aligned_operand to check restrictions on memory addresses.
14745 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14746 * config/arm/vec-common.md (mov<VALL>): Likewise.
14747
14748 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14749
14750 PR libgomp/91530
14751 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14752 V_128 iterator instead of VI_128.
14753
14754 2019-08-28 Martin Liska <mliska@suse.cz>
14755
14756 PR tree-optimization/90970
14757 * builtins.c (check_access): Remove assignment to maxread
14758 as it hasn't been used since when it was introduced in r255755.
14759
14760 2019-08-27 Martin Sebor <msebor@redhat.com>
14761
14762 PR tree-optimization/91567
14763 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14764 of unknown strings.
14765 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14766 to PTRDIFF_MAX - 2.
14767
14768 2019-08-27 Jeff Law <law@redhat.com>
14769
14770 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14771 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14772
14773 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14774
14775 PR target/91528
14776 * config/i386/i386-features.c (convert_scalars_to_vector):
14777 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14778 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14779 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14780 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14781
14782 2019-08-27 Richard Biener <rguenther@suse.de>
14783
14784 * config/i386/i386-features.h
14785 (general_scalar_chain::~general_scalar_chain): Add.
14786 (general_scalar_chain::insns_conv): New bitmap.
14787 (general_scalar_chain::n_sse_to_integer): New.
14788 (general_scalar_chain::n_integer_to_sse): Likewise.
14789 (general_scalar_chain::make_vector_copies): Adjust signature.
14790 * config/i386/i386-features.c
14791 (general_scalar_chain::general_scalar_chain): Outline,
14792 initialize new members.
14793 (general_scalar_chain::~general_scalar_chain): New.
14794 (general_scalar_chain::mark_dual_mode_def): Record insns
14795 we need to insert conversions at and count them.
14796 (general_scalar_chain::compute_convert_gain): Account
14797 for conversion instructions at chain boundary.
14798 (general_scalar_chain::make_vector_copies): Generate a single
14799 copy for a def by a specific insn.
14800 (general_scalar_chain::convert_registers): First populate
14801 defs_map, then make copies at out-of chain insns.
14802
14803 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14804
14805 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14806 comment.
14807 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14808
14809 2019-08-27 Martin Liska <mliska@suse.cz>
14810
14811 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14812 loop.
14813 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14814 Enclose in anonymous namespace.
14815 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14816 hard_register initialization in braces.
14817 * tree-vrp.h (value_range_base::supports_type_p): Return false
14818 for function with boolean return type.
14819
14820 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14821
14822 * config/i386/i386.c (emit_i387_cw_initialization)
14823 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14824
14825 2019-08-26 Martin Sebor <msebor@redhat.com>
14826
14827 PR c++/83431
14828 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14829 (sprintf_dom_walker): Remove class.
14830 (get_int_range): Make argument const.
14831 (directive::fmtfunc, directive::set_precision): Same.
14832 (format_none): Same.
14833 (build_intmax_type_nodes): Same.
14834 (adjust_range_for_overflow): Same.
14835 (format_floating): Same.
14836 (format_character): Same.
14837 (format_string): Same.
14838 (format_plain): Same.
14839 (get_int_range): Cast away constness.
14840 (format_integer): Same.
14841 (get_string_length): Call get_range_strlen_dynamic. Handle
14842 null lendata.maxbound.
14843 (should_warn_p): Adjust argument scope qualifier.
14844 (maybe_warn): Same.
14845 (format_directive): Same.
14846 (parse_directive): Same.
14847 (is_call_safe): Same.
14848 (try_substitute_return_value): Same.
14849 (sprintf_dom_walker::handle_printf_call): Rename...
14850 (handle_printf_call): ...to this. Initialize target to host charmap
14851 here instead of in pass_sprintf_length::execute.
14852 (struct call_info): Make global.
14853 (sprintf_dom_walker::compute_format_length): Make global.
14854 (sprintf_dom_walker::handle_gimple_call): Same.
14855 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14856 * print-rtl.c (print_pattern): Reduce the number of spaces to
14857 avoid -Wformat-truncation.
14858 * tree-pass.h (make_pass_warn_printf): New function.
14859 * tree-ssa-strlen.c (strlen_optimize): New variable.
14860 (get_string_length): Add comments.
14861 (get_range_strlen_dynamic): New function.
14862 (check_and_optimize_call): New function.
14863 (handle_integral_assign): New function.
14864 (strlen_check_and_optimize_stmt): Factor code out into
14865 strlen_check_and_optimize_call and handle_integral_assign.
14866 (strlen_dom_walker::evrp): New member.
14867 (strlen_dom_walker::before_dom_children): Use evrp member.
14868 (strlen_dom_walker::after_dom_children): Use evrp member.
14869 (printf_strlen_execute): New function.
14870 (pass_strlen::gate): Update to handle printf calls.
14871 (dump_strlen_info): New function.
14872 (pass_data_warn_printf): New variable.
14873 (pass_warn_printf): New class.
14874 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14875 (handle_printf_call): Same.
14876 * tree-vrp.c (value_range_base::type): Adjust assertion.
14877 * vr-values.c (vr_values::update_value_range): Use type of the first
14878 argument rather than the second.
14879
14880 2019-08-26 Richard Biener <rguenther@suse.de>
14881
14882 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14883 Remove.
14884 (convert_scalars_to_vector): Do not call it.
14885
14886 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14887 Uros Bizjak <ubizjak@gmail.com>
14888
14889 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14890 CASE_MATHFN_FLOATN for roundeven.
14891 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14892 I387_ROUNDEVEN.
14893 (ix86_mode_needed): Likewise.
14894 (ix86_mode_after): Likewise.
14895 (ix86_mode_entry): Likewise.
14896 (ix86_mode_exit): Likewise.
14897 (ix86_emit_mode_set): Likewise.
14898 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14899 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14900 (ix86_entity): Add I387_ROUNDEVEN.
14901 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14902 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14903 (define_int_iterator): Likewise.
14904 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14905 (define_constant): Define ROUND_ROUNDEVEN mode.
14906 (define_attr): Add roundeven mode for i387_cw.
14907 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14908 * internal-fn.def (ROUNDEVEN): New builtin function.
14909 * optabs.def (roundeven_optab): New optab.
14910
14911 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14912
14913 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14914 for ROUNDEVEN.
14915 * builtins.def: Added function definitions for roundeven function
14916 variants.
14917 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14918 function call. Adjust condition for floor, ceil, trunc and round.
14919 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14920 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14921 (integer_valued_real_call_p): Added case for roundeven function.
14922 * real.c (is_even): New function. Returns true if real number is even,
14923 otherwise returns false.
14924 (is_halfway_below): New function. Returns true if real number is
14925 halfway between two integers, else return false.
14926 (real_roundeven): New function. Round real number to nearest integer,
14927 rounding halfway cases towards even.
14928 * real.h (real_value): Added descriptive comments. Added function
14929 declaration for roundeven function.
14930 * doc/extend.texi (Other Builtins): List roundeven variants among
14931 functions which can be handled as builtins.
14932
14933 2019-08-26 Richard Biener <rguenther@suse.de>
14934
14935 PR target/91522
14936 PR target/91527
14937 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14938 New member.
14939 (general_scalar_chain::replace_with_subreg): Remove.
14940 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14941 (general_scalar_chain::convert_reg): Adjust signature.
14942 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14943 iterate over all defs of a reg.
14944 (general_scalar_chain::replace_with_subreg): Remove.
14945 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14946 (general_scalar_chain::make_vector_copies): Populate defs_map,
14947 place copy only after defs that are used as vectors in the chain.
14948 (general_scalar_chain::convert_reg): Emit a copy for a specific
14949 def in a specific instruction.
14950 (general_scalar_chain::convert_op): All reg uses are converted here.
14951 (general_scalar_chain::convert_insn): Emit copies for scalar
14952 uses of defs here. Replace uses with the copies we created.
14953 Replace and convert the def. Adjust REG_DEAD notes, remove
14954 REG_EQUIV/EQUAL notes.
14955 (general_scalar_chain::convert_registers): Only handle copies
14956 into the chain here.
14957
14958 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14959
14960 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14961
14962 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14963
14964 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14965 Add nop_convert case.
14966 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14967 Fold all statements if requested.
14968 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14969 Allow to fold all statements.
14970 * tree-vrp.c (class vrp_folder):
14971 Let substitute_and_fold_engine fold all statements.
14972
14973 2019-08-26 Richard Biener <rguenther@suse.de>
14974
14975 PR tree-optimization/91526
14976 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14977 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14978 TODO_update_address_taken.
14979
14980 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14981
14982 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14983 __STDC_HOSTED__.
14984
14985 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14986
14987 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14988 machine mode for unspec_volatile operand.
14989
14990 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14991
14992 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14993 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14994 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14995 (prefer_neon_for_64bits): Remove.
14996 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14997 (tune_params): Remove PREF_NEON_64_FALSE uses.
14998 (arm_option_override): Remove prefer_neon selection code.
14999 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15000 * config/arm/arm-protos.h (tune_params): Remove
15001 prefer_neon_for_64bits.
15002 (prefer_neon_for_64bits): Remove.
15003
15004 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15005
15006 PR pch/61250
15007 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15008 and issue any diagnostics needed before collecting the pre-PCH
15009 state.
15010
15011 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15012
15013 PR middle-end/91283
15014 * common.opt (fexcess-precision=): Add Optimization flag. Use
15015 flag_excess_precision variable instead of
15016 flag_excess_precision_cmdline.
15017 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15018 member.
15019 (flag_excess_precision): Don't define.
15020 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15021 flag_excess_precision_cmdline. Remove comment.
15022 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15023 and x_flag_excess_precision instead of
15024 frontend_set_flag_excess_precision_cmdline and
15025 x_flag_excess_precision_cmdline.
15026 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15027 x_flag_excess_precision_cmdline.
15028 * toplev.c (init_excess_precision): Remove.
15029 (lang_dependent_init_target): Don't call it.
15030
15031 2019-08-23 Martin Liska <mliska@suse.cz>
15032
15033 * lto-wrapper.c (run_gcc): When setting jobserver
15034 set also parallel to 1. This was done so before r273908.
15035
15036 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15037
15038 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15039 (cortex-a76ae): Likewise.
15040 (cortex-a77): Likewise
15041 * config/arm/arm-tables.opt: Regenerate.
15042 * config/arm/arm-tune.md: Likewise.
15043 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15044 cortex-a77 CPU options.
15045
15046 2019-08-23 Martin Liska <mliska@suse.cz>
15047
15048 * profile.c (instrument_values): Do not set
15049 0 as last argument.
15050 * tree-profile.c (gimple_gen_interval_profiler): Remove
15051 last argument.
15052 (gimple_gen_pow2_profiler): Likewise.
15053 (gimple_gen_topn_values_profiler): Likewise.
15054 (gimple_gen_ic_profiler): Likewise.
15055 (gimple_gen_time_profiler): Likewise.
15056 (gimple_gen_average_profiler): Likewise.
15057 (gimple_gen_ior_profiler): Likewise.
15058 * value-prof.c (dump_histogram_value): Use default
15059 in switch statement instead of HIST_TYPE_MAX.
15060 (stream_in_histogram_value): Likewise.
15061 (gimple_duplicate_stmt_histograms): Do not
15062 use NULL for implicitly set arguments.
15063 (gimple_divmod_values_to_profile): Do not use
15064 reserve+quick_push.
15065 (gimple_indirect_call_to_profile): Likewise.
15066 (gimple_find_values_to_profile): Use implicit
15067 function call arguments.
15068 * value-prof.h (gimple_alloc_histogram_value):
15069 Set default values.
15070 (gimple_gen_interval_profiler): Remove last argument.
15071 (gimple_gen_pow2_profiler): Likewise.
15072 (gimple_gen_topn_values_profiler): Likewise.
15073 (gimple_gen_ic_profiler): Likewise.
15074 (gimple_gen_time_profiler): Likewise.
15075 (gimple_gen_average_profiler): Likewise.
15076 (gimple_gen_ior_profiler): Likewise.
15077
15078 2019-08-22 Martin Sebor <msebor@redhat.com>
15079
15080 PR middle-end/91490
15081 * builtins.c (c_strlen): Rename argument and introduce new local.
15082 Set no-warning bit on original argument.
15083 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15084 Fold empty and zero constructors into empty strings.
15085 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15086 for missing initializers.
15087 * tree.c (build_string_literal): Handle optional argument.
15088 * tree.h (build_string_literal): Add defaulted argument.
15089 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15090 no-warning bit on original expression.
15091
15092 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15093
15094 PR target/91481
15095 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15096 and UNSPEC_DARN_RAW.
15097 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15098 UNSPECV_DARN_RAW.
15099 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15100 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15101 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15102
15103 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15104
15105 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15106 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15107 * config/rs6000/rs6000.md (unspec): ... here.
15108 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15109 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15110 cmpeqb, *cmpeqb_internal): Delete, move to...
15111 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15112 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15113 cmpeqb, *cmpeqb_internal): ... here.
15114
15115 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15116
15117 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15118 intrinsics if __ARM_FP.
15119 Use __ARM_FEATURE_CRC32 ifdef guard.
15120
15121 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15122
15123 * config/arm/arm.md (neon_for_64bits): Remove.
15124 (avoid_neon_for_64bits): Remove.
15125 (arm_adddi3): Always split early.
15126 (arm_subdi3): Always split early.
15127 (negdi2): Remove Neon expansion.
15128 (split zero_extend): Split before reload.
15129 (split sign_extend): Split before reload.
15130
15131 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15132
15133 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15134 (qhs_extenddi_cstr): Likewise.
15135 * config/arm/arm.md (ashldi3): Always expand early.
15136 (ashlsi3): Likewise.
15137 (ashrsi3): Likewise.
15138 (zero_extend<mode>di2): Remove Neon variants.
15139 (extend<mode>di2): Likewise.
15140 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15141 (signed_shift_di3_neon): Likewise.
15142 (unsigned_shift_di3_neon): Likewise.
15143 (ashrdi3_neon_imm_noclobber): Likewise.
15144 (lshrdi3_neon_imm_noclobber): Likewise.
15145 (<shift>di3_neon): Likewise.
15146 (split extend): Remove DI extend split patterns.
15147
15148 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15149
15150 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15151 (split not): Add DImode not splitter.
15152 (anddi3): Remove pattern.
15153 (anddi3_insn): Likewise.
15154 (anddi_zesidi_di): Likewise.
15155 (anddi_sesdi_di): Likewise.
15156 (anddi_notdi_di): Likewise.
15157 (anddi_notzesidi_di): Likewise.
15158 (anddi_notsesidi_di): Likewise.
15159 (iordi3): Likewise.
15160 (iordi3_insn): Likewise.
15161 (iordi_zesidi_di): Likewise.
15162 (iordi_sesidi_di): Likewise.
15163 (xordi3): Likewise.
15164 (xordi3_insn): Likewise.
15165 (xordi_sesidi_di): Likewise.
15166 (xordi_zesidi_di): Likewise.
15167 (one_cmpldi2): Likewise.
15168 (one_cmpldi2_insn): Likewise.
15169 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15170 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15171 alternative.
15172 (iwmmxt_xordi3): Likewise.
15173 (iwmmxt_anddi3): Likewise.
15174 * config/arm/neon.md (orndi3_neon): Remove pattern.
15175 (anddi_notdi_di): Likewise.
15176 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15177 (arm_iordi_operand_neon): Likewise.
15178 (arm_xordi_operand_neon): Likewise.
15179 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15180 (iordi_notzesidi_di): Likewise.
15181 (iordi_notdi_zesidi): Likewise.
15182 (iordi_notsesidi_di): Likewise.
15183
15184 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15185
15186 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15187 insn.
15188 (iorsi3_compare0_scratch): Likewise.
15189
15190 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15191
15192 * config/aarch64/aarch64-simd-builtins.def:
15193 (ld1x4): New.
15194 (st1x4): Likewise.
15195 * config/aarch64/aarch64-simd.md:
15196 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15197 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15198 (aarch64_ld1_x4_<mode>): Likewise.
15199 (aarch64_st1_x4_<mode>): Likewise.
15200 * config/aarch64/arm_neon.h:
15201 (vld1_s8_x4): New function.
15202 (vld1q_s8_x4): Likewise.
15203 (vld1_s16_x4): Likewise.
15204 (vld1q_s16_x4): Likewise.
15205 (vld1_s32_x4): Likewise.
15206 (vld1q_s32_x4): Likewise.
15207 (vld1_u8_x4): Likewise.
15208 (vld1q_u8_x4): Likewise.
15209 (vld1_u16_x4): Likewise.
15210 (vld1q_u16_x4): Likewise.
15211 (vld1_u32_x4): Likewise.
15212 (vld1q_u32_x4): Likewise.
15213 (vld1_f16_x4): Likewise.
15214 (vld1q_f16_x4): Likewise.
15215 (vld1_f32_x4): Likewise.
15216 (vld1q_f32_x4): Likewise.
15217 (vld1_p8_x4): Likewise.
15218 (vld1q_p8_x4): Likewise.
15219 (vld1_p16_x4): Likewise.
15220 (vld1q_p16_x4): Likewise.
15221 (vld1_s64_x4): Likewise.
15222 (vld1_u64_x4): Likewise.
15223 (vld1_p64_x4): Likewise.
15224 (vld1q_s64_x4): Likewise.
15225 (vld1q_u64_x4): Likewise.
15226 (vld1q_p64_x4): Likewise.
15227 (vld1_f64_x4): Likewise.
15228 (vld1q_f64_x4): Likewise.
15229 (vst1_s8_x4): Likewise.
15230 (vst1q_s8_x4): Likewise.
15231 (vst1_s16_x4): Likewise.
15232 (vst1q_s16_x4): Likewise.
15233 (vst1_s32_x4): Likewise.
15234 (vst1q_s32_x4): Likewise.
15235 (vst1_u8_x4): Likewise.
15236 (vst1q_u8_x4): Likewise.
15237 (vst1_u16_x4): Likewise.
15238 (vst1q_u16_x4): Likewise.
15239 (vst1_u32_x4): Likewise.
15240 (vst1q_u32_x4): Likewise.
15241 (vst1_f16_x4): Likewise.
15242 (vst1q_f16_x4): Likewise.
15243 (vst1_f32_x4): Likewise.
15244 (vst1q_f32_x4): Likewise.
15245 (vst1_p8_x4): Likewise.
15246 (vst1q_p8_x4): Likewise.
15247 (vst1_p16_x4): Likewise.
15248 (vst1q_p16_x4): Likewise.
15249 (vst1_s64_x4): Likewise.
15250 (vst1_u64_x4): Likewise.
15251 (vst1_p64_x4): Likewise.
15252 (vst1q_s64_x4): Likewise.
15253 (vst1q_u64_x4): Likewise.
15254 (vst1q_p64_x4): Likewise.
15255 (vst1_f64_x4): Likewise.
15256 (vst1q_f64_x4): Likewise.
15257
15258 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15259
15260 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15261
15262 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15263 Richard Sandiford <richard.sandiford@arm.com>
15264
15265 PR target/88839
15266 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15267 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15268
15269 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15270
15271 PR target/90724
15272 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15273 in reg if it fails aarch64_plus_operand predicate.
15274
15275 2019-08-21 Richard Biener <rguenther@suse.de>
15276
15277 PR tree-optimization/91482
15278 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15279 BUILT_IN_ASSUME_ALIGNED calls.
15280
15281 2019-08-21 Richard Biener <rguenther@suse.de>
15282
15283 PR target/91498
15284 PR target/91503
15285 * config/i386/i386-features.c
15286 (general_scalar_chain::make_vector_copies): Copy stack temporary
15287 rtx when using it multiple times.
15288 (general_scalar_chain::convert_reg): Likewise.
15289
15290 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15291
15292 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15293
15294 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15295
15296 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15297 catch more redundant zero initialization cases.
15298 (dse_dom_walker::dse_optimize_stmt): Likewise.
15299
15300 2019-08-20 Richard Biener <rguenther@suse.de>
15301
15302 PR lto/91307
15303 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15304 by collect2 when targetm.have_ctors_dtors which avoids dragging
15305 in temporary filenames from LTO input objects.
15306
15307 2019-08-20 Richard Biener <rguenther@suse.de>
15308
15309 PR tree-optimization/37242
15310 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15311 to (T)a + (T)b if we know that a + b does not overflow.
15312
15313 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15314
15315 PR rtl-optimization/91347
15316 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15317 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15318
15319 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15320
15321 * calls.h (function_arg_info): Add a pass_by_reference field,
15322 defaulting to false.
15323 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15324 when applying pass-by-reference semantics.
15325 (initialize_argument_information): Likewise.
15326 (emit_library_call_value_1): Likewise.
15327 * function.c (assign_parm_data_one): Remove passed_pointer field.
15328 (assign_parm_find_data_types): Don't set it.
15329 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15330 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15331 arg.pass_by_reference instead of passed_pointer.
15332
15333 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15334
15335 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15336 into a single function_arg_info, updating its fields when we
15337 apply pass-by-reference and promotion semantics. Use the
15338 function_arg_info to track the mode rather than keeping it in
15339 a separate local variable.
15340 (initialize_argument_information): Likewise. Base the final
15341 arg_to_skip on this new function_arg_info rather than creating
15342 a new one from scratch.
15343
15344 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15345
15346 * function.c (assign_parm_data_one): Replace passed_type,
15347 promoted_mode and named_arg with a function_arg_info field.
15348 (assign_parm_find_data_types): Remove local variables and
15349 assign directly to "data". Make data->passed_mode shadow
15350 data->arg.mode until promotion, then assign the promoted
15351 mode to data->arg.mode.
15352 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15353 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15354 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15355 (assign_parm_setup_block, assign_parm_setup_reg)
15356 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15357 arg.mode instead of promoted_mode, arg.type instead of passed_type
15358 and arg.named instead of named_arg. Use data->arg for
15359 function_arg_info structures that had the field values passed_type,
15360 promoted_mode and named_arg. Base other function_arg_infos on
15361 data->arg, changing the necessary properties.
15362
15363 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15364
15365 * calls.h (apply_pass_by_reference_rules): Declare.
15366 * calls.c (apply_pass_by_reference_rules): New function.
15367 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15368 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15369 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15370 * function.c (assign_parm_find_data_types): Likewise.
15371 * var-tracking.c (prepare_call_arguments): Likewise.
15372
15373 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15374
15375 * target.def (must_pass_in_stack): Take a function_arg_info instead
15376 of a mode and a type.
15377 * doc/tm.texi: Regenerate.
15378 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15379 instead of a mode and a type.
15380 (must_pass_in_stack_var_size_or_pad): Likewise.
15381 * calls.c (must_pass_in_stack_var_size): Likewise.
15382 (must_pass_in_stack_var_size_or_pad): Likewise.
15383 (initialize_argument_information): Update call to
15384 targetm.calls.must_pass_in_stack.
15385 (must_pass_va_arg_on_stack): Likewise.
15386 * function.c (assign_parm_find_entry_rtl): Likewise.
15387 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15388 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15389 (alpha_function_arg_advance): Likewise.
15390 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15391 (cr16_function_arg_advance): Likewise.
15392 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15393 (cris_arg_partial_bytes): Likewise.
15394 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15395 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15396 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15397 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15398 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15399 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15400 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15401 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15402 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15403 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15404 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15405 instead of a mode and a type.
15406 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15407 (fr30_num_arg_regs): Likewise.
15408 (fr30_setup_incoming_varargs): Update calls accordingly.
15409 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15410 (fr30_function_arg_advance): Likewise.
15411 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15412 instead of a mode and a type.
15413 * config/gcn/gcn.c (num_arg_regs): Likewise.
15414 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15415 num_arg_regs and targetm.calls.must_pass_in_stack.
15416 (gcn_arg_partial_bytes): Likewise.
15417 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15418 function_arg_info instead of a mode and a type.
15419 (classify_argument): Update call accordingly.
15420 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15421 function_arg_info instead of a mode and a type.
15422 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15423 Likewise.
15424 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15425 (rs6000_parm_needs_stack): Update call accordingly.
15426 (setup_incoming_varargs): Likewise.
15427
15428 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15429
15430 * target.def (callee_copies): Take a function_arg_info instead
15431 of a mode, type and named flag.
15432 * doc/tm.texi: Regenerate.
15433 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15434 instead of a mode, type and named flag.
15435 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15436 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15437 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15438 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15439 instead of a mode, type and named flag.
15440 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15441 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15442 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15443 * calls.h (reference_callee_copied): Take a function_arg_info
15444 instead of a mode, type and named flag.
15445 * calls.c (reference_callee_copied): Likewise.
15446 (initialize_argument_information): Update call accordingly.
15447 (emit_library_call_value_1): Likewise.
15448 * function.c (gimplify_parameters): Likewise.
15449 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15450 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15451 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15452 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15453 (TARGET_CALLEE_COPIES): Define to
15454 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15455 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15456 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15457 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15458 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15459 instead of a mode, type and named flag.
15460 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15461 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15462 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15463 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15464 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15465 (TARGET_CALLEE_COPIES): Define to
15466 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15467 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15468 instead of a mode, type and named flag.
15469 * config/sh/sh.c (sh_callee_copies): Likewise.
15470 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15471 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15472 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15473
15474 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15475
15476 * target.def (function_arg_advance): Take a function_arg_info instead
15477 of a mode, type and named flag.
15478 * doc/tm.texi: Regenerate.
15479 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15480 instead of a mode, type and named flag.
15481 * targhooks.c (default_function_arg_advance): Likewise.
15482 * calls.c (initialize_argument_information): Update call to
15483 targetm.calls.function_arg_advance.
15484 (emit_library_call_value_1): Likewise.
15485 * dse.c (get_call_args): Likewise.
15486 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15487 * function.c (assign_parms, gimplify_parameters): Likewise.
15488 * var-tracking.c (prepare_call_arguments): Likewise.
15489 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15490 function_arg_info instead of a mode, type and named flag.
15491 (aarch64_setup_incoming_varargs): Update call accordingly.
15492 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15493 function_arg_info instead of a mode, type and named flag.
15494 (alpha_setup_incoming_varargs): Update call accordingly.
15495 * config/arc/arc.c (arc_function_arg_advance): Take a
15496 function_arg_info instead of a mode, type and named flag.
15497 (arc_setup_incoming_varargs): Update call accordingly.
15498 * config/arm/arm.c (arm_function_arg_advance): Take a
15499 function_arg_info instead of a mode, type and named flag.
15500 (cmse_func_args_or_return_in_stack): Update call accordingly.
15501 (arm_function_ok_for_sibcall): Likewise.
15502 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15503 * config/avr/avr.c (avr_function_arg_advance): Take a
15504 function_arg_info instead of a mode, type and named flag.
15505 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15506 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15507 (c6x_call_saved_register_used): Update call accordingly.
15508 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15509 function_arg_info instead of a mode, type and named flag.
15510 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15511 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15512 (csky_setup_incoming_varargs): Update call accordingly.
15513 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15514 function_arg_info instead of a mode, type and named flag.
15515 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15516 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15517 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15518 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15519 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15520 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15521 (ix86_setup_incoming_varargs): Update call accordingly.
15522 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15523 function_arg_info instead of a mode, type and named flag.
15524 (ia64_setup_incoming_varargs): Update call accordingly.
15525 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15526 function_arg_info instead of a mode, type and named flag.
15527 (iq2000_expand_prologue): Update call accordingly.
15528 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15529 function_arg_info instead of a mode, type and named flag.
15530 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15531 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15532 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15533 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15534 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15535 Likewise.
15536 (microblaze_expand_prologue): Update call accordingly.
15537 * config/mips/mips.c (mips_function_arg_advance): Take a
15538 function_arg_info instead of a mode, type and named flag.
15539 (mips_setup_incoming_varargs): Update call accordingly.
15540 (mips_output_args_xfer): Likewise.
15541 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15542 function_arg_info instead of a mode, type and named flag.
15543 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15544 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15545 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15546 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15547 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15548 (nios2_setup_incoming_varargs): Update call accordingly.
15549 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15550 function_arg_info instead of a mode, type and named flag.
15551 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15552 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15553 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15554 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15555 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15556 (riscv_setup_incoming_varargs): Update call accordingly.
15557 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15558 function_arg_info instead of a mode, type and named flag.
15559 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15560 Likewise.
15561 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15562 (rs6000_parm_needs_stack): Update call accordingly.
15563 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15564 instead of a mode, type and named flag.
15565 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15566 (s390_call_saved_register_used): Update call accordingly.
15567 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15568 instead of a mode, type and named flag.
15569 (sh_output_mi_thunk): Update call accordingly.
15570 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15571 function_arg_info instead of a mode, type and named flag.
15572 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15573 (spu_setup_incoming_varargs): Update call accordingly.
15574 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15575 function_arg_info instead of a mode, type and named flag.
15576 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15577 (tilegx_setup_incoming_varargs): Update call accordingly.
15578 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15579 function_arg_info instead of a mode, type and named flag.
15580 (tilegx_setup_incoming_varargs): Update call accordingly.
15581 * config/v850/v850.c (v850_function_arg_advance): Take a
15582 function_arg_info instead of a mode, type and named flag.
15583 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15584 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15585 (visium_setup_incoming_varargs): Update call accordingly.
15586 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15587 function_arg_info instead of a mode, type and named flag.
15588
15589 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15590
15591 * target.def (function_arg, function_incoming_arg): Take a
15592 function_arg_info instead of a mode, tree and named flag.
15593 * doc/tm.texi: Regenerate.
15594 * targhooks.h (default_function_arg): Take a function_arg_info
15595 instead of a mode, tree and named flag.
15596 (default_function_incoming_arg): Likewise.
15597 * targhooks.c (default_function_arg): Likewise.
15598 (default_function_incoming_arg): Likewise.
15599 * calls.h (function_arg_info::end_marker_p): New function.
15600 (function_arg_info::end_marker): Likewise.
15601 * calls.c (prepare_call_address, initialize_argument_information)
15602 (expand_call, emit_library_call_value_1): Update calls to
15603 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15604 * dse.c: Include calls.h.
15605 (get_call_args): Update call to targetm.calls.function_arg.
15606 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15607 * var-tracking.c (prepare_call_arguments): Likewise.
15608 * function.c (assign_parm_find_entry_rtl): Update call to
15609 targetm.calls.function_incoming_arg.
15610 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15611 function_arg_info instead of a mode, tree and named flag.
15612 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15613 * config/arc/arc.c (arc_function_arg): Likewise.
15614 * config/arm/arm.c (arm_function_arg): Likewise.
15615 (cmse_func_args_or_return_in_stack): Update call accordingly.
15616 (arm_function_ok_for_sibcall): Likewise.
15617 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15618 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15619 instead of a mode, tree and named flag.
15620 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15621 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15622 (c6x_call_saved_register_used): Update call accordingly.
15623 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15624 instead of a mode, tree and named flag.
15625 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15626 (cris_function_arg_1): Likewise.
15627 * config/csky/csky.c (csky_function_arg): Likewise.
15628 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15629 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15630 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15631 (frv_function_arg_1): Likewise.
15632 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15633 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15634 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15635 * config/i386/i386.c (ix86_function_arg): Likewise.
15636 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15637 (ia64_function_arg_1): Likewise.
15638 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15639 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15640 accordingly.
15641 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15642 instead of a mode, tree and named flag.
15643 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15644 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15645 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15646 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15647 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15648 (microblaze_expand_prologue): Update call accordingly.
15649 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15650 instead of a mode, tree and named flag.
15651 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15652 (mmix_function_arg_1): Likewise.
15653 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15654 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15655 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15656 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15657 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15658 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15659 (nvptx_function_incoming_arg): Likewise.
15660 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15661 * config/pa/pa.c (pa_function_arg): Likewise.
15662 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15663 * config/pru/pru.c (pru_function_arg): Likewise.
15664 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15665 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15666 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15667 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15668 (rs6000_parm_needs_stack): Update call accordingly.
15669 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15670 instead of a mode, tree and named flag.
15671 * config/s390/s390.c (s390_function_arg): Likewise.
15672 (s390_call_saved_register_used): Update call accordingly.
15673 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15674 instead of a mode, tree and named flag.
15675 (sh_output_mi_thunk): Update call accordingly.
15676 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15677 (sparc_function_incoming_arg): Take a function_arg_info instead of
15678 a mode, tree and named flag.
15679 * config/spu/spu.c (spu_function_arg): Likewise.
15680 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15681 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15682 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15683 * config/v850/v850.c (v850_function_arg): Likewise.
15684 * config/vax/vax.c (vax_function_arg): Likewise.
15685 * config/visium/visium.c (visium_function_arg): Likewise.
15686 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15687 (xtensa_function_incoming_arg): Likewise.
15688
15689 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15690
15691 * target.def (setup_incoming_varargs): Take a function_arg_info
15692 instead of a mode and tree.
15693 * doc/tm.texi: Regenerate.
15694 * targhooks.h (default_setup_incoming_varargs): Take a
15695 function_arg_info instead of a mode and tree.
15696 * targhooks.c (default_setup_incoming_varargs): Likewise.
15697 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15698 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15699 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15700 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15701 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15702 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15703 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15704 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15705 Likewise.
15706 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15707 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15708 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15709 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15710 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15711 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15712 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15713 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15714 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15715 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15716 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15717 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15718 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15719 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15720 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15721 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15722 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15723 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15724 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15725 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15726 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15727 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15728 * function.c (assign_parms_setup_varargs): Update call to
15729 targetm.calls.setup_incoming_varargs.
15730
15731 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15732
15733 * target.def (pass_by_reference): Take a function_arg_info instead
15734 of a mode, type and named flag.
15735 * doc/tm.texi: Regenerate.
15736 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15737 accordingly.
15738 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15739 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15740 function_arg_info instead of a mode, type and named flag.
15741 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15742 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15743 mode, type and named flag.
15744 * calls.c (pass_by_reference): Likewise.
15745 (pass_va_arg_by_reference): Update call accordingly.
15746 (initialize_argument_information): Likewise.
15747 (emit_library_call_value_1): Likewise.
15748 * function.c (assign_parm_find_data_types): Likewise.
15749 * var-tracking.c (prepare_call_arguments): Likewise.
15750 * stor-layout.c: Include calls.h.
15751 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15752 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15753 function_arg_info instead of a mode, type and named flag.
15754 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15755 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15756 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15757 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15758 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15759 (c6x_call_saved_register_used): Update call to pass_by_reference.
15760 * config/cris/cris.c (cris_pass_by_reference): Take a
15761 function_arg_info instead of a mode, type and named flag.
15762 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15763 function_arg_info instead of a mode, type and named flag.
15764 (epiphany_arg_partial_bytes): Update call accordingly.
15765 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15766 function_arg_info instead of a mode, type and named flag.
15767 (ft32_arg_partial_bytes): Update call accordingly.
15768 * config/i386/i386.c (ix86_pass_by_reference): Take a
15769 function_arg_info instead of a mode, type and named flag.
15770 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15771 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15772 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15773 (m32r_return_in_memory): Update call accordingly.
15774 * config/mips/mips.c (mips_pass_by_reference): Take a
15775 function_arg_info instead of a mode, type and named flag.
15776 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15777 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15778 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15779 (moxie_arg_partial_bytes): Update call accordingly.
15780 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15781 function_arg_info instead of a mode, type and named flag.
15782 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15783 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15784 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15785 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15786 (riscv_return_in_memory): Update call accordingly.
15787 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15788 function_arg_info instead of a mode, type and named flag.
15789 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15790 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15791 * config/s390/s390.c (s390_pass_by_reference): Take a
15792 function_arg_info instead of a mode, type and named flag.
15793 (s390_call_saved_register_used): Update call accordingly.
15794 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15795 instead of a mode, type and named flag.
15796 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15797 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15798 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15799 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15800 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15801 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15802
15803 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15804
15805 * target.def (arg_partial_bytes): Take a function_arg_info instead
15806 of a mode, type and named flag.
15807 * doc/tm.texi: Regenerate.
15808 * target.h (function_arg_info): Declare.
15809 * calls.h (function_arg_info): New class.
15810 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15811 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15812 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15813 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15814 * calls.c (initialize_argument_information): Update call to
15815 targetm.calls.partial_bytes.
15816 (emit_library_call_value_1): Likewise.
15817 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15818 * function.c (assign_parm_find_entry_rtl): Likewise.
15819 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15820 function_arg_info instead of a mode, type and named flag.
15821 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15822 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15823 (cmse_func_args_or_return_in_stack): Update accordingly.
15824 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15825 function_arg_info instead of a mode, type and named flag.
15826 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15827 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15828 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15829 * config/fr30/fr30.c: Include calls.h.
15830 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15831 type and named flag.
15832 * config/frv/frv.c: Include calls.h.
15833 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15834 type and named flag.
15835 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15836 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15837 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15838 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15839 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15840 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15841 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15842 Likewise.
15843 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15844 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15845 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15846 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15847 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15848 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15849 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15850 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15851 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15852 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15853 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15854 (rs6000_parm_needs_stack): Update call accordingly.
15855 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15856 function_arg_info instead of a mode, type and named flag.
15857 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15858 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15859
15860 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15861
15862 * calls.h (must_pass_va_arg_in_stack): Declare.
15863 * calls.c (must_pass_va_arg_in_stack): New function.
15864 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15865 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15866 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15867 Likewise.
15868 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15869
15870 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15871
15872 * calls.h (pass_va_arg_by_reference): Declare.
15873 * calls.c (pass_va_arg_by_reference): New function.
15874 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15875 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15876 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15877 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15878 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15879 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15880 (mips_gimplify_va_arg_expr): Likewise.
15881 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15882 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15883 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15884 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15885 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15886 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15887 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15888 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15889 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15890 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15891 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15892
15893 2019-08-20 Richard Biener <rguenther@suse.de>
15894
15895 PR target/91498
15896 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15897 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15898 (convert_scalars_to_vector): Add timode_p parameter and use it
15899 to guard TImode-only operation.
15900 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15901 (pass_stv::execute): Pass down timode_p.
15902
15903 2019-08-20 Lili Cui <lili.cui@intel.com>
15904
15905 * common/config/i386/i386-common.c
15906 (processor_names): Add tigerlake and cooperlake.
15907 (processor_alias_table): Add tigerlake and cooperlake.
15908 * config.gcc: Add -march=tigerlake and cooperlake.
15909 * config/i386/driver-i386.c
15910 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15911 Add "has_avx" to classify processor.
15912 * config/i386/i386-builtins.c (processor_model) :
15913 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15914 (arch_names_table): Add tigerlake and cooperlake.
15915 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15916 and PROCESSOR_COOPERLAKE.
15917 * config/i386/i386-c.c
15918 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15919 * config/i386/i386-options.c
15920 (m_TIGERLAKE): Define.
15921 (m_COOPERLAKE): Ditto.
15922 (m_CORE_AVX512): Ditto.
15923 (processor_cost_table): Add cascadelake.
15924 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15925 * config/i386/i386.h
15926 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15927 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15928 (PTA_MOVDIRI): Ditto.
15929 (PTA_MOVDIR64B): Ditto.
15930 (PTA_COOPERLAKE): Ditto.
15931 (PTA_TIGERLAKE): Ditto.
15932 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15933 * doc/extend.texi: Add tigerlake and cooperlake.
15934 * doc/invoke.texi: Add tigerlake and cooperlake.
15935
15936 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15937
15938 * doc/install.texi (Specific, alpha): Remove note to use
15939 binutils 2.11.2 or later.
15940
15941 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15942
15943 PR middle-end/89544
15944 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15945 when possible.
15946
15947 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15948
15949 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15950 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15951 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15952 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15953 * config/aarch64/constraints.md (Dt): New constraint
15954 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15955
15956 2019-08-19 Richard Biener <rguenther@suse.de>
15957
15958 PR tree-optimization/91403
15959 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15960 cases we can handle with tail-recursion...
15961 (follow_ssa_edge_expr): ... here. Do so.
15962
15963 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15964
15965 PR target/91441
15966 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15967 implemented for -fsanitize=kernel-address, and merge check logic
15968 with -fsanitize=address.
15969
15970 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15971
15972 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15973 for cpu and machine. Factor 64/32b builtins.
15974
15975 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15976
15977 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15978 gone, point to sourceforge.net.
15979
15980 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15981
15982 * doc/ux.texi (User Experience Guidelines): Update reference.
15983
15984 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15985
15986 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15987 not LGPL".
15988
15989 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15990
15991 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15992 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15993
15994 2019-08-16 Martin Sebor <msebor@redhat.com>
15995
15996 * tree.def (TYPE_SIZE): Clarify.
15997 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15998
15999 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16000
16001 PR tree-optimization/91109
16002 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16003 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16004 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16005
16006 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16007
16008 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16009 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16010 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16011 (uavg<mode>3_ceil): New expander.
16012 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16013 mode iterator when creating CONST1_RTX.
16014 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16015 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16016 mode iterator for const1_operand predicate.
16017
16018 2019-08-16 Richard Biener <rguenther@suse.de>
16019
16020 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16021 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16022 follow_ssa_edge.
16023 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16024 (analyze_evolution_in_loop): Likewise.
16025 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16026 (follow_ssa_edge_expr): ... here. Refactor code.
16027
16028 2019-08-16 Richard Biener <rguenther@suse.de>
16029
16030 PR target/91469
16031 * config/i386/i386-features.c
16032 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16033
16034 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16035
16036 PR other/91255
16037 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16038 only if subst_name matches curr_attr string.
16039
16040 2019-08-16 Richard Biener <rguenther@suse.de>
16041
16042 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16043 stmt at gsi_p, instead replace it with a NOP removed later.
16044 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16045 that became dead because of that.
16046
16047 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16048
16049 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16050 for which we can't represent a range.
16051 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16052 set_varying.
16053 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16054 Set VR_UNDEFINED if type is not supported.
16055 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16056 * tree-vrp.c (value_range_base::check): Assert that a varying has
16057 min/max set.
16058 (value_range_base::equal_p): Early bail for undefines.
16059 (value_range_base::set_varying): Accept a type.
16060 (value_range::set_varying): Same.
16061 (value_range_base::type): VARYING can have a type, while UNDEFINE
16062 is typeless.
16063 (value_range_base::dump): Print type for VARYING nodes.
16064 (value_range_base::set): Add type to VARYING.
16065 (extract_range_from_multiplicative_op): Pass type to set_varying.
16066 (extract_range_from_binary_expr): Same.
16067 (value_range_base::intersect_helper): Same.
16068 (value_range_base::union_helper): Same.
16069 (value_range_base::normalize_symbolics): Same.
16070 (determine_value_range_1): Same.
16071 * tree-vrp.h (class value_range_base): Add type to set_varying.
16072 Add prototype for dump(void).
16073 Add prototype for supports_type_p.
16074 (class value_range): Add type to set_varying.
16075 Add prototype for dump(void).
16076 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16077 set_varying.
16078 (vr_values::get_lattice_entry): Set varying even if propagation
16079 finished.
16080 Pass type to set_varying.
16081 (vr_values::get_value_range): Remove vr_const_varying.
16082 Reallocate the lattice if needed.
16083 (vr_values::update_value_range): Pass type to set_varying.
16084 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16085 (vr_values::extract_range_from_binary_expr): Same.
16086 (vr_values::extract_range_from_unary_expr): Same.
16087 (vr_values::extract_range_from_cond_expr): Same.
16088 (vr_values::check_for_binary_op_overflow): Same.
16089 (vr_values::extract_range_basic): Same.
16090 (vr_values::extract_range_from_assignment): Same.
16091 (vr_values::vr_values): Increase size of num_vr_values.
16092 (vr_values::extract_range_from_phi_node): Pass type to
16093 set_varying.
16094
16095 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16096
16097 PR target/90878
16098 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16099 for costs of hard register moves.
16100 (ix86_register_move_cost): Likewise.
16101 * config/i386/i386.h (processor_costs): Move costs of hard
16102 register moves to hard_register. Add int_load, int_store,
16103 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16104 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16105 for costs of RTL expressions.
16106 * config/i386/x86-tune-costs.h: Move costs of hard register
16107 moves to hard_register. Duplicate int_load, int_store,
16108 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16109 sse_load, sse_store for costs of RTL expressions.
16110
16111 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16112
16113 * target.def (setup_incoming_vararg_bounds): Remove.
16114 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16115 * doc/tm.texi: Regenerate.
16116 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16117 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16118 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16119 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16120
16121 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16122
16123 MSP430: Fix lines over 80 characters long in
16124 config/msp430/*.{c,h} files
16125
16126 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16127 specifier in string.
16128 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16129 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16130 redundant old comment.
16131 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16132 Split line more than 80 characters long.
16133 * config/msp430/msp430.c (msp430_option_override): Likewise.
16134 (msp430_return_in_memory): Likewise.
16135 (msp430_gimplify_va_arg_expr): Likewise.
16136 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16137 (msp430_legitimate_constant): Likewise.
16138 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16139 (msp430_attr): Likewise.
16140 (msp430_data_attr): Likewise.
16141 (msp430_start_function): Likewise.
16142 (gen_prefix): Likewise.
16143 (msp430_init_sections): Likewise.
16144 (msp430_select_section): Likewise.
16145 (msp430_function_section): Likewise.
16146 (msp430_unique_section): Likewise.
16147 (msp430_output_aligned_decl_common): Likewise.
16148 (msp430_do_not_relax_short_jumps): Likewise.
16149 (msp430_init_builtins): Likewise.
16150 (msp430_expand_delay_cycles): Likewise.
16151 (msp430_expand_prologue): Likewise.
16152 (msp430_expand_epilogue): Likewise.
16153 (msp430_expand_helper): Likewise.
16154 (msp430_split_movsi): Likewise.
16155 (msp430_print_operand): Likewise.
16156 (msp430_return_addr_rtx): Likewise.
16157 (msp430x_extendhisi): Likewise.
16158 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16159 (ASM_SPEC): Likewise.
16160 Remove very obvious comments.
16161 (LIB_SPEC): Split line more than 80 characters long.
16162 (EH_RETURN_HANDLER_RTX): Likewise.
16163 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16164
16165 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16166
16167 MSP430: Fix whitespace errors and incorrect indentation in
16168 config/msp430/*.{c,h} files
16169
16170 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16171 (msp430_select_hwmult_lib): Likewise.
16172 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16173 (msp430_extract_mcu_data): Likewise.
16174 (struct t_msp430_mcu_data): Likewise.
16175 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16176 before left square bracket.
16177 (msp430_option_override): Fix indentation.
16178 (msp430_hard_regno_nregs_with_padding): Likewise.
16179 (msp430_initial_elimination_offset): Likewise.
16180 (msp430_special_register_convention_p): Remove whitespace before left
16181 square bracket and after exclamation mark.
16182 (msp430_evaluate_arg): Likewise.
16183 (msp430_callee_copies): Fix indentation.
16184 (msp430_gimplify_va_arg_expr): Likewise.
16185 (msp430_function_arg_advance): Remove whitespace before left square
16186 bracket.
16187 (reg_ok_for_addr): Likewise.
16188 (msp430_preserve_reg_p): Likewise.
16189 (msp430_compute_frame_info): Likewise.
16190 (msp430_asm_output_addr_const_extra): Add space between function name
16191 and open parenthesis.
16192 (has_section_name): Fix indentation.
16193 (msp430_attr): Remove trailing whitespace.
16194 (msp430_section_attr): Likewise.
16195 (msp430_data_attr): Likewise.
16196 (struct msp430_attribute_table): Fix comment and whitespace.
16197 (msp430_start_function): Remove whitespace before left square bracket.
16198 Add space between function name and open parenthesis.
16199 (msp430_select_section): Remove trailing whitespace.
16200 (msp430_section_type_flags): Remove trailing whitespace.
16201 (msp430_unique_section): Remove space before closing parenthesis.
16202 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16203 (msp430_builtins): Remove whitespace before left square bracket.
16204 (msp430_init_builtins): Fix indentation.
16205 (msp430_expand_prologue): Remove whitespace before left square bracket.
16206 Remove space before closing parenthesis.
16207 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16208 (msp430_split_movsi): Remove space before closing parenthesis.
16209 (helper_function_name_mappings): Fix indentation.
16210 (msp430_use_f5_series_hwmult): Fix whitespace.
16211 (use_32bit_hwmult): Likewise.
16212 (msp430_no_hwmult): Likewise.
16213 (msp430_output_labelref): Remove whitespace before left square bracket.
16214 (msp430_print_operand_raw): Likewise.
16215 (msp430_print_operand_addr): Likewise.
16216 (msp430_print_operand): Add two spaces after '.' in comment.
16217 Fix trailing whitespace.
16218 (msp430x_extendhisi): Fix indentation.
16219 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16220 tab.
16221 (PC_REGNUM): Likewise.
16222 (STACK_POINTER_REGNUM): Likewise.
16223 (CC_REGNUM): Likewise.
16224
16225 2019-08-15 Richard Biener <rguenther@suse.de>
16226
16227 PR target/91454
16228 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16229 helper.
16230 (general_scalar_chain::make_vector_copies): Use it.
16231
16232 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16233
16234 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16235
16236 2019-08-15 Martin Liska <mliska@suse.cz>
16237
16238 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16239 operators with no arguments.
16240 (eliminate_unnecessary_stmts): Likewise here.
16241
16242 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16243
16244 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16245 <case COMPARE>: Revert 2019-08-14 change.
16246 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16247 for (TARGET_64BIT || mode != DImode).
16248
16249 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16250
16251 * tree-vrp.c (value_range_base::set): Merge in code from
16252 value_range_base::set_and_canonicalize.
16253 Enforce canonicalization at set time.
16254 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16255 (value_range_base::set_undefined): Inline call to set().
16256 (value_range_base::set_varying): Same.
16257 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16258 (vrp_val_max): New argument handle_pointers.
16259 (vrp_val_min): Same.
16260 (ranges_from_anti_range): Same.
16261 (extract_range_into_wide_ints): Use tree argument instead of sign
16262 and precision.
16263 (extract_range_from_multiplicative_op): Take in tree type instead
16264 of precision and sign. Adapt function for canonicalized ranges.
16265 (extract_range_from_binary_expr): Pass type to
16266 extract_range_from_multiplicative_op.
16267 Adapt for canonicalized ranges.
16268 (extract_range_from_unary_expr): Same.
16269 (value_range_base::intersect_helper): Adjust for canonicalized
16270 ranges.
16271 (value_range_base::union_helper): Same.
16272 (value_range_base::normalize_symbolics): New.
16273 * tree-vrp.h (class value_range_base): Remove
16274 set_and_canonicalize.
16275 New prototype for normalize_symbolics.
16276 (class value_range): Remove set_and_canonicalize.
16277 (vrp_val_min): Adjust prototype.
16278 (vrp_val_max): Same.
16279 * vr-values.c
16280 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16281 instead of set_and_canonicalize.
16282
16283 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16284
16285 PR middle-end/91444
16286 * tree-vect-stmts.c (vectorizable_call): Check that the function
16287 is a BUILT_IN_MD function before passing it to
16288 targetm.vectorize.builtin_md_vectorized_function.
16289
16290 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16291
16292 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16293 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16294 (aarch64_select_early_remat_modes): Use it.
16295
16296 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16297
16298 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16299 16 for SVE predicates even if they are fixed-length.
16300
16301 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16302
16303 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16304 operand order match the MOV /Z alias.
16305
16306 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16307
16308 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16309 the vector pattern as an aarch64_svpattern argument. Update the
16310 overloaded caller accordingly.
16311 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16312 (aarch64_output_sve_vector_inc_dec): Likewise.
16313
16314 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16315
16316 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16317 multiplication case, try to compute VG * (lowest set bit) directly
16318 rather than always basing the multiplication on VG. Use
16319 expand_mult for the multiplication if we can.
16320
16321 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16322
16323 * config/aarch64/aarch64-protos.h
16324 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16325 (aarch64_sve_inc_dec_immediate_p): Rename to...
16326 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16327 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16328 (aarch64_output_sve_scalar_inc_dec): Declare.
16329 (aarch64_output_sve_inc_dec_immediate): Rename to...
16330 (aarch64_output_sve_vector_inc_dec): ...this.
16331 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16332 (aarch64_output_sve_scalar_inc_dec): New functions.
16333 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16334 arguments. Only handle true ADDVL and ADDPL instructions;
16335 don't emit an INC or DEC.
16336 (aarch64_sve_inc_dec_immediate_p): Rename to...
16337 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16338 (aarch64_output_sve_inc_dec_immediate): Rename to...
16339 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16340 aarch64_sve_vector_inc_dec_immediate_p.
16341 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16342 (aarch64_sve_plus_immediate): New predicates.
16343 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16344 rather than aarch64_sve_addvl_addpl_immediate.
16345 (aarch64_sve_inc_dec_immediate): Rename to...
16346 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16347 aarch64_sve_vector_inc_dec_immediate_p.
16348 (aarch64_sve_add_operand): Update accordingly.
16349 * config/aarch64/constraints.md (Uai): New constraint.
16350 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16351 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16352 operand into a register if it satisfies aarch64_sve_plus_immediate.
16353 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16354 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16355 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16356 aarch64_output_sve_vector_inc_dec instead of
16357 aarch64_output_sve_inc_dec_immediate.
16358
16359 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16360
16361 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16362 (UNSPEC_REVW): New constants.
16363 (elem_bits): New mode attribute.
16364 (SVE_INT_UNARY): New int iterator.
16365 (optab): Handle UNSPEC_REV[BHW].
16366 (sve_int_op): New int attribute.
16367 (min_elem_bits): Handle VNx16QI and the predicate modes.
16368 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16369 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16370 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16371 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16372 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16373 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16374 unspecs based on the total width of the reversed data.
16375 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16376 reinterpret followed by a subreg on big-endian targets.
16377
16378 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16379 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16380
16381 * config/aarch64/aarch64-sve.md
16382 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16383 alternatives in which one of the inputs is in the same register
16384 as the output.
16385
16386 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16387
16388 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16389 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16390
16391 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16392
16393 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16394 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16395
16396 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16398
16399 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16400 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16401 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16402
16403 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16404 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16405
16406 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16407 Add an alternative that uses reversed shifts.
16408
16409 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16410
16411 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16412 struct.
16413
16414 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16415
16416 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16417 a commutativity marker.
16418
16419 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16420 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16421
16422 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16423 (aarch64_prepare_sve_cond_int_fma): Declare.
16424 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16425 (aarch64_prepare_sve_int_fma): New functions.
16426 (aarch64_prepare_sve_cond_int_fma): Likewise.
16427 * config/aarch64/aarch64-sve.md
16428 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16429 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16430 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16431 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16432 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16433 (*madd<mode>): Rename to...
16434 (*fma<mode>4): ...this.
16435 (*msub<mode>): Rename to...
16436 (*fnma<mode>4): ...this.
16437
16438 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16439 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16440
16441 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16442 Print 2.0 naturally.
16443 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16444 * config/aarch64/predicates.md
16445 (aarch64_sve_float_negated_arith_immediate): New predicate,
16446 renamed from aarch64_sve_float_arith_with_sub_immediate.
16447 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16448 positive and negative constants.
16449 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16450 or an aarch64_sve_float_arith_with_sub_immediate.
16451 * config/aarch64/constraints.md (vsN): Use
16452 aarch64_sve_float_negated_arith_immediate.
16453 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16454 iterator.
16455 (sve_pred_fp_rhs2_immediate): New int attribute.
16456 * config/aarch64/aarch64-sve.md
16457 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16458 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16459 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16460 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16461 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16462 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16463
16464 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16465 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16466
16467 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16468 (*aarch64_cond_abd<SVE_F:mode>_3)
16469 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16470
16471 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16472 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16473
16474 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16475 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16476
16477 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16478 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16479
16480 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16481 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16482 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16483 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16484 optabs.
16485 * optabs.h (create_convert_operand_from): Expand comment.
16486 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16487 when mapping scalar rtxes to vector operands.
16488 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16489 ashiftrt and lshiftrt.
16490 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16491 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16492 (*cond_<optab><mode>_any_const): New patterns.
16493
16494 2019-08-15 Martin Liska <mliska@suse.cz>
16495
16496 PR ipa/91438
16497 * cgraph.c (cgraph_node::remove): When setting
16498 n->origin = NULL for all nested functions, reset
16499 also next_nested.
16500
16501 2019-08-15 Martin Liska <mliska@suse.cz>
16502
16503 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16504 and next_nested.
16505
16506 2019-08-15 Martin Liska <mliska@suse.cz>
16507
16508 PR ipa/91404
16509 * passes.c (order): Remove.
16510 (uid_hash_t): Likewise).
16511 (remove_cgraph_node_from_order): Remove from set
16512 of pointers (cgraph_node *).
16513 (insert_cgraph_node_to_order): New.
16514 (duplicate_cgraph_node_to_order): New.
16515 (do_per_function_toporder): Register all 3 cgraph hooks.
16516 Skip removed_nodes now as we know about all of them.
16517
16518 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16519
16520 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16521 <case E_V8QImode>: Use vector_set path for
16522 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16523 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16524 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16525
16526 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16527
16528 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16529
16530 2019-08-14 Martin Sebor <msebor@redhat.com>
16531
16532 PR tree-optimization/91294
16533 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16534 source length as exact.
16535
16536 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16537
16538 * doc/extend.texi: Add "noinit" attribute documentation.
16539 * doc/sourcebuild.texi: Add noinit effective target documentation.
16540 * varasm.c (default_section_type_flags): Add support for "noinit"
16541 section.
16542 (default_elf_select_section): Add support for "noinit" attribute.
16543 * config/msp430/msp430.c (msp430_attribute_table): Remove
16544 "noinit" entry.
16545
16546 2019-08-14 Richard Biener <rguenther@suse.de>
16547 Uroš Bizjak <ubizjak@gmail.com>
16548
16549 PR target/91154
16550 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16551 mode arguments.
16552 (scalar_chain::smode): New member.
16553 (scalar_chain::vmode): Likewise.
16554 (dimode_scalar_chain): Rename to...
16555 (general_scalar_chain): ... this.
16556 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16557 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16558 base with TImode and V1TImode.
16559 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16560 (general_scalar_chain::vector_const_cost): Adjust for SImode
16561 chains.
16562 (general_scalar_chain::compute_convert_gain): Likewise. Add
16563 {S,U}{MIN,MAX} support.
16564 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16565 (general_scalar_chain::make_vector_copies): Likewise. Handle
16566 non-DImode chains appropriately.
16567 (general_scalar_chain::convert_reg): Likewise.
16568 (general_scalar_chain::convert_op): Likewise.
16569 (general_scalar_chain::convert_insn): Likewise. Add
16570 fatal_insn_not_found if the result is not recognized.
16571 (convertible_comparison_p): Pass in the scalar mode and use that.
16572 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16573 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16574 (scalar_to_vector_candidate_p): Remove by inlining into single
16575 caller.
16576 (general_remove_non_convertible_regs): Rename from
16577 dimode_remove_non_convertible_regs.
16578 (remove_non_convertible_regs): Remove by inlining into single caller.
16579 (convert_scalars_to_vector): Handle SImode and DImode chains
16580 in addition to TImode chains.
16581 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16582 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16583 (*<maxmin>di3_doubleword): Likewise.
16584
16585 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16586 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16587
16588 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16589 (*cond_bic<mode>_any): New patterns.
16590
16591 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16592
16593 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16594 take the equivalent mask, as well as a bit count.
16595 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16596 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16597 (aarch64_sve_pred_and_operand): New predicates.
16598 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16599 code attribute.
16600 * config/aarch64/aarch64-sve.md
16601 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16602 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16603
16604 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16605
16606 * config/aarch64/aarch64-sve.md
16607 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16608 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16609 New patterns.
16610
16611 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16612 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16613
16614 * config/aarch64/aarch64-sve.md
16615 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16616 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16617
16618 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16619 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16620
16621 * config/aarch64/aarch64-sve.md
16622 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16623 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16624
16625 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16626
16627 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16628 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16629 New pattern.
16630
16631 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16632 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16633
16634 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16635
16636 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16637 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16638
16639 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16640 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16641 (aarch64_print_operand): Add support for %I.
16642 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16643 Bitcast floating-point constants to the corresponding integer constant.
16644 (aarch64_float_const_representable_p): Handle vectors as well
16645 as scalars.
16646 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16647 for the new vcond_mask_<mode><vpred> expander.
16648 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16649 test aarch64_float_const_representable_p.
16650 (aarch64_sve_reg_or_dup_imm): New predicate.
16651 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16652 gen_vcond_mask_<mode><vpred> instead of
16653 gen_aarch64_sve_dup<mode>_const.
16654 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16655 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16656 for operands 1 and 2 respectively. Force operand 2 into a
16657 register if operand 1 is a register. Fold old define_insn...
16658 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16659 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16660 floating-point constants that can be moved as integers. Add
16661 alternatives for MOV /M and FMOV /M.
16662 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16663 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16664 1 and 2 respectively.
16665 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16666 as scalars.
16667 (vss): New constraint.
16668
16669 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16670
16671 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16672 (aarch64_sve_float_maxmin_operand): New predicates.
16673 * config/aarch64/constraints.md (vsB): New constraint.
16674 (vsM): Fix typo.
16675 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16676 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16677 UNSPEC_COND_FMINNM.
16678 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16679 Use aarch64_sve_float_maxmin_operand for operand 2.
16680 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16681 Add alternatives for the constant forms.
16682
16683 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16684
16685 * config/aarch64/constraints.md (vsb): New constraint.
16686 (vsm): Generalize description.
16687 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16688 iterator.
16689 (sve_imm_con): Handle smax, smin, umax and umin.
16690 (sve_imm_prefix): New code attribute.
16691 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16692 (aarch64_sve_vsb_operand): New predicates.
16693 (aarch64_sve_mul_immediate): Rename to...
16694 (aarch64_sve_vsm_immediate): ...this.
16695 (aarch64_sve_mul_operand): Rename to...
16696 (aarch64_sve_vsm_operand): ...this.
16697 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16698 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16699 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16700 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16701 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16702 add movprfx support for the immediate alternatives.
16703 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16704 of the above.
16705 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16706 for operand 3.
16707
16708 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16709
16710 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16711 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16712 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16713
16714 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16715
16716 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16717 (optab, sve_int_op): Handle them.
16718 * config/aarch64/aarch64-sve.md: Expand comment.
16719
16720 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16721
16722 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16723 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16724 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16725
16726 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16727
16728 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16729 (aarch64_expand_sve_const_pred_trn): New functions.
16730 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16731 use the above functions when the parameter is true.
16732 (aarch64_expand_sve_const_pred): Update call accordingly.
16733 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16734 Rename to...
16735 (@aarch64_sve_<perm_insn><mode>): ...this.
16736
16737 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16738
16739 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16740 Declare.
16741 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16742 (aarch64_sve_emit_int_cmp): New functions.
16743 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16744 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16745 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16746 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16747 (UNSPEC_PRED_Z): New unspec.
16748 (set_clobber_cc_nzc): Delete.
16749 * config/aarch64/aarch64-sve.md: Add a block comment about
16750 UNSPEC_PRED_Z.
16751 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16752 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16753 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16754 UNSPEC_MERGE_PTRUE.
16755 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16756 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16757 check for compatible predicates.
16758 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16759 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16760 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16761 comparisons above.
16762
16763 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16764
16765 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16766 * config/aarch64/aarch64-sve.md: Add a section describing it.
16767 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16768 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16769 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16770 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16771 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16772 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16773 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16774 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16775 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16776 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16777 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16778 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16779 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16780 (aarch64_evpc_rev_local): Update accordingly.
16781
16782 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16783
16784 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16785 iterators.
16786 (SVE_BHSI, SVE_SDI): Tweak comment.
16787 (SVE_HSDI): Likewise. Fix definition.
16788 (SVE_SDF): New mode iterator.
16789 (elem_bits): New mode attribute.
16790 (SVE_COND_FCVT): New int iterator.
16791 * config/aarch64/aarch64-sve.md
16792 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16793 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16794 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16795 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16796 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16797 ...these new patterns.
16798 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16799 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16800 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16801 Merge into...
16802 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16803 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16804 ...these new patterns.
16805 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16806 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16807 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16808 ...this new pattern.
16809 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16810 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16811 ...this new pattern.
16812 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16813
16814 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16815
16816 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16817 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16818 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16819 unspecs.
16820 (optab, su): Handle them.
16821 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16822 * config/aarch64/aarch64-sve.md
16823 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16824 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16825 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16826 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16827 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16828 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16829 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16830 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16831 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16832 FIXUORS.
16833 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16834 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16835 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16836 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16837 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16838 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16839 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16840 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16841 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16842 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16843 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16844 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16845 of UNSPEC_FLOAT_CONVERT.
16846 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16847 aarch64_sve_extend<mode><Vwide>2.
16848
16849 2019-08-14 Richard Biener <rguenther@suse.de>
16850
16851 PR target/91154
16852 * config/i386/i386-features.c
16853 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16854 individual instruction gain. Fix reg-reg copy GRP cost. Use
16855 ix86_cost->sse_op for vector instruction costs.
16856
16857 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16858
16859 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16860 (cmp_op): Handle it.
16861 (SVE_COND_FP_CMP): Rename to...
16862 (SVE_COND_FP_CMP_I0): ...this.
16863 (SVE_FP_CMP): Remove.
16864 * config/aarch64/aarch64-sve.md
16865 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16866 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16867 using unspecs to represent the comparison.
16868 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16869 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16870 accordingly.
16871 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16872 (aarch64_unspec_cond_code): Move after integer code. Handle
16873 UNORDERED.
16874 (aarch64_emit_sve_predicated_cond): Replace with...
16875 (aarch64_emit_sve_fp_cond): ...this new function.
16876 (aarch64_emit_sve_or_conds): Replace with...
16877 (aarch64_emit_sve_or_fp_conds): ...this new function.
16878 (aarch64_emit_sve_inverted_cond): Replace with...
16879 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16880 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16881
16882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16883
16884 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16885 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16886 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16887 SVE_HSD instead of SVE_SD.
16888
16889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16890 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16891
16892 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16893 iterator.
16894 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16895 attributes.
16896 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16897 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16898 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16899 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16900 (*div<SVE_F:mode>3): Generalize to...
16901 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16902
16903 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16904 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16905
16906 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16907 constants.
16908 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16909 predicate.
16910 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16911 Declare.
16912 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16913 function.
16914 * config/aarch64/aarch64-sve.md: Add a block comment about the
16915 handling of predicated FP operations.
16916 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16917 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16918 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16919 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16920 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16921 operand.
16922 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16923 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16924 operand.
16925 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16926 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16927 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16928 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16929 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16930 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16931 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16932 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16933 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16934 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16935 strictness operands. Use aarch64_sve_pred_dominates_p to check
16936 whether the predicate on the conditional operation is suitable
16937 for merging. Split patterns into the canonical equal-predicate form.
16938 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16939 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16940
16941 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16942 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16943
16944 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16945 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16946 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16947 rtx codes.
16948 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16949 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16950 unspecs.
16951
16952 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16953 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16954
16955 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16956 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16957 actually has, rather than relying on REG_EQUAL notes.
16958 Make the insn operand order match the SVE operand order.
16959 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16960 the SVE operand order.
16961
16962 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16963
16964 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16965 (aarch64_emit_set_immediate): Likewise.
16966 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16967 (aarch64_pfalse_reg): Likewise.
16968 (aarch64_convert_sve_data_to_pred): New function.
16969 (aarch64_sve_move_pred_via_while): Take an optional target register
16970 and the required register mode.
16971 (aarch64_expand_sve_const_pred_1): New function.
16972 (aarch64_expand_sve_const_pred): Likewise.
16973 (aarch64_expand_mov_immediate): Build an all-true predicate
16974 if the significant bits of the immediate are all true. Use
16975 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16976 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16977 before register allocation.
16978 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16979 a VNx16BI PTRUE when splitting the memory alternative.
16980 (vec_duplicate<mode>): Update accordingly.
16981 (*pred_cmp<cmp_op><mode>): Rename to...
16982 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16983
16984 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16985
16986 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16987 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16988 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16989 (UNSPEC_PTEST): New unspec.
16990 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16991 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16992 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16993 * config/aarch64/aarch64-sve.md: Add a new section describing the
16994 handling of UNSPEC_PTEST.
16995 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16996 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16997 (ptest_ptrue<mode>): Replace with...
16998 (aarch64_ptest<mode>): ...this new pattern.
16999 (cbranch<mode>4): Update after above changes.
17000 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17001 UNSPEC_PTEST_PTRUE.
17002 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17003 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17004 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17005
17006 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17007
17008 PR lto/91287
17009 * builtins.c (builtin_with_linkage_p): New function.
17010 * builtins.h (builtin_with_linkage_p): New function.
17011 * symtab.c (write_symbol): Remove redundant assert.
17012 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17013 Remove FIXME and use builtin_with_linkage_p.
17014
17015 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17016
17017 PR middle-end/91421
17018 * tree-core.h (function_decl::function_code): Change type to
17019 unsigned int.
17020 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17021 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17022 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17023 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17024 is BUILT_IN_NORMAL.
17025 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17026 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17027 (fndecl_built_in_p): Change the type of the "name" argument to
17028 unsigned int.
17029 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17030 after check for DECL_BUILT_IN_CLASS.
17031 * cgraphclones.c (build_function_decl_skip_args): Use
17032 set_decl_built_in_function.
17033 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17034 * ipa-split.c (split_function): Likewise.
17035 * langhooks.c (add_builtin_function_common): Likewise.
17036 * omp-simd-clone.c (simd_clone_create): Likewise.
17037 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17038 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17039 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17040 DECL_FUNCTION_CODE.
17041 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17042 instead of DECL_FUNCTION_CODE.
17043 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17044 instead of DECL_FUNCTION_CODE.
17045 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17046 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17047 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17048 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17049 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17050 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17051 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17052 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17053 (alpha_gimple_fold_builtin): Likewise.
17054 * config/arc/arc.c (arc_expand_builtin): Likewise.
17055 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17056 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17057 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17058 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17059 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17060 * config/frv/frv.c (frv_expand_builtin): Likewise.
17061 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17062 (gcn_expand_builtin): Likewise.
17063 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17064 (fold_builtin_cpu): Likewise.
17065 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17066 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17067 (ix86_gimple_fold_builtin): Likewise.
17068 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17069 (ia64_expand_builtin): Likewise.
17070 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17071 * config/mips/mips.c (mips_expand_builtin): Likewise.
17072 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17073 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17074 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17075 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17076 * config/pa/pa.c (pa_expand_builtin): Likewise.
17077 * config/pru/pru.c (pru_expand_builtin): Likewise.
17078 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17079 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17080 Likewise.
17081 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17082 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17083 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17084 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17085 (rs6000_builtin_reciprocal): Likewise.
17086 * config/rx/rx.c (rx_expand_builtin): Likewise.
17087 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17088 * config/s390/s390.c (s390_expand_builtin): Likewise.
17089 * config/sh/sh.c (sh_expand_builtin): Likewise.
17090 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17091 (sparc_fold_builtin): Likewise.
17092 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17093 * config/spu/spu.c (spu_expand_builtin): Likewise.
17094 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17095 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17096 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17097 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17098 (xtensa_expand_builtin): Likewise.
17099
17100 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17101
17102 PR middle-end/91421
17103 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17104 before the DECL_FUNCTION_CODE.
17105 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17106 to check for a BUILT_IN_ALLOCA call.
17107 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17108 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17109 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17110 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17111 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17112 for BUILT_IN_NORMAL functions.
17113 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17114 test for BUILT_IN_TM_ABORT.
17115 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17116 to check for a BUILT_IN_STACK_RESTORE call.
17117 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17118 * tree-ssa-threadedge.c
17119 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17120 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17121 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17122 test for a BUILT_IN_NORMAL call instead of a negative test for
17123 an internal function call.
17124
17125 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17126
17127 * tree.h (build_vector_a_then_b): Declare.
17128 * tree.c (build_vector_a_then_b): New function.
17129 * fold-const-call.c (fold_while_ult): Likewise.
17130 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17131 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17132 (aarch64_svpattern): New enum.
17133 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17134 constants through aarch64_expand_mov_immediate.
17135 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17136 than general_operand as the predicate for operand 1.
17137 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17138 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17139 insn_type.
17140 (simd_immediate_info::simd_immediate_info): New overload that
17141 takes a scalar_int_mode and an svpattern.
17142 (simd_immediate_info::u): Add a "pattern" field.
17143 (svpattern_token): New function.
17144 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17145 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17146 (aarch64_sve_move_pred_via_while): New functions.
17147 (aarch64_expand_mov_immediate): Try using
17148 aarch64_sve_move_pred_via_while for predicates that contain N ones
17149 followed by M zeros but that do not correspond to a VLnnn pattern.
17150 (aarch64_sve_pred_valid_immediate): New function.
17151 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17152 with PTRUE and PFALSE.
17153 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17154 forms.
17155
17156 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17157
17158 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17159 flag.
17160 (darwin_override_options): Likewise.
17161 * config/darwin.h: Likewise.
17162 * config/darwin.opt: Likewise.
17163 * config/i386/i386.c (output_pic_addr_const): Likewise.
17164 * config/rs6000/darwin.h: Likewise.
17165 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17166 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17167 ... this TARGET_MACHO_SYMBOL_STUBS.
17168 (FUNCTION_PROFILER):Likewise.
17169 * config/i386/i386.h: Likewise.
17170
17171 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17172
17173 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17174 <case E_V2SImode>: Use vec_extr path for
17175 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17176 <case E_V8QImode>: Ditto.
17177 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17178 Use SWI48 mode iterator. Use %k to output operand 0.
17179 (*mmx_pextrw): New insn pattern.
17180 (*mmx_pextrb): Ditto.
17181 (*mmx_pextrb_zext): Ditto.
17182
17183 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17184
17185 * target.def (libc_has_function, libc_has_fast_function): Improve
17186 documentation strings.
17187 * doc/tm.texi: Regenerate.
17188
17189 2019-08-13 Caroline Tice <cmtice@google.com>
17190
17191 PR other/91396
17192 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17193 vtv_end.o or vtv_end_preinit.o files if !static.
17194
17195 2019-08-13 Olivier Hainque <hainque@adacore.com>
17196
17197 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17198
17199 2019-08-13 Olivier Hainque <hainque@adacore.com>
17200
17201 * rtlanal.c (tablejump_casesi_pattern): New function, to
17202 determine if a tablejump insn is a casesi dispatcher. Extracted
17203 from patch_jump_insn.
17204 * rtl.h (tablejump_casesi_pattern): Declare.
17205 * cfgrtl.c (patch_jump_insn): Use it.
17206 * dwarf2cfi.c (create_trace_edges): Use it.
17207
17208 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17209
17210 PR target/81800
17211 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17212 operand is larger than a long int.
17213
17214 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17215
17216 * machmode.h (opt_mode::else_mode): New function.
17217 (opt_mode::else_blk): Use it.
17218 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17219 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17220 (aarch64_gen_stepped_int_parallel): Likewise.
17221 (aarch64_stepped_int_parallel_p): Likewise.
17222 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17223 argument.
17224 * config/aarch64/aarch64.c
17225 (aarch64_expand_sve_widened_duplicate): Delete.
17226 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17227 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17228 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17229 argument. Use early returns in the !CONST_INT_P handling.
17230 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17231 than handling some inline.
17232 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17233 from...
17234 (aarch64_simd_container_mode): ...here.
17235 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17236 (aarch64_sve_ld1rq_operand_p): New functions.
17237 * config/aarch64/predicates.md (descending_int_parallel)
17238 (aarch64_sve_ld1rq_operand): New predicates.
17239 * config/aarch64/constraints.md (UtQ): New constraint.
17240 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17241 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17242 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17243 (@aarch64_sve_reinterpret<mode>): New expander.
17244 (*aarch64_sve_reinterpret<mode>): New pattern.
17245 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17246 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17247 (*sve_ld1rq<Vesize>): Replace with...
17248 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17249
17250 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17251
17252 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17253 16:12.
17254
17255 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17256
17257 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17258 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17259 (msp430_check_path_for_devices): New.
17260 (parse_devices_csv_1): New.
17261 (parse_devices_csv): New.
17262 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17263 MCU data in devices.csv before using the hard-coded data.
17264 Warn if devices.csv isn't found and the MCU wasn't found in the
17265 hard-coded data either.
17266 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17267 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17268 Search for devices.csv on -I and -L paths.
17269 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17270 msp430_set_driver_var.
17271 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17272 -mdevices-csv-loc=.
17273 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17274 searched for devices.csv.
17275 (mwarn-devices-csv): Document option.
17276
17277 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17278
17279 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17280 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17281 Use a single Dn alternative instead of separate Dz and Dm
17282 alternatives. Use aarch64_output_sve_move_immediate.
17283 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17284 function.
17285 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17286 for predicates too.
17287 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17288 (aarch64_output_ptrue): Delete.
17289
17290 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17291
17292 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17293 INDEX.
17294 (simd_immediate_info::value, simd_immediate_info::step)
17295 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17296 with...
17297 (simd_immediate_info::u): ...this new union.
17298 (simd_immediate_info::simd_immediate_info): Update accordingly.
17299 (aarch64_output_simd_mov_immediate): Likewise.
17300 (aarch64_output_sve_mov_immediate): Likewise.
17301
17302 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17303
17304 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17305 extra_gcc_objs.
17306 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17307 (msp430_select_cpu): New spec function.
17308 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17309 MCU data.
17310 * config/msp430/msp430-devices.c: New file.
17311 * config/msp430/msp430-devices.h: New file.
17312 * config/msp430/msp430.c: Remove msp430_mcu_data.
17313 (msp430_option_override): Use msp430_extract_mcu_data to extract
17314 MCU data.
17315 (msp430_use_f5_series_hwmult): Likewise.
17316 (use_32bit_hwmult): Likewise.
17317 (msp430_no_hwmult): Likewise.
17318 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17319 assembler.
17320 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17321 and -mcpu option.
17322 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17323 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17324 Remove hard-coded MCU multilib data.
17325
17326 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17327
17328 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17329 based on the mode instead of testing properties of it.
17330
17331 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17332
17333 * doc/md.texi: Document the x and y constraints for AArch64.
17334 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17335 (FP_LO8_REGS): New reg_class.
17336 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17337 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17338 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17339 * config/aarch64/predicates.md (aarch64_simd_register): Use
17340 FP_REGNUM_P instead of checking the classes manually.
17341 * config/aarch64/constraints.md (y): New constraint.
17342
17343 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17344
17345 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17346 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17347 * config/aarch64/aarch64-simd.md
17348 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17349 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17350 from the asm template.
17351 * config/aarch64/aarch64-sve.md
17352 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17353 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17354 from the asm template.
17355 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17356 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17357 from the asm template.
17358 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17359
17360 2019-08-13 Martin Liska <mliska@suse.cz>
17361
17362 * value-prof.c (gimple_ic_transform): Add new line.
17363 Print details with MSG_NOTE.
17364
17365 2019-08-13 Martin Liska <mliska@suse.cz>
17366
17367 * doc/invoke.texi: Document automatic detection of jobserver.
17368 * lto-wrapper.c (run_gcc): Detect jobserver always.
17369
17370 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17371
17372 * config/i386/i386-expand.c (ix86_expand_vector_set)
17373 <case E_V2SImode>: Use vec_merge path for
17374 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17375 <case E_V8QImode>: Ditto.
17376 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17377 (*mmx_pinsrb): Ditto.
17378
17379 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17380
17381 PR target/83250
17382 PR target/91340
17383 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17384 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17385 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17386 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17387 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17388
17389 2019-08-12 Richard Biener <rguenther@suse.de>
17390
17391 PR lto/91375
17392 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17393 flag_devirtualize.
17394
17395 2019-08-12 Richard Biener <rguenther@suse.de>
17396
17397 PR driver/91130
17398 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17399 lang_mask option, always use CL_DRIVER.
17400 (get_options_from_collect_gcc_options): Adjust.
17401 (find_and_merge_options): Likewise.
17402 (run_gcc): Likewise.
17403
17404 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17405
17406 * ipa-predicate.c (add_condition): Restore inverted test.
17407
17408 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17409
17410 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17411 (enum omp_clause_device_type_kind): New enum.
17412 (struct tree_omp_clause): Add subcode.device_type_kind.
17413 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17414 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17415 for device_type clause.
17416 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17417 * tree-pretty-print.c (dump_omp_clause): Likewise.
17418
17419 PR target/91408
17420 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17421 vector_operand.
17422
17423 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17424
17425 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17426 handling spilled pseudos.
17427
17428 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17429
17430 PR target/91386
17431 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17432 to preserve the contents of the original insns.
17433
17434 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17435
17436 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17437 (addsi3_compare_op2): Likewise.
17438
17439 2019-08-09 Martin Liska <mliska@suse.cz>
17440
17441 * alias.c (alias_ptr_types_compatible_p): Strengten
17442 type comparison in LTO mode.
17443
17444 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17445
17446 PR middle-end/90313
17447 * tree-tailcall.c (find_tail_calls): Reject calls that might
17448 read from an escaped RESULT_DECL.
17449
17450 2019-08-09 Martin Liska <mliska@suse.cz>
17451
17452 * doc/invoke.texi: Document the option value.
17453 * lto-wrapper.c (run_gcc): Set auto_parallel
17454 only with -flto=auto.
17455
17456 2019-08-09 Martin Liska <mliska@suse.cz>
17457
17458 * opts.c (common_handle_option): Error for an invalid argument
17459 to -flto=.
17460
17461 2019-08-09 Martin Liska <mliska@suse.cz>
17462
17463 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17464 use dump_printf to report optimization.
17465 (sem_variable::merge): Likwise.
17466 (sem_item_optimizer::merge_classes): Use dump_printf to report
17467 ICF hits.
17468
17469 2019-08-09 Martin Liska <mliska@suse.cz>
17470
17471 * value-prof.c (gimple_divmod_fixed_value_transform):
17472 Use dump_printf_loc.
17473 (gimple_mod_pow2_value_transform): Likewise.
17474 (gimple_mod_subtract_transform): Likewise.
17475 (init_node_map): Likewise.
17476 (gimple_ic_transform): Likewise.
17477 (gimple_stringops_transform): Likewise.
17478
17479 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17480
17481 * doc/extend.texi: Add const qualifier to ld intrinsics.
17482
17483 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17484
17485 * config/rs6000/dfp.md (D64_D128): Rename to ...
17486 (DDTD): ... this, throughout.
17487 (dfp_suffix): Rename to ...
17488 (q): ... this, throughout.
17489
17490 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17491
17492 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17493 (dfp_suffix): Ditto.
17494 (adddd3, addtd3): Merge to ...
17495 (add<mode>3 for D64_D128): ... this.
17496 (subdd3, subtd3): Merge to ...
17497 (sub<mode>3 for D64_D128): ... this.
17498 (muldd3, multd3): Merge to ...
17499 (mul<mode>3 for D64_D128): ... this.
17500 (divdd3, divtd3): Merge to ...
17501 (div<mode>3 for D64_D128): ... this.
17502 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17503 (*cmp<mode>_internal1 for D64_D128): ... this.
17504 (ftruncdd2, ftrunctd2): Merge to ...
17505 (ftrunc<mode>2 for D64_D128): ... this.
17506 (fixdddi2, fixtddi2): Merge to ...
17507 (fix<mode>di2 for D64_D128): ... this.
17508
17509 2019-08-08 Jim Wilson <jimw@sifive.com>
17510
17511 PR target/91229
17512 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17513 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17514 Pass into recursive call.
17515 (riscv_flatten_aggregate_argument): New arg. Pass to
17516 riscv_flatten_aggregate_field.
17517 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17518 riscv_flatten_aggregate_argument twice, with false and true as last
17519 arg. Process result twice. Compare results and warn if different.
17520 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17521
17522 2019-08-08 Martin Liska <mliska@suse.cz>
17523
17524 PR bootstrap/91352
17525 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17526 * lto-wrapper.c (jobserver_active_p): Likewise.
17527
17528 2019-08-08 Martin Liska <mliska@suse.cz>
17529
17530 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17531 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17532 (create_version_clone_with_body): Likewise.
17533
17534 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17535
17536 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17537 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17538 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17539 GOVD_EXPLICIT flags.
17540 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17541 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17542 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17543 call install_var_field with mask 11 instead of 3.
17544 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17545 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17546
17547 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17548
17549 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17550 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17551
17552 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17553
17554 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17555 MOVPRFX alternatives. Make the GPR alternatives more expensive
17556 than the FPR ones.
17557
17558 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17559
17560 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17561 Disparage the GPR alternative relative to the FPR one.
17562 Fix handling of 8-bit and 16-bit FPR values.
17563
17564 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17565
17566 * config/aarch64/iterators.md (BITWISEV): Delete.
17567 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17568 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17569 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17570 UNSPEC_FMINNMV, UNSPEC_FMINV.
17571 (bit_reduc_op): Delete.
17572 (sve_int_op): New int attribute.
17573 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17574 UNSPEC_FMINNMV, UNSPEC_FMINV.
17575 * config/aarch64/aarch64-sve.md
17576 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17577 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17578 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17579 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17580 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17581 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17582 new patterns.
17583 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17584 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17585 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17586 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17587 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17588 new patterns.
17589
17590 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17591
17592 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17593 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17594 (fms<mode>4, *fms<mode>4): Replace with...
17595 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17596 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17597 Use unspecs instead of rtx codes.
17598 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17599 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17600
17601 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17602
17603 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17604 int iterator.
17605 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17606 * config/aarch64/aarch64-sve.md
17607 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17608 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17609 use a single unspec for the rhs.
17610 (*<su><maxmin><mode>3): Delete.
17611 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17612
17613 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17614
17615 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17616 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17617 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17618 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17619 (optab, sve_fp_op): Handle them.
17620 (SVE_FP_UNARY): Delete.
17621 (optab): Remove sqrt entry.
17622 (sve_fp_op): Remove neg, abs and sqrt entries.
17623 (SVE_COND_FP_UNARY): New int iterator.
17624 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17625 (*<frint_pattern><mode>2): Delete.
17626 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17627 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17628 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17629 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17630
17631 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17632
17633 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17634
17635 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17636
17637 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17638 (UNSPEC_COND_FADD): ...this.
17639 (UNSPEC_COND_SUB): Rename to...
17640 (UNSPEC_COND_FSUB): ...this.
17641 (UNSPEC_COND_MUL): Rename to...
17642 (UNSPEC_COND_FMUL): ...this.
17643 (UNSPEC_COND_DIV): Rename to...
17644 (UNSPEC_COND_FDIV): ...this.
17645 (UNSPEC_COND_MAX): Rename to...
17646 (UNSPEC_COND_FMAXNM): ...this.
17647 (UNSPEC_COND_MIN): Rename to...
17648 (UNSPEC_COND_FMINNM): ...this.
17649 (UNSPEC_COND_LT): Rename to...
17650 (UNSPEC_COND_FCMLT): ...this.
17651 (UNSPEC_COND_LE): Rename to...
17652 (UNSPEC_COND_FCMLE): ...this.
17653 (UNSPEC_COND_EQ): Rename to...
17654 (UNSPEC_COND_FCMEQ): ...this.
17655 (UNSPEC_COND_NE): Rename to...
17656 (UNSPEC_COND_FCMNE): ...this.
17657 (UNSPEC_COND_GE): Rename to...
17658 (UNSPEC_COND_FCMGE): ...this.
17659 (UNSPEC_COND_GT): Rename to...
17660 (UNSPEC_COND_FCMGT): ...this.
17661 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17662 (sve_fp_op_rev): Update accordingly.
17663 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17664
17665 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17666
17667 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17668 banner comments.
17669 * config/aarch64/check-sve-md.awk: New file.
17670 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17671 (insn-conditions.md): Depend on it.
17672
17673 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17674
17675 PR target/91385
17676 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17677 (*negsi2_cmpz_zext): Ditto.
17678
17679 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17680
17681 * config/aarch64/iterators.md (commutative): Remove.
17682
17683 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17684
17685 PR driver/91130
17686 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17687 processing COLLECT_GCC_OPTIONS.
17688 (run_gcc): Likewise.
17689
17690 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17691
17692 PR tree-optimization/91109
17693 * lra-remat.c (update_scratch_ops): Remove assignment of the
17694 hard register.
17695
17696 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17697
17698 * data-streamer.h (streamer_write_poly_uint64): Declare.
17699 (streamer_read_poly_uint64): Likewise.
17700 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17701 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17702 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17703 (add_condition): Take a poly_int64 size.
17704 * ipa-predicate.c (add_condition): Likewise.
17705 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17706 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17707 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17708 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17709 condition::size as a poly_int64.
17710 (unmodified_parm_1): Take a poly_int64 size pointer.
17711 (unmodified_parm): Likewise.
17712 (unmodified_parm_or_parm_agg_item): Likewise.
17713 (set_cond_stmt_execution_predicate): Update accordingly.
17714 (set_switch_stmt_execution_predicate): Likewise.
17715 (will_be_nonconstant_expr_predicate): Likewise.
17716 (will_be_nonconstant_predicate): Likewise.
17717 (inline_read_section): Stream condition::size as a poly_int.
17718 (ipa_fn_summary_write): Likewise.
17719
17720 2019-08-07 Martin Liska <mliska@suse.cz>
17721
17722 * fold-const.c (twoval_comparison_p): Replace int
17723 with bool as a return type.
17724 (simple_operand_p): Likewise.
17725 (operand_equal_p): Replace int with bool as a return type.
17726 * fold-const.h (operand_equal_p): Likewise.
17727
17728 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17729
17730 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17731 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17732 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17733 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17734 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17735 * tree-pretty-print.c (dump_omp_clause): Likewise.
17736 * tree-nested.c (convert_nonlocal_omp_clauses,
17737 convert_local_omp_clauses): Likewise.
17738 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17739 Likewise.
17740 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17741 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17742 clause with array or reference to array types, no matter what type
17743 except for reference it has.
17744
17745 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17746
17747 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17748
17749 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17750
17751 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17752 (arch_canonicalize): Support rv32g and rv64g and fix error
17753 handling.
17754
17755 2019-08-06 Martin Liska <mliska@suse.cz>
17756
17757 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17758 and DECL_IS_OPERATOR_DELETE_P.
17759
17760 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17761
17762 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17763 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17764 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17765 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17766 (gimplify_omp_for): Don't do C++ random access iterator clause
17767 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17768 don't predetermine the artificial iterator in case of C++ random
17769 access iterators as lastprivate, but private. For OMP_LOOP, force
17770 bind expr around simd body and force for_pre_body before the
17771 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17772 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17773 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17774 diff var of C++ random access iterators. Handle
17775 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17776 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17777 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17778 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17779 * omp-low.c (lower_rec_input_clauses): For
17780 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17781 variables instead of default constructing them.
17782 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17783 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17784 is_taskloop_ctx check from the assert to the guarding condition.
17785
17786 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17787
17788 * config/riscv/multilib-generator: (canonical_order): New.
17789 (arch_canonicalize): Dito.
17790 Apply arch_canonicalize for alts.
17791
17792 2019-08-05 Martin Sebor <msebor@redhat.com>
17793
17794 * doc/extend.texi (Common Variable Attributes): Document alias
17795 attribute.
17796
17797 2019-08-05 Marek Polacek <polacek@redhat.com>
17798
17799 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17800 * doc/invoke.texi: Document -Wcomma-subscript.
17801
17802 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17803
17804 * tree-core.h (tree_function_decl): Make function_code an
17805 independent field. Group the remaining bitfields into bytes
17806 and move decl_type so that it contines to be at a byte boundary.
17807 Leave 12 bits for future expansion.
17808
17809 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17810
17811 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17812 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17813 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17814 IFN_MASK_STORE.
17815
17816 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17817
17818 * gimple.h (gimple_move_vops): Declare.
17819 * gimple.c (gimple_move_vops): New function
17820 * gimple-fold.c (replace_call_with_call_and_fold)
17821 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17822 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17823 (gimple_fold_call): Use it.
17824 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17825 * tree-call-cdce.c (use_internal_fn): Likewise.
17826 * tree-if-conv.c (predicate_load_or_store): Likewise.
17827 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17828 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17829 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17830 (update_call_from_tree): Likewise.
17831 * tree-vect-stmts.c (vectorizable_load): Likewise.
17832 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17833
17834 2019-08-05 Martin Liska <mliska@suse.cz>
17835
17836 PR c++/91334
17837 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17838 with not arguments.
17839 (eliminate_unnecessary_stmts): Likewise.
17840
17841 2019-08-05 Richard Biener <rguenther@suse.de>
17842
17843 PR middle-end/91169
17844 * fold-const.c (get_array_ctor_element_at_index): Create
17845 offset_ints according to the sign of the index type and treat
17846 that as signed if it is obviously so.
17847
17848 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17849
17850 PR target/91341
17851 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17852 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17853 _mm256_storeu2_m128i): New function.
17854
17855 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17856
17857 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17858 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17859
17860 2019-08-05 Alan Modra <amodra@gmail.com>
17861
17862 PR target/91349
17863 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17864 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17865
17866 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17867
17868 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17869 bug that was fixed in Tcl 8.6.1.
17870
17871 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17872
17873 * config/rs6000/future.md: New file.
17874 * config/rs6000/rs6000.md: Include future.md.
17875 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17876
17877 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17878
17879 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17880 check to use targetm.slow_unaligned_access instead.
17881
17882 * function.c (assign_param_data_one): Remove unused data members.
17883
17884 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17885
17886 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17887 build_distinct_type_copy.
17888 (simd_clone_adjust_argument_types): Ditto.
17889 (simd_clone_adjust): Call build_distinct_type_copy here.
17890 (expand_simd_clones): Ditto.
17891
17892 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17893
17894 PR target/91201
17895 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17896
17897 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17898
17899 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17900 from 'const void *'.
17901 (sort_locs_in_loop_postorder_cmp): Likewise.
17902
17903 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17904
17905 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17906 (hot-bb-count-ws-permille): Likewise.
17907 (hot-bb-frequency-fraction): Likewise.
17908 (unlikely-bb-count-fraction): Likewise.
17909 * params.def (hot-bb-count-fraction): Rework description.
17910 (hot-bb-count-ws-permille): Likewise.
17911 (hot-bb-frequency-fraction): Likewise.
17912 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17913 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17914
17915 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17916
17917 PR target/91323
17918 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17919 Return false.
17920
17921 2019-08-02 Richard Biener <rguenther@suse.de>
17922
17923 * vec.h (vec::sort): Add gcc_qsort_r support.
17924 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17925 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17926 to gcc_qsort_r style callback.
17927 (sort_locs_in_loop_postorder_cmp): Likewise.
17928 (analyze_memory_references): Use gcc_sort_r interfaces.
17929 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17930
17931 2019-08-02 Martin Liska <mliska@suse.cz>
17932
17933 PR lto/91313
17934 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17935 to detect working job server.
17936 (driver::detect_jobserver): Test whether jobserver
17937 is active from GCC driver. That will prevent situation where
17938 GCC is invoked from a LD plugin and the linker already uses
17939 file descriptors suggested by make. That leads to a wrong
17940 detection.
17941 * gcc.h (driver): Add detect_jobserver.
17942 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17943 not scanning for --jobserver-auth prefix.
17944
17945 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17946
17947 PR tree-optimization/91201
17948 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17949 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17950 extraction.
17951
17952 2019-08-01 Martin Sebor <msebor@redhat.com>
17953
17954 PR c++/90947
17955 * tree.c (type_initializer_zero_p): Define.
17956 * tree.h (type_initializer_zero_p): New function.
17957
17958 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17959
17960 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17961
17962 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17963
17964 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17965 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17966 * predict.c (maybe_hot_count_p): Likewise.
17967 (maybe_hot_bb_p): Tweak comment.
17968 (maybe_hot_edge_p): Likewise.
17969 (probably_never_executed): Likewise. Minor tweak.
17970 (probably_never_executed_bb_p): Likewise.
17971 (unlikely_executed_edge_p): Likewise.
17972 (probably_never_executed_edge_p): Likewise.
17973 (optimize_function_for_size_p): Likewise.
17974 (optimize_function_for_speed_p): Likewise.
17975 (function_optimization_type): Likewise.
17976 (optimize_bb_for_size_p): Likewise.
17977 (optimize_bb_for_speed_p): Likewise.
17978 (bb_optimization_type): Likewise.
17979 (optimize_edge_for_size_p): Likewise.
17980 (optimize_edge_for_speed_p): Likewise.
17981 (optimize_insn_for_size_p): Likewise.
17982 (optimize_insn_for_speed_p): Likewise.
17983 (optimize_loop_for_size_p): Likewise.
17984 (optimize_loop_for_speed_p): Likewise.
17985 (optimize_loop_nest_for_speed_p): Likewise.
17986 (optimize_loop_nest_for_size_p): Likewise.
17987 (predictable_edge_p): Likewise.
17988 (handle_missing_profiles): Minor tweak.
17989
17990 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17991
17992 * config/rs6000/predicates.md (pcrel_external_address): Update
17993 comment.
17994
17995 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17996
17997 PR target/85693
17998 * config/i386/mmx.md (usadv8qi): New expander.
17999
18000 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18001
18002 PR c++/90590
18003 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18004 with reserved names that are in a system header.
18005
18006 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18007
18008 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18009 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18010 (*vec_extractv2si_0_zext): Ditto.
18011 (*vec_extractv2si_1): Add (rm,x) alternative.
18012 (*vec_extractv2si_1_zext): New insn pattern.
18013 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18014 insn constraint.
18015
18016 2019-08-01 Richard Biener <rguenther@suse.de>
18017
18018 * domwalk.c (bb_postorder): Remove static variable.
18019 (cmp_bb_postorder): Adjust.
18020 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18021 (dom_walker::walk): Adjust.
18022
18023 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18024
18025 * sort.cc (sort_r_ctx): New struct.
18026 (reorder23): Make templated on context type.
18027 (reorder45): Ditto.
18028 (cmp1): Ditto. Adjust signature.
18029 (netsort): Ditto.
18030 (mergesort): Ditto.
18031 [CHECKING_P] (cmp2to3): New static function. Use it...
18032 (gcc_qsort) [CHECKING_P]: ...here.
18033 (gcc_sort_r): New function.
18034 * system.h (sort_r_cmp_fn): New function typedef.
18035 (qsort_chk): Adjust signature.
18036 (gcc_sort_r): Declare.
18037 * vec.c (qsort_chk_error): Adjust.
18038 (qsort_chk): Adjust.
18039
18040 2019-08-01 Richard Biener <rguenther@suse.de>
18041
18042 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18043 (compute_antic): Localize it here.
18044
18045 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18046
18047 * common/config/riscv/riscv-common.c: Check -march string ends
18048 with null.
18049
18050 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18051
18052 * ipa-devirt.c (type_warning_cmp): Make static.
18053 (decl_warning_cmp): Ditto.
18054
18055 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18056
18057 PR target/91050
18058 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18059 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18060 use of deleted rs6000_dejagnu_cpu_index variable.
18061 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18062 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18063 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18064 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18065 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18066 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18067
18068 2019-07-31 Richard Biener <rguenther@suse.de>
18069
18070 PR tree-optimization/91280
18071 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18072 Decompose MEM_REF manually for offset handling.
18073
18074 2019-07-31 Richard Biener <rguenther@suse.de>
18075
18076 PR tree-optimization/91293
18077 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18078 of reduction stmts.
18079
18080 2019-07-31 Matt Thomas <matt@3am-software.com>
18081 Nick Hudson <nick@nthcliff.demon.co.uk>
18082 Matthew Green <mrg@eterna.com.au>
18083 Maya Rashish <coypu@sdf.org>
18084
18085 * config.gcc (hppa*-*-netbsd*): New target.
18086 * config/pa/pa-netbsd.h: New file.
18087 * config/pa/pa32-netbsd.h: New file.
18088
18089 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18090
18091 PR tree-optimization/91201
18092 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18093
18094 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18095
18096 * config/gcn/gcn-valu.md
18097 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18098 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18099 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18100 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18101 struct ilist. Add nops for delayeduse insns.
18102 * config/gcn/gcn.md (delayeduse): New attribute.
18103 (*movbi): Remove s_waitcnt from stores.
18104 (*mov<mode>_insn): Likewise.
18105 (*movti_insn): Likewise. Add delayeduse attribute.
18106 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18107 (atomic_store<mode>): Remove or adjust s_waitcnt.
18108
18109 2019-07-31 Richard Biener <rguenther@suse.de>
18110
18111 * vr-values.h (vr_values::swap_vr_value): New.
18112 (vr_values::free_value_range): likewise.
18113 * vr-values.c (vr_values::swap_vr_value): Implement.
18114 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18115 Do not return a range or take a var.
18116 (evrp_range_analyzer::stack): Change back to recording a non-const
18117 value_range *.
18118 * gimple-ssa-evrp-analyze.c
18119 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18120 value-range.
18121 (evrp_range_analyzer::pop_to_marker): Adjust.
18122 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18123 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18124 no longer needed value-range.
18125
18126 2019-07-31 Martin Liska <mliska@suse.cz>
18127
18128 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18129 have size and (or) alignment as 2nd and later arguments.
18130 Mark all of them as necessary.
18131
18132 2019-07-31 Richard Biener <rguenther@suse.de>
18133
18134 PR tree-optimization/91178
18135 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18136 Use tail-recursion.
18137
18138 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18139
18140 PR tree-optimization/91201
18141 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18142 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18143 TARGET_AVX512F.
18144 (reduc_plus_scal_<mode>): Improve formatting by introducing
18145 a temporary.
18146
18147 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18148
18149 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18150 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18151 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18152 (aarch64_init_tme_builtins): New.
18153 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18154 (aarch64_expand_builtin_tme): New.
18155 (aarch64_expand_builtin): Handle TME builtins.
18156 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18157 __ARM_FEATURE_TME when enabled.
18158 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18159 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18160 (TARGET_TME): New.
18161 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18162 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18163 UNSPECV_TCANCEL.
18164 (tstart, ttest, tcommit, tcancel): New instructions.
18165 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18166 (__tcancel, __ttest): New.
18167 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18168 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18169 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18170 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18171 * config/arm/types.md: Add new tme type attr.
18172 * doc/invoke.texi: Document "tme".
18173
18174 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18175
18176 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18177 warn_unused_result attribute.
18178 (cmse_check_address_range): Add warn_unused_result attribute.
18179
18180 2019-07-31 Richard Biener <rguenther@suse.de>
18181
18182 PR tree-optimization/91257
18183 * tree-vrp.c (union_ranges): Unify equality and less tests
18184 by using compare_values. Re-order cheap tests first.
18185
18186 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18187
18188 PR middle-end/91301
18189 * gimplify.c (gimplify_omp_for): If for class iterator on
18190 distribute parallel for there is no data sharing clause
18191 on inner_for_stmt, look for private clause on combined
18192 parallel too and if found, move it to inner_for_stmt.
18193
18194 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18195
18196 * lra-int.h (lra_operand_data): Remove early_clobber field.
18197 (lra_insn_reg): Likewise.
18198 * lra.c (debug_operand_data): Update accordingly.
18199 (setup_operand_alternative): Likewise.
18200 (new_insn_reg): Likewise. Remove early_clobber parameter.
18201 (collect_non_operand_hard_regs): Update call accordingly.
18202 Don't assign to lra_insn_reg::early_clobber.
18203 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18204 and update calls to new_insn_reg.
18205 (lra_update_insn_regno_info): Update calls accordingly.
18206 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18207 alternative number as a parameter and test whether the operand
18208 is earlyclobbered in that particular alternative.
18209 (process_alt_operands): Update call accordingly. Use per-alternative
18210 checks for earyclobber here too.
18211 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18212 against zero for IRA_UNKNOWN_ALT.
18213
18214 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18215
18216 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18217
18218 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18219
18220 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18221 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18222
18223 2019-07-30 Martin Liska <mliska@suse.cz>
18224
18225 PR ipa/89330
18226 * cgraph.c (cgraph_edge::make_direct): Use
18227 edge->indirect_unknown_callee as edge->resolve_speculation can
18228 deallocate edge which is this pointer.
18229
18230 2019-07-30 Richard Biener <rguenther@suse.de>
18231
18232 PR tree-optimization/91257
18233 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18234
18235 2019-07-30 Martin Liska <mliska@suse.cz>
18236
18237 * doc/invoke.texi: Document new behavior.
18238 * lto-wrapper.c (cpuset_popcount): New function
18239 is a copy of libgomp/config/linux/proc.c.
18240 (init_num_threads): Likewise.
18241 (run_gcc): Automatically detect core count for -flto.
18242 (jobserver_active_p): New function.
18243
18244 2019-07-30 Richard Biener <rguenther@suse.de>
18245
18246 PR tree-optimization/91257
18247 * bitmap.h (bitmap_ior_into_and_free): Declare.
18248 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18249 whether to add the unliked element to the freelist.
18250 (bitmap_list_insert_element_after): Add defaulted param for
18251 an already allocated element.
18252 (bitmap_ior_into_and_free): New function.
18253 * tree-ssa-structalias.c (condense_visit): Reduce the
18254 ponts-to and edge bitmaps of the SCC members in a
18255 logarithmic fashion rather than all to one.
18256
18257 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18258
18259 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18260 parameter. When nonnull, make sure that the addition or subtraction
18261 has the same condition.
18262 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18263 for CFN_COND_MUL too.
18264
18265 2019-07-30 Richard Biener <rguenther@suse.de>
18266
18267 PR tree-optimization/91291
18268 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18269 constant values.
18270
18271 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18272
18273 PR middle-end/91216
18274 * omp-low.c (global_nonaddressable_vars): New variable.
18275 (use_pointer_for_field): For global decls, if they are non-addressable,
18276 remember it in the global_nonaddressable_vars bitmap, if they are
18277 addressable and in the global_nonaddressable_vars bitmap, ignore their
18278 TREE_ADDRESSABLE bit.
18279 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18280 vars in global_nonaddressable_vars bitmap.
18281 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18282
18283 PR target/91150
18284 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18285 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18286 comparison to unsigned HOST_WIDE_INT before shifting it left.
18287
18288 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18289
18290 * config/i386/i386.md (movstrict<mode>): Use register_operand
18291 predicate for operand 0. Add expander condition. Assert that
18292 operand 0 is a SUBREG RTX.
18293 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18294 Update operand constraints and insn condition.
18295 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18296 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18297 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18298 Update operand 0 constraints.
18299 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18300
18301 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18302
18303 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18304 when -m{code,data}-region are used without -mlarge.
18305 * config/msp430/msp430.c (msp430_option_override): Error when a
18306 non-default code or data region is used without -mlarge.
18307 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18308 attributes when they are used without -mlarge.
18309
18310 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18311
18312 PR target/70320
18313 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18314
18315 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18316
18317 PR middle-end/91242
18318 * wide-int.h (generic_wide_int::sext_elt): New function.
18319 * inchash.h (hash::add_wide_int): Use it instead of elt.
18320
18321 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18322
18323 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18324 CODE_FOR_arm_##.
18325 * config/arm/arm.md (<crc_variant>): Rename to...
18326 (arm_<crc_variant>): ... This.
18327 (<cdp>): Rename to...
18328 (arm_<cdp>): ... This.
18329 (<ldc>): Rename to...
18330 (arm_<ldc>): ... This.
18331 (<stc>): Rename to...
18332 (arm_<stc>): ... This.
18333 (<mcr>): Rename to...
18334 (arm_<mcr>): ... This.
18335 (<mrc>): Rename to...
18336 (arm_<mrc>): ... This.
18337 (<mcrr>): Rename to...
18338 (arm_<mcrr>): ... This.
18339 (<mrrc>): Rename to...
18340 (arm_<mrrc>): ... This.
18341
18342 2019-07-29 Richard Biener <rguenther@suse.de>
18343
18344 PR tree-optimization/91257
18345 * tree-ssa-sccvn.h (struct vn_avail): New.
18346 (struct vn_ssa_aux): Add avail member.
18347 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18348 member, add m_avail_freelist one.
18349 (rpo_elim::~rpo_elim): Remove.
18350 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18351 data structure.
18352 (rpo_elim::eliminate_push_avail): Likewise.
18353 (do_unwind): Likewise.
18354 (do_rpo_vn): Likewise.
18355
18356 2019-07-29 Richard Biener <rguenther@suse.de>
18357
18358 PR tree-optimization/91257
18359 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18360 most cases, instead call compare_values which handles the
18361 symbolic ranges we handle specially.
18362 (compare_values_warnv): Do not call operand_less_p but open-code
18363 the effective fold calls. Avoid converting so much.
18364
18365 2019-07-29 Martin Liska <mliska@suse.cz>
18366
18367 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18368 remove LHS of operator new call. It's handled latter.
18369
18370 2019-07-29 Richard Biener <rguenther@suse.de>
18371
18372 PR tree-optimization/91267
18373 * vr-values.c (vr_values::update_value_range): Add early return
18374 for effectively VARYING lattice entry.
18375
18376 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18377
18378 PR debug/86638
18379 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18380 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18381 necessary if keep_all_vdefs_p is true.
18382 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18383 that keep_all_vdefs_p is false.
18384 (mark_all_reaching_defs_necessary): Likewise.
18385 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18386
18387 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18388
18389 * common.opt (Og): Change the initial value of flag_dse to 0.
18390 * opts.c (default_options_table): Move OPT_ftree_dse from
18391 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18392 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18393 entry before the OPT_ftree_sra entry.
18394 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18395 of flags disabled by Og.
18396
18397 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18398
18399 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18400 variables for -Og.
18401
18402 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18403
18404 * doc/sourcebuild.texi (check-function-bodies): Document.
18405
18406 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18407
18408 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18409 VEC_DUPLICATE of a fixed-length vector even if the result
18410 is variable-length. Likewise fold a duplicate of a
18411 variable-length vector if the variable-length vector is
18412 itself a duplicate of a fixed-length sequence.
18413 (test_vector_ops_duplicate): Test more cases.
18414
18415 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18416
18417 * vector-builder.h (vector_builder): Add a shape template parameter.
18418 (vector_builder::new_unary_operation): New function, generalizing
18419 the old tree_vector_builder function.
18420 (vector_builder::new_binary_operation): Likewise.
18421 (vector_builder::binary_encoded_nelts): Likewise.
18422 * int-vector-builder.h (int_vector_builder): Update template
18423 parameters to vector_builder.
18424 (int_vector_builder::shape_nelts): New function.
18425 * rtx-vector-builder.h (rtx_vector_builder): Update template
18426 parameters to vector_builder.
18427 (rtx_vector_builder::shape_nelts): New function.
18428 (rtx_vector_builder::nelts_of): Likewise.
18429 (rtx_vector_builder::npatterns_of): Likewise.
18430 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18431 * tree-vector-builder.h (tree_vector_builder): Update template
18432 parameters to vector_builder.
18433 (tree_vector_builder::shape_nelts): New function.
18434 (tree_vector_builder::nelts_of): Likewise.
18435 (tree_vector_builder::npatterns_of): Likewise.
18436 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18437 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18438 (tree_vector_builder::new_binary_operation): Delete.
18439 (tree_vector_builder::binary_encoded_nelts): Likewise.
18440 * simplify-rtx.c: Include rtx-vector-builder.h.
18441 (distributes_over_addition_p): New function.
18442 (simplify_const_unary_operation)
18443 (simplify_const_binary_operation): Generalize handling of vector
18444 constants to include variable-length vectors.
18445 (test_vector_ops_series): Add more tests.
18446
18447 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18448
18449 PR lto/91222
18450 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18451 than INDENTIFIER_POINTER.
18452
18453 2019-07-28 Martin Liska <mliska@suse.cz>
18454
18455 PR ipa/89330
18456 * cgraph.c (symbol_table::create_edge): Always allocate
18457 a cgraph_edge.
18458 (symbol_table::free_edge): Store summary_id to
18459 edge_released_summary_ids if != -1;
18460 * cgraph.h (NEXT_FREE_NODE): Remove.
18461 (SET_NEXT_FREE_NODE): Likewise.
18462 (NEXT_FREE_EDGE): Likewise.
18463 (symbol_table::release_symbol): Store summary_id to
18464 cgraph_released_summary_ids if != -1;
18465 (symbol_table::allocate_cgraph_symbol): Always allocate
18466 a cgraph_node.
18467
18468 2019-07-28 Alan Modra <amodra@gmail.com>
18469
18470 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18471 gen_sibcall.
18472
18473 2019-07-28 Alan Modra <amodra@gmail.com>
18474
18475 PR target/91135
18476 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18477 define.
18478 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18479 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18480 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18481
18482 2019-07-28 Alan Modra <amodra@gmail.com>
18483
18484 PR target/91050
18485 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18486 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18487 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18488 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18489 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18490 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18491 in asm_default spec.
18492 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18493 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18494
18495 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18496
18497 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18498
18499 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18500
18501 PR target/89517
18502 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18503 * config/aarch64/aarch64-option-extensions.def: Add new comments
18504 and restore easier to read options.
18505
18506 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18507
18508 * convert.c (convert_to_real_1): Move part of conversion code...
18509 * match.pd: ...To here.
18510
18511 2019-07-26 Martin Jambor <mjambor@suse.cz>
18512
18513 PR ipa/89330
18514 * ipa-inline-transform.c (check_speculations_1): New function.
18515 (push_all_edges_in_set_to_vec): Likewise.
18516 (check_speculations): Use check_speculations_1, new parameter
18517 new_edges.
18518 (inline_call): Pass new_edges to check_speculations.
18519 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18520 NULL.
18521 (speculation_useful_p): Early return true if edge is inlined, remove
18522 later checks for inline_failed.
18523
18524 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18525
18526 PR rtl-optimization/91223
18527 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18528 matching with INOUT operand.
18529
18530 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18531
18532 * stmt.c (expand_case): Try to narrow the index type if it's larger
18533 than a word. Tidy up.
18534
18535 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18536
18537 * cif-code.def (NEVER_CALL): New code.
18538 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18539 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18540
18541 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18542
18543 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18544 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18545
18546 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18547
18548 * ipa-devirt.c (add_type_duplicate): Fix return value.
18549
18550 2019-07-25 Richard Biener <rguenther@suse.de>
18551
18552 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18553 type parameter and use it instead of guessing expression
18554 type from the first operand.
18555 (extract_range_from_binary_expr): Pass expr_type down.
18556
18557 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18558
18559 * config/arm/arm.md (SATrev): Change to code attribute.
18560 (*satsi_<SAT:code>): Adjust for the above.
18561 (*satsi_<SAT:code>_shift): Likewise.
18562
18563 2019-07-25 Richard Biener <rguenther@suse.de>
18564
18565 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18566 Make value_range * temporary const.
18567 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18568 Likewise.
18569 (evrp_range_analyzer::record_ranges_from_): Likewise.
18570 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18571 deal with having recorded a const one.
18572 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18573 Return a const value_range *.
18574 (evrp_range_analyzer::pop_value_range): Likewise.
18575 (evrp_range_analyzer::stack): Record const value_range *s.
18576 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18577 Adjust.
18578 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18579 (format_integer): Likewise.
18580 (sprintf_dom_walker::handle_gimple_call): Likewise.
18581 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18582 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18583 (vrp_prop::get_value_range): Adjust.
18584 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18585 modifying the lattice in-place.
18586 (vrp_prop::visit_stmt): Likewise.
18587 * vr-values.c (vr_values::get_lattice_entry): New private method.
18588 (vr_values::get_value_range): Wrap it and return a const
18589 value_range *.
18590 (vr_values::set_def_to_varying): New.
18591 (vr_values::set_defs_to_varying): Use it.
18592 (vr_values::update_value_range): Likewise.
18593 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18594 (values::op_with_constant_singleton_va): Likewise.
18595 (vr_values::extract_range_for_var_from_co): Likewise.
18596 (vr_values::extract_range_from_ssa_name): Likewise.
18597 (vr_values::extract_range_from_cond_expr): Likewise.
18598 (vr_values::extract_range_basic): Likewise.
18599 (compare_ranges): Take const value_range *, adjust.
18600 (compare_range_with_value): Likewise.
18601 (vrp_valueize): Adjust.
18602 (vrp_valueize_1): Likewise.
18603 (vr_values::get_vr_for_comparison): Return a const value_range *.
18604 (vr_values::compare_name_with_value): Adjust.
18605 (vr_values::compare_names): Likewise.
18606 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18607 Likewise.
18608 (vr_values::vrp_evaluate_conditional): Likewise.
18609 (find_case_label_ranges): Take a const value_range *.
18610 (vr_values::vrp_visit_switch_stmt): Adjust.
18611 (vr_values::extract_range_from_phi_node): Likewise.
18612 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18613 (vr_values::simplify_abs_using_ranges): Likewise.
18614 (test_for_singularity): Take a const value_range *.
18615 (range_fits_type_p): Likewise.
18616 (vr_values::simplify_cond_using_ranges_1): Adjust.
18617 (vr_values::simplify_cond_using_ranges_2): Likewise.
18618 (vr_values::simplify_switch_using_ranges): Likewise.
18619 (vr_values::simplify_float_conversion_usi): Likewise.
18620 (vr_values::two_valued_val_range_p): Likewise.
18621 * vr-values.h (vr_values::get_value_range): Return a const
18622 value_range *.
18623 (vr_values::set_def_to_varying): New.
18624 (vr_values::get_lattice_entry): New private method.
18625 (vr_values::get_vr_for_comparison): Return a const value_range *.
18626
18627 2019-07-25 Martin Liska <mliska@suse.cz>
18628 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18629
18630 PR c++/23383
18631 * common.opt: Add -fallocation-dce
18632 * gimple.c (gimple_call_operator_delete_p): New.
18633 * gimple.h (gimple_call_operator_delete_p): Likewise.
18634 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18635 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18636 DECL_IS_OPERATOR_DELETE_P.
18637 (mark_all_reaching_defs_necessary_1): Likewise.
18638 (propagate_necessity): Likewise.
18639 (eliminate_unnecessary_stmts): Handle
18640 gimple_call_operator_delete_p.
18641 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18642 Add packing of OPERATOR_DELETE.
18643 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18644 Similarly here.
18645 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18646 (DECL_SET_IS_OPERATOR_DELETE): New.
18647 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18648
18649 2019-07-25 Martin Liska <mliska@suse.cz>
18650
18651 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18652 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18653 * coverage.c (coverage_begin_function): Likewise.
18654 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18655 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18656 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18657 (sem_item::hash_referenced_symbol_properties): Likewise.
18658 * lto-streamer-out.c (hash_tree): Likewise.
18659 * predict.c (expr_expected_value_1): Likewise.
18660 * tree-inline.c (expand_call_inline): Likewise.
18661 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18662 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18663 * tree-core.h (enum function_decl_type): New enum.
18664 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18665 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18666 (set_function_decl_type): Likewise.
18667 (DECL_IS_OPERATOR_NEW_P): New.
18668 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18669 (DECL_LAMBDA_FUNCTION): Likewise.
18670 (DECL_LAMBDA_FUNCTION_P): Likewise.
18671 (DECL_IS_OPERATOR_NEW): Remove.
18672 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18673
18674 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18675
18676 * ipa-profile.c (get_most_common_single_value): Use
18677 get_nth_most_common_value.
18678 * profile.c (sort_hist_value): New function.
18679 (compute_value_histograms): Call sort_hist_value to sort the
18680 values after loading from disk.
18681 * value-prof.c (get_most_common_single_value): Rename to ...
18682 get_nth_most_common_value. Add input params n, return
18683 the n_th value and count.
18684 (gimple_divmod_fixed_value_transform): Use
18685 get_nth_most_common_value.
18686 (gimple_ic_transform): Likewise.
18687 (gimple_stringops_transform): Likewise.
18688 * value-prof.h (get_most_common_single_value): Add input params
18689 n, default to 0.
18690
18691 2019-07-25 Richard Biener <rguenther@suse.de>
18692
18693 PR tree-optimization/91236
18694 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18695 size of CONSTRUCTOR write. Fix buffer size we pass to
18696 native_encode_expr.
18697
18698 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18699
18700 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18701 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18702 r273773.
18703
18704 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18705
18706 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18707 explicitly disabled with --disable-initfini-array.
18708
18709 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18710
18711 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18712 if-exists.
18713
18714 2019-07-24 Martin Sebor <msebor@redhat.com>
18715
18716 PR tree-optimization/91183
18717 PR tree-optimization/86688
18718 * builtins.c (compute_objsize): Handle MEM_REF.
18719 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18720 (get_min_string_length): Remove.
18721 (count_nonzero_bytes): New function.
18722 (handle_char_store): Rename...
18723 (handle_store): to this. Handle multibyte stores via integer types.
18724 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18725 function name.
18726
18727 2019-07-24 Martin Sebor <msebor@redhat.com>
18728
18729 PR driver/80545
18730 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18731 (diagnostic_report_diagnostic): Same.
18732 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18733 (diagnostic_context::lang_mask): New data member.
18734 * ipa-pure-const.c (suggest_attribute): Use
18735 lang_hooks.option_lang_mask ().
18736 * opts-common.c (option_enabled): Handle new argument.
18737 (get_option_state): Pass an additional argument.
18738 * opts.c (print_filtered_help): Print supported languages for
18739 unsupported options. Adjust printing of current state.
18740 * opts.h (option_enabled): Add argument.
18741 * toplev.c (print_switch_values): Use lang_mask.
18742 (general_init): Set global_dc->lang_mask.
18743
18744 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18745
18746 PR bootstrap/87030
18747 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18748
18749 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18750
18751 * cgraphunit.c (symbol_table::compile): Start and stop
18752 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18753 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18754
18755 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18756
18757 * gimplify.c (flag_instrument_functions_exclude_p): Include
18758 namespace/class information in the printable name.
18759 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18760 to tokens entered into the vector.
18761
18762 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18763
18764 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18765 (get_static_chain): Call it instead of build_simple_mem_ref.
18766 (get_frame_field): Likewise.
18767 (get_nonlocal_debug_decl): Likewise.
18768 (convert_nonlocal_reference_op): Likewise.
18769
18770 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18771
18772 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18773 declaration.
18774 (arc_compute_frame_size): Millicode is disabled when compiling
18775 ISR.
18776 (arc_return_address_register): Likewise.
18777 (arc_compute_function_type): Likewise.
18778 (arc_compute_frame_size): Likewise.
18779 (secondary_reload_info): Likewise.
18780 (arc_get_unalign): Likewise.
18781 (arc_can_use_return_insn): Declare.
18782 * config/arc/arc.c (AUX_LP_START): Define
18783 (AUX_LP_END): Likewise.
18784 (arc_frame_info): Update gmask member to 64-bit datum.
18785 (GMASK_LEN): Update.
18786 (arc_compute_function_type): Make it static, move it forward.
18787 (arc_must_save_register): Update, consider the extra regs.
18788 (arc_compute_millicode_save_restore_regs): Update to use the 64
18789 bit gmask.
18790 (arc_compute_frame_size): Likewise.
18791 (arc_enter_leave_p): Likewise.
18792 (arc_save_callee_saves): Likewise.
18793 (arc_restore_callee_saves): Likewise.
18794 (arc_save_callee_enter): Likewise.
18795 (arc_restore_callee_leave): Likewise.
18796 (arc_save_callee_milli): Likewise.
18797 (arc_restore_callee_milli): Likewise.
18798 (arc_expand_prologue): Add new interrupt handling.
18799 (arc_return_address_register): Make it static, move it forward.
18800 (arc_expand_epilogue): Add new interrupt handling.
18801 (arc_get_unalign): Delete.
18802 (arc_epilogue_uses): Make sure we do not remove the extra
18803 saved/restored registers when interrupt.
18804 (arc_can_use_return_insn): New function.
18805 (push_reg): Likewise.
18806 (pop_reg): Likewise.
18807 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18808 procedures.
18809 (arc_restore_callee_saves): Likewise, but restoring.
18810 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18811 (R33_REG): Likewise.
18812 (R34_REG): Likewise.
18813 (R35_REG): Likewise.
18814 (R36_REG): Likewise.
18815 (R37_REG): Likewise.
18816 (R38_REG): Likewise.
18817 (R39_REG): Likewise.
18818 (R45_REG): Likewise.
18819 (R46_REG): Likewise.
18820 (R47_REG): Likewise.
18821 (R48_REG): Likewise.
18822 (R49_REG): Likewise.
18823 (R50_REG): Likewise.
18824 (R51_REG): Likewise.
18825 (R52_REG): Likewise.
18826 (R53_REG): Likewise.
18827 (R54_REG): Likewise.
18828 (R55_REG): Likewise.
18829 (R56_REG): Likewise.
18830 (R58_REG): Likewise.
18831 (type): Add rtie attribute.
18832 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18833 (movsi_insn): Accept moves to lp_count.
18834 (rtie): Update pattern.
18835 (simple_return): Simplify it, don't use this pattern as a return
18836 from an interrupt.
18837 (arc600_rtie): New pattern.
18838 (p_return_i): Clean up.
18839 (return): Likewise.
18840 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18841 family CPUs.
18842 * config/arc/predicates.md (move_src_operand): Consider lp_count
18843 as a register.
18844
18845 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18846
18847 * config/s390/predicates.md (addv_const_operand): New predicate.
18848 * config/s390/s390-modes.def (CCO): New condition code mode.
18849 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18850 (s390_branch_condition_mask): Likewise.
18851 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18852 ("mulv<mode>4"): New expanders.
18853 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18854 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18855 pattern definitions.
18856
18857 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18858
18859 PR middle-end/91166
18860 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18861 (define_predicates): Add entry for uniform_vector_p.
18862 (vec_same_elem_p): New match pattern.
18863
18864 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18865
18866 PR bootstrap/87030
18867 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18868 * config/i386/darwin32-biarch.h .. to here.
18869 * config/i386/darwin64-biarch.h: Adjust comments.
18870 * config/rs6000/darwin32-biarch.h: Likewise.
18871 * config/rs6000/darwin64-biarch.h: Likewise.
18872 * config.gcc: Missed commit from r273746
18873 (*-*-darwin*): Don't include CPU t-darwin here.
18874 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18875 an error message if i686-darwin configuration is attempted for
18876 Darwin >= 18.
18877
18878 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18879
18880 PR bootstrap/87030
18881 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18882 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18883 an error message if i686-darwin configuration is attempted for
18884 Darwin >= 18.
18885 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18886 (powerpc-*-darwin*): Use biarch files where needed.
18887 (powerpc64-*-darwin*): Likewise.
18888 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18889 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18890 arch case.
18891 * config/i386/darwin32-biarch.h: New.
18892 * config/i386/darwin64.h: Rename.
18893 * config/i386/darwin64-biarch.h: To this.
18894 * config/i386/t-darwin: Rename.
18895 * config/i386/t-darwin32-biarch: To this.
18896 * config/i386/t-darwin64: Rename.
18897 * config/i386/t-darwin64-biarch: To this.
18898 * config/rs6000/darwin32-biarch.h: New.
18899 * config/rs6000/darwin64.h: Rename.
18900 * config/rs6000/darwin64-biarch.h: To this.
18901 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18902 arch case.
18903 * config/rs6000/t-darwin8: Rename.
18904 * config/rs6000/t-darwin32-biarch: To this.
18905 * config/rs6000/t-darwin64 Rename.
18906 * config/rs6000/t-darwin64-biarch: To this.
18907
18908 2019-07-23 Martin Sebor <msebor@redhat.com>
18909
18910 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18911
18912 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18913
18914 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18915 (rh): New alias for it.
18916
18917 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18918
18919 * gdbhooks.py: Pass replace=True to
18920 gdb.printing.register_pretty_printer.
18921
18922 2019-07-23 Richard Biener <rguenther@suse.de>
18923
18924 PR debug/91231
18925 * lto-streamer-in.c (input_function): Drop inline-entry markers
18926 that ended up with an unknown location block.
18927
18928 2019-07-23 Richard Biener <rguenther@suse.de>
18929
18930 PR tree-optimization/83518
18931 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18932 init from a constant even when partial defs are already recorded.
18933
18934 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18935
18936 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18937 * config/i386/znver1.md: Enable patterns for znver2 and add store
18938 variants which use extra AGU unit.
18939
18940 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18941
18942 * config/i386/i386-options.c (ix86_option_override_internal): Default
18943 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18944 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18945 for ZNVER2.
18946
18947 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18948
18949 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18950 (znver2_costs): Update 256 bit SSE costs and multiplication.
18951
18952 2019-07-23 Jan Beulich <jbeulich@suse.com>
18953
18954 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18955 Require only AVX512F.
18956 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18957 alternative expanding to vpternlog.
18958
18959 2019-07-23 Martin Liska <mliska@suse.cz>
18960
18961 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18962 to -flto in dwarf producer string.
18963
18964 2019-07-23 Richard Biener <rguenther@suse.de>
18965
18966 * tree-cfg.c (label_for_bb): Remove global var.
18967 (main_block_label): Take label_for_bb as argument.
18968 (cleanup_dead_labels_eh): Likewise, adjust.
18969 (cleanup_dead_labels): Adjust.
18970
18971 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18972
18973 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18974 Configurations): Add documentation for __builtin_mtfsf.
18975
18976 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18977
18978 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18979 * config/riscv/riscv.c (riscv_constant_alignment): Use
18980 riscv_align_data_type.
18981 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18982 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18983 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18984 * config/riscv/riscv.opt (malign-data): New.
18985 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18986
18987 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18988
18989 * cgraph.c (dump_graphviz): New function.
18990 * cgraph.h (dump_graphviz): New function.
18991 * symtab.c (dump_graphviz): New function.
18992
18993 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18994
18995 * config/aarch64/aarch64-simd.md
18996 (*aarch64_simd_sra<mode>): New.
18997 * config/aarch64/iterators.md
18998 (SHIFTRT): New iterator.
18999 (sra_op): New attribute.
19000
19001 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19002
19003 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19004 callee-saved regs R4->R10 in an interrupt function that calls another
19005 function.
19006
19007 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19008
19009 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19010 (_mm_blendv_epi8): New.
19011
19012 2019-07-22 Richard Biener <rguenther@suse.de>
19013
19014 PR tree-optimization/91221
19015 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19016 restrict partial-def handling of empty constructors and
19017 memset to refs with known offset.
19018
19019 2019-07-22 Jan Beulich <jbeulich@suse.com>
19020
19021 * config/i386/sse.md (ternlogsuffix): New.
19022 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19023 AVX512F is in use.
19024 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19025
19026 2019-07-22 Martin Liska <mliska@suse.cz>
19027
19028 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19029 comment.
19030 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19031
19032 2019-07-22 Martin Liska <mliska@suse.cz>
19033
19034 * lto-section-in.c (lto_get_section_data):
19035 Use new function get_compression.
19036 * lto-streamer-out.c (produce_lto_section): Use
19037 set_compression to encode compression algorithm.
19038 * lto-streamer.h (struct lto_section): Do not
19039 use bitfields in the format.
19040
19041 2019-07-22 Martin Liska <mliska@suse.cz>
19042
19043 PR driver/91172
19044 * opts-common.c (decode_cmdline_option): Decode
19045 argument of -Werror and check it for a wrong language.
19046 * opts-global.c (complain_wrong_lang): Remove such case.
19047
19048 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19049
19050 * config/arc/arc.c (prepare_move_operands): Always use an
19051 intermediate register when storing a TLS symbols.
19052
19053 2019-07-22 Stafford Horne <shorne@gmail.com>
19054
19055 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19056 force_reg.
19057
19058 2019-07-22 Stafford Horne <shorne@gmail.com>
19059
19060 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19061 and munordered-float validations.
19062 * config/or1k/constraints.md (d): New register constraint.
19063 * config/or1k/predicates.md (fp_comparison_operator): New.
19064 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19065 operands.
19066 (or1k_expand_compare): Normalize unordered comparisons.
19067 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19068 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19069 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19070 * config/or1k/or1k.md (type): Add fpu.
19071 (fpu): New instruction reservation.
19072 (F, f, fr, fi, FI, FOP, fop): New.
19073 (<fop><F:mode>3): New ALU instruction definition.
19074 (float<fi><F:mode>2): New conversion instruction definition.
19075 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19076 (fpcmpcc): New code iterator.
19077 (*sf_fp_insn): New instruction definition.
19078 (cstore<F:mode>4): New expand definition.
19079 (cbranch<F:mode>4): New expand definition.
19080 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19081 munordered-float): New options.
19082 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19083 munordered-float.
19084
19085 2019-07-22 Stafford Horne <shorne@gmail.com>
19086
19087 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19088 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19089 documenation to be more clear.
19090 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19091 more clear.
19092 * config/or1k/or1k.opt (mrori): New option.
19093 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19094 msfimm, mshftimm): Rewrite documentation to be more clear.
19095 * config/or1k/or1k.md (insn_support): Add ror and rori.
19096 (enabled): Add conditions for ror and rori.
19097 (rotrsi3): Replace condition for shftimm with ror and rori.
19098
19099 2019-07-22 Stafford Horne <shorne@gmail.com>
19100
19101 PR target/90363
19102 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19103 (extend<mode>si2): Update predicate.
19104 * config/or1k/predicates.md (volatile_mem_operand): New.
19105 (reg_or_mem_operand): New.
19106
19107 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19108
19109 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19110 * config/rs6000/rs6000-call.c: ... to here.
19111
19112 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19113
19114 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19115 memory.
19116
19117 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19118
19119 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19120
19121 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19122
19123 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19124
19125 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19126
19127 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19128 (any_memory_operand): New predicate.
19129 (reg_or_mem_operand): Use it.
19130
19131 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19132
19133 PR target/91204
19134 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19135
19136 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19137
19138 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19139 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19140
19141 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19142
19143 * tree.def (OMP_LOOP): New tree code.
19144 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19145 (enum omp_clause_bind_kind): New enum.
19146 (struct tree_omp_clause): Add subcode.bind_kind.
19147 * tree.h (OMP_LOOP_CHECK): Rename to ...
19148 (OMP_LOOPING_CHECK): ... this.
19149 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19150 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19151 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19152 (OMP_CLAUSE_BIND_KIND): Define.
19153 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19154 bind clause entries.
19155 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19156 * tree-pretty-print.c (dump_omp_clause): Likewise.
19157 (dump_generic_node): Handle OMP_LOOP.
19158 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19159 (in_omp_construct): New variable.
19160 (is_gimple_stmt): Handle OMP_LOOP.
19161 (gimplify_scan_omp_clauses): For lastprivate don't set
19162 check_non_private if code == OMP_LOOP. For reduction clause
19163 on OMP_LOOP combined with parallel or teams propagate as shared
19164 on the combined construct. Handle OMP_CLAUSE_BIND.
19165 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19166 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19167 for constructs from a loop construct to gimplify_scan_omp_clauses.
19168 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19169 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19170 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19171 to match the implicit ORT_TARGET construct around whole body.
19172 Temporarily clear in_omp_construct when processing body.
19173 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19174 etc. temporarily set in_omp_construct when processing body.
19175 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19176 * omp-low.c (struct omp_context): Add loop_p.
19177 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19178 in that the original var might be private.
19179 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19180 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19181 addition of loop construct.
19182 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19183
19184 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19185 lastprivate non-addressable iterator of a collapse(1) simd.
19186
19187 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19188
19189 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19190 as in rs6000.c.
19191
19192 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19193
19194 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19195 refer to default conditions. Warn for the 'y' spec which is ignored
19196 by current linkers.
19197
19198 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19199
19200 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19201 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19202 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19203 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19204 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19205 init_cumulative_args, rs6000_promote_function_mode,
19206 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19207 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19208 rs6000_function_arg_boundary, rs6000_parm_offset,
19209 rs6000_parm_start, rs6000_arg_size,
19210 rs6000_darwin64_record_arg_advance_flush,
19211 rs6000_darwin64_record_arg_advance_recurse,
19212 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19213 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19214 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19215 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19216 rs6000_finish_function_arg, rs6000_function_arg,
19217 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19218 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19219 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19220 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19221 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19222 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19223 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19224 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19225 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19226 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19227 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19228 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19229 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19230 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19231 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19232 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19233 get_element_number, altivec_expand_vec_set_builtin,
19234 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19235 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19236 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19237 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19238 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19239 rs6000_expand_builtin, rs6000_vector_type,
19240 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19241 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19242 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19243 to rs6000-call.c.
19244 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19245 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19246 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19247 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19248 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19249 init_cumulative_args, rs6000_promote_function_mode,
19250 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19251 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19252 rs6000_function_arg_boundary, rs6000_parm_offset,
19253 rs6000_parm_start, rs6000_arg_size,
19254 rs6000_darwin64_record_arg_advance_flush,
19255 rs6000_darwin64_record_arg_advance_recurse,
19256 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19257 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19258 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19259 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19260 rs6000_finish_function_arg, rs6000_function_arg,
19261 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19262 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19263 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19264 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19265 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19266 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19267 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19268 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19269 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19270 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19271 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19272 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19273 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19274 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19275 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19276 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19277 get_element_number, altivec_expand_vec_set_builtin,
19278 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19279 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19280 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19281 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19282 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19283 rs6000_expand_builtin, rs6000_vector_type,
19284 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19285 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19286 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19287 to here from rs6000.c.
19288 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19289 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19290 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19291 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19292 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19293 rs6000_return_in_memory, rs6000_return_in_msb,
19294 rs6000_pass_by_reference, setup_incoming_varargs,
19295 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19296 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19297 rs6000_function_arg_padding, rs6000_function_arg,
19298 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19299 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19300 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19301 rs6000_passes_long_double, rs6000_passes_vector,
19302 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19303 altivec_builtin_mask_for_load) Add declarations.
19304 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19305 * config/config.gcc: Add new source file rs6000-call.c to garbage
19306 collector and extra_objs.
19307
19308 2019-07-19 Jeff Law <law@redhat.com>
19309
19310 PR tree-optimization/86061
19311 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19312 strncpy. Drop some trivial dead code.
19313 (maybe_trim_memstar_call): Handle strncpy.
19314
19315 2019-07-19 Richard Biener <rguenther@suse.de>
19316
19317 PR tree-optimization/91211
19318 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19319 memset encoding size.
19320
19321 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19322
19323 PR target/91204
19324 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19325
19326 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19327
19328 PR ipa/91194
19329 * ipa-inline.c (recursive_inlining): Fix limits check.
19330
19331 2019-07-19 Richard Biener <rguenther@suse.de>
19332
19333 PR tree-optimization/91200
19334 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19335 no PHI nodes in middle-bb.
19336
19337 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19338
19339 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19340 to +sve-bitperm.
19341 * config/aarch64/aarch64-option-extensions.def: Likewise.
19342
19343 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19344
19345 PR middle-end/91190
19346 * function.c (insert_temp_slot_address): Store into the hash table
19347 a copy of address to avoid RTL sharing issues.
19348
19349 2019-07-19 Richard Biener <rguenther@suse.de>
19350
19351 PR tree-optimization/91207
19352 Revert
19353 2019-07-17 Richard Biener <rguenther@suse.de>
19354
19355 PR tree-optimization/91178
19356 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19357 loads with a gap larger than the vector size always use
19358 VMAT_STRIDED_SLP.
19359 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19360 avoid loading vectors that are only contained in the gap
19361 and thus are not needed.
19362
19363 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19364
19365 * config/i386/i386.md (*addqi_2_slp): Remove.
19366 (*<code>qi_2_slp): Ditto.
19367
19368 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19369
19370 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19371 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19372 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19373 Rename function from rs6000_prefixed_address.
19374 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19375 TARGET_HAS_TOC.
19376 (TARGET_TOC): Likewise.
19377 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19378 rs6000.h.
19379 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19380 TARGET_HAS_TOC.
19381 (TARGET_TOC): Likewise.
19382 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19383 rs6000.h.
19384 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19385 TARGET_HAS_TOC.
19386 (TARGET_TOC): Likewise.
19387 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19388 check to require -mcmodel=medium for pc-relative addressing.
19389 (create_TOC_reference): Add assertion for TARGET_TOC.
19390 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19391 TARGET_NO_TOC.
19392 (rs6000_emit_move): Likewise.
19393 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19394 to 'TOC_alias_set'.
19395 (get_TOC_alias_set): Likewise.
19396 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19397 TARGET_NO_TOC.
19398 (rs6000_can_eliminate): Likewise.
19399 (rs6000_prefixed_address_mode_p): Rename function from
19400 rs6000_prefixed_address.
19401 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19402 TARGET_HAS_TOC and not pc-relative.
19403 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19404 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19405 TARGET_HAS_TOC.
19406 (TARGET_TOC): Likewise.
19407 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19408 rs6000.h.
19409
19410 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19411
19412 PR target/91188
19413 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19414 for operand 0. Do not use (match_dup) to match operand 1 with
19415 operand 0. Add check in insn constraint that either input operand
19416 matches operand 0. Use SWI12 mode iterator to also handle
19417 HImode operands.
19418 (*and<mode>_1_slp): Ditto.
19419 (*<code>qi_1_slp): Ditto.
19420 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19421 Do not use (match_dup) to match operand 1 with operand 0. Add
19422 check in insn constraint that operand 1 matches operand 0.
19423 Use SWI12 mode iterator to also handle HImode operands.
19424 (*ashl<mode>3_1_slp): Ditto.
19425 (*<shift_insn><mode>3_1_slp): Ditto.
19426 (*<rotate_insn><mode>3_1_slp): Ditto.
19427
19428 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19429
19430 * config/arm/arm-builtins.c
19431 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19432 (arm_expand_unop_builtin): Likewise.
19433 * config/arm/crypto.md
19434 (crypto_sha1h): Convert from define_insn to define_expand.
19435 (crypto_<crypto_pattern>): Likewise.
19436 (crypto_sha1h_lb): New define_insn.
19437 (crypto_<crypto_pattern>_lb): Likewise.
19438
19439 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19440
19441 PR target/90317
19442 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19443 (vsha1cq_u32): Likewise.
19444 (vsha1pq_u32): Likewise.
19445 (vsha1mq_u32): Likewise.
19446 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19447 vec select.
19448 (crypto_sha1c): Correct vec select.
19449 (crypto_sha1m): Likewise.
19450 (crypto_sha1p): Likewise.
19451
19452 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19453
19454 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19455 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19456 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19457 (subdi_zesidi_zesidi): Likewise.
19458 (negdi2_compare, negdi2_insn): Likewise.
19459 (negdi_extensidi): Likewise.
19460 (negdi_zero_extendsidi): Likewise.
19461 (arm_cmpdi_insn): Likewise.
19462 (subsi3_carryin): Use arm_borrow_operation.
19463 (subsi3_carryin_const): Likewise.
19464 (subsi3_carryin_const0): Likewise.
19465 (subsi3_carryin_compare): Likewise.
19466 (subsi3_carryin_compare_const): Likewise.
19467 (subsi3_carryin_compare_const0): Likewise.
19468 (subsi3_carryin_shift): Likewise.
19469 (rsbsi3_carryin_shift): Likewise.
19470 (negsi2_carryin_compare): Likewise.
19471
19472 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19473
19474 PR tree-optimization/91137
19475 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19476 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19477 Init, use and fini the above new field.
19478 (determine_base_object_1): New function.
19479 (determine_base_object): Reimplement using walk_tree.
19480
19481 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19482
19483 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19484 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19485 CLEANUP_FORCE_FAST_DCE is set.
19486 * ifcvt.c (rest_of_handle_if_conversion): Pass
19487 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19488 if-conversion succeeded.
19489
19490 2019-07-18 Richard Biener <rguenther@suse.de>
19491
19492 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19493 branches to make code less indented.
19494
19495 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19496
19497 PR middle-end/81824
19498 * attribs.c (decls_mismatched_attributes): Simplify the logic
19499 that avoids duplicates and false positives.
19500
19501 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19502
19503 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19504 data into data section when generating PIC code.
19505 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19506 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19507 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19508 return 2 for SOM and 0 for other targets.
19509
19510 2019-07-17 Jeff Law <law@redhat.com>
19511
19512 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19513 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19514 avoid unexpected switch statement fallthru.
19515
19516 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19517
19518 * config/i386/i386.md (*add<dwi>3_doubleword):
19519 Remove redundant constraints.
19520 (*add<mode>_1): Ditto.
19521 (*addhi_1): Ditto.
19522 (*addqi_1): Ditto.
19523 (*addqi_1_slp): Ditto.
19524 (*add<mode>_2): Ditto.
19525 (*addv<mode>4): Ditto.
19526 (*sub<dwi>3_doubleword): Ditto.
19527 (*sub<mode>_1): Ditto.
19528 (*subqi_1_slp): Ditto.
19529 (*sub<mode>_2): Ditto.
19530 (*subv<mode>4): Ditto.
19531 (*sub<mode>_3): Ditto.
19532 (@add<mode>3_carry): Ditto.
19533 (@sub<mode>3_carry): Ditto.
19534 (*add<mode>3_cc_overflow_1): Ditto.
19535 (*add<mode>3_zext_cc_overflow_2): Ditto.
19536 (*anddi_1): Ditto.
19537 (*and<mode>_1): Ditto.
19538 (*andqi_1): Ditto.
19539 (*andqi_1_slp): Ditto.
19540 (*anddi_2): Ditto.
19541 (*andqi_2_maybe_si): Ditto.
19542 (*and<mode>_2): Ditto.
19543 (*andqi_2_slp): Ditto.
19544 (*<code><mode>_1): Ditto.
19545 (*<code>qi_1): Ditto.
19546 (*<code>qi_1_slp): Ditto.
19547 (*<code><mode>_2): Ditto.
19548 (*<code>qi_2_slp): Ditto.
19549
19550 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19551
19552 * alias.c (record_component_aliases): Do not simplify pointed-to
19553 types of ODR types.
19554
19555 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19556
19557 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19558 partial reg stall on alternative 2.
19559
19560 2019-07-17 Richard Biener <rguenther@suse.de>
19561
19562 PR tree-optimization/91178
19563 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19564 lower SSA names to avoid quadratic behavior in the common case.
19565 * tree-data-ref.c (split_constant_offset): Add limit argument
19566 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19567 (split_constant_offset_1): Add limit argument and use it to
19568 limit SSA def walking. Optimize the common plus/minus case.
19569
19570 2019-07-17 Richard Biener <rguenther@suse.de>
19571
19572 PR tree-optimization/91178
19573 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19574 loads with a gap larger than the vector size always use
19575 VMAT_STRIDED_SLP.
19576 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19577 avoid loading vectors that are only contained in the gap
19578 and thus are not needed.
19579
19580 2019-07-17 Richard Biener <rguenther@suse.de>
19581
19582 PR tree-optimization/91180
19583 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19584 computation for memset partial defs.
19585
19586 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19587
19588 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19589 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19590 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19591 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19592 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19593 * omp-grid.c (grid_process_grid_body,
19594 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19595 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19596 == GF_OMP_FOR_KIND_SIMD.
19597 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19598 check_omp_nesting_restrictions, scan_omp_1_stmt,
19599 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19600 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19601 omp_find_scan): Likewise.
19602 * omp-expand.c (expand_omp_for): Likewise.
19603 * omp-general.c (omp_extract_for_data): Likewise.
19604
19605 PR tree-optimization/91157
19606 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19607 a vector boolean with scalar mode.
19608 (expand_vector_condition): Handle first operand being a vector boolean
19609 with scalar mode.
19610 (expand_vector_operations_1): For comparisons, don't bail out early
19611 if the return type is vector boolean with scalar mode, but comparison
19612 operand type is not.
19613
19614 2019-07-17 Richard Biener <rguenther@suse.de>
19615
19616 PR tree-optimization/91181
19617 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19618 IFN_LOADs as calls.
19619
19620 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19621
19622 * config/i386/i386.md (*testdi_1): Match CCZmode for
19623 constants that might have the SImode sign bit set.
19624 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19625 Use correct constraints for pentium pairing.
19626 (*test<mode>_1): Ditto.
19627
19628 2019-07-16 Jeff Law <law@redhat.com>
19629
19630 PR rtl-optimization/91173
19631 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19632 SSA_NAME with a constant value, fold its value into the offset
19633 and clear the base before calling gen_addr_rtx.
19634
19635 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19636
19637 PR rtl-optimization/91164
19638 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19639 invalidate dominance info.
19640
19641 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19642
19643 * read-md.h (md_reader::record_potential_iterator_use): Add a
19644 file_location parameter.
19645 * read-rtl.c (attribute_use::loc): New field.
19646 (map_attr_string): Take a file_location parameter. Report cases
19647 in which attributes map to multiple distinct values.
19648 (apply_attribute_uses): Update call accordingly.
19649 (md_reader::handle_overloaded_name): Likewise.
19650 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19651 nonnull strings.
19652 (record_attribute_use): Take a file_location parameter.
19653 Initialize attribute_use::loc.
19654 (md_reader::record_potential_iterator_use): Take a file_location
19655 parameter. Update call to record_attribute_use.
19656 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19657 (rtx_reader::read_rtx_code): Likewise.
19658 (rtx_reader::read_rtx_operand): Likewise. Record a location
19659 for implicitly-expanded empty strings.
19660
19661 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19662
19663 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19664 Use file_location instead of separate fields.
19665 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19666 separate filename and line number.
19667 * read-md.c (ptr_loc): As above.
19668 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19669 (md_reader::fprint_md_ptr_loc): Likewise.
19670 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19671 instead of a separate filename and line number.
19672 (md_reader::read_string): Update call accordingly.
19673
19674 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19675
19676 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19677 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19678 leaving the choice between SFDF and P implicit.
19679 (*mov<mode>_update2): Likewise.
19680 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19681 rather than leaving the choice betweem IBM128 and GPR implicit.
19682 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19683 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19684 QHSI implicit.
19685 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19686 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19687 * config/rs6000/vsx.md
19688 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19689 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19690 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19691 and VSX_EXTRACT_I implicit.
19692
19693 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19694
19695 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19696 Explicitly use <MOVEP1:MODE> for the mode attribute.
19697
19698 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19699
19700 PR bootstrap/91176
19701 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19702
19703 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19704
19705 PR target/91050
19706 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19707 .machine directive.
19708
19709 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19710
19711 * config/i386/i386.md (@test<mode>_ccno_1):
19712 Rename from test<mode>_ccno_1.
19713 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19714 (*testqi_1_maybe_si): Remove modrm attribute.
19715 (*test<mode>_1): Ditto.
19716 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19717 gen_test_ccno_1 and gen_extend_insn.
19718
19719 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19720
19721 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19722 to 0.
19723
19724 2019-07-15 Richard Biener <rguenther@suse.de>
19725
19726 PR middle-end/91162
19727 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19728 node make sure to replace all uses with something valid.
19729
19730 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19731
19732 PR tree-optimization/88497
19733 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19734 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19735 function undistribute_bitref_for_vector.
19736 (undistribute_bitref_for_vector): New function.
19737 (cleanup_vinfo_map): Likewise.
19738 (sort_by_mach_mode): Likewise.
19739
19740 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19741
19742 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19743 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19744 and testdi_ccno_1 using SWI48 mode attribute.
19745 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19746 x86_64_szext_general_operand.
19747 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19748 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19749 instead of genera_operand mode attribute.
19750
19751 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19752
19753 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19754 fopen and fclose to their respective types.
19755 (DotFn.invoke): Ditto.
19756
19757 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19758
19759 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19760 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19761 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19762 (array_index_predicate): Remove.
19763 (analyze_function_body): Account cost for variable ofsetted array
19764 indexing.
19765 (estimate_node_size_and_time): Do not compute array index hint.
19766 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19767 (inline_read_section): Do not read array index hint.
19768 (ipa_fn_summary_write): Do not write array index hint.
19769 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19770 * ipa-cp.c (hint_time_bonus): Remove.
19771 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19772 (ipa_fnsummary): Remove array_index.
19773 * ipa-inline.c (want_inline_small_function_p): Do not use
19774 array_index.
19775 (edge_badness): Likewise.
19776 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19777
19778 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19779
19780 PR target/91148
19781 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19782 superfluous "builtin function" phrasing.
19783
19784 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19785
19786 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19787 Break out from ...
19788 (aliasing_component_refs_walk): Break out from ...
19789 (aliasing_component_refs_p): ... here.
19790
19791 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19792
19793 PR target/91148
19794 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19795 "builtin function" phrasing.
19796
19797 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19798
19799 PR target/90723
19800 * recog.h (temporary_volatile_ok): New class.
19801 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19802 volatile_ok temporarily to true using temporary_volatile_ok.
19803 * expr.c (emit_block_move_via_cpymem): Likewise.
19804 * optabs.c (maybe_legitimize_operand): Likewise.
19805
19806 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19807
19808 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19809 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19810 uses inside of order(concurrent) constructs.
19811 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19812 OMP_CLAUSE_ORDER is seen.
19813 * omp-low.c (struct omp_context): Add order_concurrent member.
19814 (scan_sharing_clauses): Set ctx->order_concurrent if
19815 OMP_CLAUSE_ORDER is seen.
19816 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19817 of simd order(concurrent). Diagnose constructs not allowed inside of
19818 for order(concurrent).
19819 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19820 complaining about static double setjmp (double); or class static
19821 methods or non-global namespace setjmps.
19822 (omp_runtime_api_call): New function.
19823 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19824 order(concurrent) loops.
19825
19826 2019-07-12 Martin Sebor <msebor@redhat.com>
19827
19828 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19829 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19830 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19831 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19832
19833 2019-07-12 Jan Hubicka <jh@suse.cz>
19834
19835 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19836 (indirect_refs_may_alias_p): ... here.
19837 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19838 mem refs in the access paths.
19839
19840 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19841
19842 PR tree-optimization/89430
19843 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19844 store elimination for local variable without address escape.
19845
19846 2019-07-12 Jeff Law <law@redhat.com>
19847
19848 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19849 for the ".far" section.
19850
19851 2019-07-12 Richard Biener <rguenther@suse.de>
19852
19853 PR tree-optimization/91145
19854 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19855 chain check.
19856
19857 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19858
19859 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19860 rather than this_state as the lowering context for the ELSE
19861 seq in a GIMPLE_EH_ELSE.
19862
19863 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19864
19865 * vector-builder.h (vector_builder::elt): Allow already-supplied
19866 elements to be read back before building is complete.
19867
19868 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19869
19870 PR rtl-optimization/91136
19871 * df-core.c (ACCESSING REFS): Fix typos in comment.
19872 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19873 the beginning of the block to the initial set of live registers.
19874
19875 2019-07-12 Richard Biener <rguenther@suse.de>
19876
19877 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19878 * fold-const.c (get_array_ctor_element_at_index): Add
19879 ctor_idx output parameter informing the caller where in
19880 the constructor the element was (not) found. Add early exit
19881 for when the ctor is sorted.
19882 * gimple-fold.c (fold_array_ctor_reference): Support constant
19883 folding across multiple array elements.
19884
19885 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19886
19887 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19888 doesn't have location, set the current location to the function's end.
19889
19890 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19891
19892 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19893 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19894 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19895 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19896 * config/aarch64/aarch64-simd.md
19897 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19898 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19899 * config/aarch64/aarch64-sve.md
19900 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19901 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19902
19903 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19904
19905 * doc/md.texi: Document that @ patterns can have different
19906 numbers of operands.
19907 * genemit.c (handle_overloaded_gen): Handle this case.
19908 * genopinit.c (handle_overloaded_gen): Likewise.
19909 * gensupport.c (replace_operands_with_dups): Iterate over
19910 the new rtx's format rather than the old one's.
19911
19912 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19913
19914 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19915 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19916 order clause entries.
19917 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19918 * tree-pretty-print.c (dump_omp_clause): Likewise.
19919 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19920 Likewise.
19921 * omp-low.c (scan_sharing_clauses): Likewise.
19922 * tree-nested.c (convert_nonlocal_omp_clauses,
19923 convert_local_omp_clauses): Likewise.
19924
19925 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19926
19927 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19928 fallthrough target of current basic block isn't the placed
19929 right next.
19930
19931 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19932
19933 PR target/90980
19934 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19935 (_mm512_storeu_epi64): Likewise.
19936 (_mm512_loadu_epi32): Likewise.
19937 (_mm512_storeu_epi32): Likewise.
19938 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19939 (_mm_storeu_epi64): Likewise.
19940 (_mm256_storeu_epi32): Likewise.
19941 (_mm_storeu_epi32): Likewise.
19942
19943 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19944
19945 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19946
19947 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19948
19949 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19950 Handle Modula-2.
19951
19952 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19953
19954 PR target/91124
19955 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19956 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19957 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19958 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19959 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19960 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19961 define_insns.
19962 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19963 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19964 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19965 define_insns.
19966 (sse2_cvttpd2dq<mask_name>): Change into ...
19967 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19968 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19969 (*sse2_cvtpd2dq<mask_name>): Change into ...
19970 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19971 Add "C" constraint to const0_operand.
19972 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19973 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19974 changes.
19975
19976 PR target/91124
19977 * config/i386/i386-builtin-types.def
19978 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19979 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19980 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19981 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19982 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19983 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19984 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19985 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19986 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19987 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19988 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19989 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19990 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19991 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19992 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19993 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19994 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19995 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19996 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19997 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19998 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19999 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20000 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20001 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20002 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20003 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20004 __builtin_ia32_vpdpbusd_v4si_maskz,
20005 __builtin_ia32_vpdpbusds_v16si_mask,
20006 __builtin_ia32_vpdpbusds_v16si_maskz,
20007 __builtin_ia32_vpdpbusds_v8si_mask,
20008 __builtin_ia32_vpdpbusds_v8si_maskz,
20009 __builtin_ia32_vpdpbusds_v4si_mask,
20010 __builtin_ia32_vpdpbusds_v4si_maskz,
20011 __builtin_ia32_vpdpwssd_v16si_mask,
20012 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20013 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20014 __builtin_ia32_vpdpwssd_v4si_maskz,
20015 __builtin_ia32_vpdpwssds_v16si_mask,
20016 __builtin_ia32_vpdpwssds_v16si_maskz,
20017 __builtin_ia32_vpdpwssds_v8si_mask,
20018 __builtin_ia32_vpdpwssds_v8si_maskz,
20019 __builtin_ia32_vpdpwssds_v4si_mask,
20020 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20021 suffixed types rather than *_INT.
20022 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20023 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20024 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20025 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20026 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20027 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20028
20029 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20030
20031 * tree-vrp.c (intersect_ranges): If we know the intersection is
20032 empty, there is no need to conservatively add anything else to
20033 the set.
20034
20035 2019-07-11 Richard Biener <rguenther@suse.de>
20036
20037 PR middle-end/91131
20038 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20039 when the object is volatile and we have not cleared it even though
20040 there are no nonzero elements.
20041
20042 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20043
20044 * config/rs6000/predicates.md (cint34_operand): Update
20045 SIGNED_34BIT_OFFSET_P call.
20046 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20047 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20048 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20049 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20050 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20051 argument.
20052 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20053 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20054 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20055 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20056 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20057
20058 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20059
20060 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20061 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20062 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20063 (DEF_MIN_OSX_VERSION): New.
20064
20065 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20066
20067 * fold-const.c (fold_relational_const): Fix folding of
20068 vector-to-scalar NE_EXPRs.
20069 (test_vector_folding): Add more tests.
20070
20071 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20072
20073 PR target/91060
20074 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20075 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20076 (vec_setv2di_internal): Reexpress as...
20077 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20078 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20079 rather than gen_neon_vset_lane<mode>.
20080
20081 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20082
20083 PR target/91102
20084 * lra-constraints.c (process_alt_operands): Don't match user
20085 defined regs only if they are early clobbers.
20086
20087 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20088
20089 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20090
20091 2019-07-10 Richard Biener <rguenther@suse.de>
20092
20093 PR tree-optimization/91126
20094 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20095 native encoding offset for BYTES_BIG_ENDIAN.
20096 (vn_reference_lookup_3): Likewise.
20097
20098 2019-07-10 Richard Biener <rguenther@suse.de>
20099
20100 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20101 LHS whenever possible.
20102
20103 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20104
20105 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20106 from ...; work also on duplicated types.
20107 (nonoverlapping_component_refs_since_match): ... here
20108 (ncr_type_uid): Break out from ...
20109 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20110 available.
20111 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20112 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20113
20114 2019-07-09 Martin Sebor <msebor@redhat.com>
20115
20116 PR tree-optimization/90989
20117 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20118 optimization to just single character stores.
20119
20120 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20121
20122 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20123 Swap operands only once.
20124
20125 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20126
20127 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20128 for both call instructions.
20129
20130 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20131
20132 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20133 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20134
20135 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20136
20137 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20138 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20139 function from rs6000-logue.c back to rs6000.c.
20140 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20141
20142 2019-07-09 Martin Sebor <msebor@redhat.com>
20143
20144 PR c++/61339
20145 * auto-profile.c: Change class-key of PODs to struct and others
20146 to class.
20147 * basic-block.h: Same.
20148 * bitmap.c (bitmap_alloc): Same.
20149 * bitmap.h: Same.
20150 * builtins.c (expand_builtin_prefetch): Same.
20151 (expand_builtin_interclass_mathfn): Same.
20152 (expand_builtin_strlen): Same.
20153 (expand_builtin_mempcpy_args): Same.
20154 (expand_cmpstr): Same.
20155 (expand_builtin___clear_cache): Same.
20156 (expand_ifn_atomic_bit_test_and): Same.
20157 (expand_builtin_thread_pointer): Same.
20158 (expand_builtin_set_thread_pointer): Same.
20159 * caller-save.c (setup_save_areas): Same.
20160 (replace_reg_with_saved_mem): Same.
20161 (insert_restore): Same.
20162 (insert_save): Same.
20163 (add_used_regs): Same.
20164 * cfg.c (get_bb_copy): Same.
20165 (set_loop_copy): Same.
20166 * cfg.h: Same.
20167 * cfganal.h: Same.
20168 * cfgexpand.c (alloc_stack_frame_space): Same.
20169 (add_stack_var): Same.
20170 (add_stack_var_conflict): Same.
20171 (add_scope_conflicts_1): Same.
20172 (update_alias_info_with_stack_vars): Same.
20173 (expand_used_vars): Same.
20174 * cfghooks.c (redirect_edge_and_branch_force): Same.
20175 (delete_basic_block): Same.
20176 (split_edge): Same.
20177 (make_forwarder_block): Same.
20178 (force_nonfallthru): Same.
20179 (duplicate_block): Same.
20180 (lv_flush_pending_stmts): Same.
20181 * cfghooks.h: Same.
20182 * cfgloop.c (flow_loops_cfg_dump): Same.
20183 (flow_loop_nested_p): Same.
20184 (superloop_at_depth): Same.
20185 (get_loop_latch_edges): Same.
20186 (flow_loop_dump): Same.
20187 (flow_loops_dump): Same.
20188 (flow_loops_free): Same.
20189 (flow_loop_nodes_find): Same.
20190 (establish_preds): Same.
20191 (flow_loop_tree_node_add): Same.
20192 (flow_loop_tree_node_remove): Same.
20193 (flow_loops_find): Same.
20194 (find_subloop_latch_edge_by_profile): Same.
20195 (find_subloop_latch_edge_by_ivs): Same.
20196 (mfb_redirect_edges_in_set): Same.
20197 (form_subloop): Same.
20198 (merge_latch_edges): Same.
20199 (disambiguate_multiple_latches): Same.
20200 (disambiguate_loops_with_multiple_latches): Same.
20201 (flow_bb_inside_loop_p): Same.
20202 (glb_enum_p): Same.
20203 (get_loop_body_with_size): Same.
20204 (get_loop_body): Same.
20205 (fill_sons_in_loop): Same.
20206 (get_loop_body_in_dom_order): Same.
20207 (get_loop_body_in_custom_order): Same.
20208 (release_recorded_exits): Same.
20209 (get_loop_exit_edges): Same.
20210 (num_loop_branches): Same.
20211 (remove_bb_from_loops): Same.
20212 (find_common_loop): Same.
20213 (delete_loop): Same.
20214 (cancel_loop): Same.
20215 (verify_loop_structure): Same.
20216 (loop_preheader_edge): Same.
20217 (loop_exit_edge_p): Same.
20218 (single_exit): Same.
20219 (loop_exits_to_bb_p): Same.
20220 (loop_exits_from_bb_p): Same.
20221 (get_loop_location): Same.
20222 (record_niter_bound): Same.
20223 (get_estimated_loop_iterations_int): Same.
20224 (max_stmt_executions_int): Same.
20225 (likely_max_stmt_executions_int): Same.
20226 (get_estimated_loop_iterations): Same.
20227 (get_max_loop_iterations): Same.
20228 (get_max_loop_iterations_int): Same.
20229 (get_likely_max_loop_iterations): Same.
20230 * cfgloop.h (simple_loop_desc): Same.
20231 (get_loop): Same.
20232 (loop_depth): Same.
20233 (loop_outer): Same.
20234 (loop_iterator::next): Same.
20235 (loop_outermost): Same.
20236 * cfgloopanal.c (mark_irreducible_loops): Same.
20237 (num_loop_insns): Same.
20238 (average_num_loop_insns): Same.
20239 (expected_loop_iterations_unbounded): Same.
20240 (expected_loop_iterations): Same.
20241 (mark_loop_exit_edges): Same.
20242 (single_likely_exit): Same.
20243 * cfgloopmanip.c (fix_bb_placement): Same.
20244 (fix_bb_placements): Same.
20245 (remove_path): Same.
20246 (place_new_loop): Same.
20247 (add_loop): Same.
20248 (scale_loop_frequencies): Same.
20249 (scale_loop_profile): Same.
20250 (create_empty_if_region_on_edge): Same.
20251 (create_empty_loop_on_edge): Same.
20252 (loopify): Same.
20253 (unloop): Same.
20254 (fix_loop_placements): Same.
20255 (copy_loop_info): Same.
20256 (duplicate_loop): Same.
20257 (duplicate_subloops): Same.
20258 (loop_redirect_edge): Same.
20259 (can_duplicate_loop_p): Same.
20260 (duplicate_loop_to_header_edge): Same.
20261 (mfb_keep_just): Same.
20262 (has_preds_from_loop): Same.
20263 (create_preheader): Same.
20264 (create_preheaders): Same.
20265 (lv_adjust_loop_entry_edge): Same.
20266 (loop_version): Same.
20267 * cfgloopmanip.h: Same.
20268 * cgraph.h: Same.
20269 * cgraphbuild.c: Same.
20270 * combine.c (make_extraction): Same.
20271 * config/i386/i386-features.c: Same.
20272 * config/i386/i386-features.h: Same.
20273 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20274 (ix86_emit_outlined_ms2sysv_restore): Same.
20275 (ix86_noce_conversion_profitable_p): Same.
20276 (ix86_init_cost): Same.
20277 (ix86_simd_clone_usable): Same.
20278 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20279 Wstruct-not-pod.
20280 * coretypes.h: Same.
20281 * data-streamer-in.c (string_for_index): Change class-key of PODs
20282 to struct and others to class.
20283 (streamer_read_indexed_string): Same.
20284 (streamer_read_string): Same.
20285 (bp_unpack_indexed_string): Same.
20286 (bp_unpack_string): Same.
20287 (streamer_read_uhwi): Same.
20288 (streamer_read_hwi): Same.
20289 (streamer_read_gcov_count): Same.
20290 (streamer_read_wide_int): Same.
20291 * data-streamer.h (streamer_write_bitpack): Same.
20292 (bp_unpack_value): Same.
20293 (streamer_write_char_stream): Same.
20294 (streamer_write_hwi_in_range): Same.
20295 (streamer_write_record_start): Same.
20296 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20297 (add_cross_iteration_register_deps): Same.
20298 (build_intra_loop_deps): Same.
20299 * df-core.c (df_analyze): Same.
20300 (loop_post_order_compute): Same.
20301 (loop_inverted_post_order_compute): Same.
20302 * df-problems.c (df_rd_alloc): Same.
20303 (df_rd_simulate_one_insn): Same.
20304 (df_rd_local_compute): Same.
20305 (df_rd_init_solution): Same.
20306 (df_rd_confluence_n): Same.
20307 (df_rd_transfer_function): Same.
20308 (df_rd_free): Same.
20309 (df_rd_dump_defs_set): Same.
20310 (df_rd_top_dump): Same.
20311 (df_lr_alloc): Same.
20312 (df_lr_reset): Same.
20313 (df_lr_local_compute): Same.
20314 (df_lr_init): Same.
20315 (df_lr_confluence_n): Same.
20316 (df_lr_free): Same.
20317 (df_lr_top_dump): Same.
20318 (df_lr_verify_transfer_functions): Same.
20319 (df_live_alloc): Same.
20320 (df_live_reset): Same.
20321 (df_live_init): Same.
20322 (df_live_confluence_n): Same.
20323 (df_live_finalize): Same.
20324 (df_live_free): Same.
20325 (df_live_top_dump): Same.
20326 (df_live_verify_transfer_functions): Same.
20327 (df_mir_alloc): Same.
20328 (df_mir_reset): Same.
20329 (df_mir_init): Same.
20330 (df_mir_confluence_n): Same.
20331 (df_mir_free): Same.
20332 (df_mir_top_dump): Same.
20333 (df_word_lr_alloc): Same.
20334 (df_word_lr_reset): Same.
20335 (df_word_lr_init): Same.
20336 (df_word_lr_confluence_n): Same.
20337 (df_word_lr_free): Same.
20338 (df_word_lr_top_dump): Same.
20339 (df_md_alloc): Same.
20340 (df_md_simulate_one_insn): Same.
20341 (df_md_reset): Same.
20342 (df_md_init): Same.
20343 (df_md_free): Same.
20344 (df_md_top_dump): Same.
20345 * df-scan.c (df_insn_delete): Same.
20346 (df_insn_rescan): Same.
20347 (df_notes_rescan): Same.
20348 (df_sort_and_compress_mws): Same.
20349 (df_install_mws): Same.
20350 (df_refs_add_to_chains): Same.
20351 (df_ref_create_structure): Same.
20352 (df_ref_record): Same.
20353 (df_def_record_1): Same.
20354 (df_find_hard_reg_defs): Same.
20355 (df_uses_record): Same.
20356 (df_get_conditional_uses): Same.
20357 (df_get_call_refs): Same.
20358 (df_recompute_luids): Same.
20359 (df_get_entry_block_def_set): Same.
20360 (df_entry_block_defs_collect): Same.
20361 (df_get_exit_block_use_set): Same.
20362 (df_exit_block_uses_collect): Same.
20363 (df_mws_verify): Same.
20364 (df_bb_verify): Same.
20365 * df.h (df_scan_get_bb_info): Same.
20366 * doc/tm.texi: Same.
20367 * dse.c (record_store): Same.
20368 * dumpfile.h: Same.
20369 * emit-rtl.c (const_fixed_hasher::equal): Same.
20370 (set_mem_attributes_minus_bitpos): Same.
20371 (change_address): Same.
20372 (adjust_address_1): Same.
20373 (offset_address): Same.
20374 * emit-rtl.h: Same.
20375 * except.c (dw2_build_landing_pads): Same.
20376 (sjlj_emit_dispatch_table): Same.
20377 * explow.c (allocate_dynamic_stack_space): Same.
20378 (emit_stack_probe): Same.
20379 (probe_stack_range): Same.
20380 * expmed.c (store_bit_field_using_insv): Same.
20381 (store_bit_field_1): Same.
20382 (store_integral_bit_field): Same.
20383 (extract_bit_field_using_extv): Same.
20384 (extract_bit_field_1): Same.
20385 (emit_cstore): Same.
20386 * expr.c (emit_block_move_via_cpymem): Same.
20387 (expand_cmpstrn_or_cmpmem): Same.
20388 (set_storage_via_setmem): Same.
20389 (emit_single_push_insn_1): Same.
20390 (expand_assignment): Same.
20391 (store_constructor): Same.
20392 (expand_expr_real_2): Same.
20393 (expand_expr_real_1): Same.
20394 (try_casesi): Same.
20395 * flags.h: Same.
20396 * function.c (try_fit_stack_local): Same.
20397 (assign_stack_local_1): Same.
20398 (assign_stack_local): Same.
20399 (cut_slot_from_list): Same.
20400 (insert_slot_to_list): Same.
20401 (max_slot_level): Same.
20402 (move_slot_to_level): Same.
20403 (temp_address_hasher::equal): Same.
20404 (remove_unused_temp_slot_addresses): Same.
20405 (assign_temp): Same.
20406 (combine_temp_slots): Same.
20407 (update_temp_slot_address): Same.
20408 (preserve_temp_slots): Same.
20409 * function.h: Same.
20410 * fwprop.c: Same.
20411 * gcc-rich-location.h: Same.
20412 * gcov.c: Same.
20413 * genattrtab.c (check_attr_test): Same.
20414 (check_attr_value): Same.
20415 (convert_set_attr_alternative): Same.
20416 (convert_set_attr): Same.
20417 (check_defs): Same.
20418 (copy_boolean): Same.
20419 (get_attr_value): Same.
20420 (expand_delays): Same.
20421 (make_length_attrs): Same.
20422 (min_fn): Same.
20423 (make_alternative_compare): Same.
20424 (simplify_test_exp): Same.
20425 (tests_attr_p): Same.
20426 (get_attr_order): Same.
20427 (clear_struct_flag): Same.
20428 (gen_attr): Same.
20429 (compares_alternatives_p): Same.
20430 (gen_insn): Same.
20431 (gen_delay): Same.
20432 (find_attrs_to_cache): Same.
20433 (write_test_expr): Same.
20434 (walk_attr_value): Same.
20435 (write_attr_get): Same.
20436 (eliminate_known_true): Same.
20437 (write_insn_cases): Same.
20438 (write_attr_case): Same.
20439 (write_attr_valueq): Same.
20440 (write_attr_value): Same.
20441 (write_dummy_eligible_delay): Same.
20442 (next_comma_elt): Same.
20443 (find_attr): Same.
20444 (make_internal_attr): Same.
20445 (copy_rtx_unchanging): Same.
20446 (gen_insn_reserv): Same.
20447 (check_tune_attr): Same.
20448 (make_automaton_attrs): Same.
20449 (handle_arg): Same.
20450 * genextract.c (gen_insn): Same.
20451 (VEC_char_to_string): Same.
20452 * genmatch.c (print_operand): Same.
20453 (lower): Same.
20454 (parser::parse_operation): Same.
20455 (parser::parse_capture): Same.
20456 (parser::parse_c_expr): Same.
20457 (parser::parse_simplify): Same.
20458 (main): Same.
20459 * genoutput.c (output_operand_data): Same.
20460 (output_get_insn_name): Same.
20461 (compare_operands): Same.
20462 (place_operands): Same.
20463 (process_template): Same.
20464 (validate_insn_alternatives): Same.
20465 (validate_insn_operands): Same.
20466 (gen_expand): Same.
20467 (note_constraint): Same.
20468 * genpreds.c (write_one_predicate_function): Same.
20469 (add_constraint): Same.
20470 (process_define_register_constraint): Same.
20471 (write_lookup_constraint_1): Same.
20472 (write_lookup_constraint_array): Same.
20473 (write_insn_constraint_len): Same.
20474 (write_reg_class_for_constraint_1): Same.
20475 (write_constraint_satisfied_p_array): Same.
20476 * genrecog.c (optimize_subroutine_group): Same.
20477 * gensupport.c (process_define_predicate): Same.
20478 (queue_pattern): Same.
20479 (remove_from_queue): Same.
20480 (process_rtx): Same.
20481 (is_predicable): Same.
20482 (change_subst_attribute): Same.
20483 (subst_pattern_match): Same.
20484 (alter_constraints): Same.
20485 (alter_attrs_for_insn): Same.
20486 (shift_output_template): Same.
20487 (alter_output_for_subst_insn): Same.
20488 (process_one_cond_exec): Same.
20489 (subst_dup): Same.
20490 (process_define_cond_exec): Same.
20491 (mnemonic_htab_callback): Same.
20492 (gen_mnemonic_attr): Same.
20493 (read_md_rtx): Same.
20494 * ggc-page.c: Same.
20495 * gimple-loop-interchange.cc (dump_reduction): Same.
20496 (dump_induction): Same.
20497 (loop_cand::~loop_cand): Same.
20498 (free_data_refs_with_aux): Same.
20499 (tree_loop_interchange::interchange_loops): Same.
20500 (tree_loop_interchange::map_inductions_to_loop): Same.
20501 (tree_loop_interchange::move_code_to_inner_loop): Same.
20502 (compute_access_stride): Same.
20503 (compute_access_strides): Same.
20504 (proper_loop_form_for_interchange): Same.
20505 (tree_loop_interchange_compute_ddrs): Same.
20506 (prune_datarefs_not_in_loop): Same.
20507 (prepare_data_references): Same.
20508 (pass_linterchange::execute): Same.
20509 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20510 (unroll_jam_possible_p): Same.
20511 (fuse_loops): Same.
20512 (adjust_unroll_factor): Same.
20513 (tree_loop_unroll_and_jam): Same.
20514 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20515 (loop_versioning::expensive_stmt_p): Same.
20516 (loop_versioning::version_for_unity): Same.
20517 (loop_versioning::dump_inner_likelihood): Same.
20518 (loop_versioning::find_per_loop_multiplication): Same.
20519 (loop_versioning::analyze_term_using_scevs): Same.
20520 (loop_versioning::record_address_fragment): Same.
20521 (loop_versioning::analyze_expr): Same.
20522 (loop_versioning::analyze_blocks): Same.
20523 (loop_versioning::prune_conditions): Same.
20524 (loop_versioning::merge_loop_info): Same.
20525 (loop_versioning::add_loop_to_queue): Same.
20526 (loop_versioning::decide_whether_loop_is_versionable): Same.
20527 (loop_versioning::make_versioning_decisions): Same.
20528 (loop_versioning::implement_versioning_decisions): Same.
20529 * gimple-ssa-evrp-analyze.c
20530 (evrp_range_analyzer::record_ranges_from_phis): Same.
20531 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20532 (count_multiple_uses): Same.
20533 (split_group): Same.
20534 (imm_store_chain_info::output_merged_store): Same.
20535 (pass_store_merging::process_store): Same.
20536 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20537 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20538 (is_max): Same.
20539 (alloca_call_type): Same.
20540 (pass_walloca::execute): Same.
20541 * gimple-streamer-in.c (input_phi): Same.
20542 (input_gimple_stmt): Same.
20543 * gimple-streamer.h: Same.
20544 * godump.c (go_force_record_alignment): Same.
20545 (go_format_type): Same.
20546 (go_output_type): Same.
20547 (go_output_fndecl): Same.
20548 (go_output_typedef): Same.
20549 (keyword_hash_init): Same.
20550 (find_dummy_types): Same.
20551 * graph.c (draw_cfg_nodes_no_loops): Same.
20552 (draw_cfg_nodes_for_loop): Same.
20553 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20554 * hsa-brig.c: Same.
20555 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20556 * hsa-dump.c (dump_hsa_cfun): Same.
20557 * hsa-gen.c (gen_function_def_parameters): Same.
20558 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20559 * input.c (dump_line_table_statistics): Same.
20560 (test_lexer): Same.
20561 * input.h: Same.
20562 * internal-fn.c (get_multi_vector_move): Same.
20563 (expand_load_lanes_optab_fn): Same.
20564 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20565 (expand_GOMP_SIMT_EXIT): Same.
20566 (expand_GOMP_SIMT_LAST_LANE): Same.
20567 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20568 (expand_GOMP_SIMT_VOTE_ANY): Same.
20569 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20570 (expand_GOMP_SIMT_XCHG_IDX): Same.
20571 (expand_addsub_overflow): Same.
20572 (expand_neg_overflow): Same.
20573 (expand_mul_overflow): Same.
20574 (expand_call_mem_ref): Same.
20575 (expand_mask_load_optab_fn): Same.
20576 (expand_scatter_store_optab_fn): Same.
20577 (expand_gather_load_optab_fn): Same.
20578 * ipa-cp.c (ipa_get_parm_lattices): Same.
20579 (print_all_lattices): Same.
20580 (ignore_edge_p): Same.
20581 (build_toporder_info): Same.
20582 (free_toporder_info): Same.
20583 (push_node_to_stack): Same.
20584 (ipcp_lattice<valtype>::set_contains_variable): Same.
20585 (set_agg_lats_to_bottom): Same.
20586 (ipcp_bits_lattice::meet_with): Same.
20587 (set_single_call_flag): Same.
20588 (initialize_node_lattices): Same.
20589 (ipa_get_jf_ancestor_result): Same.
20590 (ipcp_verify_propagated_values): Same.
20591 (propagate_scalar_across_jump_function): Same.
20592 (propagate_context_across_jump_function): Same.
20593 (propagate_bits_across_jump_function): Same.
20594 (ipa_vr_operation_and_type_effects): Same.
20595 (propagate_vr_across_jump_function): Same.
20596 (set_check_aggs_by_ref): Same.
20597 (set_chain_of_aglats_contains_variable): Same.
20598 (merge_aggregate_lattices): Same.
20599 (agg_pass_through_permissible_p): Same.
20600 (propagate_aggs_across_jump_function): Same.
20601 (call_passes_through_thunk_p): Same.
20602 (propagate_constants_across_call): Same.
20603 (devirtualization_time_bonus): Same.
20604 (good_cloning_opportunity_p): Same.
20605 (context_independent_aggregate_values): Same.
20606 (gather_context_independent_values): Same.
20607 (perform_estimation_of_a_value): Same.
20608 (estimate_local_effects): Same.
20609 (value_topo_info<valtype>::add_val): Same.
20610 (add_all_node_vals_to_toposort): Same.
20611 (value_topo_info<valtype>::propagate_effects): Same.
20612 (ipcp_propagate_stage): Same.
20613 (ipcp_discover_new_direct_edges): Same.
20614 (same_node_or_its_all_contexts_clone_p): Same.
20615 (cgraph_edge_brings_value_p): Same.
20616 (gather_edges_for_value): Same.
20617 (create_specialized_node): Same.
20618 (find_more_scalar_values_for_callers_subset): Same.
20619 (find_more_contexts_for_caller_subset): Same.
20620 (copy_plats_to_inter): Same.
20621 (intersect_aggregates_with_edge): Same.
20622 (find_aggregate_values_for_callers_subset): Same.
20623 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20624 (decide_about_value): Same.
20625 (decide_whether_version_node): Same.
20626 (spread_undeadness): Same.
20627 (identify_dead_nodes): Same.
20628 (ipcp_store_vr_results): Same.
20629 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20630 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20631 (redirect_to_unreachable): Same.
20632 (edge_set_predicate): Same.
20633 (evaluate_conditions_for_known_args): Same.
20634 (evaluate_properties_for_edge): Same.
20635 (ipa_fn_summary_t::duplicate): Same.
20636 (ipa_call_summary_t::duplicate): Same.
20637 (dump_ipa_call_summary): Same.
20638 (ipa_dump_fn_summary): Same.
20639 (eliminated_by_inlining_prob): Same.
20640 (set_cond_stmt_execution_predicate): Same.
20641 (set_switch_stmt_execution_predicate): Same.
20642 (compute_bb_predicates): Same.
20643 (will_be_nonconstant_expr_predicate): Same.
20644 (phi_result_unknown_predicate): Same.
20645 (analyze_function_body): Same.
20646 (compute_fn_summary): Same.
20647 (estimate_edge_devirt_benefit): Same.
20648 (estimate_edge_size_and_time): Same.
20649 (estimate_calls_size_and_time): Same.
20650 (estimate_node_size_and_time): Same.
20651 (remap_edge_change_prob): Same.
20652 (remap_edge_summaries): Same.
20653 (ipa_merge_fn_summary_after_inlining): Same.
20654 (ipa_fn_summary_generate): Same.
20655 (inline_read_section): Same.
20656 (ipa_fn_summary_read): Same.
20657 (ipa_fn_summary_write): Same.
20658 * ipa-fnsummary.h: Same.
20659 * ipa-hsa.c (ipa_hsa_read_section): Same.
20660 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20661 * ipa-icf.c (sem_function::param_used_p): Same.
20662 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20663 * ipa-inline.c (edge_badness): Same.
20664 (inline_small_functions): Same.
20665 * ipa-polymorphic-call.c
20666 (ipa_polymorphic_call_context::stream_out): Same.
20667 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20668 (predicate::remap_after_inlining): Same.
20669 (predicate::stream_out): Same.
20670 * ipa-predicate.h: Same.
20671 * ipa-profile.c (ipa_profile_read_summary): Same.
20672 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20673 (count_formal_params): Same.
20674 (ipa_dump_param): Same.
20675 (ipa_alloc_node_params): Same.
20676 (ipa_print_node_jump_functions_for_edge): Same.
20677 (ipa_print_node_jump_functions): Same.
20678 (ipa_load_from_parm_agg): Same.
20679 (get_ancestor_addr_info): Same.
20680 (ipa_compute_jump_functions_for_edge): Same.
20681 (ipa_analyze_virtual_call_uses): Same.
20682 (ipa_analyze_stmt_uses): Same.
20683 (ipa_analyze_params_uses_in_bb): Same.
20684 (update_jump_functions_after_inlining): Same.
20685 (try_decrement_rdesc_refcount): Same.
20686 (ipa_impossible_devirt_target): Same.
20687 (update_indirect_edges_after_inlining): Same.
20688 (combine_controlled_uses_counters): Same.
20689 (ipa_edge_args_sum_t::duplicate): Same.
20690 (ipa_write_jump_function): Same.
20691 (ipa_write_indirect_edge_info): Same.
20692 (ipa_write_node_info): Same.
20693 (ipa_read_edge_info): Same.
20694 (ipa_prop_read_section): Same.
20695 (read_replacements_section): Same.
20696 * ipa-prop.h (ipa_get_param_count): Same.
20697 (ipa_get_param): Same.
20698 (ipa_get_type): Same.
20699 (ipa_get_param_move_cost): Same.
20700 (ipa_set_param_used): Same.
20701 (ipa_get_controlled_uses): Same.
20702 (ipa_set_controlled_uses): Same.
20703 (ipa_get_cs_argument_count): Same.
20704 * ipa-pure-const.c (analyze_function): Same.
20705 (pure_const_read_summary): Same.
20706 * ipa-ref.h: Same.
20707 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20708 * ipa-split.c (test_nonssa_use): Same.
20709 (dump_split_point): Same.
20710 (dominated_by_forbidden): Same.
20711 (split_part_set_ssa_name_p): Same.
20712 (find_split_points): Same.
20713 * ira-build.c (finish_loop_tree_nodes): Same.
20714 (low_pressure_loop_node_p): Same.
20715 * ira-color.c (ira_reuse_stack_slot): Same.
20716 * ira-int.h: Same.
20717 * ira.c (setup_reg_equiv): Same.
20718 (print_insn_chain): Same.
20719 (ira): Same.
20720 * loop-doloop.c (doloop_condition_get): Same.
20721 (add_test): Same.
20722 (record_reg_sets): Same.
20723 (doloop_optimize): Same.
20724 * loop-init.c (loop_optimizer_init): Same.
20725 (fix_loop_structure): Same.
20726 * loop-invariant.c (merge_identical_invariants): Same.
20727 (compute_always_reached): Same.
20728 (find_exits): Same.
20729 (may_assign_reg_p): Same.
20730 (find_invariants_bb): Same.
20731 (find_invariants_body): Same.
20732 (replace_uses): Same.
20733 (can_move_invariant_reg): Same.
20734 (free_inv_motion_data): Same.
20735 (move_single_loop_invariants): Same.
20736 (change_pressure): Same.
20737 (mark_ref_regs): Same.
20738 (calculate_loop_reg_pressure): Same.
20739 * loop-iv.c (biv_entry_hasher::equal): Same.
20740 (iv_extend_to_rtx_code): Same.
20741 (check_iv_ref_table_size): Same.
20742 (clear_iv_info): Same.
20743 (latch_dominating_def): Same.
20744 (iv_get_reaching_def): Same.
20745 (iv_constant): Same.
20746 (iv_subreg): Same.
20747 (iv_extend): Same.
20748 (iv_neg): Same.
20749 (iv_add): Same.
20750 (iv_mult): Same.
20751 (get_biv_step): Same.
20752 (record_iv): Same.
20753 (analyzed_for_bivness_p): Same.
20754 (record_biv): Same.
20755 (iv_analyze_biv): Same.
20756 (iv_analyze_expr): Same.
20757 (iv_analyze_def): Same.
20758 (iv_analyze_op): Same.
20759 (iv_analyze): Same.
20760 (iv_analyze_result): Same.
20761 (biv_p): Same.
20762 (eliminate_implied_conditions): Same.
20763 (simplify_using_initial_values): Same.
20764 (shorten_into_mode): Same.
20765 (canonicalize_iv_subregs): Same.
20766 (determine_max_iter): Same.
20767 (check_simple_exit): Same.
20768 (find_simple_exit): Same.
20769 (get_simple_loop_desc): Same.
20770 * loop-unroll.c (report_unroll): Same.
20771 (decide_unrolling): Same.
20772 (unroll_loops): Same.
20773 (loop_exit_at_end_p): Same.
20774 (decide_unroll_constant_iterations): Same.
20775 (unroll_loop_constant_iterations): Same.
20776 (compare_and_jump_seq): Same.
20777 (unroll_loop_runtime_iterations): Same.
20778 (decide_unroll_stupid): Same.
20779 (unroll_loop_stupid): Same.
20780 (referenced_in_one_insn_in_loop_p): Same.
20781 (reset_debug_uses_in_loop): Same.
20782 (analyze_iv_to_split_insn): Same.
20783 * lra-eliminations.c (lra_debug_elim_table): Same.
20784 (setup_can_eliminate): Same.
20785 (form_sum): Same.
20786 (lra_get_elimination_hard_regno): Same.
20787 (lra_eliminate_regs_1): Same.
20788 (eliminate_regs_in_insn): Same.
20789 (update_reg_eliminate): Same.
20790 (init_elimination): Same.
20791 (lra_eliminate): Same.
20792 * lra-int.h: Same.
20793 * lra-lives.c (initiate_live_solver): Same.
20794 * lra-remat.c (create_remat_bb_data): Same.
20795 * lra-spills.c (lra_spill): Same.
20796 * lra.c (lra_set_insn_recog_data): Same.
20797 (lra_set_used_insn_alternative_by_uid): Same.
20798 (init_reg_info): Same.
20799 (expand_reg_info): Same.
20800 * lto-cgraph.c (output_symtab): Same.
20801 (read_identifier): Same.
20802 (get_alias_symbol): Same.
20803 (input_node): Same.
20804 (input_varpool_node): Same.
20805 (input_ref): Same.
20806 (input_edge): Same.
20807 (input_cgraph_1): Same.
20808 (input_refs): Same.
20809 (input_symtab): Same.
20810 (input_offload_tables): Same.
20811 (output_cgraph_opt_summary): Same.
20812 (input_edge_opt_summary): Same.
20813 (input_cgraph_opt_section): Same.
20814 * lto-section-in.c (lto_free_raw_section_data): Same.
20815 (lto_create_simple_input_block): Same.
20816 (lto_free_function_in_decl_state_for_node): Same.
20817 * lto-streamer-in.c (lto_tag_check_set): Same.
20818 (lto_location_cache::revert_location_cache): Same.
20819 (lto_location_cache::input_location): Same.
20820 (lto_input_location): Same.
20821 (stream_input_location_now): Same.
20822 (lto_input_tree_ref): Same.
20823 (lto_input_eh_catch_list): Same.
20824 (input_eh_region): Same.
20825 (lto_init_eh): Same.
20826 (make_new_block): Same.
20827 (input_cfg): Same.
20828 (fixup_call_stmt_edges): Same.
20829 (input_struct_function_base): Same.
20830 (input_function): Same.
20831 (lto_read_body_or_constructor): Same.
20832 (lto_read_tree_1): Same.
20833 (lto_read_tree): Same.
20834 (lto_input_scc): Same.
20835 (lto_input_tree_1): Same.
20836 (lto_input_toplevel_asms): Same.
20837 (lto_input_mode_table): Same.
20838 (lto_reader_init): Same.
20839 (lto_data_in_create): Same.
20840 * lto-streamer-out.c (output_cfg): Same.
20841 * lto-streamer.h: Same.
20842 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20843 (generate_prolog_epilog): Same.
20844 (mark_loop_unsched): Same.
20845 (dump_insn_location): Same.
20846 (loop_canon_p): Same.
20847 (sms_schedule): Same.
20848 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20849 (expand_omp_for_generic): Same.
20850 (expand_omp_for_static_nochunk): Same.
20851 (expand_omp_for_static_chunk): Same.
20852 (expand_omp_simd): Same.
20853 (expand_omp_taskloop_for_inner): Same.
20854 (expand_oacc_for): Same.
20855 (expand_omp_atomic_pipeline): Same.
20856 (mark_loops_in_oacc_kernels_region): Same.
20857 * omp-offload.c (oacc_xform_loop): Same.
20858 * omp-simd-clone.c (simd_clone_adjust): Same.
20859 * optabs-query.c (get_traditional_extraction_insn): Same.
20860 * optabs.c (expand_vector_broadcast): Same.
20861 (expand_binop_directly): Same.
20862 (expand_twoval_unop): Same.
20863 (expand_twoval_binop): Same.
20864 (expand_unop_direct): Same.
20865 (emit_indirect_jump): Same.
20866 (emit_conditional_move): Same.
20867 (emit_conditional_neg_or_complement): Same.
20868 (emit_conditional_add): Same.
20869 (vector_compare_rtx): Same.
20870 (expand_vec_perm_1): Same.
20871 (expand_vec_perm_const): Same.
20872 (expand_vec_cond_expr): Same.
20873 (expand_vec_series_expr): Same.
20874 (maybe_emit_atomic_exchange): Same.
20875 (maybe_emit_sync_lock_test_and_set): Same.
20876 (expand_atomic_compare_and_swap): Same.
20877 (expand_atomic_load): Same.
20878 (expand_atomic_store): Same.
20879 (maybe_emit_op): Same.
20880 (valid_multiword_target_p): Same.
20881 (create_integer_operand): Same.
20882 (maybe_legitimize_operand_same_code): Same.
20883 (maybe_legitimize_operand): Same.
20884 (create_convert_operand_from_type): Same.
20885 (can_reuse_operands_p): Same.
20886 (maybe_legitimize_operands): Same.
20887 (maybe_gen_insn): Same.
20888 (maybe_expand_insn): Same.
20889 (maybe_expand_jump_insn): Same.
20890 (expand_insn): Same.
20891 * optabs.h (create_expand_operand): Same.
20892 (create_fixed_operand): Same.
20893 (create_output_operand): Same.
20894 (create_input_operand): Same.
20895 (create_convert_operand_to): Same.
20896 (create_convert_operand_from): Same.
20897 * optinfo.h: Same.
20898 * poly-int.h: Same.
20899 * predict.c (optimize_insn_for_speed_p): Same.
20900 (optimize_loop_for_size_p): Same.
20901 (optimize_loop_for_speed_p): Same.
20902 (optimize_loop_nest_for_speed_p): Same.
20903 (get_base_value): Same.
20904 (predicted_by_loop_heuristics_p): Same.
20905 (predict_extra_loop_exits): Same.
20906 (predict_loops): Same.
20907 (predict_paths_for_bb): Same.
20908 (predict_paths_leading_to): Same.
20909 (propagate_freq): Same.
20910 (pass_profile::execute): Same.
20911 * predict.h: Same.
20912 * profile-count.c (profile_count::differs_from_p): Same.
20913 (profile_probability::differs_lot_from_p): Same.
20914 * profile-count.h: Same.
20915 * profile.c (branch_prob): Same.
20916 * regrename.c (free_chain_data): Same.
20917 (mark_conflict): Same.
20918 (create_new_chain): Same.
20919 (merge_overlapping_regs): Same.
20920 (init_rename_info): Same.
20921 (merge_chains): Same.
20922 (regrename_analyze): Same.
20923 (regrename_do_replace): Same.
20924 (scan_rtx_reg): Same.
20925 (record_out_operands): Same.
20926 (build_def_use): Same.
20927 * regrename.h: Same.
20928 * reload.h: Same.
20929 * reload1.c (init_reload): Same.
20930 (maybe_fix_stack_asms): Same.
20931 (copy_reloads): Same.
20932 (count_pseudo): Same.
20933 (count_spilled_pseudo): Same.
20934 (find_reg): Same.
20935 (find_reload_regs): Same.
20936 (select_reload_regs): Same.
20937 (spill_hard_reg): Same.
20938 (fixup_eh_region_note): Same.
20939 (set_reload_reg): Same.
20940 (allocate_reload_reg): Same.
20941 (compute_reload_subreg_offset): Same.
20942 (reload_adjust_reg_for_icode): Same.
20943 (emit_input_reload_insns): Same.
20944 (emit_output_reload_insns): Same.
20945 (do_input_reload): Same.
20946 (inherit_piecemeal_p): Same.
20947 * rtl.h: Same.
20948 * sanopt.c (maybe_get_dominating_check): Same.
20949 (maybe_optimize_ubsan_ptr_ifn): Same.
20950 (can_remove_asan_check): Same.
20951 (maybe_optimize_asan_check_ifn): Same.
20952 (sanopt_optimize_walker): Same.
20953 * sched-deps.c (add_dependence_list): Same.
20954 (chain_to_prev_insn): Same.
20955 (add_insn_mem_dependence): Same.
20956 (create_insn_reg_set): Same.
20957 (maybe_extend_reg_info_p): Same.
20958 (sched_analyze_reg): Same.
20959 (sched_analyze_1): Same.
20960 (get_implicit_reg_pending_clobbers): Same.
20961 (chain_to_prev_insn_p): Same.
20962 (deps_analyze_insn): Same.
20963 (deps_start_bb): Same.
20964 (sched_free_deps): Same.
20965 (init_deps): Same.
20966 (init_deps_reg_last): Same.
20967 (free_deps): Same.
20968 * sched-ebb.c: Same.
20969 * sched-int.h: Same.
20970 * sched-rgn.c (add_branch_dependences): Same.
20971 (concat_insn_mem_list): Same.
20972 (deps_join): Same.
20973 (sched_rgn_compute_dependencies): Same.
20974 * sel-sched-ir.c (reset_target_context): Same.
20975 (copy_deps_context): Same.
20976 (init_id_from_df): Same.
20977 (has_dependence_p): Same.
20978 (change_loops_latches): Same.
20979 (bb_top_order_comparator): Same.
20980 (make_region_from_loop_preheader): Same.
20981 (sel_init_pipelining): Same.
20982 (get_loop_nest_for_rgn): Same.
20983 (make_regions_from_the_rest): Same.
20984 (sel_is_loop_preheader_p): Same.
20985 * sel-sched-ir.h (inner_loop_header_p): Same.
20986 (get_all_loop_exits): Same.
20987 * selftest.h: Same.
20988 * sese.c (sese_build_liveouts): Same.
20989 (sese_insert_phis_for_liveouts): Same.
20990 * sese.h (defined_in_sese_p): Same.
20991 * sreal.c (sreal::stream_out): Same.
20992 * sreal.h: Same.
20993 * streamer-hooks.h: Same.
20994 * target-globals.c (save_target_globals): Same.
20995 * target-globals.h: Same.
20996 * target.def: Same.
20997 * target.h: Same.
20998 * targhooks.c (default_has_ifunc_p): Same.
20999 (default_empty_mask_is_expensive): Same.
21000 (default_init_cost): Same.
21001 * targhooks.h: Same.
21002 * toplev.c: Same.
21003 * tree-affine.c (aff_combination_mult): Same.
21004 (aff_combination_expand): Same.
21005 (aff_combination_constant_multiple_p): Same.
21006 * tree-affine.h: Same.
21007 * tree-cfg.c (build_gimple_cfg): Same.
21008 (replace_loop_annotate_in_block): Same.
21009 (replace_uses_by): Same.
21010 (remove_bb): Same.
21011 (dump_cfg_stats): Same.
21012 (gimple_duplicate_sese_region): Same.
21013 (gimple_duplicate_sese_tail): Same.
21014 (move_block_to_fn): Same.
21015 (replace_block_vars_by_duplicates): Same.
21016 (move_sese_region_to_fn): Same.
21017 (print_loops_bb): Same.
21018 (print_loop): Same.
21019 (print_loops): Same.
21020 (debug): Same.
21021 (debug_loops): Same.
21022 * tree-cfg.h: Same.
21023 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21024 (chrec_fold_multiply_poly_poly): Same.
21025 (chrec_evaluate): Same.
21026 (chrec_component_in_loop_num): Same.
21027 (reset_evolution_in_loop): Same.
21028 (is_multivariate_chrec): Same.
21029 (chrec_contains_symbols): Same.
21030 (nb_vars_in_chrec): Same.
21031 (chrec_convert_1): Same.
21032 (chrec_convert_aggressive): Same.
21033 * tree-chrec.h: Same.
21034 * tree-core.h: Same.
21035 * tree-data-ref.c (dump_data_dependence_relation): Same.
21036 (canonicalize_base_object_address): Same.
21037 (data_ref_compare_tree): Same.
21038 (prune_runtime_alias_test_list): Same.
21039 (get_segment_min_max): Same.
21040 (create_intersect_range_checks): Same.
21041 (conflict_fn_no_dependence): Same.
21042 (object_address_invariant_in_loop_p): Same.
21043 (analyze_ziv_subscript): Same.
21044 (analyze_siv_subscript_cst_affine): Same.
21045 (analyze_miv_subscript): Same.
21046 (analyze_overlapping_iterations): Same.
21047 (build_classic_dist_vector_1): Same.
21048 (add_other_self_distances): Same.
21049 (same_access_functions): Same.
21050 (build_classic_dir_vector): Same.
21051 (subscript_dependence_tester_1): Same.
21052 (subscript_dependence_tester): Same.
21053 (access_functions_are_affine_or_constant_p): Same.
21054 (get_references_in_stmt): Same.
21055 (loop_nest_has_data_refs): Same.
21056 (graphite_find_data_references_in_stmt): Same.
21057 (find_data_references_in_bb): Same.
21058 (get_base_for_alignment): Same.
21059 (find_loop_nest_1): Same.
21060 (find_loop_nest): Same.
21061 * tree-data-ref.h (dr_alignment): Same.
21062 (ddr_dependence_level): Same.
21063 * tree-if-conv.c (fold_build_cond_expr): Same.
21064 (add_to_predicate_list): Same.
21065 (add_to_dst_predicate_list): Same.
21066 (phi_convertible_by_degenerating_args): Same.
21067 (idx_within_array_bound): Same.
21068 (all_preds_critical_p): Same.
21069 (pred_blocks_visited_p): Same.
21070 (predicate_bbs): Same.
21071 (build_region): Same.
21072 (if_convertible_loop_p_1): Same.
21073 (is_cond_scalar_reduction): Same.
21074 (predicate_scalar_phi): Same.
21075 (remove_conditions_and_labels): Same.
21076 (combine_blocks): Same.
21077 (version_loop_for_if_conversion): Same.
21078 (versionable_outer_loop_p): Same.
21079 (ifcvt_local_dce): Same.
21080 (tree_if_conversion): Same.
21081 (pass_if_conversion::gate): Same.
21082 * tree-if-conv.h: Same.
21083 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21084 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21085 (free_rdg): Same.
21086 (stmt_has_scalar_dependences_outside_loop): Same.
21087 (copy_loop_before): Same.
21088 (create_bb_after_loop): Same.
21089 (const_with_all_bytes_same): Same.
21090 (generate_memset_builtin): Same.
21091 (generate_memcpy_builtin): Same.
21092 (destroy_loop): Same.
21093 (build_rdg_partition_for_vertex): Same.
21094 (compute_access_range): Same.
21095 (data_ref_segment_size): Same.
21096 (latch_dominated_by_data_ref): Same.
21097 (compute_alias_check_pairs): Same.
21098 (fuse_memset_builtins): Same.
21099 (finalize_partitions): Same.
21100 (find_seed_stmts_for_distribution): Same.
21101 (prepare_perfect_loop_nest): Same.
21102 * tree-parloops.c (lambda_transform_legal_p): Same.
21103 (loop_parallel_p): Same.
21104 (reduc_stmt_res): Same.
21105 (add_field_for_name): Same.
21106 (create_call_for_reduction_1): Same.
21107 (replace_uses_in_bb_by): Same.
21108 (transform_to_exit_first_loop_alt): Same.
21109 (try_transform_to_exit_first_loop_alt): Same.
21110 (transform_to_exit_first_loop): Same.
21111 (num_phis): Same.
21112 (gen_parallel_loop): Same.
21113 (gather_scalar_reductions): Same.
21114 (get_omp_data_i_param): Same.
21115 (try_create_reduction_list): Same.
21116 (oacc_entry_exit_single_gang): Same.
21117 (parallelize_loops): Same.
21118 * tree-pass.h: Same.
21119 * tree-predcom.c (determine_offset): Same.
21120 (last_always_executed_block): Same.
21121 (split_data_refs_to_components): Same.
21122 (suitable_component_p): Same.
21123 (valid_initializer_p): Same.
21124 (find_looparound_phi): Same.
21125 (insert_looparound_copy): Same.
21126 (add_looparound_copies): Same.
21127 (determine_roots_comp): Same.
21128 (predcom_tmp_var): Same.
21129 (initialize_root_vars): Same.
21130 (initialize_root_vars_store_elim_1): Same.
21131 (initialize_root_vars_store_elim_2): Same.
21132 (finalize_eliminated_stores): Same.
21133 (initialize_root_vars_lm): Same.
21134 (remove_stmt): Same.
21135 (determine_unroll_factor): Same.
21136 (execute_pred_commoning_cbck): Same.
21137 (base_names_in_chain_on): Same.
21138 (combine_chains): Same.
21139 (pcom_stmt_dominates_stmt_p): Same.
21140 (try_combine_chains): Same.
21141 (prepare_initializers_chain_store_elim): Same.
21142 (prepare_initializers_chain): Same.
21143 (prepare_initializers): Same.
21144 (prepare_finalizers_chain): Same.
21145 (prepare_finalizers): Same.
21146 (insert_init_seqs): Same.
21147 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21148 (compute_overall_effect_of_inner_loop): Same.
21149 (add_to_evolution_1): Same.
21150 (add_to_evolution): Same.
21151 (follow_ssa_edge_binary): Same.
21152 (follow_ssa_edge_expr): Same.
21153 (backedge_phi_arg_p): Same.
21154 (follow_ssa_edge_in_condition_phi_branch): Same.
21155 (follow_ssa_edge_in_condition_phi): Same.
21156 (follow_ssa_edge_inner_loop_phi): Same.
21157 (follow_ssa_edge): Same.
21158 (analyze_evolution_in_loop): Same.
21159 (analyze_initial_condition): Same.
21160 (interpret_loop_phi): Same.
21161 (interpret_condition_phi): Same.
21162 (interpret_rhs_expr): Same.
21163 (interpret_expr): Same.
21164 (interpret_gimple_assign): Same.
21165 (analyze_scalar_evolution_1): Same.
21166 (analyze_scalar_evolution): Same.
21167 (analyze_scalar_evolution_for_address_of): Same.
21168 (get_instantiated_value_entry): Same.
21169 (loop_closed_phi_def): Same.
21170 (instantiate_scev_name): Same.
21171 (instantiate_scev_poly): Same.
21172 (instantiate_scev_binary): Same.
21173 (instantiate_scev_convert): Same.
21174 (instantiate_scev_not): Same.
21175 (instantiate_scev_r): Same.
21176 (instantiate_scev): Same.
21177 (resolve_mixers): Same.
21178 (initialize_scalar_evolutions_analyzer): Same.
21179 (scev_reset_htab): Same.
21180 (scev_reset): Same.
21181 (derive_simple_iv_with_niters): Same.
21182 (simple_iv_with_niters): Same.
21183 (expression_expensive_p): Same.
21184 (final_value_replacement_loop): Same.
21185 * tree-scalar-evolution.h (block_before_loop): Same.
21186 * tree-ssa-address.h: Same.
21187 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21188 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21189 (record_edge_info): Same.
21190 * tree-ssa-live.c (var_map_base_fini): Same.
21191 (remove_unused_locals): Same.
21192 * tree-ssa-live.h: Same.
21193 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21194 (pass_ch_vect::execute): Same.
21195 (pass_ch::process_loop_p): Same.
21196 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21197 (movement_possibility): Same.
21198 (outermost_invariant_loop): Same.
21199 (stmt_cost): Same.
21200 (determine_max_movement): Same.
21201 (invariantness_dom_walker::before_dom_children): Same.
21202 (move_computations): Same.
21203 (may_move_till): Same.
21204 (force_move_till_op): Same.
21205 (force_move_till): Same.
21206 (memref_free): Same.
21207 (record_mem_ref_loc): Same.
21208 (set_ref_stored_in_loop): Same.
21209 (mark_ref_stored): Same.
21210 (sort_bbs_in_loop_postorder_cmp): Same.
21211 (sort_locs_in_loop_postorder_cmp): Same.
21212 (analyze_memory_references): Same.
21213 (mem_refs_may_alias_p): Same.
21214 (find_ref_loc_in_loop_cmp): Same.
21215 (rewrite_mem_ref_loc::operator): Same.
21216 (first_mem_ref_loc_1::operator): Same.
21217 (sm_set_flag_if_changed::operator): Same.
21218 (execute_sm_if_changed_flag_set): Same.
21219 (execute_sm): Same.
21220 (hoist_memory_references): Same.
21221 (ref_always_accessed::operator): Same.
21222 (refs_independent_p): Same.
21223 (record_dep_loop): Same.
21224 (ref_indep_loop_p_1): Same.
21225 (ref_indep_loop_p): Same.
21226 (can_sm_ref_p): Same.
21227 (find_refs_for_sm): Same.
21228 (loop_suitable_for_sm): Same.
21229 (store_motion_loop): Same.
21230 (store_motion): Same.
21231 (fill_always_executed_in): Same.
21232 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21233 (estimated_unrolled_size): Same.
21234 (loop_edge_to_cancel): Same.
21235 (remove_exits_and_undefined_stmts): Same.
21236 (remove_redundant_iv_tests): Same.
21237 (unloop_loops): Same.
21238 (estimated_peeled_sequence_size): Same.
21239 (try_peel_loop): Same.
21240 (canonicalize_loop_induction_variables): Same.
21241 (canonicalize_induction_variables): Same.
21242 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21243 (name_info): Same.
21244 (stmt_after_inc_pos): Same.
21245 (contains_abnormal_ssa_name_p): Same.
21246 (niter_for_exit): Same.
21247 (find_bivs): Same.
21248 (mark_bivs): Same.
21249 (find_givs_in_bb): Same.
21250 (find_induction_variables): Same.
21251 (find_interesting_uses_cond): Same.
21252 (outermost_invariant_loop_for_expr): Same.
21253 (idx_find_step): Same.
21254 (add_candidate_1): Same.
21255 (add_iv_candidate_derived_from_uses): Same.
21256 (alloc_use_cost_map): Same.
21257 (prepare_decl_rtl): Same.
21258 (generic_predict_doloop_p): Same.
21259 (computation_cost): Same.
21260 (determine_common_wider_type): Same.
21261 (get_computation_aff_1): Same.
21262 (get_use_type): Same.
21263 (determine_group_iv_cost_address): Same.
21264 (iv_period): Same.
21265 (difference_cannot_overflow_p): Same.
21266 (may_eliminate_iv): Same.
21267 (determine_set_costs): Same.
21268 (cheaper_cost_pair): Same.
21269 (compare_cost_pair): Same.
21270 (iv_ca_cand_for_group): Same.
21271 (iv_ca_recount_cost): Same.
21272 (iv_ca_set_remove_invs): Same.
21273 (iv_ca_set_no_cp): Same.
21274 (iv_ca_set_add_invs): Same.
21275 (iv_ca_set_cp): Same.
21276 (iv_ca_add_group): Same.
21277 (iv_ca_cost): Same.
21278 (iv_ca_compare_deps): Same.
21279 (iv_ca_delta_reverse): Same.
21280 (iv_ca_delta_commit): Same.
21281 (iv_ca_cand_used_p): Same.
21282 (iv_ca_delta_free): Same.
21283 (iv_ca_new): Same.
21284 (iv_ca_free): Same.
21285 (iv_ca_dump): Same.
21286 (iv_ca_extend): Same.
21287 (iv_ca_narrow): Same.
21288 (iv_ca_prune): Same.
21289 (cheaper_cost_with_cand): Same.
21290 (iv_ca_replace): Same.
21291 (try_add_cand_for): Same.
21292 (get_initial_solution): Same.
21293 (try_improve_iv_set): Same.
21294 (find_optimal_iv_set_1): Same.
21295 (create_new_iv): Same.
21296 (rewrite_use_compare): Same.
21297 (remove_unused_ivs): Same.
21298 (determine_scaling_factor): Same.
21299 * tree-ssa-loop-ivopts.h: Same.
21300 * tree-ssa-loop-manip.c (create_iv): Same.
21301 (compute_live_loop_exits): Same.
21302 (add_exit_phi): Same.
21303 (add_exit_phis): Same.
21304 (find_uses_to_rename_use): Same.
21305 (find_uses_to_rename_def): Same.
21306 (find_uses_to_rename_in_loop): Same.
21307 (rewrite_into_loop_closed_ssa): Same.
21308 (check_loop_closed_ssa_bb): Same.
21309 (split_loop_exit_edge): Same.
21310 (ip_end_pos): Same.
21311 (ip_normal_pos): Same.
21312 (copy_phi_node_args): Same.
21313 (gimple_duplicate_loop_to_header_edge): Same.
21314 (can_unroll_loop_p): Same.
21315 (determine_exit_conditions): Same.
21316 (scale_dominated_blocks_in_loop): Same.
21317 (niter_for_unrolled_loop): Same.
21318 (tree_transform_and_unroll_loop): Same.
21319 (rewrite_all_phi_nodes_with_iv): Same.
21320 * tree-ssa-loop-manip.h: Same.
21321 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21322 (number_of_iterations_ne): Same.
21323 (assert_no_overflow_lt): Same.
21324 (assert_loop_rolls_lt): Same.
21325 (number_of_iterations_lt): Same.
21326 (adjust_cond_for_loop_until_wrap): Same.
21327 (tree_simplify_using_condition): Same.
21328 (simplify_using_initial_conditions): Same.
21329 (simplify_using_outer_evolutions): Same.
21330 (loop_only_exit_p): Same.
21331 (ssa_defined_by_minus_one_stmt_p): Same.
21332 (number_of_iterations_popcount): Same.
21333 (number_of_iterations_exit): Same.
21334 (find_loop_niter): Same.
21335 (finite_loop_p): Same.
21336 (chain_of_csts_start): Same.
21337 (get_val_for): Same.
21338 (loop_niter_by_eval): Same.
21339 (derive_constant_upper_bound_ops): Same.
21340 (do_warn_aggressive_loop_optimizations): Same.
21341 (record_estimate): Same.
21342 (get_cst_init_from_scev): Same.
21343 (record_nonwrapping_iv): Same.
21344 (idx_infer_loop_bounds): Same.
21345 (infer_loop_bounds_from_ref): Same.
21346 (infer_loop_bounds_from_array): Same.
21347 (infer_loop_bounds_from_pointer_arith): Same.
21348 (infer_loop_bounds_from_signedness): Same.
21349 (bound_index): Same.
21350 (discover_iteration_bound_by_body_walk): Same.
21351 (maybe_lower_iteration_bound): Same.
21352 (estimate_numbers_of_iterations): Same.
21353 (estimated_loop_iterations): Same.
21354 (estimated_loop_iterations_int): Same.
21355 (max_loop_iterations): Same.
21356 (max_loop_iterations_int): Same.
21357 (likely_max_loop_iterations): Same.
21358 (likely_max_loop_iterations_int): Same.
21359 (estimated_stmt_executions_int): Same.
21360 (max_stmt_executions): Same.
21361 (likely_max_stmt_executions): Same.
21362 (estimated_stmt_executions): Same.
21363 (stmt_dominates_stmt_p): Same.
21364 (nowrap_type_p): Same.
21365 (loop_exits_before_overflow): Same.
21366 (scev_var_range_cant_overflow): Same.
21367 (scev_probably_wraps_p): Same.
21368 (free_numbers_of_iterations_estimates): Same.
21369 * tree-ssa-loop-niter.h: Same.
21370 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21371 (idx_analyze_ref): Same.
21372 (analyze_ref): Same.
21373 (gather_memory_references_ref): Same.
21374 (mark_nontemporal_store): Same.
21375 (emit_mfence_after_loop): Same.
21376 (may_use_storent_in_loop_p): Same.
21377 (mark_nontemporal_stores): Same.
21378 (should_unroll_loop_p): Same.
21379 (volume_of_dist_vector): Same.
21380 (add_subscript_strides): Same.
21381 (self_reuse_distance): Same.
21382 (insn_to_prefetch_ratio_too_small_p): Same.
21383 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21384 (patch_loop_exit): Same.
21385 (find_or_create_guard_phi): Same.
21386 (easy_exit_values): Same.
21387 (connect_loop_phis): Same.
21388 (connect_loops): Same.
21389 (compute_new_first_bound): Same.
21390 (split_loop): Same.
21391 (tree_ssa_split_loops): Same.
21392 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21393 (is_maybe_undefined): Same.
21394 (tree_may_unswitch_on): Same.
21395 (simplify_using_entry_checks): Same.
21396 (tree_unswitch_single_loop): Same.
21397 (tree_unswitch_loop): Same.
21398 (tree_unswitch_outer_loop): Same.
21399 (empty_bb_without_guard_p): Same.
21400 (used_outside_loop_p): Same.
21401 (get_vop_from_header): Same.
21402 (hoist_guard): Same.
21403 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21404 (get_lsm_tmp_name): Same.
21405 * tree-ssa-loop.h: Same.
21406 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21407 (build_and_add_sum): Same.
21408 (no_side_effect_bb): Same.
21409 (get_ops): Same.
21410 (linearize_expr): Same.
21411 (should_break_up_subtract): Same.
21412 (linearize_expr_tree): Same.
21413 * tree-ssa-scopedtables.c: Same.
21414 * tree-ssa-scopedtables.h: Same.
21415 * tree-ssa-structalias.c (condense_visit): Same.
21416 (label_visit): Same.
21417 (dump_pred_graph): Same.
21418 (perform_var_substitution): Same.
21419 (move_complex_constraints): Same.
21420 (remove_preds_and_fake_succs): Same.
21421 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21422 (determine_bb_domination_status): Same.
21423 (duplicate_thread_path): Same.
21424 (thread_through_all_blocks): Same.
21425 * tree-ssa-threadupdate.h: Same.
21426 * tree-streamer-in.c (streamer_read_string_cst): Same.
21427 (input_identifier): Same.
21428 (unpack_ts_type_common_value_fields): Same.
21429 (unpack_ts_block_value_fields): Same.
21430 (unpack_ts_translation_unit_decl_value_fields): Same.
21431 (unpack_ts_omp_clause_value_fields): Same.
21432 (streamer_read_tree_bitfields): Same.
21433 (streamer_alloc_tree): Same.
21434 (lto_input_ts_common_tree_pointers): Same.
21435 (lto_input_ts_vector_tree_pointers): Same.
21436 (lto_input_ts_poly_tree_pointers): Same.
21437 (lto_input_ts_complex_tree_pointers): Same.
21438 (lto_input_ts_decl_minimal_tree_pointers): Same.
21439 (lto_input_ts_decl_common_tree_pointers): Same.
21440 (lto_input_ts_decl_non_common_tree_pointers): Same.
21441 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21442 (lto_input_ts_field_decl_tree_pointers): Same.
21443 (lto_input_ts_function_decl_tree_pointers): Same.
21444 (lto_input_ts_type_common_tree_pointers): Same.
21445 (lto_input_ts_type_non_common_tree_pointers): Same.
21446 (lto_input_ts_list_tree_pointers): Same.
21447 (lto_input_ts_vec_tree_pointers): Same.
21448 (lto_input_ts_exp_tree_pointers): Same.
21449 (lto_input_ts_block_tree_pointers): Same.
21450 (lto_input_ts_binfo_tree_pointers): Same.
21451 (lto_input_ts_constructor_tree_pointers): Same.
21452 (lto_input_ts_omp_clause_tree_pointers): Same.
21453 (streamer_read_tree_body): Same.
21454 * tree-streamer.h: Same.
21455 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21456 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21457 (vect_analyze_possibly_independent_ddr): Same.
21458 (vect_analyze_data_ref_dependence): Same.
21459 (vect_compute_data_ref_alignment): Same.
21460 (vect_enhance_data_refs_alignment): Same.
21461 (vect_analyze_data_ref_access): Same.
21462 (vect_check_gather_scatter): Same.
21463 (vect_find_stmt_data_reference): Same.
21464 (vect_create_addr_base_for_vector_ref): Same.
21465 (vect_setup_realignment): Same.
21466 (vect_supportable_dr_alignment): Same.
21467 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21468 (adjust_phi_and_debug_stmts): Same.
21469 (vect_set_loop_mask): Same.
21470 (add_preheader_seq): Same.
21471 (vect_maybe_permute_loop_masks): Same.
21472 (vect_set_loop_masks_directly): Same.
21473 (vect_set_loop_condition_masked): Same.
21474 (vect_set_loop_condition_unmasked): Same.
21475 (slpeel_duplicate_current_defs_from_edges): Same.
21476 (slpeel_add_loop_guard): Same.
21477 (slpeel_can_duplicate_loop_p): Same.
21478 (create_lcssa_for_virtual_phi): Same.
21479 (iv_phi_p): Same.
21480 (vect_update_ivs_after_vectorizer): Same.
21481 (vect_gen_vector_loop_niters_mult_vf): Same.
21482 (slpeel_update_phi_nodes_for_loops): Same.
21483 (slpeel_update_phi_nodes_for_guard1): Same.
21484 (find_guard_arg): Same.
21485 (slpeel_update_phi_nodes_for_guard2): Same.
21486 (slpeel_update_phi_nodes_for_lcssa): Same.
21487 (vect_do_peeling): Same.
21488 (vect_create_cond_for_alias_checks): Same.
21489 (vect_loop_versioning): Same.
21490 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21491 (vect_inner_phi_in_double_reduction_p): Same.
21492 (vect_analyze_scalar_cycles_1): Same.
21493 (vect_fixup_scalar_cycles_with_patterns): Same.
21494 (vect_get_loop_niters): Same.
21495 (bb_in_loop_p): Same.
21496 (vect_get_max_nscalars_per_iter): Same.
21497 (vect_verify_full_masking): Same.
21498 (vect_compute_single_scalar_iteration_cost): Same.
21499 (vect_analyze_loop_form_1): Same.
21500 (vect_analyze_loop_form): Same.
21501 (vect_active_double_reduction_p): Same.
21502 (vect_analyze_loop_operations): Same.
21503 (neutral_op_for_slp_reduction): Same.
21504 (vect_is_simple_reduction): Same.
21505 (vect_model_reduction_cost): Same.
21506 (get_initial_def_for_reduction): Same.
21507 (get_initial_defs_for_reduction): Same.
21508 (vect_create_epilog_for_reduction): Same.
21509 (vectorize_fold_left_reduction): Same.
21510 (vectorizable_reduction): Same.
21511 (vectorizable_induction): Same.
21512 (vectorizable_live_operation): Same.
21513 (loop_niters_no_overflow): Same.
21514 (vect_get_loop_mask): Same.
21515 (vect_transform_loop_stmt): Same.
21516 (vect_transform_loop): Same.
21517 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21518 (vect_determine_precisions): Same.
21519 (vect_pattern_recog_1): Same.
21520 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21521 * tree-vect-stmts.c (stmt_vectype): Same.
21522 (process_use): Same.
21523 (vect_init_vector_1): Same.
21524 (vect_truncate_gather_scatter_offset): Same.
21525 (get_group_load_store_type): Same.
21526 (vect_build_gather_load_calls): Same.
21527 (vect_get_strided_load_store_ops): Same.
21528 (vectorizable_simd_clone_call): Same.
21529 (vectorizable_store): Same.
21530 (permute_vec_elements): Same.
21531 (vectorizable_load): Same.
21532 (vect_transform_stmt): Same.
21533 (supportable_widening_operation): Same.
21534 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21535 (vec_info::free_stmt_vec_info): Same.
21536 (vect_free_loop_info_assumptions): Same.
21537 (vect_loop_vectorized_call): Same.
21538 (set_uid_loop_bbs): Same.
21539 (vectorize_loops): Same.
21540 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21541 * tree.c (add_tree_to_fld_list): Same.
21542 (fld_type_variant_equal_p): Same.
21543 (fld_decl_context): Same.
21544 (fld_incomplete_type_of): Same.
21545 (free_lang_data_in_binfo): Same.
21546 (need_assembler_name_p): Same.
21547 (find_decls_types_r): Same.
21548 (get_eh_types_for_runtime): Same.
21549 (find_decls_types_in_eh_region): Same.
21550 (find_decls_types_in_node): Same.
21551 (assign_assembler_name_if_needed): Same.
21552 * value-prof.c (stream_out_histogram_value): Same.
21553 * value-prof.h: Same.
21554 * var-tracking.c (use_narrower_mode): Same.
21555 (prepare_call_arguments): Same.
21556 (vt_expand_loc_callback): Same.
21557 (resolve_expansions_pending_recursion): Same.
21558 (vt_expand_loc): Same.
21559 * varasm.c (const_hash_1): Same.
21560 (compare_constant): Same.
21561 (tree_output_constant_def): Same.
21562 (simplify_subtraction): Same.
21563 (get_pool_constant): Same.
21564 (output_constant_pool_2): Same.
21565 (output_constant_pool_1): Same.
21566 (mark_constants_in_pattern): Same.
21567 (mark_constant_pool): Same.
21568 (get_section_anchor): Same.
21569 * vr-values.c (compare_range_with_value): Same.
21570 (vr_values::extract_range_from_phi_node): Same.
21571 * vr-values.h: Same.
21572 * web.c (unionfind_union): Same.
21573 * wide-int.h: Same.
21574
21575 2019-07-09 Martin Sebor <msebor@redhat.com>
21576
21577 PR c++/61339
21578 * align.h: Change class-key from class to struct and vice versa
21579 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21580 * alloc-pool.h: Same.
21581 * asan.c (shadow_mem_size): Same.
21582 * auto-profile.c: Same.
21583 * basic-block.h: Same.
21584 * bitmap.h: Same.
21585 * cfgexpand.c (set_rtl): Same.
21586 (expand_one_stack_var_at): Same.
21587 * cfghooks.h: Same.
21588 * cfgloop.h: Same.
21589 * cgraph.h: Same.
21590 * config/i386/i386.h: Same.
21591 * df-problems.c (df_print_bb_index): Same.
21592 * df-scan.c: Same.
21593 * df.h (df_single_use): Same.
21594 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21595 (layout::annotation_line_showed_range_p): Same.
21596 (get_printed_columns): Same.
21597 (correction::ensure_terminated): Same.
21598 (line_corrections::~line_corrections): Same.
21599 * dojump.h: Same.
21600 * dse.c: Same.
21601 * dump-context.h: Same.
21602 * dumpfile.h: Same.
21603 * dwarf2out.c: Same.
21604 * edit-context.c: Same.
21605 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21606 * flags.h: Same.
21607 * function.c (assign_stack_local): Same.
21608 * function.h: Same.
21609 * gcc.c: Same.
21610 * gcov.c (block_info::block_info): Same.
21611 * genattrtab.c: Same.
21612 * genextract.c: Same.
21613 * genmatch.c (comparison_code_p): Same.
21614 (id_base::id_base): Same.
21615 (decision_tree::print): Same.
21616 * genoutput.c: Same.
21617 * genpreds.c (write_one_predicate_function): Same.
21618 * genrecog.c (validate_pattern): Same.
21619 (find_operand_positions): Same.
21620 (optimize_subroutine_group): Same.
21621 (merge_pattern_transition::merge_pattern_transition): Same.
21622 (merge_pattern_info::merge_pattern_info): Same.
21623 (merge_state_result::merge_state_result): Same.
21624 (merge_into_state): Same.
21625 * gensupport.c: Same.
21626 * gensupport.h: Same.
21627 * ggc-common.c (init_ggc_heuristics): Same.
21628 * ggc-tests.c (test_union): Same.
21629 * gimple-loop-interchange.cc (dump_induction): Same.
21630 * gimple-loop-versioning.cc: Same.
21631 * gimple-match.h (gimple_match_cond::any_else): Same.
21632 * gimple-ssa-backprop.c: Same.
21633 * gimple-ssa-sprintf.c: Same.
21634 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21635 Same.
21636 (store_immediate_info::store_immediate_info): Same.
21637 (merged_store_group::apply_stores): Same.
21638 (get_location_for_stmts): Same.
21639 * gimple-ssa-strength-reduction.c: Same.
21640 * gimple-ssa-warn-alloca.c: Same.
21641 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21642 * godump.c (go_type_decl): Same.
21643 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21644 * hash-map.h: Same.
21645 * hash-set-tests.c (test_set_of_strings): Same.
21646 * hsa-brig.c: Same.
21647 * hsa-common.h: Same.
21648 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21649 * input.c (assert_loceq): Same.
21650 * input.h: Same.
21651 * ipa-cp.c: Same.
21652 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21653 * ipa-fnsummary.h: Same.
21654 * ipa-inline.h: Same.
21655 * ipa-prop.h: Same.
21656 * ipa-split.c (visit_bb): Same.
21657 * ira-int.h (minmax_set_iter_next): Same.
21658 * loop-invariant.c: Same.
21659 * loop-iv.c: Same.
21660 * lra-eliminations.c: Same.
21661 * lra-int.h: Same.
21662 * lra-lives.c (mark_regno_dead): Same.
21663 * lra-remat.c: Same.
21664 * lra-spills.c: Same.
21665 * lto-streamer.h: Same.
21666 * mem-stats.h: Same.
21667 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21668 * omp-low.c (omp_clause_aligned_alignment): Same.
21669 * optabs-query.h (get_vcond_eq_icode): Same.
21670 * optabs.h: Same.
21671 * opts.c (wrap_help): Same.
21672 * poly-int.h: Same.
21673 * predict.c (predict_paths_leading_to_edge): Same.
21674 * pretty-print.h: Same.
21675 * profile-count.h: Same.
21676 * read-md.h: Same.
21677 * read-rtl-function.c: Same.
21678 * ree.c: Same.
21679 * reginfo.c: Same.
21680 * regrename.c: Same.
21681 * regrename.h: Same.
21682 * reload.h: Same.
21683 * rtl-iter.h: Same.
21684 * rtl.h (costs_add_n_insns): Same.
21685 * sanopt.c: Same.
21686 * sched-int.h: Same.
21687 * sel-sched-ir.h: Same.
21688 * selftest.h: Same.
21689 * sese.h (vec_find): Same.
21690 * stmt.c: Same.
21691 * target-globals.h: Same.
21692 * tree-affine.c (aff_combination_find_elt): Same.
21693 * tree-affine.h: Same.
21694 * tree-data-ref.h: Same.
21695 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21696 * tree-predcom.c: Same.
21697 * tree-scalar-evolution.c (find_var_scev_info): Same.
21698 * tree-ssa-alias.h: Same.
21699 * tree-ssa-ccp.c: Same.
21700 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21701 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21702 (rewrite_mem_refs): Same.
21703 (execute_sm_if_changed): Same.
21704 (hoist_memory_references): Same.
21705 * tree-ssa-loop-ivopts.c (operator<=): Same.
21706 * tree-ssa-loop.h: Same.
21707 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21708 * tree-ssa-structalias.c: Same.
21709 * tree-switch-conversion.h (cluster::cluster): Same.
21710 (simple_cluster::simple_cluster): Same.
21711 * tree-vect-patterns.c (type_conversion_p): Same.
21712 * tree-vectorizer.c (dump_stmt_cost): Same.
21713 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21714 * tree.c (protected_set_expr_location): Same.
21715 * tree.h (desired_pro_or_demotion_p): Same.
21716 (fndecl_built_in_p): Same.
21717 * unique-ptr-tests.cc: Same.
21718 * var-tracking.c (delete_variable_part): Same.
21719 * varasm.c (assemble_real): Same.
21720 (tree_output_constant_def): Same.
21721 * vec.c: Same.
21722 * wide-int-bitmask.h: Same.
21723 * wide-int.h (decompose): Same.
21724
21725 2019-07-09 Richard Biener <rguenther@suse.de>
21726
21727 PR tree-optimization/91114
21728 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21729 find a vector type isn't fatal.
21730
21731 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21732
21733 * config/aarch64/aarch64-simd.md
21734 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21735 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21736 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21737 (*aarch64_crypto_aese_fused,
21738 *aarch64_crypto_aesd_fused): Update to new definition.
21739 * config/aarch64/aarch64.c
21740 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21741
21742 2019-07-09 Richard Biener <rguenther@suse.de>
21743
21744 * gimple-match.h (gimple_match_op::resimplify): New.
21745 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21746 gimple_resimplify4, gimple_resimplify5): Remove.
21747 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21748 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21749 Make static.
21750 (gimple_match_op::resimplify): New.
21751 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21752 according to availability. Use gimple_match_op::resimplify.
21753
21754 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21755
21756 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21757
21758 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21759
21760 * config/arm/crypto.md:
21761 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21762 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21763 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21764 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21765 * config/arm/arm.c
21766 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21767 * config/arm/aarch-common-protos.h
21768 (aarch_crypto_can_dual_issue): Remove.
21769 * config/arm/aarch-common.c
21770 (aarch_crypto_can_dual_issue): Likewise.
21771 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21772 * config/arm/cortex-a53.md: Likewise.
21773 * config/arm/cortex-a57.md: Likewise.
21774 * config/arm/iterators.md:
21775 (CRYPTO_BINARY): Redefine.
21776 (CRYPTO_UNARY): Removed.
21777 (CRYPTO_AES, CRYPTO_AESMC): New.
21778
21779 2019-07-09 Richard Biener <rguenther@suse.de>
21780
21781 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21782 (vn_reference_lookup_3): If the main ref has no access path recorded
21783 but orig_ref has use it to do access-path based disambiguation.
21784 (vn_reference_lookup_pieces): Adjust.
21785 (vn_reference_lookup): Pass down original ref if we valueized.
21786
21787 2019-07-09 Martin Liska <mliska@suse.cz>
21788
21789 * doc/extend.texi: Document influence on loop
21790 optimizers.
21791
21792 2019-07-09 Martin Liska <mliska@suse.cz>
21793
21794 * lto-compress.c (lto_normalized_zstd_level): Do not use
21795 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21796 of libzstd. One can use 0 as a default compression level.
21797
21798 2019-07-09 Martin Liska <mliska@suse.cz>
21799
21800 * doc/invoke.texi: Add link from -fprofile-dir option.
21801 Use better wording for 'gcno filename'.
21802
21803 2019-07-08 Martin Sebor <msebor@redhat.com>
21804
21805 PR middle-end/71924
21806 PR middle-end/90549
21807 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21808 comment.
21809 (args_loc_t): New type.
21810 (args_loc_t, locmap_t): same.
21811 (diag_returned_locals): New function.
21812 (is_addr_local): Same.
21813 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21814 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21815 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21816
21817 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21818
21819 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21820 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21821 and casts in offset when different, both through gimple stmts
21822 and through trees. Rewritten using loops to minimize code duplication
21823 for each operand.
21824
21825 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21826
21827 * emit-rtl.c (set_insn_locations): New function moved from...
21828 * function.c (set_insn_locations): ...here.
21829 * ira-emit.c (emit_moves): Propagate location of the first instruction
21830 to the inserted move instructions.
21831 * reg-stack.c (compensate_edge): Set the location if the sequence is
21832 inserted on the edge.
21833 * rtl.h (set_insn_locations): Declare.
21834
21835 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21836
21837 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21838 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21839 .machine string.
21840
21841 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21842
21843 PR rtl-optimization/88233
21844 * common.opt (fsplit-wide-types-early): New option.
21845 * common/config/rs6000/rs6000-common.c
21846 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21847 OPT_LEVELS_ALL.
21848 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21849 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21850 flag_split_wide_types_early.
21851 (pass_data_lower_subreg3): New.
21852 (pass_lower_subreg3): New.
21853 (make_pass_lower_subreg3): New.
21854 * passes.def (pass_lower_subreg2): Move after the loop passes.
21855 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21856 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21857 the pass pipeline; its previous place is taken by ...
21858 (make_pass_lower_subreg3): ... this.
21859
21860 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21861
21862 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21863 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21864
21865 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21866
21867 * config/s390/constraints.md: Add new jsc constraint.
21868 * config/s390/predicates.md: New predicates.
21869 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21870 * config/s390/s390.c (s390_valid_shift_count): New function.
21871 (print_shift_count_operand): Use s390_valid_shift_count.
21872 (print_operand): Likewise.
21873 * config/s390/s390.md: Use new predicate.
21874 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21875 * config/s390/vector.md: Use new predicate.
21876
21877 2019-07-08 Andrew Waterman <andrew@sifive.com>
21878 Jim Wilson <jimw@sifive.com>
21879
21880 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21881 bitsize instead of BITS_PER_WORD.
21882
21883 2019-07-08 Martin Liska <mliska@suse.cz>
21884
21885 * collect2.c (defined): Revert to before r254460.
21886 (scan_prog_file): Revert to before r254460.
21887
21888 2019-07-08 Richard Biener <rguenther@suse.de>
21889
21890 PR tree-optimization/83518
21891 * tree-ssa-sccvn.c: Include splay-tree.h.
21892 (struct pd_range, struct pd_data): New.
21893 (struct vn_walk_cb_data): Add data to track partial definitions.
21894 (vn_walk_cb_data::~vn_walk_cb_data): New.
21895 (vn_walk_cb_data::push_partial_def): New.
21896 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21897 (vn_reference_lookup_2): When partial defs are registered give up.
21898 (vn_reference_lookup_3): Track partial defs for memset and
21899 constructor zeroing and for defs from constants.
21900
21901 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21902
21903 * doc/install.texi (bootstrap-Og): Document.
21904
21905 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21906
21907 * config/riscv/pic.md (*local_pic_load_s<mode>)
21908 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21909 referenced by <mode>, giving...
21910 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21911 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21912 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21913 use <X:MODE> for the mode attribute.
21914
21915 2019-07-07 Jeff Law <law@redhat.com>
21916
21917 PR tree-optimization/91090
21918 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21919 in handling of ranges to simplify switch statements.
21920
21921 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21922
21923 * config/darwin.c (darwin_override_options): Make a final check on PIC
21924 options.
21925
21926 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21927
21928 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21929 on for kernel code.
21930
21931 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21932
21933 PR target/91068
21934 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21935 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21936 instead of matching them to "l" output operands.
21937
21938 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21939
21940 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21941 and check whether addr.reg is nonnull before using it.
21942
21943 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21944
21945 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21946 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21947 variable(s). For conditional lastprivate look through outer
21948 GIMPLE_OMP_SCAN context.
21949 (lower_omp_1): For conditional lastprivate look through outer
21950 GIMPLE_OMP_SCAN context.
21951
21952 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21953 member to combined_into_simd_safelen1.
21954 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21955 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21956 clauses if ctx->combined_into_simd_safelen1 put statements after the
21957 predicate conditionalized block rather than into it.
21958
21959 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21960
21961 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21962 operand 1.
21963 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21964 Make the choice of <mode> explicit, giving...
21965 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21966
21967 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21968
21969 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21970 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21971 of .md attributes.
21972 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21973 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21974 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21975 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21976 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21977 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21978 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21979 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21980 (*avx512f_scatterdi<mode>): Likewise.
21981 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21982
21983 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21984
21985 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21986 specify the mode iterator referenced by <mode>, giving...
21987 (*push1_h8300hs_<QHI:mode>): ...this.
21988
21989 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21990
21991 * config/gcn/gcn-valu.md
21992 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21993 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21994 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21995 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21996 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21997 but using the _exec comparison patterns.
21998 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21999 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22000 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22001 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22002 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22003 but using the _exec comparison patterns.
22004
22005 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22006
22007 * config/arm/sync.md
22008 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22009 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22010 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22011 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22012 <SIDI:cas_cmp_str>.
22013
22014 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22015
22016 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22017 (maybe_lookup_ctx): Add forward declaration.
22018 (omp_find_scan): Likewise. Walk into body of simd if composited
22019 with worksharing loop.
22020 (scan_omp_simd_scan): New function.
22021 (scan_omp_1_stmt): Call it.
22022 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22023 ctx->for_simd_scan_phase.
22024 (lower_rec_input_clauses): Do much less work for inscan reductions
22025 in ctx->for_simd_scan_phase is_simd regions.
22026 (lower_omp_scan): Set is_simd also on simd constructs composited
22027 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22028 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22029 emit their body after in simd constructs composited with worksharing
22030 loop.
22031 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22032
22033 * omp-low.c (omp_find_scan): Make static.
22034 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22035 the second loop, var2 represents the first partial sum and so needs
22036 to go before rprivb[ivar].
22037
22038 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22039
22040 * config/rs6000/rs6000-logue.c: Remove unused code.
22041
22042 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22043
22044 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22045
22046 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22047
22048 PR target/90712
22049 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22050 check with a frame laid out check.
22051
22052 2019-07-05 Richard Biener <rguenther@suse.de>
22053
22054 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22055 when comparing against a store with possibly the same value.
22056
22057 2019-07-05 Richard Biener <rguenther@suse.de>
22058
22059 PR tree-optimization/91091
22060 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22061 (walk_non_aliased_vuses): Likewise.
22062 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22063 (get_continuation_for_phi): New tbaa_p parameter and pass
22064 it down.
22065 (walk_non_aliased_vuses): Likewise.
22066 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22067 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22068 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22069 Likewise.
22070 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22071 (adjust_offsets_for_equal_base_address): New function.
22072 (vn_reference_lookup_3): Use it to catch more base equivalences.
22073 Handle and pass down tbaa_p flag.
22074 (vn_reference_lookup_pieces): Adjust.
22075 (vn_reference_lookup): Remove alias-set altering, instead pass
22076 down false as tbaa_p.
22077
22078 2019-07-05 Richard Biener <rguenther@suse.de>
22079
22080 PR tree-optimization/91091
22081 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22082 accesses can happen with -fno-strict-aliasing.
22083
22084 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22085
22086 * tree-ssa-alias.c (alias_stats): Add
22087 nonoverlapping_component_refs_since_match_p_must_overlap.
22088 (dump_alias_stats): Print it.
22089 (nonoverlapping_component_refs_since_match_p): Add early exit.
22090 (nonoverlapping_component_refs_p): Do not account early exit.
22091
22092 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22093
22094 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22095 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22096 (emit_eh_dispatch): Delete.
22097 (lower_catch): Emit the eh_dispatch manually and set the location of
22098 the first catch statement onto it.
22099 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22100 (lower_eh_dispatch): Propagate location.
22101 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22102 (eliminate_build): Likewise.
22103
22104 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22105
22106 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22107 phi nodes if possible.
22108 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22109 location info on the newly created statement.
22110 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22111 newly created increment if needed.
22112
22113 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22114
22115 PR middle-end/78884
22116 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22117 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22118 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22119 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22120 ctx->add_safelen1 is set.
22121
22122 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22123 GOMP_loop_start at the start of second worksharing loop in a scan.
22124 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22125 worksharing loop in a scan even if there are conditional lastprivates,
22126 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22127
22128 2019-07-04 Jan Hubicka <jh@suse.cz>
22129
22130 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22131 Fix check for match in the ref walk.
22132
22133 2019-07-04 Martin Liska <mliska@suse.cz>
22134
22135 * tree-ssa-loop-niter.c
22136 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22137 (estimate_numbers_of_iterations):
22138 Support __builtin_expect_with_probability for analysis
22139 of # of loop iterations.
22140
22141 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22142
22143 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22144 * except.c: Likewise.
22145 * expr.c (expand_expr_real_1): Reject it.
22146 * gimplify.c (gimplify_expr): Gimplify it, within
22147 TRY_FINALLY_EXPR.
22148 * tree-dump.c (dequeue_and_dump): Dump it.
22149 * tree-pretty-print.c (dump_generic_node): Likewise.
22150 * tree.c (block_may_fallthru): Handle it.
22151 * tree.def (EH_ELSE_EXPR): Introduce it.
22152 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22153 with GIMPLE_EH_ELSE as try/finally/else.
22154
22155 2019-07-04 Richard Biener <rguenther@suse.de>
22156
22157 PR ipa/91062
22158 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22159 parameter whether to disable GC collection.
22160 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22161 honor it.
22162 (execute_all_ipa_transforms): Likewise and pass it down.
22163 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22164 collection from applying IPA transforms.
22165 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22166 from applying IPA transforms.
22167
22168 2019-07-04 Richard Biener <rguenther@suse.de>
22169
22170 PR tree-optimization/90911
22171 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22172 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22173 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22174 scalar_loop_scaling.
22175 (vect_transform_loop): Scale scalar loop profile if needed.
22176 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22177 the loop copy from if-conversion adjust edge probabilities
22178 and scale the vectorized loop body profile, queue the scalar
22179 profile for updating after peeling.
22180
22181 2019-07-04 Jan Hubicka <jh@suse.cz>
22182
22183 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22184 parameters; return early for must-alias.
22185 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22186 outer types match, try nonoverlapping_component_refs
22187 if must-alias is not obvious.
22188 (indirect_refs_may_alias_p): Likewise.
22189 (refs_may_alias_p_2): Likewise.
22190
22191 2019-07-04 Richard Biener <rguenther@suse.de>
22192
22193 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22194 argument.
22195 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22196 globals into...
22197 (struct vn_walk_cb_data): New callback data struct.
22198 (vn_reference_lookup_2): Adjust.
22199 (vn_reference_lookup_3): Likewise.
22200 (vn_reference_lookup_pieces): Likewise.
22201 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22202 (visit_reference_op_load): Adjust.
22203
22204 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22205
22206 PR tree-optimization/91063
22207 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22208 stmt from stmts sequence before calling vect_init_vector_1.
22209 Formatting fix.
22210
22211 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22212
22213 PR target/88833
22214 * fwprop.c (reg_single_def_p): New function.
22215 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22216 (forward_propagate_into): New parameter reg_prop_only
22217 with default value false.
22218 Propagate def's src into loop only if SET_SRC and SET_DEST
22219 of def_set have single definitions.
22220 Likewise if reg_prop_only is set to true.
22221 (fwprop): New param fwprop_addr_p.
22222 Integrate fwprop_addr into fwprop.
22223 (fwprop_addr): Remove.
22224 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22225 to true.
22226 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22227 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22228 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22229
22230 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22231
22232 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22233 in worksharing loop scans.
22234
22235 PR tree-optimization/91074
22236 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22237 temporary.
22238
22239 PR rtl-optimization/90756
22240 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22241 for VECTOR_TYPE_P.
22242
22243 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22244
22245 * config/aarch64/aarch64.md: Remove redundant constraints from
22246 define_expand but keep some patterns untouched if they are
22247 specially selected by TARGET_SECONDARY_RELOAD hook.
22248 * config/aarch64/aarch64-sve.md: Likewise.
22249 * config/aarch64/atomics.md: Remove redundant constraints from
22250 define_expand.
22251 * config/aarch64/aarch64-simd.md: Likewise.
22252
22253 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22254
22255 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22256 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22257 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22258 clauses.
22259 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22260 DARWIN_NOPIE_SPEC.
22261
22262 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22263
22264 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22265 (STARTFILE_SPEC): Split crt3 into a separate spec.
22266 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22267 (DARWIN_CRT2_SPEC): New.
22268 (DARWIN_CRT3_SPEC): New.
22269 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22270 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22271 (DARWIN_CRT3_SPEC): New.
22272
22273 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22274
22275 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22276 Change the RTL attribute "length" from "4" to "*" to allow the
22277 length attribute to be adjusted automatically for prefixed load,
22278 store, and add immediate instructions.
22279 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22280 Likewise.
22281 (extendsi<mode>2, EXTSI iterator): Likewise.
22282 (movsi_internal1): Likewise.
22283 (movsi_from_sf): Likewise.
22284 (movdi_from_sf_zero_ext): Likewise.
22285 (mov<mode>_internal): Likewise.
22286 (movcc_internal1, QHI iterator): Likewise.
22287 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22288 (movsf_from_si): Likewise.
22289 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22290 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22291 (mov<mode>, FMOVE128 iterator): Likewise.
22292 (movdi_internal64): Likewise.
22293 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22294 Likewise.
22295 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22296 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22297 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22298 (vsx_splat_v4sf): Likewise.
22299
22300 2019-07-03 Mark Wielaard <mark@klomp.org>
22301
22302 PR debug/90981
22303 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22304 DW_AT_addr_base if there is actually a .debug_addr section with
22305 addresses.
22306 (output_addr_table): Add DWARF5 table header generation here after
22307 checking there are actually any addresses from...
22308 (dwarf2out_finish): ...here.
22309
22310 2019-07-03 Richard Biener <rguenther@suse.de>
22311
22312 PR middle-end/91069
22313 * match.pd (vec_perm -> bit_insert): Fix element read from
22314 first vector.
22315
22316 2019-07-03 Martin Liska <mliska@suse.cz>
22317
22318 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22319 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22320 condition.
22321 * generic-match-head.c: Include dbgcnt.h.
22322 * gimple-match-head.c: Likewise.
22323
22324 2019-07-03 Martin Liska <mliska@suse.cz>
22325
22326 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22327 (GCOV_COUNTER_V_TOPN): New.
22328 (GCOV_COUNTER_V_INDIR): Use _topn.
22329 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22330 (GCOV_TOPN_VALUES): New.
22331 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22332 (GCOV_TOPN_VALUES_COUNTERS): New.
22333 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22334 * tree-profile.c:
22335 (gimple_init_gcov_profiler): Rename variables from one_value
22336 to topn_values.
22337 (gimple_gen_one_value_profiler): Remove.
22338 (gimple_gen_topn_values_profiler): New function.
22339 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22340 names instead of SINGLE_VALUE.
22341 (stream_out_histogram_value): Likewise.
22342 (stream_in_histogram_value): Likewise.
22343 (get_most_common_single_value): Likewise.
22344 (gimple_divmod_fixed_value_transform): Likewise.
22345 (gimple_stringops_transform): Likewise.
22346 (gimple_divmod_values_to_profile): Likewise.
22347 (gimple_stringops_values_to_profile): Likewise.
22348 (gimple_find_values_to_profile): Likewise.
22349 * value-prof.h (enum hist_type): Rename to TOPN.
22350 (gimple_gen_one_value_profiler): Remove.
22351 (gimple_gen_topn_values_profiler): New.
22352
22353 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22354
22355 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22356 if it has the DW_AT_data_member_location attribute.
22357
22358 2019-07-03 Richard Biener <rguenther@suse.de>
22359
22360 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22361 dumping.
22362
22363 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22364
22365 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22366 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22367 (tlsdesc_small_sve_<mode>): Likewise.
22368
22369 2019-07-03 Martin Liska <mliska@suse.cz>
22370
22371 * Makefile.in: Define ZSTD_LIB.
22372 * common.opt: Adjust compression level
22373 to support also zstd levels.
22374 * config.in: Regenerate.
22375 * configure: Likewise.
22376 * configure.ac: Add --with-zstd and --with-zstd-include options
22377 and detect ZSTD.
22378 * doc/install.texi: Mention zstd dependency.
22379 * gcc.c: Print supported LTO compression algorithms.
22380 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22381 (lto_compression_zstd): Likewise.
22382 (lto_uncompression_zstd): Likewise.
22383 (lto_end_compression): Dispatch in between zlib and zstd.
22384 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22385 (lto_uncompression_zlib): Make it static.
22386 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22387 * lto-section-in.c (lto_get_section_data): Pass info
22388 about used compression.
22389 * lto-streamer-out.c: By default use zstd when possible.
22390 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22391 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22392
22393 2019-07-03 Martin Liska <mliska@suse.cz>
22394
22395 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22396 * lto-section-out.c (lto_destroy_simple_output_block): Never
22397 compress LTO_section_lto section.
22398 * lto-streamer-out.c (produce_asm): Do not set major_version
22399 and minor_version.
22400 (lto_output_toplevel_asms): Likewise.
22401 (produce_lto_section): New function.
22402 (lto_output): Call produce_lto_section.
22403 (lto_write_mode_table): Do not set major_version and
22404 minor_version.
22405 (produce_asm_for_decls): Likewise.
22406 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22407 type.
22408 (struct lto_header): Remove.
22409 (struct lto_section): New struct.
22410 (struct lto_simple_header): Do not inherit from lto_header.
22411 (struct lto_file_decl_data): Add lto_section_header field.
22412
22413 2019-07-03 Martin Liska <mliska@suse.cz>
22414
22415 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22416 dead assignemts.
22417 * reg-stack.c (check_asm_stack_operands): Likewise.
22418 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22419 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22420 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22421 force_expand_binop.
22422
22423 2019-07-03 Martin Liska <mliska@suse.cz>
22424
22425 PR tree-optimization/90892
22426 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22427 in string constants.
22428
22429 2019-07-03 Martin Liska <mliska@suse.cz>
22430
22431 PR middle-end/90899
22432 * multiple_target.c (create_dispatcher_calls): Add to comdat
22433 group only if set for ifunc.
22434
22435 2019-07-03 Martin Liska <mliska@suse.cz>
22436
22437 PR target/88056
22438 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22439 Define local_object_name in outer scope in order to handle
22440 use-after-scope issue.
22441
22442 2019-07-03 Martin Liska <mliska@suse.cz>
22443
22444 * common.opt: Add fprofile-note.
22445 * coverage.c (coverage_init): Append the option
22446 to bbg_file_name.
22447 * doc/invoke.texi: Document -fprofile-note.
22448
22449 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22450
22451 PR tree-optimization/91033
22452 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22453 vect_analyze_data_refs): Add bool * arguments.
22454 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22455 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22456 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22457 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22458 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22459 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22460 vect_analyze_data_refs caller.
22461
22462 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22463 clause.
22464 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22465 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22466 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22467 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22468 OMP_CLAUSE__SCANTEMP_ entry.
22469 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22470 * tree-pretty-print.c (dump_omp_clause): Likewise.
22471 * tree-nested.c (convert_nonlocal_omp_clauses,
22472 convert_local_omp_clauses): Likewise.
22473 * omp-general.h (struct omp_for_data): Add have_scantemp and
22474 have_nonctrl_scantemp members.
22475 * omp-general.c (omp_extract_for_data): Initialize them.
22476 * omp-low.c (struct omp_context): Add scan_exclusive member.
22477 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22478 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22479 ctx->scan_exclusive.
22480 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22481 of !ctx->scan_inclusive.
22482 (lower_rec_input_clauses): Simplify gimplification of dtors using
22483 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22484 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22485 loops. Don't add barrier for reduction_omp_orig_ref if
22486 ctx->scan_??xclusive.
22487 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22488 (lower_omp_scan): Use ctx->scan_exclusive instead
22489 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22490 reductions. Use new_vard != new_var instead of repeated
22491 omp_is_reference calls.
22492 (omp_find_scan, lower_omp_for_scan): New functions.
22493 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22494 inscan reductions.
22495 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22496 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22497 and fd->have_scantemp.
22498
22499 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22500 on worksharing loop propagate it as shared clause to containing
22501 combined parallel.
22502
22503 * omp-expand.c (expand_omp_for_static_nochunk,
22504 expand_omp_for_static_chunk): For nowait worksharing loop with
22505 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22506 at the end.
22507
22508 2019-07-02 qing zhao <qing.zhao@oracle.com>
22509
22510 PR preprocessor/90581
22511 * doc/cppopts.texi: Add document for -fmax-include-depth.
22512 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22513
22514 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22515
22516 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22517 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22518 (mmx_packssdw): Ditto.
22519 (mmx_punpckhbw): Ditto.
22520 (mmx_punpcklbw): Ditto.
22521 (mmx_punpckhwd): Ditto.
22522 (mmx_punpcklwd): Ditto.
22523 (mmx_punpckhdq): Ditto.
22524 (mmx_punpckldq): Ditto.
22525 (*vec_dupv4hi): Ditto.
22526 (*vec_dupv2si): Ditto.
22527 (mmx_pmovmskb): Ditto.
22528 * config/i386/sse.md (sse_cvtpi2ps): Use
22529 TARGET_SSE2 && SSE_REG_P in split condition.
22530 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22531 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22532 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22533 (ssse3_pshufbv8qi3): Ditto.
22534 (ssse3_palignrdi): Ditto.
22535
22536 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22537
22538 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22539 with inlined save and restore.
22540
22541 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22542
22543 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22544 to be inserted on single successor edge of the entry block. Then call
22545 commit_edge_insertions instead of inserting the instructions manually.
22546 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22547 RTL expansion and rebuild jump labels chain.
22548
22549 2019-07-02 Richard Biener <rguenther@suse.de>
22550
22551 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22552 TI_CHREC_KNOWN.
22553 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22554 Define here.
22555 * tree.c (build_common_tree_nodes): Initialize them.
22556 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22557 Make declarations comments.
22558 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22559 chrec_known): Remove definitions.
22560 (initialize_scalar_evolutions_analyzer): Remove.
22561 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22562 * tree-streamer.c (preload_common_nodes): Do not preload
22563 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22564
22565 2019-07-02 Jan Hubicka <jh@suse.cz>
22566
22567 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22568 sanity check.
22569
22570 2019-07-02 Jan Hubicka <jh@suse.cz>
22571
22572 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22573 to ..
22574 (nonoverlapping_component_refs_since_match_p): ... this one;
22575 handle also non-decl bases; return -1 if search gave up.
22576 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22577 nonoverlapping_component_refs_of_decl_p_no_alias to
22578 nonoverlapping_component_refs_since_match_p_may_alias,
22579 nonoverlapping_component_refs_since_match_p_no_alias.
22580 (dump_alias_stats): Update dumping.
22581 (aliasing_matching_component_refs_p): Break out from ...;
22582 dispatch to nonoverlapping_component_refs_for_decl_p
22583 and nonoverlapping_component_refs_since_match_p.
22584 (aliasing_component_refs_p): ... here; call
22585 nonoverlapping_component_refs_p in scenarios where we can not
22586 precisely determine base match.
22587 (decl_refs_may_alias_p): Use
22588 nonoverlapping_component_refs_since_match_p.
22589 (indirect_ref_may_alias_decl_p): Do not call
22590 nonoverlapping_component_refs_p.
22591 (indirect_refs_may_alias_p): Likewise.
22592
22593 2019-07-02 Jan Hubicka <jh@suse.cz>
22594
22595 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22596 to clobber of return value.
22597
22598 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22599
22600 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22601 for is_neon_type instructions that have not already been categorized.
22602
22603 2019-07-02 Richard Biener <rguenther@suse.de>
22604
22605 PR tree-optimization/58483
22606 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22607 for MEM_REF base hashing.
22608 (equal_mem_array_ref_p): Likewise for base comparison.
22609
22610 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22611
22612 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22613 parameterized name.
22614 (signbit<mode>2): Use that name. Simplify.
22615
22616 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22617
22618 PR middle-end/66726
22619 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22620 Tune heuristic from PR71016 to allow MIN / MAX.
22621
22622 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22623
22624 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22625 parameterized name.
22626 (abs<mode>2): Use that name. Simplify.
22627
22628 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22629
22630 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22631 parameterized name.
22632 (neg<mode>2): Use that name. Simplify.
22633
22634 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22635
22636 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22637 name.
22638 (abs<mode>2): Use that name. Simplify.
22639
22640 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22641
22642 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22643 name.
22644 (neg<mode>2): Use that name. Simplify.
22645
22646 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22647
22648 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22649 ("enabled" attribute): Handle sse_noavx isa attribute.
22650 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22651 Use TARGET_SSE && SSE_REGNO_P in split condition.
22652 (*vec_dupv2sf): Ditto.
22653
22654 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22655
22656 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22657 name.
22658 (floatsi<mode>2): Use that name. Simplify.
22659
22660 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22661
22662 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22663 parameterized name.
22664 (extenddf<mode>2_vsx): Make this a parameterized name.
22665 (extenddf<mode>2): Use those names. Simplify.
22666
22667 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22668
22669 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22670 name.
22671 (eh_return): Use that name. Simplify.
22672
22673 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22674
22675 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22676 (doloop_end): Use that name. Simplify.
22677
22678 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22679
22680 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22681 parameterized name.
22682 (indirect_jump): Use that name. Simplify.
22683
22684 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22685
22686 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22687 parameterized name.
22688 (abs<mode>2): Use that name. Simplify.
22689
22690 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22691
22692 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22693 parameterized name.
22694 (fix_trunc<mode>si2): Use that name. Simplify.
22695
22696 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22697
22698 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22699 (allocate_stack): Use that name. Simplify.
22700
22701 2019-07-01 Martin Sebor <msebor@redhat.com>
22702
22703 PR middle-end/90923
22704 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22705 (hash_map::get_or_insert): Same. Reformat comment.
22706 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22707 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22708 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22709 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22710 (hash_table::hash_table (const hash_table&)): Use copy ctor
22711 instead of assignment to copy elements.
22712
22713 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22714 John David Anglin <danglin@gcc.gnu.org>
22715
22716 PR target/90963
22717 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22718 using saved frame pointer.
22719
22720 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22721
22722 PR middle-end/64242
22723 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22724 Add frame clobber and schedule blockage.
22725
22726 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22727
22728 * doc/invoke.texi (Link Options): Further editorial changes to
22729 -flinker-output docs.
22730
22731 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22732
22733 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22734 Load both operands of a PLUS into registers separately.
22735
22736 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22737
22738 * config/s390/vector.md: Fix shift count operand printing.
22739
22740 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22741
22742 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22743
22744 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22745
22746 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22747 Use recog_data to test for an output operand.
22748
22749 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22750
22751 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22752 exclude any others that are disparaged or that are bound to need
22753 a reload or spill.
22754 (ira_get_dup_out_num): Expand comment.
22755
22756 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22757
22758 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22759 constraint string for each operand/alternative combo. Only handle
22760 '%' at the start of constraint strings, and look for it outside
22761 the main loop.
22762
22763 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22764
22765 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22766 alternative_mask instead of HARD_REG_SET to represent a
22767 bitmask of alternatives.
22768 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22769 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22770
22771 2019-07-01 Martin Liska <mliska@suse.cz>
22772
22773 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22774 use () for a constructor call.
22775 (test_applying_fixits_line_out_of_range): Likewise.
22776 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22777 argument.
22778 (free_page): Likewise.
22779
22780 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22781
22782 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22783 parameter names to match usage (no functional change).
22784 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22785
22786 2019-07-01 Richard Biener <rguenther@suse.de>
22787
22788 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22789 pass parameter.
22790 (pass_fre::execute): Honor it.
22791 * passes.def: Adjust pass_fre invocations to allow iterating,
22792 add non-iterating pass_fre before late threading/dom.
22793
22794 2019-07-01 Richard Biener <rguenther@suse.de>
22795
22796 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22797 TARGET_MEM_REF handling to also handle address-taken ones.
22798
22799 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22800
22801 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22802 hardware attributes): Document avx512vp2intersect.
22803
22804 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22805
22806 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22807 (abs<mode>2): New expander.
22808 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22809 Use CODE_FOR_ssse3_absv8qi2.
22810 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22811 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22812
22813 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22814
22815 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22816 to sse, sse_noavx and avx. Update all uses.
22817
22818 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22819
22820 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22821 (*mmx_<plusminus_insn><mode>3): Ditto.
22822 (*mmx_mulv4hi3"): Ditto.
22823 (*mmx_smulv4hi3_highpart): Ditto.
22824 (*mmx_umulv4hi3_highpart): Ditto.
22825 (*mmx_pmaddwd): Ditto.
22826 (*sse2_umulv1siv1di3): Ditto.
22827 (*mmx_<code>v4hi3): Ditto.
22828 (*mmx_<code>v8qi3): Ditto.
22829 (mmx_ashr<mode>3): Ditto.
22830 ("mmx_<shift_insn><mode>3): Ditto.
22831 (*mmx_eq<mode>3): Ditto.
22832 (mmx_gt<mode>3): Ditto.
22833 (mmx_andnot<mode>3): Ditto.
22834 (*mmx_<code><mode>3): Ditto.
22835 (*mmx_pinsrw): Ditto.
22836 (*mmx_pextrw): Ditto.
22837 (mmx_pshufw_1): Ditto.
22838 (*mmx_uavgv8qi3): Ditto.
22839 (*mmx_uavgv4hi3): Ditto.
22840 ("mmx_psadbw): Ditto.
22841 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22842 (sse_cvttps2pi): Ditto.
22843 (ssse3_pmaddubsw): Ditto.
22844 (*ssse3_pmulhrswv4hi3): Ditto.
22845 (ssse3_psign<mode>3): Ditto.
22846
22847 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22848
22849 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22850 adjustment for bit-fields to all aggregate types.
22851
22852 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22853
22854 * config/rs6000/predicates.md (pcrel_address): Use
22855 SYMBOL_REF_LOCAL_P to determine if a label is local.
22856 (pcrel_external_address): New predicate.
22857 (non_prefixed_mem_operand): Delete, predicate not used.
22858 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22859 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22860 addressing.
22861 (SYMBOL_REF_PCREL_P): Likewise.
22862
22863 PR target/91009
22864 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22865 alternative.
22866 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22867 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22868 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22869
22870 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22871
22872 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22873 override on extra_headers.
22874
22875 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22876
22877 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22878 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22879 from warning.
22880 (darwin_driver_init): Likewise.
22881
22882 2019-06-28 Jan Beulich <jbeulich@suse.com>
22883
22884 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22885 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22886 Eliminate redundant alternative.
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>): Drop % constraint modifier.
22892 Use vector_operand.
22893
22894 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22895
22896 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22897 having a lower cost regardless of the speed option.
22898
22899 2019-06-28 Jan Beulich <jbeulich@suse.com>
22900
22901 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22902 vector_operand plus, on both alternatives, "Bm" constraint.
22903
22904 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22905
22906 * config/arm/arm.md: Remove redundant constraints from
22907 define_expand but leave reload_inm and reload_outm patterns
22908 untouched since they need special constraints to work.
22909 * config/arm/arm-fixed.md: Remove redundant constraints from
22910 define_expand.
22911 * config/arm/iwmmxt.md: Likewise.
22912 * config/arm/neon.md: Likewise.
22913 * config/arm/sync.md: Likewise.
22914 * config/arm/thumb1.md: Likewise.
22915 * config/arm/vec-common.md: Likewise.
22916
22917 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22918
22919 * doc/install.texi: Document --disable-tm-clone-registry.
22920
22921 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22922
22923 PR c++/91024
22924 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22925 statements.
22926
22927 PR tree-optimization/91010
22928 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22929 return true. Otherwise, don't call operand_equal_p if offset1 or
22930 offset2 is NULL and just return false.
22931
22932 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22933
22934 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22935 user-specified float mode choice for kernel mode code.
22936
22937 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22938
22939 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22940 spec.
22941
22942 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22943
22944 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22945 use longcall for 64b code.
22946
22947 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22948
22949 * builtins.c (get_memory_rtx): Fix comment.
22950 * optabs.def (movmem_optab): Change to cpymem_optab.
22951 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22952 (emit_block_move_hints): Change movmem to cpymem.
22953 * defaults.h: Change movmem to cpymem.
22954 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22955 (default_use_by_pieces_infrastructure_p): Ditto.
22956 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22957 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22958 to cpymem.
22959 * config/aarch64/aarch64.h: Change movmem to cpymem.
22960 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22961 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22962 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22963 movmem to cpymem.
22964 * config/arc/arc-protos.h: Change movmem to cpymem.
22965 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22966 * config/arc/arc.h: Change movmem to cpymem in comment.
22967 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22968 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22969 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22970 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22971 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22972 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22973 * config/avr/avr-protos.h: Change movmem to cpymem.
22974 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22975 avr_out_movmem): Change movmem to cpymem.
22976 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22977 Change movmem to cpymem.
22978 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22979 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22980 Change movmem to cpymem.
22981 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22982 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22983 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22984 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22985 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22986 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22987 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22988 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22989 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22990 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22991 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22992 expand_small_cpymem_or_setmem,
22993 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22994 expand_set_or_cpymem_constant_prologue,
22995 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22996 * config/i386/i386-protos.h: Change movmem to cpymem.
22997 * config/i386/i386.h: Change movmem to cpymem in comment.
22998 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22999 (setmem<mode>): Change expansion function name.
23000 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23001 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23002 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23003 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23004 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23005 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23006 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23007 to cpymem.
23008 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23009 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23010 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23011 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23012 Change movmem to cpymem.
23013 * config/mips/mips.h: Change movmem to cpymem.
23014 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23015 * config/nds32/nds32-memory-manipulation.c
23016 (nds32_expand_movmemsi_loop_unknown_size,
23017 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23018 nds32_expand_movmemsi_unroll,
23019 nds32_expand_movmemsi): Change movmem to cpymem.
23020 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23021 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23022 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23023 (pa_adjust_insn_length): Change call to compute_movmem_length.
23024 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23025 movmemdi, movmemdi_prereload,
23026 movmemdi_postreload): Change movmem to cpymem.
23027 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23028 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23029 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23030 * config/riscv/riscv.h: Change movmem to cpymem.
23031 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23032 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23033 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23034 movmem to cpymem.
23035 * config/s390/s390-protos.h: Change movmem to cpymem.
23036 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23037 s390_expand_insv): Change movmem to cpymem.
23038 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23039 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23040 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23041 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23042 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23043 for nonexistent function.
23044 * config/vax/vax.h: Change movmem to cpymem in comment.
23045 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23046 * config/visium/visium.h: Change movmem to cpymem in comment.
23047 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23048 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23049 * doc/md.texi: Change movmem to cpymem and update description to match.
23050 * doc/rtl.texi: Change movmem to cpymem.
23051 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23052 * doc/tm.texi: Regenerate.
23053
23054 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23055
23056 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23057 -fvariable-expansion-in-unroller by default.
23058 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23059 default for Power.
23060
23061 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23062
23063 Revert
23064 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23065 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23066
23067 * config.gcc(rs6000-*-*): Define target_gtfiles.
23068
23069 2019-06-27 Jan Hubicka <jh@suse.cz>
23070
23071 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23072 (add_type_duplicate): When odr hash is not allocated, to nothing.
23073 (odr_based_tbaa_p): New function.
23074 (set_type_canonical_for_odr_type): New function.
23075 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23076 set_type_canonical_for_odr_type): New.
23077 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23078 ODR based TBAA are not equivalent to non-ODR types.
23079
23080 2019-06-27 Martin Liska <mliska@suse.cz>
23081
23082 PR tree-optimization/90974
23083 PR rtl-optimization/90975
23084 PR rtl-optimization/90976
23085 PR target/91016
23086 PR tree-optimization/91017
23087 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23088 unused tmp.
23089 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23090 initial commit of IRA.
23091 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23092 of op0 and op1.
23093 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23094 Remove unused mode1.
23095 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23096 to new_stmt_info.
23097
23098 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23099
23100 PR target/90991
23101 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23102 instead of register_operand for operands[1], add m to its constraints
23103 if operands[2] uses "C" constraint. Ensure in condition that if
23104 operands[2] is not 0, then operands[1] is not a MEM. For last two
23105 alternatives, use unaligned loads instead of aligned if operands[1] is
23106 misaligned_operand.
23107
23108 2019-06-27 Martin Liska <mliska@suse.cz>
23109
23110 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23111 dead assignments.
23112 * bt-load.c (move_btr_def): Likewise.
23113 * builtins.c (expand_builtin_apply_args_1): Likewise.
23114 (expand_builtin_apply): Likewise.
23115 * cfgexpand.c (expand_asm_stmt): Likewise.
23116 (construct_init_block): Likewise.
23117 * cfghooks.c (verify_flow_info): Likewise.
23118 * cfgloopmanip.c (remove_path): Likewise.
23119 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23120 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23121 * combine.c (simplify_if_then_else): Likewise.
23122 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23123 (choose_basereg): Likewise.
23124 (ix86_expand_prologue): Likewise.
23125 (ix86_preferred_output_reload_class): Likewise.
23126 * cselib.c (cselib_record_sets): Likewise.
23127 * df-scan.c (df_scan_alloc): Likewise.
23128 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23129 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23130 * emit-rtl.c (try_split): Likewise.
23131 * graphite-scop-detection.c (assign_parameter_index_in_region):
23132 Likewise.
23133 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23134 * ira-color.c (setup_profitable_hard_regs): Likewise.
23135 * ira.c (rtx_moveable_p): Likewise.
23136 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23137 * read-rtl.c (read_subst_mapping): Likewise.
23138 * regrename.c (scan_rtx): Likewise.
23139 * reorg.c (fill_slots_from_thread): Likewise.
23140 * tree-inline.c (tree_function_versioning): Likewise.
23141 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23142 * tree-ssa-sink.c (statement_sink_location): Likewise.
23143 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23144 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23145 (vect_create_epilog_for_reduction): Likewise.
23146 * tree.c (build_nonstandard_integer_type): Likewise.
23147
23148 2019-06-27 Richard Biener <rguenther@suse.de>
23149
23150 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23151
23152 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23153
23154 PR tree-optimization/89772
23155 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23156 out-of-bound accesses checking.
23157
23158 2019-06-27 Martin Liska <mliska@suse.cz>
23159
23160 PR tree-optimization/91014
23161 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23162 when LHS is NULL_TREE.
23163
23164 2019-06-27 Martin Liska <mliska@suse.cz>
23165
23166 * symbol-summary.h (traverse): Pass
23167 argument a to the call of callback.
23168 (gt_ggc_mx): Mark arguments as unused.
23169 (gt_pch_nx): Likewise.
23170
23171 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23172
23173 PR target/62147
23174 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23175 finiteness.
23176
23177 2019-06-26 Jeff Law <law@redhat.com>
23178
23179 PR tree-optimization/90883
23180 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23181 (delete_dead_or_redundant_assignment): Likewise.
23182
23183 PR tree-optimization/90883
23184 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23185 * tree-ssa-dse.c: Update various comments to distinguish between
23186 dead and redundant stores.
23187 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23188 (dse_optimize_redundant_stores): New function.
23189 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23190 Distinguish between dead and redundant calls in dump output. All
23191 callers updated.
23192 (delete_dead_or_redundant_assignment): Similarly for assignments.
23193 (dse_optimize_stmt): Handle _CHK variants. For statements which
23194 store 0 into multiple memory locations, try to prove a subsequent
23195 store is redundant.
23196
23197 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23198
23199 PR target/89021
23200 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23201 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23202
23203 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23204
23205 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23206 (branch_islands): New extern.
23207 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23208 * config/rs6000/rs6000.c: .. here.
23209
23210 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23211
23212 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23213 (powerpc*-*-*) ... to here.
23214
23215 2019-06-26 Jeff Law <law@redhat.com>
23216
23217 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23218 memcpy, memmove and memset builtins.
23219 (maybe_trim_memstar_call): Likewise.
23220
23221 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23222
23223 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23224
23225 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23226
23227 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23228
23229 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23230
23231 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23232 declaration.
23233 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23234 "static".
23235 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23236 declaration.
23237
23238 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23239
23240 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23241
23242 2019-06-26 Richard Biener <rguenther@suse.de>
23243
23244 PR ipa/90982
23245 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23246
23247 2019-06-26 Richard Biener <rguenther@suse.de>
23248
23249 * lto-streamer.h (lto_bitmap_alloc): Remove.
23250 (lto_bitmap_free): Likewise.
23251 * lto-streamer.c (lto_bitmap_alloc): Remove.
23252 (lto_bitmap_free): Likewise.
23253 (lto_obstack): Likewise.
23254 (lto_obstack_initialized): Likewise.
23255 * lto-streamer-out.c (lto_output): Use own obstack for local
23256 bitmap, free it consistently.
23257
23258 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23259
23260 PR target/90991
23261 * config/i386/sse.md
23262 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23263 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23264 insns if operands[2] is misaligned_operand.
23265
23266 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23267
23268 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23269 TARGET_POWERPC64.
23270 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23271 to GPR.
23272
23273 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23274
23275 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23276
23277 2019-06-26 Martin Liska <mliska@suse.cz>
23278
23279 PR tree-optimization/90973
23280 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23281 epilogue_cost_vec instead of prologue_cost_vec for
23282 a epilogue cost.
23283
23284 2019-06-26 Martin Liska <mliska@suse.cz>
23285
23286 * bb-reorder.c (connect_better_edge_p): Add missing else
23287 statement in the middle of if-else statements.
23288
23289 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23290 H.J. Lu <hongjiu.lu@intel.com>
23291 Olga Makhotina <olga.makhotina@intel.com>
23292
23293 * common/config/i386/i386-common.c
23294 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23295 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23296 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23297 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23298 (ix86_handle_option): Handle -mavx512vp2intersect.
23299 * config/i386/avx512vp2intersectintrin.h: New.
23300 * config/i386/avx512vp2intersectvlintrin.h: New.
23301 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23302 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23303 AVX512VP2INTERSECT.
23304 * config/i386/i386-builtin-types.def: Add new types.
23305 * config/i386/i386-builtin.def: Add new builtins.
23306 * config/i386/i386-builtins.c: (enum processor_features): Add
23307 F_AVX512VP2INTERSECT.
23308 (static const _isa_names_table isa_names_table): Ditto.
23309 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23310 __AVX512VP2INTERSECT__.
23311 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23312 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23313 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23314 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23315 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23316 * config/i386/i386-options.c (ix86_target_string): Add
23317 -mavx512vp2intersect.
23318 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23319 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23320 P2HImode and P2QImode.
23321 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23322 number for P2QImode and P2HImode.
23323 (ix86_regmode_natural_size): New function.
23324 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23325 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23326 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23327 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23328 * config/i386/i386.opt: Add -mavx512vp2intersect.
23329 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23330 avx512vp2intersectvlintrin.h.
23331 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23332 (define_mode_iterator VI48_AVX512VP2VL): New.
23333 (avx512vp2intersect_2intersect<mode>,
23334 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23335 * config.gcc: Add avx512vp2intersectvlintrin.h and
23336 avx512vp2intersectintrin.h to extra_headers.
23337 * doc/invoke.texi: Document -mavx512vp2intersect.
23338
23339 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23340
23341 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23342
23343 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23344
23345 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23346 savres_routine_syms, savres_routine_name, morestack_ref,
23347 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23348 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23349 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23350 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23351 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23352 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23353 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23354 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23355 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23356 get_stack_clash_protection_probe_interval,
23357 get_stack_clash_protection_guard_size,
23358 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23359 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23360 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23361 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23362 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23363 gen_frame_mem_offset, rs6000_savres_routine_name,
23364 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23365 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23366 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23367 rs6000_global_entry_point_prologue_needed_p,
23368 rs6000_get_separate_components, rs6000_components_for_bb,
23369 rs6000_disqualify_components, rs6000_emit_prologue_components,
23370 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23371 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23372 rs6000_output_savres_externs, rs6000_output_function_prologue,
23373 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23374 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23375 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23376 rs6000_output_function_epilogue, gen_add3_const,
23377 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23378 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23379 to rs6000-logue.c.
23380 (machine_function): Moved to rs6000.h.
23381 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23382 rs6000-internal.h.
23383 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23384 savres_routine_syms, savres_routine_name, morestack_ref,
23385 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23386 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23387 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23388 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23389 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23390 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23391 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23392 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23393 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23394 get_stack_clash_protection_probe_interval,
23395 get_stack_clash_protection_guard_size,
23396 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23397 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23398 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23399 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23400 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23401 gen_frame_mem_offset, rs6000_savres_routine_name,
23402 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23403 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23404 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23405 rs6000_global_entry_point_prologue_needed_p,
23406 rs6000_get_separate_components, rs6000_components_for_bb,
23407 rs6000_disqualify_components, rs6000_emit_prologue_components,
23408 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23409 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23410 rs6000_output_savres_externs, rs6000_output_function_prologue,
23411 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23412 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23413 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23414 rs6000_output_function_epilogue, gen_add3_const,
23415 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23416 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23417 to here from rs6000.c.
23418 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23419 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23420 quad_address_offset_p) Moved to here from rs6000.c.
23421 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23422 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23423 collector.
23424
23425 2019-06-25 Martin Liska <mliska@suse.cz>
23426
23427 * hash-table.c (hashtab_chk_error): Move here from ...
23428 * hash-table.h (hashtab_chk_error): ... here.
23429
23430 2019-06-25 Martin Liska <mliska@suse.cz>
23431
23432 PR tree-optimization/90978
23433 * df-scan.c (df_update_entry_block_defs): Remove dead else
23434 branch.
23435 (df_update_exit_block_uses): Likewise.
23436
23437 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23438 Andrew Stubbs <ams@codesourcery.com>
23439
23440 * config.gcc (thread_file): Set to gcn for AMD GCN.
23441 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23442 (TARGET_EMUTLS_VAR_INIT): New hook.
23443
23444 2019-06-25 Martin Jambor <mjambor@suse.cz>
23445
23446 PR ipa/90939
23447 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23448
23449 2019-06-25 Richard Biener <rguenther@suse.de>
23450
23451 PR tree-optimization/90930
23452 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23453 into parallel form in the last pass instance.
23454
23455 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23456
23457 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23458 (arc_legitimize_pic_address): Simplify and cleanup the function.
23459 (SYMBOLIC_CONST): Remove.
23460 (prepare_pic_move): Likewise.
23461 (prepare_move_operands): Handle complex mov cases here.
23462 (arc_legitimize_address_0): Remove call to
23463 arc_legitimize_pic_address.
23464 (arc_legitimize_address): Remove call to
23465 arc_legitimize_tls_address.
23466 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23467 (movhi_insn): Likewise.
23468
23469 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23470
23471 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23472 PTRDIFF_TYPE.
23473 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23474 format of "__intN" types for UINTMAX_TYPE.
23475 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23476 format of "__intN" types for SIZETYPE.
23477 * tree.c (build_common_tree_nodes): Accept "__intN__"
23478 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23479 * doc/invoke.texi: Document that __intN__ disables pedantic
23480 warnings.
23481
23482 2019-06-25 Jan Hubicka <jh@suse.cz>
23483
23484 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23485 base2_alias_set is non-zero before doing TBAA based disambiguation.
23486
23487 2019-06-25 Martin Liska <mliska@suse.cz>
23488
23489 PR tree-optimization/90973
23490 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23491 of prologue and epilogue.
23492
23493 2019-06-24 Jan Hubicka <jh@suse.cz>
23494
23495 * ipa-utils.h (type_with_linkage_p): Verify that type is
23496 CXX_ODR_P.
23497 (odr_type_p): Remove extra return.
23498 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23499 hash STRING_FLAG only for arrays and integers.
23500 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23501 Update analogously.
23502 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23503 Likewise.
23504 * print-tree.c (print_node): Print cxx-odr-p
23505 and string-flag.
23506 * tree.c (need_assembler_name_p): Also check that type
23507 is CXX_ODR_TYPE_P
23508 (verify_type_variant): Update verification of SRING_FLAG;
23509 also check CXX_ODR_P.
23510 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23511 (TYPE_STRING_FLAG): Use it.
23512 (TYPE_CXX_ODR_P): New macro.
23513 * dwarf2out.c (gen_array_type_die): First check that type
23514 is an array and then test string flag.
23515
23516 2019-06-24 Richard Biener <rguenther@suse.de>
23517
23518 PR tree-optimization/90972
23519 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23520 in common code, dealing with STRING_CST properly.
23521
23522 2019-06-24 Richard Biener <rguenther@suse.de>
23523
23524 PR tree-optimization/90930
23525 PR tree-optimization/90316
23526 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23527 decrement of limit.
23528
23529 2019-06-24 Martin Sebor <msebor@redhat.com>
23530
23531 * tree-pretty-print.h: Remove unnecessary punctuation characters
23532 from a diagnostic.
23533 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23534
23535 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23536
23537 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23538 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23539 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23540
23541 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23542
23543 * config/rs6000/darwin.h: Handle GCC target pragma.
23544
23545 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23546
23547 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23548
23549 2019-06-22 Jeff Law <law@redhat.com>
23550
23551 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23552
23553 2019-06-22 Jan Hubicka <jh@suse.cz>
23554
23555 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23556 give up on bitfields; continue searching for different refs
23557 appearing later.
23558
23559 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23560
23561 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23562 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23563 containing the offset as possible simd lane access. Look through
23564 widening conversion. Move the
23565 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23566
23567 2019-06-21 Richard Biener <rguenther@suse.de>
23568
23569 PR tree-optimization/90930
23570 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23571 flag on new stmts to avoid re-processing them.
23572
23573 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23574
23575 PR c++/90875 - added -Wswitch-outside-range option
23576 * doc/invoke.texi (Wswitch-outside-range): Document.
23577
23578 2019-06-21 Jeff Law <law@redhat.com>
23579
23580 PR tree-optimization/90949
23581 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23582 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23583
23584 2019-06-21 Richard Biener <rguenther@suse.de>
23585
23586 PR debug/90914
23587 * dwarf2out.c (prune_unused_types_walk): Always consider
23588 function-local extern declarations as used.
23589
23590 2019-06-21 Richard Biener <rguenther@suse.de>
23591
23592 PR tree-optimization/90913
23593 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23594 the scalar variant of if-conversion versioning.
23595
23596 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23597
23598 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23599 create another "omp scan inscan exclusive" array if
23600 !ctx->scan_inclusive.
23601 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23602 (lower_omp_scan): Likewise.
23603 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23604 2-bit bitfield for simd_lane_access_p member.
23605 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23606 aux == (void *)-4 as simd lane access.
23607 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23608 comment with permutations to show the canonical permutation order.
23609 (vectorizable_scan_store): Handle exclusive scan.
23610 (vectorizable_store): Call vectorizable_scan_store even for
23611 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23612
23613 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23614 "omp simd array" arrays with one byte elements.
23615
23616 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23617
23618 * config/alpha/alpha.md (@unaligned_store<mode>):
23619 Rename from unaligned_store<mode>.
23620 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23621 * config/alpha/sync.md (@load_locked_<mode>): Rename
23622 from load_locked_<mode>.
23623 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23624 (@atomic_compare_and_swap<mode>_1): Rename
23625 from atomic_compare_and_swap<mode>_1.
23626 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23627 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23628 Use gen_reload_in_aligned and gen_unaligned_store.
23629 (emit_load_locked): Remove.
23630 (emit_store_conditional): Ditto.
23631 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23632 (alpha_split_compare_and_swap): Ditto.
23633 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23634 (alpha_split_compare_and_swap_12): Use gen_load_locked
23635 and gen_store_conditional.
23636 (alpha_split_atomic_exchange): Ditto.
23637 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23638 (alpha_split_atomic_exchange_12): Use gen_load_locked
23639 and gen_store_conditional.
23640
23641 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23642
23643 * config/aarch64/aarch64-errata.h: New file.
23644 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23645 (CA53_ERR_843419_SPEC): Delete.
23646 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23647 * config/aarch64/aarch64-linux.h: Likewise.
23648 * config/aarch64/aarch64-netbsd.h: Likewise.
23649 * config/aarch64/aarch64-freebsd.h: Likewise.
23650
23651 2019-06-20 Marek Polacek <polacek@redhat.com>
23652
23653 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23654
23655 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23656
23657 * config/rs6000/rs6000.md (isa attribute): Add support for
23658 for a future processor.
23659
23660 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23661
23662 PR target/54855
23663 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23664 standard scalar operation pattern for V2DF.
23665 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23666 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23667 (*ieee_<ieee_maxmin><mode>3): Likewise.
23668 (vec_setv2df_0): Likewise.
23669
23670 2019-06-20 Jan Hubicka <jh@suse.cz>
23671
23672 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23673 parameter; it has no use in gimple memory model.
23674 (indirect_ref_may_alias_decl_p): Update.
23675
23676 2019-06-20 Martin Liska <mliska@suse.cz>
23677
23678 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23679 to 10.
23680
23681 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23682
23683 * tree-vect-stmts.c (enum scan_store_kind): New type.
23684 (scan_store_can_perm_p): Change last argument from int * to
23685 vec<enum scan_store_kind> *, record precisely which permutations
23686 need whole vector left shift or that plus VEC_COND_EXPR.
23687 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23688 and additional VEC_COND_EXPR only for those iterations that need it.
23689
23690 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23691
23692 * config.gcc: Fix ARM --with-fpu checking and error message.
23693
23694 2019-06-19 Marek Polacek <polacek@redhat.com>
23695
23696 PR c++/60364 - noreturn after first decl not diagnosed.
23697 * attribs.c (get_attribute_namespace): No longer static.
23698 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23699 attributes.
23700 (attr_noreturn_exclusions): Make it extern.
23701 * attribs.h (get_attribute_namespace): Declare.
23702 * tree-inline.c (function_attribute_inlinable_p): Use
23703 get_attribute_name.
23704
23705 2019-06-19 Martin Sebor <msebor@redhat.com>
23706
23707 PR tree-optimization/90626
23708 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23709
23710 PR tree-optimization/90626
23711 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23712 (handle_builtin_string_cmp): Call it.
23713
23714 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23715
23716 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23717 and DARWIN_NOPIE_SPEC.
23718 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23719 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23720 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23721 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23722 (DARWIN_EXPORT_DYNAMIC): Delete.
23723 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23724 and pie options processing to darwin.h.
23725 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23726
23727 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23728
23729 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23730 in computing the number of options to be moved.
23731
23732 2019-06-19 Maya Rashish <coypu@sdf.org>
23733
23734 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23735 (CLEAR_INSN_CACHE) Use it.
23736
23737 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23738
23739 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23740
23741 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23742
23743 PR middle-end/84521
23744 * builtins.c (expand_builtin_setjmp_setup): Save
23745 hard_frame_pointer_rtx.
23746 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23747 restore fp.
23748 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23749 non-local goto.
23750 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23751 elimination code.
23752 (remove_reg_equal_offset_note): Remove unused function.
23753 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23754 code.
23755 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23756 (arc_builtin_setjmp_frame_value): Remove function.
23757 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23758 (avr_builtin_setjmp_frame_value): Remove function.
23759 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23760 (ix86_builtin_setjmp_frame_value): Remove function.
23761 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23762 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23763 (sparc_builtin_setjmp_frame_value): Remove function.
23764 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23765 (vax_builtin_setjmp_frame_value): Remove function.
23766 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23767 pointer if has_nonlocal_label.
23768
23769 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23770
23771 * doc/md.texi: Document vec_shl_<mode> pattern.
23772 * optabs.def (vec_shl_optab): New optab.
23773 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23774 argument, if == vec_shl_optab, check for left whole vector shift
23775 pattern rather than right shift.
23776 (expand_vec_perm_const): Add vec_shl_optab support.
23777 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23778 in the comment.
23779 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23780 can be handled by vec_shl_optab.
23781 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23782 (check_scan_store): Use it.
23783 (vectorizable_scan_store): If target can't do normal permutations,
23784 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23785 after it.
23786 * config/i386/sse.md (vec_shl_<mode>): New expander.
23787
23788 * omp-low.c (lower_rec_input_clauses): Handle references properly
23789 in inscan clauses.
23790 (lower_omp_scan): Likewise.
23791
23792 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23793
23794 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23795 mem_mode is BLKmode.
23796
23797 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23798
23799 PR target/90922
23800 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23801 pointer adjustment for the case of no callee-saved registers and
23802 stack frame bigger than 128 bytes.
23803
23804 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23805
23806 PR middle-end/90862
23807 * omp-low.c (check_omp_nesting_restrictions): Handle
23808 GF_OMP_TARGET_KIND_OACC_DECLARE.
23809
23810 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23811
23812 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23813 (@add<mode>3_carry): Rename from add<mode>3_carry.
23814 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23815 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23816 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23817 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23818 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23819 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23820 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23821 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23822 (cmpstrnsi): Use gen_cmp_1.
23823 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23824 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23825 (@umonitor_<mode>): Rename from umonitor_<mode>.
23826 * config/i386/i386-expand.c (ix86_expand_copysign):
23827 Use gen_copysign3_const and gen_copysign3_var.
23828 (ix86_expand_xorsign): Use gen_xorsign3_1.
23829 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23830 gen_sub3_carry_ccgz and gen_cmp1.
23831 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23832 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23833 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23834 (ix86_split_lshr): Ditto.
23835 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23836
23837 2019-06-18 Jason Merrill <jason@redhat.com>
23838
23839 * tree.c (build_constructor): Add MEM_STAT_DECL.
23840
23841 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23842
23843 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23844 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23845 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23846 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23847 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23848 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23849 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23850 Use CC_NZC instead of CC.
23851 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23852 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23853 (aarch64_print_operand): Handle E_CC_NZCmode.
23854 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23855 of gen_set_clobber_cc.
23856
23857 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23858
23859 * config/aarch64/aarch64-sve.md: Tabify file.
23860
23861 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23862
23863 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23864 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23865 * config/aarch64/aarch64-sve.md: Use it.
23866
23867 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23868
23869 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23870 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23871 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23872 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23873 (aarch64_expand_sve_vec_cmp_int): Use it.
23874 (aarch64_expand_sve_vec_cmp_float): Likewise.
23875 * config/aarch64/aarch64-sve.md: Likewise throughout.
23876
23877 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23878 Kugan Vivekanandarajah <kuganv@linaro.org>
23879
23880 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23881 (*cond_<optab><mode>_z): Fold into...
23882 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23883 operand 4 can be tied to operand 0 (either inherently or via RA).
23884
23885 2019-06-18 Richard Biener <rguenther@suse.de>
23886
23887 PR debug/90900
23888 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23889 as if optimized away.
23890
23891 2019-06-18 Tom de Vries <tdevries@suse.de>
23892
23893 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23894 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23895 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23896 Rename to ...
23897 (define_insn "@set_softstack_<mode>"): ... this.
23898 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23899 (define_insn "@omp_simt_enter_<mode>"): ... this.
23900 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23901 (define_insn "@omp_simt_exit_<mode>"): ... this.
23902
23903 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23904
23905 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23906 vf parameter. Restore the previous iv step of nscalars_step,
23907 but give it iv_type rather than compare_type. Tweak code order
23908 to match the comments.
23909 (vect_set_loop_condition_masked): Update accordingly.
23910 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23911 for iv_precision. Tweak comment formatting.
23912
23913 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23914
23915 * config/darwin.c: Strip trailing whitespace.
23916
23917 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23918
23919 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23920 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23921
23922 2019-06-18 Martin Jambor <mjambor@suse.cz>
23923
23924 PR ipa/90889
23925 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23926 caller does not have flag_ipa_cp set.
23927
23928 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23929
23930 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23931 from "*fold_left_plus_<mode>", updated operands order.
23932 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23933 * internal-fn.c (mask_fold_left_direct): New define.
23934 (expand_mask_fold_left_optab_fn): Likewise.
23935 (direct_mask_fold_left_optab_supported_p): Likewise.
23936 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23937 * optabs.def (mask_fold_left_plus_optab): New optab.
23938 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23939 masked internal_fn for a reduction ifn.
23940 (vectorize_fold_left_reduction): Add support for masking reductions.
23941
23942 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23943
23944 PR middle-end/80791
23945 * target.def (predict_doloop_p): New hook.
23946 * targhooks.h (default_predict_doloop_p): New declaration.
23947 * targhooks.c (default_predict_doloop_p): New function.
23948 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23949 * doc/tm.texi: Regenerate.
23950 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23951 (TARGET_PREDICT_DOLOOP_P): New macro.
23952 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23953
23954 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23955
23956 * omp-low.c (struct omp_context): Add scan_inclusive field.
23957 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23958 if inclusive scan.
23959 (struct omplow_simd_context): Add lastlane member.
23960 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23961 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23962 1 or 2 argument.
23963 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23964 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23965 (lower_omp_scan): New function.
23966 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23967 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23968 check 3rd argument if present rather than 2nd.
23969 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23970 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23971 2-bit bitfield.
23972 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23973 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23974 than 2nd.
23975 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23976 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23977 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23978 init.
23979 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23980 IFN_GOMP_SIMD_LANE argument.
23981 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23982 encoded ->aux value.
23983 * tree-vect-stmts.c: Include attribs.h.
23984 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23985 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23986 functions.
23987 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23988 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23989
23990 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23991
23992 PR target/62055
23993 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23994 (*nabs<mode>2_1): Ditto.
23995 (nabs sse-reg splitter): New splitter.
23996 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23997
23998 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23999
24000 PR bootstrap/90873.
24001 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24002 TMR index check.
24003
24004 2019-06-17 Tom de Vries <tdevries@suse.de>
24005
24006 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24007 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24008 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24009 ...
24010 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24011 match_operand 0.
24012 (define_insn "omp_simt_enter_insn"): Rename to ...
24013 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24014 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24015 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24016 gen_omp_simt_enter_si.
24017 (define_expand "omp_simt_exit"): New.
24018 (define_insn "omp_simt_exit"): Rename to ...
24019 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24020 match_operand 0.
24021
24022 2019-06-17 Matthew Green <mrg@eterna.com.au>
24023 Maya Rashish <coypu@sdf.org>
24024
24025 * config.gcc (aarch64*-*-netbsd*): New target.
24026 * config/aarch64/aarch64-netbsd.h: New file.
24027 * config/aarch64/t-aarch64-netbsd: Likewise.
24028
24029 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24030
24031 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24032 the access path from base to first VIEW_CONVERT_EXPR or
24033 BIT_FIELD_REF.
24034
24035 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24036
24037 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24038 access path on BIT_FIELD_REFs.
24039
24040 2019-06-17 Martin Liska <mliska@suse.cz>
24041
24042 PR ipa/90874
24043 * ipa-utils.h (odr_type_p): Remove dead code.
24044
24045 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24046
24047 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24048 alternative Solaris 11.4 format.
24049 * configure: Regenerate.
24050
24051 2019-06-17 Tom de Vries <tdevries@suse.de>
24052
24053 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24054 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24055 match_operand 0.
24056 (define_insn "call_value_insn"): Rename to ...
24057 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24058 match_operand 0.
24059 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24060 DI.
24061
24062 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24063
24064 PR middle-end/64242
24065 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24066 frame clobbers and schedule block.
24067 (builtin_longjmp): Likewise.
24068
24069 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24070
24071 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24072 describe how to perform MSPABI compliant 64-bit shift.
24073 * config/msp430/msp430.md (ashldi3): New define_expand.
24074 (ashrdi3): New define_expand.
24075 (lshrdi3): New define_expand.
24076
24077 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24078
24079 * doc/sourcebuild.texi: Document new effective target keyword
24080 longlong64.
24081
24082 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24083
24084 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24085 indirect_refs_may_alias_p): Revert accidental commits.
24086
24087 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24088 at the end of structures.
24089
24090 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24091
24092 * config/darwin.c (machopic_indirect_call_target): Use renamed
24093 darwin_picsymbol_stubs to decide on output.
24094 (darwin_override_options): Handle darwin_picsymbol_stubs.
24095 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24096 (LD64_VERSION): Revise default.
24097 * config/darwin.opt: (mpic-symbol-stubs): New option.
24098 (darwin_picsymbol_stubs): New variable.
24099 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24100 rename to TARGET_MACHO_PICSYM_STUBS.
24101 * config/i386/i386.c (output_pic_addr_const): Likewise.
24102 * config/i386/i386.h Likewise.
24103 * config/rs6000/darwin.h: Likewise.
24104 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24105 darwin_picsymbol_stubs.
24106
24107 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24108
24109 * config/darwin.opt (prebind, noprebind, seglinkedit,
24110 noseglinkedit): Add RejectNegative.
24111
24112 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24113
24114 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24115 in my previous patch.
24116
24117 2019-06-16 Tom de Vries <tdevries@suse.de>
24118
24119 PR tree-optimization/89376
24120 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24121
24122 2019-06-15 Maya Rashish <coypu@sdf.org>
24123
24124 * doc/invoke.texi (Spec Files): Update location of the
24125 Fortran spec file.
24126
24127 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24128
24129 * doc/extend.texi (Common Function Attributes): Clarify
24130 no_sanitize. Fix grammar.
24131
24132 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24133
24134 * tree-ssa-alias.c (alias_stats): Add
24135 nonoverlapping_component_refs_p_may_alias,
24136 nonoverlapping_component_refs_p_no_alias,
24137 nonoverlapping_component_refs_of_decl_p_may_alias,
24138 nonoverlapping_component_refs_of_decl_p_no_alias.
24139 (dump_alias_stats): Dump them.
24140 (nonoverlapping_component_refs_of_decl_p): Add stats.
24141 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24142 ARRAY_REF.
24143
24144 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24145
24146 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24147 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24148 only.
24149 (*anddi3_doubleword): Split before reload. Merge with
24150 anddi->zext pre-reload splitter.
24151 (*andndi3_doubleword): Split before reload.
24152 (*<code>di3_doubleword): Ditto.
24153 (*one_cmpldi2_doubleword): Ditto.
24154
24155 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24156
24157 PR middle-end/90779
24158 * gimplify.c: Include omp-offload.h and context.h.
24159 (gimplify_bind_expr): Add "omp declare target" attributes
24160 to static block scope variables inside of target region or target
24161 functions.
24162
24163 2019-06-15 Tom de Vries <tdevries@suse.de>
24164
24165 PR tree-optimization/90009
24166 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24167 Return NULL if bb contains IFN_UNIQUE.
24168
24169 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24170
24171 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24172 (un): New define_mode_attr.
24173 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24174 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24175 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24176 merge into ...
24177 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24178
24179 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24180
24181 * config/darwin.opt: Add RejectNegative where needed, reorder
24182 and add minimal functional descriptions.
24183
24184 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24185
24186 PR rtl-optimization/90765
24187 * calls.c (update_stack_alignment_for_call): New function.
24188 (expand_call): Call update_stack_alignment_for_call when
24189 outgoing parameter is passed in the stack.
24190 (emit_library_call_value_1): Likewise.
24191 * function.c (locate_and_pad_parm): Don't update
24192 stack_alignment_needed and preferred_stack_boundary.
24193
24194 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24195
24196 PR target/90877
24197 * config/i386/i386-features.c
24198 (dimode_scalar_chain::compute_convert_gain): Replace
24199 mmxsse_to_integer with sse_to_integer.
24200 * config/i386/i386.c (ix86_register_move_cost): Verify that
24201 moves between MMX and non-MMX units require secondary memory.
24202 Correct costs of moves between SSE and integer units.
24203 * config/i386/i386.h (processor_costs): Rename cost of moving
24204 SSE register to integer to sse_to_integer. Rename cost of
24205
24206 2019-06-14 Matt Thomas <matt@3am-software.com>
24207 Matthew Green <mrg@eterna.com.au>
24208 Nick Hudson <skrll@netbsd.org>
24209 Maya Rashish <coypu@sdf.org>
24210 Richard Earnshaw <rearnsha@arm.com>
24211
24212 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24213 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24214 * config/arm/netbsd-eabi.h: New file.
24215 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24216 redefining.
24217 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24218 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24219 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24220 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24221
24222 2019-06-14 Richard Biener <rguenther@suse.de>
24223
24224 * tree-loop-distribution.c (classify_partition): Return
24225 whether a reduction appeared in all partitions and do not
24226 stop builtin detection because of this.
24227 (distribute_loop): Sort a non-builtin partition last if
24228 there's a reduction in all partitions and make sure the
24229 partition prevailing as last is not a builtin.
24230
24231 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24232
24233 PR ipa/90401
24234 * ipa-prop.c (add_to_agg_contents_list): New function.
24235 (clobber_by_agg_contents_list_p): Likewise.
24236 (extract_mem_content): Likewise.
24237 (get_place_in_agg_contents_list): Delete.
24238 (determine_known_aggregate_parts): Renamed from
24239 determine_locally_known_aggregate_parts. New parameter
24240 aa_walk_budget_p.
24241
24242 2019-06-13 Martin Sebor <msebor@redhat.com>
24243
24244 PR tree-optimization/90662
24245 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24246 to the same type.
24247
24248 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24249
24250 PR bootstrap/90873
24251 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24252 dbase is not TARGET_MEM_REF.
24253
24254 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24255
24256 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24257 Update all uses.
24258 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24259 Do not generate DImode extends for 32bit targets.
24260 (and->zext post-reload splitter): Use gen_extend_insn
24261 instead of indirect functions.
24262 (anddi->zext pre-reload splitter): New.
24263 (*zext<mode>_doubleword_and): Remove.
24264 (*zext<mode>_doubleword): Ditto.
24265 (*zextsi_doubleword): Dittto.
24266
24267 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24268
24269 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24270 Use gen_sub3_insn instead of indirect function.
24271 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24272 indirect function.
24273 (ix86_adjust_counter): Ditto.
24274
24275 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24276 Lijia He <helijia@linux.ibm.com>
24277
24278 PR tree-optimization/77820
24279 * tree-ssa-threadedge.c
24280 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24281 function.
24282 (thread_across_edge): Add call to
24283 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24284
24285 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24286
24287 * config/darwin-driver.c (validate_macosx_version_min): New.
24288 (darwin_default_min_version): Cleanup and validate supplied version.
24289 (darwin_driver_init): Likewise and push cleaned version into opts.
24290
24291 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24292
24293 PR tree-optimization/90869
24294 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24295 converts in MEM_REF referencing decl rather than view converts
24296 from decl type to MEM_REF type.
24297
24298 2019-06-13 Richard Biener <rguenther@suse.de>
24299
24300 PR tree-optimization/90856
24301 * tree-sra.c (build_ref_for_model): Only use
24302 build_reconstructed_reference when address-spaces are the same.
24303
24304 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24305
24306 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24307 wrap ei variable name in the declaration in ()s.
24308 (nvptx_single): Actually use mode_label variable. Formatting fix.
24309
24310 2019-06-13 Richard Biener <rguenther@suse.de>
24311
24312 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24313 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24314 also return the condition stmt.
24315 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24316 loop we can version and version that, reusing the loop version
24317 created by if-conversion instead of versioning again.
24318
24319 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24320
24321 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24322 may_contain_p.
24323 * tree-vrp (value_range_base::may_contain_p): Call into
24324 value_inside_range.
24325 (value_inside_range): Make private inside value_range_base class.
24326 Take min/max from *this.
24327 (range_includes_p): Remove.
24328 * tree-vrp.h (value_range_base): Add value_inside_range.
24329 (range_includes_p): Remove.
24330 (range_includes_zero_p): Call may_contain_p.
24331 * vr-values.c (compare_range_with_value): Same.
24332
24333 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24334
24335 * doc/extend.texi (ARC Function Attributes): Update info.
24336
24337 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24338
24339 PR tree-optimization/89713
24340 * doc/invoke.texi (-ffinite-loops): Document new option.
24341 * common.opt (-ffinite-loops): New option.
24342 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24343 IFN_GOACC_LOOP calls as necessary.
24344 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24345 is finite.
24346 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24347 IFN_GOACC_LOOP call is not used.
24348 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24349
24350 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24351
24352 PR target/88838
24353 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24354 compare_type is not with Pmode size, we will create an IV with
24355 Pmode size with truncated use (i.e. converted to the correct type).
24356 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24357 (vect_iv_limit_for_full_masking): New. Factored out of
24358 vect_set_loop_condition_masked.
24359 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24360 (vect_iv_limit_for_full_masking): Declare.
24361
24362 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24363
24364 PR target/88834
24365 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24366 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24367 (get_alias_ptr_type_for_ptr_address): Likewise.
24368 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24369 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24370 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24371 allow_reg_index_p.
24372
24373 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24374
24375 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24376
24377 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24378
24379 * common/config/pru/pru-common.c: New file.
24380 * config.gcc: Add PRU target.
24381 * config/pru/alu-zext.md: New file.
24382 * config/pru/constraints.md: New file.
24383 * config/pru/predicates.md: New file.
24384 * config/pru/pru-opts.h: New file.
24385 * config/pru/pru-passes.c: New file.
24386 * config/pru/pru-pragma.c: New file.
24387 * config/pru/pru-protos.h: New file.
24388 * config/pru/pru.c: New file.
24389 * config/pru/pru.h: New file.
24390 * config/pru/pru.md: New file.
24391 * config/pru/pru.opt: New file.
24392 * config/pru/t-pru: New file.
24393 * doc/extend.texi: Document PRU pragmas.
24394 * doc/invoke.texi: Document PRU-specific options.
24395 * doc/md.texi: Document PRU asm constraints.
24396
24397 2019-06-12 Martin Sebor <msebor@redhat.com>
24398
24399 PR middle-end/90676
24400 * tree-pretty-print.c (dump_mem_ref): New function. Include
24401 MEM_REF type in output when different size than operand.
24402 (dump_generic_node): Move code to dump_mem_ref and call it.
24403
24404 2019-06-12 Martin Sebor <msebor@redhat.com>
24405
24406 PR tree-optimization/90662
24407 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24408 to arrays.
24409
24410 2019-06-12 Tom de Vries <tdevries@suse.de>
24411
24412 PR tree-optimization/90009
24413 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24414
24415 2019-06-12 Martin Liska <mliska@suse.cz>
24416
24417 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24418 the created map.
24419 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24420 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24421 Do not sanitize created maps.
24422
24423 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24424
24425 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24426 value_range::singleton_p.
24427 * tree-vrp.c (value_range_constant_singleton): Remove.
24428 * tree-vrp.h (value_range_constant_singleton): Remove.
24429 * vr-values.c (vr_values::singleton): Use
24430 value_range::singleton_p.
24431
24432 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24433
24434 PR target/90811
24435 * cfgexpand.c (align_local_variable): Add really_expand argument,
24436 don't SET_DECL_ALIGN if it is false.
24437 (add_stack_var): Add really_expand argument, pass it through to
24438 align_local_variable.
24439 (expand_one_stack_var_1): Pass true as really_expand to
24440 align_local_variable.
24441 (expand_one_ssa_partition): Pass true as really_expand to
24442 add_stack_var.
24443 (expand_one_var): Pass really_expand through to add_stack_var.
24444
24445 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24446
24447 * config/arm/iterators.md (VABAL): New int iterator.
24448 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24449 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24450 UNSPEC_VABAL_U values.
24451
24452 2019-06-12 Martin Liska <mliska@suse.cz>
24453
24454 * value-prof.c (stream_out_histogram_value): Only first value
24455 can't be negative.
24456
24457 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24458
24459 PR c/90760
24460 * symtab.c (symtab_node::set_section): Allow being called on aliases
24461 as long as they aren't analyzed yet.
24462
24463 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24464
24465 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24466 to `mips_set_text_contents_type' to indicate whether a
24467 non-debug insn follows.
24468
24469 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24470
24471 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24472 enabling -mpcrel by default.
24473 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24474 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24475 that the test against -mcpu=future is done first. Then test if
24476 -mprefixed-addr is on for -mpcrel.
24477 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24478
24479 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24480
24481 PR target/90811
24482 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24483 instead of and.u%d.
24484
24485 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24486
24487 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24488
24489 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24490
24491 PR c++/90449 - add -Winaccessible-base option.
24492 * doc/invoke.texi (Winaccessible-base): Document.
24493
24494 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24495
24496 PR tree-optimization/62041
24497 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24498
24499 2019-06-11 Jason Merrill <jason@redhat.com>
24500
24501 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24502 * tree.c (get_tree_code_name): Likewise.
24503 * print-tree.c (print_node): Only briefly print a node with an
24504 invalid code.
24505
24506 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24507
24508 PR bootstrap/90819
24509 * trans-mem.c (tm_memopt_compute_available): Add assertion
24510 that blocks is not empty. Formatting fix.
24511
24512 2019-06-11 Martin Liska <mliska@suse.cz>
24513
24514 PR c++/87847
24515 * hash-table.h: Extend create_gcc, add one parameter
24516 that is passed into hash_table::hash_table.
24517
24518 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24519
24520 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24521 New prototype.
24522 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24523 Emit clobber also for non-sse operations.
24524 (ix86_split_fp_absneg_operator): New function.
24525 * config/i386/i386.md (SSEMODEF): New mode iterator.
24526 (ssevecmodef): New mode attribute.
24527 (<code>tf2): Use absneg code iterator.
24528 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24529 Add three-operand AVX alternatives.
24530 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24531 Use absneg code iterator and X87MODEF mode iterator.
24532 (absneg fp_reg non-sse splitter): Call absneg code iterator
24533 and X87MODEF mode iterator.
24534 (absneg general_reg non-sse splitter): Use absneg code iterator
24535 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24536 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24537 code iterator. Add three-operand AVX alternative.
24538 (absneg sse_reg splitter): Use absneg code iterator
24539 and SSEMODEF mode iterator. Handle AVX operands.
24540 (absneg fp_reg splitter): Use absneg code iterator
24541 and MODEF mode iterator.
24542 (absneg general_reg splitter): Merge splitters using MODEF mode
24543 iterator. Use absneg code iterator. Call
24544 ix86_split_fp_absneg_operator.
24545 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24546 Do not enable for non-sse modes before reload.
24547 (CSGNMODE): Remove.
24548 (CSGNVMODE): Ditto.
24549 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24550 ssevecmodef mode attribute instaed of CSGNVMODE.
24551 (copysign<mode>3_const): Ditto.
24552 (copysign<mode>3_var): Ditto.
24553 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24554 Use absneg code iterator. Simplify code using std::swap.
24555 * config/i386/predicates.md (absneg_operator): Remove.
24556
24557 2019-06-10 Martin Sebor <msebor@redhat.com>
24558
24559 * gimple-fold.c (get_range_strlen): Update comment that didn't
24560 make it into r267503 or related commits.
24561
24562 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24563
24564 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24565 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24566
24567 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24568
24569 * tree.def (OMP_SCAN): New tree code.
24570 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24571 OMP_CLAUSE_EXCLUSIVE.
24572 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24573 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24574 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24575 OMP_CLAUSE_{IN,EX}CLUSIVE.
24576 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24577 * tree-nested.c (convert_nonlocal_reference_stmt,
24578 convert_local_reference_stmt, convert_gimple_call): Handle
24579 GIMPLE_OMP_SCAN.
24580 * tree-pretty-print.c (dump_omp_clause): Handle
24581 OMP_CLAUSE_{IN,EX}CLUSIVE.
24582 (dump_generic_node): Handle OMP_SCAN.
24583 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24584 * gimple.h (gomp_scan): New type.
24585 (is_a_helper <gomp_scan *>::test,
24586 is_a_helper <const gomp_scan *>::test): New templates.
24587 (gimple_build_omp_scan): Declare.
24588 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24589 gimple_omp_scan_set_clauses): New inline functions.
24590 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24591 * gimple.c (gimple_build_omp_scan): New function.
24592 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24593 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24594 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24595 GIMPLE_OMP_TASKGROUP.
24596 (dump_gimple_omp_scan): New function.
24597 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24598 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24599 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24600 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24601 (is_gimple_stmt): Handle OMP_SCAN.
24602 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24603 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24604 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24605 mentioned in nested #pragma omp scan. Handle
24606 OMP_CLAUSE_{IN,EX}CLUSIVE.
24607 (gimplify_expr): Handle OMP_SCAN.
24608 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24609 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24610 simd constructs.
24611 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24612 GIMPLE_OMP_SCAN.
24613
24614 2019-06-10 Martin Liska <mliska@suse.cz>
24615
24616 * ipa-cp.c (ignore_edge_p): New function.
24617 (build_toporder_info): Use it.
24618 * ipa-inline.c (ignore_edge_p): New function.
24619 (inline_small_functions): Use it.
24620 * ipa-pure-const.c (ignore_edge_for_nothrow):
24621 Verify opt_for_fn for caller and callee.
24622 (ignore_edge_for_pure_const): Likewise.
24623 * ipa-reference.c (ignore_edge_p): Extend to check
24624 for opt_for_fn.
24625 * ipa-utils.c (searchc): Refactor.
24626 * ipa-utils.h: Fix coding style.
24627
24628 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24629
24630 * config/arc/arc.c (arc_rtx_costs): Update costs.
24631
24632 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24633
24634 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24635 (arc_split_ior): Likewise.
24636 (arc_check_mov_const): Likewise.
24637 (arc_split_mov_const): Likewise.
24638 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24639 (arc_rtx_costs): Replace check Crr with Cax constraint.
24640 (prepare_move_operands): Cleanup, remove unused code.
24641 (arc_split_ior): New function.
24642 (arc_check_ior_const): Likewise.
24643 (arc_split_mov_const): Likewise.
24644 (arc_check_mov_const): Likewise.
24645 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24646 in define_insn_and_split pattern.
24647 (iorsi3): Likewise.
24648 (mulsi3_v2): Add new matching variant.
24649 (andsi3_i): Cleanup pattern.
24650 (rotrsi3_cnt1): Update pattern.
24651 (rotrsi3_cnt8): New pattern.
24652 (ashlsi2_cnt8): Likewise.
24653 (ashlsi2_cnt16): Likewise.
24654 * config/arc/constraints.md (C0p): Update constraint.
24655 (Crr): Remove it.
24656 (C0x): New pattern.
24657 (Cax): New pattern.
24658
24659 2019-06-10 Martin Liska <mliska@suse.cz>
24660
24661 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24662 Update coding style.
24663 (sem_item_optimizer::dump_cong_classes):
24664 Print how many items are in a non-singular class. Improve
24665 coding style.
24666
24667 2019-06-10 Martin Liska <mliska@suse.cz>
24668
24669 * value-prof.c (dump_histogram_value): Change dump format.
24670 (gimple_mod_subtract_transform): Remove legacy comment.
24671
24672 2019-06-10 Martin Liska <mliska@suse.cz>
24673
24674 * value-prof.c (dump_histogram_value): Print histogram values
24675 only if present.
24676
24677 2019-06-10 Martin Liska <mliska@suse.cz>
24678
24679 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24680 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24681 * ipa-profile.c (ipa_profile_generate_summary):
24682 Use get_most_common_single_value.
24683 * tree-profile.c (gimple_init_gcov_profiler):
24684 Instrument with __gcov_one_value_profiler_v2
24685 and __gcov_indirect_call_profiler_v4.
24686 * value-prof.c (dump_histogram_value):
24687 Print all values for HIST_TYPE_SINGLE_VALUE.
24688 (stream_out_histogram_value): Update assert for
24689 N values.
24690 (stream_in_histogram_value): Set number of
24691 counters for HIST_TYPE_SINGLE_VALUE.
24692 (get_most_common_single_value): New.
24693 (gimple_divmod_fixed_value_transform):
24694 Use get_most_common_single_value.
24695 (gimple_ic_transform): Likewise.
24696 (gimple_stringops_transform): Likewise.
24697 (gimple_find_values_to_profile): Set number
24698 of counters for HIST_TYPE_SINGLE_VALUE.
24699 * value-prof.h (get_most_common_single_value): New.
24700
24701 2019-06-10 Martin Liska <mliska@suse.cz>
24702
24703 * hash-map.h: Pass default value to hash_table ctor.
24704 * hash-table.h: Add default value to call of a ctor.
24705
24706 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24707
24708 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24709 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24710
24711 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24712
24713 PR target/90751
24714 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24715 Call pa_output_function_label.
24716 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24717 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24718 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24719 to declaration.
24720 (pa_linux_output_function_prologue): Declare.
24721 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24722 (pa_output_function_label): New.
24723 (pa_output_function_prologue): Revise to use pa_output_function_label.
24724 (pa_linux_output_function_prologue): New.
24725 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24726
24727 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24728
24729 * tree-vrp.h (value_range_base::intersect): New.
24730 (value_range::intersect_helper): Move from here...
24731 (value_range_base::intersect_helper): ...to here.
24732 * tree-vrp.c (value_range::intersect_helper): Rename to...
24733 (value_range_base::intersect_helper): ...this, and rewrite to
24734 return a value instead of modifying THIS in place.
24735 Also, move equivalence handling...
24736 (value_range::intersect): ...here, while calling intersect_helper.
24737 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24738 calling intersect.
24739 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24740 Same.
24741 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24742
24743 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24744
24745 * Makefile.in (genprogerr): Add condmd.
24746 (genprog): Remove it here.
24747
24748 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24749
24750 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24751
24752 2019-06-07 Richard Biener <rguenther@suse.de>
24753
24754 PR debug/90574
24755 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24756 that appear after user labels.
24757
24758 2019-06-07 Martin Liska <mliska@suse.cz>
24759
24760 * cselib.c (cselib_init): Disable hash table
24761 sanitization.
24762 * hash-set.h: Pass new default argument to m_table.
24763 * hash-table.c: Add global variable with hash table
24764 sanitization limit.
24765 * hash-table.h (Allocator>::hash_table): Add new argument
24766 to ctor.
24767 (hashtab_chk_error): New.
24768 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24769 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24770 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24771
24772 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24773
24774 * common.opt (flto-odr-type-merging): Ignore.
24775 * invoke.texi (-flto-odr-type-merging): Remove.
24776 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24777 (can_be_vtable_hashed_p): Remove.
24778 (hash_odr_vtable): Remove.
24779 (odr_vtable_hasher::hash): Remove.
24780 (types_same_for_odr): Remove.
24781 (types_odr_comparable): Remove.
24782 (odr_vtable_hasher::equal): Remove.
24783 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24784 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24785 (get_odr_type): Do not use vtable hash.
24786 (dump_odr_type): Remove commented out code.
24787 (build_type_inheritance_graph): Do not allocate vtable hash.
24788 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24789 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24790 (odr_type_p): Likewise.
24791 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24792 test.
24793
24794 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24795
24796 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24797 immediately after same_types_for_tbaa_p returns -1 and continue
24798 looking for possible exact match; if matching types are arrays
24799 watch for partial overlaps.
24800 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24801 (indirect_refs_may_alias_p): Do type based disambiguation first;
24802 update comment.
24803
24804 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24805
24806 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24807
24808 2019-06-07 Martin Liska <mliska@suse.cz>
24809
24810 * doc/invoke.texi: Remove param.
24811 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24812 Remove.
24813 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24814 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24815 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24816 * profile.c (instrument_values): Remove
24817 HIST_TYPE_INDIR_CALL_TOPN.
24818 * tree-profile.c (init_ic_make_global_vars):
24819 Always build __gcov_indirect_call only.
24820 (gimple_init_gcov_profiler): Remove usage
24821 of PARAM_INDIR_CALL_TOPN_PROFILE.
24822 (gimple_gen_ic_profiler): Likewise.
24823 * value-prof.c (dump_histogram_value): Likewise.
24824 (stream_in_histogram_value): Likewise.
24825 (gimple_indirect_call_to_profile): Likewise.
24826 (gimple_find_values_to_profile): Likewise.
24827 * value-prof.h (enum hist_type): Likewise.
24828
24829 2019-06-07 Martin Liska <mliska@suse.cz>
24830
24831 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24832 function.
24833
24834 2019-06-07 Martin Liska <mliska@suse.cz>
24835
24836 PR tree-optimization/78902
24837 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24838 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24839 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24840 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24841 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24842 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24843 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24844 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24845 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24846 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24847 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24848 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24849 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24850 New.
24851 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24852 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24853 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24854 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24855 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24856 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24857 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24858 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24859 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24860 warn_unused_result attribute.
24861 (BUILT_IN_STRDUP): Likewise.
24862 (BUILT_IN_STRNDUP): Likewise.
24863 (BUILT_IN_ALLOCA): Likewise.
24864 (BUILT_IN_CALLOC): Likewise.
24865 (BUILT_IN_MALLOC): Likewise.
24866 (BUILT_IN_REALLOC): Likewise.
24867
24868 2019-06-06 Jim Wilson <jimw@sifive.com>
24869
24870 PR target/89955
24871 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24872 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24873 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24874
24875 2019-06-06 Martin Sebor <msebor@redhat.com>
24876
24877 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24878 (handle_builtin_malloc): Remove trailing spaces.
24879 (handle_builtin_memset): Same.
24880 (handle_builtin_memcmp): Same.
24881 (compute_string_length): Same.
24882 (determine_min_objsize): Same.
24883 (handle_builtin_string_cmp): Same.
24884 (handle_char_store): Same. Break up excessively long line.
24885
24886 2019-06-06 Martin Jambor <mjambor@suse.cz>
24887
24888 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24889 check.
24890
24891 2019-06-06 Martin Jambor <mjambor@suse.cz>
24892
24893 * tree-sra.c (struct access): New field grp_same_access_path.
24894 (dump_access): Dump it.
24895 (build_reconstructed_reference): New function.
24896 (build_ref_for_model): Use it if possible.
24897 (path_comparable_for_same_access): New function.
24898 (same_access_path_p): Likewise.
24899 (sort_and_splice_var_accesses): Set the new flag.
24900 (analyze_access_subtree): Likewise.
24901 (propagate_subaccesses_across_link): Propagate zero value of the new
24902 flag down the access tree.
24903
24904 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24905
24906 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24907 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24908 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24909 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24910 Add gfx906.
24911
24912 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24913
24914 PR tree-optimization/90332
24915 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24916 Handle VALS containing two vectors.
24917 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24918 to...
24919 (@aarch64_combinez<mode>): ... This.
24920 (*aarch64_combinez_be<mode>): Rename to...
24921 (@aarch64_combinez_be<mode>): ... This.
24922 (vec_init<mode><Vhalf>): New define_expand.
24923 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24924
24925 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24926
24927 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24928 library functions only when not optimizing for size.
24929 (ashlsi3): Likewise.
24930 (ashrhi3): Likewise.
24931 (ashrsi3): Likewise.
24932 (lshrhi3): Likewise.
24933 (lshrsi3): Likewise.
24934
24935 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24936
24937 PR rtl-optimization/88751
24938 * ira.c (ira): Use the number of the actually referenced registers
24939 when calculating the threshold.
24940
24941 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24942
24943 * configure: Regenerate.
24944
24945 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24946
24947 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24948 register if it is in memory, so the shift can be emulated with a rotate
24949 instruction.
24950 (ashrhi3): Likewise.
24951 (lshrhi3): Likewise.
24952
24953 2019-06-06 Martin Liska <mliska@suse.cz>
24954
24955 PR tree-optimization/87954
24956 * match.pd: Simplify mult where both arguments are 0 or 1.
24957
24958 2019-06-06 Richard Biener <rguenther@suse.de>
24959
24960 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24961 put equivalences on UNDEFINED ranges.
24962 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24963 Make sure to drop defs of stmts added during simplification
24964 to VARYING.
24965
24966 2019-06-06 Richard Biener <rguenther@suse.de>
24967
24968 * tree-ssa-structalias.c: Include tree-cfg.h.
24969 (make_heapvar): Do not make heap vars artificial.
24970 (find_func_aliases_for_builtin_call): Handle stack allocation
24971 functions.
24972 (find_func_aliases): Delay processing of simple enough returns
24973 in non-IPA mode.
24974 (set_uids_in_ptset): Adjust.
24975 (find_what_var_points_to): Likewise.
24976 (solve_constraints): Do not dump points-to sets here.
24977 (compute_points_to_sets): Post-process return statements,
24978 amending the escaped solution. Dump points-to sets afterwards.
24979 (ipa_pta_execute): Dump points-to sets.
24980
24981 2019-06-06 Martin Liska <mliska@suse.cz>
24982
24983 PR web/87933
24984 * doc/install.texi: Fix HTML headers and
24985 titles for 'Installing GCC' pages.
24986
24987 2019-06-06 Martin Liska <mliska@suse.cz>
24988
24989 * ipa-icf-gimple.h (dump_message_1): Remove.
24990 (dump_message): Likewise.
24991 (return_false_with_message_1): Print also file.
24992 (return_false_with_msg): Likewise.
24993 (return_with_result): Likewise.
24994 (return_with_debug): Likewise.
24995 * ipa-icf.c (sem_function::equals_private): Remove call
24996 to dump_message.
24997
24998 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24999
25000 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25001 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25002 memory operand for it.
25003 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25004
25005 2019-06-05 Martin Sebor <msebor@redhat.com>
25006
25007 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25008 Adjust quoting and hyphenation.
25009 * convert.c (convert_to_real_1): Same.
25010 * gcc.c (driver_wrong_lang_callback): Same.
25011 (driver::handle_unrecognized_options): Same.
25012 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25013 * opts-common.c (cmdline_handle_error): Same.
25014 (read_cmdline_option): Same.
25015 * opts-global.c (complain_wrong_lang): Same.
25016 (print_ignored_options): Same.
25017 (handle_common_deferred_options): Same.
25018 * pretty-print.h: Same.
25019 * print-rtl.c (debug_bb_n_slim): Same.
25020 * sched-rgn.c (make_pass_sched_fusion): Same.
25021 * tree-cfg.c (verify_gimple_assign_unary): Same.
25022 (verify_gimple_label): Same.
25023 * tree-ssa-operands.c (verify_ssa_operands): Same.
25024 * varasm.c (do_assemble_alias): Same.
25025 (assemble_alias): Same.
25026
25027 2019-06-05 Richard Henderson <rth@twiddle.net>
25028
25029 * config/alpha/alpha.c (direct_return): Move down after
25030 struct machine_function definition; use saved frame_size;
25031 return bool.
25032 (struct machine_function): Add sa_mask, sa_size, frame_size.
25033 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25034 (alpha_compute_frame_layout): ... new function.
25035 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25036 (alpha_initial_elimination_offset): Use saved sa_size.
25037 (alpha_vms_initial_elimination_offset): Likewise.
25038 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25039 (alpha_expand_prologue): Use saved frame data. Merge integer
25040 and fp register save loops.
25041 (alpha_expand_epilogue): Likewise.
25042 (alpha_start_function): Use saved frame data.
25043 * config/alpha/alpha-protos.h (direct_return): Update.
25044 (alpha_sa_size): Remove.
25045
25046 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25047
25048 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25049 multiplication by a power-of-two value.
25050 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25051 and turn the modulo operation into a masking operation.
25052
25053 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25054
25055 PR debug/90733
25056 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25057 with VOIDmode inner operands.
25058
25059 2019-06-05 Richard Biener <rguenther@suse.de>
25060
25061 PR middle-end/90726
25062 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25063 turn an expression graph into a tree.
25064
25065 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25066
25067 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25068 member.
25069 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25070 treat it like explicit monotonic schedule modifier.
25071 (expand_omp_for): Initialize has_lastprivate_conditional.
25072 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25073 schedule modifier.
25074
25075 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25076 references, lookup in in hash map MEM_REF operand instead of the
25077 MEM_REF itself.
25078 (lower_omp_1): When looking for lastprivate conditional assignments,
25079 handle MEM_REFs with REFERENCE_TYPE operands.
25080
25081 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25082 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25083 and references a VLA. Handle references to non-VLAs if is_simd
25084 all privatization clauses like reductions.
25085 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25086 If omp_is_reference, use always omp simd arrays and set
25087 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25088 fails, emit reference initialization.
25089
25090 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25091
25092 PR target/89803
25093 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25094 _mm_mask_fpclass_sd_mask): New intrinsics.
25095 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25096 * config/i386/i386-builtin.def
25097 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25098 New builtins.
25099 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25100 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25101 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25102 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25103 case QI_FTYPE_V2SF_INT): Ditto.
25104 * config/i386/sse.md
25105 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25106 Extended to insnstructions with mask operands.
25107
25108 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25109
25110 * config/rs6000/constraints.md (define_register_constraint "wp"):
25111 Delete.
25112 (define_register_constraint "wq"): Delete.
25113 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25114 (rs6000_init_hard_regno_mode_ok): Adjust.
25115 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25116 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25117 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25118 (define_mode_attr VSa): Delete.
25119 (define_mode_attr VSisa): New.
25120 (rest of file): Adjust.
25121 * doc/md.texi (Machine Constraints): Adjust.
25122
25123 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25124
25125 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25126 (define_attr "enabled"): Handle those new isa values.
25127
25128 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25129
25130 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25131 (define_mode_attr VSr5): Delete.
25132 (define_mode_attr VStype_sqrt): Delete.
25133 (define_mode_iterator VSX_SPDP): Delete.
25134 (define_mode_attr VS_spdp_res): Delete.
25135 (define_mode_attr VS_spdp_insn): Delete.
25136 (define_mode_attr VS_spdp_type): Delete.
25137 (*vsx_sqrt<mode>2): Adjust.
25138 (vsx_<VS_spdp_insn>): Delete, split to...
25139 (vsx_xscvdpsp): ... this. New. And...
25140 (vsx_xvcvspdp): ... this. New. And...
25141 (vsx_xvcvdpsp): ... this. New.
25142
25143 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25144
25145 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25146 and V2DF.
25147 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25148 (rest of file): Adjust.
25149
25150 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25151
25152 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25153 (vsx_extract_<mode>_var): Ditto.
25154
25155 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25156
25157 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25158 with just "wa".
25159
25160 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25161
25162 * config/rs6000/constraints.md (define_register_constraint "ww"):
25163 Delete.
25164 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25165 (rs6000_init_hard_regno_mode_ok): Adjust.
25166 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25167 RS6000_CONSTRAINT_ww.
25168 * config/rs6000/rs6000.md: Adjust.
25169 * config/rs6000/vsx.md: Adjust.
25170 * doc/md.texi (Machine Constraints): Adjust.
25171
25172 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25173
25174 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25175 (define_mode_attr sd): New.
25176 (define_mode_attr s): New.
25177 (define_mode_attr Ftrad): Delete.
25178 (define_mode_attr Fvsx): Delete.
25179 (define_mode_attr Fs): Delete.
25180 (rest of file): Use the new mode attributes.
25181 * config.rs6000/vsx.md: Use the new mode attributes.
25182
25183 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25184
25185 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25186 with just "wa".
25187
25188 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25189
25190 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25191 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25192 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25193
25194 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25195
25196 PR target/78263
25197 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25198 C++ with strict ANSI requirements.
25199
25200 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25201
25202 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25203 computations when step is 1.
25204
25205 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25206
25207 * config/rs6000/constraints.md (define_register_constraint "wf"):
25208 Delete.
25209 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25210 (rs6000_init_hard_regno_mode_ok): Adjust.
25211 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25212 RS6000_CONSTRAINT_wf.
25213 * config/rs6000/rs6000.md: Adjust.
25214 * config/rs6000/vsx.md: Adjust.
25215 * doc/md.texi (Machine Constraints): Adjust.
25216
25217 2019-06-04 Andrew Pinski <apinski@marvell.com>
25218
25219 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25220 Fix ILP32 value.
25221
25222 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25223
25224 * config/rs6000/constraints.md (define_register_constraint "wd"):
25225 Delete.
25226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25227 (rs6000_init_hard_regno_mode_ok): Adjust.
25228 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25229 RS6000_CONSTRAINT_wd.
25230 * config/rs6000/rs6000.md: Adjust.
25231 * config/rs6000/vsx.md: Adjust.
25232 * doc/md.texi (Machine Constraints): Adjust.
25233
25234 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25235
25236 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25237 (rest of file): Adjust.
25238
25239 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25240
25241 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25242 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25243 (vsx_splat_<mode>_reg): Adjust.
25244
25245 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25246
25247 * config/rs6000/constraints.md (define_register_constraint "ws"):
25248 Delete.
25249 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25250 (rs6000_init_hard_regno_mode_ok): Adjust.
25251 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25252 RS6000_CONSTRAINT_ws.
25253 * config/rs6000/rs6000.md: Adjust.
25254 * config/rs6000/vsx.md: Adjust.
25255 * doc/md.texi (Machine Constraints): Adjust.
25256
25257 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25258
25259 * config/rs6000/constraints.md (define_register_constraint "wv"):
25260 Delete.
25261 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25262 (rs6000_init_hard_regno_mode_ok): Adjust.
25263 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25264 RS6000_CONSTRAINT_wv.
25265 * config/rs6000/rs6000.md: Adjust.
25266 * config/rs6000/vsx.md: Adjust.
25267 * doc/md.texi (Machine Constraints): Adjust.
25268
25269 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25270
25271 * config/rs6000/constraints.md (define_register_constraint "wi"):
25272 Delete.
25273 (define_register_constraint "wt"): Delete.
25274 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25275 (rs6000_init_hard_regno_mode_ok): Adjust.
25276 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25277 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25278 * config/rs6000/rs6000.md: Adjust.
25279 * config/rs6000/vsx.md: Adjust.
25280 * doc/md.texi (Machine Constraints): Adjust.
25281
25282 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25283
25284 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25285 const.
25286 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25287 default_elf_asm_output_external.
25288
25289 2019-06-04 Martin Liska <mliska@suse.cz>
25290
25291 * ipa-icf.c (INCLUDE_LIST): Remove.
25292 (sem_item_optimizer::execute): Remove call to init_wpa.
25293 * ipa-icf.h (init_wpa): Remove.
25294
25295 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25296
25297 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25298 conditional on combined for simd.
25299 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25300 member.
25301 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25302 constructs, don't remove lastprivate_conditional_map, but instead set
25303 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25304 to parent construct temporaries.
25305 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25306 like !ctx->lastprivate_conditional_map.
25307 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25308 use up->outer context instead of up.
25309 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25310 gimple_omp_for_combined_p.
25311 (expand_omp_for_static_nochunk): Likewise.
25312 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25313 probably moved over into expand_omp_for_generic rather than being copied
25314 there.
25315
25316 2019-06-04 Martin Liska <mliska@suse.cz>
25317
25318 * value-prof.c (dump_histogram_value): Fix typo.
25319 (gimple_mod_subtract_transform): Likewise.
25320
25321 2019-06-04 Richard Biener <rguenther@suse.de>
25322
25323 PR middle-end/90726
25324 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25325 (tree_contains_chrecs): Likewise.
25326 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25327 exponential behaivor from ...
25328 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25329 ... here.
25330 (expression_expensive_p): Avoid exponential behavior and compute
25331 expanded size, rejecting any expansion.
25332 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25333 (idx_contains_abnormal_ssa_name_p): Likewise.
25334 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25335 (contains_abnormal_ssa_name_p): Simplify and use
25336 walk_tree_without_duplicates.
25337
25338 2019-06-04 Richard Biener <rguenther@suse.de>
25339
25340 PR tree-optimization/90738
25341 Revert
25342 2019-06-03 Richard Biener <rguenther@suse.de>
25343
25344 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25345 full reference tree and record in ref->ref.
25346 (vn_reference_lookup_3): Pass in original ref to
25347 ao_ref_init_from_vn_reference.
25348 (vn_reference_lookup): Likewise.
25349 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25350 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25351 Handle non-decl bases in the original reference.
25352
25353 2019-06-04 Martin Liska <mliska@suse.cz>
25354
25355 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25356 number of references.
25357 (sem_item_optimizer::do_congruence_step):
25358 (sem_item_optimizer::worklist_push): Dump how references
25359 a class has.
25360 (sem_item_optimizer::worklist_pop): Use heap.
25361 (sem_item_optimizer::process_cong_reduction): Likewise.
25362 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25363
25364 2019-06-04 Martin Liska <mliska@suse.cz>
25365
25366 * ipa-icf.h (struct sem_usage_pair_hash): New.
25367 (sem_usage_pair_hash::hash): Likewise.
25368 (sem_usage_pair_hash::equal): Likewise.
25369 (struct sem_usage_hash): Likewise.
25370 * ipa-icf.c (sem_item::sem_item): Initialize
25371 referenced_by_count.
25372 (sem_item::add_reference): Register a reference
25373 in ref_map and not in target->usages.
25374 (sem_item::setup): Remove initialization of
25375 dead vectors.
25376 (sem_item::~sem_item): Remove usage of dead vectors.
25377 (sem_item::dump): Remove dump of references.
25378 (sem_item_optimizer::sem_item_optimizer): Initialize
25379 m_references.
25380 (sem_item_optimizer::read_section): Remove useless
25381 dump.
25382 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25383 (sem_item_optimizer::build_graph): Pass m_references
25384 to ::add_reference.
25385 (sem_item_optimizer::verify_classes): Remove usage of dead
25386 vectors.
25387 (sem_item_optimizer::traverse_congruence_split): Return true
25388 when a class is split.
25389 (sem_item_optimizer::do_congruence_step_for_index): Use
25390 hash_map for look up of (sem_item *, index). That brings
25391 significant speed up.
25392 (sem_item_optimizer::do_congruence_step): Return true
25393 when a split is done.
25394 (congruence_class::is_class_used): Use referenced_by_count.
25395
25396 2019-06-04 Alan Modra <amodra@gmail.com>
25397
25398 PR target/90689
25399 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25400 error.
25401
25402 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25403
25404 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25405 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25406 (rs6000_secondary_reload_simple_move): Adjust.
25407 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25408 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25409 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25410 comment.
25411 (power6x): Adjust.
25412 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25413 (floatunssi<mode>2_lfiwzx): Adjust.
25414 (fix_trunc<mode>si2_stfiwx): Adjust.
25415 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25416 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25417 (mfpgpr): Mark as deprecated.
25418 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25419 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25420 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25421
25422 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25423
25424 * config/rs6000/constraints.md (define_register_constraint "wg"):
25425 Delete.
25426 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25427 RS6000_CONSTRAINT_wg.
25428 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25429 (rs6000_init_hard_regno_mode_ok): Adjust.
25430 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25431 Delete "wg" alternatives.
25432 * doc/md.texi (Machine Constraints): Adjust.
25433
25434 2019-06-03 Alan Modra <amodra@gmail.com>
25435
25436 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25437 (get_uncond_jump_length): Assert length less than INT_MAX and
25438 non-negative.
25439
25440 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25441
25442 PR middle-end/64242
25443 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25444 block.
25445 (expand_builtin_nonlocal_goto): Likewise.
25446
25447 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25448
25449 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25450 (aarch64_asm_output_external): Declare.
25451 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25452 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25453 (aarch64_asm_output_alias): New.
25454 (aarch64_asm_output_external): New.
25455 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25456 (ASM_OUTPUT_EXTERNAL): Define.
25457
25458 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25459 * tree-vrp.h (value_range_base::nonzero_p): New.
25460 (value_range_base::set_nonnull): Rename to...
25461 (value_range_base::set_nonzero): ...this.
25462 (value_range_base::set_null): Rename to...
25463 (value_range_base::set_zero): ...this.
25464 (value_range::set_nonnull): Remove.
25465 (value_range::set_null): Remove.
25466 * tree-vrp.c (range_is_null): Remove.
25467 (range_is_nonnull): Remove.
25468 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25469 instead of range_is_*null.
25470 (extract_range_from_unary_expr): Same.
25471 (value_range_base::set_nonnull): Rename to...
25472 (value_range_base::set_nonzero): ...this.
25473 (value_range::set_nonnull): Remove.
25474 (value_range_base::set_null): Rename to...
25475 (value_range_base::set_zero): ...this.
25476 (value_range::set_null): Remove.
25477 (extract_range_from_binary_expr): Rename set_*null uses to
25478 set_*zero.
25479 (extract_range_from_unary_expr): Same.
25480 (union_helper): Same.
25481 * vr-values.c (get_value_range): Use set_*zero instead of
25482 set_*null.
25483 (vr_values::extract_range_from_binary_expr): Same.
25484 (vr_values::extract_range_basic): Same.
25485
25486 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25487
25488 PR driver/90684
25489 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25490
25491 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25492
25493 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25494 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25495 Rename to...
25496 (aarch64_<su>abd<mode>_3): ... This.
25497 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25498
25499 2019-06-03 Richard Biener <rguenther@suse.de>
25500
25501 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25502 full reference tree and record in ref->ref.
25503 (vn_reference_lookup_3): Pass in original ref to
25504 ao_ref_init_from_vn_reference.
25505 (vn_reference_lookup): Likewise.
25506 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25507 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25508 Handle non-decl bases in the original reference.
25509
25510 2019-06-03 Martin Liska <mliska@suse.cz>
25511
25512 * doc/generic.texi: Remove Java Trees.
25513
25514 2019-06-03 Martin Liska <mliska@suse.cz>
25515
25516 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25517 returns 0 when operands are equal.
25518
25519 2019-06-03 Richard Biener <rguenther@suse.de>
25520
25521 PR tree-optimization/90716
25522 * tree-loop-distribution.c (destroy_loop): Process blocks in
25523 correct order.
25524
25525 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25526
25527 PR target/88837
25528 * vector-builder.h (vector_builder::count_dups): New method.
25529 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25530 Declare prototype.
25531 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25532 (vec_init<mode><Vel>): New pattern.
25533 * config/aarch64/aarch64.c (emit_insr): New function.
25534 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25535 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25536 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25537 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25538
25539 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25540
25541 PR tree-optimization/90681
25542 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25543 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25544 special case for SLP, but fail on non-groupped loads.
25545
25546 2019-06-03 Martin Liska <mliska@suse.cz>
25547
25548 * cfg.c (debug): Use TDF_DETAILS for debug and
25549 print edge info only once.
25550
25551 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25552
25553 PR fortran/90539
25554 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25555
25556 2019-06-01 Martin Sebor <msebor@redhat.com>
25557
25558 PR middle-end/90694
25559 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25560
25561 2019-05-31 Jan Hubicka <jh@suse.cz>
25562
25563 * alias.c: Include ipa-utils.h.
25564 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25565 * ipa-devirt.c (prevailing_odr_type): New.
25566 * ipa-utils.h (previaling_odr_type): Declare.
25567
25568 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25569 Hongtao Liu <hongtao.liu@intel.com>
25570
25571 PR target/89355
25572 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25573 NOTE_INSN_DELETED_LABEL check.
25574
25575 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25576 Robert Suchanek <robert.suchanek@mips.com>
25577
25578 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25579 and 3rd operands of the fmadd/fmsub/maddv builtin.
25580
25581 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25582
25583 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25584 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25585 on OMP_SIMD if not nested inside of worksharing loop that also has
25586 lastprivate conditional clause for the same decl.
25587 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25588 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25589 on simd.
25590 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25591 on simd construct.
25592 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25593 on simd construct.
25594 (lower_lastprivate_clauses): Likewise.
25595 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25596 calling lower_rec_input_clauses.
25597 (lower_omp_for): Likewise.
25598 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25599 clause on simd construct.
25600 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25601 OMP_CLAUSE__CONDTEMP_ clause is present.
25602
25603 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25604 ivar and lvar.
25605
25606 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25607
25608 PR c/43673
25609 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25610 TEX_D32, TEX_D64 or TEX_D128.
25611
25612 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25613
25614 * match.pd (~(vec?cst1:cst2)): New transformation.
25615
25616 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25617
25618 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25619 ((size_t)(A /[ex] B) CMP C): New transformation.
25620
25621 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25622
25623 * doc/md.texi: Document define_insn_and_rewrite.
25624 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25625 * gensupport.c (queue_elem): Update comment.
25626 (replace_operands_with_dups): New function.
25627 (gen_rewrite_sequence): Likewise.
25628 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25629 * read-rtl.c (apply_subst_iterator): Likewise.
25630 (add_condition_to_rtx, named_rtx_p): Likewise.
25631 (rtx_reader::read_rtx_operand): Likewise.
25632 * config/aarch64/aarch64-sve.md
25633 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25634 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25635 define_insn_and_rewrite.
25636 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25637 Remove separate define_split.
25638
25639 2019-05-31 Jan Hubicka <jh@suse.cz>
25640
25641 * tree-ssa-alias.c (type_has_components_p): New function.
25642 (aliasing_component_refs_p): Use it.
25643
25644 2019-05-31 Martin Liska <mliska@suse.cz>
25645
25646 * gdbhooks.py: Add const_tree to TreePrinter.
25647
25648 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25649
25650 PR debug/86964
25651 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25652 * doc/invoke.texi (Debugging Options): Document new default of
25653 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25654
25655 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25656
25657 PR tree-optimization/90671
25658 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25659 template_block used to be empty on the first call, don't use
25660 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25661 seq with bb_seq and set it with set_bb_seq.
25662
25663 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25664
25665 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25666
25667 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25668 Michael Meissner <meissner@linux.ibm.com>
25669
25670 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25671 (prefixed_mem_operand): Likewise.
25672 (non_prefixed_mem_operand): Likewise.
25673 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25674 prototype.
25675 * config/rs6000/rs6000.c (print_operand_address): Handle
25676 PC-relative addresses.
25677 (mode_supports_prefixed_address_p): New function.
25678 (rs6000_prefixed_address): New function.
25679 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25680 (SYMBOL_REF_PCREL_P): Likewise.
25681
25682 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25683
25684 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25685 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25686 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25687 is nested inside of parallel region, add _condtemp_ clause to both.
25688 * tree-nested.c (convert_nonlocal_omp_clauses,
25689 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25690 assertion failure.
25691 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25692 member.
25693 * omp-general.c (omp_extract_for_data): Compute it.
25694 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25695 (lower_rec_input_clauses): Likewise.
25696 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25697 clause is already present, just add one further one after it.
25698 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25699 (lower_send_shared_vars): Clear _condtemp_ vars.
25700 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25701 or section or taskgroup.
25702 * omp-expand.c (determine_parallel_type): Disallow combining only if
25703 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25704 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25705 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25706 expand_omp_for_static_chunk, expand_omp_for): Use
25707 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25708 determine if a special set of API routines are needed and if condtemp
25709 needs to be initialized, while always initialize cond_var if
25710 fd->lastprivate_conditional is non-zero.
25711
25712 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25713 Michael Meissner <meissner@linux.ibm.com>
25714
25715 * config/rs6000/constraints.md (eI): New constraint.
25716 * config/rs6000/predicates.md (cint34_operand): New predicate.
25717 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25718 (SIGNED_34BIT_OFFSET_P): Likewise.
25719 * doc/md.texi (eI): Document constraint.
25720
25721 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25722
25723 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25724
25725 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25726 Michael Meissner <meissner@linux.ibm.com>
25727
25728 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25729 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25730 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25731 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25732 (OTHER_FUTURE_MASKS): Likewise.
25733 (POWERPC_MASKS): Likewise.
25734 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25735 specified without -mprefixed-addr or -mcpu=future. Error if
25736 -mprefixed-addr is specified without -mcpu=future.
25737 (rs6000_opt_masks): Add entry for prefixed-addr.
25738 * rs6000.opt (mprefixed-addr): New option.
25739
25740 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25741
25742 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25743 cfun->is_thunk check.
25744
25745 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25746
25747 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25748 to length.
25749
25750 2019-05-30 Martin Liska <mliska@suse.cz>
25751
25752 * gdbinit.in: Fix 'ptc' command. Add trt
25753 that prints TREE_TYPE($).
25754
25755 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25756 Alan Modra <amodra@gmail.com>
25757
25758 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25759 calls here...
25760 (rs6000_indirect_call_template_1): ...and here.
25761 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25762 plt16_ha, plt16_lo, mtctr indirect calls. Use
25763 rs6000_pltseq_enum.
25764 (rs6000_decl_ok_for_sibcall): New function.
25765 (rs6000_function_ok_for_sibcall): Refactor.
25766 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25767 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25768 when pcrel. Reorganize.
25769 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25770 * rs6000.h (rs6000_pltseq_enum): New enum.
25771 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25772 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25773 (*pltseq_plt16_ha): Likewise.
25774 (*pltseq_plt16_lo): Likewise.
25775 (*pltseq_mtctr): Likewise.
25776 (*pltseq_plt_pcrel): New insn.
25777 (*call_local_aix): Handle @notoc calls.
25778 (*call_value_local_aix): Likewise.
25779 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25780 (*call_value_nonlocal_aix): Likewise.
25781 (*call_indirect_pcrel): New insn.
25782 (*call_value_indirect_pcrel): Likewise.
25783
25784 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25785
25786 * config/i386/sse.md (*save_multiple<mode>): Rename from
25787 save_multiple<mode>.
25788 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25789 (*restore_multiple_and_return<mode>): Rename from
25790 restore_multiple_and_return<mode>.
25791 (*restore_multiple_leave_return<mode>): Rename from
25792 restore_multiple_leave_return<mode>.
25793
25794 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25795
25796 * config.gcc (rx-*-linux*): New target.
25797 * config/rx/elf.opt: New file.
25798 * config/rx/linux.h: Likewise.
25799 * config/rx/t-linux: Likewise.
25800 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25801 make it zero.
25802 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25803 (ASM_APP_OFF): Likewise.
25804 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25805 moved elsewhere.
25806
25807 2019-05-29 Jan Hubicka <jh@suse.cz>
25808
25809 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25810 variants are pointer equivalent.
25811
25812 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25813
25814 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25815 * config/aarch64/aarch64-sve2.md: New file.
25816 (<u>avg<mode>3_floor): New pattern.
25817 (<u>avg<mode>3_ceil): Likewise.
25818 (*<sur>h<addsub><mode>): Likewise.
25819 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25820 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25821
25822 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25823
25824 PR bootstrap/90543
25825 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25826 for var_opt_string printing. In cl_optimization_print_diff, print
25827 (null) instead of invoking undefined behavior if one of the
25828 var_opt_string pointers is NULL and use && instead of first || in the
25829 guarding condition. For var_target_other options, handle const char *
25830 target variables similarly to const char * optimize node variables.
25831
25832 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25833
25834 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25835 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25836 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25837 Add autib1716 and pacib1716 initialisation.
25838 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25839 for autib1716 and pacib1716.
25840 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25841 aarch64_post_cfi_startproc): Define.
25842 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25843 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25844 aarch64_handle_pac_ret_protection): Set default sign key to A.
25845 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25846 aarch64_expand_prologue): Add check for b-key.
25847 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25848 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25849 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25850 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25851 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25852 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25853 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25854 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25855 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25856 pauth_hint_num_a with pauth_hint_num.
25857 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25858 pauth_hint_num_a with pauth_hint_num.
25859 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25860 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25861 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25862 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25863 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25864 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25865 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25866 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25867 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25868 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25869 UNSPEC_AUTIA1716 respectively.
25870 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25871 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25872 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25873 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25874 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25875 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25876
25877 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25878
25879 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25880 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25881 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25882 explicit clause on combined parallel into implicit shared clause.
25883 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25884 and firstprivate if the decl has one too from combined parallel to
25885 the worksharing construct.
25886
25887 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25888 Michael Meissner <meissner@linux.ibm.com>
25889
25890 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25891
25892 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25893
25894 * rtl.h (LABEL_REF_P): New #define.
25895
25896 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25897
25898 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25899
25900 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25901
25902 * internal-fn.c: Marked mask_load_direct as vectorizable.
25903 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25904 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25905 combined even if masks different with allow_slp_p param.
25906 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25907 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25908 dissolve SLP-only vectorizable groups when SLP has been discarded.
25909 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25910 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25911 masks.
25912 (vect_build_slp_tree_1): Fixed comment typo.
25913 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25914 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25915 loads for SLP only.
25916 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25917 vectorizable.
25918 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25919
25920 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25921
25922 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25923 Remove obsolete use_thunk reference.
25924 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25925 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25926 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25927 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25928 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25929 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25930 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25931 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25932 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25933
25934 2019-05-28 Nathan Sidwell <nathan@acm.org>
25935
25936 * tree.h (IDENTIFIER_ANON_P): New.
25937 (anon_aggrname_format, anon_aggname_p): Don't declare.
25938 (make_anon_name): Declare.
25939 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25940 (hash_tree): Likewise.
25941 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25942 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25943 (anon_cnt, make_anon_name): New.
25944
25945 2019-05-28 Martin Liska <mliska@suse.cz>
25946
25947 PR other/90315
25948 * opts-global.c (decode_options): Print help for all
25949 help_option_arguments.
25950 * opts.c (print_help): Add new argument.
25951 (common_handle_option): Remember all values into
25952 help_option_arguments.
25953 * opts.h (print_help): Add new argument.
25954
25955 2019-05-28 Martin Liska <mliska@suse.cz>
25956
25957 PR ipa/90555
25958 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25959 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25960 (func_checker::compare_bb): Call compare_loops.
25961
25962 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25963
25964 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25965 on sections construct.
25966 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25967 construct.
25968 (lower_omp_sections): Handle lastprivate conditional.
25969 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25970 lastprivate_conditional_map.
25971 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25972
25973 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25974 critical, taskgroup and section regions when looking for a region
25975 with non-NULL lastprivate_conditional_map.
25976
25977 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25978
25979 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25980 (*ix86_gen_sub3): Ditto.
25981 (*ix86_gen_sub3_carry): Ditto.
25982 (*ix86_gen_one_cmpl2): Ditto.
25983 (*ix86_gen_andsp): Ditto.
25984 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25985 (gen_and2_insn): New static function.
25986 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25987 Use gen_add3_insn instead of ix86_gen_add3.
25988 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25989 instead of ix86_gen_add3.
25990 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25991 Use gen_sub3_insn instead of ix86_gen_sub3.
25992 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25993 instead of ix86_gen_add3.
25994 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25995 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25996 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25997 * config/i386/i386-options.c (ix86_option_override_internal):
25998 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25999 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26000
26001 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26002
26003 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26004 and DW_OP_GNU_const_index opcodes.
26005
26006 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26007
26008 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26009
26010 2019-05-27 Richard Biener <rguenther@suse.de>
26011
26012 PR tree-optimization/90637
26013 * tree-ssa-sink.c (statement_sink_location): Honor the
26014 computed sink location for single-uses.
26015
26016 2019-05-27 Richard Biener <rguenther@suse.de>
26017
26018 PR middle-end/90610
26019 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26020 a bit-insert.
26021
26022 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26023
26024 * config/i386/i386.md (@sub<mode>3_carry): Rename
26025 from sub<mode>3_carry.
26026 (@leave_<mode>): New expander.
26027 (*leave): Rename from leave.
26028 (*leave_rex64): Rename from leave_rex64.
26029 (@monitorx_<mode>): Rename from monitorx_<mode>.
26030 (@clzero_<mode>): Rename from clzero_<mode>.
26031 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26032 from sse3_monitor_<mode>.
26033 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26034 (*ix86_gen_leave): Ditto.
26035 (*ix86_gen_monitor): Ditto.
26036 (*ix86_gen_monitorx): Ditto.
26037 (*ix86_gen_clzero): Ditto.
26038 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26039 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26040 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26041 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26042 Use gen_sse3_monitor instead of ix86_gen_monitor.
26043 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26044 instead of ix86_gen_monitorx.
26045 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26046 instead of ix86_gen_clzero.
26047 * config/i386/i386-options.c (ix86_option_override_internal):
26048 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26049 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26050
26051 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26052
26053 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26054 Rename from tls_global_dynamic_64_<mode>.
26055 (@tls_local_dynamic_base_64_<mode>): Rename from
26056 tls_local_dynamic_base_64_<mode>.
26057 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26058 Remove indirect function.
26059 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26060 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26061 instead of ix86_gen_tls_global_dynamic_64.
26062 Use gen_tls_local_dynamic_base_64 instead of
26063 ix86_gen_tls_local_dynamic_base_64.
26064 * config/i386/i386-options.c (ix86_option_override_internal):
26065 Do not initialize ix86_gen_tls_global_dynamic_64 and
26066 ix86_gen_tls_local_dynamic_base_64.
26067
26068 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26069
26070 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26071 Rename from pro_epilogue_adjust_stack_<mode>_add.
26072 (@pro_epilogue_adjust_stack_sub_<mode>)
26073 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26074 (@allocate_stack_worker_probe_<mode>):
26075 Rename from allocate_stack_worker_probe_<mode>.
26076 (allocate_stack): Use gen_allocate_stack_worker_probe.
26077 (probe_stack): Use gen_probe_stack_1.
26078 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26079 (@adjust_stack_and_probe_<mode>): Rename from
26080 adjust_stack_and_probe<mode>.
26081 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26082 (stack_protect_set): Use gen_stack_protect_set_1.
26083 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26084 (stack_protect_test): Use gen_stack_protect_test_1.
26085 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26086 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26087 Remove indirect function.
26088 (*ix86_gen_adjust_stack_and_probe): Ditto.
26089 (*ix86_gen_probe_stack_range): Ditto.
26090 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26091 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26092 (ix86_adjust_stack_and_probe_stack_clash): Use
26093 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26094 (ix86_adjust_stack_and_probe): Ditto.
26095 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26096 of ix86_gen_probe_stack_range.
26097 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26098 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26099 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26100 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26101 CODE_FOR_stack_protect_test_{si,di}.
26102 * config/i386/i386-options.c (ix86_option_override_internal):
26103 Do not initialize ix86_gen_allocate_stack_worker,
26104 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26105
26106 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26107
26108 * doc/invoke.texi (Link Options): Many editorial changes around
26109 -flinker-output.
26110
26111 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26112
26113 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26114 pre-Solaris 11 referene and most Studio compiler details.
26115
26116 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26117
26118 PR target/90530
26119 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26120 DImode to SImode in floating-point registers on 64-bit target.
26121 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26122 register_operand in xmpyu patterns.
26123
26124 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26125
26126 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26127 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26128 OMP_CLAUSE__REDUCTEMP_.
26129 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26130 OMP_CLAUSE__CONDTEMP_.
26131 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26132 * tree-pretty-print.c (dump_omp_clause): Likewise.
26133 * tree-nested.c (convert_nonlocal_omp_clauses,
26134 convert_local_omp_clauses): Likewise.
26135 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26136 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26137 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26138 on OMP_FOR.
26139 (gimplify_omp_for): Warn and disable conditional modifier from
26140 lastprivate on loop iterators.
26141 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26142 member.
26143 * omp-general.c (omp_extract_for_data): Initialize it.
26144 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26145 member.
26146 (delete_omp_context): Delete it.
26147 (lower_lastprivate_conditional_clauses): New function.
26148 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26149 handle lastprivate conditional clauses.
26150 (lower_reduction_clauses): Add CLIST argument, emit it into
26151 the critical section if any.
26152 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26153 lower_reduction_clauses callers.
26154 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26155 to lower_lastprivate_clauses.
26156 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26157 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26158 clist into a critical section if not emitted there already by
26159 lower_reduction_clauses.
26160 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26161 callers.
26162 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26163 conditional variables.
26164 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26165 clause is present.
26166 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26167 expand_omp_for_static_chunk): Handle lastprivate conditional.
26168 (expand_omp_for): Handle fd.lastprivate_conditional like
26169 fd.have_reductemp.
26170
26171 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26172
26173 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26174 kernel does not exit cleanly.
26175 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26176
26177 2019-05-24 Jason Merrill <jason@redhat.com>
26178
26179 Revert:
26180 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26181
26182 2019-05-24 Richard Biener <rguenther@suse.de>
26183
26184 PR testsuite/90607
26185 * tree-loop-distribution.c (struct partition): Add location
26186 member.
26187 (partition_alloc): Initialize all fields.
26188 (generate_memset_builtin): Use the location recorded in the
26189 partition for the generated call.
26190 (generate_memcpy_builtin): Likewise.
26191 (classify_partition): Record the location of a single store
26192 as location for the partition.
26193
26194 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26195
26196 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26197 for lo-part.
26198
26199 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26200
26201 PR target/90588
26202 * common/config/aarch64/aarch64-common.c
26203 (aarch64_rewrite_selected_cpu): Change local temporary variable
26204 type from unsigned long to uint64_t.
26205 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26206 aarch64_get_extension_string_for_isa_flags): Change declaration to
26207 match new definition by replacing unsigned long with uint64_t.
26208
26209 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26210
26211 PR target/90568
26212 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26213 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26214 Handle stack_protect_test_<mode> codegen similarly to corresponding
26215 sub instruction.
26216
26217 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26218
26219 * config/i386/darwin.h: Reject -mfentry*.
26220 * doc/sourcebuild.texi: Document mfentry target support.
26221
26222 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26223
26224 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26225 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26226 false for PC-relative functions.
26227 (rs6000_output_function_prologue): Change called function name to
26228 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26229 name,1" for PC-relative functions.
26230 (rs6000_elf_declare_function_name): Change called function name to
26231 rs6000_global_entry_point_prologue_needed_p.
26232
26233 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26234
26235 PR target/90552
26236 * config/i386/i386.c (gen_rtx_cost):
26237 Use ix86_tune_cost instead of ix86_cost.
26238
26239 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26240 Michael Meissner <meissner@linux.ibm.com>
26241 Segher Boessenkool <segher@kernel.crashing.org>
26242
26243 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26244 OPTION_MASK_PCREL.
26245 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26246 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26247 (rs6000_fndecl_pcrel_p): Likewise.
26248 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26249 error if -mpcrel is requested without -mcpu=future.
26250 (rs6000_opt_masks): Add entry for pcrel.
26251 (rs6000_fndecl_pcrel_p): New function.
26252 (rs6000_pcrel_p): Likewise.
26253 * config/rs6000/rs6000.opt (mpcrel): New option.
26254 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26255
26256 2019-05-23 Jan Hubicka <jh@suse.cz>
26257 Martin Liska <mliska@suse.cz>
26258
26259 PR tree-optimization/90576
26260 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26261 poly_int_tree_p.
26262 (aliasing_component_refs_p): Fix three way size compare conditional;
26263 give up earlier in case we can not decide on equivalence.
26264
26265 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26266 Michael Meissner <meissner@linux.ibm.com>
26267 Segher Boessenkool <segher@kernel.crashing.org>
26268
26269 * config.gcc: Add future cpu.
26270 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26271 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26272 #define.
26273 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26274 (RS6000_CPU): New instantiation for future cpu.
26275 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26276 PROCESSOR_FUTURE.
26277 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26278 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26279 * config/rs6000/rs6000-tables.opt: Regenerate.
26280 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26281 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26282 (rs6000_machine_from_flags): Handle future cpu.
26283 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26284 PROCESSOR_POWER9 for now.
26285 (rs6000_adjust_cost): Likewise.
26286 (rs6000_issue_rate): Likewise.
26287 (rs6000_register_move_cost): Likewise.
26288 (rs6000_opt_masks): Add entry for future.
26289 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26290 (MASK_FUTURE): New #define.
26291 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26292 * config/rs6000/rs6000.opt (mfuture): New target option.
26293 * doc/invoke.texi (mcpu): Add future cpu.
26294
26295 2019-05-23 Martin Liska <mliska@suse.cz>
26296
26297 PR c++/90587
26298 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26299 operation points to a temporary (pointed via tree_to_wide_ref)
26300 that is out of scope after the &.
26301
26302 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26303
26304 PR c++/90592
26305 * doc/extend.texi (Function Names): Add missing word.
26306
26307 2019-05-23 Richard Biener <rguenther@suse.de>
26308
26309 PR tree-optimization/88440
26310 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26311 at -O[2s]+.
26312 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26313 generated call.
26314 (generate_memcpy_builtin): Likewise.
26315 (distribute_loop): Pass in whether to only distribute patterns.
26316 (prepare_perfect_loop_nest): Also allow size optimization.
26317 (pass_loop_distribution::execute): When optimizing a loop
26318 nest for size allow pattern replacement.
26319
26320 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26321
26322 PR target/90568
26323 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26324 of xor.
26325
26326 2019-05-23 Martin Liska <mliska@suse.cz>
26327
26328 PR sanitizer/90570
26329 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26330 expression similarly to gimplify_decl_expr.
26331
26332 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26333
26334 * cse.c (cse_dump_path): s/dump_file/f.
26335
26336 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26337
26338 PR c++/90462
26339 * diagnostic-format-json.cc: Include "selftest.h".
26340 (json_from_expanded_location): Only add "file" key for non-NULL
26341 file strings.
26342 (json_from_location_range): Don't add "start" and "finish"
26343 children if they are UNKNOWN_LOCATION.
26344 (selftest::test_unknown_location): New selftest.
26345 (selftest::test_bad_endpoints): New selftest.
26346 (selftest::diagnostic_format_json_cc_tests): New function.
26347 * json.cc (json::object::get): New function.
26348 (selftest::test_object_get): New selftest.
26349 (selftest::json_cc_tests): Call it.
26350 * json.h (json::object::get): New decl.
26351 * selftest-run-tests.c (selftest::run_tests): Call
26352 selftest::diagnostic_format_json_cc_tests.
26353 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26354 decl.
26355
26356 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26357 Andrew Stubbs <amd@codesourcery.com>
26358
26359 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26360 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26361 (kernel): Rename to...
26362 (main_kernel): ... this.
26363 (load_image): Load _init_array and _fini_array kernels.
26364 (run): Add argument for kernel to run.
26365 (main): Run init_array_kernel before main_kernel, and
26366 fini_array_kernel after.
26367 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26368 amdgpu_hsa_kernel attribute on functions.
26369 (gcn_disable_constructors): Delete.
26370 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26371 * config/gcn/crt0.c (size_t): Define.
26372 (_init_array, _fini_array): New.
26373 (__preinit_array_start, __preinit_array_end,
26374 __init_array_start, __init_array_end,
26375 __fini_array_start, __fini_array_end): Declare weak references.
26376
26377 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26378
26379 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26380
26381 2019-05-22 Jason Merrill <jason@redhat.com>
26382
26383 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26384
26385 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26386
26387 PR target/88483
26388 * config/i386/i386-options.c (ix86_init_machine_status): Set
26389 stack_frame_required to true.
26390 * config/i386/i386.c (ix86_get_frame_size): New function.
26391 (ix86_frame_pointer_required): Replace get_frame_size with
26392 ix86_get_frame_size.
26393 (ix86_compute_frame_layout): Likewise.
26394 (ix86_find_max_used_stack_alignment): Changed to void. Set
26395 stack_frame_required.
26396 (ix86_finalize_stack_frame_flags): Always call
26397 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26398 ix86_get_frame_size.
26399 * config/i386/i386.h (machine_function): Add stack_frame_required.
26400
26401 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26402
26403 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26404
26405 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26406
26407 * common/config/aarch64/aarch64-common.c
26408 (struct aarch64_option_extension, struct processor_name_to_arch,
26409 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26410 aarch64_contains_opt,
26411 aarch64_get_extension_string_for_isa_flags): Change type of
26412 variables storing flags to uint64_t.
26413 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26414 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26415 * config/aarch64/aarch64.c (struct processor,
26416 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26417 aarch64_validate_march, aarch64_override_options,
26418 aarch64_option_print, aarch64_handle_attr_isa_flags,
26419 aarch64_declare_function_name, aarch64_start_file): Make flag
26420 variables uint64_t.
26421 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26422 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26423 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26424 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26425 * config/aarch64/driver-aarch64.c
26426 (struct aarch64_arch_extension, struct aarch64_core_data,
26427 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26428 flag variables uint64_t.
26429 * doc/invoke.texi: Add documentation for new arguments.
26430
26431 2019-05-22 Richard Biener <rguenther@suse.de>
26432
26433 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26434 rewrite ...
26435 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26436
26437 2019-05-22 Martin Liska <mliska@suse.cz>
26438
26439 PR lto/90500
26440 * doc/extend.texi: Document the change.
26441
26442 2019-05-22 Richard Biener <rguenther@suse.de>
26443
26444 PR tree-optimization/90450
26445 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26446 (mem_ref_hasher::equal): Check it.
26447 (mem_ref_alloc): Initialize it.
26448 (gather_mem_refs_stmt): Set it.
26449
26450 2019-05-22 Richard Biener <rguenther@suse.de>
26451
26452 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26453 Add ABS_EXPR.
26454 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26455 as ABSU_EXPR.
26456
26457 2019-05-22 Alan Modra <amodra@gmail.com>
26458
26459 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26460 (ASM_CPU_SPEC): Conditionally add -many.
26461 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26462 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26463 (rs6000_file_start): ..extracted from here, and modified to
26464 test all ISA bits.
26465 (rs6000_output_function_prologue): Emit .machine as necessary.
26466
26467 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26468
26469 PR middle-end/90553
26470 * ira-lives.c (process_bb_node_lives): Consider defs
26471 for a call insn to be die before the call, not after.
26472
26473 * function.c (assign_parm_setup_block): Raise alignment of
26474 stacked parameter only for STRICT_ALIGNMENT targets.
26475
26476 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26477
26478 * config/rs6000/constraints.md (define_register_constraint "wz"):
26479 Delete.
26480 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26481 RS6000_CONSTRAINT_wz.
26482 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26483 (rs6000_init_hard_regno_mode_ok): Adjust.
26484 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26485 * doc/md.texi (Machine Constraints): Adjust.
26486
26487 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26488
26489 * config/rs6000/constraints.md (define_register_constraint "wl"):
26490 Delete.
26491 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26492 RS6000_CONSTRAINT_wl.
26493 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26494 (rs6000_init_hard_regno_mode_ok): Adjust.
26495 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26496 * doc/md.texi (Machine Constraints): Adjust.
26497
26498 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26499
26500 * config/rs6000/constraints.md (define_register_constraint "wm"):
26501 Delete.
26502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26503 RS6000_CONSTRAINT_wm.
26504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26505 (rs6000_init_hard_regno_mode_ok): Adjust.
26506 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26507 * doc/md.texi (Machine Constraints): Adjust.
26508
26509 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26510
26511 * config/rs6000/constraints.md (define_register_constraint "wk"):
26512 Delete.
26513 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26514 RS6000_CONSTRAINT_wk.
26515 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26516 (rs6000_init_hard_regno_mode_ok): Adjust.
26517 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26518 * doc/md.texi (Machine Constraints): Adjust.
26519
26520 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26521
26522 * config/rs6000/constraints.md (define_register_constraint "wj"):
26523 Delete.
26524 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26525 RS6000_CONSTRAINT_wj.
26526 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26527 (rs6000_init_hard_regno_mode_ok): Adjust.
26528 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26529 (VS_64dm): Delete.
26530 * config/rs6000/vsx.md: Ditto.
26531 * doc/md.texi (Machine Constraints): Adjust.
26532
26533 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26534
26535 * config/rs6000/constraints.md (define_register_constraint "wh"):
26536 Delete.
26537 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26538 RS6000_CONSTRAINT_wh.
26539 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26540 (rs6000_init_hard_regno_mode_ok): Adjust.
26541 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26542 * doc/md.texi (Machine Constraints): Adjust.
26543
26544 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26545
26546 PR target/90547
26547 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26548 Avoid calling gen_lowpart with CONST operand.
26549
26550 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26551
26552 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26553 field template_last_to_copy.
26554 (ssa_create_duplicates): Set it, and use it. Attempt to
26555 preserve more debug stmts.
26556
26557 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26558
26559 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26560 (signbit<mode>2): New expander
26561
26562 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26563
26564 PR bootstrap/87338
26565 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26566 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26567
26568 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26569
26570 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26571 %ebx and %ecx bafore calling cpuid with leaf 1 or
26572 non-constant leaf argument.
26573
26574 2019-05-21 Alan Modra <amodra@gmail.com>
26575
26576 PR target/90545
26577 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26578 power9 direct move cost.
26579
26580 2019-05-21 Richard Biener <rguenther@suse.de>
26581
26582 PR middle-end/90510
26583 * fold-const.c (fold_read_from_vector): New function.
26584 * fold-const.h (fold_read_from_vector): Declare.
26585 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26586 single-element insert permutations. Canonicalize selector
26587 further and fix issue with last commit.
26588
26589 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26590
26591 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26592 parameter with default value false to declaration.
26593 (split_edges_for_insertion): New inline function. Wrapper for
26594 split_critical_edges with for_edge_insertion_p = true.
26595 * tree-cfg.c (split_critical_edges): Don't split non-critical
26596 edges if for_edge_insertion_p is false. Fix whitespace.
26597 * tree-ssa-pre.c (pass_pre::execute): Call
26598 split_edges_for_insertion instead of split_critical_edges.
26599 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26600 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26601 (pass_data_sink_code): Update function name in the comment.
26602
26603 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26604
26605 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26606 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26607 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26608 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26609 positives.
26610
26611 2019-05-21 Martin Liska <mliska@suse.cz>
26612
26613 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26614 an extra newline.
26615 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26616 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26617 vec_lvsr.
26618 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26619 Quote a C type.
26620 (rs6000_function_arg): Likewise.
26621 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26622 (rs6000_expand_ternop_builtin): Use interval syntax.
26623 (get_element_number): Likewise.
26624 (altivec_expand_builtin): Likewise.
26625 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26626
26627 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26628
26629 PR c++/59813
26630 PR target/90418
26631 * function.h (struct function): Add calls_eh_return member.
26632 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26633 gimplifying __builtin_eh_return call.
26634 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26635 to cfun.
26636 (expand_call_inline): Or in src_cfun->calls_eh_return into
26637 dst_cfun->calls_eh_return.
26638 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26639 cfun->calls_eh_return.
26640 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26641 * lto-streamer-out.c (output_struct_function_base): Write
26642 calls_eh_return.
26643
26644 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26645
26646 PR rtl-optimization/43147
26647 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26648 IX86_BUILTIN_SHUFPD.
26649
26650 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26651
26652 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26653 (refs_may_alias_p_1): ... here; update stats.
26654 (refs_may_alias_p): Do not update stats here.
26655
26656 2019-05-20 Richard Biener <rguenther@suse.de>
26657
26658 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26659 doesn't produce pointers.
26660 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26661 the first operand points to.
26662
26663 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26664
26665 * tree-ssa-alias.c (compare_sizes): New function.
26666 (sompare_type_sizes): New function
26667 (aliasing_component_refs_p): Use it.
26668 (indirect_ref_may_alias_decl_p): Likewise.
26669
26670 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26671
26672 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26673
26674 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26675
26676 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26677 (LIBLSAN_EARLY_SPEC): Likewise.
26678 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26679
26680 2019-05-20 Martin Liska <mliska@suse.cz>
26681
26682 * config/i386/i386.c (ix86_libc_has_fast_function):
26683 Add ATTRIBUTE_UNUSED for the argument.
26684
26685 2019-05-20 Richard Biener <rguenther@suse.de>
26686
26687 * gimple-match-head.c: Include vec-perm-indices.h.
26688 * generic-match-head.c: Likewise.
26689 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26690 is included.
26691 * fold-const.c (fold_vec_perm): Export.
26692 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26693 (match.pd): ...here.
26694
26695 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26696
26697 * cfgloop.h (struct loop): Add simdlen member.
26698 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26699 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26700 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26701 as new argument to autovectorize_vector_sizes target hook. If
26702 loop->simdlen, pick up vector size where the vectorization factor
26703 is equal to loop->simd, and if there is none, fall back to the first
26704 successful one.
26705 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26706 caller.
26707 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26708 * omp-general.c (omp_max_vf): Likewise.
26709 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26710 * tree-vect-slp.c (vect_slp_bb): Likewise.
26711 * target.def (autovectorize_vector_sizes): Add ALL argument and
26712 document it.
26713 * doc/tm.texi: Adjust documentation.
26714 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26715 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26716 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26717 bool argument.
26718 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26719 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26720 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26721 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26722 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26723 preferred vector size is not 512-bit or 256-bit, just put those
26724 unpreferred ones last.
26725
26726 2019-05-20 Martin Liska <mliska@suse.cz>
26727
26728 * targhooks.c (default_libc_has_fast_function): New function.
26729 * targhooks.h (default_libc_has_fast_function): Likewise.
26730
26731 2019-05-20 Martin Liska <mliska@suse.cz>
26732
26733 PR middle-end/90263
26734 * builtins.c (expand_builtin_memory_copy_args): When having a
26735 target with fast mempcpy implementation do now use memcpy.
26736 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26737 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26738 * doc/tm.texi: Likewise.
26739 * doc/tm.texi.in: Likewise.
26740 * target.def:
26741 * expr.c (emit_block_move_hints): Add 2 new arguments.
26742 * expr.h (emit_block_move_hints): Bail out when libcall
26743 to memcpy would be used.
26744
26745 2019-05-20 Martin Liska <mliska@suse.cz>
26746
26747 * profile-count.c: Add vertical spacing in order
26748 to separate functions.
26749 * profile-count.h: Likewise.
26750
26751 2019-05-20 Martin Liska <mliska@suse.cz>
26752
26753 * profile-count.h: Do not use full qualified
26754 names if possible.
26755 * profile-count.c (profile_count::to_frequency): Likewise.
26756
26757 2019-05-20 Martin Liska <mliska@suse.cz>
26758
26759 * profile-count.h (enum profile_quality): Use capital letters
26760 for enum value names. Use the adjusted names.
26761 * profile-count.c: Use the adjusted names.
26762
26763 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26764
26765 * config/rs6000/constraints.md (define_register_constraint "wH"):
26766 Delete.
26767 (define_register_constraint "wI"): Delete.
26768 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26769 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26770 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26771 (rs6000_init_hard_regno_mode_ok): Adjust.
26772 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26773 resp. "d", or with "wa" as appropriate, all with "p8v".
26774 * config/rs6000/vsx.md: Ditto.
26775 * doc/md.texi (Machine Constraints): Adjust.
26776
26777 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26778
26779 * config/rs6000/constraints.md (define_register_constraint "wy"):
26780 Delete.
26781 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26782 RS6000_CONSTRAINT_wy.
26783 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26784 (rs6000_init_hard_regno_mode_ok): Adjust.
26785 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26786 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26787 (define_mode_attr Fisa): New.
26788 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26789 * doc/md.texi (Machine Constraints): Adjust.
26790
26791 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26792
26793 * config/rs6000/constraints.md (define_register_constraint "wu"):
26794 Delete.
26795 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26796 RS6000_CONSTRAINT_wu.
26797 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26798 (rs6000_init_hard_regno_mode_ok): Adjust.
26799 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26800 both with "p8v".
26801 (define_mode_attr Fa): Delete.
26802 * config/rs6000/vsx.md: Ditto.
26803 * doc/md.texi (Machine Constraints): Adjust.
26804
26805 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26806
26807 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26808 Delete.
26809 (define_register_constraint "wK"): Delete.
26810 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26811 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26812 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26813 (rs6000_init_hard_regno_mode_ok): Adjust.
26814 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26815 Replace "wK" constraint by "wH" with "p9v".
26816 * config/rs6000/vsx.md: Ditto.
26817 * doc/md.texi (Machine Constraints): Adjust.
26818
26819 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26820
26821 * config/rs6000/constraints.md (define_register_constraint "wb"):
26822 Delete.
26823 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26824 RS6000_CONSTRAINT_wb.
26825 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26826 (rs6000_init_hard_regno_mode_ok): Adjust.
26827 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26828 * config/rs6000/vsx.md: Ditto.
26829 * doc/md.texi (Machine Constraints): Adjust.
26830
26831 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26832
26833 * config/rs6000/constraints.md (define_register_constraint "wo"):
26834 Delete.
26835 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26836 RS6000_CONSTRAINT_wo.
26837 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26838 (rs6000_init_hard_regno_mode_ok): Adjust.
26839 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26840 * config/rs6000/altivec.md: Ditto.
26841 * doc/md.texi (Machine Constraints): Adjust.
26842
26843 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26844
26845 * config/darwin-c.c (darwin_register_objc_includes): Do not
26846 prepend the sysroot when building gnu-runtime header search
26847 paths.
26848
26849 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26850
26851 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26852 instead of direct output of the asm.
26853
26854 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26855
26856 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26857 argument to be type bool (was int before).
26858 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26859 at first use. Use type bool for some variables. Fix a theoretical
26860 eh_return bug for svr4.
26861
26862 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26863
26864 * config/rs6000/rs6000.md (isa): New attribute.
26865 (enabled): New attribute.
26866
26867 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26868
26869 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26870 assemble_start_function and assemble_end_function.
26871
26872 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26873
26874 PR middle-end/89433
26875 * omp-general.c (oacc_verify_routine_clauses): Change formal
26876 parameters. Add checking if already marked with an OpenACC
26877 'routine' directive. Adjust all users.
26878
26879 PR middle-end/89433
26880 * omp-general.c (oacc_build_routine_dims): Move some of its
26881 processing into...
26882 (oacc_verify_routine_clauses): ... this new function.
26883 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26884
26885 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26886
26887 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26888 formating of picbase labels to match other ports.
26889
26890 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26891
26892 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26893 in the generated code.
26894
26895 2019-05-16 Martin Sebor <msebor@redhat.com>
26896
26897 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26898 identifiers, keywords, operators, and types in diagnostics. Correct
26899 quoting, spelling, and sentence capitalization issues.
26900 (expand_builtin_atomic_is_lock_free): Same.
26901 (fold_builtin_next_arg): Same.
26902 * cfgexpand.c (expand_one_var): Same.
26903 (tree_conflicts_with_clobbers_p): Same.
26904 (expand_asm_stmt): Same.
26905 (verify_loop_structure): Same.
26906 * cgraphunit.c (process_function_and_variable_attributes): Same.
26907 * collect-utils.c (collect_execute): Same.
26908 * collect2.c (maybe_run_lto_and_relink): Same.
26909 (is_lto_object_file): Same.
26910 (scan_prog_file): Same.
26911 * convert.c (convert_to_real_1): Same.
26912 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26913 * except.c (verify_eh_tree): Same.
26914 * gcc.c (execute): Same.
26915 (eval_spec_function): Same.
26916 (run_attempt): Same.
26917 (driver::set_up_specs): Same.
26918 (compare_debug_auxbase_opt_spec_function): Same.
26919 * gcov-tool.c (unlink_gcda_file): Same.
26920 (do_merge): Same.
26921 (do_rewrite): Same.
26922 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26923 * gimplify.c (gimplify_asm_expr): Same.
26924 (gimplify_adjust_omp_clauses): Same.
26925 * hsa-gen.c (gen_hsa_addr_insns): Same.
26926 (gen_hsa_insns_for_load): Same.
26927 (gen_hsa_cmp_insn_from_gimple): Same.
26928 (gen_hsa_insns_for_operation_assignment): Same.
26929 (gen_get_level): Same.
26930 (gen_hsa_alloca): Same.
26931 (omp_simple_builtin::generate): Same.
26932 (gen_hsa_atomic_for_builtin): Same.
26933 (gen_hsa_insns_for_call): Same.
26934 * input.c (dump_location_info): Same.
26935 * ipa-devirt.c (compare_virtual_tables): Same.
26936 * ira.c (ira_setup_eliminable_regset): Same.
26937 * lra-assigns.c (lra_assign): Same.
26938 * lra-constraints.c (lra_constraints): Same.
26939 * lto-streamer-in.c (lto_input_mode_table): Same.
26940 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26941 (merge_and_complain): Same.
26942 (compile_offload_image): Same.
26943 (compile_images_for_offload_targets): Same.
26944 (debug_objcopy): Same.
26945 (run_gcc): Same.
26946 (main): Same.
26947 * opts.c (print_specific_help): Same.
26948 (parse_no_sanitize_attribute): Same.
26949 (print_help): Same.
26950 (handle_param): Same.
26951 * plugin.c (add_new_plugin): Same.
26952 (parse_plugin_arg_opt): Same.
26953 (try_init_one_plugin): Same.
26954 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26955 operators, and types in diagnostics. Correct quoting and spelling
26956 issues.
26957 * read-rtl-function.c (parse_edge_flag_token): Same.
26958 (function_reader::parse_enum_value): Same.
26959 * reg-stack.c (check_asm_stack_operands): Same.
26960 * regcprop.c (validate_value_data): Same.
26961 * sched-rgn.c (make_pass_sched_fusion): Same.
26962 * stmt.c (check_unique_operand_names): Same.
26963 * targhooks.c (default_target_option_pragma_parse): Same.
26964 * tlink.c (recompile_files): Same.
26965 * toplev.c (process_options): Same.
26966 (do_compile): Same.
26967 * trans-mem.c (diagnose_tm_1): Same.
26968 (ipa_tm_scan_irr_block): Same.
26969 (ipa_tm_diagnose_transaction): Same.
26970 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26971 format a tree code name in a diagnostic.
26972 (verify_types_in_gimple_min_lval): Same.
26973 (verify_types_in_gimple_reference): Same.
26974 (verify_gimple_call): Same.
26975 (verify_gimple_assign_unary): Same.
26976 (verify_gimple_assign_binary): Same.
26977 (verify_gimple_assign_ternary): Same.
26978 (verify_gimple_assign_single): Same.
26979 (verify_gimple_switch): Same.
26980 (verify_gimple_label): Same.
26981 (verify_gimple_phi): Same.
26982 (verify_gimple_in_seq): Same.
26983 (verify_eh_throw_stmt_node): Same.
26984 (collect_subblocks): Same.
26985 (gimple_verify_flow_info): Same.
26986 (do_warn_unused_result): Same.
26987 * tree-inline.c (expand_call_inline): Same.
26988 * tree-into-ssa.c (update_ssa): Same.
26989 * tree.c (tree_int_cst_elt_check_failed): Same.
26990 (tree_vec_elt_check_failed): Same.
26991 (omp_clause_operand_check_failed): Same.
26992 (verify_type_variant): Same.
26993 (verify_type): Same.
26994 * value-prof.c (verify_histograms): Same.
26995 * varasm.c (assemble_start_function): Same.
26996
26997 2019-05-16 Martin Sebor <msebor@redhat.com>
26998
26999 * config/i386/i386-expand.c (get_element_number): Quote keywords
27000 and other internal names in diagnostics. Adjust other diagnostic
27001 formatting issues noted by -Wformat-diag.
27002 * config/i386/i386-features.c
27003 (ix86_mangle_function_version_assembler_name): Same.
27004 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27005 * config/i386/i386.c (ix86_function_type_abi): Same.
27006 (ix86_function_ms_hook_prologue): Same.
27007 (classify_argument): Same.
27008 (ix86_expand_prologue): Same.
27009 (ix86_md_asm_adjust): Same.
27010 (ix86_memmodel_check): Same.
27011
27012 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27013
27014 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27015 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27016 and fpxx modes.
27017
27018 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27019
27020 PR target/90497
27021 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27022 intrinsics without SSE/SSE2/SSSE3.
27023 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27024 check.
27025 (*mmx_uavgv8qi3): Likewise.
27026
27027 2019-05-17 Richard Biener <rguenther@suse.de>
27028
27029 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27030 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27031
27032 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27033
27034 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27035 vec_sldw insn pattern.
27036
27037 2019-05-17 Richard Biener <rguenther@suse.de>
27038
27039 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27040
27041 2019-05-17 Martin Liska <mliska@suse.cz>
27042
27043 PR driver/90496
27044 * toplev.c (output_stack_usage): With LTO and sanitizer it
27045 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27046 has no file location.
27047
27048 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27049
27050 PR c++/90484
27051 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27052 sz0 is equal to sz1, instead return false in that case.
27053
27054 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27055 has non-constant expression, force sctx.lane and use two
27056 argument IFN_GOMP_SIMD_LANE instead of single argument.
27057 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27058 two argument IFN_GOMP_SIMD_LANE without lhs.
27059 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27060 member.
27061 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27062 Define.
27063 (LOOP_REQUIRES_VERSIONING): Or in
27064 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27065 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27066 simd_if_cond.
27067 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27068 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27069 from simd if clause if needed.
27070
27071 2019-05-16 Richard Biener <rguenther@suse.de>
27072
27073 * tree-affine.c (expr_to_aff_combination): New function split
27074 out from...
27075 (tree_to_aff_combination): ... here.
27076 (aff_combination_expand): Avoid building a GENERIC tree.
27077
27078 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27079
27080 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27081 assemble_start_function and assemble_end_function calls.
27082 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27083 assemble_start_function and assemble_end_function.
27084 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27085 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27086 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27087 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27088 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27089 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27090 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27091 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27092 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27093 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27094 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27095 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27096 Likewise.
27097 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27098 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27099 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27100 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27101 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27102 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27103 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27104 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27105 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27106 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27107 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27108 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27109 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27110 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27111 Likewise.
27112 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27113 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27114 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27115
27116 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27117
27118 * tree-ssa-alias.c (alias_stats): Add
27119 aliasing_component_refs_p_may_alias and
27120 aliasing_component_refs_p_no_alias.
27121 (dump_alias_stats): Print aliasing_component_refs_p stats.
27122 (aliasing_component_refs_p): Update stats.
27123
27124 2019-05-16 Martin Liska <mliska@suse.cz>
27125
27126 PR lto/90500
27127 * multiple_target.c (expand_target_clones): Do not allow
27128 target_clones being used with a symbol that is an alias.
27129
27130 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27131
27132 PR tree-optimization/90394
27133 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27134 positives rather than ICE for cases where (code2 == NE_EXPR
27135 && code1 == BIT_AND_EXPR).
27136
27137 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27138
27139 PR fortran/90329
27140 * tree-core.h (struct tree_decl_common): Document
27141 decl_nonshareable_flag for PARM_DECLs.
27142 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27143 * calls.c (expand_call): Don't try tail call if caller
27144 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27145 passed on the stack and callee needs to pass any arguments on the
27146 stack.
27147 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27148 else if instead of series of mutually exclusive ifs. Handle
27149 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27150 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27151
27152 * lto-streamer.h (LTO_major_version): Bump to 9.
27153
27154 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27155
27156 PR tree-optimization/90106
27157 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27158 new parameter as new internal function call, also move it to new
27159 basic block.
27160 (use_internal_fn): Pass internal function call to
27161 shrink_wrap_one_built_in_call_with_conds.
27162
27163 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27164
27165 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27166 max_vf to 1.
27167 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27168 safelen_int and set loop->dont_vectorize.
27169
27170 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27171
27172 PR target/89021
27173 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27174 SSE/SSE2/SSSE3.
27175 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27176 Likewise.
27177 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27178 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27179 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27180 is defined.
27181
27182 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 PR target/89021
27185 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27186 define_insn_and_split to support SSE emulation.
27187 (*vec_extractv2sf_0): Likewise.
27188 (*vec_extractv2sf_1): Likewise.
27189 (*vec_extractv2si_0): Likewise.
27190 (*vec_extractv2si_1): Likewise.
27191 (*vec_extractv2si_zext_mem): Likewise.
27192 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27193 (vec_extractv2sf_1 splitter): Likewise.
27194 (vec_extractv2sfsf): Likewise.
27195 (vec_setv2si): Likewise.
27196 (vec_extractv2si_1 splitter): Likewise.
27197 (vec_extractv2sisi): Likewise.
27198 (vec_setv4hi): Likewise.
27199 (vec_extractv4hihi): Likewise.
27200 (vec_setv8qi): Likewise.
27201 (vec_extractv8qiqi): Likewise.
27202 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27203 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27204 (vec_extractv2sisi): Likewise.
27205 (vec_extractv4hihi): Likewise.
27206 (vec_extractv8qiqi): Likewise.
27207 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27208 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27209 (vec_initv2sisi): Likewise.
27210 (vec_initv4hihi): Likewise.
27211 (vec_initv8qiqi): Likewise.
27212 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27213 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27214 (vec_setv4hi): Likewise.
27215 (vec_setv8qi): Likewise.
27216
27217 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27218
27219 PR target/89021
27220 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27221 TARGET_MMX_WITH_SSE.
27222 (MMXMODE:*mov<mode>_internal): Likewise.
27223 (MMXMODE:movmisalign<mode>): Likewise.
27224
27225 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27226
27227 PR target/89021
27228 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27229 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27230 (sse2_cvtpd2pi): Ditto.
27231 (sse2_cvttpd2pi): Ditto.
27232 (*vec_concatv2sf_sse4_1): Ditto.
27233 (*vec_concatv2sf_sse): Ditto.
27234 (*vec_concatv2si_sse4_1): Ditto.
27235 (*vec_concatv2si): Ditto.
27236 (*vec_concatv4si_0): Ditto.
27237 (*vec_concatv2di_0): Ditto.
27238
27239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27240
27241 PR target/89021
27242 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27243
27244 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27245
27246 PR target/89021
27247 * config/i386/sse.md (ssse3_palignrdi): Changed to
27248 define_insn_and_split to support 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_psign<mode>3): Add SSE emulation.
27254
27255 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27256
27257 PR target/89021
27258 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27259 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27260 SSE emulation.
27261
27262 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27263
27264 PR target/89021
27265 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27266 or TARGET_MMX_WITH_SSE.
27267 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27268
27269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27270
27271 PR target/89021
27272 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27273
27274 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27275
27276 PR target/89021
27277 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27278 Changed to define_insn_and_split to support 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>wv4hi3):
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/mmx.md (mmx_<emms>): Renamed to ...
27290 (*mmx_<emms>): This.
27291 (mmx_<emms>): New expander.
27292
27293 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27294
27295 PR target/89021
27296 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27297 support.
27298 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27299
27300 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27301
27302 PR target/89021
27303 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27304
27305 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27306
27307 PR target/89021
27308 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27309
27310 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27311
27312 PR target/89021
27313 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27314 TARGET_MMX_WITH_SSE.
27315 (*mmx_uavgv4hi3): Add SSE emulation.
27316
27317 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27318
27319 PR target/89021
27320 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27321 and TARGET_MMX_WITH_SSE.
27322 (*mmx_uavgv8qi3): Add SSE emulation.
27323
27324 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27325
27326 PR target/89021
27327 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27328 maskmovdqu for __MMX_WITH_SSE__.
27329
27330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27331
27332 PR target/89021
27333 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27334 TARGET_MMX and TARGET_MMX_WITH_SSE.
27335 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27336
27337 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27338
27339 PR target/89021
27340 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27341 define_insn_and_split to support 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_<code>v4hi3): Also check TARGET_MMX
27347 and TARGET_MMX_WITH_SSE.
27348 (mmx_<code>v8qi3): Likewise.
27349 (smaxmin:<code>v4hi3): New.
27350 (umaxmin:<code>v8qi3): Likewise.
27351 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27352 (umaxmin:*mmx_<code>v8qi3): Likewise.
27353
27354 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27355
27356 PR target/89021
27357 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27358 TARGET_MMX_WITH_SSE.
27359 (*mmx_pinsrw): Add SSE emulation.
27360
27361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27362
27363 PR target/89021
27364 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27365
27366 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27367
27368 PR target/89021
27369 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27370 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27371 SSE emulation.
27372
27373 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27374
27375 PR target/89021
27376 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27377 (sse_cvttps2pi): Likewise.
27378
27379 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27380
27381 PR target/89021
27382 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27383 TARGET_MMX_WITH_SSE.
27384 (mmx_pshufw_1): Add SSE emulation.
27385 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27386 TARGET_MMX_WITH_SSE to support SSE emulation.
27387
27388 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27389
27390 PR target/89021
27391 * config/i386/constraints.md (Yw): New constraint.
27392 * config/i386/mmx.md (*vec_dupv2si): Changed to
27393 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27394 support SSE emulation.
27395
27396 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27397
27398 PR target/89021
27399 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27400 TARGET_MMX_WITH_SSE.
27401 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27402 support.
27403 (mmx_gt<mode>3): Likewise.
27404
27405 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27406
27407 PR target/89021
27408 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27409 TARGET_MMX_WITH_SSE. Add SSE support.
27410
27411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27412
27413 PR target/89021
27414 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27415 TARGET_MMX_WITH_SSE.
27416 (any_logic:<code><mode>3): New.
27417 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27418 Add SSE support.
27419
27420 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27421
27422 PR target/89021
27423 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27424 TARGET_MMX_WITH_SSE. Add SSE emulation.
27425 (mmx_<shift_insn><mode>3): Likewise.
27426 (ashr<mode>3): New.
27427 (<shift_insn><mode>3): Likewise.
27428
27429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27430
27431 PR target/89021
27432 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27433 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27434
27435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27436
27437 PR target/89021
27438 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27439 TARGET_MMX_WITH_SSE.
27440 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27441 SSE support.
27442
27443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27444
27445 PR target/89021
27446 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27447 TARGET_MMX_WITH_SSE.
27448 (mulv4hi3): New.
27449 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27450 support.
27451
27452 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27453
27454 PR target/89021
27455 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27456 (plusminus:mmx_<plusminus_insn><mode>3): Check
27457 TARGET_MMX_WITH_SSE.
27458 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27459 (<plusminus_insn><mode>3): New.
27460 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27461 (*mmx_<plusminus_insn><mode>3): Likewise.
27462
27463 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27464
27465 PR target/89021
27466 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27467 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27468 prototype.
27469 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27470 define_insn_and_split to support SSE emulation.
27471 (mmx_punpcklbw): Likewise.
27472 (mmx_punpckhwd): Likewise.
27473 (mmx_punpcklwd): Likewise.
27474 (mmx_punpckhdq): Likewise.
27475 (mmx_punpckldq): Likewise.
27476
27477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27478 Uros Bizjak <ubizjak@gmail.com>
27479
27480 PR target/89021
27481 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27482 New function.
27483 (ix86_split_mmx_pack): Likewise.
27484 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27485 New prototype.
27486 (ix86_split_mmx_pack): Likewise.
27487 * config/i386/i386.md (mmx_isa): New.
27488 (enabled): Also check mmx_isa.
27489 * config/i386/mmx.md (any_s_truncate): New code iterator.
27490 (s_trunsuffix): New code attr.
27491 (mmx_packsswb): Removed.
27492 (mmx_packssdw): Likewise.
27493 (mmx_packuswb): Likewise.
27494 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27495 MMX packsswb/packuswb with SSE2.
27496 (mmx_packssdw): Likewise.
27497 * config/i386/predicates.md (register_mmxmem_operand): New.
27498
27499 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27500
27501 PR target/89021
27502 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27503 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27504 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27505 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27506 (ix86_vector_mode_supported_p): Likewise.
27507 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27508
27509 2019-05-15 Martin Liska <mliska@suse.cz>
27510
27511 PR middle-end/90478
27512 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27513 Check for overflow.
27514
27515 2019-05-15 Richard Biener <rguenther@suse.de>
27516
27517 * tree-into-ssa.c (pass_build_ssa::execute): Run
27518 update_address_taken before going into SSA.
27519
27520 2019-05-15 Richard Biener <rguenther@suse.de>
27521
27522 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27523 as __BIT_FIELD_REF with type with -gimple.
27524
27525 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27526
27527 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27528 semantically equivalent branches (left over after prior refactorings).
27529
27530 2019-05-15 Richard Biener <rguenther@suse.de>
27531
27532 PR tree-optimization/88828
27533 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27534 bogus check.
27535
27536 2019-05-14 Richard Biener <rguenther@suse.de>
27537
27538 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27539 as __VIEW_CONVERT with -gimple.
27540
27541 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27542
27543 PR target/82920
27544 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27545 Darwin.
27546
27547 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27548
27549 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27550 define_split to become a define_insn_and_split.
27551
27552 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27553
27554 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27555 arguments.
27556 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27557 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27558 (sibcall_epilogue): Adjust.
27559 (epilogue): Adjust.
27560
27561 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27562
27563 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27564 to unsupported ones.
27565 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27566 * config.host: Likewise.
27567 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27568 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27569 __svr4__]: Remove "brand" fallback.
27570 [!KSTAT_DATA_STRING]: Remove.
27571 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27572 to *-*-solaris2*.
27573 (comdat_group): Likewise.
27574 (set_have_as_tls): Likewise.
27575 (gcc_cv_target_dl_iterate_phdr): Likewise.
27576 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27577 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27578 * configure: Regenerate.
27579 * doc/install.texi: Simplify Solaris target triplets.
27580 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27581 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27582 Remove Solaris 10 references.
27583 Remove obsolete Solaris bug reference.
27584 (Specific, sparc-sun-solaris2.10): Remove.
27585
27586 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27587
27588 * config/i386/i386.md (any_div): New code iterator.
27589 (paired_mod): New code attribute.
27590 (sgnprefix): Handle DIV and UDIV RTXes.
27591 (u): Ditto.
27592 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27593 and udivmod<mode>4 patterns using any_div code iterator.
27594 (divmod splitters): Macroize splitters using any_div code iterator.
27595 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27596 (*udivmodsi4_pow2_zext_2): Ditto.
27597 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27598 and *udivmod<mode>4_noext patterns using any_div code iterator.
27599 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27600 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27601 patterns using any_div code iterator.
27602 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27603 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27604 patterns using any_div code iterator.
27605 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27606 udivmodhiqi3 patterns using any_extend code iterator.
27607
27608 2019-05-14 Richard Biener <rguenther@suse.de>
27609 H.J. Lu <hongjiu.lu@intel.com>
27610
27611 PR tree-optimization/88828
27612 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27613 permuting in a single non-constant element not extracted
27614 from a vector.
27615
27616 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27617
27618 * internal-fn.def (SIGNBIT): New.
27619 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27620 defined.
27621 (signbitv4sf2): Likewise.
27622
27623 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27624
27625 PR target/90357
27626 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27627 next insn when the SRC reg is dead.
27628
27629 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27630
27631 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27632 (alloc_cand_and_find_basis): Ditto.
27633 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27634 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27635 (create_add_imm_cand, slsr_process_cast): Ditto.
27636 (slsr_process_copy, replace_mult_candidate): Ditto.
27637 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27638 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27639 (pass_strength_reduction::execute): Init the first NULL element.
27640
27641 2019-05-13 Nathan Sidwell <nathan@acm.org>
27642
27643 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27644 (run_attempt): Reformat line break.
27645
27646 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27647
27648 PR target/90418
27649 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27650 data registers in sibcall epilogues.
27651 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27652
27653 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27654
27655 PR target/89221
27656 * configure.ac (--enable-frame-pointer):
27657 Disable by default for cygwin and mingw.
27658 * configure: Regenerate.
27659
27660 2019-05-13 Nathan Sidwell <nathan@acm.org>
27661
27662 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27663 piece of code.
27664 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27665 (gen_member_die): Move abstract origin check earlier. Only VARs
27666 can be static_inline_p. Simplify splicing control flow.
27667
27668 2019-05-13 Richard Biener <rguenther@suse.de>
27669
27670 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27671 VIEW_CONVERT_EXPR.
27672 (vect_build_slp_tree_1): Likewise.
27673
27674 2019-05-13 Richard Biener <rguenther@suse.de>
27675
27676 PR tree-optimization/90402
27677 * tree-if-conv.c (tree_if_conversion): Value number only
27678 the loop body by making the latch an exit of the region
27679 as well.
27680 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27681 processing PHIs.
27682 (do_rpo_vn): Deal with multiple edges into the entry block
27683 that are not backedges inside the region by skipping PHIs
27684 of the entry block.
27685
27686 2019-05-13 Richard Biener <rguenther@suse.de>
27687
27688 PR tree-optimization/90316
27689 * tree-ssa-pre.c (insert_aux): Fold into ...
27690 (insert): ... this function. Use a RPO walk to reduce the
27691 number of required iterations.
27692
27693 2019-05-13 Martin Liska <mliska@suse.cz>
27694
27695 PR tree-optimization/90416
27696 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27697 string instead of passing the second part as va_arg argument.
27698
27699 2019-05-13 Martin Liska <mliska@suse.cz>
27700
27701 PR gcov-profile/90380
27702 * gcov.c (handle_cycle): Do not support zero cycle count,
27703 it should not be possible.
27704 (path_contains_zero_cycle_arc): New function.
27705 (circuit): Ignore zero cycle arc counts.
27706
27707 2019-05-13 Martin Liska <mliska@suse.cz>
27708
27709 PR gcov-profile/90380
27710 * gcov.c (enum loop_type): Remove the enum and
27711 the operator.
27712 (handle_cycle): Assert that we should not reach
27713 a negative count.
27714 (circuit): Use loop_found instead of a tri-state loop_type.
27715 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27716 happen.
27717
27718 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27719
27720 PR target/82920
27721 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27722 (ix86_output_indirect_branch_via_reg): Use output mechanism
27723 accounting for __USER_LABEL_PREFIX__.
27724 (ix86_output_indirect_branch_via_push): Likewise.
27725 (ix86_output_function_return): Likewise.
27726 (ix86_output_indirect_function_return): Likewise.
27727
27728 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27729
27730 * doc/md.texi: Document use of code attributes in rtx patterns.
27731 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27732 * read-rtl.c (find_code): Split out search loops into...
27733 (maybe_find_code): ...this new function.
27734 (check_code_iterator): Make the error message more informative.
27735 (check_code_attribute): New function.
27736 (rtx_reader::rtx_alloc_for_name): Likewise.
27737 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27738 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27739 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27740 <max_opp> directly as an rtx code instead of via a match_operator.
27741 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27742 (<su>abd<mode>_3): Update accordingly.
27743
27744 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27745
27746 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27747 is given, print the state of the EH "save world" computation for
27748 Darwin.
27749
27750 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27751
27752 PR c++/59813
27753 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27754 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27755
27756 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27757
27758 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27759 Use pinsrd for TARGET_SSE4_1.
27760 * config/i386/sse.md (movdi_to_sse): Ditto.
27761
27762 2019-05-10 Richard Biener <rguenther@suse.de>
27763
27764 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27765 (do_rpo_vn): Initialize next_value_id.
27766
27767 2019-05-10 Martin Liska <mliska@suse.cz>
27768
27769 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27770 Fix plural form.
27771
27772 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27773
27774 PR tree-optimization/90385
27775 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27776 arguments of the exit phis.
27777
27778 PR c++/90383
27779 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27780 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27781 id->do_not_fold.
27782 (copy_tree_body_r): Likewise.
27783 (copy_fn): Set id.do_not_fold to true.
27784
27785 2019-05-10 Martin Liska <mliska@suse.cz>
27786
27787 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27788 Reapply changes from r269790.
27789
27790 2019-05-10 Martin Liska <mliska@suse.cz>
27791
27792 PR middle-end/90340
27793 * doc/invoke.texi: New params.
27794 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27795 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27796 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27797 Use it.
27798 * tree-switch-conversion.h (struct jump_table_cluster):
27799 Likewise.
27800
27801 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27802
27803 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27804
27805 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27806
27807 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27808
27809 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27810
27811 PR rtl-optimization/88879
27812 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27813
27814 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27815
27816 PR target/90405
27817 * config/arm/arm.c (callee_saved_reg_p): Move before
27818 thumb_find_work_register.
27819 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27820 thumb_find_work_register. Only call df_get_live_out once.
27821 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27822 (thumb_find_work_register): Use
27823 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27824 algorithms to locate a spare call clobbered reg.
27825
27826 2019-05-09 Martin Liska <mliska@suse.cz>
27827
27828 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27829 and MAX_EXPR in GIMPLE FE format.
27830
27831 2019-05-09 Martin Liska <mliska@suse.cz>
27832
27833 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27834 * gimple-pretty-print.c (dump_gimple_bb_header):
27835 Dump BB count.
27836 (pp_cfg_jump): Dump edge probability.
27837 * profile-count.c (profile_quality_as_string): Simplify
27838 with a static array.
27839 (parse_profile_quality): New function.
27840 (profile_count::dump): Simplify with a static array.
27841 (profile_count::from_gcov_type): Add new argument.
27842 * profile-count.h (parse_profile_quality): Likewise.
27843 * predict.h (set_hot_bb_threshold): New.
27844 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27845 New param.
27846 * predict.c (get_hot_bb_threshold): Set from the new param.
27847 (set_hot_bb_threshold): New.
27848
27849 2019-05-09 Richard Biener <rguenther@suse.de>
27850
27851 PR tree-optimization/90395
27852 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27853 rewrite vector stores that throw internally.
27854
27855 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27856
27857 * cif-code.def (CHKP): Remove.
27858
27859 PR target/89221
27860 * configure.ac (--enable-frame-pointer): Disable by default for
27861 GNU systems.
27862 * configure: Regenerate.
27863
27864 2019-05-09 Alan Modra <amodra@gmail.com>
27865
27866 PR target/89271
27867 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27868 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27869 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27870 cost for general <-> vsx when direct moves are available.
27871 Cost union classes at minimal cost for any reg in the class.
27872 Correct calculation for moves between vsx, float, and altivec.
27873 Don't return a low cost for moves between special regs. Don't
27874 use hard coded register numbers.
27875 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27876 (rs6000_ira_change_pseudo_allocno_class): New function.
27877 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27878 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27879 alternatives.
27880 (movsi_internal1): Don't disparage vector alternatives.
27881 (mov<mode>_internal): Likewise, excepting alternative that
27882 will be split.
27883 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27884 we <- b alternative.
27885
27886 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27887
27888 PR c++/59813
27889 PR tree-optimization/89060
27890 * tree-ssa-live.h (live_vars_map): New typedef.
27891 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27892 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27893 (struct compute_live_vars_data): New type.
27894 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27895 live_vars_at_stmt, destroy_live_vars): New functions.
27896 * tree-tailcall.c: Include tree-ssa-live.h.
27897 (live_vars, live_vars_vec): New global variables.
27898 (find_tail_calls): Perform variable life analysis before punting.
27899 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27900 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27901 member.
27902 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27903 Perform variable life analysis to select variables that really need
27904 clobbers added.
27905 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27906 instead set id->eh_landing_pad_dest and assert it is the same.
27907 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27908
27909 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27910 Richard Earnshaw <rearnsha@arm.com>
27911
27912 PR target/88167
27913 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27914 function.
27915 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27916 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27917 register if both the epilogue and prologue can use call-clobbered
27918 regs.
27919 (thumb1_unexpanded_epilogue): Use
27920 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27921 picking temporaries for restoring high regs to match that of the
27922 prologue where possible.
27923 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27924 the list of work registers. Detect if the return address is still live
27925 at the end of the prologue and avoid using it for a work register if so.
27926 If the return address is not live, add LR to the list of pushable regs
27927 after the first pass.
27928
27929 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27930
27931 PR tree-optimization/90078
27932 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27933 (INFTY): Increase the value for infinite cost.
27934 (struct comp_cost): Promote type of members to int64_t.
27935 (infinite_cost): Don't set complexity in initialization.
27936 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27937 overflows to infinite_cost.
27938 (adjust_setup_cost): Promote type of parameter and cost computation
27939 to int64_t.
27940 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27941 int64_t.
27942 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27943 cost computation to int64_t.
27944 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27945 int64_t's format specifier in dump.
27946
27947 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27948
27949 PR tree-optimization/90240
27950 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27951 with respect to scaling factor pre-computed for each basic block.
27952 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27953 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27954 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27955 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27956 live range for array of loop's basic blocks. Cleanup aux field of
27957 loop's basic blocks.
27958
27959 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27960
27961 PR tree-optimization/90356
27962 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27963
27964 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27965
27966 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27967 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27968 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27969 (ix86_handle_option): Handle -mavx512bf16.
27970 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27971 to extra_headers.
27972 * config/i386/avx512bf16vlintrin.h: New.
27973 * config/i386/avx512bf16intrin.h: New.
27974 * config/i386/cpuid.h (bit_AVX512BF16): New.
27975 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27976 * config/i386/i386-builtin-types.def: Add new types.
27977 * config/i386/i386-builtin.def: Add new builtins.
27978 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27979 __AVX512BF16__.
27980 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27981 (ix86_option_override_internal): Handle BF16.
27982 (ix86_valid_target_attribute_inner_p): Ditto.
27983 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27984 * config/i386/i386-builtin.c (enum processor_features): Add
27985 F_AVX512BF16.
27986 (static const _isa_names_table isa_names_table): Ditto.
27987 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27988 (PTA_AVX512BF16): Ditto.
27989 * config/i386/i386.opt: Add -mavx512bf16.
27990 * config/i386/immintrin.h: Include avx512bf16intrin.h
27991 and avx512bf16vlintrin.h.
27992 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27993 avx512f_cvtneps2bf16_<mode><mask_name>,
27994 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27995 * config/i386/subst.md (mask_half): Add new subst.
27996 * doc/invoke.texi: Document -mavx512bf16.
27997
27998 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27999
28000 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28001 Delete declaration.
28002 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28003 (rs6000_debug_legitimize_reload_address): Delete.
28004 (rs6000_legitimize_reload_address_ptr): Delete.
28005 (rs6000_option_override_internal): Adjust.
28006 (mem_operand_gpr): Adjust comment.
28007 (legitimate_lo_sum_address_p): Ditto.
28008 (rs6000_legitimize_reload_address): Delete.
28009 (rs6000_debug_legitimize_reload_address): Delete.
28010 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28011
28012 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28013
28014 PR target/89765
28015 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28016 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28017 to compute vector element selector for both constant and variable
28018 operands.
28019
28020 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28021
28022 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28023 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28024 ashrdi3_cvt using SWI48 mode iterator.
28025
28026 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28027
28028 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28029 (aarch64_<su>abd<mode>_3): Likewise.
28030 (*aarch64_<su>abd<mode>_3): New define_insn.
28031 (<sur>sad<vsi2qi>): New define_expand.
28032 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28033 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28034 (build_vect_cond_expr): Likewise.
28035
28036 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28037
28038 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28039 clobbers outside of accessible_reg_set.
28040 * config/i386/i386.c (ix86_conditional_register_usage):
28041 Disable register sets by clearing corresponding bits in
28042 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28043 call_used_regs and don't clear corresponding reg_names array members.
28044
28045 2019-05-07 Richard Biener <rguenther@suse.de>
28046
28047 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28048 not specified still compute a comp_vectype for invariant
28049 compares.
28050
28051 2019-05-07 Richard Biener <rguenther@suse.de>
28052
28053 PR tree-optimization/90316
28054 * tree-ssa-pre.c (translate_vuse_through_block): When
28055 same_valid is NULL do not bother to search for a virtual
28056 PHI continuation.
28057 (phi_translate_1): When operands changed we cannot keep
28058 the same value-number so do not bother to ask whether
28059 that's possible from translate_vuse_through_block.
28060
28061 2019-05-07 Martin Liska <mliska@suse.cz>
28062
28063 * bitmap.c (bitmap_register): Come up with
28064 alloc_descriptor_max_uid and assign it for
28065 a new bitmap.
28066 (register_overhead): Use get_descriptor as
28067 a descriptor.
28068 (release_overhead): New.
28069 (bitmap_elem_to_freelist): Call it.
28070 (bitmap_elt_clear_from): Likewise.
28071 (bitmap_obstack_free): Likewise.
28072 (bitmap_move): Sensitively release memory.
28073 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28074 (bitmap_initialize): Initialize alloc_descriptor to zero.
28075 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28076
28077 2019-05-07 Richard Biener <rguenther@suse.de>
28078
28079 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28080 we build a SLP node. Remove max_size and limiting.
28081 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28082
28083 2019-05-07 Richard Biener <rguenther@suse.de>
28084
28085 PR tree-optimization/90316
28086 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28087 limit by reference.
28088 (walk_non_aliased_vuses): Take walking limit argument.
28089 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28090 walking if it is reached instead of just counting.
28091 (get_continuation_for_phi): Likewise.
28092 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28093 limiting to the callback.
28094 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28095 (vn_reference_lookup_3): Likewise.
28096 (vn_reference_lookup_pieces): Likewise.
28097 (vn_reference_lookup): Likewise.
28098 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28099 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28100 (avail_exprs_stack::lookup_avail_expr): Likewise.
28101
28102 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28103
28104 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28105 for comparaible types in the second direction even if first one
28106 hits incomparable type.
28107
28108 2019-05-07 Richard Biener <rguenther@suse.de>
28109
28110 PR lto/90369
28111 * lto-wrapper.c (debug_objcopy): Use the original filename
28112 including archive offset for the filename used for -save-temps.
28113
28114 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28115
28116 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28117 detection.
28118
28119 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28120 Hongtao Liu <hongtao.liu@intel.com>
28121
28122 PR target/89750
28123 PR target/86444
28124 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28125 Modified, original implementation isn't correct.
28126
28127 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28128
28129 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28130 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28131 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28132 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28133 (FRAME_POINTER_REGNUM): Change numbering.
28134 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28135 (alt_reg_names): Adjust.
28136 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28137 fixed.
28138 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28139 (DWARF_FRAME_REGISTERS): Delete.
28140 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28141 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28142 Adjust.
28143 (REG_ALLOC_ORDER): Adjust.
28144 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28145 (REG_CLASS_CONTENTS): Adjust.
28146 (RETURN_ADDR_RTX): Change comment.
28147 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28148 instead of 67.
28149 (REGISTER_NAMES): Adjust.
28150 (ADDITIONAL_REGISTER_NAMES): Adjust.
28151 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28152
28153 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28154
28155 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28156 Delete.
28157 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28158 (DWARF_FRAME_REGISTERS): Adjust.
28159 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28160 Adjust.
28161 (REG_ALLOC_ORDER): Adjust.
28162 (enum reg_class): Delete SPR_REGS.
28163 (REG_CLASS_NAMES): Delete SPR_REGS.
28164 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28165 (REGISTER_NAMES): Adjust.
28166 (ADDITIONAL_REGISTER_NAMES): Adjust.
28167 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28168 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28169 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28170 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28171 (htm_spr_regno): Delete.
28172 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28173 argument.
28174 (rs6000_dbx_register_number): Adjust.
28175
28176 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28177
28178 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28179
28180 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28181
28182 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28183 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28184
28185 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28186
28187 PR tree-optimization/88709
28188 PR tree-optimization/90271
28189 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28190 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28191 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28192 variable.
28193 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28194 of the store merging group is larger than
28195 PARAM_STORE_MERGING_MAX_SIZE parameter.
28196 (split_group): Add bzero_first argument. If set, always emit first
28197 the first store which must be = {} of the whole area and then for the
28198 rest of the stores consider all zero bytes as paddings.
28199 (imm_store_chain_info::output_merged_store): Check if first store
28200 is = {} of the whole area and if yes, determine which setting of
28201 bzero_first for split_group gives smaller number of stores. Adjust
28202 split_group callers.
28203 (lhs_valid_for_store_merging_p): Allow decls.
28204 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28205 no elts.
28206 (pass_store_merging::process_store): Likewise.
28207
28208 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28209
28210 PR target/89424
28211 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28212 handling of V1TImode.
28213
28214 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28215
28216 PR target/89221
28217 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28218 and enable_frame_pointer ...
28219 * configure.ac: ... here. Update help strings for
28220 --enable-frame-pointer.
28221 * configure: Regenerate.
28222 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28223 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28224 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28225 (USE_X86_64_FRAME_POINTER): Ditto.
28226
28227 2019-05-06 Martin Liska <mliska@suse.cz>
28228
28229 * config.gcc: Append to target_gtfiles and fix indentation.
28230
28231 2019-05-06 Richard Biener <rguenther@suse.de>
28232
28233 PR tree-optimization/90358
28234 * tree-vect-stmts.c (get_group_load_store_type): Properly
28235 detect unused upper half of load.
28236 (vectorizable_load): Likewise.
28237
28238 2019-05-06 Richard Biener <rguenther@suse.de>
28239
28240 PR tree-optimization/88828
28241 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28242 (simplify_vector_constructor): ...here. Handle constants in
28243 the constructor.
28244
28245 2019-05-06 Richard Biener <rguenther@suse.de>
28246
28247 PR tree-optimization/90328
28248 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28249 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28250 is valid in the loop nest before using it.
28251 (initialize_data_dependence_relation): Adjust.
28252 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28253 loop as loop-nest to dr_may_alias_p.
28254
28255 2019-05-06 Richard Biener <rguenther@suse.de>
28256
28257 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28258
28259 2019-05-06 Richard Biener <rguenther@suse.de>
28260
28261 PR tree-optimization/90316
28262 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28263 compute target on demand.
28264 (get_continuation_for_phi): Remove code walking stmts to
28265 get to a target virtual operand which could end up being
28266 quadratic.
28267
28268 2019-05-06 Martin Liska <mliska@suse.cz>
28269
28270 PR sanitizer/90312
28271 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28272 when -mabi is selected to a non-default version.
28273
28274 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28275 Martin Liska <mliska@suse.cz>
28276
28277 * Makefile.in: Add lto-dump.texi.
28278 * cgraph.h: Add new functions get_visibility_string and
28279 get_symtab_type_string.
28280 * doc/gcc.texi: Include lto-dump section.
28281 * doc/lto-dump.texi: New file.
28282 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28283 (parse_dump_option): Factor out this function.
28284 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28285 (parse_dump_option): Export the function.
28286 * symtab.c (symtab_node::get_visibility_string): New function.
28287 (symtab_node::get_symtab_type_string): Likewise.
28288
28289 2019-05-06 Martin Liska <mliska@suse.cz>
28290
28291 * config/i386/i386-builtins.c: New file.
28292 * config/i386/i386-builtins.h: New file.
28293 * config/i386/i386-expand.c: New file.
28294 * config/i386/i386-expand.h: New file.
28295 * config/i386/i386-features.c: New file.
28296 * config/i386/i386-features.h: New file.
28297 * config/i386/i386-options.c: New file.
28298 * config/i386/i386-options.h: New file.
28299 * config.gcc: Add new files into extra_objs and
28300 target_gtfiles.
28301 * config/i386/i386.c: Split content of the file
28302 into newly introduced files.
28303 * config/i386/i386.h: Declare common variables
28304 and macros.
28305 * config/i386/t-i386: Define dependencies for new files.
28306
28307 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28308
28309 PR target/89400
28310 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28311 Restrict 'all' variant to 32-bit configurations.
28312 (unaligned_loadhiu): Likewise.
28313 (unaligned_storehi): Likewise.
28314 (unaligned_storesi): Likewise.
28315 (unaligned_loadhis): Disable when compiling for thumb1.
28316
28317 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28318
28319 PR tree-optimization/90269
28320 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28321 Ignore clobbers.
28322
28323 2019-05-03 Martin Liska <mliska@suse.cz>
28324
28325 * hash-map.h: Add is_empty function.
28326 * hash-set.h: Likewise.
28327 * hash-table.h: Likewise.
28328 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28329 elements () == 0 (and similar usages).
28330 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28331 * gimplify.c (gimplify_bind_expr): Likewise.
28332 (gimplify_switch_expr): Likewise.
28333 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28334 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28335 * postreload-gcse.c (dump_hash_table): Likewise.
28336 (gcse_after_reload_main): Likewise.
28337 * predict.c (combine_predictions_for_bb): Likewise.
28338 * tree-parloops.c (reduction_phi): Likewise.
28339 (separate_decls_in_region): Likewise.
28340 (transform_to_exit_first_loop): Likewise.
28341 (gen_parallel_loop): Likewise.
28342 (gather_scalar_reductions): Likewise.
28343 (try_create_reduction_list): Likewise.
28344 * var-tracking.c (dump_vars): Likewise.
28345 (emit_notes_for_changes): Likewise.
28346 (vt_emit_notes): Likewise.
28347
28348 2019-05-03 Richard Biener <rguenther@suse.de>
28349
28350 PR tree-optimization/90316
28351 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28352 before running VN.
28353
28354 2019-05-03 Richard Biener <rguenther@suse.de>
28355
28356 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28357 peeling for gaps by loading only lower halves of vectors
28358 if possible.
28359 (vectorizable_load): Likewise.
28360
28361 2019-05-03 Richard Biener <rguenther@suse.de>
28362
28363 PR middle-end/89518
28364 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28365
28366 2019-05-03 Richard Biener <rguenther@suse.de>
28367
28368 PR middle-end/87314
28369 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28370 Handle STRING_CST vs DECL or STRING_CST.
28371
28372 2019-05-03 Richard Biener <rguenther@suse.de>
28373
28374 PR tree-optimization/88963
28375 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28376 vector loads feeding only BIT_FIELD_REFs to component
28377 loads. Rewrite stores fed by CONSTRUCTORs to component
28378 stores.
28379
28380 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28381
28382 * opts.h (finish_options): Remove lang_mask argument.
28383 (print_help, help_option_argument): Declare.
28384 * opts.c (print_help): Remove forward declaration, no longer static.
28385 (finish_options): Remove lang_mask argument, don't call print_help
28386 here.
28387 * opts-global.c (decode_options): Adjust finish_option caller, call
28388 print_help here.
28389
28390 PR tree-optimization/90303
28391 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28392 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28393
28394 2019-05-03 Richard Biener <rguenther@suse.de>
28395
28396 PR tree-optimization/89698
28397 * gimple-fold.c (canonicalize_constructor_val): Early out
28398 for constants, handle unfolded INTEGER_CSTs as they appear in
28399 C++ virtual table ctors.
28400
28401 2019-05-03 Richard Biener <rguenther@suse.de>
28402
28403 * passes.c (execute_function_todo): Remove dead code.
28404
28405 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28406
28407 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28408 the internal register number, for any "real" register.
28409
28410 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28411
28412 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28413 correct numbers for TFHAR, TFIAR, TEXASR.
28414
28415 2019-05-02 Richard Biener <rguenther@suse.de>
28416
28417 PR tree-optimization/89653
28418 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28419 update-address-taken before the pass.
28420 * passes.def (pass_tree_loop_init): Put comment before it.
28421
28422 2019-05-02 Richard Biener <rguenther@suse.de>
28423
28424 PR tree-optimization/89509
28425 * tree-ssa-structalias.c (compute_dependence_clique): Look
28426 at the first subvar when determining whether it is restrict.
28427
28428 2019-05-02 Richard Biener <rguenther@suse.de>
28429
28430 PR tree-optimization/90273
28431 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28432 useless debug stmts.
28433
28434 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28435
28436 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28437 ACLE branch.
28438 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28439 SVE ACLE branch.
28440 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28441 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28442 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28443 (vectorizable_reduction): Use the functions above to vectorize in a
28444 fully masked loop codes that don't have a conditional internal
28445 function.
28446
28447 2019-05-02 Martin Liska <mliska@suse.cz>
28448
28449 * cgraphclones.c: Call valid_attribute_p with 1 for
28450 target_clone.
28451 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28452 it's for target attribute.
28453 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28454 Add new boolean argument.
28455 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28456 Likewise.
28457 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28458 to ix86_valid_target_attribute_inner_p.
28459 (ix86_valid_target_attribute_p): Pass flags argument to
28460 ix86_valid_target_attribute_inner_p.
28461 (get_builtin_code_for_version): Use 0 as it's target attribute.
28462
28463 2019-05-02 Martin Liska <mliska@suse.cz>
28464
28465 * gcc.c (process_command): Add dummy file only
28466 if n_infiles == 0.
28467 * opts-global.c (decode_options): Pass lang_mask.
28468 * opts.c (print_help): New function.
28469 (finish_options): Print --help if help_option_argument
28470 is set.
28471 (common_handle_option): Factor out content of OPT__help_
28472 into print_help.
28473 * opts.h (finish_options): Add new argument.
28474
28475 2019-05-02 Martin Liska <mliska@suse.cz>
28476
28477 PR target/88809
28478 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28479 With -minline-all-stringops use inline expansion using 4B loop.
28480 * doc/invoke.texi: Document the change of
28481 -minline-all-stringops.
28482
28483 2019-05-01 Jeff Law <law@redhat.com>
28484
28485 PR tree-optimization/88797
28486 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28487 PHI feeds a conditional on the RHS of an assignment.
28488
28489 2019-04-30 Andrew Waterman <andrew@sifive.com>
28490 Jim Wilson <jimw@sifive.com>
28491
28492 * config/riscv/constraints.md (L): New.
28493 * config/riscv/predicates.md (lui_operand): New.
28494 (sfb_alu_operand): New.
28495 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28496 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28497 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28498 * config/riscv/risc.md (type): Add sfb_alu.
28499 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28500 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28501 (branch_zero<mode>): Delete.
28502 (mov<mode>cc): New.
28503 (mov<GPR:mode><X:mode>cc): Likewise.
28504 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28505
28506 2019-04-30 Nathan Sidwell <nathan@acm.org>
28507
28508 * tree.h (MARK_TS_EXP): New.
28509
28510 2019-04-30 Martin Liska <mliska@suse.cz>
28511
28512 * opts.c (enable_warning_as_error): Provide hints
28513 for unknown options.
28514
28515 2019-04-30 Martin Liska <mliska@suse.cz>
28516
28517 PR debug/90288
28518 * doc/invoke.texi: Add missing dash for gas-locview-support
28519 and gno-as-locview-support.
28520
28521 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28522
28523 PR target/89093
28524 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28525 whitespace at the start of target attribute string.
28526
28527 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28528
28529 PR target/86538
28530 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28531 Define __ARM_FEATURE_ATOMICS.
28532
28533 2019-04-30 Martin Liska <mliska@suse.cz>
28534
28535 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28536 into built_in_function enum. Remove code for endp == 2 and
28537 use BUILT_IN_* constants.
28538 (gimple_fold_builtin): Call the function with fcode.
28539
28540 2019-04-30 Martin Liska <mliska@suse.cz>
28541
28542 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28543 DECL_FUNCTION_CODE into ix86_builtins enum before
28544 the switch statement.
28545
28546 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28547
28548 PR tree-optimization/89475
28549 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28550 calls.
28551
28552 2019-04-30 Martin Liska <mliska@suse.cz>
28553
28554 PR translation/90274
28555 * opts.c (print_filtered_help): Wrap string in _(...).
28556
28557 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28558
28559 PR tree-optimization/90240
28560 Revert:
28561 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28562
28563 PR tree-optimization/90078
28564 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28565 checks for infinite_cost overflow.
28566
28567 2019-04-29 Jeff Law <law@redhat.com>
28568
28569 * passes.def: Move -Wrestrict pass after copy propagation.
28570
28571 2019-04-29 Maya Rashish <coypu@sdf.org>
28572
28573 * config.gcc (default_gnu_indirect_function): Default to yes
28574 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28575 sparc*-*-netbsd*, x86_64-*-netbsd*.
28576
28577 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28578
28579 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28580 where cond2 is NE_EXPR.
28581 (is_value_included_in): Update comment.
28582
28583 2019-04-29 Richard Biener <rguenther@suse.de>
28584
28585 PR tree-optimization/90278
28586 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28587 EH on comparison simplification.
28588
28589 2019-04-29 Jason Merrill <jason@redhat.com>
28590
28591 PR c++/82081 - tail call optimization breaks noexcept
28592 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28593 nothrow function to a might-throw function into a tail call.
28594
28595 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28596
28597 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28598 (DDR_INNER_LOOP): Likewise.
28599 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28600 (initialize_data_dependence_relation): Likewise.
28601 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28602
28603 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28604
28605 PR rtl-optimization/90257
28606 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28607 return value.
28608
28609 Revert the revert:
28610 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28611
28612 PR target/90178
28613 Revert:
28614 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28615
28616 Revert the revert:
28617 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28618
28619 Revert:
28620 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28621
28622 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28623
28624 2019-04-29 Richard Biener <rguenther@suse.de>
28625
28626 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28627 rhs issue a reset.
28628
28629 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28630
28631 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28632 varasm.h, and netbsd-protos.h.
28633
28634 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28635
28636 PR target/89261
28637 * config/i386/i386-protos.h (ix86_data_alignment): Change
28638 the second argument type to unsigned int.
28639 * config/i386/i386.c (ix86_data_alignment): Change "align"
28640 argument type to unsigned int.
28641
28642 2019-04-27 Martin Liska <mliska@suse.cz>
28643
28644 PR middle-end/90258
28645 * opt-suggestions.c (option_proposer::build_option_suggestions):
28646 When get_valid_option_values returns empty values, add the
28647 misspelling candidate.
28648
28649 2019-04-26 Jim Wilson <jimw@sifive.com>
28650
28651 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28652 parameter.
28653 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28654 Pass orig_mode to riscv_build_integer.
28655 (riscv_split_integer): Pass mode to riscv_move_integer.
28656 (riscv_legitimize_const_move): Likewise.
28657 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28658 promoted_mode. Replace force_reg call with code to load constant into
28659 promoted reg and then subreg it for the store.
28660 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28661 riscv_move_integer.
28662
28663 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28664
28665 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28666 corrupt codes.
28667
28668 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28669
28670 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28671 commentary about the encoding of precision.
28672
28673 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28674
28675 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28676 * config/i386/t-freebsd64: New file.
28677 * config.gcc: Add the t-freebsd64 for multilib support.
28678
28679 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28680
28681 * doc/extend.texi (vector_size): Add missing comma after @xref.
28682
28683 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28684
28685 * BASE-VER: Set to 10.0.0.
28686
28687 2019-04-25 Richard Biener <rguenther@suse.de>
28688
28689 PR middle-end/89765
28690 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28691 VIEW_CONVERT_EXPR into one operating on an rvalue.
28692
28693 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28694
28695 PR target/89929
28696 * config/i386/i386.c (feature_priority): Moved to file scope.
28697 (processor_features): Likewise.
28698 (processor_model): Likewise.
28699 (_arch_names_table): Likewise.
28700 (arch_names_table): Likewise.
28701 (_feature_list): Removed.
28702 (feature_list): Likewise.
28703 (_isa_names_table): Moved to file scope. Add priority.
28704 (isa_names_table): Likewise.
28705 (get_builtin_code_for_version): Replace feature_list with
28706 isa_names_table. Update error message for P_ZERO priority.
28707
28708 2019-04-25 Richard Biener <rguenther@suse.de>
28709
28710 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28711 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28712
28713 2019-04-24 Jeff Law <law@redhat.com>
28714
28715 PR tree-optimization/90037
28716 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28717 * passes.def: Replace all instance of phi-only cprop with the
28718 lattice propagator. Move propagation pass from after erroneous
28719 path isolation to before erroneous path isolation.
28720 * tree-ssa-phionlycprop.c: Remove.
28721
28722 2019-04-24 Richard Biener <rguenther@suse.de>
28723
28724 PR middle-end/90213
28725 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28726 by size and BITS_PER_UNIT on poly-wide-ints.
28727
28728 2019-04-25 Richard Biener <rguenther@suse.de>
28729
28730 PR middle-end/90194
28731 * match.pd: Add pattern to simplify view-conversion of an
28732 empty constructor.
28733
28734 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28735
28736 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28737 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28738 for Go on 32 bit AIX.
28739 * config/rs6000/aix72.h: Likewise.
28740
28741 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28742
28743 PR target/90193
28744 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28745 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28746
28747 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28748
28749 PR target/89952
28750 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28751 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28752 for restored hard frame pointer.
28753 (s390_sched_dependencies_evaluation): Implement new target hook.
28754 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28755
28756 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28757
28758 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28759 * config/arc/arc.c (arc_init): Cleanup warning message.
28760 (arc_override_options): Likewise.
28761
28762 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28763
28764 PR target/90187
28765 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28766 a register if both if_true and if_false are MEMs.
28767
28768 PR tree-optimization/90208
28769 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28770 after labels of new_bb, not before them.
28771
28772 PR tree-optimization/90211
28773 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28774 which are not SSA_NAMEs.
28775
28776 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28777
28778 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28779 AArch64.
28780 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28781
28782 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28783
28784 PR rtl-optimization/87979
28785 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28786 not equal zero.
28787
28788 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28789
28790 PR rtl-optimization/84032
28791 * modulo-sched.c (ps_insn_find_column): Change condition so that
28792 branch will always be the last insn in a row inside partial
28793 schedule.
28794
28795 2019-04-23 Richard Biener <rguenther@suse.de>
28796
28797 PR debug/90131
28798 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28799 dest_single_pred_p argument.
28800 (remove_forwarder_block): Adjust.
28801 (remove_forwarder_block_with_phi): Likewise.
28802
28803 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28804 Bernd Edlinger <bernd.edlinger@hotmail.de>
28805 Jakub Jelinek <jakub@redhat.com>
28806
28807 PR target/89093
28808 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28809 if used with general-regs-only.
28810 (arm_conditional_register_usage): Don't add non-general regs if
28811 general-regs-only.
28812 (arm_valid_target_attribute_rec): Handle general-regs-only.
28813 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28814 general-regs-only.
28815 (TARGET_HARD_FLOAT_SUB): Define.
28816 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28817 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28818 (TARGET_REALLY_IWMMXT2): Likewise.
28819 * config/arm/arm.opt: Add -mgeneral-regs-only.
28820 * doc/extend.texi: Document ARM general-regs-only target.
28821 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28822
28823 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28824
28825 PR tree-optimization/90078
28826 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28827 checks for infinite_cost overflow.
28828
28829 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28830
28831 PR tree-optimization/90021
28832 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28833 and check univariate against it.
28834 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28835 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28836
28837 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28838
28839 PR target/90178
28840 Revert:
28841 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28842
28843 Revert the revert:
28844 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28845
28846 Revert:
28847 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28848
28849 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28850
28851 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28852
28853 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28854 names using operand format, rather than hard-wired.
28855 (speculation_barrier): Likewise.
28856
28857 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28858
28859 PR tree-optimization/88055
28860 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28861 (gen_one_condition): Use it if !HONOR_NANS.
28862
28863 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28864
28865 PR middle-end/90139
28866 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28867 assign_temp instead of gen_reg_rtx.
28868
28869 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28870
28871 PR translation/90118
28872 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28873 Add missing space before %<.
28874
28875 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28876
28877 PR rtl-optimization/87871
28878 * ira-lives.c (make_object_dead): Don't add conflicts to
28879 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28880
28881 2019-04-18 Martin Sebor <msebor@redhat.com>
28882
28883 PR middle-end/89797
28884 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28885 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28886 assuming type size fits in SHWI.
28887
28888 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28889
28890 PR ipa/85051
28891 * ipa-inline.c (flatten_function): New parameter UPDATE.
28892 (ipa_inline, early_inliner): Use it.
28893
28894 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28895
28896 * fold-const.c (int_const_binop): Return early on failure.
28897
28898 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28899
28900 PR middle-end/85164
28901 * combine.c (force_int_to_mode): Cast the argument rather than
28902 the result of known_alignment.
28903 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28904
28905 2019-04-18 Richard Biener <rguenther@suse.de>
28906
28907 PR debug/90131
28908 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28909 out from ...
28910 (remove_forwarder_block): ... here.
28911 (remove_forwarder_block_with_phi): Also move debug stmts here.
28912
28913 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28914
28915 PR translation/79183
28916 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28917 inform where appropriate.
28918
28919 2019-04-18 Richard Biener <rguenther@suse.de>
28920
28921 * tree.c (get_qualified_type): Put found type variants at the
28922 head of the variant list.
28923
28924 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28925
28926 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28927
28928 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28929
28930 PR target/90125
28931 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28932 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28933 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28934 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28935 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28936
28937 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28938
28939 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28940 even for allocno's with no conflicts.
28941 (print_conflicts): Print an extra newline.
28942
28943 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28944
28945 * auto-inc-dec.c (attempt_change): Set the alignment of the
28946 temporary memory to that of the original.
28947
28948 2019-04-17 Joao Moreira <jmoreira@suse.de>
28949
28950 * targhooks.c (default_print_patchable_function_entry): Emit
28951 __patchable_function_entries section with writable flags to allow
28952 relocation resolution.
28953
28954 2019-04-17 Jonny Grant <jg@jguk.org>
28955
28956 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28957
28958 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28959
28960 PR middle-end/90095
28961 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28962 on lowpart SUBREGs.
28963
28964 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28965
28966 * config/arc/arc.c (arc_init): Format diagnostic string.
28967 (arc_override_options): Likewise.
28968 (check_if_valid_regno_const): Likewise.
28969 (arc_reorg): Likewise.
28970
28971 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28972
28973 PR target/17108
28974 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28975 name.
28976 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28977 name.
28978 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28979 (*movdi_update1): Use Pmode.
28980 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28981 (movdi_<mode>_update_stack): Rename to ...
28982 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28983 use Pmode.
28984 (*movsi_update1): Use Pmode.
28985 (*movsi_update2): Use Pmode.
28986 (movsi_update): Rename to ...
28987 (movsi_<mode>_update): ... this. Use Pmode.
28988 (movsi_update_stack): Fix condition.
28989 (*movhi_update1): Use Pmode. Fix argument to
28990 avoiding_indexed_address_p.
28991 (*movhi_update2): Ditto.
28992 (*movhi_update3): Ditto.
28993 (*movhi_update4): Ditto.
28994 (*movqi_update1): Ditto.
28995 (*movqi_update2): Ditto.
28996 (*movqi_update3): Ditto.
28997 (*movsf_update1, *movdf_update1): Merge, rename to...
28998 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28999 avoiding_indexed_address_p. Add "size" attribute.
29000 (*movsf_update2, *movdf_update2): Merge, rename to...
29001 (*mov<mode>_update2): This. Ditto.
29002 (*movsf_update3): Use Pmode. Fix argument to
29003 avoiding_indexed_address_p.
29004 (*movsf_update4): Ditto.
29005 (allocate_stack): Simplify condition. Adjust pattern names.
29006
29007 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29008
29009 PR target/89093
29010 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29011 whitespace at the start of target attribute string.
29012
29013 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29014
29015 PR target/84369
29016 * config/rs6000/power9.md: Add store forwarding bypass.
29017
29018 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29019
29020 PR debug/89528
29021 * valtrack.c (dead_debug_insert_temp): Reset debug references
29022 to the return value of a call being removed.
29023
29024 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29025
29026 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29027 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29028 implement target hook.
29029 (arc_memory_move_cost): New function.
29030 (TARGET_REGISTER_MOVE_COST): Define.
29031 (TARGET_MEMORY_MOVE_COST): Likewise.
29032 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29033 (MEMORY_MOVE_COST): Likewise.
29034
29035 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29036
29037 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29038 (sibcall_value_insn): Likewise.
29039 * config/arc/constraints.md (Rs5): Remove.
29040
29041 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29042
29043 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29044 for last two fake registers.
29045 (arc_conditional_register_usage): Make sure fake frame and arg
29046 pointer regs are in general regs class.
29047 (FRAME_POINTER_MASK): Remove.
29048 (RETURN_ADDR_MASK): Remove.
29049 (arc_must_save_register): Use hard frame regnum.
29050 (frame_restore_reg): Use hard_frame_pointer_rtx.
29051 (arc_save_callee_saves): Likewise.
29052 (arc_restore_callee_saves): Likewise.
29053 (arc_save_callee_enter): Likewise.
29054 (arc_restore_callee_leave): Likewise.
29055 (arc_save_callee_milli): Likewise.
29056 (arc_eh_return_address_location): Likewise.
29057 (arc_check_multi): Use hard frame regnum.
29058 (arc_can_eliminate): Likewise.
29059 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29060 for register allocator.
29061 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29062 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29063 (FRAME_POINTER_REGNUM): Change it to a fake register.
29064 (HARD_FRAME_POINTER_REGNUM): Defined.
29065 (ARG_POINTER_REGNUM): Change it to a new fake register.
29066 (ELIMINABLE_REGS): Update.
29067 (REGISTER_NAMES): Update names.
29068 * config/arc/arc.md (LP_START): Remove.
29069 (LP_END): Likewise.
29070 (shift_si3_loop): Update pattern.
29071
29072 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29073
29074 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29075 to avoid delay slot scheduling.
29076 (arc_must_save_register): Don't save SP.
29077 * config/arc/arc.md (stack_tie): Remove.
29078 (UNSPEC_ARC_STKTIE): Likewise.
29079
29080 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29081 Shiva Chen <shiva0217@gmail.com>
29082
29083 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29084 code gen with large shift amount.
29085
29086 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29087
29088 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29089 subreg.
29090
29091 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29092
29093 PR target/90096
29094 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29095 print -m64/-mx32/-m32 if it is true.
29096 (ix86_debug_options, ix86_function_specific_print): Pass true as
29097 ADD_ABI_P to ix86_target_string.
29098 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29099 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29100 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29101
29102 PR rtl-optimization/90082
29103 * dce.c (can_delete_call): New function.
29104 (deletable_insn_p, mark_insn): Use it.
29105
29106 PR tree-optimization/90090
29107 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29108 throw internally.
29109 (is_division_by_square): Likewise. Formatting fix.
29110
29111 2019-04-16 Richard Biener <rguenther@suse.de>
29112
29113 PR tree-optimization/56049
29114 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29115 equality check if alias-set zero will prevail.
29116
29117 2019-04-15 Jeff Law <law@redhat.com>
29118
29119 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29120 size and alignment as unsigned.
29121
29122 2019-04-15 Richard Biener <rguenther@suse.de>
29123
29124 PR debug/90074
29125 * tree-loop-distribution.c (destroy_loop): Preserve correct
29126 debug info.
29127
29128 2019-04-15 Richard Biener <rguenther@suse.de>
29129
29130 PR tree-optimization/90071
29131 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29132 abnormal operands from def stmts.
29133
29134 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29135
29136 PR rtl-optimization/89794
29137 * combine.c (count_auto_inc): New function.
29138 (try_combine): Count how many auto_inc expressions there were in the
29139 original instructions. Ensure we have the same number in the new
29140 instructions. Remove the code that tried to ensure auto_inc side
29141 effects on i1 and i0 are not lost.
29142
29143 2019-04-15 Richard Biener <rguenther@suse.de>
29144
29145 PR ipa/88936
29146 * tree.h (auto_var_p): Declare.
29147 * tree.c (auto_var_p): New function, split out from ...
29148 (auto_var_in_fn_p): ... here.
29149 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29150 member.
29151 (new_var_info): Initialize it.
29152 (set_uids_in_ptset): Also set the shadow variable uid if required.
29153 (ipa_pta_execute): Postprocess points-to solutions assigning
29154 shadow variable uids for locals that may reach their containing
29155 function recursively.
29156 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29157 assert but instead check whether the points-to solution is
29158 a singleton.
29159
29160 2019-04-15 Martin Jambor <mjambor@suse.cz>
29161
29162 PR ipa/pr89693
29163 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29164 the thunk chain.
29165
29166 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29167
29168 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29169
29170 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29171 Kito Cheng <kito.cheng@gmail.com>
29172 Shiva Chen <shiva0217@gmail.com>
29173
29174 * config/nds32/nds32-md-auxiliary.c
29175 (nds32_legitimize_pic_address): Use new PIC pattern.
29176 (nds32_legitimize_tls_address): Use new TLS pattern.
29177 (nds32_output_symrel): New.
29178 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29179 (nds32_alloc_relax_group_id): Ditto.
29180 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29181 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29182 relax_group_id.
29183 (nds32_group_tls_insn): Ditto.
29184 (nds32_group_float_insns): Ditto.
29185 * config/nds32/nds32.md (tls_le): New.
29186 (sym_got): Ditto.
29187
29188 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29189
29190 * configure: Add nds32 target for dwarf2 debug_line checking.
29191 * configure.ac: Regenerated.
29192
29193 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29194
29195 PR lto/89358
29196 * ipa-devirt.c (skip_in_fields_list_p): New.
29197 (odr_types_equivalent_p): Use it.
29198
29199 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29200
29201 PR target/89093
29202 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29203 instead of strncmp when checking for thumb and arm. Formatting fixes.
29204
29205 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29206
29207 * doc/install.texi: Document --with-target-system-zlib.
29208
29209 2019-04-12 Martin Sebor <msebor@redhat.com>
29210
29211 PR c/88383
29212 PR c/89288
29213 PR c/89798
29214 PR c/89797
29215 * targhooks.c (default_vector_alignment): Avoid assuming
29216 argument fits in SHWI.
29217 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29218 a shift expression.
29219 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29220
29221 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29222
29223 PR rtl-optimization/89965
29224 * dce.c: Include rtl-iter.h.
29225 (struct check_argument_load_data): New type.
29226 (check_argument_load): New function.
29227 (find_call_stack_args): Check for loads from stack slots still tracked
29228 in sp_bytes and punt if any is found.
29229
29230 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29231
29232 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29233
29234 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29235 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29236
29237 2019-04-12 Martin Liska <mliska@suse.cz>
29238
29239 PR middle-end/89970
29240 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29241 in error message.
29242 (separate_attrs): Handle multiple 'default's.
29243 (expand_target_clones): Rework error handling code.
29244
29245 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29246
29247 PR target/87532
29248 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29249 mode of vector rather than mode of destination for move instruction.
29250 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29251 Use QI inner mode with V16QI vector mode.
29252
29253 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29254
29255 PR target/52726
29256 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29257 "invalid %%t operand" in output_operand_lossage message.
29258
29259 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29260
29261 * config/s390/predicates.md (permute_pattern_operand): New
29262 predicate.
29263 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29264 operand for the permute pattern.
29265 ("*vec_perm<mode>"): New insn definition.
29266 ("bswap<mode>"): Generate the permute pattern operand in the
29267 expander and perform the operand reloads for pre arch13 level
29268 already.
29269 ("*bswap<mode>_emu"): Rename to ...
29270 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29271 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29272 Add the USE operand for the permute pattern.
29273 ("*vec_set_bswap_vec<mode>"): Likewise.
29274
29275 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29276
29277 PR c/89946
29278 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29279 and gcc_unreachable if it fails, just call tree_to_uhwi which
29280 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29281 Start warning message with a lower-case letter. Formatting fixes.
29282
29283 PR rtl-optimization/90026
29284 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29285 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29286 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29287 in cfglayout mode, use emit_barrier_after_bb.
29288
29289 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29290
29291 PR rtl-optimization/87763
29292 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29293 New Instruction.
29294
29295 2019-04-11 Tom de Vries <tdevries@suse.de>
29296
29297 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29298 max macro using statement expression.
29299
29300 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29301
29302 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29303 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29304 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29305 read_only_private_data_section using xcoff_private_rodata_section_name.
29306 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29307
29308 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29309
29310 PR target/90016
29311 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29312
29313 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29314
29315 PR rtl-optimization/89965
29316 * dce.c (sp_based_mem_offset): New function.
29317 (find_call_stack_args): Use sp_based_mem_offset.
29318
29319 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29320
29321 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29322
29323 2019-04-11 Richard Biener <rguenther@suse.de>
29324
29325 PR tree-optimization/90020
29326 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29327 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29328 * tree-ssa-pre.c (compute_avail): Use it to not put
29329 possibly trapping references after a call that might not
29330 return into EXP_GEN.
29331 * gcse.c (compute_hash_table_work): Do not elide
29332 marking a block containing a call if the call might not
29333 return.
29334
29335 2019-04-11 Richard Biener <rguenther@suse.de>
29336
29337 PR tree-optimization/90018
29338 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29339 Test both SLP and interleaving variants.
29340
29341 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29342
29343 * config/s390/8561.md: New file.
29344 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29345 Add arch13 cpu model.
29346 * config/s390/s390-opts.h (enum processor_type): Likewise.
29347 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29348 (s390_get_unit_mask): Likewise.
29349 (s390_is_fpd): Likewise.
29350 (s390_is_fxd): Likewise.
29351 * config/s390/s390.h (s390_tune_attr): Likewise.
29352 * config/s390/s390.md: Include arch13 pipeline description.
29353 * config/s390/s390.opt: Add arch13.
29354
29355 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29356
29357 PR rtl-optimization/87763
29358 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29359 New prototype.
29360 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29361 New function.
29362 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29363 New instruction.
29364 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29365 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29366 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29367 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29368
29369 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29370
29371 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29372 "Although" in -fipa-icf documentation.
29373
29374 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29375 of using multiple -g options.
29376
29377 2019-04-10 Martin Liska <mliska@suse.cz>
29378
29379 PR gcov-profile/89959
29380 * doc/gcov.texi: Make documentation of -x option
29381 more precise.
29382
29383 2019-04-10 Richard Biener <rguenther@suse.de>
29384
29385 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29386 member.
29387 (DR_GROUP_SAME_DR_STMT): Remove.
29388 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29389 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29390 replace with assert.
29391 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29392 (vect_record_grouped_load_vectors): Remove unreachable code.
29393
29394 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29395
29396 PR target/90016
29397 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29398 obsolete reference to N.
29399
29400 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29401
29402 PR middle-end/90025
29403 * expr.c (store_expr): Set properly size on the MEM passed to
29404 clear_storage.
29405
29406 PR c++/90010
29407 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29408 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29409 translation is needed, and when translation is needed, only append
29410 ... if the string length is hostsz or more bytes long. Avoid using
29411 strncpy or strcat.
29412
29413 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29414
29415 PR target/90024
29416 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29417 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29418 into three.
29419 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29420 differences directly.
29421 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29422
29423 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29424
29425 PR translation/90011
29426 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29427 from diagnostics.
29428 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29429 diagnostics.
29430 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29431 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29432 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29433 trailing space from -gsplit-dwarf diagnostics.
29434
29435 PR tree-optimization/89998
29436 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29437 instead of integer_type_node if possible, don't add ranges if return
29438 type is not compatible with int.
29439 * gimple-fold.c (gimple_fold_builtin_sprintf,
29440 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29441 integer_type_node.
29442
29443 2019-04-09 Martin Liska <mliska@suse.cz>
29444
29445 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29446 * doc/install.texi: Document the new config.
29447
29448 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29449
29450 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29451 use gimple_expr_type for load and store calls. Skip over the
29452 condition argument in a conditional internal function.
29453 Protect use of TREE_INT_CST_LOW.
29454
29455 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29456
29457 PR target/90015
29458 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29459 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29460 trailing period from it too.
29461
29462 2019-04-08 wu yuan <wuyuan5@huawei.com>
29463
29464 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29465 * config/aarch64/aarch64.md: Add "tsv110.md".
29466 * config/aarch64/tsv110.md: New file.
29467
29468 2019-04-08 Richard Biener <rguenther@suse.de>
29469
29470 PR tree-optimization/90006
29471 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29472 calls like lrint.
29473
29474 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29475
29476 PR target/83033
29477 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29478 construction.
29479 (fma_root_node): Likewise.
29480 (func_fma_steering): Likewise.
29481
29482 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29483
29484 PR rtl-optimization/89865
29485 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29486
29487 PR rtl-optimization/89865
29488 * config/i386/i386.md
29489 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29490 numbers not to clash with the additional operands[4].
29491 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29492 with extra register copy in the middle.
29493
29494 2019-04-08 Martin Liska <mliska@suse.cz>
29495
29496 PR gcov-profile/89961
29497 * doc/gcov.texi: Document data_file.
29498 * gcov.c (generate_results): Add data_info into JSON output.
29499
29500 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29501
29502 PR tree-optimization/89725
29503 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29504 loop's chrec as invariant symbol.
29505 * tree-chrec.h (chrec_contains_symbols): New parameter.
29506 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29507 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29508 function of loops not in DDR's loop_nest.
29509 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29510
29511 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29512
29513 PR target/89623
29514 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29515 Mask.
29516
29517 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29518
29519 PR target/89945
29520 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29521 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29522
29523 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29524
29525 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29526 targetm.fixed_condition_code_regs.
29527
29528 2019-04-05 Richard Biener <rguenther@suse.de>
29529
29530 PR debug/89892
29531 PR debug/89905
29532 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29533 debug bind stmts but reset them if they are not valid at the
29534 destination.
29535
29536 2019-04-05 Martin Liska <mliska@suse.cz>
29537
29538 PR translation/89936
29539 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29540 order to wrap keywords or arguments.
29541 * collect2.c (main): Likewise.
29542 (scan_prog_file): Likewise.
29543 (scan_libraries): Likewise.
29544 * common/config/riscv/riscv-common.c
29545 (riscv_subset_list::parsing_subset_version): Likewise.
29546 (riscv_subset_list::parse_std_ext): Likewise.
29547 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29548 Likewise.
29549 * config/arm/arm.c (arm_option_override): Likewise.
29550 * config/cris/cris.c (cris_print_operand): Likewise.
29551 * config/darwin-c.c (darwin_pragma_options): Likewise.
29552 (darwin_pragma_unused): Likewise.
29553 (darwin_pragma_ms_struct): Likewise.
29554 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29555 * config/i386/i386.c (print_reg): Likewise.
29556 (ix86_print_operand): Likewise.
29557 * config/i386/xm-djgpp.h: Likewise.
29558 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29559 * config/m32c/m32c.c (m32c_option_override): Likewise.
29560 * config/msp430/msp430.c (msp430_option_override): Likewise.
29561 * config/nds32/nds32.c (nds32_option_override): Likewise.
29562 * config/nvptx/mkoffload.c (main): Likewise.
29563 * config/rx/rx.c (rx_print_operand): Likewise.
29564 (valid_psw_flag): Likewise.
29565 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29566 (vms_pragma_nomember_alignment): Likewise.
29567 (vms_pragma_extern_model): Likewise.
29568 * lto-wrapper.c (compile_offload_image): Likewise.
29569 * omp-offload.c (oacc_parse_default_dims): Likewise.
29570 * symtab.c (symtab_node::verify_base): Likewise.
29571 * tlink.c (recompile_files): Likewise.
29572 (start_tweaking): Likewise.
29573 * tree-profile.c (parse_profile_filter): Likewise.
29574
29575 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29576
29577 PR tree-optimization/89956
29578 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29579 multiple negates of the same value.
29580
29581 2019-04-04 Martin Sebor <msebor@redhat.com>
29582
29583 PR middle-end/89957
29584 PR middle-end/89911
29585 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29586 have the same precision since the function crashes otherwise.
29587 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29588 has non-zero arguments.
29589
29590 2019-04-04 Martin Sebor <msebor@redhat.com>
29591
29592 PR middle-end/89934
29593 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29594 out if the number of arguments is less than expected.
29595
29596 2019-04-04 Jeff Law <law@redhat.com>
29597
29598 PR rtl-optimization/89399
29599 * ree.c (combine_set_extension): Use single_set rather than
29600 digging into PATTERN for items on the candidate list.
29601 (combine_reaching_defs): Likewise.
29602
29603 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29604
29605 PR rtl-optimization/46590
29606 * loop-invariant.c (find_defs): Move df_remove_problem and
29607 df_process_deferred_rescans to move_invariants.
29608 Move df_live_add_problem and df_live_set_all_dirty calls
29609 to move_invariants.
29610 (move_invariants): Likewise.
29611 (move_loop_invariants): Likewise, making the df_live calls
29612 conditional on -O. Remove the problem again if we added it
29613 locally.
29614
29615 2019-04-03 qing zhao <qing.zhao@oracle.com>
29616
29617 PR tree-optimization/89730
29618 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29619 -flive-patching=inline-only-static.
29620 (can_inline_edge_by_limits_p): Add the checking for
29621 -flive-patching=inline-only-static and grant always_inline
29622 even when -flive-patching=inline-only-static is specified.
29623
29624 2019-04-03 Jeff Law <law@redhat.com>
29625
29626 PR rtl-optimization/81025
29627 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29628
29629 2019-04-03 Richard Biener <rguenther@suse.de>
29630
29631 PR tree-optimization/84101
29632 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29633 regs.h for hard_regno_nregs.
29634 (cfun_returns): New helper.
29635 (vect_model_store_cost): When vectorizing a store to a decl
29636 we return and the function ABI returns in a multi-reg location
29637 account for the possible spilling that will happen.
29638
29639 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29640
29641 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29642 displacement addresses for vector mode operands.
29643
29644 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29645
29646 * config/arc/arc.c (GMASK_LEN): Define.
29647 (arc_restore_callee_saves): Restore first blink when
29648 !optimize_size.
29649
29650 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29651
29652 * doc/extend.texi: Add deprecated comment on sign-return-address
29653 function attribute and add mbranch-protection.
29654 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29655
29656 2019-04-03 Richard Biener <rguenther@suse.de>
29657
29658 PR lto/89896
29659 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29660 the all target phony.
29661
29662 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29663
29664 PR target/89902
29665 PR target/89903
29666 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29667 Return false for variable DImode shifts.
29668 (dimode_scalar_chain::compute_convert_gain): Do not handle
29669 register count operand in variable DImode shifts.
29670 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29671 count argument of a variable shift instruction to a vector register.
29672 (dimode_scalar_chain::convert_reg): Remove support to convert
29673 count argument of a variable shift instruction.
29674
29675 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29676
29677 PR rtl-optimization/84206
29678 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29679 iterating over loop headers.
29680
29681 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29682
29683 PR rtl-optimization/85876
29684 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29685 beyond the original fence.
29686
29687 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29688
29689 * config.gcc: Mark spu* targets as deprecated/obsolete.
29690
29691 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29692
29693 * config/s390/s390-builtin-types.def: New builtin function type
29694 definitions. Remove unused types.
29695 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29696 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29697 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29698 overloaded builtins.
29699 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29700 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29701 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29702 (vec_double, vec_signed, vec_unsigned): Define to use the new
29703 overloaded builtins.
29704 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29705 Remove expanders.
29706
29707 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29708
29709 * config/s390/s390-builtin-types.def: New builtin function type
29710 definitions.
29711 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29712 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29713 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29714 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29715 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29716 constant definitions.
29717 * config/s390/vecintrin.h (vec_search_string_cc)
29718 (vec_search_string_until_zero_cc): New builtin name definitions.
29719 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29720 expanders.
29721 ("vec_vstrs<mode>"): New insn definition.
29722
29723 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29724
29725 * config/s390/s390-builtin-types.def: Add new builtin function
29726 types.
29727 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29728 New overloaded builtins.
29729 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29730 s390_vsrd.
29731 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29732 (UNSPEC_VEC_SLDBYTE): ... this.
29733 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29734 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29735 definitions.
29736 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29737 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29738 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29739
29740 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29741
29742 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29743 New insn definition.
29744 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29745 * config/s390/vector.md (V_HW_HSD): ... here.
29746
29747 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29748
29749 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29750 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29751 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29752 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29753 New insn definitions.
29754
29755 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29756
29757 * config/s390/s390-builtin-types.def: Add new builtin function type.
29758 * config/s390/s390-builtins.def: Add overloaded builtin
29759 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29760 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29761 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29762 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29763 ("eltswap<mode>"): New expander.
29764 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29765 insn definitions.
29766
29767 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29768
29769 * config/s390/s390-builtin-types.def: Add new builtin function types.
29770 * config/s390/s390-builtins.def: Add overloaded builtin
29771 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29772 instructions.
29773 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29774 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29775 ("bswap<mode>"): New expander.
29776 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29777
29778 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29779
29780 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29781 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29782 vector builtin version number in __VEC__.
29783
29784 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29785
29786 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29787 iterators.
29788 (SFSI): New mode attribute.
29789 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29790 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29791 rename to ...
29792 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29793 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29794 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29795 ("floatsi<mode>2"): Add wcefb instruction.
29796
29797 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29798
29799 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29800 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29801 mode iterators.
29802 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29803 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29804 support 32 bit fp-int conversions. Rename to ...
29805 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29806 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29807 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29808 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29809 ... to these.
29810
29811 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29812
29813 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29814 if-then-else constructs if we can use the select instruction.
29815 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29816
29817 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29818
29819 * config/s390/s390.md ("*popcountdi_arch13_cc")
29820 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29821 definition.
29822 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29823 Append _z196 to make it ...
29824 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29825 ("popcounthi2_z196"): ... this.
29826 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29827 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29828
29829 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29830
29831 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29832 certain compares for arch13 in order to make use of the condition
29833 code result produced by the new instructions.
29834 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29835 nxrk, and nxgrk instruction patterns.
29836 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29837 (inv_no): Add new code iterator together with some attributes.
29838 ("*andc_split_<mode>"): Disable splitter for arch13.
29839 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29840 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29841 ("*<ANDOR:bitops_name>c<GPR:mode>")
29842 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29843 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29844 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29845 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29846
29847 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29848
29849 * common/config/s390/s390-common.c (processor_flags_table): New
29850 entry for arch13.
29851 * config.gcc: Support arch13 with the --with-arch= configure flag.
29852 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29853 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29854 * config/s390/s390.c (s390_get_sched_attrmask)
29855 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29856 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29857 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29858 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29859 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29860 definitions.
29861 * config/s390/s390.opt: Support arch13 as processor type in
29862 command line options.
29863
29864 2019-04-02 Martin Liska <mliska@suse.cz>
29865
29866 PR translation/89912
29867 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29868 Fix param description of graphite-max-arrays-per-scop.
29869
29870 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29871
29872 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29873 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29874 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29875
29876 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29877
29878 PR rtl-optimization/85412
29879 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29880 sel_sched_region_1, not after.
29881
29882 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29883
29884 PR rtl-optimization/86928
29885 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29886 compute_live if necessary.
29887 (sel_redirect_edge_and_branch): Likewise.
29888
29889 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29890
29891 PR rtl-optimization/89865
29892 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29893 register if it is a part of small class.
29894
29895 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29896
29897 PR rtl-optimization/87273
29898 * sel-sched-ir.c (merge_fences): Remove assert.
29899
29900 2019-04-01 Richard Biener <rguenther@suse.de>
29901
29902 PR tree-optimization/46590
29903 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29904 (dom_walker::m_reachability): Add in place of...
29905 (dom_walker::m_skip_unreachable_blocks): ...this.
29906 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29907 Move complex initialization ...
29908 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29909 lazily and initialize edge flags on each invocation.
29910 (dom_walker::bb_reachable): Use m_reachability.
29911
29912 2019-04-01 Martin Liska <mliska@suse.cz>
29913
29914 PR driver/89861
29915 * opt-suggestions.c (option_proposer::build_option_suggestions):
29916 Add variant without any argument in order to provide better
29917 hints.
29918
29919 2019-04-01 Richard Biener <rguenther@suse.de>
29920
29921 PR c/71598
29922 * gimple.c: Include langhooks.h.
29923 (gimple_get_alias_set): Treat enumeral types as the underlying
29924 integer type.
29925
29926 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29927 Eric Botcazou <ebotcazou@adacore.com>
29928
29929 PR rtl-optimization/89862
29930 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29931 that operates on the full registers for WORD_REGISTER_OPERATIONS
29932 architectures.
29933
29934 2019-03-29 Jim Wilson <jimw@sifive.com>
29935
29936 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29937 Clear MASK_RVC and then set if C subset supported.
29938
29939 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29940
29941 PR c/89872
29942 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29943 non-addressable complit into its initializer if it is volatile.
29944
29945 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29946
29947 * opts-common.c (integral_argument): Set errno properly in one case.
29948
29949 2019-03-29 Martin Liska <mliska@suse.cz>
29950
29951 * doc/invoke.texi: Remove -Wchkp from documentation.
29952
29953 2019-03-29 Martin Liska <mliska@suse.cz>
29954
29955 * dbgcnt.c (print_limit_reach): New function.
29956 (dbg_cnt): Use it.
29957
29958 2019-03-29 Martin Liska <mliska@suse.cz>
29959
29960 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29961 (dbg_cnt_process_opt): Parse first tokens aas
29962 dbg_cnt_process_single_pair is also using strtok.
29963
29964 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29965
29966 PR rtl-optimization/87485
29967 * function.c (expand_function_end): Move stack_protect_epilogue
29968 before loading of return value into hard register(s).
29969
29970 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29971
29972 PR middle-end/89621
29973 * tree-inline.h (struct copy_body_data): Add
29974 dont_remap_vla_if_no_change flag.
29975 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29976 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29977 and remap_type_2 returns false.
29978 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29979 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29980 only from where it is copied to nested contexts.
29981
29982 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29983
29984 PR target/89865
29985 * config/i386/i386.md (RMW operation with LEA peephole):
29986 Use LEAMODE mode attribute instead of SWI mode iterator for
29987 LEA pattern.
29988
29989 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29990
29991 PR target/89848
29992 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29993 Also process XEXP (src, 0) of a shift insn.
29994
29995 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29996
29997 PR middle-end/89725
29998 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29999 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30000
30001 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30002
30003 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30004 test.
30005 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30006 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30007 immediately after first one with df_analyze in between, but rather
30008 process all bbs, queueing ones that need second pass in a worklist,
30009 df_analyze, process queued debug insn changes and if second pass is
30010 needed, process bbs from worklist, df_analyze, process queued debug
30011 insns again.
30012
30013 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30014 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30015 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30016
30017 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30018
30019 PR c/79022
30020 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30021 definition.
30022
30023 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30024
30025 PR target/85667
30026 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30027 function for 32-bit MS_ABI.
30028 (function_value_ms_32): New function.
30029
30030 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30031
30032 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30033 (movdi): Call gen_movdi_symbol_save_scc.
30034 (gen_movdi_symbol_save_scc): New insn and split.
30035
30036 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30037
30038 PR rtl-optimization/89313
30039 * function.c (matching_constraint_num): New static function.
30040 (match_asm_constraints_1): Use it. Fixup white space and comment.
30041 Don't replace inputs with non-matching constraints which conflict
30042 with early clobber outputs.
30043
30044 2019-03-27 Jeff Law <law@redhat.com>
30045
30046 PR rtl-optimization/87761
30047 PR rtl-optimization/89826
30048 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30049 slightly later.
30050 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30051 note problem to get REG_DEAD/REG_UNUSED notes updated.
30052
30053 2019-03-27 Richard Biener <rguenther@suse.de>
30054
30055 PR tree-optimization/89463
30056 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30057 queue edges to remove.
30058 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30059 dead stmts. Delay edge removal until PHIs are removed to
30060 make debug-stmt creation not confused by seemingly degenerate
30061 PHIs.
30062
30063 2019-03-27 Alan Modra <amodra@gmail.com>
30064
30065 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30066 throughout file.
30067 * config/rs6000/darwin.h: Likewise.
30068 * config/rs6000/rs6000.c: Likewise.
30069
30070 2019-03-27 Alan Modra <amodra@gmail.com>
30071
30072 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30073 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30074
30075 2019-03-26 Andrew Waterman <andrew@sifive.com>
30076 Jim Wilson <jimw@sifive.com>
30077
30078 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30079 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30080 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30081 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30082 (generic_alu): Add auipc to type list.
30083 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30084 (riscv_microarchitecture): Declare.
30085 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30086 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30087 field.
30088 (riscv_microarchitecture): New.
30089 (sifive_7_tune_info): New.
30090 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30091 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30092 entries.
30093 (riscv_store_data_bypass_p): New.
30094 (riscv_option_override): Set riscv_microarchitecture from
30095 cpu->microarchitecture.
30096 * config/riscv/riscv.md: Include sifive-7.md.
30097 (type): Add auipc.
30098 (tune): New.
30099 (auipc<mode>): Change type to auipc.
30100 (restore_stack_nonlocal): New.
30101 * config/riscv/sifive-7.md: New.
30102 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30103
30104 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30105
30106 PR target/89827
30107 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30108 Also process XEXP (src, 0) of a shift insn.
30109
30110 2019-03-26 Richard Biener <rguenther@suse.de>
30111
30112 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30113 (copy_debug_stmt): Likewise.
30114 (expand_call_inline): Likewise.
30115 (copy_bb): Avoid redundant lookup & set of gimple_block.
30116 * gimple-low.c (lower_gimple_return): Likewise.
30117 (lower_builtin_setjmp): Likewise.
30118
30119 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30120
30121 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30122 is constant 0, turn into static const data member initialized to false.
30123 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30124 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30125
30126 2019-03-26 Jason Merrill <jason@redhat.com>
30127 Jakub Jelinek <jakub@redhat.com>
30128
30129 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30130 method.
30131 (mem_alloc_description::release_object_overhead): Fix comment typos.
30132 * hash-table.h (hash_table::~hash_table): Call
30133 release_instance_overhead only if m_entries is non-NULL, otherwise
30134 call unregister_descriptor.
30135
30136 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30137
30138 PR tree-optimization/81740
30139 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30140 In case of outer loop vectorization, check for backward dependence
30141 at the inner loop if outer loop dependence is reversed.
30142
30143 2019-03-26 Alan Modra <amodra@gmail.com>
30144
30145 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30146 rs6000_vector_mem init. Correct wI and wJ comment.
30147
30148 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30149
30150 PR rtl-optimization/88347
30151 PR rtl-optimization/88423
30152 * sched-deps.c (sched_analyze_insn): Take into account that for
30153 tablejumps the barrier appears after a label and a jump_table_data.
30154
30155 2019-03-25 Martin Sebor <msebor@redhat.com>
30156
30157 PR c/89812
30158 * c-common.c (check_user_alignment): Rename local. Correct maximum
30159 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30160 convert it to UHWI when it fits.
30161
30162 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30163
30164 PR debug/86964
30165 * dwarf2out.c (premark_used_variables): New function.
30166 (prune_unused_types_walk): Do not mark not premarked external
30167 variables.
30168 (prune_unused_types): Call premark_used_variables.
30169
30170 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30171
30172 PR rtl-optimization/89676
30173 * lra-constraints.c (curr_insn_transform): Do match reload for
30174 early clobbers when the match was successful only for different
30175 registers.
30176
30177 2019-03-25 Martin Sebor <msebor@redhat.com>
30178
30179 * doc/extend.texi (Common Type Attributes): Document vector_size.
30180 (Common Variable Attributes): Mention size constraint. Correct
30181 quoting and typos.
30182 (Vector Extensions): Use @dfn when defining bas type. Clarify
30183 base type and size constraints.
30184
30185 2019-03-25 Richard Biener <rguenther@suse.de>
30186
30187 PR tree-optimization/89789
30188 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30189 changes from non-undefined back to undefined.
30190
30191 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30192
30193 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30194 heap string and a gc string, but since this variable is unknown to
30195 ggc the gc string might get reused and corrupted. Fixed by always
30196 using a heap string.
30197
30198 2019-03-25 Richard Biener <rguenther@suse.de>
30199
30200 PR tree-optimization/89779
30201 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30202 to remove IV defs, delay actual removal.
30203 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30204 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30205 very end, properly also reset loop control IV information.
30206
30207 2019-03-25 Richard Biener <rguenther@suse.de>
30208
30209 PR tree-optimization/89802
30210 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30211 move EH data to folded stmt.
30212
30213 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30214
30215 * config/s390/s390-builtin-types.def: Remove few unused types and
30216 fix sort order for others.
30217
30218 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30219
30220 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30221 expected and found types with -mdebug during builtin matching.
30222
30223 2019-03-25 Richard Biener <rguenther@suse.de>
30224
30225 PR middle-end/89790
30226 * fold-const.c (operand_equal_p): Revert last change with
30227 updated comment.
30228
30229 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30230
30231 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30232 notes for the result of the __tls_get_addr calls.
30233 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30234
30235 2019-03-24 Jeff Law <law@redhat.com>
30236
30237 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30238
30239 PR rtl-optimization/87761
30240 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30241 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30242 as needed.
30243 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30244 rescans. Reprocess blocks as needed, calling df_analyze before
30245 reprocessing. Always call df_analyze before fixing up debug bind
30246 insns.
30247
30248 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30249
30250 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30251 big endian.
30252
30253 2019-03-22 Andrew Pinski <apinski@marvell.com>
30254
30255 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30256 attrribute for uxtw.
30257
30258 2019-03-26 Jeff Law <law@redhat.com>
30259
30260 PR rtl-optimization/87761
30261 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30262 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30263 (mips_split_move): Accept new INSN argument. Try to forward SRC
30264 into the next instruction.
30265 (mips_split_move_insn): Pass INSN through to mips_split_move.
30266
30267 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30268
30269 PR rtl-optimization/89676
30270 * lra-constraints.c (curr_insn_transform): Do match reload for
30271 early clobbers even if the match was successful.
30272
30273 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30274
30275 PR c++/87481
30276 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30277
30278 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30279
30280 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30281
30282 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30283
30284 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30285 <avx512>_fmsub_<mode>_mask3<round_name>,
30286 <avx512>_fnmadd_<mode>_mask3<round_name>,
30287 <avx512>_fnmsub_<mode>_mask3<round_name>,
30288 avx512f_vmfmadd_<mode>_mask3<round_name>,
30289 avx512f_vmfmsub_<mode>_mask3<round_name>,
30290 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30291 instead of register_operand and %v instead of v for match_operand 1.
30292 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30293 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30294 <round_nimm_predicate> instead of register_operand and %v instead of v
30295 for match_operand 1.
30296
30297 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30298 <avx512>_fmadd_<mode>_mask3<round_name>,
30299 <avx512>_fmsub_<mode>_mask<round_name>,
30300 <avx512>_fmsub_<mode>_mask3<round_name>,
30301 <avx512>_fnmadd_<mode>_mask<round_name>,
30302 <avx512>_fnmadd_<mode>_mask3<round_name>,
30303 <avx512>_fnmsub_<mode>_mask<round_name>,
30304 <avx512>_fnmsub_<mode>_mask3<round_name>,
30305 <avx512>_fmaddsub_<mode>_mask<round_name>,
30306 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30307 <avx512>_fmsubadd_<mode>_mask<round_name>,
30308 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30309 <round_nimm_predicate> instead of nonimmediate_operand.
30310 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30311 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30312 Use register_operand instead of <round_nimm_predicate> for the
30313 operand that needs to match output.
30314 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30315 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30316 Likewise. Formatting fixes.
30317
30318 PR target/89784
30319 * config/i386/i386.c (enum ix86_builtins): Remove
30320 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30321 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30322 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30323 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30324 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30325 __builtin_ia32_vfmsubss3_mask3): New builtins.
30326 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30327 avx512f_vmfmadd_<mode>_mask3<round_name>,
30328 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30329 *avx512f_vmfmsub_<mode>_mask<round_name>,
30330 avx512f_vmfmsub_<mode>_mask3<round_name>,
30331 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30332 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30333 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30334 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30335 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30336 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30337 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30338 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30339 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30340 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30341 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30342 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30343 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30344 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30345 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30346 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30347 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30348 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30349 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30350 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30351 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30352 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30353 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30354 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30355 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30356 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30357 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30358 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30359
30360 2019-03-21 Martin Sebor <msebor@redhat.com>
30361
30362 PR tree-optimization/89350
30363 * builtins.c (compute_objsize): Also ignore offsets whose upper
30364 bound is negative.
30365 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30366 (builtin_memref::builtin_memref): Initialize new member.
30367 Allow EXPR to be null.
30368 (builtin_memref::extend_offset_range): Replace local with a member.
30369 Avoid assuming pointer offsets are unsigned.
30370 (builtin_memref::set_base_and_offset): Determine base object
30371 before computing offset range.
30372 (builtin_access::builtin_access): Handle memset.
30373 (builtin_access::generic_overlap): Replace local with a member.
30374 (builtin_access::strcat_overlap): Same.
30375 (builtin_access::overlap): Same.
30376 (maybe_diag_overlap): Same.
30377 (maybe_diag_access_bounds): Same.
30378 (wrestrict_dom_walker::check_call): Handle memset.
30379 (check_bounds_or_overlap): Same.
30380
30381 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30382 Jakub Jelinek <jakub@redhat.com>
30383
30384 PR lto/89692
30385 * tree.c (fld_type_variant, fld_incomplete_type_of,
30386 fld_process_array_type): Call fld->pset.add and don't call
30387 add_tree_to_fld_list if it returns true.
30388 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30389 non-marked types from TYPE_NEXT_VARIANT list.
30390 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30391
30392 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30393
30394 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30395 to false, if true, don't alloc_entries during construction, but defer
30396 it to the first method that needs m_entries allocated.
30397 (hash_table::hash_table, hash_table::~hash_table,
30398 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30399 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30400 hash_table::clear_slot, hash_table::traverse_noresize,
30401 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30402 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30403 false.
30404 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30405 NO_INSERT instead of find_with_hash.
30406 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30407 hash_set::m_table): Add Lazy to template params of hash_table.
30408 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30409 * attribs.c (test_attribute_exclusions): Likewise.
30410 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30411 hash_set. Add tests for hash_set with Lazy = true.
30412
30413 2019-03-21 Richard Biener <rguenther@suse.de>
30414
30415 PR tree-optimization/89779
30416 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30417 checks with respect to released SSA names now having error_mark_node
30418 type.
30419 * fold-const.c (operand_equal_p): Likewise.
30420
30421 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30422
30423 PR target/89775
30424 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30425 available to ...
30426 (s390_optimize_register_info): Use global_not_special_regno_p to
30427 check for global regs.
30428
30429 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30430
30431 PR target/89752
30432 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30433 update this_alternative nor this_alternative_set.
30434
30435 2019-03-19 Jim Wilson <jimw@sifive.com>
30436
30437 PR target/89411
30438 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30439 align, size, offset. Use them to handle a BLKmode reference. Update
30440 comment.
30441 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30442
30443 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30444
30445 PR rtl-optimization/89768
30446 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30447 instead of GEN_INT.
30448 (unroll_loop_runtime_iterations): Likewise.
30449
30450 2019-03-19 Martin Sebor <msebor@redhat.com>
30451
30452 PR tree-optimization/89644
30453 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30454 rather than endptr as an indicator of nul-termination.
30455
30456 PR tree-optimization/89644
30457 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30458 arrays in determining sequence sizes in strncpy and stpncpy.
30459
30460 2019-03-19 Martin Liska <mliska@suse.cz>
30461
30462 PR middle-end/89737
30463 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30464 unlikely_edges if there's an edge that belongs to both these sets.
30465
30466 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30467
30468 PR target/89746
30469 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30470 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30471 go via a stack temporary.
30472
30473 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30474
30475 PR target/89378
30476 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30477 instead of gen_rtx_SUBREG.
30478 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30479
30480 2019-03-19 Richard Biener <rguenther@suse.de>
30481
30482 PR debug/88389
30483 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30484
30485 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30486
30487 PR lto/87809
30488 PR lto/89335
30489 * tree.c (free_lang_data_in_decl): Do not free context of C++
30490 destrutors.
30491
30492 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30493
30494 PR target/89506
30495 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30496 subs for the first alternative except when operands[3] is 1.
30497
30498 PR target/89752
30499 * gimplify.c (gimplify_asm_expr): For output argument with
30500 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30501 diagnose error.
30502
30503 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30504
30505 PR rtl-optimization/89753
30506 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30507 explicit unrolling factor even more robust.
30508
30509 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30510
30511 PR target/89726
30512 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30513 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30514 signed zeros, do another copysign after the compensation.
30515
30516 2019-03-18 Martin Sebor <msebor@redhat.com>
30517
30518 PR tree-optimization/89720
30519 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30520 more conservatively, the same as anti-range.
30521
30522 2019-03-18 Richard Biener <rguenther@suse.de>
30523
30524 PR middle-end/88945
30525 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30526 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30527 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30528 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30529
30530 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30531
30532 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30533 Extend queue to 1024 entries.
30534 Add "consumed" field.
30535 (gomp_print_output): Remove print_index parameter.
30536 Add final parameter.
30537 Change limit to unsigned.
30538 Use consumed field to implement circular buffer.
30539 Detect interrupted print in final pass.
30540 Flush output at the end.
30541 (run): Update gomp_print_output usage.
30542 (main): Initialize kernargs->output_data.consumed.
30543
30544 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30545
30546 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30547 calculation of the minimum number of scalar iterations for
30548 fully-predicated loops.
30549
30550 2019-03-18 Martin Jambor <mjambor@suse.cz>
30551
30552 PR tree-optimization/89546
30553 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30554 any propagation to its children took place.
30555
30556 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30557
30558 PR target/89627
30559 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30560 parameter, and make use of it.
30561 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30562
30563 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30564
30565 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30566 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30567 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30568 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30569 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30570 match what the ops is doing.
30571 (push_multi_fp_blink): Likewise.
30572 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30573 compiling for size and elf target.
30574 (arc_save_callee_enter): Adjust note to match what enter/leave
30575 operation does.
30576
30577 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30578
30579 * config/arc/arc.md (tst_movb): Fix constraint.
30580
30581 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30582
30583 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30584
30585 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30586
30587 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30588 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30589 reg_alloc_order references.
30590 (size_alloc_order): Define.
30591 (arc_adjust_reg_alloc_order): New function.
30592 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30593 order.
30594 (ADJUST_REG_ALLOC_ORDER): Define.
30595 (HONOR_REG_ALLOC_ORDER): Likewise.
30596
30597 2019-03-18 Richard Biener <rguenther@suse.de>
30598
30599 PR target/87561
30600 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30601 loads and stores a bit more.
30602
30603 2019-03-18 Richard Biener <rguenther@suse.de>
30604
30605 PR target/87561
30606 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30607 load pessimization to stores as well.
30608
30609 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30610
30611 PR middle-end/86979
30612 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30613 successor, use NULL as its av set.
30614
30615 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30616
30617 PR rtl-optimization/89721
30618 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30619
30620 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30621
30622 PR target/87532
30623 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30624 When handling vec_extract, use modular arithmetic to allow
30625 constant selectors greater than vector length.
30626 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30627 V1TImode vectors to have constant selector values greater than 0.
30628 Use modular arithmetic to compute vector index.
30629 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30630 index for in-memory vectors. Correct code generation for
30631 in-register vectors.
30632 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30633 compute index.
30634
30635 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30636
30637 PR c++/88534
30638 PR c++/88537
30639 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30640 VAR_DECL args.
30641
30642 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30643
30644 PR c++/89709
30645 * tree.c (inchash::add_expr): Strip any location wrappers.
30646 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30647 after hash verification.
30648
30649 PR debug/89704
30650 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30651 SIGN_EXTEND and ZERO_EXTEND.
30652
30653 2019-03-14 Jason Merrill <jason@redhat.com>
30654 Jakub Jelinek <jakub@redhat.com>
30655
30656 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30657 than if is_empty (*slot).
30658 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30659 existing elt and for elt removal.
30660 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30661 of already removed elt.
30662
30663 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30664
30665 PR target/89650
30666 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30667 REG_EH_REGION note.
30668
30669 2019-03-14 Martin Liska <mliska@suse.cz>
30670
30671 PR other/89712
30672 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30673
30674 2019-03-14 Richard Biener <rguenther@suse.de>
30675
30676 PR target/89711
30677 * config/i386/i386.c (make_resolver_func): Properly set
30678 DECL_CONTEXT on the RESULT_DECL.
30679 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30680
30681 2019-03-14 Richard Biener <rguenther@suse.de>
30682
30683 * gimple-pretty-print.c: Include cfgloop.h.
30684 (dump_gimple_phi): Adjust.
30685 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30686 (pp_cfg_jump): Adjust.
30687 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30688 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30689 (lower_phi_internal_fn): Remove.
30690 (verify_gimple_call): Remove IFN_PHI special-casing.
30691 (dump_function_to_file): Dump IL state.
30692 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30693 done to deal with PHI nodes being present in non-SSA state.
30694
30695 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30696
30697 PR ipa/89684
30698 * multiple_target.c (create_dispatcher_calls): Change
30699 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30700 In the node->iterate_referring loop, push *ref rather than ref, call
30701 ref->remove_reference () and always pass 0 to iterate_referring.
30702
30703 PR rtl-optimization/89679
30704 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30705 would contain a paradoxical SUBREG.
30706
30707 2019-03-14 Richard Biener <rguenther@suse.de>
30708
30709 PR tree-optimization/89710
30710 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30711 safe_dyn_cast.
30712
30713 2019-03-14 Martin Liska <mliska@suse.cz>
30714
30715 * coverage.c (coverage_begin_function): Stream also
30716 end_column.
30717 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30718 documentation about function declaration location.
30719 * gcov-dump.c (tag_function): Print whole range
30720 of function declaration.
30721 * gcov.c (struct function_info): Add end_column field.
30722 (function_info::function_info): Initialize it.
30723 (output_json_intermediate_file): Output {start,end}_column
30724 fields.
30725 (read_graph_file): Read end_column.
30726
30727 2019-03-14 Richard Biener <rguenther@suse.de>
30728
30729 PR middle-end/89698
30730 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30731 that the access types are similar.
30732
30733 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30734
30735 PR tree-optimization/89703
30736 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30737 aren't compatible also with builtin_decl_explicit. Check pure
30738 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30739 and BUILT_IN_STPNCPY{,_CHK}.
30740
30741 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30742
30743 PR target/89523
30744 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30745 addr32 prefix to VSIB address for X32.
30746 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30747 "%M2" to opcode.
30748 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30749 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30750 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30751 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30752 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30753 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30754 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30755 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30756 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30757 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30758 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30759 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30760 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30761 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30762 (*avx512f_scatterdi<mode>): Likewise.
30763
30764 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30765
30766 PR target/85860
30767 * lra-constraints.c (inherit_in_ebb): Update
30768 potential_reload_hard_regs along with live_hard_regs.
30769
30770 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30771
30772 PR debug/89498
30773 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30774 DWARF_OFFSET_SIZE.
30775 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30776
30777 2019-03-13 Martin Sebor <msebor@redhat.com>
30778
30779 PR tree-optimization/89662
30780 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30781 has a size.
30782
30783 2019-03-13 Richard Biener <rguenther@suse.de>
30784
30785 PR middle-end/89677
30786 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30787 throw FP expressions at tree-affine.
30788
30789 2019-03-14 Richard Biener <rguenther@suse.de>
30790
30791 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30792 dump negative integer constants using _Literal (type) -num.
30793
30794 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30795
30796 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30797 nonlocal_value member.
30798
30799 PR middle-end/88588
30800 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30801 (ipa_simd_modify_function_body): Handle PHIs.
30802
30803 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30804
30805 * config/s390/s390.c (s390_option_override_internal): Use more
30806 aggressive inlining parameters.
30807
30808 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30809
30810 * config/s390/3906.md: New file.
30811 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30812 (LONGRUNNING_THRESHOLD): Remove.
30813 (MAX_SCHED_MIX_SCORE): Decrease.
30814 (MAX_SCHED_MIX_DISTANCE): Decrease.
30815 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30816 (struct s390_sched_state): New struct to hold scheduling state.
30817 (S390_SCHED_STATE_NORMAL): Remove.
30818 (S390_SCHED_STATE_CRACKED): Remove.
30819 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30820 (s390_get_sched_attrmask): Use new attribute.
30821 (s390_get_unit_mask): Use new units.
30822 (s390_is_fpd): New function.
30823 (s390_is_fxd): New function.
30824 (s390_is_longrunning): New function.
30825 (s390_sched_score): Use new functions.
30826 (s390_sched_reorder): Likewise.
30827 (s390_sched_variable_issue): Rework and use new functions.
30828 (s390_sched_init): Use new functions.
30829 * config/s390/s390.h (s390_tune_attr): Add z14.
30830 * config/s390/s390.md: Add z14.
30831
30832 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30833
30834 * config/s390/2964.md: Update pipeline description.
30835 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30836 (LONGRUNNING_THRESHOLD): Remove.
30837 (LATENCY_FACTOR): Remove.
30838 (s390_get_unit_mask): Add unit.
30839 (s390_sched_score): Use fxd/fpd.
30840 (s390_sched_variable_issue): Use fxd/fpd.
30841
30842 2019-03-12 Martin Liska <mliska@suse.cz>
30843
30844 * config/i386/i386.c: Reword an error message.
30845
30846 2019-03-12 Martin Jambor <mjambor@suse.cz>
30847
30848 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30849 terminate with newline.
30850
30851 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30852
30853 PR target/52726
30854 * config/s390/s390.md (tabort): Use %wd instead of
30855 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30856 letters and periods.
30857 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30858 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30859 's with %< and %>.
30860
30861 PR middle-end/89663
30862 * builtins.c (expand_builtin_int_roundingfn,
30863 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30864 gcc_unreachable if validate_arglist fails.
30865
30866 2019-03-12 Richard Biener <rguenther@suse.de>
30867
30868 PR tree-optimization/89664
30869 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30870 free the occurance tree after the early out.
30871
30872 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30873
30874 PR middle-end/89655
30875 PR bootstrap/89656
30876 * vr-values.c (vr_values::update_value_range): If
30877 old_vr->varying_p (), don't update it, make new_vr also VARYING
30878 and return false.
30879
30880 2019-03-11 Martin Liska <mliska@suse.cz>
30881
30882 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30883 Fix double string quoting.
30884
30885 2019-03-11 Martin Liska <mliska@suse.cz>
30886
30887 * collect-utils.c (collect_wait): Wrap apostrophes
30888 in gcc internal format with %'.
30889 * collect2.c (main): Likewise.
30890 (scan_prog_file): Likewise.
30891 (scan_libraries): Likewise.
30892 * config/i386/i386.c (ix86_expand_call): Likewise.
30893 (ix86_handle_interrupt_attribute): Likewise.
30894 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30895 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30896 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30897 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30898 * symtab.c (symtab_node::verify_base): Likewise.
30899 * tree-cfg.c (verify_gimple_label): Likewise.
30900 * tree.c (verify_type_variant): Likewise.
30901
30902 2019-03-11 Martin Liska <mliska@suse.cz>
30903
30904 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30905 in a string format message and fix GNU coding style.
30906 (expand_builtin_set_thread_pointer): Likewise.
30907 * common/config/aarch64/aarch64-common.c
30908 (aarch64_rewrite_selected_cpu): Likewise.
30909 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30910 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30911 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30912 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30913 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30914 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30915 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30916 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30917 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30918 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30919 Likewise.
30920 * common/config/riscv/riscv-common.c
30921 (riscv_subset_list::parsing_subset_version): Likewise.
30922 (riscv_subset_list::parse_std_ext): Likewise.
30923 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30924 (riscv_subset_list::parse): Likewise.
30925 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30926 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30927 (aarch64_override_options_internal): Likewise.
30928 (aarch64_validate_mcpu): Likewise.
30929 (aarch64_validate_march): Likewise.
30930 (aarch64_validate_mtune): Likewise.
30931 (aarch64_override_options): Likewise.
30932 * config/alpha/alpha.c (alpha_option_override): Likewise.
30933 * config/arc/arc.c (arc_init): Likewise.
30934 (parse_mrgf_banked_regs_option): Likewise.
30935 (arc_override_options): Likewise.
30936 (arc_expand_builtin_aligned): Likewise.
30937 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30938 (arm_expand_builtin): Likewise.
30939 * config/arm/arm.c (arm_option_check_internal): Likewise.
30940 (arm_configure_build_target): Likewise.
30941 (arm_option_override): Likewise.
30942 (arm_options_perform_arch_sanity_checks): Likewise.
30943 (arm_handle_cmse_nonsecure_entry): Likewise.
30944 (arm_handle_cmse_nonsecure_call): Likewise.
30945 (arm_tls_referenced_p): Likewise.
30946 (thumb1_expand_prologue): Likewise.
30947 * config/avr/avr.c (avr_option_override): Likewise.
30948 * config/bfin/bfin.c (bfin_option_override): Likewise.
30949 * config/c6x/c6x.c (c6x_option_override): Likewise.
30950 * config/cr16/cr16.c (cr16_override_options): Likewise.
30951 * config/cris/cris.c (cris_option_override): Likewise.
30952 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30953 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30954 * config/darwin.c (darwin_override_options): Likewise.
30955 * config/frv/frv.c (frv_expand_builtin): Likewise.
30956 * config/h8300/h8300.c (h8300_option_override): Likewise.
30957 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30958 (ix86_option_override_internal): Likewise.
30959 (warn_once_call_ms2sysv_xlogues): Likewise.
30960 (ix86_expand_prologue): Likewise.
30961 (split_stack_prologue_scratch_regno): Likewise.
30962 (ix86_warn_parameter_passing_abi): Likewise.
30963 * config/ia64/ia64.c (fix_range): Likewise.
30964 * config/m68k/m68k.c (m68k_option_override): Likewise.
30965 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30966 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30967 (mips_set_compression_mode): Likewise.
30968 * config/mmix/mmix.c (mmix_option_override): Likewise.
30969 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30970 * config/msp430/msp430.c (msp430_option_override): Likewise.
30971 * config/nds32/nds32.c (nds32_option_override): Likewise.
30972 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30973 (nios2_option_override): Likewise.
30974 (nios2_expand_custom_builtin): Likewise.
30975 * config/nvptx/mkoffload.c (main): Likewise.
30976 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30977 * config/pa/pa.c (fix_range): Likewise.
30978 (pa_option_override): Likewise.
30979 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30980 (riscv_option_override): Likewise.
30981 * config/rl78/rl78.c (rl78_option_override): Likewise.
30982 * config/rs6000/aix61.h: Likewise.
30983 * config/rs6000/aix71.h: Likewise.
30984 * config/rs6000/aix72.h: Likewise.
30985 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30986 * config/rs6000/freebsd64.h: Likewise.
30987 * config/rs6000/linux64.h: Likewise.
30988 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30989 (rs6000_expand_zeroop_builtin): Likewise.
30990 (rs6000_expand_mtfsb_builtin): Likewise.
30991 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30992 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30993 (rs6000_invalid_builtin): Likewise.
30994 (rs6000_expand_split_stack_prologue): Likewise.
30995 * config/rs6000/rtems.h: Likewise.
30996 * config/rx/rx.c (valid_psw_flag): Likewise.
30997 (rx_expand_builtin): Likewise.
30998 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30999 * config/s390/s390.c (s390_expand_builtin): Likewise.
31000 (s390_function_profiler): Likewise.
31001 (s390_option_override_internal): Likewise.
31002 (s390_option_override): Likewise.
31003 * config/sh/sh.c (sh_option_override): Likewise.
31004 (sh_builtin_saveregs): Likewise.
31005 (sh_fix_range): Likewise.
31006 * config/sh/vxworks.h: Likewise.
31007 * config/sparc/sparc.c (sparc_option_override): Likewise.
31008 * config/spu/spu.c (spu_option_override): Likewise.
31009 (fix_range): Likewise.
31010 * config/visium/visium.c (visium_option_override): Likewise.
31011 (visium_handle_interrupt_attr): Likewise.
31012 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31013 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31014 (dbg_cnt_process_opt): Likewise.
31015 * dwarf2out.c (output_dwarf_version): Likewise.
31016 * except.c (expand_eh_return): Likewise.
31017 * gcc.c (defined): Likewise.
31018 (driver_handle_option): Likewise.
31019 (process_command): Likewise.
31020 (compare_files): Likewise.
31021 (driver::prepare_infiles): Likewise.
31022 (driver::do_spec_on_infiles): Likewise.
31023 (driver::maybe_run_linker): Likewise.
31024 * omp-offload.c (oacc_parse_default_dims): Likewise.
31025 * opts-global.c (handle_common_deferred_options): Likewise.
31026 * opts.c (parse_sanitizer_options): Likewise.
31027 (common_handle_option): Likewise.
31028 (enable_warning_as_error): Likewise.
31029 * passes.c (enable_disable_pass): Likewise.
31030 * plugin.c (parse_plugin_arg_opt): Likewise.
31031 (default_plugin_dir_name): Likewise.
31032 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31033 (default_pch_valid_p): Likewise.
31034 * toplev.c (init_asm_output): Likewise.
31035 (process_options): Likewise.
31036 (toplev::run_self_tests): Likewise.
31037 * tree-cfg.c (verify_gimple_call): Likewise.
31038 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31039 (tree_inlinable_function_p): Likewise.
31040 * var-tracking.c (vt_find_locations): Likewise.
31041
31042 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31043
31044 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31045 only on the else branch.
31046
31047 2019-03-11 Martin Liska <mliska@suse.cz>
31048
31049 * gcov.c (output_intermediate_json_line): Print function
31050 name of each line.
31051 (output_json_intermediate_file): Add new argument.
31052 * doc/gcov.texi: Document the change.
31053
31054 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31055
31056 PR rtl-optimization/89588
31057 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31058 explicit unrolling factor more robust.
31059
31060 2019-03-11 Richard Biener <rguenther@suse.de>
31061
31062 PR tree-optimization/89649
31063 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31064 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31065 on the prolog and epilog loops.
31066 (vect_loop_versioning): Return copy of loop.
31067 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31068 on the non-vectorized version of the loop.
31069
31070 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31071
31072 PR target/68924
31073 * config/i386/sse.md (*vec_extractv2di_0_sse):
31074 Add (=r,x) alternative and corresponding splitter.
31075
31076 2019-03-10 Martin Jambor <mjambor@suse.cz>
31077
31078 PR tree-optimization/85762
31079 PR tree-optimization/87008
31080 PR tree-optimization/85459
31081 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31082 it points to if there is a type changing MEM_REF. Adjust all callers.
31083 (build_accesses_from_assign): Disable total scalarization if
31084 contains_vce_or_bfcref_p returns true through the new parameter, for
31085 both rhs and lhs.
31086
31087 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31088
31089 PR c/88568
31090 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31091 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31092
31093 PR target/79645
31094 * common.opt (fdiagnostics-show-labels,
31095 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31096 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31097 gas-locview-support, ginline-points, ginternal-reset-location-views):
31098 Terminate description text with a dot.
31099 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31100 * config/mcore/mcore.opt (m210, m340): Likewise.
31101 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31102 mnops=): Start description text with a capital letter.
31103 * config/arc/arc.opt (msize-level=): Likewise.
31104 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31105 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31106 mnewlib): Likewise.
31107 * config/ft32/ft32.opt (msim): Likewise.
31108 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31109 (mnodiv, mnopm): Terminate description text with a dot.
31110 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31111 a colon.
31112 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31113 Likewise.
31114 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31115 text.
31116
31117 PR rtl-optimization/89634
31118 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31119 are modified in BB_END (e->src) instruction.
31120
31121 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31122
31123 PR target/79926
31124 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31125 messages more amenable to translation, and improve wording.
31126
31127 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31128
31129 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31130 ud- and du-chains between phases.
31131
31132 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31133
31134 PR debug/89631
31135 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31136 instead of POLY_INT_CST.
31137
31138 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31139
31140 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31141 requirement.
31142
31143 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31144
31145 PR target/68924
31146 PR target/78782
31147 PR target/87558
31148 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31149 (_mm_storeu_si64): Ditto.
31150
31151 2019-03-08 Martin Liska <mliska@suse.cz>
31152
31153 PR target/86952
31154 * config/i386/i386.c (ix86_option_override_internal): Disable
31155 jump tables when retpolines are used.
31156
31157 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31158
31159 PR go/63560
31160 * ipa-split.c (execute_split_functions): Do not split
31161 'noinline' or 'section' function.
31162
31163 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31164
31165 PR target/79846
31166 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31167 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31168 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31169
31170 PR ipa/80000
31171 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31172 from diagnostics. Formatting fixes.
31173
31174 PR target/85665
31175 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31176 warn_odr diagnostics.
31177
31178 PR other/80058
31179 * lra-constraints.c (process_alt_operands): Avoid one space before
31180 " at the end of line and another after " on another line in a string
31181 literal.
31182 * attribs.c (handle_dll_attribute): Likewise.
31183 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31184
31185 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31186 warning_at or inform messages in G_() if there is no ?:.
31187
31188 PR tree-optimization/89550
31189 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31190 returned true. Formatting fixes.
31191 (expand_builtin_strnlen): Formatting fixes.
31192 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31193 if warning_at returned true.
31194 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31195
31196 2019-03-08 Richard Biener <rguenther@suse.de>
31197
31198 PR middle-end/89578
31199 * cfgloop.h (struct loop): Add owned_clique field.
31200 * cfgloopmanip.c (copy_loop_info): Copy it.
31201 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31202 cliques.
31203 * tree-inline.c (copy_loops): Remap owned_clique.
31204 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31205 * lto-streamer-out.c (output_cfg): Likewise.
31206
31207 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31208
31209 PR target/80190
31210 * config/darwin.c: Include intl.h.
31211 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31212 composing the message out of two separate parts.
31213
31214 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31215
31216 PR target/80003
31217 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31218 doesn't start with a capital letter and doesn't end with a dot.
31219 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31220 with a capital letter.
31221 (ix86_mangle_function_version_assembler_name): Likewise.
31222 (ix86_generate_version_dispatcher_body): Likewise.
31223 (fold_builtin_cpu): Likewise.
31224 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31225 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31226 translators, wrap full type name in %qs.
31227
31228 PR translation/79999
31229 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31230 depend clause with source (or sink) modifier.
31231 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31232
31233 PR target/89602
31234 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31235 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31236 (avx512f_load<mode>_mask): New define_expand.
31237 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31238 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31239 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31240 __builtin_ia32_movess_mask): New builtins.
31241 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31242 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31243 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31244 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31245
31246 2019-03-07 Martin Jambor <mjambor@suse.cz>
31247
31248 PR lto/87525
31249 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31250 for extern inline functions.
31251
31252 2019-03-07 Martin Jambor <mjambor@suse.cz>
31253
31254 PR ipa/88235
31255 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31256 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31257 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31258 have multiple callees. At the end check if declarations match as
31259 opposed to cgraph_nodes.
31260
31261 2019-03-07 Martin Liska <mliska@suse.cz>
31262
31263 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31264 which is equivalent to searching for this in clones chain.
31265 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31266 names with a neighbour and special case first node in a chain.
31267
31268 2019-01-25 Jason Merrill <jason@redhat.com>
31269
31270 PR c++/80916 - spurious "static but not defined" warning.
31271 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31272 for an internal symbol with DECL_EXTERNAL.
31273
31274 2019-04-07 Richard Biener <rguenther@suse.de>
31275
31276 PR middle-end/89618
31277 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31278 * tree-inline.c (copy_loops): Simplify.
31279
31280 2019-03-07 Martin Liska <mliska@suse.cz>
31281
31282 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31283
31284 2019-03-07 Richard Biener <rguenther@suse.de>
31285
31286 PR tree-optimization/89595
31287 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31288 stmt iterator as reference, take boolean output parameter to
31289 indicate whether the stmt was removed and thus the iterator
31290 already advanced.
31291 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31292 stmts created by folding.
31293
31294 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31295
31296 PR c++/89585
31297 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31298 at toplevel.
31299
31300 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31301
31302 PR rtl-optimization/88845
31303 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31304 LRA.
31305 * lra.c (remove_scratches_1): New function.
31306 (remove_scratches): Use it.
31307 (lra_emit_move): Likewise.
31308
31309 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31310
31311 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31312 unaligned_access variable.
31313 * config/arc/arc.c (arc_override_options): Set unaligned access
31314 default on for HS CPUs.
31315 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31316
31317 2019-03-06 Martin Liska <mliska@suse.cz>
31318
31319 PR gcov-profile/89577
31320 * doc/gcov.texi: Prefer to use --coverage.
31321 * doc/sourcebuild.texi: Likewise.
31322
31323 2019-03-02 Jason Merrill <jason@redhat.com>
31324
31325 PR c++/86485 - -Wmaybe-unused with empty class ?:
31326 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31327
31328 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31329
31330 PR target/89587
31331 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31332 if_multiarch.
31333
31334 PR middle-end/89590
31335 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31336 exactly one argument.
31337
31338 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31339 Richard Sandiford <richard.sandiford@arm.com>
31340
31341 PR tree-optimization/89570
31342 * match.pd (vec_cond into cond_op simplification): Don't use
31343 get_conditional_internal_fn, use as_internal_fn (cond_op).
31344
31345 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31346
31347 PR target/89222
31348 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31349 to decide when to split off a non-zero offset from a symbol.
31350 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31351 in function symbols.
31352
31353 2019-03-05 Richard Biener <rguenther@suse.de>
31354
31355 PR tree-optimization/89594
31356 * tree-if-conv.c (pass_if_conversion::execute): Handle
31357 case where .LOOP_VECTORIZED_FUNCTION was removed.
31358
31359 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31360
31361 PR bootstrap/89560
31362 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31363 instead alloca it only when needed with the needed size.
31364
31365 PR tree-optimization/89570
31366 * match.pd (vec_cond into cond_op simplification): Guard with
31367 vectorized_internal_fn_supported_p test and #if GIMPLE.
31368
31369 PR tree-optimization/89566
31370 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31371 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31372 Punt if get_user_idx_format succeeds, but idx_format argument is
31373 not provided or doesn't have pointer type, or if idx_args is above
31374 number of provided arguments.
31375
31376 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31377
31378 PR tree-optimization/89437
31379 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31380
31381 2019-03-04 Richard Biener <rguenther@suse.de>
31382
31383 PR middle-end/89572
31384 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31385 safe_dyn_cast.
31386
31387 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31388
31389 PR tree-optimization/89487
31390 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31391 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31392 (distribute_loop): Don't do runtime alias check if there is non-
31393 addressable data reference.
31394 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31395 is a register variable.
31396
31397 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31398
31399 PR target/89506
31400 * config/arm/arm.md (cmpsi2_addneg): Use
31401 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31402 If operands[2] is 0 or INT_MIN, force use of subs.
31403 (*compare_scc splitter): Use gen_int_mode.
31404 (*negscc): Likewise.
31405 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31406
31407 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31408 Monk Chiang <sh.chiang04@gmail.com>
31409
31410 * common/config/riscv/riscv-common.c: Include sstream.
31411 (riscv_subset_list::to_string): New.
31412 (riscv_arch_str): Likewise.
31413 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31414 * config.in: Regen.
31415 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31416 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31417 (riscv_emit_attribute): New.
31418 (riscv_file_start): Emit attribute if needed.
31419 (riscv_option_override): Init riscv_emit_attribute_p.
31420 * config/riscv/riscv.opt (mriscv-attribute): New option.
31421 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31422 * configure: Regen.
31423 * doc/install.texi: Document --with-riscv-attribute.
31424 * doc/invoke.texi: Document -mriscv-attribute.
31425
31426 * common/config/riscv/riscv-common.c:
31427 Include config/riscv/riscv-protos.h.
31428 (INCLUDE_STRING): Defined.
31429 (RISCV_DONT_CARE_VERSION): Defined.
31430 (riscv_subset_t): Declare.
31431 (riscv_subset_t::riscv_subset_t): New.
31432 (riscv_subset_list): Declare.
31433 (riscv_subset_list::riscv_subset_list): New.
31434 (riscv_subset_list::~riscv_subset_list): Likewise.
31435 (riscv_subset_list::parsing_subset_version): Likewise.
31436 (riscv_subset_list::parse_std_ext): Likewise.
31437 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31438 (riscv_subset_list::add): Likewise.
31439 (riscv_subset_list::lookup): Likewise.
31440 (riscv_subset_list::xlen): Likewise.
31441 (riscv_subset_list::parse): Likewise.
31442 (riscv_supported_std_ext): Likewise.
31443 (current_subset_list): Likewise.
31444 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31445 parse.
31446
31447 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31448
31449 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31450 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31451 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31452
31453 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31454
31455 PR rtl-optimization/85899
31456 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31457 fallthru edges leading to the exit block.
31458
31459 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31460
31461 PR target/89517
31462 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31463 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31464
31465 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31466
31467 PR tree-optimization/89535
31468 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31469 for each operand. Calculate the fallback choice for mask operands
31470 and pass it to vect_get_vec_def_for_operand.
31471
31472 2019-03-01 Richard Biener <rguenther@suse.de>
31473
31474 PR middle-end/89541
31475 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31476 get virtual operands.
31477 (get_expr_operands): Handle CONST_DECL like other decls.
31478
31479 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31480
31481 PR middle-end/89503
31482 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31483 on DECL_P and EXPR_P.
31484
31485 2019-03-01 Richard Biener <rguenther@suse.de>
31486
31487 PR middle-end/89497
31488 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31489 argument, defaulted to zero.
31490 * passes.c (execute_function_todo): Pass down SSA update flags
31491 to cleanup_tree_cfg.
31492 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31493 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31494 form if requested.
31495 (cleanup_tree_cfg): Get and pass down SSA update flags.
31496
31497 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31498
31499 PR bootstrap/89539
31500 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31501 early_lto_debug argument.
31502
31503 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31504
31505 PR tree-optimization/89536
31506 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31507 only whether bit #0 of the value is 0 instead of the entire value.
31508
31509 2019-02-28 Marek Polacek <polacek@redhat.com>
31510
31511 PR c++/87068 - missing diagnostic with fallthrough statement.
31512 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31513 at the end of a seq, save its location to walk_stmt_info.
31514 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31515 a switch.
31516
31517 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31518
31519 PR lto/88585
31520 * tree.c (find_atomic_core_type): Move ahead in file.
31521 (check_base_type): Correctly compare alignments of atomic types.
31522
31523 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31524
31525 PR target/89455
31526 * config/i386/i386.c (get_builtin_code_for_version): Identify
31527 Westmere from PCLMUL, instead of AES.
31528
31529 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31530
31531 PR target/89434
31532 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31533 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31534 -UINTVAL (...).
31535
31536 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31537
31538 PR target/88530
31539 * config/aarch64/aarch64-option-extensions.def: Document it.
31540 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31541 if empty hwcaps.
31542
31543 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31544
31545 PR c/89520
31546 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31547 builtins if they don't have a single scalar floating point argument.
31548 Formatting fixes.
31549
31550 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31551
31552 PR rtl-optimization/89490
31553 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31554 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31555 block section is not mergeable.
31556
31557 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31558
31559 PR target/70341
31560 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31561 old define_insn to ...
31562 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31563 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31564 Rename old define_insn to ...
31565 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31566 (thumb2_casesi_internal_pic): New define_expand. Rename old
31567 define_insn to ...
31568 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31569 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31570 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31571
31572 2019-02-27 Richard Biener <rguenther@suse.de>
31573
31574 PR debug/88878
31575 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31576
31577 2019-02-27 Richard Biener <rguenther@suse.de>
31578
31579 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31580 building.
31581
31582 2019-02-27 Richard Biener <rguenther@suse.de>
31583
31584 PR debug/88878
31585 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31586 parameter, prefix section name with .gnu.debuglto_ if true.
31587 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31588 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31589
31590 2019-02-27 Richard Biener <rguenther@suse.de>
31591
31592 PR debug/89514
31593 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31594 rather than on use_debug_types, doing what output_die does.
31595 (value_format): Likewise.
31596
31597 2019-02-27 Martin Jambor <mjambor@suse.cz>
31598 Martin Sebor <msebor@redhat.com>
31599
31600 * doc/invoke.texi (Warning Options): Reword description of
31601 -Wno-absolute-value.
31602
31603 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31604
31605 PR tree-optimization/89280
31606 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31607 builtin_setjmp_setup_bb): New functions.
31608 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31609 When visiting __builtin_setjmp_setup block, queue in special
31610 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31611 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31612 from visited after the loop if they don't have any visited successor
31613 blocks.
31614
31615 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31616
31617 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31618 New function.
31619 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31620
31621 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31622
31623 PR c++/89507
31624 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31625 with types other than sizetype/ssizetype.
31626
31627 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31628
31629 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31630 (enum sparc_processor_type): ...this.
31631 (enum sparc_code_model_type): New enumeration type.
31632 (enum sparc_memory_model_type): Tweak comments.
31633 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31634 (mtune): Likewise.
31635 (mcmodel): Use sparc_code_model enumeration and variable.
31636 (sparc_code_model): New enumeration.
31637 (mdebug): Add Undocumented marker.
31638 * config/sparc/sparc.h (enum cmodel): Delete.
31639 (sparc_cmodel): Likewise.
31640 (TARGET_CM_MEDLOW): Adjust to above renaming.
31641 (TARGET_CM_MEDMID): Likewise.
31642 (TARGET_CM_MEDANY): Likewise.
31643 (TARGET_CM_EMBMEDANY): Likewise.
31644 * config/sparc/sparc.c (sparc_cmodel): Delete.
31645 (sparc_option_override): Remove string/value mapping support for the
31646 code model. Move code and memory model support to after the handling
31647 of target flags. Do private machine setup last.
31648 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31649 (sparc_legitimize_reload_address): Likewise.
31650 (sparc_output_mi_thunk): Likewise.
31651 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31652
31653 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31654
31655 PR tree-optimization/89500
31656 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31657 (handle_builtin_strlen): Remove noncst_bound variable. Always
31658 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31659 cst if the first cst bytes starting at x are known to be non-zero,
31660 even if the string is not zero terminated. Don't try to modify
31661 *si for strnlen. Update strlen_to_stridx only for strlen or if
31662 we can prove strnlen returns the same value as strlen would.
31663
31664 2019-02-26 Martin Liska <mliska@suse.cz>
31665
31666 * alloc-pool.h (struct pool_usage): Remove extra
31667 print_dash_line.
31668 * bitmap.h (struct bitmap_usage): Likewise.
31669 * ggc-common.c (struct ggc_usage): Likewise.
31670 * mem-stats.h (struct mem_usage): Likewise.
31671 (mem_alloc_description::dump): Print dash lines
31672 here and repeat header at the end of a table report.
31673 It's then more readable.
31674 * tree-phinodes.c (phinodes_print_statistics): Make
31675 horizontal alignment.
31676 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31677 * vec.c (struct vec_usage): Remove extra print_dash_line.
31678 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31679
31680 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31681
31682 * doc/extend.texi (__builtin_object_size):
31683 Use @pxref instead of @xref inside parenthesis.
31684 (__builtin_has_attribute): Add missing comma after @xref.
31685 (__builtin_object_size): Ditto.
31686 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31687
31688 2019-02-26 Jeff Law <law@redhat.com>
31689
31690 PR rtl-optimization/87761
31691 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31692 detect obviously dead insns and delete them.
31693
31694 2019-02-26 Richard Biener <rguenther@suse.de>
31695
31696 PR tree-optimization/89505
31697 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31698 to handle restrict pointed-to vars with multiple subvars
31699 correctly.
31700
31701 2019-02-26 Richard Biener <rguenther@suse.de>
31702
31703 PR tree-optimization/89489
31704 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31705
31706 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31707
31708 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31709 and move around comment.
31710 <BIT_AND_EXPR>: Likewise.
31711 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31712
31713 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31714
31715 PR target/89474
31716 * config/i386/i386.c (remove_partial_avx_dependency): Call
31717 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31718 after changing possibly many instructions to use that pseudo. Fix up
31719 insertion of v4sf_const0 setter at the start of bb.
31720
31721 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31722
31723 PR c/80409
31724 * doc/extend.texi (Variadic Pointer Args): New section.
31725
31726 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31727 Martin Sebor <msebor@gmail.com>
31728
31729 * common.opt (Wattribute-alias): Likewise.
31730 * doc/invoke.texi (Option Summary): List general form of
31731 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31732 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31733 Add cross-references.
31734 (-Wattribute-alias): Rewrite and correct default. Mention
31735 considered attributes (same as for -Wmissing-attributes).
31736
31737 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31738
31739 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31740 (_mm_cvtpd_ps): Likewise.
31741 (_mm_cvttpd_epi32): Likewise.
31742
31743 PR target/89338
31744 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31745 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31746
31747 PR target/89339
31748 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31749
31750 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31751
31752 PR target/88530
31753 * common/config/aarch64/aarch64-common.c
31754 (struct aarch64_option_extension): Add is_synthetic.
31755 (all_extensions): Use it.
31756 (TARGET_OPTION_INIT_STRUCT): Define hook.
31757 (struct gcc_targetm_common): Moved to end.
31758 (all_extensions_by_on): New.
31759 (opt_ext_cmp, typedef opt_ext): New.
31760 (aarch64_option_init_struct): New.
31761 (aarch64_contains_opt): New.
31762 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31763 * config/aarch64/aarch64-option-extensions.def
31764 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31765 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31766 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31767 Set is_synthetic to false.
31768 (crypto): Set is_synthetic to true.
31769 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31770 SYNTHETIC.
31771
31772 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31773
31774 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31775 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31776 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31777 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31778 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31779 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31780 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31781 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31782 Rename ...
31783 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31784 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31785 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31786 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31787 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31788 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31789 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31790 vfmlsl_laneq_high_f16): ... To this.
31791 * config/arm/neon.md: Update comments.
31792
31793 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31794
31795 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31796 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31797 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31798 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31799 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31800 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31801 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31802 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31803 Rename ...
31804 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31805 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31806 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31807 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31808 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31809 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31810 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31811 vfmlslq_laneq_high_f16): ... To this.
31812
31813 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31814
31815 PR rtl-optimization/86096
31816 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31817 comparing mw_order values.
31818
31819 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31820
31821 PR target/89434
31822 * config/arm/arm.md (*subsi3_carryin_const): Use
31823 arm_neg_immediate_operand predicate instead of
31824 arm_not_immediate_operand, "L" constraint instead of "K" and
31825 print it using %n2 instead of %B2.
31826 (*subsi3_carryin_const0): New define_insn.
31827 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31828 instead of arm_not_operand and "I" constraint instead of "K" and
31829 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31830 another match_operand and in the condition check that it is negation
31831 of operands[2].
31832 (*subsi3_carryin_compare_const0): New define_ins.
31833 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31834 *subsi3_carryin_const.
31835 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31836 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31837
31838 PR target/89438
31839 * config/arm.vfp.md (*negdf2_vfp): Use
31840 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31841 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31842
31843 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31844
31845 PR rtl-optimization/89445
31846 * simplify-rtx.c (simplify_ternary_operation): Don't use
31847 simplify_merge_mask on operands that may trap.
31848 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31849 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31850 second operand is CONST_VECTOR, check if any element could be zero.
31851 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31852 their operands can trap.
31853
31854 2019-02-23 Martin Sebor <msebor@redhat.com>
31855
31856 * gimple-ssa-sprintf.c (target_strtol): Rename...
31857 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31858 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31859 check for range error.
31860
31861 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31862
31863 PR driver/69471
31864 * opts-common.c (prune_options): Also prune joined switches
31865 with Negative and RejectNegative.
31866 * config/i386/i386.opt (march=): Add Negative(march=).
31867 (mtune=): Add Negative(mtune=).
31868 * doc/options.texi: Document Negative used together with Joined
31869 and RejectNegative.
31870
31871 2019-02-22 Martin Sebor <msebor@redhat.com>
31872
31873 * doc/extend.texi (Other Builtins): Add
31874 __builtin_is_constant_evaluated.
31875
31876 2019-02-22 Richard Biener <rguenther@suse.de>
31877
31878 PR tree-optimization/87609
31879 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31880
31881 2019-02-22 Jeff Law <law@redhat.com>
31882
31883 PR rtl-optimization/87761
31884 * config/mips/mips.md: Add new combiner pattern to recognize
31885 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31886
31887 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31888
31889 PR target/89324
31890 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31891 destination register in peepholes generating patterns for ADDS/SUBS.
31892 (add<mode>3_compare0,
31893 *addsi3_compare0_uxtw, add<mode>3_compareC,
31894 add<mode>3_compareV_imm, add<mode>3_compareV,
31895 *adds_<optab><ALLX:mode>_<GPI:mode>,
31896 *subs_<optab><ALLX:mode>_<GPI:mode>,
31897 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31898 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31899 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31900 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31901 sub<mode>3_compare1): Allow stack pointer for source register.
31902 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31903
31904 2019-02-22 Martin Sebor <msebor@redhat.com>
31905
31906 PR tree-optimization/88993
31907 PR tree-optimization/88853
31908 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31909 New helper.
31910 (sprintf_dom_walker::call_info::is_string_func): New helper.
31911 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31912 for formatted string functions.
31913 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31914
31915 2019-02-22 Martin Sebor <msebor@redhat.com>
31916
31917 PR c/89425
31918 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31919 unreachable subexpressions.
31920
31921 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31922 Hongtao Liu <hongtao.liu@intel.com>
31923 Sunil K Pandey <sunil.k.pandey@intel.com>
31924
31925 PR target/87007
31926 * config/i386/i386-passes.def: Add
31927 pass_remove_partial_avx_dependency.
31928 * config/i386/i386-protos.h
31929 (make_pass_remove_partial_avx_dependency): New.
31930 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31931 New function.
31932 (pass_data_remove_partial_avx_dependency): New.
31933 (pass_remove_partial_avx_dependency): Likewise.
31934 (make_pass_remove_partial_avx_dependency): Likewise.
31935 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31936 (*extendsfdf2): Add avx_partial_xmm_update.
31937 (truncdfsf2): Likewise.
31938 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31939 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31940
31941 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31942
31943 PR middle-end/85598
31944 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31945 analysis for pass.
31946
31947 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31948
31949 PR target/89444
31950 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31951 (PTA_SKYLAKE): Add PTA_AES.
31952 (PTA_GOLDMONT): Likewise.
31953
31954 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31955
31956 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31957 instruction if enabled.
31958 (aarch64_override_options): Remove reference to return address key.
31959
31960 2019-02-22 Richard Biener <rguenther@suse.de>
31961
31962 PR tree-optimization/89440
31963 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31964 not necessary assert.
31965
31966 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31967
31968 PR fortran/72741
31969 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31970 (oacc_replace_fn_attrib_attr): ... this new function.
31971 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31972 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31973
31974 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31975
31976 * config/arm/arm-cpus.in (ares): Rename to...
31977 (neoverse-n1): ... This. Add ares as alias.
31978 * config/arm/arm-tables.opt: Regenerate.
31979 * config/arm/arm-tune.md: Likewise.
31980 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31981
31982 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31983
31984 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31985 * config/aarch64/aarch64-tune.md: Regenerate.
31986 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31987
31988 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31989
31990 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31991 (neoversen1_tunings): ... This.
31992 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31993 (neoverse-n1): New CPU.
31994 * config/aarch64/aarch64-tune.md: Regenerate.
31995 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31996
31997 2019-02-22 Richard Biener <rguenther@suse.de>
31998
31999 PR middle-end/87609
32000 * cfghooks.h (dependence_hash): New typedef.
32001 (struct copy_bb_data): New type.
32002 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32003 (duplicate_block): Likewise.
32004 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32005 (copy_bbs): Create and pass down copy_bb_data.
32006 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32007 (rtl_duplicate_bb): Likewise.
32008 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32009 remap dependence info.
32010
32011 2019-02-22 Richard Biener <rguenther@suse.de>
32012
32013 PR tree-optimization/87609
32014 * tree-core.h (tree_base): Document special clique values.
32015 * tree-inline.c (remap_dependence_clique): Do not use the
32016 special clique value of one.
32017 (maybe_set_dependence_info): Use clique one.
32018 (clear_dependence_clique): New callback.
32019 (compute_dependence_clique): Clear clique one from all refs
32020 before assigning it (again).
32021
32022 2019-02-21 Martin Sebor <msebor@redhat.com>
32023
32024 * doc/extend.texi (__clear_cache): Correct signature.
32025
32026 2019-02-21 Ian Lance Taylor <iant@golang.org>
32027
32028 PR go/89170
32029 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32030 than output_constant_def.
32031 (add_constant_to_table): New static function.
32032 (output_constant_def): Call add_constant_to_table.
32033 (tree_output_constant_def): Likewise.
32034
32035 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32036
32037 PR c++/89285
32038 * builtins.c (fold_builtin_arith_overflow): If first two args are
32039 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32040 to ifn.
32041
32042 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32043
32044 PR target/87412
32045 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32046 error for -mindirect-branch/-mfunction-return with incompatible
32047 -fcf-protection.
32048
32049 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32050
32051 PR bootstrap/88714
32052 * constraints.md (q): Remove.
32053 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32054 instead of q.
32055
32056 2019-02-21 Martin Jambor <mjambor@suse.cz>
32057
32058 PR hsa/89302
32059 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32060 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32061 (omp_adjust_for_condition): ...here. Added necessary parameters.
32062 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32063 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32064 proper values to new parameters of omp_adjust_for_condition.
32065
32066 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32067
32068 PR middle-end/89412
32069 * expr.c (expand_assignment): If result is a MEM, use change_address
32070 instead of simplify_gen_subreg.
32071
32072 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32073 David Malcolm <dmalcolm@redhat.com>
32074
32075 PR middle-end/89091
32076 * fold-const.c (decode_field_reference): Return NULL_TREE if
32077 lang_hooks.types.type_for_size returns NULL. Check it before
32078 overwriting *exp_. Use return NULL_TREE instead of return 0.
32079
32080 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32081
32082 PR middle-end/88074
32083 PR middle-end/89415
32084 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32085 buggy mpc_norm.
32086
32087 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32088
32089 PR target/89397
32090 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32091 TARGET_SSE in addition to TARGET_SSE_MATH.
32092
32093 (ix86_excess_precision): Ditto.
32094 (ix86_float_exceptions_rounding_supported_p): Ditto.
32095 (use_rsqrt_p): Ditto.
32096 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32097
32098 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32099
32100 PR c/89410
32101 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32102 linenum_arith_t when determining if two adjacent line spans are
32103 close enough to merge.
32104 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32105 lines within each line_span.
32106
32107 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32108
32109 PR target/86487
32110 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32111 paradoxical SUBREGS.
32112
32113 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32114
32115 PR target/88100
32116 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32117 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32118 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32119 range checking it.
32120
32121 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32122
32123 * config/gcn/gcn.c (print_operand): Fix typo.
32124
32125 2019-02-19 Richard Biener <rguenther@suse.de>
32126
32127 PR middle-end/88074
32128 * toplev.c (do_compile): Initialize mpfr's exponent range
32129 based on available float modes.
32130
32131 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32132
32133 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32134 as long as the epilogue isn't completed.
32135
32136 2019-02-18 Martin Sebor <msebor@redhat.com>
32137
32138 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32139 __has_cpp_attribute, and __has_include.
32140
32141 2019-02-18 Martin Sebor <msebor@redhat.com>
32142
32143 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32144
32145 2019-02-18 Martin Sebor <msebor@redhat.com>
32146
32147 PR middle-end/89294
32148 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32149 expression.
32150 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32151
32152 2019-02-18 Richard Biener <rguenther@suse.de>
32153
32154 PR tree-optimization/89296
32155 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32156 of no-warning flag to cases that might emit the bogus warning.
32157
32158 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32159
32160 PR bootstrap/88714
32161 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32162 "q" constraint.
32163 * config/arm/vfp.md (*movdi_vfp): Likewise.
32164 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32165 "q" constraint for operands[0].
32166
32167 PR target/89369
32168 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32169 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32170 pattern in a temporary buffer.
32171 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32172 than 64-operands[2].
32173
32174 PR target/89361
32175 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32176 s390_indirect_branch_settings): Define unconditionally.
32177 (s390_set_current_function): Likewise, but guard the whole body except
32178 the s390_indirect_branch_settings call with
32179 #if S390_USE_TARGET_ATTRIBUTE.
32180 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32181
32182 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32183 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32184 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32185 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32186 HOST_WIDE_INT_1U instead of 1ULL.
32187 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32188 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32189 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32190 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32191 instead of 1UL.
32192 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32193 instead of 1ul.
32194
32195 2019-02-18 Martin Jambor <mjambor@suse.cz>
32196
32197 PR tree-optimization/89209
32198 * tree-sra.c (create_access_replacement): New optional parameter
32199 reg_tree. Use it as a type if non-NULL and access type is not of
32200 a register type.
32201 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32202 to create_access_replacement.
32203 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32204 Check lacc is non-NULL before attempting to re-create it on the RHS.
32205
32206 2019-02-18 Martin Liska <mliska@suse.cz>
32207
32208 PR ipa/89306
32209 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32210 by default.
32211 (symbol_table::free_edge): Recycle m_summary_id.
32212 * cgraph.h (get_summary_id): New.
32213 (symbol_table::release_symbol): Set m_summary_id to -1
32214 by default.
32215 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32216 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32217 function_summary to fast_function_summary.
32218 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32219 * ipa-pure-const.c (class funct_state_summary_t):
32220 Switch from function_summary to fast_function_summary.
32221 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32222 (class ipa_ref_opt_summary_t): Switch from function_summary
32223 to fast_function_summary.
32224 * symbol-summary.h (class function_summary_base): New class
32225 that is created from base of former function_summary.
32226 (function_summary_base::unregister_hooks): New.
32227 (class function_summary): Inherit from function_summary_base.
32228 (class call_summary_base): New class
32229 that is created from base of former call_summary.
32230 (class call_summary): Inherit from call_summary_base.
32231 (struct is_same): New.
32232 (class fast_function_summary): New summary class.
32233 (class fast_call_summary): New summary class.
32234 * vec.h (vec_safe_grow_cleared): New function.
32235
32236 2019-02-18 Martin Liska <mliska@suse.cz>
32237
32238 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32239 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32240 * doc/tm.texi: Document new target hook.
32241 * doc/tm.texi.in: Likewise.
32242 * target.def: Add new target macro.
32243 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32244 suffixes.
32245
32246 2019-02-17 Alan Modra <amodra@gmail.com>
32247
32248 PR target/89271
32249 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32250 output reg on add insn.
32251 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32252
32253 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32254
32255 PR target/89372
32256 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32257 (PMULHRSW): Likewise.
32258 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32259 TARGET_AVX2.
32260 (ssse3_pmulhrswv4hi3): New expander.
32261
32262 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32263
32264 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32265 MMX. Add isa attribute.
32266
32267 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32268
32269 PR rtl-optimization/66152
32270 * builtins.h (c_readstr): Declare.
32271 * builtins.c (c_readstr): Remove forward declaration. Add
32272 null_terminated_p argument, if false, read all bytes from the
32273 string instead of stopping after '\0'.
32274 * expr.c (string_cst_read_str): New function.
32275 (store_expr): Use string_cst_read_str instead of
32276 builtin_strncpy_read_str. Try to store by pieces the whole
32277 exp_len first, and only if that fails, split it up into
32278 store by pieces followed by clear_storage. Formatting fix.
32279
32280 * config/i386/i386.md (*movqi_internal): Remove static from
32281 buf variable. Use output_asm_insn (buf, operands); return "";
32282 instead of return buf;.
32283 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32284 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32285 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32286
32287 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32288
32289 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32290 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32291 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32292 (CC1_SPEC): Likewise.
32293 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32294
32295 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32296
32297 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32298 the base address on 64-bit strict-alignment platforms.
32299
32300 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32301
32302 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32303
32304 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32305
32306 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32307
32308 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32309
32310 PR rtl-optimization/88308
32311 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32312 on copied instruction.
32313
32314 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32315
32316 * final.c (insn_current_reference_address): Replace test on JUMP_P
32317 with test on jump_to_label_p.
32318 * config/visium/visium-passes.def: New file.
32319 * config/visium/t-visium (PASSES_EXTRA): Define.
32320 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32321 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32322 (TRAMPOLINE_ALIGNMENT): Define.
32323 * config/visium/visium.c (visium_option_override): Do not register
32324 the machine-specific reorg pass here.
32325 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32326 for the GR6.
32327 (output_branch): Adjust threshold for long branch instruction.
32328 * config/visium/visium.md (cpu): Move around.
32329 (length): Adjust for the GR6.
32330
32331 2019-02-15 Richard Biener <rguenther@suse.de>
32332 Jakub Jelinek <jakub@redhat.com>
32333
32334 PR tree-optimization/89278
32335 * tree-loop-distribution.c: Include tree-eh.h.
32336 (generate_memset_builtin, generate_memcpy_builtin): Call
32337 rewrite_to_non_trapping_overflow on builtin->size before passing it
32338 to force_gimple_operand_gsi.
32339
32340 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32341
32342 PR other/89342
32343 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32344 optimize_debug.
32345 * opth-gen.awk: Likewise.
32346
32347 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32348
32349 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32350 Enable MMX, SSE and SSE2 by default.
32351 * config/i386/i386.c (ix86_option_override_internal): Do not
32352 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32353
32354 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32355
32356 PR rtl-optimization/89354
32357 * combine.c (make_extraction): Punt if extraction_mode is narrower
32358 than len bits.
32359
32360 2019-02-14 Maya Rashish <coypu@sdf.org>
32361
32362 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32363 * config/netbsd-d.c: New file.
32364 * config/t-netbsd: Add netbsd-d.o
32365
32366 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32367
32368 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32369 affects_type_identity to true for aarch64_vector_pcs.
32370 (aarch64_comp_type_attributes): New function.
32371 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32372
32373 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32374
32375 PR target/88850
32376 * config/arm/iterators.md (ANY64): Add V4HF.
32377
32378 2019-02-14 Martin Liska <mliska@suse.cz>
32379
32380 PR rtl-optimization/89242
32381 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32382 process a transformation.
32383
32384 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32385
32386 PR tree-optimization/89314
32387 * fold-const.c (fold_binary_loc): Cast strlen argument to
32388 const char * before dereferencing it. Formatting fixes.
32389
32390 PR middle-end/89284
32391 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32392
32393 2019-02-13 Ian Lance Taylor <iant@golang.org>
32394
32395 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32396 and set current index for other optimizations.
32397
32398 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32399
32400 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32401 nonimmediate_operand as operand 2 predicate.
32402 (vec_set<VF2_512_256:mode>_0): Ditto.
32403 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32404 (*vec_concatv2si): Remove alternative 2.
32405 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32406 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32407 (vec_concatv2di): Split alternatives 4,5,6 to ...
32408 (*vec_concatv2di_0) ... new pattern.
32409
32410 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32411
32412 PR target/89190
32413 * config/arm/arm.c (ldm_stm_operation_p) Set
32414 addr_reg_in_reglist correctly for first register.
32415 (load_multiple_sequence): Remove dead base check.
32416 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32417
32418 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32419
32420 PR target/88847
32421 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32422 Expose as @aarch64_pred_mov.
32423 * config/aarch64/aarch64.c (aarch64_classify_address):
32424 Use expand_insn which legitimizes operands.
32425
32426 2019-02-13 Martin Liska <mliska@suse.cz>
32427
32428 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32429 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32430 and pointer_offset fields.
32431 (initialize_argument_information): Remove usage of dead
32432 fields.
32433 * cgraph.h (struct cgraph_thunk_info): Remove
32434 add_pointer_bounds_args.
32435 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32436 fields.
32437 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32438 fields.
32439 * config/i386/i386.c (ix86_function_arg_advance): Remove
32440 unrelated comment.
32441 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32442 (def_builtin): Remove usage of dead fields.
32443 (ix86_add_new_builtins): Likewise.
32444 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32445 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32446 (sem_function::init): Likewise.
32447 (sem_variable::merge): Likewise.
32448 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32449 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32450 * lto-cgraph.c (lto_output_node): Likewise.
32451 (lto_output_varpool_node): Likewise.
32452 (input_node): Likewise.
32453 (input_varpool_node): Likewise.
32454 * lto-streamer-out.c (lto_output): Likewise.
32455 * tree-inline.c (expand_call_inline): Remove usage of
32456 assign_stmts.
32457 * tree-inline.h (struct copy_body_data): Likewise.
32458 * varpool.c (varpool_node::dump): Likewise.
32459
32460 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32461
32462 PR middle-end/89303
32463 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32464 into pt->vars_contains_escaped_heap instead of setting
32465 pt->vars_contains_escaped_heap to it.
32466
32467 PR middle-end/89281
32468 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32469 INTVAL (size), compare it to GET_MODE_MASK instead of
32470 1 << GET_MODE_BITSIZE.
32471
32472 PR target/89290
32473 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32474 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32475 -mcmodel=large.
32476
32477 2019-02-13 Martin Liska <mliska@suse.cz>
32478
32479 PR lto/88858
32480 * cfgrtl.c (remove_barriers_from_footer): New function.
32481 (try_redirect_by_replacing_jump): Use it.
32482 (cfg_layout_redirect_edge_and_branch): Likewise.
32483
32484 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32485
32486 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32487 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32488 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32489 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32490 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32491 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32492 New BU_CRYPTO_2.
32493 * config/rs6000/rs6000.c (builtin_function_type)
32494 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32495 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32496 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32497 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32498 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32499
32500 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32501
32502 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32503 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32504
32505 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32506
32507 PR target/89229
32508 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32509 268678 and revision 268657.
32510 (*movti_internal): Likewise.
32511
32512 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32513
32514 PR target/89233
32515 * config/s390/s390.c (s390_decompose_address): Update comment.
32516 (s390_check_qrst_address): Reject invalid address forms after
32517 LRA.
32518
32519 2019-02-12 Martin Liska <mliska@suse.cz>
32520
32521 PR lto/88876
32522 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32523 we need default values of funct_state for a function that
32524 is not optimized.
32525
32526 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32527
32528 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32529 the object to pick the size of stores on strict-alignment platforms.
32530
32531 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32532 (*movdi_insn_sp32): Likewise.
32533 (*movdi_insn_sp64): Likewise.
32534
32535 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32536
32537 PR lto/88677
32538 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32539 types that needs constructiong.
32540 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32541
32542 2019-02-12 Richard Biener <rguenther@suse.de>
32543
32544 PR tree-optimization/89253
32545 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32546 duplicate the loop.
32547
32548 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32549
32550 PR lto/88147
32551 * input.c (selftest::test_line_offset_overflow): New selftest.
32552 (selftest::input_c_tests): Call it.
32553
32554 2019-02-11 Martin Sebor <msebor@redhat.com>
32555
32556 PR tree-optimization/88771
32557 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32558 when -Wstringop-overflow is set.
32559 (builtin_memref::builtin_memref): Adjust excessive upper bound
32560 only when lower bound is not excessive.
32561 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32562 -Wstringop-ovefflow.
32563 (maybe_diag_offset_bounds): Rename...
32564 (maybe_diag_access_bounds): ...to this.
32565 (check_bounds_or_overlap): Adjust for name change above.
32566
32567 2019-02-11 Martin Sebor <msebor@redhat.com>
32568
32569 PR c++/87996
32570 * builtins.c (max_object_size): Move from here...
32571 * builtins.h (max_object_size): ...and here...
32572 * tree.c (max_object_size): ...to here...
32573 * tree.h (max_object_size): ...and here.
32574
32575 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32576
32577 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32578 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32579 for correct semantics.
32580
32581 2019-02-11 Alan Modra <amodra@gmail.com>
32582
32583 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32584 -mlongcall and -mpltseq.
32585 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32586 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32587 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32588 * config/rs6000/sysv4.opt (mpltseq): New option.
32589 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32590 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32591 support is lacking. Don't allow -mpltseq with -mbss-plt.
32592 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32593 -mpltseq given for ELFv1.
32594 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32595 Only use UNSPEC_PLTSEQ for inline PLT calls.
32596 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32597 use UNSPEC_PLTSEQ for inline PLT calls.
32598 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32599 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32600 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32601 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32602 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32603 (pltseq_mtctr_<mode>): Likewise.
32604
32605 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32606
32607 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32608 Solaris ld.
32609 * configure: Regenerate.
32610
32611 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32612
32613 PR bootstrap/88714
32614 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32615 instead of r.
32616
32617 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32618
32619 * function.c (assign_parm_setup_block): Use the stored
32620 size, not the passed size, when allocating stack-space,
32621 also for a parameter with alignment larger than
32622 MAX_SUPPORTED_STACK_ALIGNMENT.
32623
32624 2019-02-11 Martin Liska <mliska@suse.cz>
32625
32626 PR ipa/89009
32627 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32628 * ipa-inline.c (inline_small_functions): Likewise.
32629 * ipa-pure-const.c (propagate_pure_const): Likewise.
32630 (propagate_nothrow): Likewise.
32631 * ipa-reference.c (propagate): Likewise.
32632 * ipa-utils.c (struct searchc_env): Remove unused field.
32633 (searchc): Always search across AVAIL_INTERPOSABLE.
32634 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32635 the only called IPA pure const can properly not propagate
32636 across interposable boundary.
32637 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32638
32639 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32640
32641 * config/nds32/nds32.md (call_internal, call_value_internal,
32642 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32643
32644 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32645
32646 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32647 typo.
32648
32649 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32650
32651 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32652 in comments
32653
32654 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32655
32656 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32657
32658 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32659
32660 PR tree-optimization/89268
32661 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32662 if preds is non-NULL.
32663
32664 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32665
32666 PR lto/89272
32667 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32668 polymorphic types.
32669
32670 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32671
32672 * config/nds32/nds32.md (trap): New pattern.
32673
32674 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32675
32676 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32677 dwarf span.
32678
32679 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32680
32681 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32682 to split POST_INC.
32683
32684 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32685
32686 * ipa-visibility.c (localize_node): Also do not localize
32687 LDPR_PREVAILING_DEF_IRONLY_EXP.
32688
32689 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32690
32691 PR lto/87957
32692 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32693 instead of type_with_linkage.
32694
32695 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32696
32697 PR ipa/88755
32698 * params.def (uninlined-function-insns, uninlined-function-time,
32699 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32700 bound so we don't get overflows.
32701
32702 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32703
32704 * config/rs6000/rs6000-string.c (expand_compare_loop,
32705 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32706 memcmp/strncmp.
32707
32708 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32709
32710 PR middle-end/89246
32711 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32712 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32713 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32714
32715 2019-02-09 Alan Modra <amodra@gmail.com>
32716
32717 PR target/88343
32718 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32719 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32720 setup.
32721
32722 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32723
32724 PR middle-end/88560
32725 * lra-constraints.c (process_alt_operands): Don't increase reject
32726 for memory when offset memory is required.
32727
32728 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32729
32730 * config/s390/vector.md: Implement vector copysign.
32731
32732 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32733
32734 * expr.c (expand_constructor): Correct indentations.
32735
32736 2019-02-08 Richard Biener <rguenther@suse.de>
32737
32738 PR tree-optimization/89247
32739 * tree-if-conv.c: Include tree-cfgcleanup.h.
32740 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32741 (tree_if_conversion): Pass through predicate vector.
32742 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32743 inline, see if any if-converted loops we refrece in
32744 LOOP_VECTORIZED calls vanished and fixup.
32745 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32746
32747 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32748
32749 * config/s390/constraints.md (jdd): New constraint.
32750
32751 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32752
32753 PR target/89229
32754 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32755 upper 16 vector registers without TARGET_AVX512VL.
32756 (*movti_internal): Likewise.
32757
32758 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32759
32760 PR rtl-optimization/89234
32761 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32762 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32763 (copy_reg_eh_region_note_backward): Likewise.
32764
32765 2019-02-08 Richard Biener <rguenther@suse.de>
32766
32767 PR middle-end/89223
32768 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32769 doesn't fit in HWI.
32770 (analyze_subscript_affine_affine): Handle failure from
32771 initialize_matrix_A.
32772
32773 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32774
32775 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32776 cfun everywhere.
32777
32778 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32779
32780 PR tree-optimization/86637
32781 PR tree-optimization/89235
32782 * tree-vect-loop.c (optimize_mask_stores): Add an
32783 auto_purge_vect_location sentinel to ensure that vect_location is
32784 purged on exit.
32785 * tree-vectorizer.c
32786 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32787 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32788 to ensure that vect_location is purged on exit.
32789 (pass_slp_vectorize::execute): Likewise, replacing the manual
32790 reset.
32791 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32792
32793 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32794
32795 * config/aarch64/iterators.md (max_opp): New code_attr.
32796 (USMAX): New code iterator.
32797 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32798 (aarch64_smax): Likewise.
32799 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32800 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32801 MINUS (MAX MIN).
32802
32803 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32804
32805 PR target/89229
32806 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32807 for TARGET_AVX512VL.
32808 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32809
32810 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32811
32812 * config/s390/s390-builtin-types.def: Add new types.
32813 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32814 (s390_vec_xlw4): Make the memory operand into a const pointer.
32815 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32816 float.
32817 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32818 a new vector type with the alignment of the scalar memory operand.
32819
32820 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32821 Jakub Jelinek <jakub@redhat.com>
32822
32823 PR bootstrap/88714
32824 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32825 arm_count_ldrdstrd_insns): New declarations.
32826 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32827 MINUS.
32828 (valid_operands_ldrd_strd): New function.
32829 (arm_count_ldrdstrd_insns): New function.
32830 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32831 sets instead of single DImode set and define new insns to match this.
32832
32833 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32834
32835 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32836 Make it a C initializer.
32837
32838 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32839
32840 PR/target 88850
32841 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32842
32843 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32844
32845 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32846 Use neon_dot<q> for type.
32847 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32848
32849 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32850
32851 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32852 Use neon_dot<q> for type.
32853 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32854 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32855
32856 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32857
32858 PR rtl-optimization/89225
32859 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32860 sizes check.
32861
32862 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32863
32864 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32865 after restoring registers saved to allocate the frame on Windows.
32866
32867 2019-02-06 Richard Biener <rguenther@suse.de>
32868
32869 PR tree-optimization/89182
32870 * graphite.h (cached_scalar_evolution_in_region): Declare.
32871 * graphite.c (struct seir_cache_key): New.
32872 (struct sese_scev_hash): Likewise.
32873 (seir_cache): New global.
32874 (cached_scalar_evolution_in_region): New function.
32875 (graphite_transform_loops): Allocate and release seir_cache.
32876 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32877 cached_scalar_evolution_in_region.
32878 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32879 Simplify.
32880 (scop_detection::graphite_can_represent_expr: Use
32881 cached_scalar_evolution_in_region.
32882 (scop_detection::stmt_simple_for_scop_p): Likewise.
32883 (find_params_in_bb): Likewise.
32884 (gather_bbs::before_dom_children): Likewise.
32885 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32886 (add_loop_constraints): Likewise.
32887
32888 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32889
32890 PR middle-end/89210
32891 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32892 operand to new_unary_operation only if both element types are integral
32893 and it isn't a widening conversion. Return NULL_TREE if
32894 new_unary_operation failed.
32895
32896 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32897
32898 PR target/88856
32899 * config/s390/s390.md: Remove load and test FP splitter.
32900
32901 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32902
32903 PR target/89112
32904 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32905 expand_compare_loop, expand_block_compare_gpr,
32906 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32907 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32908 #include "profile-count.h" and "predict.h" for types and functions
32909 needed to work with REG_BR_PROB notes.
32910
32911 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32912
32913 PR target/89112
32914 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32915 for the long branch case.
32916
32917 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32918
32919 PR target/89188
32920 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32921 can throw, non-call exceptions are enabled and we can't delete
32922 dead exceptions or alter cfg. Set must_clean if
32923 delete_insn_and_edges returns true, don't set it blindly for calls.
32924 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32925
32926 PR rtl-optimization/89195
32927 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32928 of the original MEM.
32929
32930 2019-02-05 Martin Liska <mliska@suse.cz>
32931
32932 PR gcov-profile/89000
32933 * gcov.c (function_summary): Remove argument.
32934 (file_summary): New function.
32935 (print_usage): Replace tabs with spaces.
32936 (generate_results): Use new function file_summary.
32937
32938 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32939
32940 PR target/89186
32941 * optabs.c (prepare_cmp_insn): Pass x and y to
32942 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32943
32944 2019-02-05 Richard Biener <rguenther@suse.de>
32945
32946 PR middle-end/89150
32947 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32948 (struct bitmap_element): Drop chain_prev so we properly recurse on
32949 the prev member, supporting tree views.
32950 (struct bitmap_head): GTY skip the obstack member.
32951
32952 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32953
32954 PR c/88698
32955 * doc/extend.texi (Vector Extensions): Add an example of using vector
32956 types together with x86 intrinsics.
32957
32958 2019-02-04 Alan Modra <amodra@gmail.com>
32959
32960 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32961 str[] size to 160, and comment.
32962
32963 2019-02-04 Alan Modra <amodra@gmail.com>
32964
32965 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32966 (rs6000_pltseq_template): Guard output of TLS markers with
32967 TARGET_TLS_MARKERS.
32968 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32969 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32970 to use inline PLT sequences.
32971 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32972 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32973 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32974
32975 2019-02-04 Martin Liska <mliska@suse.cz>
32976
32977 PR ipa/88985
32978 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32979 out when ipa_fn_summaries does not contain entry for callee.
32980
32981 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32982
32983 * config/sparc/sparc.h: Remove superfluous blank lines.
32984 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32985 (got_register_rtx): ...this.
32986 (sparc_got): Adjust to above renaming.
32987 (sparc_tls_got): Likewise.
32988 (sparc_delegitimize_address): Likewise.
32989 (sparc_output_mi_thunk): Likewise.
32990 (sparc_init_pic_reg): Likewise.
32991 (save_local_or_in_reg_p): Fix test on the GOT register.
32992 (USE_HIDDEN_LINKONCE): Move around.
32993 (get_pc_thunk_name): Likewise.
32994 (gen_load_pcrel_sym): Likewise.
32995 (load_got_register): Likewise.
32996
32997 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32998
32999 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33000 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33001
33002 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33003
33004 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33005 into consideration.
33006
33007 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33008
33009 * config.gcc (with_nds32_lib, glibc):
33010 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33011 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33012 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33013
33014 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33015
33016 PR target/89071
33017 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33018 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33019 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33020 (*rcpsf2_sse): Ditto.
33021 (*rsqrtsf2_sse): Ditto.
33022 (sse4_1_round<mode<2): Ditto.
33023
33024 2019-02-03 Richard Biener <rguenther@suse.de>
33025
33026 PR debug/87295
33027 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33028 orig.
33029
33030 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33031
33032 PR middle-end/87887
33033 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33034 Punt with warning on aggregate return or argument types. Ignore
33035 type/mode checking for uniform arguments.
33036
33037 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33038
33039 * combine.c (try_combine): Do not print "Can't combine" messages unless
33040 printing failed combination attempts.
33041
33042 2019-02-01 Martin Jambor <mjambor@suse.cz>
33043
33044 PR hsa/87863
33045 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33046 segment and global segment variables before making them static.
33047
33048 2019-02-01 Martin Jambor <mjambor@suse.cz>
33049
33050 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33051 missed optimization dump with dump_enabled_p.
33052
33053 2019-02-01 Richard Biener <rguenther@suse.de>
33054
33055 PR middle-end/88597
33056 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33057 the instantiate cache.
33058 (instantiate_scev_binary): Elide second operand procesing
33059 if equal to the first.
33060 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33061 (chrec_contains_undetermined): Likewise.
33062 (tree_contains_chrecs): Likewise.
33063
33064 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33065
33066 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33067
33068 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33069
33070 PR tree-optimization/89143
33071 * wide-int-range.h (wide_int_range_absu): Declare.
33072 * wide-int-range.cc (wide_int_range_absu): New function.
33073 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33074
33075 PR tree-optimization/88107
33076 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33077 instead of assertion that eh_region_outermost is non-NULL, if it
33078 is NULL, set *ALL to true and return NULL.
33079 (move_sese_region_to_fn): Adjust caller, if all is set, call
33080 duplicate_eh_regions with NULL region.
33081
33082 2019-02-01 Richard Biener <rguenth@suse.de>
33083
33084 PR rtl-optimization/88593
33085 * mode-switching.c (optimize_mode_switching): Free dominators before
33086 calling cleanup_cfg.
33087
33088 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33089
33090 PR tree-optimization/88932
33091 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33092
33093 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33094
33095 PR middle-end/89137
33096 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33097 bogus clang warning.
33098
33099 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33100
33101 PR target/89071
33102 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33103 alternative to avoid partial SSE register stall for TARGET_AVX.
33104 (truncdfsf2): Ditto.
33105 (sse4_1_round<mode>2): Ditto.
33106
33107 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33108
33109 PR tree-optimization/89008
33110 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33111 process anything of the form X * 0.
33112
33113 2019-01-31 Richard Biener <rguenther@suse.de>
33114
33115 PR tree-optimization/89135
33116 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33117 with abnormal preds.
33118
33119 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33120
33121 PR sanitizer/89124
33122 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33123 always_inline callees into no_sanitize_address callers.
33124
33125 2019-01-31 Richard Biener <rguenther@suse.de>
33126
33127 PR rtl-optimization/89115
33128 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33129
33130 2019-01-30 Martin Sebor <msebor@redhat.com>
33131
33132 PR other/89106
33133 * doc/extend.texi (cast to a union): Correct and expand.
33134
33135 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33136
33137 PR rtl-optimization/87246
33138 * lra-constraints.c (simplify_operand_subreg): Reload memory
33139 in subreg if the address became invalid.
33140
33141 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33142
33143 PR target/87064
33144 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33145 Disable for little-endian.
33146
33147 2019-01-30 Richard Biener <rguenther@suse.de>
33148
33149 PR rtl-optimization/89115
33150 * opts.c (default_options_optimization): Reduce
33151 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33152 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33153 to the default.
33154
33155 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33156
33157 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33158 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33159 type of vector element when vec_extract is implemented by direct
33160 move.
33161
33162 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33163
33164 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33165
33166 2019-01-30 Richard Biener <rguenther@suse.de>
33167
33168 PR tree-optimization/89111
33169 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33170 canonicalization to appropriately sized access types.
33171
33172 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33173
33174 PR c++/89105
33175 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33176 for arguments to functions that are TU-local and shouldn't be
33177 referenced by assembly.
33178
33179 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33180
33181 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33182 after '='.
33183
33184 2019-01-29 Martin Sebor <msebor@redhat.com>
33185
33186 PR c/88956
33187 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33188
33189 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33190
33191 PR c++/66676
33192 PR ipa/89104
33193 * omp-simd-clone.c (simd_clone_clauses_extract)
33194 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33195 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33196
33197 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33198
33199 * config.gcc: Force .init_array for ARC.
33200
33201 2019-01-29 Richard Biener <rguenther@suse.de>
33202
33203 PR debug/87295
33204 * dwarf2out.c (collect_skeleton_dies): New helper.
33205 (copy_decls_for_unworthy_types): Call it.
33206 (build_abbrev_table): Assert we do not try to replace
33207 DW_AT_signature refs with local refs.
33208
33209 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33210
33211 PR middle-end/89002
33212 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33213 for lastprivate/linear IV, push gimplify context around gimplify_assign
33214 and, if it needed any temporaries, pop it into a gimple bind around the
33215 sequence.
33216
33217 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33218
33219 * common.opt (-Wattribute-alias): Remove "no-" from name.
33220 Make -Wattribute-alias command line option and
33221 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33222
33223 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33224
33225 PR target/89073
33226 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33227 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33228 x86 ISA options.
33229 (bmi2): Add missing @opindex.
33230 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33231 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33232 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33233 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33234 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33235 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33236 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33237 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33238 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33239 xsavec, xsaveopt and xsaves options.
33240
33241 2019-01-28 Richard Biener <rguenther@suse.de>
33242
33243 PR debug/89076
33244 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33245 support removal.
33246
33247 2019-01-28 Richard Biener <rguenther@suse.de>
33248
33249 PR tree-optimization/88739
33250 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33251 BIT_FIELD_REFs only are applied to mode-precision operands
33252 when they are integral.
33253 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33254 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33255 BIT_FIELD_REFs of non-mode-precision integral operands.
33256
33257 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33258
33259 PR target/87214
33260 * config/i386/sse.md
33261 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33262 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33263 first constants in pairs are multiples of 2. Formatting fixes.
33264 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33265 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33266 first constants in each quadruple are multiples of 4. Formatting fixes.
33267
33268 2019-01-26 Martin Jambor <mjambor@suse.cz>
33269
33270 PR ipa/88933
33271 * tree-inline.c: Include tree-cfgcleanup.h.
33272 (delete_unreachable_blocks_update_callgraph): Move...
33273 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33274 ...here, make externally visible, make second argument bool, adjust
33275 all callers.
33276 * tree-cfgcleanup.c: Include cgraph.h.
33277 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33278 Declare.
33279 * ipa-prop.c: Include tree-cfgcleanup.h.
33280 (ipcp_transform_function): Call
33281 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33282
33283 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33284
33285 PR rtl-optimization/88846
33286 * ira.c (process_set_for_memref_referenced_p): New.
33287 (memref_referenced_p): Add new param. Use
33288 process_set_for_memref_referenced_p. Add new switch cases.
33289 (memref_used_between_p): Pass new arg to memref_referenced_p.
33290
33291 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33292
33293 PR target/88469
33294 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33295 argument ABI_BREAK. Set to true if the calculated alignment has
33296 changed in gcc-9. Check bit-fields for their base type alignment.
33297 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33298 (aarch64_function_arg_boundary): Likewise.
33299 (aarch64_gimplify_va_arg_expr): Likewise.
33300
33301 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33302
33303 PR middle-end/89037
33304 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33305 instead of accessing TREE_INT_CST_ELT directly.
33306
33307 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33308
33309 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33310 fenv_exceptions description.
33311
33312 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33313
33314 PR rtl-optimization/87763
33315 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33316 Allow SUBREG when matching CC_NZmode compare.
33317
33318 2019-01-25 Richard Biener <rguenther@suse.de>
33319
33320 PR tree-optimization/89049
33321 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33322 Look at the pattern stmt to determine if the stmt is vectorized.
33323
33324 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33325
33326 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33327 (pred_mov<mode>): Handle all-register forms using both a new
33328 alternative and a split.
33329
33330 2019-01-25 Richard Biener <rguenther@suse.de>
33331
33332 PR tree-optimization/86865
33333 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33334 Reject non-do-while loops.
33335
33336 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33337
33338 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33339 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33340 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33341 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33342 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33343 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33344 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33345 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33346 vlogical_operand, gpc_reg_operand, int_reg_operand,
33347 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33348 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33349 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33350 (save_world_operation, restore_world_operation, lmw_operation,
33351 stmw_operation): Use MEM_P and REG_P.
33352 (tie_operand): Use MEM_P.
33353 (vrsave_operation, crsave_operation): Use REG_P.
33354 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33355 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33356 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33357 (call_operand): Use HARD_REGISTER_P.
33358 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33359 Use CONST_INT_P.
33360 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33361 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33362 quad_aligned_load_p, replace_swapped_aligned_store,
33363 recombine_lvx_pattern, replace_swapped_aligned_load,
33364 recombine_stvx_pattern): Use MEM_P.
33365 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33366 Use MEM_P and SYMBOL_REF_P.
33367 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33368 (insn_is_swappable_p): Use REG_P and MEM_P.
33369 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33370 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33371 Use CONST_INT_P.
33372 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33373 Use CONST_DOUBLE_P.
33374 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33375 CONST_WIDE_INT_P.
33376 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33377 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33378 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33379 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33380 reg_or_subregno:
33381 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33382 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33383 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33384 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33385 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33386 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33387 rs6000_split_logical_di): Use CONST_INT_P.
33388 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33389 REG_P and SYMBOL_REF_P.
33390 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33391 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33392 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33393 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33394 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33395 (small_data_operand, print_operand_address): Use CONST_INT_P and
33396 SYMBOL_REF_P.
33397 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33398 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33399 Use HARD_REGISTER_NUM_P.
33400 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33401 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33402 SUBREG_P and SYMBOL_REF_P.
33403 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33404 and HARD_REGISTER_NUM_P.
33405 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33406 reg_or_subregno.
33407 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33408 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33409 MEM_P and REG_P.
33410 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33411 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33412 find_addr_reg): Use REG_P.
33413 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33414 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33415 (offsettable_ok_by_alignment, constant_pool_expr_p,
33416 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33417 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33418 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33419 rs6000_assemble_integer, create_TOC_reference,
33420 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33421 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33422 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33423 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33424 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33425 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33426 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33427 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33428 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33429 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33430 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33431 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33432 and cbranch<mode>4): Use CONST_INT_P.
33433 (multiple define_splits): Use REG_P and SUBREG_P.
33434 (define_expands call, call_value): Use MEM_P.
33435 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33436 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33437 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33438 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33439 and HARD_REGISTER_NUM_P.
33440 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33441
33442 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33443
33444 PR rtl-optimization/88948
33445 * rtl.h (prepare_copy_insn): New prototype.
33446 * gcse.c (prepare_copy_insn): New function, split out from
33447 process_insert_insn.
33448 (process_insert_insn): Use prepare_copy_insn.
33449 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33450 instead of gen_move_insn.
33451
33452 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33453
33454 PR debug/89006
33455 * config/i386/i386.c (ix86_pic_register_p): Return true for
33456 UNSPEC_SET_GOT too.
33457
33458 PR tree-optimization/88964
33459 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33460 punt if HONOR_SNANS (chrec).
33461
33462 PR middle-end/89015
33463 * tree-nested.c (convert_nonlocal_reference_stmt,
33464 convert_local_reference_stmt, convert_tramp_reference_stmt,
33465 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33466 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33467 or GIMPLE_OMP_TASK.
33468
33469 PR tree-optimization/89027
33470 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33471 for "omp simd array" variables.
33472
33473 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33474
33475 PR target/88469
33476 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33477 force the alignment of m_val.
33478
33479 2019-01-24 Richard Biener <rguenther@suse.de>
33480
33481 PR lto/87187
33482 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33483 When in "legacy" debug mode make sure to reset self-origins.
33484
33485 2019-01-24 Martin Liska <mliska@suse.cz>
33486
33487 PR gcov-profile/88994
33488 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33489 result will be always smaller or equal to the original.
33490 * gcov.c (mangle_name): Fix else branch where we should
33491 also copy to PTR and shift the pointer.
33492
33493 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33494
33495 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33496 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33497
33498 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33499
33500 * common/config/i386/i386-common.c
33501 (OPTION_MASK_ISA_ENQCMD_SET,
33502 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33503 (ix86_handle_option): Handle -menqcmd.
33504 * config.gcc (enqcmdintrin.h): New header file.
33505 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33506 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33507 -menqcmd.
33508 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33509 function type.
33510 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33511 __builtin_ia32_enqcmds): New builtins.
33512 * config/i386/i386-c.c (__ENQCMD__): New macro.
33513 * config/i386/i386-option.c (ix86_target_string): Add
33514 -menqcmd.
33515 (ix86_valid_target_attribute_inner_p): Likewise.
33516 * config/i386/i386-expand.c
33517 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33518 IX86_BUILTIN_ENQCMDS.
33519 * config/i386/i386.h (TARGET_ENQCMD): New.
33520 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33521 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33522 (movdir64b_<mode>): Parameterize to enable share expansion code
33523 with ENQCMD in function ix86_expand_builtin.
33524 * config/i386/i386.opt: Add -menqcmd.
33525 * config/i386/immintrin.h: Include enqcmdintrin.h.
33526 * config/i386/enqcmdintrin.h: New intrinsic file.
33527 * doc/invoke.texi: Add -menqcmd.
33528
33529 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33530 Steve Ellcey <sellcey@marvell.com>
33531
33532 PR target/85711
33533 * recog.c (address_operand): Return false on wrong mode for address.
33534 (constrain_operands): Check for mode with 'p' constraint.
33535
33536 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33537
33538 PR target/88998
33539 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33540 Disparage MMX alternative.
33541 (sse2_cvtpd2pi): Ditto.
33542 (sse2_cvttpd2pi): Ditto.
33543
33544 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33545
33546 PR driver/89014
33547 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33548 use-after-free of the result of
33549 aarch64_get_extension_string_for_isa_flags.
33550
33551 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33552
33553 PR c/44715
33554 * doc/extend.texi: Document break and continue behavior in
33555 statement expressions.
33556
33557 2019-01-23 Richard Biener <rguenther@suse.de>
33558
33559 PR tree-optimization/89008
33560 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33561 not leave another stray operand.
33562
33563 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33564
33565 * BASE-VER: Bump to 9.0.1.
33566
33567 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33568
33569 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33570 thunk that returns by reference, use the type of the return object
33571 of the thunk instead of that of the alias to build the dereference.
33572
33573 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33574
33575 * config/arc/atomic.md: Add operand to DMB instruction.
33576
33577 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33578
33579 PR tree-optimization/88964
33580 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33581 build_zero_cst instead of build_int_cst. Return false for loop
33582 invariants which honor signed zeros.
33583
33584 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33585
33586 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33587
33588 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33589
33590 PR target/88965
33591 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33592 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33593 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33594
33595 PR middle-end/88968
33596 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33597 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33598
33599 PR target/87064
33600 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33601 Disable for little endian.
33602
33603 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33604
33605 PR target/88469
33606 * config/arm/arm.c (arm_needs_double_word_align): Check
33607 DECL_BIT_FIELD_TYPE.
33608
33609 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33610 H.J. Lu <hongjiu.lu@intel.com>
33611
33612 PR target/88909
33613 * config/i386/i386-builtin.def: Add mask2 to all builtin
33614 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33615 SPECIAL_ARGS.
33616 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33617 (BDESC_FIRST): Likewise.
33618 (define_builtin): Add an argument for mask2. Updated to handle
33619 both ix86_isa_flags and ix86_isa_flags2.
33620 (define_builtin_const): Likewise.
33621 (define_builtin_pure): Likewise.
33622 (define_builtin2): Deleted.
33623 (define_builtin_const2): Likewise.
33624 (builtin_description): Add a member, mask2.
33625 (bdesc_*): Add mask2 to builtin initializations.
33626 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33627 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33628 support.
33629 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33630
33631 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33632
33633 PR target/88954
33634 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33635 noplt attribute.
33636
33637 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33638
33639 PR target/88469
33640 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33641 alignment is dominated by a bitfield with 64-bit aligned base type.
33642 (arm_function_arg): Emit a warning if the alignment has changed since
33643 earlier GCC releases.
33644 (arm_function_arg_boundary): Likewise.
33645 (arm_setup_incoming_varargs): Likewise.
33646
33647 2019-01-22 Richard Biener <rguenther@suse.de>
33648
33649 PR tree-optimization/88862
33650 * graphite-scop-detection.c
33651 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33652
33653 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33654
33655 * doc/extend.tex (AMD GCN Function Attributes): New section.
33656 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33657 * doc/invoke.texi (AMD GCN Options): New section.
33658 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33659
33660 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33661
33662 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33663 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33664
33665 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33666
33667 PR tree-optimization/88044
33668 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33669 is false in the first iteration, but !every_iteration, return false
33670 instead of true with niter->niter zero.
33671
33672 PR rtl-optimization/88904
33673 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33674 any nonequal registers before processing BB_END (b).
33675
33676 PR target/88905
33677 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33678 GET_MODE (op0).
33679 (expand_binop_directly, expand_doubleword_clz,
33680 expand_doubleword_popcount, expand_ctz, expand_ffs,
33681 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33682
33683 PR rtl-optimization/49429
33684 PR target/49454
33685 PR rtl-optimization/86334
33686 PR target/88906
33687 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33688 addressable from here...
33689 (emit_block_op_via_libcall): ... to here.
33690
33691 2019-01-22 Richard Biener <rguenther@suse.de>
33692
33693 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33694 auto_vec for cost vector to fix memleak.
33695 (vectorize_fold_left_reduction): Properly gather SLP defs.
33696 (vectorizable_comparison): Do not swap operands to properly
33697 gather SLP defs.
33698
33699 2019-01-22 Alan Modra <amodra@gmail.com>
33700
33701 PR target/88614
33702 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33703 stays a reg. Allow a const_int.
33704 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33705 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33706 (IS_NOMARK_TLSGETADDR): Define.
33707 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33708 (rs6000_output_tlsargs): New function.
33709 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33710 __tls_get_addr call takes an arg.
33711 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33712 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33713 delete split..
33714 (call_value_nonlocal_sysv): ..or here, delete split.
33715 (tls_gdld_nomark): Delete.
33716 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33717 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33718 (call_value_nonlocal_sysv): Likewise.
33719 (call_value_nonlocal_sysv_secure): Likewise.
33720 (call_value_nonlocal_aix): Likewise.
33721 (call_value_indirect_aix): Likewise.
33722 (call_value_indirect_elfv2): Likewise.
33723 (call_value_local32, call_value_local64): Disable for no-mark tls.
33724 (call_value_local_aix): Likewise.
33725
33726 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33727
33728 PR target/88938
33729 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33730 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33731
33732 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33733
33734 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33735 string contents as hash_map keys.
33736
33737 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33738
33739 PR c/88928
33740 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33741 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33742 instead of TYPE_ALIGN.
33743 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33744 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33745 pointer from TYPE_STUB_DECL.
33746
33747 2019-01-21 Richard Biener <rguenther@suse.de>
33748
33749 PR tree-optimization/88934
33750 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33751 at the possibly non-constant operand.
33752 (vect_get_constant_vectors): Adjust.
33753
33754 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33755
33756 PR target/71659
33757 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33758 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33759 instead of _X86INTRIN_H_INCLUDED.
33760 * onfig/i386/clwbintrin.h: Likewise.
33761 * config/i386/pkuintrin.h: Likewise.
33762 * config/i386/prfchwintrin.h: Likewise.
33763 * config/i386/rdseedintrin.h: Likewise.
33764 * config/i386/wbnoinvdintrin.h: Likewise.
33765 * config/i386/xsavecintrin.h: Likewise.
33766 * config/i386/xsavesintrin.h: Likewise.
33767 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33768 * config/i386/xsaveintrin.h: Likewise.
33769 * config/i386/xsaveoptintrin.h: Likewise.
33770 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33771 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33772 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33773 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33774 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33775 * config/i386/immintrin.h: Here.
33776
33777 2019-01-20 Martin Jambor <mjambor@suse.cz>
33778
33779 PR ipa/87615
33780 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33781 with aa_walk_budget.
33782 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33783 aa_walk_budget_p parameter.
33784 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33785 walk. Updated all callers.
33786 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33787 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33788 unmodified_parm.
33789 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33790 parameter info. Extract info from fbi. Pass fbi to recursive calls
33791 and to unmodified_parm.
33792 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33793 info, updated call to will_be_nonconstant_expr_predicate.
33794 (param_change_prob): New parameter fbi, limit AA walking.
33795 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33796 calls to various above functions.
33797 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33798 parameter. Use it to limit AA walking.
33799 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33800 fbi, limit AA walk.
33801 (detect_type_change): New parameter fbi, pass it on to
33802 detect_type_change_from_memory_writes.
33803 (detect_type_change_ssa): Likewise.
33804 (aa_overwalked): Removed.
33805 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33806 accordingly, adjust to the neew AA limiting scheme.
33807 (parm_ref_data_preserved_p): Likewise.
33808 (ipa_compute_jump_functions_for_edge): Adjust call to
33809 get_dynamic_type.
33810 (ipa_analyze_call_uses): Likewise.
33811 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33812 (ipa_analyze_node): Initialize aa_walk_budget.
33813 (ipcp_transform_function): Likewise.
33814 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33815 to get_dynamic_type.
33816
33817 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33818
33819 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33820 outside of #if CHECKING_P code.
33821
33822 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33823
33824 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33825 New function, split out from...
33826 (loop_versioning::analyze_stride): ...here.
33827 (loop_versioning::find_per_loop_multiplication): Use gassign.
33828 (loop_versioning::analyze_term_using_scevs): Return a success code.
33829 (loop_versioning::analyze_arbitrary_term): New function.
33830 (loop_versioning::analyze_address_fragment): Use
33831 analyze_arbitrary_term if all else fails.
33832
33833 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33834
33835 PR target/88892
33836 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33837 operands.
33838
33839 2019-01-18 Richard Biener <rguenther@suse.de>
33840
33841 PR tree-optimization/88903
33842 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33843 scalar stmts a SLP shift amount is composed of when detecting
33844 shifts by scalars.
33845
33846 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33847
33848 PR target/88799
33849 * config/arm/arm-cpus.in (mp): New feature.
33850 (sec): New feature.
33851 (fgroup ARMv7ve): Add mp and sec features.
33852 (arch armv7-a): Add options to allow mp and sec extensions.
33853 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33854 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33855 extenstions to the base architecture.
33856 (cpu cortex-a8): Add sec extension to the base architecture.
33857 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33858 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33859 variants down to the base v7-a varaint.
33860 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33861 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33862 of permitted extensions for -march=armv7-a and for
33863 -mcpu=generic-armv7-a.
33864
33865 2019-01-18 Martin Liska <mliska@suse.cz>
33866
33867 * params.def: Fix comment.
33868 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33869 name.
33870 (gimple_gen_ic_func_profiler): Likewise.
33871
33872 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33873
33874 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33875 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33876 and put in error checks for stack protector guard options.
33877 (aarch64_stack_protect_guard): New.
33878 (TARGET_STACK_PROTECT_GUARD): Define.
33879 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33880 (reg_stack_protect_address<mode>): New.
33881 (stack_protect_set): Adjust for SSP_GLOBAL.
33882 (stack_protect_test): Likewise.
33883 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33884 (-mstack-protector-guard): Likewise.
33885 (-mstack-protector-guard-offset): Likewise.
33886
33887 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33888
33889 PR tree-optimization/86214
33890 * tree-inline.h (struct copy_body_data): Add
33891 add_clobbers_to_eh_landing_pads member.
33892 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33893 (copy_edges_for_bb): Call it if EH edge destination is <
33894 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33895 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33896 if flag_stack_reuse != SR_NONE and clear it afterwards.
33897
33898 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33899
33900 PR target/85596
33901 * doc/install.texi (with-multilib-list): Document for aarch64.
33902
33903 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33904
33905 PR target/88734
33906 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33907 (("..."))) with ("...").
33908
33909 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33910
33911 * doc/extend.texi (Built-in Functions for Memory Model Aware
33912 Atomic Operations): Document atomic fetch and nand.
33913
33914 2019-01-18 Martin Liska <mliska@suse.cz>
33915 Richard Biener <rguenther@suse.de>
33916
33917 PR middle-end/88587
33918 * cgraph.h (create_version_clone_with_body): Add new argument
33919 with attributes.
33920 * cgraphclones.c (cgraph_node::create_version_clone): Add
33921 DECL_ATTRIBUTES to a newly created decl. And call
33922 valid_attribute_p so that proper cl_target_optimization_node
33923 is set for the newly created declaration.
33924 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33925 for declaration.
33926 (expand_target_clones): Do not call valid_attribute_p, it must
33927 be already done.
33928 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33929 vector types.
33930
33931 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33932
33933 PR target/88734
33934 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33935 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33936 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33937
33938 2019-01-17 Martin Sebor <msebor@redhat.com>
33939
33940 PR middle-end/88273
33941 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33942 Handle anti-ranges the same as no range at all.
33943
33944 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33945
33946 * config/aarch64/aarch64.c (cgraph.h): New include.
33947 (intl.h): New include.
33948 (supported_simd_type): New function.
33949 (currently_supported_simd_type): Ditto.
33950 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33951 (aarch64_simd_clone_adjust): Ditto.
33952 (aarch64_simd_clone_usable): Ditto.
33953 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33954 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33955 (TARGET_SIMD_CLONE_USABLE): Ditto.
33956 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33957 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33958 call.
33959
33960 2019-01-17 Martin Sebor <msebor@redhat.com>
33961
33962 PR tree-optimization/88800
33963 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33964 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33965 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33966 redundant argument. Add new argument and issue diagnostics under
33967 its control. Detect out-of-bounds access even with warnings
33968 disabled.
33969 (check_bounds_or_overlap): Change return type. Add argument.
33970 (wrestrict_dom_walker::check_call): Adjust.
33971 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33972 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33973 check_bounds_or_overlap's return value.
33974 (handle_builtin_stxncpy): Same.
33975 (handle_builtin_strcat): Same.
33976
33977 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33978 Kwok Cheung Yeung <kcy@codesourcery.com>
33979 Julian Brown <julian@codesourcery.com>
33980 Tom de Vries <tom@codesourcery.com>
33981
33982 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33983
33984 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33985
33986 * doc/sourcebuild.texi: Document dg-require-effective-target
33987 llvm_binutils and offload_gcn.
33988
33989 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33990 Kwok Cheung Yeung <kcy@codesourcery.com>
33991 Julian Brown <julian@codesourcery.com>
33992 Tom de Vries <tom@codesourcery.com>
33993
33994 * doc/sourcebuild.texi: Document dg-required-effective-target
33995 exceptions.
33996
33997 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33998 Kwok Cheung Yeung <kcy@codesourcery.com>
33999 Julian Brown <julian@codesourcery.com>
34000 Tom de Vries <tom@codesourcery.com>
34001 Jan Hubicka <hubicka@ucw.cz>
34002 Martin Jambor <mjambor@suse.cz>
34003
34004 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34005 * configure.ac: Check for dlopen.
34006 * configure: Regenerate.
34007
34008 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34009 Kwok Cheung Yeung <kcy@codesourcery.com>
34010 Julian Brown <julian@codesourcery.com>
34011 Tom de Vries <tom@codesourcery.com>
34012 Jan Hubicka <hubicka@ucw.cz>
34013 Martin Jambor <mjambor@suse.cz>
34014
34015 * common/config/gcn/gcn-common.c: New file.
34016 * config/gcn/driver-gcn.c: New file.
34017 * config/gcn/gcn-builtins.def: New file.
34018 * config/gcn/gcn-hsa.h: New file.
34019 * config/gcn/gcn-modes.def: New file.
34020 * config/gcn/gcn-opts.h: New file.
34021 * config/gcn/gcn-passes.def: New file.
34022 * config/gcn/gcn-protos.h: New file.
34023 * config/gcn/gcn-run.c: New file.
34024 * config/gcn/gcn-tree.c: New file.
34025 * config/gcn/gcn.c: New file.
34026 * config/gcn/gcn.h: New file.
34027 * config/gcn/gcn.opt: New file.
34028 * config/gcn/t-gcn-hsa: New file.
34029
34030 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34031 Kwok Cheung Yeung <kcy@codesourcery.com>
34032 Julian Brown <julian@codesourcery.com>
34033 Tom de Vries <tom@codesourcery.com>
34034 Jan Hubicka <hubicka@ucw.cz>
34035 Martin Jambor <mjambor@suse.cz>
34036
34037 * config/gcn/constraints.md: New file.
34038 * config/gcn/gcn-valu.md: New file.
34039 * config/gcn/gcn.md: New file.
34040 * config/gcn/predicates.md: New file.
34041
34042 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34043
34044 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34045 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34046 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34047 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34048
34049 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34050
34051 PR target/88851
34052 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34053 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34054 it and document registers.
34055
34056 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34057
34058 * config/aarch64/aarch64.c (ares_tunings): Define.
34059 * config/aarch64/aarch64-cores.def (ares): Use the above.
34060
34061 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34062
34063 PR target/88794
34064 Revert:
34065 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34066
34067 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34068 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34069 (_mm512_maskz_fixupimm_round_pd): Ditto.
34070 (_mm512_fixupimm_round_ps): Ditto.
34071 (_mm512_maskz_fixupimm_round_ps): Ditto.
34072 (_mm_fixupimm_round_sd): Ditto.
34073 (_mm_maskz_fixupimm_round_sd): Ditto.
34074 (_mm_fixupimm_round_ss): Ditto.
34075 (_mm_maskz_fixupimm_round_ss): Ditto.
34076 (_mm512_fixupimm_pd): Ditto.
34077 (_mm512_maskz_fixupimm_pd): Ditto.
34078 (_mm512_fixupimm_ps): Ditto.
34079 (_mm512_maskz_fixupimm_ps): Ditto.
34080 (_mm_fixupimm_sd): Ditto.
34081 (_mm_maskz_fixupimm_sd): Ditto.
34082 (_mm_fixupimm_ss): Ditto.
34083 (_mm_maskz_fixupimm_ss): Ditto.
34084 (_mm512_mask_fixupimm_round_pd): Update builtin.
34085 (_mm512_mask_fixupimm_round_ps): Ditto.
34086 (_mm_mask_fixupimm_round_sd): Ditto.
34087 (_mm_mask_fixupimm_round_ss): Ditto.
34088 (_mm512_mask_fixupimm_pd): Ditto.
34089 (_mm512_mask_fixupimm_ps): Ditto.
34090 (_mm_mask_fixupimm_sd): Ditto.
34091 (_mm_mask_fixupimm_ss): Ditto.
34092 * config/i386/avx512vlintrin.h:
34093 (_mm256_fixupimm_pd): Update parameters and builtin.
34094 (_mm256_maskz_fixupimm_pd): Ditto.
34095 (_mm256_fixupimm_ps): Ditto.
34096 (_mm256_maskz_fixupimm_ps): Ditto.
34097 (_mm_fixupimm_pd): Ditto.
34098 (_mm_maskz_fixupimm_pd): Ditto.
34099 (_mm_fixupimm_ps): Ditto.
34100 (_mm_maskz_fixupimm_ps): Ditto.
34101 (_mm256_mask_fixupimm_pd): Update builtin.
34102 (_mm256_mask_fixupimm_ps): Ditto.
34103 (_mm_mask_fixupimm_pd): Ditto.
34104 (_mm_mask_fixupimm_ps): Ditto.
34105 * config/i386/i386-builtin-types.def: Add new types and remove
34106 useless ones.
34107 * config/i386/i386-builtin.def: Update builtin definitions.
34108 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34109 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34110 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34111 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34112 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34113 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34114 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34115 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34116 * config/i386/subst.md:
34117 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34118 (round_saeonly_sd_mask_op4): Ditto.
34119 (round_saeonly_expand_operand5): Ditto.
34120 (round_saeonly_expand): Update.
34121
34122 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34123
34124 PR target/88794
34125 Revert:
34126 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34127
34128 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34129 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34130 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34131 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34132 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34133 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34134 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34135
34136 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34137
34138 PR target/88794
34139 Revert:
34140 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34141
34142 PR target/88489
34143 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34144 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34145 instead of UNSPEC_FIXUPIMM.
34146
34147 2019-01-17 Richard Biener <rguenther@suse.de>
34148
34149 PR lto/86736
34150 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34151 and friends for the LTO part of debug info.
34152
34153 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34154
34155 PR tree-optimization/86214
34156 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34157 if x == y.
34158
34159 PR rtl-optimization/88870
34160 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34161 throw if we can't alter the cfg or delete dead exceptions.
34162 (mark_insn): Don't call find_call_stack_args for such calls.
34163
34164 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34165
34166 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34167 prototypes for vec_st.
34168 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34169 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34170 mainly on signed/unsigned long long and double.
34171
34172 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34173
34174 PR target/88861
34175 * combine.c (delete_noop_moves): Convert to "bool" return,
34176 returning true if any edges are eliminated.
34177 (combine_instructions): Also return true if delete_noop_moves
34178 returns true.
34179
34180 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34181
34182 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34183 correct max nunits for endian swap.
34184 (aarch64_expand_fcmla_builtin): Correct subreg code.
34185 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34186 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34187 lane endianness.
34188
34189 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34190
34191 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34192 Handle split indirect COMPLEX_TYPE arguments.
34193
34194 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34195
34196 PR target/86891
34197 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34198 bit is set by add and compare.
34199 (CC_ADC): New CC_MODE.
34200 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34201 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34202 comparison. Add detection for CC_ADCmode.
34203 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34204 CC_ADCmode.
34205 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34206 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34207 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34208 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34209 to eliminate the need for zero-extending the operands.
34210 (add<mode>3_compareC_imm): Delete. Merge into ...
34211 (add<mode>3_compareC): ... this. Restructure the comparison to
34212 eliminate the need for zero-extending the operands.
34213 (add<mode>3_carryin): Use LTU for the overflow detection.
34214 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34215 Reexpress comparison for overflow.
34216 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34217 (add<mode>3_carryinC): Likewise.
34218 (add<mode>3_carryinV): Use LTU for carry between partials.
34219 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34220 handling of CC_Cmode and add CC_ADCmode.
34221 (aarch64_borrow_operation): Likewise.
34222
34223 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34224
34225 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34226 Remove patternmode.
34227 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34228 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34229 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34230 Remove endianness conversion.
34231
34232 2019-01-16 Martin Liska <mliska@suse.cz>
34233
34234 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34235 for GCC driver.
34236 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34237 a new argument.
34238 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34239 (path_prefix_reset): Move up in the source file.
34240 (find_fortran_preinclude_file): Make complex search for the
34241 fortran header files.
34242
34243 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34244
34245 * godump.c (go_output_typedef): When outputting a typedef, refer
34246 to the underlying type by its name and not its structure.
34247
34248 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34249
34250 PR c++/88795
34251 * tree.c (build_function_type): Assert that arg_types is not
34252 error_mark_node.
34253
34254 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34255
34256 PR inline-asm/52813
34257 * doc/extend.texi: Document that listing the stack pointer in the
34258 clobber list of an asm is a deprecated feature.
34259 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34260 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34261 warning instead of an error for clobbers of the stack pointer.
34262 Add a note explaining why.
34263
34264 2019-01-15 Richard Biener <rguenther@suse.de>
34265
34266 PR debug/88046
34267 * dwarf2out.c (gen_member_die): Do not generate inheritance
34268 DIEs late.
34269
34270 2019-01-15 Richard Biener <rguenther@suse.de>
34271
34272 PR tree-optimization/88855
34273 * tree-if-conv.c (combine_blocks): Collect
34274 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34275
34276 2019-01-15 Tom de Vries <tdevries@suse.de>
34277
34278 PR target/80547
34279 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34280 lhs == NULL_TREE for gang-level reduction.
34281
34282 2019-01-15 Richard Biener <rguenther@suse.de>
34283 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34284
34285 PR ipa/88788
34286 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34287 return true if SSA_NAME is already marked in visited bitmap.
34288 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34289
34290 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34291
34292 PR tree-optimization/88775
34293 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34294 equal == 0 equality pointer comparisons some more if compared in
34295 integral types and either one points to an automatic var and the
34296 other to a global, or we can prove at least one points to the middle
34297 or both point to start or both point to end.
34298
34299 2019-01-14 Andi Kleen <ak@linux.intel.com>
34300
34301 * Makefile.in: Lower autofdo sampling rate by 10x.
34302 * Makefile.tpl: Dito.
34303
34304 2019-01-14 Tom Honermann <tom@honermann.net>
34305
34306 * defaults.h: Define CHAR8_TYPE.
34307
34308 2019-01-14 Martin Sebor <msebor@redhat.com>
34309
34310 PR target/88638
34311 * doc/extend.texi (Darwin Format Checks): Clarify.
34312
34313 2019-01-14 Richard Biener <rguenther@suse.de>
34314
34315 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34316 whether we are in (simplify ...) or (match ...) context.
34317
34318 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34319
34320 PR rtl-optimization/88796
34321 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34322 * cfgexpand.c (stack_protect_prologue): Initialize
34323 crtl->stack_protect_guard_decl.
34324 * function.c (stack_protect_epilogue): Use it instead of calling
34325 targetm.stack_protect_guard again.
34326 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34327 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34328 crtl->stack_protect_guard_decl.
34329 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34330 on the returned MEM_EXPR.
34331
34332 2019-01-12 Tom de Vries <tdevries@suse.de>
34333
34334 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34335 vector length using -fopenacc-dim.
34336
34337 2019-01-12 Tom de Vries <tdevries@suse.de>
34338
34339 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34340 lengths into account.
34341
34342 2019-01-12 Svante Signell <svante.signell@gmail.com>
34343
34344 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34345 (TARGET_CAN_SPLIT_STACK): Define.
34346 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34347
34348 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34349
34350 * params.def (inline-unit-growth): Set to 40.
34351
34352 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34353
34354 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34355
34356 2019-01-12 Tom de Vries <tdevries@suse.de>
34357
34358 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34359 region calling vector-partitionable routine, set default_vector_length
34360 to WARP_SIZE.
34361
34362 2019-01-12 Tom de Vries <tdevries@suse.de>
34363
34364 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34365 variable default_vector_length.
34366
34367 2019-01-12 Tom de Vries <tdevries@suse.de>
34368
34369 PR middle-end/88703
34370 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34371 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34372 dimensions limits.
34373
34374 2019-01-12 Tom de Vries <tdevries@suse.de>
34375
34376 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34377 (nvptx_goacc_validate_dims): Add used parameter.
34378 * doc/tm.texi: Regenerate.
34379 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34380 argument to call to targetm.goacc.validate_dims.
34381 (default_goacc_validate_dims): Add used
34382 parameter.
34383 * target.def (validate_dims): Add used parameter in DEFHOOK.
34384 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34385
34386 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34387
34388 PR middle-end/85956
34389 PR lto/88733
34390 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34391 field.
34392 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34393 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34394 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34395 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34396
34397 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34398
34399 PR rtl-optimization/87305
34400 * lra-assigns.c
34401 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34402 for little endian pseudos used as paradoxical subreg.
34403
34404 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34405
34406 PR tree-optimization/88693
34407 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34408 for STRING_CSTs that don't contain any NUL characters in the first
34409 TREE_STRING_LENGTH bytes.
34410
34411 2019-01-11 Alan Modra <amodra@gmail.com>
34412
34413 PR 88777
34414 PR 88614
34415 * genattrtab.c (min_fn): Don't translate values.
34416 (min_attr_value): Return INT_MAX when the value can't be calculated.
34417 Return minimum among any values that can be calculated.
34418 (max_attr_value): Adjust.
34419
34420 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34421
34422 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34423
34424 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34425
34426 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34427 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34428 (aarch64_return_call_with_max_clobbers): New function.
34429 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34430 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34431 argument.
34432 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34433 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34434 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34435 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34436 * cselib.c (cselib_process_insn): Add argument to
34437 targetm.hard_regno_call_part_clobbered call.
34438 * ira-conflicts.c (ira_build_conflicts): Ditto.
34439 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34440 * lra-constraints.c (inherit_reload_reg): Ditto.
34441 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34442 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34443 argument. Call targetm.return_call_with_max_clobbers.
34444 Add argument to targetm.hard_regno_call_part_clobbered call.
34445 (calls_have_same_clobbers_p): New function.
34446 (process_bb_lives): Add call_insn and last_call_insn variables.
34447 Pass call_insn to check_pseudos_live_through_calls.
34448 Modify if stmt to check targetm.return_call_with_max_clobbers.
34449 Update setting of flush variable.
34450 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34451 to false.
34452 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34453 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34454 targetm.hard_regno_call_part_clobbered call.
34455 * reginfo.c (choose_hard_reg_mode): Ditto.
34456 * regrename.c (check_new_reg_p): Ditto.
34457 * reload.c (find_equiv_reg): Ditto.
34458 * reload1.c (emit_reload_insns): Ditto.
34459 * sched-deps.c (deps_analyze_insn): Ditto.
34460 * sel-sched.c (init_regs_for_mode): Ditto.
34461 (mark_unavailable_hard_regs): Ditto.
34462 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34463 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34464 (return_call_with_max_clobbers): New target function.
34465 * doc/tm.texi: Regenerate.
34466 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34467 * hooks.c (hook_bool_uint_mode_false): Change to
34468 hook_bool_insn_uint_mode_false.
34469 * hooks.h (hook_bool_uint_mode_false): Ditto.
34470
34471 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34472
34473 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34474 (aarch64_remove_extra_call_preserved_regs): New function.
34475 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34476 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34477 * doc/tm.texi: Regenerate.
34478 * final.c (get_call_reg_set_usage): Call new hook.
34479 * target.def (remove_extra_call_preserved_regs): New hook.
34480 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34481 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34482
34483 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34484
34485 PR bootstrap/88714
34486 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34487 inside of pass_combine_1 dump rather than pass_profile_1.
34488
34489 2019-01-11 Tom de Vries <tdevries@suse.de>
34490
34491 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34492 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34493 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34494 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34495 num_workers 16.
34496
34497 2019-01-11 Tom de Vries <tdevries@suse.de>
34498
34499 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34500
34501 2019-01-11 Jan Beulich <jbeulich@suse.com>
34502
34503 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34504 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34505 sse2_cvtsi2sd): Add {l}.
34506 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34507 syntax.
34508
34509 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34510
34511 PR target/88785
34512 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34513 define_expand.
34514 (*float<floatunssuffix>v2div2sf2): New define_insn.
34515 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34516 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34517 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34518 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34519 match_operands with "const0_operand" "C".
34520
34521 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34522
34523 * config/aarch64/aarch64-builtins.c
34524 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34525 (aarch64_init_simd_builtins): ...Here
34526
34527 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34528
34529 PR rtl-optimization/87305
34530 * lra-assigns.c
34531 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34532 allocation for big endian pseudos used as paradoxical subregs and
34533 spill them if it is wrong.
34534 * lra-constraints.c (lra_constraints): Add a comment.
34535
34536 2019-01-10 Richard Biener <rguenther@suse.de>
34537
34538 PR tree-optimization/88792
34539 * tree-ssa-pre.c (get_representative_for): Do not return a
34540 value-number here.
34541
34542 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34543
34544 PR middle-end/84877
34545 PR bootstrap/88450
34546 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34547 (assign_parm_setup_block): Do the argument slot realignment here
34548 instead.
34549
34550 2019-01-10 Stefan Agner <stefan@agner.ch>
34551
34552 PR target/88648
34553 * config/arm/arm.c (arm_option_override_internal): Force
34554 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34555
34556 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34557
34558 PR c/88568
34559 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34560 DECL_EXTERNAL.
34561
34562 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34563
34564 * config/arm/arm-builtins.c
34565 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34566 (MAC_LANE_PAIR_QUALIFIERS): New.
34567 (arm_expand_builtin_args): Use it.
34568 (arm_expand_builtin_1): Likewise.
34569 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34570 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34571 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34572 * config/arm/arm_neon.h:
34573 (vcadd_rot90_f16): New.
34574 (vcaddq_rot90_f16): New.
34575 (vcadd_rot270_f16): New.
34576 (vcaddq_rot270_f16): New.
34577 (vcmla_f16): New.
34578 (vcmlaq_f16): New.
34579 (vcmla_lane_f16): New.
34580 (vcmla_laneq_f16): New.
34581 (vcmlaq_lane_f16): New.
34582 (vcmlaq_laneq_f16): New.
34583 (vcmla_rot90_f16): New.
34584 (vcmlaq_rot90_f16): New.
34585 (vcmla_rot90_lane_f16): New.
34586 (vcmla_rot90_laneq_f16): New.
34587 (vcmlaq_rot90_lane_f16): New.
34588 (vcmlaq_rot90_laneq_f16): New.
34589 (vcmla_rot180_f16): New.
34590 (vcmlaq_rot180_f16): New.
34591 (vcmla_rot180_lane_f16): New.
34592 (vcmla_rot180_laneq_f16): New.
34593 (vcmlaq_rot180_lane_f16): New.
34594 (vcmlaq_rot180_laneq_f16): New.
34595 (vcmla_rot270_f16): New.
34596 (vcmlaq_rot270_f16): New.
34597 (vcmla_rot270_lane_f16): New.
34598 (vcmla_rot270_laneq_f16): New.
34599 (vcmlaq_rot270_lane_f16): New.
34600 (vcmlaq_rot270_laneq_f16): New.
34601 (vcadd_rot90_f32): New.
34602 (vcaddq_rot90_f32): New.
34603 (vcadd_rot270_f32): New.
34604 (vcaddq_rot270_f32): New.
34605 (vcmla_f32): New.
34606 (vcmlaq_f32): New.
34607 (vcmla_lane_f32): New.
34608 (vcmla_laneq_f32): New.
34609 (vcmlaq_lane_f32): New.
34610 (vcmlaq_laneq_f32): New.
34611 (vcmla_rot90_f32): New.
34612 (vcmlaq_rot90_f32): New.
34613 (vcmla_rot90_lane_f32): New.
34614 (vcmla_rot90_laneq_f32): New.
34615 (vcmlaq_rot90_lane_f32): New.
34616 (vcmlaq_rot90_laneq_f32): New.
34617 (vcmla_rot180_f32): New.
34618 (vcmlaq_rot180_f32): New.
34619 (vcmla_rot180_lane_f32): New.
34620 (vcmla_rot180_laneq_f32): New.
34621 (vcmlaq_rot180_lane_f32): New.
34622 (vcmlaq_rot180_laneq_f32): New.
34623 (vcmla_rot270_f32): New.
34624 (vcmlaq_rot270_f32): New.
34625 (vcmla_rot270_lane_f32): New.
34626 (vcmla_rot270_laneq_f32): New.
34627 (vcmlaq_rot270_lane_f32): New.
34628 (vcmlaq_rot270_laneq_f32): New.
34629 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34630 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34631 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34632 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34633 vcmlaq_lane270): New.
34634 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34635 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34636 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34637 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34638 (arm_option_reconfigure_globals): Use them.
34639 * config/arm/iterators.md (VDF, VQ_HSF): New.
34640 (VCADD, VCMLA): New.
34641 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34642 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34643 New.
34644 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34645 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34646
34647 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34648
34649 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34650 Add qualifier_lane_pair_index.
34651 (emit-rtl.h): Include.
34652 (TYPES_QUADOP_LANE_PAIR): New.
34653 (aarch64_simd_expand_args): Use it.
34654 (aarch64_simd_expand_builtin): Likewise.
34655 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34656 New.
34657 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34658 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34659 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34660 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34661 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34662 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34663 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34664 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34665 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34666 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34667 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34668 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34669 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34670 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34671 Add __ARM_FEATURE_COMPLEX.
34672 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34673 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34674 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34675 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34676 fcmlaq_lane270): New.
34677 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34678 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34679 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34680 * config/aarch64/arm_neon.h:
34681 (vcadd_rot90_f16): New.
34682 (vcaddq_rot90_f16): New.
34683 (vcadd_rot270_f16): New.
34684 (vcaddq_rot270_f16): New.
34685 (vcmla_f16): New.
34686 (vcmlaq_f16): New.
34687 (vcmla_lane_f16): New.
34688 (vcmla_laneq_f16): New.
34689 (vcmlaq_lane_f16): New.
34690 (vcmlaq_rot90_lane_f16): New.
34691 (vcmla_rot90_laneq_f16): New.
34692 (vcmla_rot90_lane_f16): New.
34693 (vcmlaq_rot90_f16): New.
34694 (vcmla_rot90_f16): New.
34695 (vcmlaq_laneq_f16): New.
34696 (vcmla_rot180_laneq_f16): New.
34697 (vcmla_rot180_lane_f16): New.
34698 (vcmlaq_rot180_f16): New.
34699 (vcmla_rot180_f16): New.
34700 (vcmlaq_rot90_laneq_f16): New.
34701 (vcmlaq_rot270_laneq_f16): New.
34702 (vcmlaq_rot270_lane_f16): New.
34703 (vcmla_rot270_laneq_f16): New.
34704 (vcmlaq_rot270_f16): New.
34705 (vcmla_rot270_f16): New.
34706 (vcmlaq_rot180_laneq_f16): New.
34707 (vcmlaq_rot180_lane_f16): New.
34708 (vcmla_rot270_lane_f16): New.
34709 (vcadd_rot90_f32): New.
34710 (vcaddq_rot90_f32): New.
34711 (vcaddq_rot90_f64): New.
34712 (vcadd_rot270_f32): New.
34713 (vcaddq_rot270_f32): New.
34714 (vcaddq_rot270_f64): New.
34715 (vcmla_f32): New.
34716 (vcmlaq_f32): New.
34717 (vcmlaq_f64): New.
34718 (vcmla_lane_f32): New.
34719 (vcmla_laneq_f32): New.
34720 (vcmlaq_lane_f32): New.
34721 (vcmlaq_laneq_f32): New.
34722 (vcmla_rot90_f32): New.
34723 (vcmlaq_rot90_f32): New.
34724 (vcmlaq_rot90_f64): New.
34725 (vcmla_rot90_lane_f32): New.
34726 (vcmla_rot90_laneq_f32): New.
34727 (vcmlaq_rot90_lane_f32): New.
34728 (vcmlaq_rot90_laneq_f32): New.
34729 (vcmla_rot180_f32): New.
34730 (vcmlaq_rot180_f32): New.
34731 (vcmlaq_rot180_f64): New.
34732 (vcmla_rot180_lane_f32): New.
34733 (vcmla_rot180_laneq_f32): New.
34734 (vcmlaq_rot180_lane_f32): New.
34735 (vcmlaq_rot180_laneq_f32): New.
34736 (vcmla_rot270_f32): New.
34737 (vcmlaq_rot270_f32): New.
34738 (vcmlaq_rot270_f64): New.
34739 (vcmla_rot270_lane_f32): New.
34740 (vcmla_rot270_laneq_f32): New.
34741 (vcmlaq_rot270_lane_f32): New.
34742 (vcmlaq_rot270_laneq_f32): New.
34743 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34744 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34745 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34746 (FCADD, FCMLA): New.
34747 (rot): New.
34748 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34749
34750 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34751
34752 PR other/16615
34753
34754 * config/pa/pa.c: Change "can not" to "cannot".
34755 * gimple-ssa-evrp-analyze.c: Likewise.
34756 * ipa-icf.c: Likewise.
34757 * ipa-polymorphic-call.c: Likewise.
34758 * ipa-pure-const.c: Likewise.
34759 * lra-constraints.c: Likewise.
34760 * lra-remat.c: Likewise.
34761 * reload1.c: Likewise.
34762 * reorg.c: Likewise.
34763 * tree-ssa-uninit.c: Likewise.
34764
34765 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34766
34767 PR other/16615
34768
34769 * Makefile.in: Mechanically replace "can not" with "cannot".
34770 * alias.c: Likewise.
34771 * builtins.c: Likewise.
34772 * calls.c: Likewise.
34773 * cgraph.c: Likewise.
34774 * cgraph.h: Likewise.
34775 * cgraphclones.c: Likewise.
34776 * cgraphunit.c: Likewise.
34777 * combine-stack-adj.c: Likewise.
34778 * combine.c: Likewise.
34779 * common/config/i386/i386-common.c: Likewise.
34780 * config/aarch64/aarch64.c: Likewise.
34781 * config/alpha/sync.md: Likewise.
34782 * config/arc/arc.c: Likewise.
34783 * config/arc/predicates.md: Likewise.
34784 * config/arm/arm-c.c: Likewise.
34785 * config/arm/arm.c: Likewise.
34786 * config/arm/arm.h: Likewise.
34787 * config/arm/arm.md: Likewise.
34788 * config/arm/cortex-r4f.md: Likewise.
34789 * config/csky/csky.c: Likewise.
34790 * config/csky/csky.h: Likewise.
34791 * config/darwin-f.c: Likewise.
34792 * config/epiphany/epiphany.md: Likewise.
34793 * config/i386/i386.c: Likewise.
34794 * config/i386/sol2.h: Likewise.
34795 * config/m68k/m68k.c: Likewise.
34796 * config/mcore/mcore.h: Likewise.
34797 * config/microblaze/microblaze.md: Likewise.
34798 * config/mips/20kc.md: Likewise.
34799 * config/mips/sb1.md: Likewise.
34800 * config/nds32/nds32.c: Likewise.
34801 * config/nds32/predicates.md: Likewise.
34802 * config/pa/pa.c: Likewise.
34803 * config/rs6000/e300c2c3.md: Likewise.
34804 * config/rs6000/rs6000.c: Likewise.
34805 * config/s390/s390.h: Likewise.
34806 * config/sh/sh.c: Likewise.
34807 * config/sh/sh.md: Likewise.
34808 * config/spu/vmx2spu.h: Likewise.
34809 * cprop.c: Likewise.
34810 * dbxout.c: Likewise.
34811 * df-scan.c: Likewise.
34812 * doc/cfg.texi: Likewise.
34813 * doc/extend.texi: Likewise.
34814 * doc/fragments.texi: Likewise.
34815 * doc/gty.texi: Likewise.
34816 * doc/invoke.texi: Likewise.
34817 * doc/lto.texi: Likewise.
34818 * doc/md.texi: Likewise.
34819 * doc/objc.texi: Likewise.
34820 * doc/rtl.texi: Likewise.
34821 * doc/tm.texi: Likewise.
34822 * dse.c: Likewise.
34823 * emit-rtl.c: Likewise.
34824 * emit-rtl.h: Likewise.
34825 * except.c: Likewise.
34826 * expmed.c: Likewise.
34827 * expr.c: Likewise.
34828 * fold-const.c: Likewise.
34829 * genautomata.c: Likewise.
34830 * gimple-fold.c: Likewise.
34831 * hard-reg-set.h: Likewise.
34832 * ifcvt.c: Likewise.
34833 * ipa-comdats.c: Likewise.
34834 * ipa-cp.c: Likewise.
34835 * ipa-devirt.c: Likewise.
34836 * ipa-fnsummary.c: Likewise.
34837 * ipa-icf.c: Likewise.
34838 * ipa-inline-transform.c: Likewise.
34839 * ipa-inline.c: Likewise.
34840 * ipa-polymorphic-call.c: Likewise.
34841 * ipa-profile.c: Likewise.
34842 * ipa-prop.c: Likewise.
34843 * ipa-pure-const.c: Likewise.
34844 * ipa-reference.c: Likewise.
34845 * ipa-split.c: Likewise.
34846 * ipa-visibility.c: Likewise.
34847 * ipa.c: Likewise.
34848 * ira-build.c: Likewise.
34849 * ira-color.c: Likewise.
34850 * ira-conflicts.c: Likewise.
34851 * ira-costs.c: Likewise.
34852 * ira-int.h: Likewise.
34853 * ira-lives.c: Likewise.
34854 * ira.c: Likewise.
34855 * ira.h: Likewise.
34856 * loop-invariant.c: Likewise.
34857 * loop-unroll.c: Likewise.
34858 * lower-subreg.c: Likewise.
34859 * lra-assigns.c: Likewise.
34860 * lra-constraints.c: Likewise.
34861 * lra-eliminations.c: Likewise.
34862 * lra-lives.c: Likewise.
34863 * lra-remat.c: Likewise.
34864 * lra-spills.c: Likewise.
34865 * lra.c: Likewise.
34866 * lto-cgraph.c: Likewise.
34867 * lto-streamer-out.c: Likewise.
34868 * postreload-gcse.c: Likewise.
34869 * predict.c: Likewise.
34870 * profile-count.h: Likewise.
34871 * profile.c: Likewise.
34872 * recog.c: Likewise.
34873 * ree.c: Likewise.
34874 * reload.c: Likewise.
34875 * reload1.c: Likewise.
34876 * reorg.c: Likewise.
34877 * resource.c: Likewise.
34878 * rtl.def: Likewise.
34879 * rtl.h: Likewise.
34880 * rtlanal.c: Likewise.
34881 * sched-deps.c: Likewise.
34882 * sched-ebb.c: Likewise.
34883 * sched-rgn.c: Likewise.
34884 * sel-sched-ir.c: Likewise.
34885 * sel-sched.c: Likewise.
34886 * shrink-wrap.c: Likewise.
34887 * simplify-rtx.c: Likewise.
34888 * symtab.c: Likewise.
34889 * target.def: Likewise.
34890 * toplev.c: Likewise.
34891 * tree-call-cdce.c: Likewise.
34892 * tree-cfg.c: Likewise.
34893 * tree-complex.c: Likewise.
34894 * tree-core.h: Likewise.
34895 * tree-eh.c: Likewise.
34896 * tree-inline.c: Likewise.
34897 * tree-loop-distribution.c: Likewise.
34898 * tree-nrv.c: Likewise.
34899 * tree-profile.c: Likewise.
34900 * tree-sra.c: Likewise.
34901 * tree-ssa-alias.c: Likewise.
34902 * tree-ssa-dce.c: Likewise.
34903 * tree-ssa-dom.c: Likewise.
34904 * tree-ssa-forwprop.c: Likewise.
34905 * tree-ssa-loop-im.c: Likewise.
34906 * tree-ssa-loop-ivcanon.c: Likewise.
34907 * tree-ssa-loop-ivopts.c: Likewise.
34908 * tree-ssa-loop-niter.c: Likewise.
34909 * tree-ssa-phionlycprop.c: Likewise.
34910 * tree-ssa-phiopt.c: Likewise.
34911 * tree-ssa-propagate.c: Likewise.
34912 * tree-ssa-threadedge.c: Likewise.
34913 * tree-ssa-threadupdate.c: Likewise.
34914 * tree-ssa-uninit.c: Likewise.
34915 * tree-ssanames.c: Likewise.
34916 * tree-streamer-out.c: Likewise.
34917 * tree.c: Likewise.
34918 * tree.h: Likewise.
34919 * vr-values.c: Likewise.
34920
34921 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34922
34923 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34924 (ix86_split_xorsign): Ditto.
34925 * config/i386/i386.c (ix86_expand_xorsign): New function.
34926 (ix86_split_xorsign): Ditto.
34927 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34928 (xorsign<mode>3): New expander.
34929 (xorsign<mode>3_1): New insn_and_split pattern.
34930 * config/i386/sse.md (xorsign<mode>3): New expander.
34931
34932 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34933
34934 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34935 (*tablejump_sp64): Likewise.
34936 (*tablejump<P:mode>): ...this.
34937 (*call_address_sp32): Merge into...
34938 (*call_address_sp64): Likewise.
34939 (*call_address<P:mode>): ...this.
34940 (*call_symbolic_sp32): Merge into...
34941 (*call_symbolic_sp64): Likewise.
34942 (*call_symbolic<P:mode>): ...this.
34943 (call_value): Remove constraint and add predicate.
34944 (*call_value_address_sp32): Merge into...
34945 (*call_value_address_sp64): Likewise.
34946 (*call_value_address<P:mode>): ...this.
34947 (*call_value_symbolic_sp32): Merge into...
34948 (*call_value_symbolic_sp64): Likewise.
34949 (*call_value_symbolic<P:mode>): ...this.
34950 (*sibcall_symbolic_sp32): Merge into...
34951 (*sibcall_symbolic_sp64): Likewise.
34952 (*sibcall_symbolic<P:mode>): ...this.
34953 (sibcall_value): Remove constraint and add predicate.
34954 (*sibcall_value_symbolic_sp32): Merge into...
34955 (*sibcall_value_symbolic_sp64): Likewise.
34956 (*sibcall_value_symbolic<P:mode>): ...this.
34957 (window_save): Minor tweak.
34958 (*branch_sp32): Merge into...
34959 (*branch_sp64): Likewise.
34960 (*branch<P:mode>): ...this.
34961
34962 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34963 James Clarke <jrtc27@jrtc27.com>
34964
34965 PR target/84010
34966 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34967 consistently in TLS address generation and adjust code to the renaming
34968 of patterns. Mark calls to __tls_get_addr as const.
34969 * config/sparc/sparc.md (tgd_hi22): Turn into...
34970 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34971 (tgd_lo10): Turn into...
34972 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34973 (tgd_add32): Merge into...
34974 (tgd_add64): Likewise.
34975 (tgd_add<P:mode>): ...this and use Pmode throughout.
34976 (tldm_hi22): Turn into...
34977 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34978 (tldm_lo10): Turn into...
34979 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34980 (tldm_add32): Merge into...
34981 (tldm_add64): Likewise.
34982 (tldm_add<P:mode>): ...this and use Pmode throughout.
34983 (tldm_call32): Merge into...
34984 (tldm_call64): Likewise.
34985 (tldm_call<P:mode>): ...this and use Pmode throughout.
34986 (tldo_hix22): Turn into...
34987 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34988 (tldo_lox10): Turn into...
34989 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34990 (tldo_add32): Merge into...
34991 (tldo_add64): Likewise.
34992 (tldo_add<P:mode>): ...this and use Pmode throughout.
34993 (tie_hi22): Turn into...
34994 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34995 (tie_lo10): Turn into...
34996 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34997 (tie_ld64): Use DImode throughout.
34998 (tie_add32): Merge into...
34999 (tie_add64): Likewise.
35000 (tie_add<P:mode>): ...this and use Pmode throughout.
35001 (tle_hix22_sp32): Merge into...
35002 (tle_hix22_sp64): Likewise.
35003 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35004 (tle_lox22_sp32): Merge into...
35005 (tle_lox22_sp64): Likewise.
35006 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35007 (*tldo_ldub_sp32): Merge into...
35008 (*tldo_ldub_sp64): Likewise.
35009 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35010 (*tldo_ldub1_sp32): Merge into...
35011 (*tldo_ldub1_sp64): Likewise.
35012 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35013 (*tldo_ldub2_sp32): Merge into...
35014 (*tldo_ldub2_sp64): Likewise.
35015 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35016 (*tldo_ldsb1_sp32): Merge into...
35017 (*tldo_ldsb1_sp64): Likewise.
35018 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35019 (*tldo_ldsb2_sp32): Merge into...
35020 (*tldo_ldsb2_sp64): Likewise.
35021 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35022 (*tldo_ldub3_sp64): Use DImode throughout.
35023 (*tldo_ldsb3_sp64): Likewise.
35024 (*tldo_lduh_sp32): Merge into...
35025 (*tldo_lduh_sp64): Likewise.
35026 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35027 (*tldo_lduh1_sp32): Merge into...
35028 (*tldo_lduh1_sp64): Likewise.
35029 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35030 (*tldo_ldsh1_sp32): Merge into...
35031 (*tldo_ldsh1_sp64): Likewise.
35032 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35033 (*tldo_lduh2_sp64): Use DImode throughout.
35034 (*tldo_ldsh2_sp64): Likewise.
35035 (*tldo_lduw_sp32): Merge into...
35036 (*tldo_lduw_sp64): Likewise.
35037 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35038 (*tldo_lduw1_sp64): Use DImode throughout.
35039 (*tldo_ldsw1_sp64): Likewise.
35040 (*tldo_ldx_sp64): Likewise.
35041 (*tldo_stb_sp32): Merge into...
35042 (*tldo_stb_sp64): Likewise.
35043 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35044 (*tldo_sth_sp32): Merge into...
35045 (*tldo_sth_sp64): Likewise.
35046 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35047 (*tldo_stw_sp32): Merge into...
35048 (*tldo_stw_sp64): Likewise.
35049 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35050 (*tldo_stx_sp64): Use DImode throughout.
35051
35052 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35053
35054 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35055 check configure option to set BTI and Return Address Signing.
35056 * configure.ac: Add --enable-standard-branch-protection and
35057 --disable-standard-branch-protection.
35058 * configure: Regenerated.
35059 * doc/install.texi: Document the same.
35060
35061 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35062 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35063
35064 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35065 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35066 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35067 if bti is enabled.
35068 * config/aarch64/aarch64-bti-insert.c: New file.
35069 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35070 pass.
35071 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35072 new bti pass.
35073 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35074 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35075 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35076 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35077
35078 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35079
35080 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35081 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35082 Disable bti for -mbranch-protection=none.
35083 (aarch64_handle_standard_branch_protection): Enable bti for
35084 -mbranch-protection=standard.
35085 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35086 -mbranch-protection.
35087 (aarch64_bti_enabled): Check if bti is enabled.
35088 * config/aarch64/aarch64.opt: Declare target variable.
35089 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35090
35091 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35092
35093 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35094 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35095 (aarch64_expand_epilogue): Likewise.
35096 (aarch64_output_mi_thunk): Likewise.
35097 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35098 TAILCALL_ADDR_REGS to x16 and x17.
35099 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35100
35101 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35102
35103 * config/aarch64/aarch64-option-extensions.def: Define
35104 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35105 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35106 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35107 (AARCH64_FL_PREDRES): New.
35108 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35109 AARCH64_FL_PREDRES by default.
35110 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35111
35112 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35113
35114 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35115 ARMv8.5-A.
35116 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35117 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35118 * doc/invoke.texi: Document ARMv8.5-A.
35119
35120 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35121
35122 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35123 (xorsign<mode>3): Likewise.
35124
35125 2019-01-09 Jelinek <jakub@redhat.com>
35126
35127 PR middle-end/88758
35128 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35129 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35130
35131 PR rtl-optimization/88331
35132 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35133 not currently_expanding_to_rtl.
35134
35135 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35136
35137 * doc/invoke.texi (-Os): Remove trailing spaces.
35138 (-finline-functions): Remove reference to -O2.
35139
35140 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35141
35142 PR rtl-optimization/79593
35143 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35144
35145 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35146 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35147
35148 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35149
35150 PR bootstrap/88721
35151 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35152 to -1 on entry.
35153
35154 PR debug/88723
35155 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35156 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35157
35158 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35159
35160 PR target/88717
35161 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35162 ix86_avx_u128_mode_entry.
35163
35164 2019-01-08 Martin Liska <mliska@suse.cz>
35165
35166 PR tree-optimization/88753
35167 * tree-switch-conversion.c (switch_conversion::build_one_array):
35168 Come up with local variable constructor. Convert first to
35169 type of constructor values.
35170
35171 2019-01-08 Richard Biener <rguenther@suse.de>
35172
35173 PR tree-optimization/86554
35174 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35175 rpo_avail): Move earlier.
35176 (visit_nary_op): When value-numbering to expressions
35177 with different overflow behavior make sure there's an
35178 available expression on the path.
35179
35180 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35181
35182 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35183 aarch64_parse_branch_protection,
35184 struct aarch64_branch_protect_type,
35185 aarch64_handle_no_branch_protection,
35186 aarch64_handle_standard_branch_protection,
35187 aarch64_validate_mbranch_protection,
35188 aarch64_handle_pac_ret_protection,
35189 aarch64_handle_attr_branch_protection,
35190 accepted_branch_protection_string,
35191 aarch64_pac_ret_subtypes,
35192 aarch64_branch_protect_types,
35193 aarch64_handle_pac_ret_leaf): Define.
35194 (aarch64_override_options_after_change_1, aarch64_override_options):
35195 Add check for accepted_branch_protection_string.
35196 (aarch64_option_save): Save accepted_branch_protection_string.
35197 (aarch64_option_restore): Save accepted_branch_protection_string.
35198 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35199 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35200 msign-return-address.
35201 * doc/invoke.texi: Add mbranch-protection.
35202
35203 2019-01-08 Alan Modra <amodra@gmail.com>
35204
35205 PR target/88614
35206 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35207 Delete "unknownp" parameter. Adjust callers. Handle
35208 CONST_INT, PLUS, MINUS, and MULT.
35209 (attr_value_aligned): Renamed from or_attr_value.
35210 (min_attr_value): Return INT_MIN for unhandled rtl case..
35211 (min_fn): ..and translate to INT_MAX here.
35212 (write_length_unit_log): Modify to cope without "unknown".
35213 (write_attr_value): Handle IF_THEN_ELSE.
35214
35215 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35216
35217 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35218 optimization for masked stores.
35219
35220 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35221
35222 PR middle-end/88567
35223 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35224 output vector directly to duplicate_and_interleave instead of
35225 going through a temporary. Postpone insertion of ctor_seq to
35226 the end of the loop.
35227
35228 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35229
35230 PR target/86891
35231 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35232 unsigned_p. Handle signed and unsigned overflow correction as
35233 required.
35234 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35235 prototype.
35236 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35237 for operand 2.
35238 (add<mode>3_compareV_imm): Make this callable for expanding.
35239 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35240 aarch64_plus_operand for operand 2.
35241 (subv<GPI:mode>_insn): New insn pattern.
35242 (subv<GPI:mode>_imm): Likewise.
35243 (negv<GPI:mode>3): New expand pattern.
35244 (negv<GPI:mode>_insn): New insn pattern.
35245 (negv<GPI:mode>_cmp_only): Likewise.
35246 (cmpv<GPI:mode>_insn): Likewise.
35247 (subvti4): Use register_operand for operand 1. Update call to
35248 aarch64_expand_subvti.
35249 (usubvti4): Likewise.
35250 (negvti3): New expand pattern.
35251 (negdi_carryout): New insn pattern.
35252 (negvdi_carryinV): New insn pattern.
35253 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35254 version the named version.
35255 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35256 operands.
35257 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35258 patterns.
35259 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35260 patterns.
35261 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35262 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35263 (sub<mode>3_carryinCV): Delete.
35264 (sub<GPI:mode>3_carryinV): New expand pattern.
35265 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35266
35267 2019-01-07 Richard Biener <rguenther@suse.de>
35268
35269 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35270 of tree_operand_hash.
35271
35272 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35273
35274 PR tree-optimization/88598
35275 * tree.h (single_nonzero_element): Declare.
35276 * tree.c (single_nonzero_element): New function.
35277 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35278 if I is the only nonzero element of CST.
35279
35280 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35281
35282 PR tree-optimization/88598
35283 * tree.h (initializer_each_zero_or_onep): Declare.
35284 * tree.c (initializer_each_zero_or_onep): New function.
35285 (signed_or_unsigned_type_for): Handle float types too.
35286 (unsigned_type_for, signed_type_for): Update comments accordingly.
35287 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35288 x & { 0 or -1, 0 or -1, ... }.
35289
35290 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35291
35292 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35293 with x86_64-pc-linux-gnu.
35294
35295 2019-01-07 Tom de Vries <tdevries@suse.de>
35296
35297 PR target/85486
35298 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35299 function.
35300 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35301 routines.
35302
35303 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35304
35305 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35306 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35307 TARGET_AVX512F as condition.
35308
35309 PR debug/88723
35310 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35311 const_not_ok_for_debug_p target hook.
35312 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35313 on UNSPEC and subexpressions thereof if all subexpressions of the
35314 UNSPEC are CONSTANT_P.
35315
35316 PR tree-optimization/88676
35317 * tree-ssa-phiopt.c (two_value_replacement): New function.
35318 (tree_ssa_phiopt_worker): Call it.
35319
35320 PR sanitizer/88619
35321 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35322 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35323
35324 PR c++/85052
35325 * tree-vect-generic.c: Include insn-config.h and recog.h.
35326 (expand_vector_piecewise): Add defaulted ret_type argument,
35327 if non-NULL, use that in preference to type for the result type.
35328 (expand_vector_parallel): Formatting fix.
35329 (do_vec_conversion, do_vec_narrowing_conversion,
35330 expand_vector_conversion): New functions.
35331 (expand_vector_operations_1): Call expand_vector_conversion
35332 for VEC_CONVERT ifn calls.
35333 * internal-fn.def (VEC_CONVERT): New internal function.
35334 * internal-fn.c (expand_VEC_CONVERT): New function.
35335 * fold-const-call.c (fold_const_vec_convert): New function.
35336 (fold_const_call): Use it for CFN_VEC_CONVERT.
35337 * doc/extend.texi (__builtin_convertvector): Document.
35338
35339 2019-01-07 Tom de Vries <tdevries@suse.de>
35340
35341 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35342 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35343 vector_red_partition, vector_red_sym): New global variables.
35344 (nvptx_option_override): Initialize vector_red_sym.
35345 (nvptx_declare_function_name): Restore red_partition register.
35346 (nvptx_file_end): Emit code to declare the vector reduction variables.
35347 (nvptx_output_red_partition): New function.
35348 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35349 large vector reductions.
35350 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35351 (nvptx_init_builtins): Add VECTOR_ADDR.
35352 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35353 Handle nvptx_expand_shared_addr.
35354 (nvptx_get_shared_red_addr): Add vector argument and handle large
35355 vectors.
35356 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35357 large vectors.
35358 (nvptx_goacc_reduction_init): Likewise.
35359 (nvptx_goacc_reduction_fini): Likewise.
35360 (nvptx_goacc_reduction_teardown): Likewise.
35361 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35362 init,fini,teardown}.
35363 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35364 (nvptx_set_current_function): Init vector_red_partition.
35365 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35366 (nvptx_red_partition): New insn.
35367 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35368
35369 2019-01-07 Tom de Vries <tdevries@suse.de>
35370
35371 PR target/85381
35372 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35373 empty loops.
35374
35375 2019-01-07 Tom de Vries <tdevries@suse.de>
35376
35377 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35378 (nvptx_option_override): Init oacc_bcast_partition.
35379 (nvptx_init_oacc_workers): New function.
35380 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35381 (nvptx_needs_shared_bcast): New function.
35382 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35383 to propagate state.
35384 (nvptx_shared_propagate): Initialize vector bcast partition and
35385 synchronization state.
35386 (nvptx_single): Generalize to enable vectors to use shared-memory
35387 to propagate state.
35388 (nvptx_process_pars): Likewise.
35389 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35390 * config/nvptx/nvptx.h (struct machine_function): Add
35391 bcast_partition and sync_bar members.
35392
35393 2019-01-07 Tom de Vries <tdevries@suse.de>
35394
35395 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35396 (nvptx_apply_dim_limits): New function.
35397 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35398 PTX_WARP_SIZE.
35399
35400 2019-01-07 Tom de Vries <tdevries@suse.de>
35401
35402 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35403 as late as possible.
35404
35405 2019-01-07 Tom de Vries <tdevries@suse.de>
35406
35407 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35408 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35409 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35410 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35411 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35412
35413 2019-01-07 Tom de Vries <tdevries@suse.de>
35414
35415 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35416
35417 2019-01-07 Tom de Vries <tdevries@suse.de>
35418
35419 * omp-offload.c (oacc_get_min_dim): New function.
35420 * omp-offload.h (oacc_get_min_dim): Declare.
35421
35422 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35423
35424 PR target/88521
35425 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35426 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35427
35428 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35429
35430 PR tree-opt/86020
35431 Revert:
35432 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35433
35434 * ipa-inline.c (edge_badness): Use inlined_time instead of
35435 inline_summaries->get.
35436
35437 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35438
35439 * opts.c (enable_fdo_optimizations): Enable
35440 version-loops-for-strides, loop-interchange, unrol-and-jam
35441 and tree-loop-distribution.
35442 * invoke.texi: Document newly enabled options.
35443
35444 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35445
35446 * doc/invoke.texi (max-inline-insns-small): New parameters.
35447 * ipa-inline.c (want_early_inline_function_p): simplify.
35448 (want_inline_small_function_p): Fix pasto from previous patch;
35449 use max-inline-insns-small bound.
35450 * params.def (max-inline-insns-small): New param.
35451 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35452 variables correctly.
35453
35454 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35455
35456 * doc/invoke.texi: Document max-inline-insns-size,
35457 uninlined-function-insns, uninlined-function-time,
35458 uninlined-thunk-insns and uninlined-thunk-time.
35459 * params.def: Add max-inline-insns-size,
35460 uninlined-function-insns, uninlined-function-time,
35461 uninlined-thunk-insns and uninlined-thunk-time.
35462 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35463 new parameters.
35464 * ipa-inline.c (can_inline_edge_by_limits_p,
35465 want_inline_small_function_p): Use new parameters.
35466
35467 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35468
35469 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35470
35471 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35472
35473 PR middle-end/82564
35474 PR target/88620
35475 * expr.c (expand_assignment): For calls returning VLA structures
35476 if to_rtx is not a MEM, force it into a stack temporary.
35477
35478 PR debug/88635
35479 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35480 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35481 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35482 subexpressions of both operands.
35483 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35484 subrtxes are CONSTANT_P.
35485 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35486 2018-11-09 changes.
35487
35488 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35489
35490 * params.def (hot-bb-count-ws-permille): Set to 990.
35491
35492 2019-01-04 Martin Sebor <msebor@redhat.com>
35493
35494 PR c/88546
35495 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35496 leaf.
35497
35498 2019-01-04 Martin Sebor <msebor@redhat.com>
35499
35500 PR c/88363
35501 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35502
35503 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35504
35505 * gdbinit.in: Turn off pagination for the skip commands, restore
35506 it to previous state afterwards.
35507
35508 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35509
35510 PR target/88594
35511 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35512 of GET_MODE (opN) as modes of the libcall arguments.
35513
35514 2019-01-04 Jan Beulich <jbeulich@suse.com>
35515
35516 * config/i386/sse.md
35517 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35518 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35519 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35520 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35521 avx512f_vmcmp<mode>3<round_saeonly_name>,
35522 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35523 avx512f_maskcmp<mode>3,
35524 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35525 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35526 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35527 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35528 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35529 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35530 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35531 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35532 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35533 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35534 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35535 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35536 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35537 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35538 avx512cd_maskb_vec_dup<mode>,
35539 avx512cd_maskw_vec_dup<mode>,
35540 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35541 avx512dq_vmfpclass<mode>,
35542 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35543 instead of =Yk.
35544
35545 2019-01-03 Martin Sebor <msebor@redhat.com>
35546
35547 PR tree-optimization/88659
35548 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35549
35550 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35551
35552 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35553 unaligned vsx and avoid lxvd2x/stxvd2x.
35554 (gen_lvx_v4si_move): New function.
35555
35556 2019-01-03 Tom de Vries <tdevries@suse.de>
35557
35558 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35559 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35560 function.
35561 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35562
35563 2019-01-03 Tom de Vries <tdevries@suse.de>
35564
35565 * config/nvptx/nvptx.c (struct offload_attrs): New.
35566 (populate_offload_attrs): New function. Factor mask extraction out of
35567 nvptx_reorg. Add extraction of dimensions.
35568 (nvptx_reorg): Use populate_offload_attrs.
35569
35570 2019-01-03 Tom de Vries <tdevries@suse.de>
35571
35572 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35573 cases for oacc_min_dims_p and routine_p. Add asserts for
35574 oacc_default_dims_p and offload_region_p.
35575
35576 2019-01-03 Tom de Vries <tdevries@suse.de>
35577
35578 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35579 factored out of ...
35580 (nvptx_goacc_validate_dims): ... here.
35581
35582 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35583
35584 PR tree-optimization/85574
35585 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35586 structure.
35587 (struct ssa_equip_hash_traits): Declare.
35588 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35589
35590 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35591
35592 PR debug/88644
35593 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35594 change it to qualified_type.
35595
35596 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35597
35598 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35599 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35600
35601 2019-01-02 Martin Sebor <msebor@redhat.com>
35602 Jeff Law <law@redhat.com>
35603
35604 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35605 (get_range_strlen_tree): Update appropriately.
35606 (get_range_strlen)
35607 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35608
35609 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35610 rather than set_range_info.
35611 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35612 maybe_set_strlen_range. Handle potentially boundary crossing
35613 cases more conservatively.
35614 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35615 Call set_strlen_range.
35616 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35617
35618 PR middle-end/88663
35619 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35620 need the flexp argument.
35621 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35622 from calls to get_range_strlen. Update comments. Just update
35623 VAL for an unterminated const char array and let the reset of the
35624 code handle it normally. No longer try to set *flexp. Adjust
35625 return value.
35626 (get_range_strlen): Update for the new get_range_strlen API.
35627 (get_maxval_strlen): Similarly.
35628 (gimple_fold_builtin_strlen): Handle update meaning of return value
35629 from get_range_strlen.
35630 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35631 get_range_strlen API.
35632
35633 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35634
35635 PR lto/88130
35636 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35637 false at WPA time when body was removed.
35638
35639 2019-01-02 Martin Liska <mliska@suse.cz>
35640
35641 PR tree-optimization/88650
35642 * predict.c (set_even_probabilities): Calculate probability
35643 remainer only when really used.
35644
35645 2019-01-02 Richard Biener <rguenther@suse.de>
35646
35647 PR middle-end/88651
35648 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35649 widest_ints when mangling max_stmt_execution results.
35650
35651 2019-01-02 Richard Biener <rguenther@suse.de>
35652
35653 PR tree-optimization/88621
35654 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35655 bitfields when canoncalizing.
35656
35657 2019-01-02 Richard Biener <rguenther@suse.de>
35658
35659 PR target/87545
35660 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35661 cost of cheap SSE instruction.
35662
35663 2019-01-02 Richard Biener <rguenther@suse.de>
35664
35665 PR ipa/85574
35666 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35667 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35668 function.
35669 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35670 set after UIDs before splitting them.
35671
35672 2019-01-01 Martin Sebor <msebor@redhat.com>
35673 Jeff Law <law@redhat.com>
35674
35675 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35676 length is optimistic. If it is, then arrange to compute the
35677 conservative length as well.
35678
35679 * gimple-fold.h (get_range_strlen): Update prototype.
35680 * builtins.c (check_access): Update call to get_range_strlen to use
35681 c_strlen_data pointer. Change various variable accesses to instead
35682 pull data from the c_strlen_data structure.
35683 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35684 * calls.c (maybe_warn_nonstring_arg): Likewise.
35685 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35686 minimum length if maximum lengh is unknown.
35687 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35688 that used c_strlen, it's no longer needed. Restructure slightly.
35689 (format_string): Set unlikely range appropriately.
35690 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35691 formatting issues.
35692 (get_range_strlen): Accept c_strlen_data pointer for external
35693 call sites as well. Pass through to call to internal get_range_strlen.
35694 Adjust minlen, maxlen and maxbound as needed.
35695 (get_maxval_strlen): Update comments.
35696 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35697 to use c_strlen_data pointer. Change variable accesses to instead
35698 use c_strlen_data data members.
35699
35700 * gimple-fold.c (get_range_strlen): Update prototype.
35701 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35702 local variables. Use pdata to return information to caller.
35703 Update calls to get_range_strlen. Update pdata->maxbound.
35704 (get_range_strlen -- static version): Similarly.
35705 (get_range_strlen -- extern version): Update for internal
35706 get_range_strlen API change. Convert to external data format.
35707 (get_maxval_strlen): Similarly.
35708
35709 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35710
35711 * coverage.c (get_coverage_counts): Use current_function_decl.
35712 * profile.c (read_thunk_profile): New function.
35713 (branch_prob): Add THUNK parameter.
35714 * tree-profile.c (tree_profiling): Handle thunks.
35715 * value-prof.c (init_node_map): Handle thunks.
35716 * value-prof.h (branch_prob): Upate prototype.
35717 (read_thunk_profile): Declare.
35718
35719 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35720
35721 Update copyright years.
35722
35723 * gcc.c (process_command): Update copyright notice dates.
35724 * gcov-dump.c (print_version): Ditto.
35725 * gcov.c (print_version): Ditto.
35726 * gcov-tool.c (print_version): Ditto.
35727 * gengtype.c (create_file): Ditto.
35728 * doc/cpp.texi: Bump @copying's copyright year.
35729 * doc/cppinternals.texi: Ditto.
35730 * doc/gcc.texi: Ditto.
35731 * doc/gccint.texi: Ditto.
35732 * doc/gcov.texi: Ditto.
35733 * doc/install.texi: Ditto.
35734 * doc/invoke.texi: Ditto.
35735 \f
35736 Copyright (C) 2019 Free Software Foundation, Inc.
35737
35738 Copying and distribution of this file, with or without modification,
35739 are permitted in any medium without royalty provided the copyright
35740 notice and this notice are preserved.